[FFmpeg-devel] [PATCH v2 3/3] FATE: add a test for colorbalance
lance.lmwang at gmail.com
lance.lmwang at gmail.com
Wed Nov 13 13:09:47 EET 2019
From: Limin Wang <lance.lmwang at gmail.com>
Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
---
have tested with x86_64, x86_32, mips
tests/fate/filter-video.mak | 12 ++++++++++++
tests/ref/fate/filter-colorbalance | 8 ++++++++
tests/ref/fate/filter-colorbalance-gbrap | 8 ++++++++
tests/ref/fate/filter-colorbalance-gbrap-16 | 8 ++++++++
tests/ref/fate/filter-colorbalance-rgba64 | 8 ++++++++
5 files changed, 44 insertions(+)
create mode 100644 tests/ref/fate/filter-colorbalance
create mode 100644 tests/ref/fate/filter-colorbalance-gbrap
create mode 100644 tests/ref/fate/filter-colorbalance-gbrap-16
create mode 100644 tests/ref/fate/filter-colorbalance-rgba64
diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index b5206909aa..b63b2d6a9c 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -495,6 +495,18 @@ fate-filter-colorlevels: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf format=rgb24,c
FATE_FILTER_VSYNTH-$(CONFIG_COLORLEVELS_FILTER) += fate-filter-colorlevels-16
fate-filter-colorlevels-16: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf format=rgb48,colorlevels -pix_fmt rgb48le -flags +bitexact -sws_flags +accurate_rnd+bitexact
+FATE_FILTER_VSYNTH-$(CONFIG_COLORBALANCE_FILTER) += fate-filter-colorbalance
+fate-filter-colorbalance: 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-gbrap-16
+fate-filter-colorbalance-gbrap-16: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf format=gbrap,colorbalance=bh=.2 -pix_fmt gbrap -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 b/tests/ref/fate/filter-colorbalance
new file mode 100644
index 0000000000..15491fe671
--- /dev/null
+++ b/tests/ref/fate/filter-colorbalance
@@ -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, 0xf68fadfd
+0, 1, 1, 1, 304128, 0xa6302d9a
+0, 2, 2, 1, 304128, 0x758d165a
diff --git a/tests/ref/fate/filter-colorbalance-gbrap b/tests/ref/fate/filter-colorbalance-gbrap
new file mode 100644
index 0000000000..2d76c7d08d
--- /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, 0xdcc71df0
+0, 1, 1, 1, 405504, 0x48d56675
+0, 2, 2, 1, 405504, 0x68058bf0
diff --git a/tests/ref/fate/filter-colorbalance-gbrap-16 b/tests/ref/fate/filter-colorbalance-gbrap-16
new file mode 100644
index 0000000000..2ab96ad70f
--- /dev/null
+++ b/tests/ref/fate/filter-colorbalance-gbrap-16
@@ -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, 0xa497ca1b
+0, 1, 1, 1, 405504, 0x92c24b0e
+0, 2, 2, 1, 405504, 0x965270bd
diff --git a/tests/ref/fate/filter-colorbalance-rgba64 b/tests/ref/fate/filter-colorbalance-rgba64
new file mode 100644
index 0000000000..0a31160bab
--- /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, 0xdf919344
+0, 1, 1, 1, 811008, 0x6e9d9fd5
+0, 2, 2, 1, 811008, 0xe1d8d13b
--
2.21.0
More information about the ffmpeg-devel
mailing list