fate: add more tests for hue video filter
authorTobias Rapp <t.rapp@noa-archive.com>
Wed, 9 May 2018 09:30:40 +0000 (11:30 +0200)
committerTobias Rapp <t.rapp@noa-archive.com>
Fri, 11 May 2018 07:16:08 +0000 (09:16 +0200)
Adds tests for the hue angle and brightness filter parameters.
Renames the existing saturation parameter test for consistency.

Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
tests/fate/filter-video.mak
tests/ref/fate/filter-hue [deleted file]
tests/ref/fate/filter-hue1 [new file with mode: 0644]
tests/ref/fate/filter-hue2 [new file with mode: 0644]
tests/ref/fate/filter-hue3 [new file with mode: 0644]

index 17d6363..f2ab263 100644 (file)
@@ -499,8 +499,14 @@ fate-filter-edgedetect: CMD = video_filter "format=gray,perms=random,edgedetect"
 FATE_FILTER_VSYNTH-$(call ALLYES, FORMAT_FILTER PERMS_FILTER EDGEDETECT_FILTER) += fate-filter-edgedetect-colormix
 fate-filter-edgedetect-colormix: CMD = video_filter "format=gbrp,perms=random,edgedetect=mode=colormix" -frames:v 20
 
-FATE_FILTER_VSYNTH-$(call ALLYES, PERMS_FILTER HUE_FILTER) += fate-filter-hue
-fate-filter-hue: CMD = video_filter "perms=random,hue=s=sin(2*PI*t)+1" -frames:v 20
+FATE_FILTER_VSYNTH-$(call ALLYES, PERMS_FILTER HUE_FILTER) += fate-filter-hue1
+fate-filter-hue1: CMD = video_filter "perms=random,hue=s=sin(2*PI*t)+1" -frames:v 20
+
+FATE_FILTER_VSYNTH-$(call ALLYES, PERMS_FILTER HUE_FILTER) += fate-filter-hue2
+fate-filter-hue2: CMD = video_filter "perms=random,hue=h=18*n" -frames:v 20
+
+FATE_FILTER_VSYNTH-$(call ALLYES, PERMS_FILTER HUE_FILTER) += fate-filter-hue3
+fate-filter-hue3: CMD = video_filter "perms=random,hue=b=n-10" -frames:v 20
 
 FATE_FILTER_VSYNTH-$(CONFIG_IDET_FILTER) += fate-filter-idet
 fate-filter-idet: CMD = framecrc -flags bitexact -idct simple -i $(SRC) -vf idet -frames:v 25 -flags +bitexact
diff --git a/tests/ref/fate/filter-hue b/tests/ref/fate/filter-hue
deleted file mode 100644 (file)
index 2f1ae61..0000000
+++ /dev/null
@@ -1 +0,0 @@
-hue                 57463dd9bc17156a51b704dd7271c863
diff --git a/tests/ref/fate/filter-hue1 b/tests/ref/fate/filter-hue1
new file mode 100644 (file)
index 0000000..7059ba7
--- /dev/null
@@ -0,0 +1 @@
+hue1                57463dd9bc17156a51b704dd7271c863
diff --git a/tests/ref/fate/filter-hue2 b/tests/ref/fate/filter-hue2
new file mode 100644 (file)
index 0000000..2e060e1
--- /dev/null
@@ -0,0 +1 @@
+hue2                e951ae8ffb279552abc4354c4de7cb5b
diff --git a/tests/ref/fate/filter-hue3 b/tests/ref/fate/filter-hue3
new file mode 100644 (file)
index 0000000..14a8379
--- /dev/null
@@ -0,0 +1 @@
+hue3                149dc22f5dc9f578f7d281dc3120c09b