diff mbox

[FFmpeg-devel,v1,1/2] tests/fate/filter-video: add fate test for colorbalance

Message ID 20191027093150.13024-1-lance.lmwang@gmail.com
State New
Headers show

Commit Message

Lance Wang Oct. 27, 2019, 9:31 a.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
---
 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 mbox

Patch

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