From patchwork Tue Jul 25 09:11:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Rapp X-Patchwork-Id: 4454 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.1.76 with SMTP id 73csp5236026vsb; Tue, 25 Jul 2017 02:11:34 -0700 (PDT) X-Received: by 10.223.134.134 with SMTP id 6mr14527391wrx.255.1500973894907; Tue, 25 Jul 2017 02:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500973894; cv=none; d=google.com; s=arc-20160816; b=KKST2FTIqR91KRIUuaI6rCiISOXWcAVN77GRJbSjD9EvbjuJ5WlGRqfwi/1o+nHaEF vK7nfovg2l9V8Hy/xWHSHdSQ9TH/EcvVQMpPsD9vF2SqEF7T96XcrzrBGf6hL15yIMFW 3h73N0MaaC2SLXngXe/hKvb4NJ1xIVBpMhQkpvF14SQRGRgw81PVo8oD6E94SMen1dvP VH0mgDygVnj7E7Zqa8As5owOj9L0QeXAA3T4lAzb1wUrUZKRKDnSII2roJxGdsPpR7iR calSbJJjxmQSKDsUD1sOnYid0Z3foBUAfNc7c9Ax2ZRWMdn0AAUPcUdDhzg/jgyP+wQy dvGA== 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:references:in-reply-to:message-id:date :to:from:delivered-to:arc-authentication-results; bh=dA5ktc9hQXR4+Gn7VJsu2sm+oAbtl2MKGqx7t2jTIvQ=; b=DmHnUWd1Go8nfMRA6UBTz1yADMAUuRFgU0V3IZ2fnZTScxN/F26xkT90Y+QXJ3+ZEW b0jSwoniyPkNC9WuynghPcDh5HRutwGdBAESqRFzRZ9zmQUs0Aym4dP7zLT15JuE7Dw1 njYPBUQmnMpifBjrlfzK/oDRO/GXgH7HVNqF/GaCHAZRB4CDJA1RIK///DQ9bcbjdkSl YSGn0p1Y+SxgUhxhMPvAMk2lZmSQgCGwFGPaAEF4q/AWIu4T9m2E8i26SuFdJXCMLF3J +K1Ap7Vdn+LcF6ckgp7InV+SfVG4QK6LrPaHZXKh4FHuK7cO/e4m2IawrBLfZVJ9pqhD EWNg== 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 64si9612939wre.227.2017.07.25.02.11.33; Tue, 25 Jul 2017 02:11:34 -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 53B85689C21; Tue, 25 Jul 2017 12:11:30 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mx01.mail.netstorage.at (mx01.mail.netstorage.at [89.207.144.13]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id F01FB689933 for ; Tue, 25 Jul 2017 12:11:23 +0300 (EEST) Received: from p1002.netstorage.at (p1002.netstorage.at [89.207.146.186]) by mx01.mail.netstorage.at (Postfix) with ESMTPS id 79F8BA002D for ; Tue, 25 Jul 2017 11:11:05 +0200 (CEST) Received: from mailix (noaport.de [46.237.252.213]) by p1002.netstorage.at (Postfix) with ESMTPA id 2E32D81534 for ; Tue, 25 Jul 2017 11:11:05 +0200 (CEST) Received: from frogstar-a.kuhnle.local (frogstar-a.kuhnle.local [192.168.0.26]) by mailix with ESMTPA ; Tue, 25 Jul 2017 11:11:05 +0200 From: Tobias Rapp To: ffmpeg-devel@ffmpeg.org Date: Tue, 25 Jul 2017 11:11:04 +0200 Message-Id: <1500973864-8679-1-git-send-email-t.rapp@noa-archive.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500908213-3882-1-git-send-email-t.rapp@noa-archive.com> References: <1500908213-3882-1-git-send-email-t.rapp@noa-archive.com> X-PPP-Message-ID: <20170725091105.24523.80783@p1002.netstorage.at> X-PPP-Vhost: noa-archive.com X-NetStorage-MailScanner-Information: Please contact the ISP for more information X-NetStorage-MailScanner-ID: 79F8BA002D.A9641 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 v3] 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. Also adds a test for testsrc2 filter with rgb+alpha. Signed-off-by: Tobias Rapp --- tests/fate/filter-video.mak | 24 ++++++++++ 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-testsrc2-rgba | 75 ++++++++++++++++++++++++++++++ tests/ref/fate/filter-yuvtestsrc-yuv444p | 10 ++++ tests/ref/fate/filter-yuvtestsrc-yuv444p12 | 10 ++++ 9 files changed, 169 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-testsrc2-rgba 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..b24da05 100644 --- a/tests/fate/filter-video.mak +++ b/tests/fate/filter-video.mak @@ -80,6 +80,30 @@ 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 TESTSRC2_FILTER) += fate-filter-testsrc2-rgba +fate-filter-testsrc2-rgba: CMD = framecrc -lavfi testsrc2=r=7:d=10 -pix_fmt rgba + +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,format=yuv444p12 -pix_fmt yuv444p12le + 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-testsrc2-rgba b/tests/ref/fate/filter-testsrc2-rgba new file mode 100644 index 0000000..42ecfe5 --- /dev/null +++ b/tests/ref/fate/filter-testsrc2-rgba @@ -0,0 +1,75 @@ +#tb 0: 1/7 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 320x240 +#sar 0: 1/1 +0, 0, 0, 1, 307200, 0xa2e60897 +0, 1, 1, 1, 307200, 0x67f03406 +0, 2, 2, 1, 307200, 0x683843a1 +0, 3, 3, 1, 307200, 0x285a682c +0, 4, 4, 1, 307200, 0x7444a71e +0, 5, 5, 1, 307200, 0xde9e40d7 +0, 6, 6, 1, 307200, 0xc8bbd13d +0, 7, 7, 1, 307200, 0x6f179555 +0, 8, 8, 1, 307200, 0x274254c9 +0, 9, 9, 1, 307200, 0xb3ee50db +0, 10, 10, 1, 307200, 0x0ebe40d8 +0, 11, 11, 1, 307200, 0xa8216930 +0, 12, 12, 1, 307200, 0x467778e2 +0, 13, 13, 1, 307200, 0xe6b02e74 +0, 14, 14, 1, 307200, 0x18a5a923 +0, 15, 15, 1, 307200, 0x3ff2086b +0, 16, 16, 1, 307200, 0x71ebe464 +0, 17, 17, 1, 307200, 0x671cf604 +0, 18, 18, 1, 307200, 0xe55dfee7 +0, 19, 19, 1, 307200, 0xc9c497ea +0, 20, 20, 1, 307200, 0xb263b768 +0, 21, 21, 1, 307200, 0xd24ee5a8 +0, 22, 22, 1, 307200, 0x9b77a2b7 +0, 23, 23, 1, 307200, 0x729c1b08 +0, 24, 24, 1, 307200, 0x725574db +0, 25, 25, 1, 307200, 0x413cf660 +0, 26, 26, 1, 307200, 0xe8db86b0 +0, 27, 27, 1, 307200, 0xf538a378 +0, 28, 28, 1, 307200, 0x89638534 +0, 29, 29, 1, 307200, 0x0858618b +0, 30, 30, 1, 307200, 0x8b5f961c +0, 31, 31, 1, 307200, 0xddbb5e48 +0, 32, 32, 1, 307200, 0x9352a610 +0, 33, 33, 1, 307200, 0xcf466635 +0, 34, 34, 1, 307200, 0xaf69099c +0, 35, 35, 1, 307200, 0x18811110 +0, 36, 36, 1, 307200, 0x7b7dcbd1 +0, 37, 37, 1, 307200, 0x27e2f523 +0, 38, 38, 1, 307200, 0x563debe1 +0, 39, 39, 1, 307200, 0x48c71784 +0, 40, 40, 1, 307200, 0x4b6476b4 +0, 41, 41, 1, 307200, 0xa7a21b13 +0, 42, 42, 1, 307200, 0xd14d86c0 +0, 43, 43, 1, 307200, 0x12b1caef +0, 44, 44, 1, 307200, 0xae58ad7e +0, 45, 45, 1, 307200, 0x908bbb66 +0, 46, 46, 1, 307200, 0xc6d4f77e +0, 47, 47, 1, 307200, 0x08a90cdf +0, 48, 48, 1, 307200, 0x6c344d22 +0, 49, 49, 1, 307200, 0xb351a388 +0, 50, 50, 1, 307200, 0x8209bbff +0, 51, 51, 1, 307200, 0xfa1e34e0 +0, 52, 52, 1, 307200, 0x76dd4c48 +0, 53, 53, 1, 307200, 0xb01ab30f +0, 54, 54, 1, 307200, 0x2e2ec7c5 +0, 55, 55, 1, 307200, 0x6382f929 +0, 56, 56, 1, 307200, 0xa5cfce14 +0, 57, 57, 1, 307200, 0xd9339546 +0, 58, 58, 1, 307200, 0xf5b9a815 +0, 59, 59, 1, 307200, 0x99bbc602 +0, 60, 60, 1, 307200, 0x642242e6 +0, 61, 61, 1, 307200, 0x9626ad04 +0, 62, 62, 1, 307200, 0xba276036 +0, 63, 63, 1, 307200, 0x04bb2e18 +0, 64, 64, 1, 307200, 0x57bf0cc6 +0, 65, 65, 1, 307200, 0xce4c0f05 +0, 66, 66, 1, 307200, 0x9fa71634 +0, 67, 67, 1, 307200, 0xb0525b7f +0, 68, 68, 1, 307200, 0x5a6c7523 +0, 69, 69, 1, 307200, 0x1dfc11fa 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