From patchwork Sat Sep 22 16:14:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 10446 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:1286:0:0:0:0:0 with SMTP id 6-v6csp718772jap; Sat, 22 Sep 2018 09:16:30 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYJknjiy9KKvF59tSPpx7avNyoJizdcEGNlnOvmIqPnx6FFuAugP0my23Dokt4h6oInU9xq X-Received: by 2002:a1c:4904:: with SMTP id w4-v6mr2139629wma.0.1537632990069; Sat, 22 Sep 2018 09:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537632990; cv=none; d=google.com; s=arc-20160816; b=vON8fRn4cZNc/yPKmOZ8F7NPdLHZHZaloGhv2rzVx8jaYzb6SLxcSswPRkLVCUApps DLQS6n6qp4cojiiOjAJeCIy2ZPEZf1f0Uu6OdYcfmgGUQGEXkXOoTAIAehdeyuR8cEnG 7SnudGMZ5M+TjgHP4cwwL9Qt9nJWj4EOWyKwPWuUw1c6HWfrkwj3u9DqvWuWalz6uVhy YykWuHs2g3STFte+GQpldmumPFpmCX+rlbt84+F1ZIX2JcVbpU0z0jBmd6OPVAmMH++W ZmNVGLDz2m7HIM35Y+1aXiio5Fp2SDffioXI2vgrFJuaKdSHhfzcTzksO49t2IVUko6X ShDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:delivered-to; bh=HwMPW7I55aFRnm0AaOef65b1Fzru4l/e/aP3XUPmQdk=; b=08a9g0U5012FJoqvVbPdPGUVXm8KnT7M/iXjzXn0CZqEgbik8N1ZAR8tKVK1MTpXhN LpU2pJ/pSec2He501YN3H5YVSBYVy0755h9niBy1j2BFxXDs5Zep611sTfTYup39y1hu qIcjSY+EuhUlfAokoLQVMyGwJoO5JSlGxoLRgc8Thcbyv9Lse5NdjSK4DxnYQE0ecME/ HTHjEJ1I/rAnHKMzcALO7Ex/sL9ZWpPsk4acoSvkO1/7HUIpUTCbG3045PxKACuV1wpx dEfgXkw4vWe/HLK05hG9II+cIk0Nsug1oSqk2BoRbapYyEKewQfAyEfZfCGwPprva6D3 mdPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id z9-v6si1081664wro.161.2018.09.22.09.16.29; Sat, 22 Sep 2018 09:16:30 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C24AC68A6A7; Sat, 22 Sep 2018 19:15:03 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-qmta-pe01-3.mx.upcmail.net (vie01a-qmta-pe01-3.mx.upcmail.net [62.179.121.180]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7C33068A636 for ; Sat, 22 Sep 2018 19:14:59 +0300 (EEST) Received: from [172.31.218.51] (helo=vie01a-dmta-pe07-3.mx.upcmail.net) by vie01a-pqmta-pe01.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1g3kYr-00081u-Te for ffmpeg-devel@ffmpeg.org; Sat, 22 Sep 2018 18:15:13 +0200 Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe07.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1g3kYr-0006Aq-7w for ffmpeg-devel@ffmpeg.org; Sat, 22 Sep 2018 18:15:13 +0200 Received: from localhost ([213.47.41.20]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id egF41y00H0S5wYM01gF5gb; Sat, 22 Sep 2018 18:15:05 +0200 X-SourceIP: 213.47.41.20 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sat, 22 Sep 2018 18:14:05 +0200 Message-Id: <20180922161408.22052-9-michael@niedermayer.cc> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180922161408.22052-1-michael@niedermayer.cc> References: <20180922161408.22052-1-michael@niedermayer.cc> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 09/11] avcodec/prosumer: remove unneeded variable from vertical_predict X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Michael Niedermayer --- libavcodec/prosumer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavcodec/prosumer.c b/libavcodec/prosumer.c index 575b00baca..0fa0109950 100644 --- a/libavcodec/prosumer.c +++ b/libavcodec/prosumer.c @@ -134,13 +134,11 @@ static int decompress(GetByteContext *gb, int size, PutByteContext *pb, const ui static void vertical_predict(uint32_t *dst, int offset, const uint32_t *src, int stride, int height) { - uint32_t x = (0x7F7F7F7F >> 1) & 0x7F7F7F7F; - dst += offset >> 2; for (int i = 0; i < height; i++) { for (int j = 0; j < stride >> 2; j++) { - dst[j] = (((src[j] >> 3) + (x & dst[j])) << 3) & 0xFCFCFCFC; + dst[j] = (((src[j] >> 3) + (0x3F3F3F3F & dst[j])) << 3) & 0xFCFCFCFC; } dst += stride >> 2;