From patchwork Thu Feb 23 15:59:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthieu Bouron X-Patchwork-Id: 2662 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.65.149 with SMTP id x21csp253984vsf; Thu, 23 Feb 2017 07:04:47 -0800 (PST) X-Received: by 10.28.145.210 with SMTP id t201mr4802872wmd.42.1487862287040; Thu, 23 Feb 2017 07:04:47 -0800 (PST) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id g65si7275150wmd.148.2017.02.23.07.04.46; Thu, 23 Feb 2017 07:04:47 -0800 (PST) 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 69851688376; Thu, 23 Feb 2017 17:04:35 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 99736688273 for ; Thu, 23 Feb 2017 17:04:28 +0200 (EET) Received: by mail-wm0-f68.google.com with SMTP id r18so306362wmd.3 for ; Thu, 23 Feb 2017 07:04:37 -0800 (PST) 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=Exm/YWUezznRhq8IFW+rCgio5eDm30atKw7C0UCpUIM=; b=UJNHuA9SxFgKU2kmXqzwtOnnB1de+10FraiZJXtTDaDbU6JEYu17rHY2Tap1Jp3OxW lOlR5HZc85yCN6BNY6AofKryfQhdzBZYiFZNXbwL3CVhWENpDg4rSM/6AThxTFJYT0fK N4Ir3vz17GDbIk3cgLY/vMh8tUkL8c4EEqPPQyeH2xWSbc8mv55eRijVmayE5CVzO25p m/2uTf8PbfN+47Uen4XavAwHqWeIuNfPcvFAVNejxEbQBYTsAfTzvtWPlpCDfX5DjJKr svD167ztxZldySk3cFcODVuz7VOGq9k/s3ZuLeY02w3r108w6zvcIRMA2z750L8mqoBE DMMQ== 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=Exm/YWUezznRhq8IFW+rCgio5eDm30atKw7C0UCpUIM=; b=fnewBnsgYxI85nPHqxeaOQkNJONew0ZFZZD9e5ozrlsJQ3VWOxivpqSHo+7ZGsI0+6 jSIQwRHjDkESpBXm14eTG3w7V4/rsqayeyi0pm4rNDaPyvyTxIHc5gg2tjbtPEnBywbJ qdvBFOky2aI8ymWSONLaq2pswgkqYxLov2FK/bKMHkZ8QOo45fNua6Yp0S6PePx2Y7OF UU8m4Rm1Bw9Y9O536GP8gc9+V87m5rlcSq68D9nwxlgpVy/K4mUP1GjeSarRmumcAScT +SXTdbfSgjvHL0CKKGUg72C1Rri2rObyUbfZ1NGFmStx4htvuTptLPgp8LqNU6qoE3Dc lO9g== X-Gm-Message-State: AMke39nANp8N+qNZBWYsHWTnP0k3agc8EdZq90Z8yir1DDjsjg3SHlW9beOKuCWNW1flvg== X-Received: by 10.28.131.132 with SMTP id f126mr5227990wmd.61.1487861963959; Thu, 23 Feb 2017 06:59:23 -0800 (PST) Received: from boken.gopro.lcl (LPuteaux-656-1-74-135.w80-12.abo.wanadoo.fr. [80.12.80.135]) by smtp.gmail.com with ESMTPSA id 198sm6703386wmn.11.2017.02.23.06.59.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Feb 2017 06:59:23 -0800 (PST) From: Matthieu Bouron To: ffmpeg-devel@ffmpeg.org Date: Thu, 23 Feb 2017 16:59:18 +0100 Message-Id: <20170223155918.10388-3-matthieu.bouron@gmail.com> X-Mailer: git-send-email 2.11.1 In-Reply-To: <20170223155918.10388-1-matthieu.bouron@gmail.com> References: <20170223155918.10388-1-matthieu.bouron@gmail.com> Subject: [FFmpeg-devel] [PATCH 2/2] lavc/tests/dct/aarch64: add ff_simple_idct_neon test 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: Matthieu Bouron MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" --- libavcodec/tests/aarch64/dct.c | 30 ++++++++++++++++++++++++++++++ libavcodec/tests/dct.c | 4 +++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 libavcodec/tests/aarch64/dct.c diff --git a/libavcodec/tests/aarch64/dct.c b/libavcodec/tests/aarch64/dct.c new file mode 100644 index 0000000000..032a9638f6 --- /dev/null +++ b/libavcodec/tests/aarch64/dct.c @@ -0,0 +1,30 @@ +/* + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "libavcodec/aarch64/idct.h" + +static const struct algo fdct_tab_arch[] = { + { 0 } +}; + +static const struct algo idct_tab_arch[] = { + { "SIMPLE-NEON", ff_simple_idct_neon, FF_IDCT_PERM_PARTTRANS, AV_CPU_FLAG_NEON }, + { 0 } +}; diff --git a/libavcodec/tests/dct.c b/libavcodec/tests/dct.c index 5303fdff8f..4f0e0d958e 100644 --- a/libavcodec/tests/dct.c +++ b/libavcodec/tests/dct.c @@ -94,7 +94,9 @@ static const struct algo idct_tab[] = { #endif /* CONFIG_MPEG4_DECODER */ }; -#if ARCH_ARM +#if ARCH_AARCH64 +#include "aarch64/dct.c" +#elif ARCH_ARM #include "arm/dct.c" #elif ARCH_PPC #include "ppc/dct.c"