From patchwork Sat Oct 1 16:25:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 806 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.66 with SMTP id o63csp806801vsd; Sat, 1 Oct 2016 09:42:07 -0700 (PDT) X-Received: by 10.28.35.68 with SMTP id j65mr2759619wmj.61.1475340127484; Sat, 01 Oct 2016 09:42:07 -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 t8si17857429wjf.232.2016.10.01.09.42.04; Sat, 01 Oct 2016 09:42:07 -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 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 075B7689F75; Sat, 1 Oct 2016 19:41:49 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-yw0-f195.google.com (mail-yw0-f195.google.com [209.85.161.195]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A0EB668A0A0 for ; Sat, 1 Oct 2016 19:41:42 +0300 (EEST) Received: by mail-yw0-f195.google.com with SMTP id g192so5008953ywh.0 for ; Sat, 01 Oct 2016 09:41:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=E7SxkQ0P3SitEAetuAHauQcJPgfp2n7SDFsGa7+YA6g=; b=UI33bssEENFZmfHTg24KyqxlyxXVGbSG0qrH4IUbhXw0KAh0+lMIF1ebH5ZUN142GL QOSjXBj1u4/5dw0kgVs0M3USLpOa0je/3CAthnge21xBOcbsr4e5hSQiOjuAXJTU78mZ Q+17jOdcCKWOxT70D5WYBMgpPMUF8g+opjt9owVux7K14Wqnj167FWIwbajoRjsdbBST SF8qlW65f3yamk0upR6rIC/S7wFrphnJF3QcSCB+NnL9wAM7ns34N3bPvqJi5ra3cGrj Vf5BfjVPne+fpXQBd48VP1ZwTuFDG8FfEy0fJlUK0K1jBYuheydCbwn0gV4aCCujL+9b nXnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=E7SxkQ0P3SitEAetuAHauQcJPgfp2n7SDFsGa7+YA6g=; b=V7hG351meqAz/8Dtlm2xv9o/gsb21a/Sfvq10Gbvp8FSgtOYxCdf3uZaR1GIRB403L c4ckagpTHVHuEjzMVqkb8YkrKaT+6+2ighAFqg7dT1HUF5c/dMwHw39ipL9EWDTawMid RBaWEEvd46WEAtl+LJUcSssfr4y+BmKcSp7HtaIdAsdIUAyKax1g3l7u/dSL+oqEf5yQ rFELc87i96dB2dYBraoJEcLzj3eQdyC3GOq8ay6xNG7n+QXY/xLMlnUKKFqYH7VJWZ/z nVCnLXAiQPRLb3wk3BrzKhYSKCrKzFsvWNKIbz3159oqi/ey1/xz4wQkt+LEPtdVfSGw /WQA== X-Gm-Message-State: AA6/9Rl5ESSsy8IfeCL21B5Jw6XeFVkmGDHPcGr38io3LFLlKmUdfnIDBYjRNof5SJleeg== X-Received: by 10.129.117.10 with SMTP id q10mr9166682ywc.143.1475339161189; Sat, 01 Oct 2016 09:26:01 -0700 (PDT) Received: from localhost.localdomain ([181.22.58.118]) by smtp.gmail.com with ESMTPSA id v192sm297256ywg.3.2016.10.01.09.25.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 01 Oct 2016 09:26:00 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Sat, 1 Oct 2016 13:25:29 -0300 Message-Id: <20161001162529.904-1-jamrial@gmail.com> X-Mailer: git-send-email 2.9.1 Subject: [FFmpeg-devel] [PATCH] avcodec: add missing xmm/neon clobber test wrappers for the new encode API 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: James Almer --- configure | 4 ++++ libavcodec/aarch64/neontest.c | 10 ++++++++++ libavcodec/arm/neontest.c | 10 ++++++++++ libavcodec/x86/w64xmmtest.c | 10 ++++++++++ 4 files changed, 34 insertions(+) diff --git a/configure b/configure index 74db9b5..5216260 100755 --- a/configure +++ b/configure @@ -6079,6 +6079,8 @@ enabled neon_clobber_test && -Wl,--wrap,avcodec_encode_video2 \ -Wl,--wrap,avcodec_send_packet \ -Wl,--wrap,avcodec_receive_frame \ + -Wl,--wrap,avcodec_send_frame \ + -Wl,--wrap,avcodec_receive_packet \ -Wl,--wrap,avcodec_encode_subtitle \ -Wl,--wrap,swr_convert \ -Wl,--wrap,avresample_convert || @@ -6094,6 +6096,8 @@ enabled xmm_clobber_test && -Wl,--wrap,avcodec_encode_subtitle \ -Wl,--wrap,avcodec_send_packet \ -Wl,--wrap,avcodec_receive_frame \ + -Wl,--wrap,avcodec_send_frame \ + -Wl,--wrap,avcodec_receive_packet \ -Wl,--wrap,swr_convert \ -Wl,--wrap,avresample_convert \ -Wl,--wrap,sws_scale || diff --git a/libavcodec/aarch64/neontest.c b/libavcodec/aarch64/neontest.c index 302a322..93f162d 100644 --- a/libavcodec/aarch64/neontest.c +++ b/libavcodec/aarch64/neontest.c @@ -87,3 +87,13 @@ wrap(avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame)) { testneonclobbers(avcodec_receive_frame, avctx, frame); } + +wrap(avcodec_send_frame(AVCodecContext *avctx, const AVFrame *frame)) +{ + testneonclobbers(avcodec_send_frame, avctx, avpkt); +} + +wrap(avcodec_receive_packet(AVCodecContext *avctx, AVPacket *avpkt)) +{ + testneonclobbers(avcodec_receive_packet, avctx, frame); +} diff --git a/libavcodec/arm/neontest.c b/libavcodec/arm/neontest.c index 51d158b..b24120c 100644 --- a/libavcodec/arm/neontest.c +++ b/libavcodec/arm/neontest.c @@ -87,3 +87,13 @@ wrap(avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame)) { testneonclobbers(avcodec_receive_frame, avctx, frame); } + +wrap(avcodec_send_frame(AVCodecContext *avctx, const AVFrame *frame)) +{ + testneonclobbers(avcodec_send_frame, avctx, avpkt); +} + +wrap(avcodec_receive_packet(AVCodecContext *avctx, AVPacket *avpkt)) +{ + testneonclobbers(avcodec_receive_packet, avctx, frame); +} diff --git a/libavcodec/x86/w64xmmtest.c b/libavcodec/x86/w64xmmtest.c index 3d466d2..d76a322 100644 --- a/libavcodec/x86/w64xmmtest.c +++ b/libavcodec/x86/w64xmmtest.c @@ -87,3 +87,13 @@ wrap(avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame)) { testxmmclobbers(avcodec_receive_frame, avctx, frame); } + +wrap(avcodec_send_frame(AVCodecContext *avctx, const AVFrame *frame)) +{ + testxmmclobbers(avcodec_send_frame, avctx, avpkt); +} + +wrap(avcodec_receive_packet(AVCodecContext *avctx, AVPacket *avpkt)) +{ + testxmmclobbers(avcodec_receive_packet, avctx, frame); +}