[FFmpeg-devel,v4,2/3] speedhq: add FATE tests

Submitted by Steinar H. Gunderson on Aug. 2, 2017, 4:08 p.m.

Details

Message ID E1dcwDm-0009po-Ty@pannekake.samfundet.no
State Superseded
Headers show

Commit Message

Steinar H. Gunderson Aug. 2, 2017, 4:08 p.m.
Also add simple FATE tests, based on output produced by the NDI SDK.
---
 tests/Makefile                         | 1 +
 tests/fate/speedhq.mak                 | 7 +++++++
 tests/ref/fate/speedhq-422             | 6 ++++++
 tests/ref/fate/speedhq-422-singlefield | 6 ++++++
 4 files changed, 20 insertions(+)
 create mode 100644 tests/fate/speedhq.mak
 create mode 100644 tests/ref/fate/speedhq-422
 create mode 100644 tests/ref/fate/speedhq-422-singlefield

Comments

Michael Niedermayer Aug. 3, 2017, 12:24 a.m.
On Wed, Aug 02, 2017 at 06:08:46PM +0200, Steinar H. Gunderson wrote:
> Also add simple FATE tests, based on output produced by the NDI SDK.
> ---
>  tests/Makefile                         | 1 +
>  tests/fate/speedhq.mak                 | 7 +++++++
>  tests/ref/fate/speedhq-422             | 6 ++++++
>  tests/ref/fate/speedhq-422-singlefield | 6 ++++++
>  4 files changed, 20 insertions(+)
>  create mode 100644 tests/fate/speedhq.mak
>  create mode 100644 tests/ref/fate/speedhq-422
>  create mode 100644 tests/ref/fate/speedhq-422-singlefield

doesnt work
make -j12 fate-speedhq
make: *** No rule to make target `fate-speedhq-422', needed by `fate-speedhq'.  Stop.

make fate-speedhq-422-singlefield
make: *** No rule to make target `fate-speedhq-422-singlefield'.  Stop.

make fate-list | grep speedhq

[...]

> diff --git a/tests/fate/speedhq.mak b/tests/fate/speedhq.mak
> new file mode 100644
> index 0000000000..3394782809
> --- /dev/null
> +++ b/tests/fate/speedhq.mak
> @@ -0,0 +1,7 @@
> +FATE_SPEEDHQ = fate-speedhq-422                                           \
> +               fate-speedhq-422-singlefield                               \
> +
> +fate-speedhq: $(FATE_SPEEDHQ)
> +
> +fate-speedhq-422:             CMD = framecrc -flags +bitexact -f rawvideo -codec speedhq -vtag SHQ2 -video_size 112x64 -i $(TARGET_SAMPLES)/speedhq/progressive.shq2 -pix_fmt yuv422p
> +fate-speedhq-422-singlefield: CMD = framecrc -flags +bitexact -f rawvideo -codec speedhq -vtag SHQ2 -video_size 112x32 -i $(TARGET_SAMPLES)/speedhq/singlefield.shq2 -pix_fmt yuv422p

a

FATE_SAMPLES_FFMPEG += ...

line probably should be in there

[...]
Steinar H. Gunderson Aug. 3, 2017, 7:17 a.m.
On Thu, Aug 03, 2017 at 02:24:17AM +0200, Michael Niedermayer wrote:
> doesnt work
> make -j12 fate-speedhq
> make: *** No rule to make target `fate-speedhq-422', needed by `fate-speedhq'.  Stop.
> 
> make fate-speedhq-422-singlefield
> make: *** No rule to make target `fate-speedhq-422-singlefield'.  Stop.
> 
> make fate-list | grep speedhq

*sigh*

At this point, it would probably be nice just to find some documentation on
how this is supposed to work, because clearly, I can't get it right by trial
and error. :-)

/* Steinar */

Patch hide | download patch | download mbox

diff --git a/tests/Makefile b/tests/Makefile
index ab83ae855d..f9b9cf4188 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -164,6 +164,7 @@  include $(SRC_PATH)/tests/fate/qt.mak
 include $(SRC_PATH)/tests/fate/qtrle.mak
 include $(SRC_PATH)/tests/fate/real.mak
 include $(SRC_PATH)/tests/fate/screen.mak
+include $(SRC_PATH)/tests/fate/speedhq.mak
 include $(SRC_PATH)/tests/fate/source.mak
 include $(SRC_PATH)/tests/fate/subtitles.mak
 include $(SRC_PATH)/tests/fate/utvideo.mak
diff --git a/tests/fate/speedhq.mak b/tests/fate/speedhq.mak
new file mode 100644
index 0000000000..3394782809
--- /dev/null
+++ b/tests/fate/speedhq.mak
@@ -0,0 +1,7 @@ 
+FATE_SPEEDHQ = fate-speedhq-422                                           \
+               fate-speedhq-422-singlefield                               \
+
+fate-speedhq: $(FATE_SPEEDHQ)
+
+fate-speedhq-422:             CMD = framecrc -flags +bitexact -f rawvideo -codec speedhq -vtag SHQ2 -video_size 112x64 -i $(TARGET_SAMPLES)/speedhq/progressive.shq2 -pix_fmt yuv422p
+fate-speedhq-422-singlefield: CMD = framecrc -flags +bitexact -f rawvideo -codec speedhq -vtag SHQ2 -video_size 112x32 -i $(TARGET_SAMPLES)/speedhq/singlefield.shq2 -pix_fmt yuv422p
diff --git a/tests/ref/fate/speedhq-422 b/tests/ref/fate/speedhq-422
new file mode 100644
index 0000000000..7bb0d2388d
--- /dev/null
+++ b/tests/ref/fate/speedhq-422
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 112x64
+#sar 0: 0/1
+0,          0,          0,        1,    14336, 0x9bb6dc6d
diff --git a/tests/ref/fate/speedhq-422-singlefield b/tests/ref/fate/speedhq-422-singlefield
new file mode 100644
index 0000000000..343c52645c
--- /dev/null
+++ b/tests/ref/fate/speedhq-422-singlefield
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 112x32
+#sar 0: 0/1
+0,          0,          0,        1,     7168, 0x75de4109