From patchwork Tue Apr 4 16:48:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ronald S. Bultje" X-Patchwork-Id: 3289 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.44.195 with SMTP id s186csp275704vss; Tue, 4 Apr 2017 09:50:16 -0700 (PDT) X-Received: by 10.223.180.86 with SMTP id v22mr21827210wrd.169.1491324616429; Tue, 04 Apr 2017 09:50:16 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id e133si9581666wmf.20.2017.04.04.09.50.15; Tue, 04 Apr 2017 09:50:16 -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; dkim=neutral (body hash did not verify) header.i=@gmail.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AA00A680D1D; Tue, 4 Apr 2017 19:50:11 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk0-f196.google.com (mail-qk0-f196.google.com [209.85.220.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C1988680D1D for ; Tue, 4 Apr 2017 19:50:04 +0300 (EEST) Received: by mail-qk0-f196.google.com with SMTP id p22so24518211qka.0 for ; Tue, 04 Apr 2017 09:50:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FbmOcw3okHYP6kWyv4FdHkF6tsq8LU1mCJ8UavFguIA=; b=S9dS+ltsscVNAj9l20TTO5GnShgT2XHtgaLNlYFgfn47NSrhDucMvVnoYprHTU4NKe dtjc/aweOxVCuHuk02eq/uW3nstczXjKNvcMhCns7ylPnkHIE2AwSQHqLap8oOKJcunF icAfPelUsolThfQdUq5NyenZoE3zV3RHre94hQ7fPyI0mfIlKVXw229q04HUXA1TTBUw 4hiROqExFjc1hbZKNdpRnmd8s06NuFJ7ogho0BmZJeGhr2KGshm91C8pn2eQmhGEydkr YRcx5/0DPPWByklKfFePfLFQEodnmu+l0Yhke4D4vU1Lcs5MHKIpq8G5H/XvwA7vOo4t rUIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FbmOcw3okHYP6kWyv4FdHkF6tsq8LU1mCJ8UavFguIA=; b=RTDDMuhbgLTtjCfe2xcM9OfHLEbCh76sGU9W69oJsU/wnTEvLgF8sFjtVg4O5JN4av Gofv7eX5WZUQpg5n53D/gHQxkPZd2L+3FFuA2erjsf6RZf+rDR1ZeiQPT07MgV4oZrJH fzMLatqysTsoSVO9JWbBd+YllbKNciRQjuNcB2YzLmSk01Dn9UNWz1R2E019d7pbn9sS b4SnaMu2LKr2fHpZp7+QR8i39/7lsfraDcI66aC7dvH2fna5sk2faH5O7+OVGwYPkh6d 6Jg0yw1k8Vf7Tkb8X38Z0l5TdgDlhXW5Uzrcbx1hliYEBWWRpRScarphGGtfgAXPvi3p gTdA== X-Gm-Message-State: AFeK/H2qgrUitppw+r6LYFgirooYC2J+qPekjWI+DfSCURy6nEyukq6gSudn4YEYA7ONxw== X-Received: by 10.55.21.141 with SMTP id 13mr16140986qkv.276.1491324605967; Tue, 04 Apr 2017 09:50:05 -0700 (PDT) Received: from localhost.localdomain ([65.206.95.146]) by smtp.gmail.com with ESMTPSA id x19sm12205798qtc.23.2017.04.04.09.50.05 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 04 Apr 2017 09:50:05 -0700 (PDT) From: "Ronald S. Bultje" To: ffmpeg-devel@ffmpeg.org Date: Tue, 4 Apr 2017 12:48:14 -0400 Message-Id: <1491324498-26655-2-git-send-email-rsbultje@gmail.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1491324498-26655-1-git-send-email-rsbultje@gmail.com> References: <1491324498-26655-1-git-send-email-rsbultje@gmail.com> Subject: [FFmpeg-devel] [PATCH 2/6] x86/xvididct: remove use of ff_put/add_pixels_clamped function pointer. 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 Cc: "Ronald S. Bultje" MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Since there's separate SSE2 implementations of xvid_idct_put/add, this patch has no practical impact on performance. --- libavcodec/x86/xvididct_init.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/x86/xvididct_init.c b/libavcodec/x86/xvididct_init.c index fd10953..c7b5ead 100644 --- a/libavcodec/x86/xvididct_init.c +++ b/libavcodec/x86/xvididct_init.c @@ -30,25 +30,25 @@ static void xvid_idct_mmx_put(uint8_t *dest, ptrdiff_t line_size, short *block) { ff_xvid_idct_mmx(block); - ff_put_pixels_clamped(block, dest, line_size); + ff_put_pixels_clamped_mmx(block, dest, line_size); } static void xvid_idct_mmx_add(uint8_t *dest, ptrdiff_t line_size, short *block) { ff_xvid_idct_mmx(block); - ff_add_pixels_clamped(block, dest, line_size); + ff_add_pixels_clamped_mmx(block, dest, line_size); } static void xvid_idct_mmxext_put(uint8_t *dest, ptrdiff_t line_size, short *block) { ff_xvid_idct_mmxext(block); - ff_put_pixels_clamped(block, dest, line_size); + ff_put_pixels_clamped_mmx(block, dest, line_size); } static void xvid_idct_mmxext_add(uint8_t *dest, ptrdiff_t line_size, short *block) { ff_xvid_idct_mmxext(block); - ff_add_pixels_clamped(block, dest, line_size); + ff_add_pixels_clamped_mmx(block, dest, line_size); } #endif