From patchwork Sun Oct 27 09:31:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Wang X-Patchwork-Id: 15986 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id A2E05446881 for ; Sun, 27 Oct 2019 11:32:43 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7F1B768B021; Sun, 27 Oct 2019 11:32:43 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1DC2C68AFEE for ; Sun, 27 Oct 2019 11:32:36 +0200 (EET) Received: by mail-pg1-f172.google.com with SMTP id c8so4542312pgb.2 for ; Sun, 27 Oct 2019 02:32:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=G7IAAT5y9z1MnrnWlZ55zjS4ReR9+bWaf/CB493+dRs=; b=DcdR9Ve4L/Ld5HO0qyh//HcvC5GYmGUAMYPpHEyPmxWD09tvsZH58ndKAO/JO1x8Nx 4B8xP2soag94cHY4ANnYIxMPu5xdYY2pLM3KTykP8TzhLFlILtHoDe7RitxwkSbiuK2x Noj6w0a2PDDO0/VAEJvt32kCzGrlMaG4Gz8c0B1wfdwzWtX0+j5R+hZpUeeINYLrNnvb jlSIScEBn1+Y703W8R+K+mm3CbUc8KaIlKCtrQ4pcpdbxuFq+++3mh2ovkjOSj13QCYU 6trzQ/OhOuOMyRWXC+i10JgSkx5OwsUs2SMVm/Zjd8Ex3bus0gngBY5LvxNhN9q2TGj/ w/8w== 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; bh=G7IAAT5y9z1MnrnWlZ55zjS4ReR9+bWaf/CB493+dRs=; b=Q2c8ZcCBvcP1HOphitAdtki5s4kI4jpl8WceFFwk9jLfIOc7VdUz465Rm4mh3rO5iG FdlaMMeJ42ZBRPKJyT3LNdxoO2oj+iz84t4c4kNQTCuDhGa5IHUvaeOty1HhMDys5Fit /WXq61sATq7ze7/xDkY1uXWxqibYIHgCY/qiOeVl8DtQAKLfHk6aVahIV+XPmTm5Q2lk QvHFf24qsUyrJ9SF4jfZtB5gK9fQKoBnhgo02a7fqdz6QqbU0YWtF69/RamJGHfvCHWs 7D5mjfRBs9z/fTZZx4oKAkH9L06sYtf/LPdYyTibxmaKQ4J3R8vxT/K1No/c7zjb6dZO OvNQ== X-Gm-Message-State: APjAAAUWYh1ZY2ZSH6Jx77V5QOw3mPEZp8JHhVkNZKX4/Bqe+Kj46tIU e/s/GkWgkK9tB5QFwv4DE//K9Hrscmo= X-Google-Smtp-Source: APXvYqzfFJoJ7qrNnkgG8fQ7dQjWFII1a56bLDI86JcoaAawWO0uJNA70un2H4EFH18QdNWf7Pw3qg== X-Received: by 2002:a63:d0f:: with SMTP id c15mr14831635pgl.313.1572168754039; Sun, 27 Oct 2019 02:32:34 -0700 (PDT) Received: from vpn.localdomain ([47.90.99.151]) by smtp.gmail.com with ESMTPSA id w2sm7048801pfn.57.2019.10.27.02.32.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Oct 2019 02:32:33 -0700 (PDT) From: lance.lmwang@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Sun, 27 Oct 2019 17:31:49 +0800 Message-Id: <20191027093150.13024-1-lance.lmwang@gmail.com> X-Mailer: git-send-email 2.9.5 Subject: [FFmpeg-devel] [PATCH v1 1/2] tests/fate/filter-video: add fate test for colorbalance 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: Limin Wang MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Limin Wang Signed-off-by: Limin Wang --- tests/fate/filter-video.mak | 12 ++++++++++++ tests/ref/fate/filter-colorbalance-gbrap | 8 ++++++++ tests/ref/fate/filter-colorbalance-gbrap16 | 8 ++++++++ tests/ref/fate/filter-colorbalance-rgb24 | 8 ++++++++ tests/ref/fate/filter-colorbalance-rgba64 | 8 ++++++++ 5 files changed, 44 insertions(+) create mode 100644 tests/ref/fate/filter-colorbalance-gbrap create mode 100644 tests/ref/fate/filter-colorbalance-gbrap16 create mode 100644 tests/ref/fate/filter-colorbalance-rgb24 create mode 100644 tests/ref/fate/filter-colorbalance-rgba64 diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak index 9e6351b..ff5d7fc 100644 --- a/tests/fate/filter-video.mak +++ b/tests/fate/filter-video.mak @@ -489,6 +489,18 @@ fate-filter-scalechroma: CMD = framecrc -flags bitexact -s 352x288 -pix_fmt yuv4 FATE_FILTER_VSYNTH-$(CONFIG_VFLIP_FILTER) += fate-filter-vflip fate-filter-vflip: CMD = video_filter "vflip" +FATE_FILTER_VSYNTH-$(CONFIG_COLORBALANCE_FILTER) += fate-filter-colorbalance-rgb24 +fate-filter-colorbalance-rgb24: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf format=rgb24,colorbalance=rs=.2 -flags +bitexact -sws_flags +accurate_rnd+bitexact -frames:v 3 + +FATE_FILTER_VSYNTH-$(CONFIG_COLORBALANCE_FILTER) += fate-filter-colorbalance-gbrap +fate-filter-colorbalance-gbrap: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf format=gbrap,colorbalance=gh=.2 -flags +bitexact -sws_flags +accurate_rnd+bitexact -frames:v 3 + +FATE_FILTER_VSYNTH-$(CONFIG_COLORBALANCE_FILTER) += fate-filter-colorbalance-rgba64 +fate-filter-colorbalance-rgba64: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf format=rgba64,colorbalance=rm=.2 -pix_fmt rgba64le -flags +bitexact -sws_flags +accurate_rnd+bitexact -frames:v 3 + +FATE_FILTER_VSYNTH-$(CONFIG_COLORBALANCE_FILTER) += fate-filter-colorbalance-gbrap16 +fate-filter-colorbalance-gbrap16: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf format=gbrap16,colorbalance=bh=.2 -pix_fmt gbrap16le -flags +bitexact -sws_flags +accurate_rnd+bitexact -frames:v 3 + FATE_FILTER_VSYNTH-$(CONFIG_COLORMATRIX_FILTER) += fate-filter-colormatrix1 fate-filter-colormatrix1: CMD = video_filter "colormatrix=bt601:smpte240m,colormatrix=smpte240m:fcc,colormatrix=fcc:bt601,colormatrix=bt601:fcc,colormatrix=fcc:smpte240m,colormatrix=smpte240m:bt709" diff --git a/tests/ref/fate/filter-colorbalance-gbrap b/tests/ref/fate/filter-colorbalance-gbrap new file mode 100644 index 0000000..a82f46d --- /dev/null +++ b/tests/ref/fate/filter-colorbalance-gbrap @@ -0,0 +1,8 @@ +#tb 0: 1/25 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 352x288 +#sar 0: 0/1 +0, 0, 0, 1, 405504, 0x5eaa45b9 +0, 1, 1, 1, 405504, 0x2264ab1e +0, 2, 2, 1, 405504, 0xadeda501 diff --git a/tests/ref/fate/filter-colorbalance-gbrap16 b/tests/ref/fate/filter-colorbalance-gbrap16 new file mode 100644 index 0000000..1ed7446 --- /dev/null +++ b/tests/ref/fate/filter-colorbalance-gbrap16 @@ -0,0 +1,8 @@ +#tb 0: 1/25 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 352x288 +#sar 0: 0/1 +0, 0, 0, 1, 811008, 0xd2456ee1 +0, 1, 1, 1, 811008, 0xe6745039 +0, 2, 2, 1, 811008, 0x61b53da9 diff --git a/tests/ref/fate/filter-colorbalance-rgb24 b/tests/ref/fate/filter-colorbalance-rgb24 new file mode 100644 index 0000000..e9e6b36 --- /dev/null +++ b/tests/ref/fate/filter-colorbalance-rgb24 @@ -0,0 +1,8 @@ +#tb 0: 1/25 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 352x288 +#sar 0: 0/1 +0, 0, 0, 1, 304128, 0x7e9c5bde +0, 1, 1, 1, 304128, 0x8d30fce9 +0, 2, 2, 1, 304128, 0x8aafb4e8 diff --git a/tests/ref/fate/filter-colorbalance-rgba64 b/tests/ref/fate/filter-colorbalance-rgba64 new file mode 100644 index 0000000..0b0f333 --- /dev/null +++ b/tests/ref/fate/filter-colorbalance-rgba64 @@ -0,0 +1,8 @@ +#tb 0: 1/25 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 352x288 +#sar 0: 0/1 +0, 0, 0, 1, 811008, 0xa889b337 +0, 1, 1, 1, 811008, 0x4c6a132f +0, 2, 2, 1, 811008, 0xba9384f4