From patchwork Thu Nov 24 08:52:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muhammad Faiz X-Patchwork-Id: 1546 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.90.1 with SMTP id o1csp72890vsb; Thu, 24 Nov 2016 00:53:45 -0800 (PST) X-Received: by 10.194.95.194 with SMTP id dm2mr1118886wjb.207.1479977625468; Thu, 24 Nov 2016 00:53:45 -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 v2si35692434wjh.194.2016.11.24.00.53.44; Thu, 24 Nov 2016 00:53:45 -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 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 D7AFF689A5C; Thu, 24 Nov 2016 10:53:38 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 53632689994 for ; Thu, 24 Nov 2016 10:53:31 +0200 (EET) Received: by mail-pg0-f67.google.com with SMTP id 3so2945400pgd.0 for ; Thu, 24 Nov 2016 00:53:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=vY1mEx9LMJxUPTcB6rr2rZxr2gKiia/Bbc5BWdkG7uQ=; b=ttfNK0SULpjTpCbVr1U1acd8fnqvze+jLaTasdtd6AqWXXxz2WmdCF53Z9OmyEHqG6 j2dHrmGcgTxC8B5fCKowAp4hnimLfWWPViKgfTBR5t+4XJQXc1SxH+jQmjC2BmDlzaCb fdG/9mO0d/6mo+O0EjhRHOZ4ucqJnrkzM7j5tdzAbAZpLJIqY7YVAmFvJiH9FjlJRLR5 xYNqDutDqTFn6PnEtCdCLO3hh/6V/6A3U6TmLRLDiuVli57bxfKHBpmeYFYpxQcuXpFH 1N9DIxklcW1DW3LDfEIriN0i6Lq8rzuekT40A6MpUUaERAlxJkZJucR0g2RZyC/TCZHK koGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vY1mEx9LMJxUPTcB6rr2rZxr2gKiia/Bbc5BWdkG7uQ=; b=B3LN/3ZRE0ZLHEiOp9bgqrARWSWp3NwXJDE0CiV+LgFLDXyqLh3FvS3mxXDDwIPGtO uVLEV+7cCwXRG9Iz0GuW960qotu3/YqYy1MOjGEi0Xw5ph7e3KxVcMAH7EGkEKEpGv4y PQ31Nkr7YVcu6bTi7cIG5GrgWx8zI/HATWknyMtBCH19F0qNiGAu1VRj5LcX90zUSIiL BsTRECBvTuWtMOWI/LMn5+AfYz+ZGt95Q/MIfJA6NhQqRZaZpbFPnomCc7skF0p3VzH6 dBt1XC1Z97+S9doPS3JnDg+i8XZ59wVqPGrpVuLSBvgyKv5TyloAFx4J+oHs15cjHD9v 9WlQ== X-Gm-Message-State: AKaTC03OTG2x4Zvo+kdkR6mRcm4v9tkyA/MTuvlOAjEX3NGlAZLSd8ByCznJeYzmmUcRTg== X-Received: by 10.99.126.94 with SMTP id o30mr2364364pgn.66.1479977613411; Thu, 24 Nov 2016 00:53:33 -0800 (PST) Received: from localhost.localdomain.localdomain ([114.121.235.104]) by smtp.gmail.com with ESMTPSA id b80sm58377610pfe.52.2016.11.24.00.53.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Nov 2016 00:53:33 -0800 (PST) From: Muhammad Faiz To: ffmpeg-devel@ffmpeg.org Date: Thu, 24 Nov 2016 15:52:27 +0700 Message-Id: <1479977548-2621-1-git-send-email-mfcc64@gmail.com> X-Mailer: git-send-email 2.5.0 Subject: [FFmpeg-devel] [PATCH 1/2] fate/swresample: add resample exact_lin and exact_lin_async 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: Muhammad Faiz MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Muhammad Faiz --- tests/fate/libswresample.mak | 176 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 176 insertions(+) diff --git a/tests/fate/libswresample.mak b/tests/fate/libswresample.mak index 7cb3bdb..cc50693 100644 --- a/tests/fate/libswresample.mak +++ b/tests/fate/libswresample.mak @@ -712,6 +712,172 @@ fate-swr-resample_exact_async-s32p-8000-44100: SIZE_TOLERANCE = 96000 - 20344 fate-swr-resample_exact_async-s32p-8000-48000: CMP_TARGET = 11326.82 fate-swr-resample_exact_async-s32p-8000-48000: SIZE_TOLERANCE = 96000 - 20344 +define ARESAMPLE_EXACT_LIN +FATE_SWR_RESAMPLE += fate-swr-resample_exact_lin-$(3)-$(1)-$(2) +fate-swr-resample_exact_lin-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav +fate-swr-resample_exact_lin-$(3)-$(1)-$(2): CMD = ffmpeg -i $(TARGET_PATH)/tests/data/asynth-$(1)-1.wav -af atrim=end_sample=10240,aresample=$(2):internal_sample_fmt=$(3):exact_rational=on:linear_interp=on,aformat=$(3),aresample=$(1):internal_sample_fmt=$(3):exact_rational=on:linear_interp=on -f wav -acodec pcm_s16le - + +fate-swr-resample_exact_lin-$(3)-$(1)-$(2): CMP = stddev +fate-swr-resample_exact_lin-$(3)-$(1)-$(2): CMP_UNIT = $(5) +fate-swr-resample_exact_lin-$(3)-$(1)-$(2): FUZZ = 0.1 +fate-swr-resample_exact_lin-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav +endef + +fate-swr-resample_exact_lin-dblp-44100-48000: CMP_TARGET = 9.65 +fate-swr-resample_exact_lin-dblp-44100-48000: SIZE_TOLERANCE = 529200 - 20482 + +fate-swr-resample_exact_lin-dblp-44100-8000: CMP_TARGET = 75.38 +fate-swr-resample_exact_lin-dblp-44100-8000: SIZE_TOLERANCE = 529200 - 20486 + +fate-swr-resample_exact_lin-dblp-48000-44100: CMP_TARGET = 0.26 +fate-swr-resample_exact_lin-dblp-48000-44100: SIZE_TOLERANCE = 576000 - 20480 + +fate-swr-resample_exact_lin-dblp-48000-8000: CMP_TARGET = 62.36 +fate-swr-resample_exact_lin-dblp-48000-8000: SIZE_TOLERANCE = 576000 - 20484 + +fate-swr-resample_exact_lin-dblp-8000-44100: CMP_TARGET = 14.59 +fate-swr-resample_exact_lin-dblp-8000-44100: SIZE_TOLERANCE = 96000 - 20480 + +fate-swr-resample_exact_lin-dblp-8000-48000: CMP_TARGET = 14.50 +fate-swr-resample_exact_lin-dblp-8000-48000: SIZE_TOLERANCE = 96000 - 20480 + +fate-swr-resample_exact_lin-fltp-44100-48000: CMP_TARGET = 9.65 +fate-swr-resample_exact_lin-fltp-44100-48000: SIZE_TOLERANCE = 529200 - 20482 + +fate-swr-resample_exact_lin-fltp-44100-8000: CMP_TARGET = 75.38 +fate-swr-resample_exact_lin-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20486 + +fate-swr-resample_exact_lin-fltp-48000-44100: CMP_TARGET = 0.26 +fate-swr-resample_exact_lin-fltp-48000-44100: SIZE_TOLERANCE = 576000 - 20480 + +fate-swr-resample_exact_lin-fltp-48000-8000: CMP_TARGET = 62.36 +fate-swr-resample_exact_lin-fltp-48000-8000: SIZE_TOLERANCE = 576000 - 20484 + +fate-swr-resample_exact_lin-fltp-8000-44100: CMP_TARGET = 14.59 +fate-swr-resample_exact_lin-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20480 + +fate-swr-resample_exact_lin-fltp-8000-48000: CMP_TARGET = 14.50 +fate-swr-resample_exact_lin-fltp-8000-48000: SIZE_TOLERANCE = 96000 - 20480 + +fate-swr-resample_exact_lin-s16p-44100-48000: CMP_TARGET = 9.67 +fate-swr-resample_exact_lin-s16p-44100-48000: SIZE_TOLERANCE = 529200 - 20482 + +fate-swr-resample_exact_lin-s16p-44100-8000: CMP_TARGET = 75.43 +fate-swr-resample_exact_lin-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20486 + +fate-swr-resample_exact_lin-s16p-48000-44100: CMP_TARGET = 0.72 +fate-swr-resample_exact_lin-s16p-48000-44100: SIZE_TOLERANCE = 576000 - 20480 + +fate-swr-resample_exact_lin-s16p-48000-8000: CMP_TARGET = 62.39 +fate-swr-resample_exact_lin-s16p-48000-8000: SIZE_TOLERANCE = 576000 - 20484 + +fate-swr-resample_exact_lin-s16p-8000-44100: CMP_TARGET = 14.63 +fate-swr-resample_exact_lin-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20480 + +fate-swr-resample_exact_lin-s16p-8000-48000: CMP_TARGET = 14.54 +fate-swr-resample_exact_lin-s16p-8000-48000: SIZE_TOLERANCE = 96000 - 20480 + +fate-swr-resample_exact_lin-s32p-44100-48000: CMP_TARGET = 9.65 +fate-swr-resample_exact_lin-s32p-44100-48000: SIZE_TOLERANCE = 529200 - 20482 + +fate-swr-resample_exact_lin-s32p-44100-8000: CMP_TARGET = 75.38 +fate-swr-resample_exact_lin-s32p-44100-8000: SIZE_TOLERANCE = 529200 - 20486 + +fate-swr-resample_exact_lin-s32p-48000-44100: CMP_TARGET = 0.26 +fate-swr-resample_exact_lin-s32p-48000-44100: SIZE_TOLERANCE = 576000 - 20480 + +fate-swr-resample_exact_lin-s32p-48000-8000: CMP_TARGET = 62.36 +fate-swr-resample_exact_lin-s32p-48000-8000: SIZE_TOLERANCE = 576000 - 20484 + +fate-swr-resample_exact_lin-s32p-8000-44100: CMP_TARGET = 14.59 +fate-swr-resample_exact_lin-s32p-8000-44100: SIZE_TOLERANCE = 96000 - 20480 + +fate-swr-resample_exact_lin-s32p-8000-48000: CMP_TARGET = 14.50 +fate-swr-resample_exact_lin-s32p-8000-48000: SIZE_TOLERANCE = 96000 - 20480 + +define ARESAMPLE_EXACT_LIN_ASYNC +FATE_SWR_RESAMPLE += fate-swr-resample_exact_lin_async-$(3)-$(1)-$(2) +fate-swr-resample_exact_lin_async-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav +fate-swr-resample_exact_lin_async-$(3)-$(1)-$(2): CMD = ffmpeg -i $(TARGET_PATH)/tests/data/asynth-$(1)-1.wav -af atrim=end_sample=10240,asetpts=PTS+random\(0\)*200-100,aresample=$(2):async=50:min_hard_comp=0.100000:first_pts=0:internal_sample_fmt=$(3):exact_rational=on:linear_interp=on,aformat=$(3),aresample=$(1):internal_sample_fmt=$(3):exact_rational=on:linear_interp=on -f wav -acodec pcm_s16le - + +fate-swr-resample_exact_lin_async-$(3)-$(1)-$(2): CMP = stddev +fate-swr-resample_exact_lin_async-$(3)-$(1)-$(2): CMP_UNIT = $(5) +fate-swr-resample_exact_lin_async-$(3)-$(1)-$(2): FUZZ = 0.1 +fate-swr-resample_exact_lin_async-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav +endef + +fate-swr-resample_exact_lin_async-dblp-44100-48000: CMP_TARGET = 7791.78 +fate-swr-resample_exact_lin_async-dblp-44100-48000: SIZE_TOLERANCE = 529200 - 20300 + +fate-swr-resample_exact_lin_async-dblp-44100-8000: CMP_TARGET = 4023.03 +fate-swr-resample_exact_lin_async-dblp-44100-8000: SIZE_TOLERANCE = 529200 - 20310 + +fate-swr-resample_exact_lin_async-dblp-48000-44100: CMP_TARGET = 1923.80 +fate-swr-resample_exact_lin_async-dblp-48000-44100: SIZE_TOLERANCE = 576000 - 20298 + +fate-swr-resample_exact_lin_async-dblp-48000-8000: CMP_TARGET = 2591.73 +fate-swr-resample_exact_lin_async-dblp-48000-8000: SIZE_TOLERANCE = 576000 - 20304 + +fate-swr-resample_exact_lin_async-dblp-8000-44100: CMP_TARGET = 11187.37 +fate-swr-resample_exact_lin_async-dblp-8000-44100: SIZE_TOLERANCE = 96000 - 20344 + +fate-swr-resample_exact_lin_async-dblp-8000-48000: CMP_TARGET = 11326.82 +fate-swr-resample_exact_lin_async-dblp-8000-48000: SIZE_TOLERANCE = 96000 - 20344 + +fate-swr-resample_exact_lin_async-fltp-44100-48000: CMP_TARGET = 7791.78 +fate-swr-resample_exact_lin_async-fltp-44100-48000: SIZE_TOLERANCE = 529200 - 20300 + +fate-swr-resample_exact_lin_async-fltp-44100-8000: CMP_TARGET = 4023.03 +fate-swr-resample_exact_lin_async-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20310 + +fate-swr-resample_exact_lin_async-fltp-48000-44100: CMP_TARGET = 1923.81 +fate-swr-resample_exact_lin_async-fltp-48000-44100: SIZE_TOLERANCE = 576000 - 20298 + +fate-swr-resample_exact_lin_async-fltp-48000-8000: CMP_TARGET = 2591.73 +fate-swr-resample_exact_lin_async-fltp-48000-8000: SIZE_TOLERANCE = 576000 - 20304 + +fate-swr-resample_exact_lin_async-fltp-8000-44100: CMP_TARGET = 11187.37 +fate-swr-resample_exact_lin_async-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20344 + +fate-swr-resample_exact_lin_async-fltp-8000-48000: CMP_TARGET = 11326.82 +fate-swr-resample_exact_lin_async-fltp-8000-48000: SIZE_TOLERANCE = 96000 - 20344 + +fate-swr-resample_exact_lin_async-s16p-44100-48000: CMP_TARGET = 7791.78 +fate-swr-resample_exact_lin_async-s16p-44100-48000: SIZE_TOLERANCE = 529200 - 20300 + +fate-swr-resample_exact_lin_async-s16p-44100-8000: CMP_TARGET = 4023.20 +fate-swr-resample_exact_lin_async-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20310 + +fate-swr-resample_exact_lin_async-s16p-48000-44100: CMP_TARGET = 1923.81 +fate-swr-resample_exact_lin_async-s16p-48000-44100: SIZE_TOLERANCE = 576000 - 20298 + +fate-swr-resample_exact_lin_async-s16p-48000-8000: CMP_TARGET = 2591.86 +fate-swr-resample_exact_lin_async-s16p-48000-8000: SIZE_TOLERANCE = 576000 - 20304 + +fate-swr-resample_exact_lin_async-s16p-8000-44100: CMP_TARGET = 11187.62 +fate-swr-resample_exact_lin_async-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20344 + +fate-swr-resample_exact_lin_async-s16p-8000-48000: CMP_TARGET = 11327.49 +fate-swr-resample_exact_lin_async-s16p-8000-48000: SIZE_TOLERANCE = 96000 - 20344 + +fate-swr-resample_exact_lin_async-s32p-44100-48000: CMP_TARGET = 7791.78 +fate-swr-resample_exact_lin_async-s32p-44100-48000: SIZE_TOLERANCE = 529200 - 20300 + +fate-swr-resample_exact_lin_async-s32p-44100-8000: CMP_TARGET = 4023.03 +fate-swr-resample_exact_lin_async-s32p-44100-8000: SIZE_TOLERANCE = 529200 - 20310 + +fate-swr-resample_exact_lin_async-s32p-48000-44100: CMP_TARGET = 1923.81 +fate-swr-resample_exact_lin_async-s32p-48000-44100: SIZE_TOLERANCE = 576000 - 20298 + +fate-swr-resample_exact_lin_async-s32p-48000-8000: CMP_TARGET = 2591.73 +fate-swr-resample_exact_lin_async-s32p-48000-8000: SIZE_TOLERANCE = 576000 - 20304 + +fate-swr-resample_exact_lin_async-s32p-8000-44100: CMP_TARGET = 11187.37 +fate-swr-resample_exact_lin_async-s32p-8000-44100: SIZE_TOLERANCE = 96000 - 20344 + +fate-swr-resample_exact_lin_async-s32p-8000-48000: CMP_TARGET = 11326.82 +fate-swr-resample_exact_lin_async-s32p-8000-48000: SIZE_TOLERANCE = 96000 - 20344 + $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,s16p,s16le,s16) $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,s32p,s32le,s16) $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,fltp,f32le,s16) @@ -737,6 +903,16 @@ $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_ASYNC,s32p,s32le,s16) $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_ASYNC,fltp,f32le,s16) $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_ASYNC,dblp,f64le,s16) +$(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_LIN,s16p,s16le,s16) +$(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_LIN,s32p,s32le,s16) +$(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_LIN,fltp,f32le,s16) +$(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_LIN,dblp,f64le,s16) + +$(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_LIN_ASYNC,s16p,s16le,s16) +$(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_LIN_ASYNC,s32p,s32le,s16) +$(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_LIN_ASYNC,fltp,f32le,s16) +$(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_LIN_ASYNC,dblp,f64le,s16) + FATE_SWR_RESAMPLE-$(call FILTERDEMDECENCMUX, ARESAMPLE, WAV, PCM_S16LE, PCM_S16LE, WAV) += $(FATE_SWR_RESAMPLE) fate-swr-resample: $(FATE_SWR_RESAMPLE-yes) FATE_SWR += $(FATE_SWR_RESAMPLE-yes)