1# Read/write tests: this uses the codec metadata filter - with no 2# arguments, it decomposes the stream fully and then recomposes it 3# without making any changes. 4 5fate-cbs: fate-cbs-av1 fate-cbs-h264 fate-cbs-hevc fate-cbs-mpeg2 fate-cbs-vp9 6 7FATE_CBS_DEPS = $(call ALLYES, $(1)_DEMUXER $(2)_PARSER $(3)_METADATA_BSF $(4)_DECODER $(5)_MUXER) 8 9define FATE_CBS_TEST 10# (codec, test_name, sample_file, output_format) 11FATE_CBS_$(1) += fate-cbs-$(1)-$(2) 12fate-cbs-$(1)-$(2): CMD = md5 -c:v $(3) -i $(TARGET_SAMPLES)/$(4) -c:v copy -y -bsf:v $(1)_metadata -f $(5) 13endef 14 15# AV1 read/write 16 17FATE_CBS_AV1_CONFORMANCE_SAMPLES = \ 18 av1-1-b8-02-allintra.ivf \ 19 av1-1-b8-03-sizedown.ivf \ 20 av1-1-b8-03-sizeup.ivf \ 21 av1-1-b8-04-cdfupdate.ivf \ 22 av1-1-b8-05-mv.ivf \ 23 av1-1-b8-06-mfmv.ivf \ 24 av1-1-b8-22-svc-L1T2.ivf \ 25 av1-1-b8-22-svc-L2T1.ivf \ 26 av1-1-b8-22-svc-L2T2.ivf \ 27 av1-1-b8-23-film_grain-50.ivf \ 28 av1-1-b10-23-film_grain-50.ivf 29 30FATE_CBS_AV1_SAMPLES = \ 31 decode_model.ivf \ 32 frames_refs_short_signaling.ivf \ 33 non_uniform_tiling.ivf \ 34 seq_hdr_op_param_info.ivf \ 35 switch_frame.ivf 36 37$(foreach N,$(FATE_CBS_AV1_CONFORMANCE_SAMPLES),$(eval $(call FATE_CBS_TEST,av1,$(basename $(N)),av1,av1-test-vectors/$(N),rawvideo))) 38$(foreach N,$(FATE_CBS_AV1_SAMPLES),$(eval $(call FATE_CBS_TEST,av1,$(basename $(N)),av1,av1/$(N),rawvideo))) 39 40FATE_CBS_AV1-$(call FATE_CBS_DEPS, IVF, AV1, AV1, AV1, RAWVIDEO) = $(FATE_CBS_av1) 41FATE_SAMPLES_AVCONV += $(FATE_CBS_AV1-yes) 42fate-cbs-av1: $(FATE_CBS_AV1-yes) 43 44# H.264 read/write 45 46FATE_CBS_H264_CONFORMANCE_SAMPLES = \ 47 SVA_Base_B.264 \ 48 BASQP1_Sony_C.jsv \ 49 FM1_BT_B.h264 \ 50 CVFC1_Sony_C.jsv \ 51 AUD_MW_E.264 \ 52 CVBS3_Sony_C.jsv \ 53 MR1_BT_A.h264 \ 54 CVWP1_TOSHIBA_E.264 \ 55 CVNLFI1_Sony_C.jsv \ 56 Sharp_MP_PAFF_1r2.jvt \ 57 CVMANL1_TOSHIBA_B.264 \ 58 sp1_bt_a.h264 \ 59 CVSE2_Sony_B.jsv \ 60 CABACI3_Sony_B.jsv 61 62FATE_CBS_H264_SAMPLES = \ 63 sei-1.h264 64 65$(foreach N,$(FATE_CBS_H264_CONFORMANCE_SAMPLES),$(eval $(call FATE_CBS_TEST,h264,$(basename $(N)),h264,h264-conformance/$(N),h264))) 66$(foreach N,$(FATE_CBS_H264_SAMPLES),$(eval $(call FATE_CBS_TEST,h264,$(basename $(N)),h264,h264/$(N),h264))) 67 68FATE_CBS_H264-$(call FATE_CBS_DEPS, H264, H264, H264, H264, H264) = $(FATE_CBS_h264) 69FATE_SAMPLES_AVCONV += $(FATE_CBS_H264-yes) 70fate-cbs-h264: $(FATE_CBS_H264-yes) 71 72# H.265 read/write 73 74FATE_CBS_HEVC_SAMPLES = \ 75 STRUCT_A_Samsung_5.bit \ 76 WP_A_Toshiba_3.bit \ 77 SLIST_A_Sony_4.bit \ 78 SLIST_D_Sony_9.bit \ 79 CAINIT_E_SHARP_3.bit \ 80 CAINIT_H_SHARP_3.bit \ 81 TILES_B_Cisco_1.bit \ 82 WPP_A_ericsson_MAIN_2.bit \ 83 WPP_F_ericsson_MAIN_2.bit \ 84 ipcm_E_NEC_2.bit \ 85 NUT_A_ericsson_5.bit \ 86 PICSIZE_A_Bossen_1.bit \ 87 PICSIZE_B_Bossen_1.bit \ 88 RPS_A_docomo_4.bit \ 89 RPS_E_qualcomm_5.bit \ 90 LTRPSPS_A_Qualcomm_1.bit \ 91 RPLM_A_qualcomm_4.bit \ 92 CONFWIN_A_Sony_1.bit \ 93 HRD_A_Fujitsu_2.bit \ 94 SLPPLP_A_VIDYO_2.bit 95 96$(foreach N,$(FATE_CBS_HEVC_SAMPLES),$(eval $(call FATE_CBS_TEST,hevc,$(basename $(N)),hevc,hevc-conformance/$(N),hevc))) 97 98FATE_CBS_HEVC-$(call FATE_CBS_DEPS, HEVC, HEVC, HEVC, HEVC, HEVC) = $(FATE_CBS_hevc) 99FATE_SAMPLES_AVCONV += $(FATE_CBS_HEVC-yes) 100fate-cbs-hevc: $(FATE_CBS_HEVC-yes) 101 102# MPEG-2 read/write 103 104FATE_CBS_MPEG2_SAMPLES = \ 105 hhi_burst_422_short.bits \ 106 sony-ct3.bs \ 107 tcela-6.bits 108 109$(foreach N,$(FATE_CBS_MPEG2_SAMPLES),$(eval $(call FATE_CBS_TEST,mpeg2,$(basename $(N)),mpeg2video,mpeg2/$(N),mpeg2video))) 110 111FATE_CBS_MPEG2-$(call FATE_CBS_DEPS, MPEGVIDEO, MPEGVIDEO, MPEG2, MPEG2VIDEO, MPEG2VIDEO) = $(FATE_CBS_mpeg2) 112FATE_SAMPLES_AVCONV += $(FATE_CBS_MPEG2-yes) 113fate-cbs-mpeg2: $(FATE_CBS_MPEG2-yes) 114 115# VP9 read/write 116 117FATE_CBS_VP9_SAMPLES = \ 118 vp90-2-03-deltaq.webm \ 119 vp90-2-05-resize.ivf \ 120 vp90-2-06-bilinear.webm \ 121 vp90-2-09-lf_deltas.webm \ 122 vp90-2-10-show-existing-frame.webm \ 123 vp90-2-10-show-existing-frame2.webm \ 124 vp90-2-segmentation-aq-akiyo.webm \ 125 vp90-2-segmentation-sf-akiyo.webm \ 126 vp90-2-tiling-pedestrian.webm \ 127 vp91-2-04-yuv440.webm \ 128 vp91-2-04-yuv444.webm \ 129 vp92-2-20-10bit-yuv420.webm \ 130 vp93-2-20-10bit-yuv422.webm \ 131 vp93-2-20-12bit-yuv444.webm 132 133$(foreach N,$(FATE_CBS_VP9_SAMPLES),$(eval $(call FATE_CBS_TEST,vp9,$(basename $(N)),vp9,vp9-test-vectors/$(N),ivf))) 134 135FATE_CBS_VP9-$(call FATE_CBS_DEPS, IVF, VP9, VP9, VP9, IVF) = $(FATE_CBS_vp9) 136FATE_SAMPLES_AVCONV += $(FATE_CBS_VP9-yes) 137fate-cbs-vp9: $(FATE_CBS_VP9-yes) 138