From patchwork Thu Jul 20 09:07:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Rapp X-Patchwork-Id: 4381 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.1.76 with SMTP id 73csp1881582vsb; Thu, 20 Jul 2017 02:07:37 -0700 (PDT) X-Received: by 10.28.236.8 with SMTP id k8mr1827341wmh.139.1500541657371; Thu, 20 Jul 2017 02:07:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500541657; cv=none; d=google.com; s=arc-20160816; b=FYVFjR45L5F/oev8i9pTulmvA+kdHYDR8STijSPL6QSsNtGGwG6MrwpAjGPjhTQFE9 AdXpoHPM4UaFPmPsd2wa3UrQGwNvGSxz9xR7hsmlu2K0Q9751gkCT6OXJ0vaGDz0ibvf NX6wUPrrS+clN7GajF+2r1xyFpuKFVkEvPLAqSuzm5oq0THUb7PC+S4VFL/rmepgTa/v 0yDCf9q5yX+33rFkurWbOwIQzVmk2OkivD6LYds5R0Opc8h0j+yKSpnASio+CPNeYn++ BeKj4zrr3ulLWRpyPktmaGVkCaQU/rKUb2y3G8vnmApoJU/9bExDlA8b0ZPBKFifmBUn tBKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:delivered-to :arc-authentication-results; bh=VOflQgKu6RTzSZwjBHb59/bRMRgdlKwBOujj8KCmUjA=; b=vTmgypJtcyzeRDWzfkSTBU5irlWd/9kLJ/m8Ap8a74QDHP1zb35njB9YUqEWf6Ee60 CHpEi2VP7q9Ku3b6okcvH/4Y/NgJBB17aeIygYgBxZquMHidrVsj+VE6vDM9APvn7foG Iau/AmI5s5NQ8AXRf7mMXkBXqOlfbMfRbmODKdCGA8KU1KKy/dQ24TgtR22R/9Kz8rzO fFJopVCj+d1Qagx4LbpQ+kfktUHVxjZzplc3AQFC6BpHpR87YxTzA+FLGWzrryLq2JUx vr+Eo+DaVx4mJ2dgT6T1SBuWAvwGFxvZLntK4PCgmLC22e1U/qBKqpddKj6hn7+BXF2f M2CA== 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 d80si1333582wmd.182.2017.07.20.02.07.36; Thu, 20 Jul 2017 02:07:37 -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 E61AA6883AE; Thu, 20 Jul 2017 12:07:25 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mx02.mail.netstorage.at (mx02.mail.netstorage.at [89.207.146.155]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 10CF36882BB for ; Thu, 20 Jul 2017 12:07:19 +0300 (EEST) Received: from p1002.netstorage.at (p1002.netstorage.at [89.207.146.186]) by mx02.mail.netstorage.at (Postfix) with ESMTPS id C6D42A2C5E for ; Thu, 20 Jul 2017 11:07:13 +0200 (CEST) Received: from mailix (noaport.de [46.237.252.213]) by p1002.netstorage.at (Postfix) with ESMTPA id 7C41281E83 for ; Thu, 20 Jul 2017 11:07:13 +0200 (CEST) Received: from frogstar-a.kuhnle.local (frogstar-a.kuhnle.local [192.168.0.26]) by mailix with ESMTPA ; Thu, 20 Jul 2017 11:07:13 +0200 From: Tobias Rapp To: ffmpeg-devel@ffmpeg.org Date: Thu, 20 Jul 2017 11:07:12 +0200 Message-Id: <1500541632-24096-1-git-send-email-t.rapp@noa-archive.com> X-Mailer: git-send-email 2.7.4 X-PPP-Message-ID: <20170720090713.16742.89470@p1002.netstorage.at> X-PPP-Vhost: noa-archive.com X-NetStorage-MailScanner-Information: Please contact the ISP for more information X-NetStorage-MailScanner-ID: C6D42A2C5E.A4B61 X-NetStorage-MailScanner: Found to be clean X-NetStorage-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (nicht zwischen gespeichert, Wertung=-0.5, benoetigt 6, autolearn=not spam, BAYES_00 -0.50) X-NetStorage-MailScanner-From: t.rapp@noa-archive.com X-Spam-Status: No Subject: [FFmpeg-devel] [PATCH] fate: add tests for some video source filters 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" Adds FATE tests for the previously untested allrgb, allyuv, rgbtestsrc, smptebars, smptehdbars and yuvtestsrc filters. Signed-off-by: Tobias Rapp --- tests/fate/filter-video.mak | 21 +++++++++++++++++++++ tests/ref/fate/filter-allrgb | 10 ++++++++++ tests/ref/fate/filter-allyuv | 10 ++++++++++ tests/ref/fate/filter-rgbtestsrc | 10 ++++++++++ tests/ref/fate/filter-smptebars | 10 ++++++++++ tests/ref/fate/filter-smptehdbars | 10 ++++++++++ tests/ref/fate/filter-yuvtestsrc-yuv444p | 10 ++++++++++ tests/ref/fate/filter-yuvtestsrc-yuv444p12 | 10 ++++++++++ 8 files changed, 91 insertions(+) create mode 100644 tests/ref/fate/filter-allrgb create mode 100644 tests/ref/fate/filter-allyuv create mode 100644 tests/ref/fate/filter-rgbtestsrc create mode 100644 tests/ref/fate/filter-smptebars create mode 100644 tests/ref/fate/filter-smptehdbars create mode 100644 tests/ref/fate/filter-yuvtestsrc-yuv444p create mode 100644 tests/ref/fate/filter-yuvtestsrc-yuv444p12 diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak index 53fc7a6..d31a9f1 100644 --- a/tests/fate/filter-video.mak +++ b/tests/fate/filter-video.mak @@ -80,6 +80,27 @@ fate-filter-testsrc2-yuv444p: CMD = framecrc -lavfi testsrc2=r=7:d=10 -pix_fmt y FATE_FILTER-$(call ALLYES, TESTSRC2_FILTER) += fate-filter-testsrc2-rgb24 fate-filter-testsrc2-rgb24: CMD = framecrc -lavfi testsrc2=r=7:d=10 -pix_fmt rgb24 +FATE_FILTER-$(call ALLYES, LAVFI_INDEV ALLRGB_FILTER) += fate-filter-allrgb +fate-filter-allrgb: CMD = framecrc -lavfi allrgb=rate=5:duration=1 -pix_fmt rgb24 + +FATE_FILTER-$(call ALLYES, LAVFI_INDEV ALLYUV_FILTER) += fate-filter-allyuv +fate-filter-allyuv: CMD = framecrc -lavfi allyuv=rate=5:duration=1 -pix_fmt yuv444p + +FATE_FILTER-$(call ALLYES, LAVFI_INDEV RGBTESTSRC_FILTER) += fate-filter-rgbtestsrc +fate-filter-rgbtestsrc: CMD = framecrc -lavfi rgbtestsrc=rate=5:duration=1 -pix_fmt rgb24 + +FATE_FILTER-$(call ALLYES, LAVFI_INDEV SMPTEBARS_FILTER) += fate-filter-smptebars +fate-filter-smptebars: CMD = framecrc -lavfi smptebars=rate=5:duration=1 -pix_fmt yuv420p + +FATE_FILTER-$(call ALLYES, LAVFI_INDEV SMPTEHDBARS_FILTER) += fate-filter-smptehdbars +fate-filter-smptehdbars: CMD = framecrc -lavfi smptehdbars=rate=5:duration=1 -pix_fmt yuv444p + +FATE_FILTER-$(call ALLYES, LAVFI_INDEV YUVTESTSRC_FILTER) += fate-filter-yuvtestsrc-yuv444p +fate-filter-yuvtestsrc-yuv444p: CMD = framecrc -lavfi yuvtestsrc=rate=5:duration=1 -pix_fmt yuv444p + +FATE_FILTER-$(call ALLYES, LAVFI_INDEV YUVTESTSRC_FILTER) += fate-filter-yuvtestsrc-yuv444p12 +fate-filter-yuvtestsrc-yuv444p12: CMD = framecrc -lavfi yuvtestsrc=rate=5:duration=1 -pix_fmt yuv444p12 + FATE_FILTER-$(call ALLYES, AVDEVICE TESTSRC_FILTER FORMAT_FILTER CONCAT_FILTER SCALE_FILTER) += fate-filter-lavd-scalenorm fate-filter-lavd-scalenorm: tests/data/filtergraphs/scalenorm fate-filter-lavd-scalenorm: CMD = framecrc -f lavfi -graph_file $(TARGET_PATH)/tests/data/filtergraphs/scalenorm -i dummy diff --git a/tests/ref/fate/filter-allrgb b/tests/ref/fate/filter-allrgb new file mode 100644 index 0000000..b54efc5 --- /dev/null +++ b/tests/ref/fate/filter-allrgb @@ -0,0 +1,10 @@ +#tb 0: 1/5 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 4096x4096 +#sar 0: 1/1 +0, 0, 0, 1, 50331648, 0x9cc26aca +0, 1, 1, 1, 50331648, 0x9cc26aca +0, 2, 2, 1, 50331648, 0x9cc26aca +0, 3, 3, 1, 50331648, 0x9cc26aca +0, 4, 4, 1, 50331648, 0x9cc26aca diff --git a/tests/ref/fate/filter-allyuv b/tests/ref/fate/filter-allyuv new file mode 100644 index 0000000..477992f --- /dev/null +++ b/tests/ref/fate/filter-allyuv @@ -0,0 +1,10 @@ +#tb 0: 1/5 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 4096x4096 +#sar 0: 1/1 +0, 0, 0, 1, 50331648, 0x70b16aca +0, 1, 1, 1, 50331648, 0x70b16aca +0, 2, 2, 1, 50331648, 0x70b16aca +0, 3, 3, 1, 50331648, 0x70b16aca +0, 4, 4, 1, 50331648, 0x70b16aca diff --git a/tests/ref/fate/filter-rgbtestsrc b/tests/ref/fate/filter-rgbtestsrc new file mode 100644 index 0000000..e18d364 --- /dev/null +++ b/tests/ref/fate/filter-rgbtestsrc @@ -0,0 +1,10 @@ +#tb 0: 1/5 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 320x240 +#sar 0: 1/1 +0, 0, 0, 1, 230400, 0x8c0018bb +0, 1, 1, 1, 230400, 0x8c0018bb +0, 2, 2, 1, 230400, 0x8c0018bb +0, 3, 3, 1, 230400, 0x8c0018bb +0, 4, 4, 1, 230400, 0x8c0018bb diff --git a/tests/ref/fate/filter-smptebars b/tests/ref/fate/filter-smptebars new file mode 100644 index 0000000..2242aef --- /dev/null +++ b/tests/ref/fate/filter-smptebars @@ -0,0 +1,10 @@ +#tb 0: 1/5 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 320x240 +#sar 0: 1/1 +0, 0, 0, 1, 115200, 0x87d91dc5 +0, 1, 1, 1, 115200, 0x87d91dc5 +0, 2, 2, 1, 115200, 0x87d91dc5 +0, 3, 3, 1, 115200, 0x87d91dc5 +0, 4, 4, 1, 115200, 0x87d91dc5 diff --git a/tests/ref/fate/filter-smptehdbars b/tests/ref/fate/filter-smptehdbars new file mode 100644 index 0000000..7a105fb --- /dev/null +++ b/tests/ref/fate/filter-smptehdbars @@ -0,0 +1,10 @@ +#tb 0: 1/5 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 320x240 +#sar 0: 1/1 +0, 0, 0, 1, 230400, 0x85f40706 +0, 1, 1, 1, 230400, 0x85f40706 +0, 2, 2, 1, 230400, 0x85f40706 +0, 3, 3, 1, 230400, 0x85f40706 +0, 4, 4, 1, 230400, 0x85f40706 diff --git a/tests/ref/fate/filter-yuvtestsrc-yuv444p b/tests/ref/fate/filter-yuvtestsrc-yuv444p new file mode 100644 index 0000000..44fcf08 --- /dev/null +++ b/tests/ref/fate/filter-yuvtestsrc-yuv444p @@ -0,0 +1,10 @@ +#tb 0: 1/5 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 320x240 +#sar 0: 1/1 +0, 0, 0, 1, 230400, 0x0e1e2a4f +0, 1, 1, 1, 230400, 0x0e1e2a4f +0, 2, 2, 1, 230400, 0x0e1e2a4f +0, 3, 3, 1, 230400, 0x0e1e2a4f +0, 4, 4, 1, 230400, 0x0e1e2a4f diff --git a/tests/ref/fate/filter-yuvtestsrc-yuv444p12 b/tests/ref/fate/filter-yuvtestsrc-yuv444p12 new file mode 100644 index 0000000..8abac6f --- /dev/null +++ b/tests/ref/fate/filter-yuvtestsrc-yuv444p12 @@ -0,0 +1,10 @@ +#tb 0: 1/5 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 320x240 +#sar 0: 1/1 +0, 0, 0, 1, 460800, 0x3ec49be7 +0, 1, 1, 1, 460800, 0x3ec49be7 +0, 2, 2, 1, 460800, 0x3ec49be7 +0, 3, 3, 1, 460800, 0x3ec49be7 +0, 4, 4, 1, 460800, 0x3ec49be7