fate/cbs: Add an SEI test
authorMark Thompson <sw@jkqxz.net>
Mon, 7 May 2018 22:55:20 +0000 (23:55 +0100)
committerMark Thompson <sw@jkqxz.net>
Thu, 10 May 2018 22:54:02 +0000 (23:54 +0100)
The artificial sample file sei-1.h264 contains five frames (IDR P B I B)
and the following SEI message types:
* Buffering period
* Picture timing
* Pan-scan rectangle (display as 4:3)
* User data registered, containing A/53 closed captions (captions match
  frame content, including reordering)
* Recovery point (at the I frame)
* Display orientation (identity transformation)
* Mastering display (with arbitrary contents)
* Undefined SEI type 1234 (containing ascending bytes)

tests/fate/cbs.mak
tests/ref/fate/cbs-h264-sei-1 [new file with mode: 0644]

index bee349e..911e770 100644 (file)
@@ -14,7 +14,7 @@ endef
 
 # H.264 read/write
 
-FATE_CBS_H264_SAMPLES =   \
+FATE_CBS_H264_CONFORMANCE_SAMPLES = \
     SVA_Base_B.264        \
     BASQP1_Sony_C.jsv     \
     FM1_BT_B.h264         \
@@ -30,7 +30,11 @@ FATE_CBS_H264_SAMPLES =   \
     CVSE2_Sony_B.jsv      \
     CABACI3_Sony_B.jsv
 
-$(foreach N,$(FATE_CBS_H264_SAMPLES),$(eval $(call FATE_CBS_TEST,h264,$(basename $(N)),h264-conformance/$(N),h264)))
+FATE_CBS_H264_SAMPLES = \
+    sei-1.h264
+
+$(foreach N,$(FATE_CBS_H264_CONFORMANCE_SAMPLES),$(eval $(call FATE_CBS_TEST,h264,$(basename $(N)),h264-conformance/$(N),h264)))
+$(foreach N,$(FATE_CBS_H264_SAMPLES),$(eval $(call FATE_CBS_TEST,h264,$(basename $(N)),h264/$(N),h264)))
 
 FATE_CBS_H264-$(call FATE_CBS_DEPS, H264, H264, H264, H264, H264) = $(FATE_CBS_h264)
 FATE_SAMPLES_AVCONV += $(FATE_CBS_H264-yes)
diff --git a/tests/ref/fate/cbs-h264-sei-1 b/tests/ref/fate/cbs-h264-sei-1
new file mode 100644 (file)
index 0000000..2d1cb1f
--- /dev/null
@@ -0,0 +1 @@
+5f537551b7dfab76a172f1aebb028986