diff mbox

[FFmpeg-devel,4/5] FATE : add libyami fate test case

Message ID 9d7e9155-5f38-7c4b-8138-17ae2a537b00@gmail.com
State Rejected
Headers show

Commit Message

Jun Zhao Aug. 15, 2016, 8:25 a.m. UTC
From 2223690b3ff42dca2b4a579d186f10f8c85cbbb0 Mon Sep 17 00:00:00 2001
From: Jun Zhao <jun.zhao@intel.com>
Date: Mon, 15 Aug 2016 15:56:14 +0800
Subject: [[PATCH] 4/5] FATE : add libyami fate test case.

add libyami fate test case.

Signed-off-by: Jun Zhao <jun.zhao@intel.com>
---
 tests/Makefile                             |   1 +
 tests/fate/libyami.mak                     | 745 +++++++++++++++++++++++++++++
 tests/ref/fate/libyami-h264-enc_yuv420     |  55 +++
 tests/ref/fate/libyami-h264-enc_yuv420_cbr |  55 +++
 tests/ref/fate/libyami-h264-enc_yuv420_gop |  55 +++
 tests/ref/fate/libyami-h264-enc_yuv420_qp  |  55 +++
 tests/ref/fate/libyami-h264-enc_yuv420_vbr |  55 +++
 tests/ref/fate/libyami-h264-tran_mp4       | 131 +++++
 tests/ref/fate/libyami-vp8-enc_yuv420      |  55 +++
 tests/ref/fate/libyami-vp8-enc_yuv420_cbr  |  55 +++
 tests/ref/fate/libyami-vp8-enc_yuv420_gop  |  55 +++
 tests/ref/fate/libyami-vp8-enc_yuv420_qp   |  55 +++
 tests/ref/fate/libyami-vp8-enc_yuv420_vbr  |  55 +++
 tests/ref/fate/libyami-vp8-tran_mp4        | 131 +++++
 tests/ref/fate/source                      |   3 +
 15 files changed, 1561 insertions(+)
 create mode 100644 tests/fate/libyami.mak
 create mode 100644 tests/ref/fate/libyami-h264-enc_yuv420
 create mode 100644 tests/ref/fate/libyami-h264-enc_yuv420_cbr
 create mode 100644 tests/ref/fate/libyami-h264-enc_yuv420_gop
 create mode 100644 tests/ref/fate/libyami-h264-enc_yuv420_qp
 create mode 100644 tests/ref/fate/libyami-h264-enc_yuv420_vbr
 create mode 100644 tests/ref/fate/libyami-h264-tran_mp4
 create mode 100644 tests/ref/fate/libyami-vp8-enc_yuv420
 create mode 100644 tests/ref/fate/libyami-vp8-enc_yuv420_cbr
 create mode 100644 tests/ref/fate/libyami-vp8-enc_yuv420_gop
 create mode 100644 tests/ref/fate/libyami-vp8-enc_yuv420_qp
 create mode 100644 tests/ref/fate/libyami-vp8-enc_yuv420_vbr
 create mode 100644 tests/ref/fate/libyami-vp8-tran_mp4

Comments

Carl Eugen Hoyos Aug. 17, 2016, 12:52 p.m. UTC | #1
Hi!

Independently of the question how useful libyami is:
We do not add fate tests for external libraries.

Carl Eugen
diff mbox

Patch

diff --git a/tests/Makefile b/tests/Makefile
index 895944d..f045b1b 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -134,6 +134,7 @@  include $(SRC_PATH)/tests/fate/flac.mak
 include $(SRC_PATH)/tests/fate/gapless.mak
 include $(SRC_PATH)/tests/fate/gif.mak
 include $(SRC_PATH)/tests/fate/h264.mak
+include $(SRC_PATH)/tests/fate/libyami.mak
 include $(SRC_PATH)/tests/fate/hevc.mak
 include $(SRC_PATH)/tests/fate/image.mak
 include $(SRC_PATH)/tests/fate/indeo.mak
diff --git a/tests/fate/libyami.mak b/tests/fate/libyami.mak
new file mode 100644
index 0000000..baa3367
--- /dev/null
+++ b/tests/fate/libyami.mak
@@ -0,0 +1,745 @@ 
+FATE_LIBYAMI_H264 = aud_mw_e                                                    \
+            ba1_ft_c                                                    \
+            ba1_sony_d                                                  \
+            ba2_sony_f                                                  \
+            ba_mw_d                                                     \
+            bamq1_jvc_c                                                 \
+            bamq2_jvc_c                                                 \
+            banm_mw_d                                                   \
+            basqp1_sony_c                                               \
+            caba1_sony_d                                                \
+            caba1_sva_b                                                 \
+            caba2_sony_e                                                \
+            caba2_sva_b                                                 \
+            caba3_sony_c                                                \
+            caba3_sva_b                                                 \
+            caba3_toshiba_e                                             \
+            cabac_mot_fld0_full                                         \
+            cabac_mot_frm0_full                                         \
+            cabac_mot_mbaff0_full                                       \
+            cabac_mot_picaff0_full                                      \
+            cabaci3_sony_b                                              \
+            cabast3_sony_e                                              \
+            cabastbr3_sony_b                                            \
+            cabref3_sand_d                                              \
+            cacqp3_sony_d                                               \
+            cafi1_sva_c                                                 \
+            cama1_sony_c                                                \
+            cama1_toshiba_b                                             \
+            cama1_vtc_c                                                 \
+            cama2_vtc_b                                                 \
+            cama3_sand_e                                                \
+            cama3_vtc_b                                                 \
+            camaci3_sony_c                                              \
+            camanl1_toshiba_b                                           \
+            camanl2_toshiba_b                                           \
+            camanl3_sand_e                                              \
+            camasl3_sony_b                                              \
+            camp_mot_mbaff_l30                                          \
+            camp_mot_mbaff_l31                                          \
+            canl1_sony_e                                                \
+            canl1_sva_b                                                 \
+            canl1_toshiba_g                                             \
+            canl2_sony_e                                                \
+            canl2_sva_b                                                 \
+            canl3_sony_c                                                \
+            canl3_sva_b                                                 \
+            canl4_sva_b                                                 \
+            canlma2_sony_c                                              \
+            canlma3_sony_c                                              \
+            capa1_toshiba_b                                             \
+            capama3_sand_f                                              \
+            capcm1_sand_e                                               \
+            capcmnl1_sand_e                                             \
+            capm3_sony_d                                                \
+            caqp1_sony_b                                                \
+            cavlc_mot_fld0_full_b                                       \
+            cavlc_mot_frm0_full_b                                       \
+            cavlc_mot_mbaff0_full_b                                     \
+            cavlc_mot_picaff0_full_b                                    \
+            cawp1_toshiba_e                                             \
+            cawp5_toshiba_e                                             \
+            ci1_ft_b                                                    \
+            ci_mw_d                                                     \
+            cvbs3_sony_c                                                \
+            cvcanlma2_sony_c                                            \
+            cvfi1_sony_d                                                \
+            cvfi1_sva_c                                                 \
+            cvfi2_sony_h                                                \
+            cvfi2_sva_c                                                 \
+            cvma1_sony_d                                                \
+            cvma1_toshiba_b                                             \
+            cvmanl1_toshiba_b                                           \
+            cvmanl2_toshiba_b                                           \
+            cvmapaqp3_sony_e                                            \
+            cvmaqp2_sony_g                                              \
+            cvmaqp3_sony_d                                              \
+            cvmp_mot_fld_l30_b                                          \
+            cvmp_mot_frm_l31_b                                          \
+            cvnlfi1_sony_c                                              \
+            cvnlfi2_sony_h                                              \
+            cvpa1_toshiba_b                                             \
+            cvpcmnl1_sva_c                                              \
+            cvpcmnl2_sva_c                                              \
+            cvwp1_toshiba_e                                             \
+            cvwp2_toshiba_e                                             \
+            cvwp3_toshiba_e                                             \
+            cvwp5_toshiba_e                                             \
+            fi1_sony_e                                                  \
+            frext-alphaconformanceg                                     \
+            frext-bcrm_freh10                                           \
+            frext-brcm_freh11                                           \
+            frext-brcm_freh3                                            \
+            frext-brcm_freh4                                            \
+            frext-brcm_freh5                                            \
+            frext-brcm_freh8                                            \
+            frext-brcm_freh9                                            \
+            frext-freh12_b                                              \
+            frext-freh1_b                                               \
+            frext-freh2_b                                               \
+            frext-freh6                                                 \
+            frext-freh7_b                                               \
+            frext-frext01_jvc_d                                         \
+            frext-frext02_jvc_c                                         \
+            frext-frext1_panasonic_c                                    \
+            frext-frext2_panasonic_b                                    \
+            frext-frext3_panasonic_d                                    \
+            frext-frext4_panasonic_a                                    \
+            frext-frext_mmco4_sony_b                                    \
+            frext-hcaff1_hhi_b                                          \
+            frext-hcafr1_hhi_c                                          \
+            frext-hcafr2_hhi_a                                          \
+            frext-hcafr3_hhi_a                                          \
+            frext-hcafr4_hhi_a                                          \
+            frext-hcamff1_hhi_b                                         \
+            frext-hpca_brcm_c                                           \
+            frext-hpcadq_brcm_b                                         \
+            frext-hpcafl_bcrm_c                                         \
+            frext-hpcaflnl_bcrm_c                                       \
+            frext-hpcalq_brcm_b                                         \
+            frext-hpcamapalq_bcrm_b                                     \
+            frext-hpcamolq_brcm_b                                       \
+            frext-hpcanl_brcm_c                                         \
+            frext-hpcaq2lq_brcm_b                                       \
+            frext-hpcv_brcm_a                                           \
+            frext-hpcvfl_bcrm_a                                         \
+            frext-hpcvflnl_bcrm_a                                       \
+            frext-hpcvmolq_brcm_b                                       \
+            frext-hpcvnl_brcm_a                                         \
+            hcbp2_hhi_a                                                 \
+            hcmp1_hhi_a                                                 \
+            ls_sva_d                                                    \
+            midr_mw_d                                                   \
+            mps_mw_a                                                    \
+            mr1_bt_a                                                    \
+            mr1_mw_a                                                    \
+            mr2_mw_a                                                    \
+            mr2_tandberg_e                                              \
+            mr3_tandberg_b                                              \
+            mr4_tandberg_c                                              \
+            mr5_tandberg_c                                              \
+            mr9_bt_b                                                    \
+            mv1_brcm_d                                                  \
+            nl1_sony_d                                                  \
+            nl2_sony_h                                                  \
+            nl3_sva_e                                                   \
+            nlmq1_jvc_c                                                 \
+            nlmq2_jvc_c                                                 \
+            nrf_mw_e                                                    \
+            sharp_mp_field_1_b                                          \
+            sharp_mp_field_2_b                                          \
+            sharp_mp_field_3_b                                          \
+            sharp_mp_paff_1r2                                           \
+            sharp_mp_paff_2r                                            \
+            sl1_sva_b                                                   \
+            sva_ba1_b                                                   \
+            sva_ba2_d                                                   \
+            sva_base_b                                                  \
+            sva_cl1_e                                                   \
+            sva_fm1_e                                                   \
+            sva_nl1_b                                                   \
+            sva_nl2_e                                                   \
+
+
+
+FATE_LIBYAMI_H264_REF  := $(FATE_LIBYAMI_H264:%=h264-conformance-%) 
+
+FATE_LIBYAMI_H264_REINIT_REF  := $(FATE_LIBYAMI_H264_REINIT_TESTS:%=h264-reinit-%) 
+
+FATE_LIBYAMI_H264  := $(FATE_LIBYAMI_H264:%=fate-libyami-h264-conformance-%)                    \
+              $(FATE_LIBYAMI_H264_REINIT_TESTS:%=fate-libyami-h264-reinit-%)            \
+              fate-libyami-h264-extreme-plane-pred                              \
+
+FATE_LIBYAMI_H264-$(call DEMDEC, H264, LIBYAMI_H264) += $(FATE_LIBYAMI_H264)
+FATE_LIBYAMI_H264-$(call ALLYES, MOV_DEMUXER H264_MP4TOANNEXB_BSF) += fate-libyami-h264-bsf-mp4toannexb
+FATE_LIBYAMI_H264-$(call DEMDEC, MATROSKA, LIBYAMI_H264) += fate-libyami-h264-direct-bff
+
+FATE_SAMPLES_AVCONV += $(FATE_LIBYAMI_H264-yes)
+fate-libyami-h264: $(FATE_LIBYAMI_H264-yes)
+
+fate-libyami-h264-conformance-aud_mw_e:                   CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/AUD_MW_E.264 -pix_fmt yuv420p
+
+#force framerate so that the option is tested, theres no other case that tests it, its not needed at all otherwise here
+fate-libyami-h264-conformance-ba1_ft_c:                           CMD = framecrc -framerate 19 -i $(TARGET_SAMPLES)/h264-conformance/BA1_FT_C.264 -pix_fmt yuv420p
+
+fate-libyami-h264-conformance-ba1_sony_d:                 CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/BA1_Sony_D.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-ba2_sony_f:                 CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/BA2_Sony_F.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-ba3_sva_c:                  CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/BA3_SVA_C.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-ba_mw_d:                    CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/BA_MW_D.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-bamq1_jvc_c:                CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/BAMQ1_JVC_C.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-bamq2_jvc_c:                CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/BAMQ2_JVC_C.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-banm_mw_d:                  CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/BANM_MW_D.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-basqp1_sony_c:              CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/BASQP1_Sony_C.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-caba1_sony_d:               CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CABA1_Sony_D.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-caba1_sva_b:                CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CABA1_SVA_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-caba2_sony_e:               CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CABA2_Sony_E.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-caba2_sva_b:                CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CABA2_SVA_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-caba3_sony_c:               CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CABA3_Sony_C.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-caba3_sva_b:                CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CABA3_SVA_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-caba3_toshiba_e:            CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CABA3_TOSHIBA_E.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-cabac_mot_fld0_full:        CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/camp_mot_fld0_full.26l -pix_fmt yuv420p
+fate-libyami-h264-conformance-cabac_mot_frm0_full:        CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/camp_mot_frm0_full.26l -pix_fmt yuv420p
+fate-libyami-h264-conformance-cabac_mot_mbaff0_full:      CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/camp_mot_mbaff0_full.26l -pix_fmt yuv420p
+fate-libyami-h264-conformance-cabac_mot_picaff0_full:     CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/camp_mot_picaff0_full.26l -pix_fmt yuv420p
+fate-libyami-h264-conformance-cabaci3_sony_b:             CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CABACI3_Sony_B.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-cabast3_sony_e:             CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CABAST3_Sony_E.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-cabastbr3_sony_b:           CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CABASTBR3_Sony_B.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-cabref3_sand_d:             CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CABREF3_Sand_D.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-cacqp3_sony_d:              CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CACQP3_Sony_D.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-cafi1_sva_c:                CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CAFI1_SVA_C.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-cama1_sony_c:               CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CAMA1_Sony_C.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-cama1_toshiba_b:            CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CAMA1_TOSHIBA_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-cama1_vtc_c:                CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/cama1_vtc_c.avc -pix_fmt yuv420p
+fate-libyami-h264-conformance-cama2_vtc_b:                CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/cama2_vtc_b.avc -pix_fmt yuv420p
+fate-libyami-h264-conformance-cama3_sand_e:               CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CAMA3_Sand_E.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-cama3_vtc_b:                CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/cama3_vtc_b.avc -pix_fmt yuv420p
+fate-libyami-h264-conformance-camaci3_sony_c:             CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CAMACI3_Sony_C.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-camanl1_toshiba_b:          CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CAMANL1_TOSHIBA_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-camanl2_toshiba_b:          CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CAMANL2_TOSHIBA_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-camanl3_sand_e:             CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CAMANL3_Sand_E.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-camasl3_sony_b:             CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CAMASL3_Sony_B.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-camp_mot_mbaff_l30:         CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CAMP_MOT_MBAFF_L30.26l -pix_fmt yuv420p
+fate-libyami-h264-conformance-camp_mot_mbaff_l31:         CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CAMP_MOT_MBAFF_L31.26l -pix_fmt yuv420p
+fate-libyami-h264-conformance-canl1_sony_e:               CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CANL1_Sony_E.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-canl1_sva_b:                CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CANL1_SVA_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-canl1_toshiba_g:            CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CANL1_TOSHIBA_G.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-canl2_sony_e:               CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CANL2_Sony_E.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-canl2_sva_b:                CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CANL2_SVA_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-canl3_sony_c:               CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CANL3_Sony_C.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-canl3_sva_b:                CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CANL3_SVA_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-canl4_sva_b:                CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CANL4_SVA_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-canlma2_sony_c:             CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CANLMA2_Sony_C.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-canlma3_sony_c:             CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CANLMA3_Sony_C.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-capa1_toshiba_b:            CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CAPA1_TOSHIBA_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-capama3_sand_f:             CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CAPAMA3_Sand_F.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-capcm1_sand_e:              CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CAPCM1_Sand_E.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-capcmnl1_sand_e:            CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CAPCMNL1_Sand_E.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-capm3_sony_d:               CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CAPM3_Sony_D.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-caqp1_sony_b:               CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CAQP1_Sony_B.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-cavlc_mot_fld0_full_b:      CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/cvmp_mot_fld0_full_B.26l -pix_fmt yuv420p
+fate-libyami-h264-conformance-cavlc_mot_frm0_full_b:      CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/cvmp_mot_frm0_full_B.26l -pix_fmt yuv420p
+fate-libyami-h264-conformance-cavlc_mot_mbaff0_full_b:    CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/cvmp_mot_mbaff0_full_B.26l -pix_fmt yuv420p
+fate-libyami-h264-conformance-cavlc_mot_picaff0_full_b:   CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/cvmp_mot_picaff0_full_B.26l -pix_fmt yuv420p
+fate-libyami-h264-conformance-cawp1_toshiba_e:            CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CAWP1_TOSHIBA_E.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-cawp5_toshiba_e:            CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CAWP5_TOSHIBA_E.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-ci1_ft_b:                   CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CI1_FT_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-ci_mw_d:                    CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CI_MW_D.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvbs3_sony_c:               CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVBS3_Sony_C.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvcanlma2_sony_c:           CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVCANLMA2_Sony_C.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvfi1_sony_d:               CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVFI1_Sony_D.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvfi1_sva_c:                CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVFI1_SVA_C.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvfi2_sony_h:               CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVFI2_Sony_H.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvfi2_sva_c:                CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVFI2_SVA_C.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvma1_sony_d:               CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVMA1_Sony_D.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvma1_toshiba_b:            CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVMA1_TOSHIBA_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvmanl1_toshiba_b:          CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVMANL1_TOSHIBA_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvmanl2_toshiba_b:          CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVMANL2_TOSHIBA_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvmapaqp3_sony_e:           CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVMAPAQP3_Sony_E.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvmaqp2_sony_g:             CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVMAQP2_Sony_G.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvmaqp3_sony_d:             CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVMAQP3_Sony_D.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvmp_mot_fld_l30_b:         CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVMP_MOT_FLD_L30_B.26l -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvmp_mot_frm_l31_b:         CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVMP_MOT_FRM_L31_B.26l -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvnlfi1_sony_c:             CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVNLFI1_Sony_C.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvnlfi2_sony_h:             CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVNLFI2_Sony_H.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvpa1_toshiba_b:            CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVPA1_TOSHIBA_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvpcmnl1_sva_c:             CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVPCMNL1_SVA_C.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvpcmnl2_sva_c:             CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVPCMNL2_SVA_C.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvwp1_toshiba_e:            CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVWP1_TOSHIBA_E.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvwp2_toshiba_e:            CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVWP2_TOSHIBA_E.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvwp3_toshiba_e:            CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVWP3_TOSHIBA_E.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-cvwp5_toshiba_e:            CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/CVWP5_TOSHIBA_E.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-fi1_sony_e:                 CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FI1_Sony_E.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-alphaconformanceg:    CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/test8b43.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-bcrm_freh10:          CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/freh10.264 -vsync drop -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-brcm_freh11:          CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/freh11.264 -vsync drop -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-brcm_freh3:           CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/freh3.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-brcm_freh4:           CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/freh4.264 -vsync drop -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-brcm_freh5:           CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/freh5.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-brcm_freh8:           CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/freh8.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-brcm_freh9:           CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/freh9.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-freh12_b:             CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/Freh12_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-freh1_b:              CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/Freh1_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-freh2_b:              CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/Freh2_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-freh6:                CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/freh6.264 -vsync drop -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-freh7_b:              CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/Freh7_B.264 -vsync drop -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-frext01_jvc_d:        CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/FREXT01_JVC_D.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-frext02_jvc_c:        CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/FREXT02_JVC_C.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-frext1_panasonic_c:   CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/FRExt1_Panasonic.avc -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-frext2_panasonic_b:   CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/FRExt2_Panasonic.avc -vsync 0 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-frext3_panasonic_d:   CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/FRExt3_Panasonic.avc -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-frext4_panasonic_a:   CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/FRExt4_Panasonic.avc -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-frext_mmco4_sony_b:   CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/FRExt_MMCO4_Sony_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-hcaff1_hhi_b:         CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/HCAFF1_HHI.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-hcafr1_hhi_c:         CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/HCAFR1_HHI.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-hcafr2_hhi_a:         CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/HCAFR2_HHI.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-hcafr3_hhi_a:         CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/HCAFR3_HHI.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-hcafr4_hhi_a:         CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/HCAFR4_HHI.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-hcamff1_hhi_b:        CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/HCAMFF1_HHI.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-hpca_brcm_c:          CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/HPCA_BRCM_C.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-hpcadq_brcm_b:        CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/HPCADQ_BRCM_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-hpcafl_bcrm_c:        CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/HPCAFL_BRCM_C.264 -vsync drop -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-hpcaflnl_bcrm_c:      CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/HPCAFLNL_BRCM_C.264 -vsync drop -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-hpcalq_brcm_b:        CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/HPCALQ_BRCM_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-hpcamapalq_bcrm_b:    CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/HPCAMAPALQ_BRCM_B.264 -vsync 0 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-hpcamolq_brcm_b:      CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/HPCAMOLQ_BRCM_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-hpcanl_brcm_c:        CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/HPCANL_BRCM_C.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-hpcaq2lq_brcm_b:      CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/HPCAQ2LQ_BRCM_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-hpcv_brcm_a:          CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/HPCV_BRCM_A.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-hpcvfl_bcrm_a:        CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/HPCVFL_BRCM_A.264 -vsync drop -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-hpcvflnl_bcrm_a:      CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/HPCVFLNL_BRCM_A.264 -vsync drop -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-hpcvmolq_brcm_b:      CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/HPCVMOLQ_BRCM_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-frext-hpcvnl_brcm_a:        CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/FRext/HPCVNL_BRCM_A.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-hcbp2_hhi_a:                CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/HCBP2_HHI_A.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-hcmp1_hhi_a:                CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/HCMP1_HHI_A.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-ls_sva_d:                   CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/LS_SVA_D.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-midr_mw_d:                  CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/MIDR_MW_D.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-mps_mw_a:                   CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/MPS_MW_A.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-mr1_bt_a:                   CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/MR1_BT_A.h264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-mr1_mw_a:                   CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/MR1_MW_A.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-mr2_mw_a:                   CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/MR2_MW_A.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-mr2_tandberg_e:             CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/MR2_TANDBERG_E.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-mr3_tandberg_b:             CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/MR3_TANDBERG_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-mr4_tandberg_c:             CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/MR4_TANDBERG_C.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-mr5_tandberg_c:             CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/MR5_TANDBERG_C.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-mr9_bt_b:                   CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/MR9_BT_B.h264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-mv1_brcm_d:                 CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/src19td.IBP.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-nl1_sony_d:                 CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/NL1_Sony_D.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-nl2_sony_h:                 CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/NL2_Sony_H.jsv -pix_fmt yuv420p
+fate-libyami-h264-conformance-nl3_sva_e:                  CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/NL3_SVA_E.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-nlmq1_jvc_c:                CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/NLMQ1_JVC_C.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-nlmq2_jvc_c:                CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/NLMQ2_JVC_C.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-nrf_mw_e:                   CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/NRF_MW_E.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-sharp_mp_field_1_b:         CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/Sharp_MP_Field_1_B.jvt -pix_fmt yuv420p
+fate-libyami-h264-conformance-sharp_mp_field_2_b:         CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/Sharp_MP_Field_2_B.jvt -pix_fmt yuv420p
+fate-libyami-h264-conformance-sharp_mp_field_3_b:         CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/Sharp_MP_Field_3_B.jvt -pix_fmt yuv420p
+fate-libyami-h264-conformance-sharp_mp_paff_1r2:          CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/Sharp_MP_PAFF_1r2.jvt -pix_fmt yuv420p
+fate-libyami-h264-conformance-sharp_mp_paff_2r:           CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/Sharp_MP_PAFF_2.jvt -pix_fmt yuv420p
+fate-libyami-h264-conformance-sl1_sva_b:                  CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/SL1_SVA_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-sva_ba1_b:                  CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/SVA_BA1_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-sva_ba2_d:                  CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/SVA_BA2_D.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-sva_base_b:                 CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/SVA_Base_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-sva_cl1_e:                  CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/SVA_CL1_E.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-sva_fm1_e:                  CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/SVA_FM1_E.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-sva_nl1_b:                  CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/SVA_NL1_B.264 -pix_fmt yuv420p
+fate-libyami-h264-conformance-sva_nl2_e:                  CMD = framecrc -vsync drop -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264-conformance/SVA_NL2_E.264 -pix_fmt yuv420p
+
+define FATE_LIBYAMI_H264_TEST
+fate-libyami-$(1): REF = $(SRC_PATH)/tests/ref/fate/$(1)
+endef
+
+$(foreach N,$(FATE_LIBYAMI_H264_REF),$(eval $(call FATE_LIBYAMI_H264_TEST,$(N))))
+
+fate-libyami-h264-bsf-mp4toannexb:                        CMD = md5 -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264/interlaced_crop.mp4 -vcodec copy -bsf h264_mp4toannexb -f h264
+fate-libyami-h264-bsf-mp4toannexb:                        REF = $(SRC_PATH)/tests/ref/fate/h264-bsf-mp4toannexb
+fate-libyami-h264-extreme-plane-pred:                     CMD = framemd5 -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264/extreme-plane-pred.h264 -pix_fmt yuv420p
+fate-libyami-h264-extreme-plane-pred:                     REF = $(SRC_PATH)/tests/ref/fate/h264-extreme-plane-pred
+fate-libyami-h264-direct-bff:                             CMD = framecrc -c:v libyami_h264 -i $(TARGET_SAMPLES)/h264/direct-bff.mkv -pix_fmt yuv420p
+fate-libyami-h264-direct-bff:                             REF = $(SRC_PATH)/tests/ref/fate/h264-direct-bff
+
+
+LIBYAMI_HEVC_SAMPLES =                  \
+    AMP_A_Samsung_4             \
+    AMP_A_Samsung_6             \
+    AMP_B_Samsung_4             \
+    AMP_B_Samsung_6             \
+    AMP_D_Hisilicon             \
+    AMP_E_Hisilicon             \
+    AMP_F_Hisilicon_3           \
+    AMVP_A_MTK_4                \
+    AMVP_B_MTK_4                \
+    AMVP_C_Samsung_4            \
+    AMVP_C_Samsung_6            \
+    BUMPING_A_ericsson_1        \
+    CAINIT_A_SHARP_4            \
+    CAINIT_B_SHARP_4            \
+    CAINIT_C_SHARP_3            \
+    CAINIT_D_SHARP_3            \
+    CAINIT_E_SHARP_3            \
+    CAINIT_F_SHARP_3            \
+    CAINIT_G_SHARP_3            \
+    CAINIT_H_SHARP_3            \
+    CIP_A_Panasonic_3           \
+    cip_B_NEC_3                 \
+    CIP_C_Panasonic_2           \
+    DBLK_A_SONY_3               \
+    DBLK_B_SONY_3               \
+    DBLK_C_SONY_3               \
+    DBLK_D_VIXS_2               \
+    DBLK_E_VIXS_2               \
+    DBLK_F_VIXS_2               \
+    DBLK_G_VIXS_2               \
+    DELTAQP_A_BRCM_4            \
+    DELTAQP_B_SONY_3            \
+    DELTAQP_C_SONY_3            \
+    DSLICE_A_HHI_5              \
+    DSLICE_B_HHI_5              \
+    DSLICE_C_HHI_5              \
+    ENTP_A_Qualcomm_1           \
+    ENTP_B_Qualcomm_1           \
+    ENTP_C_Qualcomm_1           \
+    EXT_A_ericsson_4            \
+    ipcm_A_NEC_3                \
+    ipcm_B_NEC_3                \
+    ipcm_C_NEC_3                \
+    ipcm_D_NEC_3                \
+    ipcm_E_NEC_2                \
+    IPRED_A_docomo_2            \
+    IPRED_B_Nokia_3             \
+    IPRED_C_Mitsubishi_3        \
+    LS_A_Orange_2               \
+    LS_B_ORANGE_4               \
+    LTRPSPS_A_Qualcomm_1        \
+    MAXBINS_A_TI_4              \
+    MAXBINS_B_TI_4              \
+    MAXBINS_C_TI_4              \
+    MERGE_A_TI_3                \
+    MERGE_B_TI_3                \
+    MERGE_C_TI_3                \
+    MERGE_D_TI_3                \
+    MERGE_E_TI_3                \
+    MERGE_F_MTK_4               \
+    MERGE_G_HHI_4               \
+    MVCLIP_A_qualcomm_3         \
+    MVDL1ZERO_A_docomo_3        \
+    MVEDGE_A_qualcomm_3         \
+    NoOutPrior_A_Qualcomm_1     \
+    NoOutPrior_B_Qualcomm_1     \
+    NUT_A_ericsson_5            \
+    OPFLAG_A_Qualcomm_1         \
+    OPFLAG_B_Qualcomm_1         \
+    OPFLAG_C_Qualcomm_1         \
+    PMERGE_A_TI_3               \
+    PMERGE_B_TI_3               \
+    PMERGE_C_TI_3               \
+    PMERGE_D_TI_3               \
+    PMERGE_E_TI_3               \
+    POC_A_Bossen_3              \
+    PPS_A_qualcomm_7            \
+    PS_A_VIDYO_3                \
+    PS_B_VIDYO_3                \
+    RAP_A_docomo_4              \
+    RAP_B_Bossen_1              \
+    RPLM_A_qualcomm_4           \
+    RPLM_B_qualcomm_4           \
+    RPS_A_docomo_4              \
+    RPS_B_qualcomm_5            \
+    RPS_D_ericsson_6            \
+    RPS_E_qualcomm_5            \
+    RPS_F_docomo_1              \
+    RQT_A_HHI_4                 \
+    RQT_B_HHI_4                 \
+    RQT_C_HHI_4                 \
+    RQT_D_HHI_4                 \
+    RQT_E_HHI_4                 \
+    RQT_F_HHI_4                 \
+    RQT_G_HHI_4                 \
+    SAO_A_MediaTek_4            \
+    SAO_B_MediaTek_5            \
+    SAO_C_Samsung_4             \
+    SAO_C_Samsung_5             \
+    SAO_D_Samsung_4             \
+    SAO_D_Samsung_5             \
+    SAO_E_Canon_4               \
+    SAO_F_Canon_3               \
+    SAO_G_Canon_3               \
+    SDH_A_Orange_3              \
+    SLICES_A_Rovi_3             \
+    SLIST_A_Sony_4              \
+    SLIST_B_Sony_8              \
+    SLIST_C_Sony_3              \
+    SLPPLP_A_VIDYO_1            \
+    SLPPLP_A_VIDYO_2            \
+    STRUCT_A_Samsung_5          \
+    STRUCT_B_Samsung_4          \
+    STRUCT_B_Samsung_6          \
+    TILES_A_Cisco_2             \
+    TILES_B_Cisco_1             \
+    TMVP_A_MS_3                 \
+    TSCL_A_VIDYO_5              \
+    TSCL_B_VIDYO_4              \
+    TSKIP_A_MS_3                \
+    TUSIZE_A_Samsung_1          \
+    VPSID_A_VIDYO_1             \
+    VPSID_A_VIDYO_2             \
+    WP_A_Toshiba_3              \
+    WP_B_Toshiba_3              \
+    WPP_A_ericsson_MAIN_2       \
+    WPP_B_ericsson_MAIN_2       \
+    WPP_C_ericsson_MAIN_2       \
+    WPP_D_ericsson_MAIN_2       \
+    WPP_E_ericsson_MAIN_2       \
+    WPP_F_ericsson_MAIN_2       \
+
+
+
+# equivalent bitstreams
+# AMP_D_Hisilicon_3 -- AMP_D_Hisilicon
+# AMP_E_Hisilicon_3 -- AMP_E_Hisilicon
+# MVDL1ZERO_A_docomo_4 -- MVDL1ZERO_A_docomo_3
+# RAP_A_docomo_5 -- RAP_A_docomo_4
+# RAP_B_bossen_2 -- RAP_B_bossen_1
+# RPS_A_docomo_5 -- RPS_A_docomo_4
+# RPS_F_docomo_2 -- RPS_F_docomo_1
+
+# do not pass:
+# TSUNEQBD_A_MAIN10_Technicolor_2.bit (segfault mix 9-10bits)
+# PERSIST_RPARAM_A_RExt_Sony_1 (rext)
+
+
+define FATE_LIBYAMI_HEVC_TEST
+FATE_LIBYAMI_HEVC += fate-libyami-hevc-conformance-$(1)
+fate-libyami-hevc-conformance-$(1): CMD = framecrc -flags unaligned -vsync drop -c:v libyami_hevc -i $(TARGET_SAMPLES)/hevc-conformance/$(1).bit -pix_fmt yuv420p
+fate-libyami-hevc-conformance-$(1): REF = $(SRC_PATH)/tests/ref/fate/hevc-conformance-$(1)
+endef
+
+$(foreach N,$(LIBYAMI_HEVC_SAMPLES),$(eval $(call FATE_LIBYAMI_HEVC_TEST,$(N))))
+$(foreach N,$(LIBYAMI_HEVC_SAMPLES_10BIT),$(eval $(call FATE_LIBYAMI_HEVC_TEST_10BIT,$(N))))
+$(foreach N,$(LIBYAMI_HEVC_SAMPLES_422_10BIT),$(eval $(call FATE_LIBYAMI_HEVC_TEST_422_10BIT,$(N))))
+$(foreach N,$(LIBYAMI_HEVC_SAMPLES_422_10BIN),$(eval $(call FATE_LIBYAMI_HEVC_TEST_422_10BIN,$(N))))
+$(foreach N,$(LIBYAMI_HEVC_SAMPLES_444_8BIT),$(eval $(call FATE_LIBYAMI_HEVC_TEST_444_8BIT,$(N))))
+$(foreach N,$(LIBYAMI_HEVC_SAMPLES_444_12BIT),$(eval $(call FATE_LIBYAMI_HEVC_TEST_444_12BIT,$(N))))
+
+FATE_LIBYAMI_HEVC-$(call DEMDEC, HEVC, LIBYAMI_HEVC) += $(FATE_LIBYAMI_HEVC)
+
+FATE_SAMPLES_AVCONV += $(FATE_LIBYAMI_HEVC-yes)
+
+fate-libyami-hevc: $(FATE_LIBYAMI_HEVC-yes)
+
+FATE_LIBYAMI_VP8-$(call DEMDEC, FLV, LIBYAMI_VP8) += fate-libyami-vp8-alpha
+fate-libyami-vp8-alpha: CMD = framecrc -c:v libyami_vp8 -i $(TARGET_SAMPLES)/vp8_alpha/vp8_video_with_alpha.webm -vcodec copy
+fate-libyami-vp8-alpha: REF = $(SRC_PATH)/tests/ref/fate/vp8-alpha
+
+FATE_LIBYAMI_VP8-$(call DEMDEC, WEBM_DASH_MANIFEST, LIBYAMI_VP8) += fate-libyami-webm-dash-manifest
+fate-libyami-webm-dash-manifest: CMD = run $(FFMPEG) -f webm_dash_manifest -c:v libyami_vp8 -i $(TARGET_SAMPLES)/vp8/dash_video1.webm -f webm_dash_manifest -i $(TARGET_SAMPLES)/vp8/dash_video2.webm -f webm_dash_manifest -i $(TARGET_SAMPLES)/vp8/dash_audio1.webm -f webm_dash_manifest -i $(TARGET_SAMPLES)/vp8/dash_audio2.webm -c copy -map 0 -map 1 -map 2 -map 3 -f webm_dash_manifest -adaptation_sets "id=0,streams=0,1 id=1,streams=2,3" -
+fate-libyami-webm-dash-manifest: REF = $(SRC_PATH)/tests/ref/fate/webm-dash-manifest
+
+FATE_LIBYAMI_VP8-$(call DEMDEC, WEBM_DASH_MANIFEST, LIBYAMI_VP8) += fate-libyami-webm-dash-manifest-unaligned-video-streams
+fate-libyami-webm-dash-manifest-unaligned-video-streams: CMD = run $(FFMPEG) -f webm_dash_manifest -c:v libyami_vp8 -i $(TARGET_SAMPLES)/vp8/dash_video1.webm -f webm_dash_manifest -i $(TARGET_SAMPLES)/vp8/dash_video3.webm -c copy -map 0 -map 1 -f webm_dash_manifest -adaptation_sets "id=0,streams=0,1" -
+fate-libyami-webm-dash-manifest-unaligned-video-streams: REF = $(SRC_PATH)/tests/ref/fate/webm-dash-manifest-unaligned-video-streams
+
+FATE_LIBYAMI_VP8-$(call DEMDEC, WEBM_DASH_MANIFEST, LIBYAMI_VP8) += fate-libyami-webm-dash-manifest-unaligned-audio-streams
+fate-libyami-webm-dash-manifest-unaligned-audio-streams: CMD = run $(FFMPEG) -f webm_dash_manifest -c:v libyami_vp8 -i $(TARGET_SAMPLES)/vp8/dash_audio1.webm -f webm_dash_manifest -i $(TARGET_SAMPLES)/vp8/dash_audio3.webm -c copy -map 0 -map 1 -f webm_dash_manifest -adaptation_sets "id=0,streams=0,1" -
+fate-libyami-webm-dash-manifest-unaligned-audio-streams: REF = $(SRC_PATH)/tests/ref/fate/webm-dash-manifest-unaligned-audio-streams
+
+FATE_LIBYAMI_VP8-$(call DEMDEC, WEBM_DASH_MANIFEST, LIBYAMI_VP8) += fate-libyami-webm-dash-manifest-representations
+fate-libyami-webm-dash-manifest-representations: CMD = run $(FFMPEG) -f webm_dash_manifest -c:v libyami_vp8 -i $(TARGET_SAMPLES)/vp8/dash_video1.webm -f webm_dash_manifest -i $(TARGET_SAMPLES)/vp8/dash_video4.webm -c copy -map 0 -map 1 -f webm_dash_manifest -adaptation_sets "id=0,streams=0,1" -
+fate-libyami-webm-dash-manifest-representations: REF = $(SRC_PATH)/tests/ref/fate/webm-dash-manifest-representations
+
+LIBYAMI_VP8_SUITE = 001 002 003 004 005 007 008 009 010 011 012 013 015 016 017
+
+define FATE_LIBYAMI_VP8_SUITE
+FATE_LIBYAMI_VP8-$(CONFIG_IVF_DEMUXER) += fate-libyami-vp8-test-vector$(2)-$(1)
+fate-libyami-vp8-test-vector$(2)-$(1): CMD = framemd5 $(3) -c:v libyami_vp8 -i $(TARGET_SAMPLES)/vp8-test-vectors-r1/vp80-00-comprehensive-$(1).ivf -pix_fmt yuv420p
+fate-libyami-vp8-test-vector$(2)-$(1): REF = $(SRC_PATH)/tests/ref/fate/vp8-test-vector-$(1)
+endef
+
+define FATE_LIBYAMI_VP8_FULL
+$(foreach N,$(LIBYAMI_VP8_SUITE),$(eval $(call FATE_LIBYAMI_VP8_SUITE,$(N),$(1),$(2))))
+
+# FIXME this file contains two frames with identical timestamps,
+# so ffmpeg drops one of them
+FATE_LIBYAMI_VP8-$(CONFIG_IVF_DEMUXER) += fate-libyami-vp8-sign-bias$(1)
+fate-libyami-vp8-sign-bias$(1): CMD = framemd5 $(2) -c:v libyami_vp8 -i $(TARGET_SAMPLES)/vp8/sintel-signbias.ivf -pix_fmt yuv420p
+fate-libyami-vp8-sign-bias$(1): REF = $(SRC_PATH)/tests/ref/fate/vp8-sign-bias
+
+endef
+
+$(eval $(call FATE_LIBYAMI_VP8_FULL))
+
+FATE_SAMPLES_AVCONV-$(CONFIG_LIBYAMI_VP8_DECODER) += $(FATE_LIBYAMI_VP8-yes)
+fate-libyami-vp8: $(FATE_LIBYAMI_VP8-yes)
+
+
+FATE_LIBYAMI_MICROSOFT-$(call DEMDEC, AVI, LIBYAMI_VC1) += fate-libyami-msmpeg4v1
+fate-libyami-msmpeg4v1: CMD = framecrc -c:v libyami_vc1 -flags +bitexact -idct simple -i $(TARGET_SAMPLES)/msmpeg4v1/mpg4.avi -an
+fate-libyami-msmpeg4v1: REF = $(SRC_PATH)/tests/ref/fate/msmpeg4v1
+
+FATE_SAMPLES_AVCONV-$(call DEMDEC, ASF, LIBYAMI_VC1) += fate-libyami-mss1-pal
+fate-libyami-mss1-pal: CMD = framecrc -c:v libyami_vc1 -i $(TARGET_SAMPLES)/mss1/screen_codec.wmv -an
+fate-libyami-mss1-pal: REF = $(SRC_PATH)/tests/ref/fate/mss1-pal
+
+FATE_LIBYAMI_MSS2 += fate-libyami-mss2-pal
+fate-libyami-mss2-pal: CMD = framecrc -c:v libyami_vc1 -i $(TARGET_SAMPLES)/mss2/rlepal.wmv
+fate-libyami-mss2-pal: REF = $(SRC_PATH)/tests/ref/fate/mss2-pal
+
+FATE_LIBYAMI_MSS2 += fate-libyami-mss2-pals
+fate-libyami-mss2-pals: CMD = framecrc -c:v libyami_vc1 -i $(TARGET_SAMPLES)/mss2/rlepals.wmv
+fate-libyami-mss2-pals: REF = $(SRC_PATH)/tests/ref/fate/mss2-pals
+
+FATE_LIBYAMI_MSS2 += fate-libyami-mss2-rgb555
+fate-libyami-mss2-rgb555: CMD = framecrc -c:v libyami_vc1 -i $(TARGET_SAMPLES)/mss2/rle555.wmv -pix_fmt rgb555le
+fate-libyami-mss2-rgb555: REF = $(SRC_PATH)/tests/ref/fate/mss2-rgb555
+
+FATE_LIBYAMI_MSS2 += fate-libyami-mss2-rgb555s
+fate-libyami-mss2-rgb555s: CMD = framecrc -c:v libyami_vc1 -i $(TARGET_SAMPLES)/mss2/rle555s.wmv -pix_fmt rgb555le
+fate-libyami-mss2-rgb555s: REF = $(SRC_PATH)/tests/ref/fate/mss2-rgb555s
+
+FATE_LIBYAMI_MSS2 += fate-libyami-mss2-wmv
+fate-libyami-mss2-wmv: CMD = framecrc -c:v libyami_vc1 -i $(TARGET_SAMPLES)/mss2/msscreencodec.wmv -an -frames 100
+fate-libyami-mss2-wmv: REF = $(SRC_PATH)/tests/ref/fate/mss2-wmv
+
+FATE_SAMPLES_AVCONV-$(call DEMDEC, ASF, LIBYAMI_VC1) += $(FATE_LIBYAMI_MSS2)
+fate-libyami-mss2: $(FATE_LIBYAMI_MSS2)
+
+FATE_LIBYAMI_MTS2 += fate-libyami-mts2-xesc
+fate-libyami-mts2-xesc: CMD = framecrc -c:v libyami_vc1 -i $(TARGET_SAMPLES)/mts2/sample.xesc -pix_fmt yuv444p
+fate-libyami-mts2-xesc: REF = $(SRC_PATH)/tests/ref/fate/mts2-xesc
+
+FATE_SAMPLES_AVCONV-$(call DEMDEC, ASF, LIBYAMI_VC1) += $(FATE_LIBYAMI_MTS2)
+fate-libyami-mts2: $(FATE_LIBYAMI_MTS2)
+
+FATE_LIBYAMI_MSVIDEO1 += fate-libyami-msvideo1-8bit
+fate-libyami-msvideo1-8bit: CMD = framecrc -c:v libyami_vc1 -i $(TARGET_SAMPLES)/cram/skating.avi -t 1 -pix_fmt rgb24
+fate-libyami-msvideo1-8bit: REF = $(SRC_PATH)/tests/ref/fate/msvideo1-8bit
+
+FATE_LIBYAMI_MSVIDEO1 += fate-libyami-msvideo1-16bit
+fate-libyami-msvideo1-16bit: CMD = framecrc -c:v libyami_vc1 -i $(TARGET_SAMPLES)/cram/clock-cram16.avi -pix_fmt rgb24
+fate-libyami-msvideo1-16bit: REF = $(SRC_PATH)/tests/ref/fate/msvideo1-16bit
+
+FATE_LIBYAMI_MICROSOFT-$(call DEMDEC, AVI, LIBYAMI_VC1) += $(FATE_LIBYAMI_MSVIDEO1)
+fate-libyami-msvideo1: $(FATE_LIBYAMI_MSVIDEO1)
+
+FATE_SAMPLES_AVCONV-$(call DEMDEC, ASF, LIBYAMI_VC1) += fate-libyami-mts2
+fate-libyami-mts2: CMD = framecrc -c:v libyami_vc1 -i $(TARGET_SAMPLES)/mts2/ScreenCapture.xesc
+fate-libyami-mts2: REF = $(SRC_PATH)/tests/ref/fate/mts2
+
+FATE_LIBYAMI_WMV8_DRM += fate-libyami-wmv8-drm
+# discard last packet to avoid fails due to overread of VC-1 decoder
+fate-libyami-wmv8-drm: CMD = framecrc -c:v libyami_vc1 -cryptokey 137381538c84c068111902a59c5cf6c340247c39 -i $(TARGET_SAMPLES)/wmv8/wmv_drm.wmv -an -frames:v 129
+fate-libyami-wmv8-drm: REF = $(SRC_PATH)/tests/ref/fate/wmv8-drm
+
+FATE_LIBYAMI_WMV8_DRM += fate-libyami-wmv8-drm-nodec
+fate-libyami-wmv8-drm-nodec: CMD = framecrc -c:v libyami_vc1 -cryptokey 137381538c84c068111902a59c5cf6c340247c39 -i $(TARGET_SAMPLES)/wmv8/wmv_drm.wmv -acodec copy -vcodec copy
+fate-libyami-wmv8-drm-nodec: REF = $(SRC_PATH)/tests/ref/fate/wmv8-drm-nodec
+
+FATE_LIBYAMI_MICROSOFT-$(call DEMDEC, ASF, LIBYAMI_VC1) += $(FATE_LIBYAMI_WMV8_DRM)
+fate-libyami-wmv8_drm: $(FATE_WMV8_DRM)
+fate-libyami-wmv8_drm: REF = $(SRC_PATH)/tests/ref/fate/wmv8_drm
+
+FATE_LIBYAMI_MICROSOFT-$(call DEMDEC, ASF, LIBYAMI_VC1) += fate-libyami-wmv8-x8intra
+fate-libyami-wmv8-x8intra: CMD = framecrc -c:v libyami_vc1 -flags +bitexact -i $(TARGET_SAMPLES)/wmv8/wmv8_x8intra.wmv -an
+fate-libyami-wmv8-x8intra: REF = $(SRC_PATH)/tests/ref/fate/wmv8-x8intra
+
+FATE_LIBYAMI_VC1-$(CONFIG_VC1_DEMUXER) += fate-libyami-vc1_sa00040
+fate-libyami-vc1_sa00040: CMD = framecrc -c:v libyami_vc1 -i $(TARGET_SAMPLES)/vc1/SA00040.vc1
+fate-libyami-vc1_sa00040: REF = $(SRC_PATH)/tests/ref/fate/vc1_sa00040
+
+FATE_LIBYAMI_VC1-$(CONFIG_VC1_DEMUXER) += fate-libyami-vc1_sa00050
+fate-libyami-vc1_sa00050: CMD = framecrc -c:v libyami_vc1 -i $(TARGET_SAMPLES)/vc1/SA00050.vc1
+fate-libyami-vc1_sa00050: REF = $(SRC_PATH)/tests/ref/fate/vc1_sa00050
+
+FATE_LIBYAMI_VC1-$(CONFIG_VC1_DEMUXER) += fate-libyami_vc1_sa10091
+fate-libyami-vc1_sa10091: CMD = framecrc -c:v libyami_vc1 -i $(TARGET_SAMPLES)/vc1/SA10091.vc1
+fate-libyami-vc1_sa10091: REF = $(SRC_PATH)/tests/ref/fate/vc1_sa10091
+
+FATE_LIBYAMI_VC1-$(CONFIG_VC1_DEMUXER) += fate-libyami-vc1_sa10143
+fate-libyami-vc1_sa10143: CMD = framecrc -c:v libyami_vc1 -i $(TARGET_SAMPLES)/vc1/SA10143.vc1
+fate-libyami-vc1_sa10143: REF = $(SRC_PATH)/tests/ref/fate/vc1_sa10143
+
+FATE_LIBYAMI_VC1-$(CONFIG_VC1_DEMUXER) += fate-libyami-vc1_sa20021
+fate-libyami-vc1_sa20021: CMD = framecrc -c:v libyami_vc1 -i $(TARGET_SAMPLES)/vc1/SA20021.vc1
+fate-libyami-vc1_sa20021: REF = $(SRC_PATH)/tests/ref/fate/vc1_sa20021
+
+FATE_LIBYAMI_VC1-$(CONFIG_VC1_DEMUXER) += fate-libyami-vc1_ilaced_twomv
+fate-libyami-vc1_ilaced_twomv: CMD = framecrc -c:v libyami_vc1 -flags +bitexact -i $(TARGET_SAMPLES)/vc1/ilaced_twomv.vc1
+fate-libyami-msmpeg4v1: REF = $(SRC_PATH)/tests/ref/fate/msmpeg4v1
+
+FATE_LIBYAMI_VC1-$(CONFIG_MOV_DEMUXER) += fate-libyami-vc1-ism
+fate-libyami-vc1-ism: CMD = framecrc -c:v libyami_vc1 -i $(TARGET_SAMPLES)/isom/vc1-wmapro.ism -an
+fate-libyami-vc1-ism: REF = $(SRC_PATH)/tests/ref/fate/vc1-ism
+
+FATE_LIBYAMI_MICROSOFT-$(CONFIG_VC1_DECODER) += $(FATE_LIBYAMI_VC1-yes)
+fate-libyami-vc1: $(FATE_LIBYAMI_VC1-yes)
+
+FATE_LIBYAMI_MICROSOFT-$(CONFIG_ASF_DEMUXER) += fate-libyami-asf-repldata
+fate-libyami-asf-repldata: CMD = framecrc -c:v libyami_vc1 -i $(TARGET_SAMPLES)/asf/bug821-2.asf -c copy
+fate-libyami-asf-repldata: REF = $(SRC_PATH)/tests/ref/fate/asf-repldata
+
+FATE_LIBYAMI_MICROSOFT += $(FATE_LIBYAMI_MICROSOFT-yes)
+
+FATE_SAMPLES_FFMPEG += $(FATE_LIBYAMI_MICROSOFT)
+fate-libyami-microsoft: $(FATE_LIBYAMI_MICROSOFT)
+
+
+# fate-libyami-h264-enc%: CMD = framecrc -f rawvideo -s 352x288 -pix_fmt yuv420p -i $(TARGET_PATH)/tests/data/vsynth2.yuv -vcodec libyami_h264 ${OPTS}
+# FATE_LIBYAMI_H264_ENC += fate-libyami-h264-enc_yuv420
+# fate-libyami-h264-enc_yuv420: OPTS =
+
+# FATE_LIBYAMI_H264_ENC += fate-libyami-h264-enc_yuv420_vbr
+# fate-libyami-h264-enc_yuv420_vbr: OPTS = -maxrate 550k -b:v 500k
+
+# FATE_LIBYAMI_H264_ENC += fate-libyami-h264-enc_yuv420_cbr
+# fate-libyami-h264-enc_yuv420_cbr: OPTS = -maxrate 500k -b:v 500k
+
+# FATE_LIBYAMI_H264_ENC += fate-libyami-h264-enc_yuv420_qp
+# fate-libyami-h264-enc_yuv420_qp: OPTS = -qp 40
+
+# FATE_LIBYAMI_H264_ENC += fate-libyami-h264-enc_yuv420_gop
+# fate-libyami-h264-enc_yuv420_gop: OPTS = -g 30 -bf 4
+
+# $(FATE_LIBYAMI_H264_ENC): $(VREF)
+
+# FATE_AVCONV-$(call ENCMUX, LIBYAMI_H264, AVI) += $(FATE_LIBYAMI_H264_ENC)
+# fate-libyami-h264-enc: $(FATE_LIBYAMI_H264_ENC)
+
+# fate-libyami-h264-tran%: CMD = framecrc -vcodec libyami_h264 -i $(TARGET_SAMPLES)/h264/interlaced_crop.mp4 -vcodec libyami_h264 ${OPTS}
+
+# FATE_LIBYAMI_H264_TRAN += fate-libyami-h264-tran_mp4
+# fate-libyami-h264-tran_mp4: OPTS = 
+
+# $(FATE_LIBYAMI_H264_TRAN): $(VREF)
+
+# FATE_AVCONV-$(call ALLYES,  LIBYAMI_H264_DECODER LIBYAMI_H264_ENCODER MOV_DEMUXER AVI_MUXER) += $(FATE_LIBYAMI_H264_TRAN)
+# fate-libyami-h264-tran: $(FATE_LIBYAMI_H264_TRAN)
+
+
+# fate-libyami-vp8-enc%: CMD = framecrc -f rawvideo -s 352x288  -pix_fmt yuv420p -i $(TARGET_PATH)/tests/data/vsynth2.yuv -vcodec libyami_vp8 ${OPTS}
+# FATE_LIBYAMI_VP8_ENC += fate-libyami-vp8-enc_yuv420
+# fate-libyami-vp8-enc_yuv420: OPTS =
+
+# FATE_LIBYAMI_VP8_ENC += fate-libyami-vp8-enc_yuv420_vbr
+# fate-libyami-vp8-enc_yuv420_vbr: OPTS = -maxrate 550k -b:v 500k
+
+# FATE_LIBYAMI_VP8_ENC += fate-libyami-vp8-enc_yuv420_cbr
+# fate-libyami-vp8-enc_yuv420_cbr: OPTS = -maxrate 500k -b:v 500k
+
+# FATE_LIBYAMI_VP8_ENC += fate-libyami-vp8-enc_yuv420_qp
+# fate-libyami-vp8-enc_yuv420_qp: OPTS = -qp 40
+
+# FATE_LIBYAMI_VP8_ENC += fate-libyami-vp8-enc_yuv420_gop
+# fate-libyami-vp8-enc_yuv420_gop: OPTS = -g 30 -bf 4
+
+# $(FATE_LIBYAMI_VP8_ENC): $(VREF)
+
+# FATE_AVCONV-$(call ENCMUX, LIBYAMI_VP8, AVI) += $(FATE_LIBYAMI_VP8_ENC)
+# fate-libyami-vp8-enc: $(FATE_LIBYAMI_VP8_ENC)
+
+# fate-libyami-vp8-tran%: CMD = framecrc -vcodec libyami_h264 -i $(TARGET_SAMPLES)/h264/interlaced_crop.mp4 -vcodec libyami_vp8 ${OPTS}
+
+# FATE_LIBYAMI_VP8_TRAN += fate-libyami-vp8-tran_mp4
+# fate-libyami-vp8-tran_mp4: OPTS = 
+
+# $(FATE_LIBYAMI_VP8_TRAN): $(VREF)
+
+# FATE_AVCONV-$(call ALLYES,  LIBYAMI_H264_DECODER LIBYAMI_VP8_ENCODER MOV_DEMUXER IVF_DEMUXER) += $(FATE_LIBYAMI_VP8_TRAN)
+# fate-libyami-vp8-tran: $(FATE_LIBYAMI_VP8_TRAN)
diff --git a/tests/ref/fate/libyami-h264-enc_yuv420 b/tests/ref/fate/libyami-h264-enc_yuv420
new file mode 100644
index 0000000..b5e9510
--- /dev/null
+++ b/tests/ref/fate/libyami-h264-enc_yuv420
@@ -0,0 +1,55 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: h264
+#dimensions 0: 352x288
+#sar 0: 0/1
+0,         -1,          0,        1,    17825, 0xe5bed0bf
+0,          0,          1,        1,    15832, 0x4456a1aa
+0,          1,          2,        1,    16050, 0x09f446eb
+0,          2,          3,        1,    16053, 0x0e5df4df
+0,          3,          4,        1,    16119, 0xc1422f8f
+0,          4,          5,        1,    16151, 0xf6d03524
+0,          5,          6,        1,    16308, 0x72b0b836
+0,          6,          7,        1,    16487, 0xd6d6fc79
+0,          7,          8,        1,    16491, 0xa64f0f67
+0,          8,          9,        1,    16711, 0xa05754b4
+0,          9,         10,        1,    16825, 0x91fcc487
+0,         10,         11,        1,    17201, 0x947dc4c9
+0,         11,         12,        1,    17454, 0x1c6709e2
+0,         12,         13,        1,    17586, 0x26373af2
+0,         13,         14,        1,    17705, 0xf9046e2b
+0,         14,         15,        1,    17961, 0x34a4f206
+0,         15,         16,        1,    18199, 0x8a7c64d1
+0,         16,         17,        1,    18343, 0x8141c16c
+0,         17,         18,        1,    18687, 0xc6716920
+0,         18,         19,        1,    18864, 0x7179c185
+0,         19,         20,        1,    18988, 0xa8b8d4c8
+0,         20,         21,        1,    19315, 0x01619935
+0,         21,         22,        1,    19482, 0x1d051930
+0,         22,         23,        1,    19799, 0xd4215e7e
+0,         23,         24,        1,    20001, 0xd2030658
+0,         24,         25,        1,    20202, 0x7b2e7520
+0,         25,         26,        1,    20383, 0xb05fedef
+0,         26,         27,        1,    20486, 0xfcc0cc03
+0,         27,         28,        1,    20640, 0x1190363c
+0,         28,         29,        1,    20821, 0x9ea38a37
+0,         29,         30,        1,    20961, 0xbbc10804
+0,         30,         31,        1,    21087, 0x269b0e81
+0,         31,         32,        1,    21287, 0x6eeb65a2
+0,         32,         33,        1,    21462, 0x76b2dccb
+0,         33,         34,        1,    21603, 0x71b11f86
+0,         34,         35,        1,    21822, 0x62f279fa
+0,         35,         36,        1,    22109, 0x06ab4dd6
+0,         36,         37,        1,    22252, 0x09805369
+0,         37,         38,        1,    22460, 0x14b58e3d
+0,         38,         39,        1,    22545, 0x5d7f1ccf
+0,         39,         40,        1,    22713, 0x9c114275
+0,         40,         41,        1,    22950, 0x0f626c3f
+0,         41,         42,        1,    23084, 0xc45e098a
+0,         42,         43,        1,    23127, 0xf0ec6a79
+0,         43,         44,        1,    23205, 0xf3c548b7
+0,         44,         45,        1,    23228, 0xb2fd2bd2
+0,         45,         46,        1,    23272, 0x533f432f
+0,         46,         47,        1,    23311, 0x6bf94a0f
+0,         47,         48,        1,    23321, 0xf8576e72
+0,         48,         49,        1,    23395, 0x6fba5efb
diff --git a/tests/ref/fate/libyami-h264-enc_yuv420_cbr b/tests/ref/fate/libyami-h264-enc_yuv420_cbr
new file mode 100644
index 0000000..5f1ec07
--- /dev/null
+++ b/tests/ref/fate/libyami-h264-enc_yuv420_cbr
@@ -0,0 +1,55 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: h264
+#dimensions 0: 352x288
+#sar 0: 0/1
+0,         -1,          0,        1,     3657, 0xbe9304a1
+0,          0,          1,        1,     4156, 0x164616a4
+0,          1,          2,        1,     3739, 0x711c2cfb
+0,          2,          3,        1,     4169, 0x82bdf0e1
+0,          3,          4,        1,     3840, 0x4a9c4572
+0,          4,          5,        1,     4267, 0x6c84515e
+0,          5,          6,        1,     3292, 0x20345d03
+0,          6,          7,        1,     4276, 0x1a3f1b71
+0,          7,          8,        1,     3358, 0x991c70e4
+0,          8,          9,        1,     3986, 0x8c2ca544
+0,          9,         10,        1,     3820, 0x1cf8538f
+0,         10,         11,        1,     3830, 0x20cf5f17
+0,         11,         12,        1,     3901, 0xc8f07b4f
+0,         12,         13,        1,     3570, 0x2a30bc5b
+0,         13,         14,        1,     3993, 0xab78add1
+0,         14,         15,        1,     3601, 0x34e3ed92
+0,         15,         16,        1,     3986, 0x844ea31e
+0,         16,         17,        1,     3670, 0xc6c81986
+0,         17,         18,        1,     4112, 0x8480e3bc
+0,         18,         19,        1,     3001, 0xa6c5e9b3
+0,         19,         20,        1,     4163, 0xe5c5096c
+0,         20,         21,        1,     3031, 0x8b96b64e
+0,         21,         22,        1,     4216, 0xa04b26da
+0,         22,         23,        1,     3079, 0xeeb5ea6e
+0,         23,         24,        1,     4314, 0x68113f52
+0,         24,         25,        1,     2812, 0x9acb42ed
+0,         25,         26,        1,     3865, 0x6c0a7072
+0,         26,         27,        1,     3491, 0x60f0b793
+0,         27,         28,        1,     3984, 0x9f5ca61f
+0,         28,         29,        1,     3234, 0x6c512743
+0,         29,         30,        1,     4033, 0xb96acb6a
+0,         30,         31,        1,     3270, 0xacd55674
+0,         31,         32,        1,     4087, 0x1a0fcd38
+0,         32,         33,        1,     2952, 0x4673b402
+0,         33,         34,        1,     4120, 0xc42fe4bc
+0,         34,         35,        1,     2586, 0x04ecf278
+0,         35,         36,        1,     3369, 0x554681bb
+0,         36,         37,        1,     3371, 0x5c3c8c62
+0,         37,         38,        1,     3402, 0x8b6e7a7e
+0,         38,         39,        1,     3432, 0x3aea8d33
+0,         39,         40,        1,     3445, 0x861eb3a5
+0,         40,         41,        1,     3448, 0xfb26a6d5
+0,         41,         42,        1,     3457, 0x681ba865
+0,         42,         43,        1,     3484, 0xb75ddd8c
+0,         43,         44,        1,     3474, 0x17cfc0b6
+0,         44,         45,        1,     3485, 0xe702b1b3
+0,         45,         46,        1,     3471, 0x0358a577
+0,         46,         47,        1,     3449, 0x2e827b4f
+0,         47,         48,        1,     3537, 0x80d7eabc
+0,         48,         49,        1,     3119, 0x2bf210cb
diff --git a/tests/ref/fate/libyami-h264-enc_yuv420_gop b/tests/ref/fate/libyami-h264-enc_yuv420_gop
new file mode 100644
index 0000000..8687af6
--- /dev/null
+++ b/tests/ref/fate/libyami-h264-enc_yuv420_gop
@@ -0,0 +1,55 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: h264
+#dimensions 0: 352x288
+#sar 0: 0/1
+0,         -3,          0,        1,    17825, 0x5531d052
+0,         -2,          1,        1,    15832, 0x048ba13d
+0,         -1,          2,        1,    16050, 0x6d48467e
+0,          0,          3,        1,    16053, 0x706af472
+0,          1,          4,        1,    16119, 0x07442f22
+0,          2,          5,        1,    16151, 0x2f3234b7
+0,          3,          6,        1,    16308, 0x682ab7c9
+0,          4,          7,        1,    16487, 0x8019fc0c
+0,          5,          8,        1,    16491, 0x4dde0efa
+0,          6,          9,        1,    16711, 0xea2b5447
+0,          7,         10,        1,    16825, 0xab46c41a
+0,          8,         11,        1,    17201, 0x0dafc45c
+0,          9,         12,        1,    17454, 0x29d10975
+0,         10,         13,        1,    17586, 0xfb5e3a85
+0,         11,         14,        1,    17705, 0x9b8f6dbe
+0,         12,         15,        1,    17961, 0x6a20f199
+0,         13,         16,        1,    18199, 0x5aa26464
+0,         14,         17,        1,    18343, 0x1417c0ff
+0,         15,         18,        1,    18687, 0xc6c068b3
+0,         16,         19,        1,    18864, 0x266bc118
+0,         17,         20,        1,    18988, 0x28ded45b
+0,         18,         21,        1,    19315, 0xf62e98c8
+0,         19,         22,        1,    19482, 0xcab718c3
+0,         20,         23,        1,    19799, 0xfada5e11
+0,         21,         24,        1,    20001, 0xa2ba05eb
+0,         22,         25,        1,    20202, 0xf64174b3
+0,         23,         26,        1,    20383, 0xde61ed82
+0,         24,         27,        1,    20486, 0xfee7cb96
+0,         25,         28,        1,    20640, 0xd21635cf
+0,         26,         29,        1,    20821, 0x122789ca
+0,         27,         30,        1,    20961, 0xf39a0797
+0,         28,         31,        1,    21087, 0x28ce0e14
+0,         29,         32,        1,    21287, 0x1bf66535
+0,         30,         33,        1,    21462, 0xd92bdc5e
+0,         31,         34,        1,    21603, 0x98211f19
+0,         32,         35,        1,    21822, 0x2c23798d
+0,         33,         36,        1,    22109, 0x559a4d69
+0,         34,         37,        1,    22252, 0x1b8c52fc
+0,         35,         38,        1,    22460, 0xce228dd0
+0,         36,         39,        1,    22545, 0xf2bb1c62
+0,         37,         40,        1,    22713, 0xe9c54208
+0,         38,         41,        1,    22950, 0xf81e6bd2
+0,         39,         42,        1,    23084, 0x741b091d
+0,         40,         43,        1,    23127, 0x8e5a6a0c
+0,         41,         44,        1,    23205, 0x6ffd484a
+0,         42,         45,        1,    23228, 0x256a2b65
+0,         43,         46,        1,    23272, 0xb2e142c2
+0,         44,         47,        1,    23311, 0xbb0049a2
+0,         45,         48,        1,    23321, 0x432b6e05
+0,         46,         49,        1,    23395, 0x9afd5e8e
diff --git a/tests/ref/fate/libyami-h264-enc_yuv420_qp b/tests/ref/fate/libyami-h264-enc_yuv420_qp
new file mode 100644
index 0000000..b5e9510
--- /dev/null
+++ b/tests/ref/fate/libyami-h264-enc_yuv420_qp
@@ -0,0 +1,55 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: h264
+#dimensions 0: 352x288
+#sar 0: 0/1
+0,         -1,          0,        1,    17825, 0xe5bed0bf
+0,          0,          1,        1,    15832, 0x4456a1aa
+0,          1,          2,        1,    16050, 0x09f446eb
+0,          2,          3,        1,    16053, 0x0e5df4df
+0,          3,          4,        1,    16119, 0xc1422f8f
+0,          4,          5,        1,    16151, 0xf6d03524
+0,          5,          6,        1,    16308, 0x72b0b836
+0,          6,          7,        1,    16487, 0xd6d6fc79
+0,          7,          8,        1,    16491, 0xa64f0f67
+0,          8,          9,        1,    16711, 0xa05754b4
+0,          9,         10,        1,    16825, 0x91fcc487
+0,         10,         11,        1,    17201, 0x947dc4c9
+0,         11,         12,        1,    17454, 0x1c6709e2
+0,         12,         13,        1,    17586, 0x26373af2
+0,         13,         14,        1,    17705, 0xf9046e2b
+0,         14,         15,        1,    17961, 0x34a4f206
+0,         15,         16,        1,    18199, 0x8a7c64d1
+0,         16,         17,        1,    18343, 0x8141c16c
+0,         17,         18,        1,    18687, 0xc6716920
+0,         18,         19,        1,    18864, 0x7179c185
+0,         19,         20,        1,    18988, 0xa8b8d4c8
+0,         20,         21,        1,    19315, 0x01619935
+0,         21,         22,        1,    19482, 0x1d051930
+0,         22,         23,        1,    19799, 0xd4215e7e
+0,         23,         24,        1,    20001, 0xd2030658
+0,         24,         25,        1,    20202, 0x7b2e7520
+0,         25,         26,        1,    20383, 0xb05fedef
+0,         26,         27,        1,    20486, 0xfcc0cc03
+0,         27,         28,        1,    20640, 0x1190363c
+0,         28,         29,        1,    20821, 0x9ea38a37
+0,         29,         30,        1,    20961, 0xbbc10804
+0,         30,         31,        1,    21087, 0x269b0e81
+0,         31,         32,        1,    21287, 0x6eeb65a2
+0,         32,         33,        1,    21462, 0x76b2dccb
+0,         33,         34,        1,    21603, 0x71b11f86
+0,         34,         35,        1,    21822, 0x62f279fa
+0,         35,         36,        1,    22109, 0x06ab4dd6
+0,         36,         37,        1,    22252, 0x09805369
+0,         37,         38,        1,    22460, 0x14b58e3d
+0,         38,         39,        1,    22545, 0x5d7f1ccf
+0,         39,         40,        1,    22713, 0x9c114275
+0,         40,         41,        1,    22950, 0x0f626c3f
+0,         41,         42,        1,    23084, 0xc45e098a
+0,         42,         43,        1,    23127, 0xf0ec6a79
+0,         43,         44,        1,    23205, 0xf3c548b7
+0,         44,         45,        1,    23228, 0xb2fd2bd2
+0,         45,         46,        1,    23272, 0x533f432f
+0,         46,         47,        1,    23311, 0x6bf94a0f
+0,         47,         48,        1,    23321, 0xf8576e72
+0,         48,         49,        1,    23395, 0x6fba5efb
diff --git a/tests/ref/fate/libyami-h264-enc_yuv420_vbr b/tests/ref/fate/libyami-h264-enc_yuv420_vbr
new file mode 100644
index 0000000..b6827ab
--- /dev/null
+++ b/tests/ref/fate/libyami-h264-enc_yuv420_vbr
@@ -0,0 +1,55 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: h264
+#dimensions 0: 352x288
+#sar 0: 0/1
+0,         -1,          0,        1,     3915, 0x91887d2c
+0,          0,          1,        1,     4544, 0x3ad1a8fc
+0,          1,          2,        1,     4176, 0x4fa5fb19
+0,          2,          3,        1,     4586, 0x98e3d2c6
+0,          3,          4,        1,     4261, 0xc73453da
+0,          4,          5,        1,     4670, 0x4d55060c
+0,          5,          6,        1,     3891, 0x4c6c8615
+0,          6,          7,        1,     4276, 0xeeee1b32
+0,          7,          8,        1,     3952, 0x4204a039
+0,          8,          9,        1,     4363, 0xedab6e42
+0,          9,         10,        1,     4013, 0x243daf51
+0,         10,         11,        1,     4514, 0x160bb981
+0,         11,         12,        1,     3901, 0xf9f77b10
+0,         12,         13,        1,     4171, 0xa6abf3e7
+0,         13,         14,        1,     4228, 0x94cd25b1
+0,         14,         15,        1,     4239, 0xf6e12044
+0,         15,         16,        1,     4255, 0xacd84e1d
+0,         16,         17,        1,     4277, 0xce2345c5
+0,         17,         18,        1,     4336, 0x55ab4605
+0,         18,         19,        1,     3689, 0x3b2b13ed
+0,         19,         20,        1,     4163, 0xd652092d
+0,         20,         21,        1,     3828, 0xf9dd6755
+0,         21,         22,        1,     4216, 0x83cd269b
+0,         22,         23,        1,     3800, 0xe5a54ba1
+0,         23,         24,        1,     4314, 0x33753f13
+0,         24,         25,        1,     3866, 0xb59a7e11
+0,         25,         26,        1,     3865, 0xa5ed7033
+0,         26,         27,        1,     3929, 0x211b7b80
+0,         27,         28,        1,     3984, 0xbbf6a5e0
+0,         28,         29,        1,     3987, 0x2818b782
+0,         29,         30,        1,     4033, 0xc9f5cb2b
+0,         30,         31,        1,     4096, 0x6834e4c2
+0,         31,         32,        1,     3548, 0xde08c9c9
+0,         32,         33,        1,     4575, 0x9855e051
+0,         33,         34,        1,     3298, 0xb4c259d1
+0,         34,         35,        1,     4145, 0xe246f989
+0,         35,         36,        1,     3369, 0x0948817c
+0,         36,         37,        1,     4179, 0x24c90004
+0,         37,         38,        1,     3402, 0x37517a3f
+0,         38,         39,        1,     4270, 0xa2f445c2
+0,         39,         40,        1,     3445, 0x276cb366
+0,         40,         41,        1,     3826, 0x14695a66
+0,         41,         42,        1,     3808, 0x62e7553b
+0,         42,         43,        1,     3840, 0xd1a16948
+0,         43,         44,        1,     3825, 0xf8355eae
+0,         44,         45,        1,     3857, 0xb4305ff0
+0,         45,         46,        1,     3818, 0xdb71573b
+0,         46,         47,        1,     3812, 0x312363e6
+0,         47,         48,        1,     3874, 0x643a8178
+0,         48,         49,        1,     3522, 0x6542dec1
diff --git a/tests/ref/fate/libyami-h264-tran_mp4 b/tests/ref/fate/libyami-h264-tran_mp4
new file mode 100644
index 0000000..e4e419c
--- /dev/null
+++ b/tests/ref/fate/libyami-h264-tran_mp4
@@ -0,0 +1,131 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: h264
+#dimensions 0: 640x360
+#sar 0: 1/1
+0,         -1,          0,        1,    16756, 0x6a2583f2
+0,          0,          1,        1,     3620, 0x8c65ffd8, F=0x0
+0,          1,          2,        1,     4277, 0x727456d2, F=0x0
+0,          2,          3,        1,     3737, 0x57894393, F=0x0
+0,          3,          4,        1,     4854, 0xe1707757, F=0x0
+0,          4,          5,        1,     3875, 0xfd8b8076, F=0x0
+0,          5,          6,        1,     4334, 0xe1d29d8d, F=0x0
+0,          6,          7,        1,     3650, 0x5bb81fcc, F=0x0
+0,          7,          8,        1,     4672, 0xe88a1b5b, F=0x0
+0,          8,          9,        1,     3680, 0x713c3dbb, F=0x0
+0,          9,         10,        1,     4082, 0x9a8d09a5, F=0x0
+0,         10,         11,        1,     3787, 0xf72a6871, F=0x0
+0,         11,         12,        1,    15957, 0x05f7e61b
+0,         12,         13,        1,     3842, 0x37f969c6, F=0x0
+0,         13,         14,        1,     4184, 0x94ae1d6d, F=0x0
+0,         14,         15,        1,     4020, 0xdbaabbb7, F=0x0
+0,         15,         16,        1,     4380, 0xdb4d7e6a, F=0x0
+0,         16,         17,        1,     3972, 0x9a08c95c, F=0x0
+0,         17,         18,        1,     4392, 0x68eca0da, F=0x0
+0,         18,         19,        1,     4137, 0x195d20c7, F=0x0
+0,         19,         20,        1,     4378, 0x7b956e76, F=0x0
+0,         20,         21,        1,     5340, 0xa4c18330, F=0x0
+0,         21,         22,        1,     5062, 0x1000fb75, F=0x0
+0,         22,         23,        1,     5053, 0xad06e922, F=0x0
+0,         23,         24,        1,    15738, 0x569ba5c7
+0,         24,         25,        1,     3542, 0xe5bdeadf, F=0x0
+0,         25,         26,        1,     4110, 0x821ef667, F=0x0
+0,         26,         27,        1,     3911, 0x3a14ad7a, F=0x0
+0,         27,         28,        1,     4218, 0xbfa43ad4, F=0x0
+0,         28,         29,        1,     3642, 0x573d1f1d, F=0x0
+0,         29,         30,        1,     4120, 0x7ead0012, F=0x0
+0,         30,         31,        1,     4019, 0x0d67dd0c, F=0x0
+0,         31,         32,        1,     4155, 0x20d8161b, F=0x0
+0,         32,         33,        1,     3830, 0xa44c570a, F=0x0
+0,         33,         34,        1,     4493, 0xb5c7c257, F=0x0
+0,         34,         35,        1,     4733, 0x1e814814, F=0x0
+0,         35,         36,        1,    15036, 0xfe9967b8
+0,         36,         37,        1,     4131, 0xc30a0f6a, F=0x0
+0,         37,         38,        1,     4460, 0xeb73926d, F=0x0
+0,         38,         39,        1,     4367, 0x7b5e8b98, F=0x0
+0,         39,         40,        1,     4169, 0x68c829bd, F=0x0
+0,         40,         41,        1,     3723, 0x5d8141a8, F=0x0
+0,         41,         42,        1,     4290, 0xbe4152f3, F=0x0
+0,         42,         43,        1,     4094, 0xd2defea2, F=0x0
+0,         43,         44,        1,     4129, 0x972a089b, F=0x0
+0,         44,         45,        1,     5331, 0x25d7694a, F=0x0
+0,         45,         46,        1,     5110, 0x7e11112b, F=0x0
+0,         46,         47,        1,     5088, 0xab7f1653, F=0x0
+0,         47,         48,        1,    15396, 0x700025d8
+0,         48,         49,        1,     3581, 0xc53ff747, F=0x0
+0,         49,         50,        1,     4046, 0x75650389, F=0x0
+0,         50,         51,        1,     4192, 0xafb12971, F=0x0
+0,         51,         52,        1,     4333, 0xd6e27bee, F=0x0
+0,         52,         53,        1,     3885, 0x03f980a7, F=0x0
+0,         53,         54,        1,     4249, 0x6f144883, F=0x0
+0,         54,         55,        1,     4209, 0x5f2148c3, F=0x0
+0,         55,         56,        1,     4935, 0xfc0d9f6a, F=0x0
+0,         56,         57,        1,     4058, 0x8e56f68a, F=0x0
+0,         57,         58,        1,     4539, 0x75250343, F=0x0
+0,         58,         59,        1,     3798, 0x675a7f2b, F=0x0
+0,         59,         60,        1,    14302, 0xd5eba733
+0,         60,         61,        1,     4326, 0x23105ab4, F=0x0
+0,         61,         62,        1,     4306, 0x892568e2, F=0x0
+0,         62,         63,        1,     4231, 0x11cf4272, F=0x0
+0,         63,         64,        1,     4136, 0x24520551, F=0x0
+0,         64,         65,        1,     3944, 0x8ece9ddd, F=0x0
+0,         65,         66,        1,     4249, 0x007561a0, F=0x0
+0,         66,         67,        1,     4019, 0xd243eaac, F=0x0
+0,         67,         68,        1,     4038, 0xc447d275, F=0x0
+0,         68,         69,        1,     5065, 0x8215fe4e, F=0x0
+0,         69,         70,        1,     5077, 0x2b7ae5c2, F=0x0
+0,         70,         71,        1,     4600, 0x93e70dc3, F=0x0
+0,         71,         72,        1,    14246, 0x888cbcfb
+0,         72,         73,        1,     3460, 0x9edba8a0, F=0x0
+0,         73,         74,        1,     3843, 0x43778d13, F=0x0
+0,         74,         75,        1,     3894, 0x6d827e04, F=0x0
+0,         75,         76,        1,     4082, 0xc8f9e0e7, F=0x0
+0,         76,         77,        1,     3414, 0xe4aa985b, F=0x0
+0,         77,         78,        1,     3755, 0x96af5e15, F=0x0
+0,         78,         79,        1,     4098, 0x97d4f76d, F=0x0
+0,         79,         80,        1,     3910, 0x5303b4c5, F=0x0
+0,         80,         81,        1,     3627, 0x408a076d, F=0x0
+0,         81,         82,        1,     4206, 0x1fca279a, F=0x0
+0,         82,         83,        1,     3924, 0x638ab52e, F=0x0
+0,         83,         84,        1,    13381, 0x740e1214
+0,         84,         85,        1,     3876, 0xe55ea116, F=0x0
+0,         85,         86,        1,     3921, 0x21729643, F=0x0
+0,         86,         87,        1,     4008, 0xbf0fc486, F=0x0
+0,         87,         88,        1,     3816, 0x246b67e5, F=0x0
+0,         88,         89,        1,     3805, 0xebca72be, F=0x0
+0,         89,         90,        1,     4029, 0x870ec91d, F=0x0
+0,         90,         91,        1,     3685, 0xc75a3b4b, F=0x0
+0,         91,         92,        1,     4141, 0xcafe27ee, F=0x0
+0,         92,         93,        1,     5320, 0x824b6636, F=0x0
+0,         93,         94,        1,     4855, 0x9f906cdf, F=0x0
+0,         94,         95,        1,     4915, 0x26f3ab8f, F=0x0
+0,         95,         96,        1,    14602, 0x634b6b10
+0,         96,         97,        1,     3702, 0x694c30a8, F=0x0
+0,         97,         98,        1,     4235, 0x97b1405e, F=0x0
+0,         98,         99,        1,     4021, 0x5791cd30, F=0x0
+0,         99,        100,        1,     4622, 0x91b0020e, F=0x0
+0,        100,        101,        1,     4189, 0xca1b358f, F=0x0
+0,        101,        102,        1,     4333, 0x4a7663a9, F=0x0
+0,        102,        103,        1,     3990, 0x592fbaa9, F=0x0
+0,        103,        104,        1,     4351, 0xa3e367f6, F=0x0
+0,        104,        105,        1,     4813, 0x3ba96b6e, F=0x0
+0,        105,        106,        1,     4967, 0x58e57aaf, F=0x0
+0,        106,        107,        1,     4657, 0x0e5024e5, F=0x0
+0,        107,        108,        1,    14886, 0x9b6c4c0d
+0,        108,        109,        1,     4399, 0x11d47578, F=0x0
+0,        109,        110,        1,     5146, 0x98a318dc, F=0x0
+0,        110,        111,        1,     1664, 0x1b5f3afc, F=0x0
+0,        111,        112,        1,      813, 0xcab598cb, F=0x0
+0,        112,        113,        1,      955, 0x7946d27e, F=0x0
+0,        113,        114,        1,      688, 0x3a815a6b, F=0x0
+0,        114,        115,        1,     1294, 0x04fc8285, F=0x0
+0,        115,        116,        1,     1028, 0x594b04bf, F=0x0
+0,        116,        117,        1,     3614, 0xebb8fd50, F=0x0
+0,        117,        118,        1,     3140, 0x738ff353, F=0x0
+0,        118,        119,        1,     3290, 0xbc686cc2, F=0x0
+0,        119,        120,        1,    16684, 0x3f597aad
+0,        120,        121,        1,     1222, 0x653f6915, F=0x0
+0,        121,        122,        1,      739, 0x76ce6b44, F=0x0
+0,        122,        123,        1,      716, 0xf5275a8b, F=0x0
+0,        123,        124,        1,      479, 0x5635f2c6, F=0x0
+0,        124,        125,        1,      659, 0xe19c499d, F=0x0
diff --git a/tests/ref/fate/libyami-vp8-enc_yuv420 b/tests/ref/fate/libyami-vp8-enc_yuv420
new file mode 100644
index 0000000..183ed95
--- /dev/null
+++ b/tests/ref/fate/libyami-vp8-enc_yuv420
@@ -0,0 +1,55 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: vp8
+#dimensions 0: 352x288
+#sar 0: 0/1
+0,         -1,          0,        1,    21891, 0xd088d2f4
+0,          0,          1,        1,     5992, 0x299da906
+0,          1,          2,        1,     5602, 0xb532f781
+0,          2,          3,        1,     5550, 0x208f68ae
+0,          3,          4,        1,     5662, 0xb736e53d
+0,          4,          5,        1,     5664, 0xbb09c8bc
+0,          5,          6,        1,     5632, 0x0e33cfd8
+0,          6,          7,        1,     5815, 0xe86206eb
+0,          7,          8,        1,     5735, 0x8805fe5b
+0,          8,          9,        1,     5761, 0x806b0ffd
+0,          9,         10,        1,     5831, 0x3689f8ab
+0,         10,         11,        1,     6015, 0xb0706af7
+0,         11,         12,        1,    22160, 0x2fe37f34
+0,         12,         13,        1,     6536, 0x113b782e
+0,         13,         14,        1,     6425, 0x4a1af9d1
+0,         14,         15,        1,     6265, 0xb1d8e362
+0,         15,         16,        1,     6268, 0xb6c3fe19
+0,         16,         17,        1,     6308, 0x5a930236
+0,         17,         18,        1,     6582, 0xfa279c92
+0,         18,         19,        1,     6670, 0x7d6db333
+0,         19,         20,        1,     6898, 0x90fe55aa
+0,         20,         21,        1,     7141, 0xe4ca9fd2
+0,         21,         22,        1,     7118, 0x861da232
+0,         22,         23,        1,     7173, 0x30c8c992
+0,         23,         24,        1,    26290, 0xaa2ccf3b
+0,         24,         25,        1,     7792, 0xd679cce2
+0,         25,         26,        1,     7492, 0x26b4581d
+0,         26,         27,        1,     7625, 0xf92f9221
+0,         27,         28,        1,     7609, 0xf5d9a670
+0,         28,         29,        1,     7826, 0x60b4ec01
+0,         29,         30,        1,     8053, 0x6e73272f
+0,         30,         31,        1,     7967, 0xa3885276
+0,         31,         32,        1,     8059, 0xa4de62f3
+0,         32,         33,        1,     8165, 0x52a04f34
+0,         33,         34,        1,     8244, 0x0e3f7048
+0,         34,         35,        1,     8356, 0xcf2dd540
+0,         35,         36,        1,    29615, 0x54caea25
+0,         36,         37,        1,     8909, 0x26341649
+0,         37,         38,        1,     8826, 0x4509cb1b
+0,         38,         39,        1,     8440, 0x8e30e216
+0,         39,         40,        1,     8562, 0x0c3d63e3
+0,         40,         41,        1,     8690, 0x9c829b99
+0,         41,         42,        1,     8718, 0xaa9db3e2
+0,         42,         43,        1,     8869, 0xf3bfb139
+0,         43,         44,        1,     8670, 0x53153f62
+0,         44,         45,        1,     8868, 0x3c41bc28
+0,         45,         46,        1,     8817, 0x944fa212
+0,         46,         47,        1,     8897, 0x9e76d68e
+0,         47,         48,        1,    31643, 0xb40a67da
+0,         48,         49,        1,     9596, 0xe9272233
diff --git a/tests/ref/fate/libyami-vp8-enc_yuv420_cbr b/tests/ref/fate/libyami-vp8-enc_yuv420_cbr
new file mode 100644
index 0000000..43ac73e
--- /dev/null
+++ b/tests/ref/fate/libyami-vp8-enc_yuv420_cbr
@@ -0,0 +1,55 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: vp8
+#dimensions 0: 352x288
+#sar 0: 0/1
+0,         -1,          0,        1,     4689, 0x06c63308
+0,          0,          1,        1,     5758, 0x227c405e
+0,          1,          2,        1,     1456, 0x40e9d1ff
+0,          2,          3,        1,     2333, 0xfa248306
+0,          3,          4,        1,     2225, 0x2bb64b0e
+0,          4,          5,        1,     2378, 0xcd679a60
+0,          5,          6,        1,     2150, 0xf3ed3615
+0,          6,          7,        1,     2354, 0x55e28de4
+0,          7,          8,        1,     2123, 0x249d0d57
+0,          8,          9,        1,     2318, 0x75628608
+0,          9,         10,        1,     2227, 0xc29c3cbf
+0,         10,         11,        1,     2484, 0xf498e1b2
+0,         11,         12,        1,     8464, 0xddc8bddc
+0,         12,         13,        1,     2398, 0xd37683c2
+0,         13,         14,        1,     1887, 0x3ae895b4
+0,         14,         15,        1,     2197, 0xcdf944f7
+0,         15,         16,        1,     2487, 0xe58ec53b
+0,         16,         17,        1,     1838, 0x77587207
+0,         17,         18,        1,     2333, 0x17215b45
+0,         18,         19,        1,     2362, 0xee708f6a
+0,         19,         20,        1,     2439, 0x429cb215
+0,         20,         21,        1,     2197, 0xd33a1fa1
+0,         21,         22,        1,     2788, 0xbcd950bd
+0,         22,         23,        1,     2097, 0xe14103bf
+0,         23,         24,        1,    11703, 0xa53d67c8
+0,         24,         25,        1,     3042, 0xe05bb1f7
+0,         25,         26,        1,     1944, 0x9be6a075
+0,         26,         27,        1,     2481, 0xb50dd539
+0,         27,         28,        1,     2026, 0xec68ed1d
+0,         28,         29,        1,     2466, 0xf1e8a91e
+0,         29,         30,        1,     2067, 0x6885e0b3
+0,         30,         31,        1,     2481, 0x81fd9c89
+0,         31,         32,        1,     2006, 0x3cb6bcb2
+0,         32,         33,        1,     2515, 0xf79fcac6
+0,         33,         34,        1,     1857, 0x7be86565
+0,         34,         35,        1,     2454, 0x7cd496cb
+0,         35,         36,        1,    11992, 0x8a3e0c94
+0,         36,         37,        1,     2434, 0x36f49375
+0,         37,         38,        1,     2096, 0xe436edee
+0,         38,         39,        1,     2378, 0x65dd75b4
+0,         39,         40,        1,     2230, 0x368b3687
+0,         40,         41,        1,     2616, 0x72e1e0fd
+0,         41,         42,        1,     1826, 0xc3e1707c
+0,         42,         43,        1,     2290, 0x628a3b4b
+0,         43,         44,        1,     2322, 0x01475db9
+0,         44,         45,        1,     2276, 0x422a2e15
+0,         45,         46,        1,     2530, 0x172aaf15
+0,         46,         47,        1,     1837, 0x5512655a
+0,         47,         48,        1,    12183, 0xe6b25859
+0,         48,         49,        1,     2846, 0x6c045498
diff --git a/tests/ref/fate/libyami-vp8-enc_yuv420_gop b/tests/ref/fate/libyami-vp8-enc_yuv420_gop
new file mode 100644
index 0000000..8f2ad56
--- /dev/null
+++ b/tests/ref/fate/libyami-vp8-enc_yuv420_gop
@@ -0,0 +1,55 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: vp8
+#dimensions 0: 352x288
+#sar 0: 0/1
+0,         -3,          0,        1,    21891, 0xd088d2f4
+0,         -2,          1,        1,     5992, 0x299da906
+0,         -1,          2,        1,     5602, 0xb532f781
+0,          0,          3,        1,     5550, 0x208f68ae
+0,          1,          4,        1,     5662, 0xb736e53d
+0,          2,          5,        1,     5664, 0xbb09c8bc
+0,          3,          6,        1,     5632, 0x0e33cfd8
+0,          4,          7,        1,     5815, 0xe86206eb
+0,          5,          8,        1,     5735, 0x8805fe5b
+0,          6,          9,        1,     5761, 0x806b0ffd
+0,          7,         10,        1,     5831, 0x3689f8ab
+0,          8,         11,        1,     6015, 0xb0706af7
+0,          9,         12,        1,     6054, 0x089f8a3c
+0,         10,         13,        1,     6120, 0x2690df5e
+0,         11,         14,        1,     6120, 0x34e2746f
+0,         12,         15,        1,     6152, 0x5f2ab209
+0,         13,         16,        1,     6374, 0x63fa1eb6
+0,         14,         17,        1,     6362, 0xbbbe0ba8
+0,         15,         18,        1,     6593, 0xd8d57abe
+0,         16,         19,        1,     6639, 0x241ba167
+0,         17,         20,        1,     6940, 0xba8e4b7d
+0,         18,         21,        1,     6999, 0xc3c89ca0
+0,         19,         22,        1,     7252, 0x5e30f36e
+0,         20,         23,        1,     7121, 0xfdabc218
+0,         21,         24,        1,     7373, 0x7a8b2629
+0,         22,         25,        1,     7229, 0x6af2dadd
+0,         23,         26,        1,     7281, 0xac58eff7
+0,         24,         27,        1,     7542, 0x1c896dbf
+0,         25,         28,        1,     7576, 0xa04e52ea
+0,         26,         29,        1,     7811, 0x75c0d4b5
+0,         27,         30,        1,    28175, 0xffe8e49d
+0,         28,         31,        1,     8615, 0x96ce61b1
+0,         29,         32,        1,     8367, 0x9213e37c
+0,         30,         33,        1,     8293, 0x7705a9ba
+0,         31,         34,        1,     8273, 0xadffbb87
+0,         32,         35,        1,     8366, 0x6470e1bc
+0,         33,         36,        1,     8505, 0xfa791662
+0,         34,         37,        1,     8523, 0x4ba4256c
+0,         35,         38,        1,     8734, 0x2059b07e
+0,         36,         39,        1,     8468, 0xeb1befd2
+0,         37,         40,        1,     8604, 0x7a7937ef
+0,         38,         41,        1,     8666, 0x6c1a6c7c
+0,         39,         42,        1,     8644, 0x1a199c41
+0,         40,         43,        1,     8757, 0xfcbea662
+0,         41,         44,        1,     8679, 0x5f854b45
+0,         42,         45,        1,     8772, 0x17498fb2
+0,         43,         46,        1,     8732, 0x8248a292
+0,         44,         47,        1,     8855, 0xe692bbc9
+0,         45,         48,        1,     8927, 0x9c9aca99
+0,         46,         49,        1,     9003, 0xeac500a3
diff --git a/tests/ref/fate/libyami-vp8-enc_yuv420_qp b/tests/ref/fate/libyami-vp8-enc_yuv420_qp
new file mode 100644
index 0000000..183ed95
--- /dev/null
+++ b/tests/ref/fate/libyami-vp8-enc_yuv420_qp
@@ -0,0 +1,55 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: vp8
+#dimensions 0: 352x288
+#sar 0: 0/1
+0,         -1,          0,        1,    21891, 0xd088d2f4
+0,          0,          1,        1,     5992, 0x299da906
+0,          1,          2,        1,     5602, 0xb532f781
+0,          2,          3,        1,     5550, 0x208f68ae
+0,          3,          4,        1,     5662, 0xb736e53d
+0,          4,          5,        1,     5664, 0xbb09c8bc
+0,          5,          6,        1,     5632, 0x0e33cfd8
+0,          6,          7,        1,     5815, 0xe86206eb
+0,          7,          8,        1,     5735, 0x8805fe5b
+0,          8,          9,        1,     5761, 0x806b0ffd
+0,          9,         10,        1,     5831, 0x3689f8ab
+0,         10,         11,        1,     6015, 0xb0706af7
+0,         11,         12,        1,    22160, 0x2fe37f34
+0,         12,         13,        1,     6536, 0x113b782e
+0,         13,         14,        1,     6425, 0x4a1af9d1
+0,         14,         15,        1,     6265, 0xb1d8e362
+0,         15,         16,        1,     6268, 0xb6c3fe19
+0,         16,         17,        1,     6308, 0x5a930236
+0,         17,         18,        1,     6582, 0xfa279c92
+0,         18,         19,        1,     6670, 0x7d6db333
+0,         19,         20,        1,     6898, 0x90fe55aa
+0,         20,         21,        1,     7141, 0xe4ca9fd2
+0,         21,         22,        1,     7118, 0x861da232
+0,         22,         23,        1,     7173, 0x30c8c992
+0,         23,         24,        1,    26290, 0xaa2ccf3b
+0,         24,         25,        1,     7792, 0xd679cce2
+0,         25,         26,        1,     7492, 0x26b4581d
+0,         26,         27,        1,     7625, 0xf92f9221
+0,         27,         28,        1,     7609, 0xf5d9a670
+0,         28,         29,        1,     7826, 0x60b4ec01
+0,         29,         30,        1,     8053, 0x6e73272f
+0,         30,         31,        1,     7967, 0xa3885276
+0,         31,         32,        1,     8059, 0xa4de62f3
+0,         32,         33,        1,     8165, 0x52a04f34
+0,         33,         34,        1,     8244, 0x0e3f7048
+0,         34,         35,        1,     8356, 0xcf2dd540
+0,         35,         36,        1,    29615, 0x54caea25
+0,         36,         37,        1,     8909, 0x26341649
+0,         37,         38,        1,     8826, 0x4509cb1b
+0,         38,         39,        1,     8440, 0x8e30e216
+0,         39,         40,        1,     8562, 0x0c3d63e3
+0,         40,         41,        1,     8690, 0x9c829b99
+0,         41,         42,        1,     8718, 0xaa9db3e2
+0,         42,         43,        1,     8869, 0xf3bfb139
+0,         43,         44,        1,     8670, 0x53153f62
+0,         44,         45,        1,     8868, 0x3c41bc28
+0,         45,         46,        1,     8817, 0x944fa212
+0,         46,         47,        1,     8897, 0x9e76d68e
+0,         47,         48,        1,    31643, 0xb40a67da
+0,         48,         49,        1,     9596, 0xe9272233
diff --git a/tests/ref/fate/libyami-vp8-enc_yuv420_vbr b/tests/ref/fate/libyami-vp8-enc_yuv420_vbr
new file mode 100644
index 0000000..79a2bb2
--- /dev/null
+++ b/tests/ref/fate/libyami-vp8-enc_yuv420_vbr
@@ -0,0 +1,55 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: vp8
+#dimensions 0: 352x288
+#sar 0: 0/1
+0,         -1,          0,        1,     5093, 0x8e931ffb
+0,          0,          1,        1,     3610, 0xfce9ef6f
+0,          1,          2,        1,     2278, 0xdddf6b45
+0,          2,          3,        1,     2511, 0x0befe1d7
+0,          3,          4,        1,     2472, 0x0b21be10
+0,          4,          5,        1,     2399, 0x9beba14a
+0,          5,          6,        1,     2582, 0x1630e200
+0,          6,          7,        1,     2293, 0xc6eb5118
+0,          7,          8,        1,     2675, 0x2a05317c
+0,          8,          9,        1,     2210, 0x4c303e46
+0,          9,         10,        1,     2506, 0x2ce8c3a7
+0,         10,         11,        1,     2501, 0x30c4b135
+0,         11,         12,        1,     9986, 0xc20ab028
+0,         12,         13,        1,     3069, 0xcd8fca61
+0,         13,         14,        1,     2044, 0xdbf4d7be
+0,         14,         15,        1,     2607, 0x2cf8ea10
+0,         15,         16,        1,     2421, 0x4cbbadcf
+0,         16,         17,        1,     2924, 0x03af8948
+0,         17,         18,        1,     2058, 0xc7ffe681
+0,         18,         19,        1,     2858, 0xfebe63f4
+0,         19,         20,        1,     2213, 0x9f453377
+0,         20,         21,        1,     2983, 0xf6f0a54d
+0,         21,         22,        1,     2260, 0x349a4adf
+0,         22,         23,        1,     3186, 0x823304a7
+0,         23,         24,        1,    12707, 0x82bd5dfe
+0,         24,         25,        1,     2671, 0x9466099f
+0,         25,         26,        1,     2121, 0x1b4ff570
+0,         26,         27,        1,     2811, 0x92f658e5
+0,         27,         28,        1,     2011, 0x1a1fcf0a
+0,         28,         29,        1,     2522, 0x76a4af4a
+0,         29,         30,        1,     2658, 0xbaf8fdbc
+0,         30,         31,        1,     2262, 0x06de54f6
+0,         31,         32,        1,     2884, 0x30338316
+0,         32,         33,        1,     2037, 0xb0f2d4ce
+0,         33,         34,        1,     2653, 0x5b1eec83
+0,         34,         35,        1,     2283, 0x11e133fa
+0,         35,         36,        1,    12926, 0x32619e35
+0,         36,         37,        1,     3378, 0x0f2d589e
+0,         37,         38,        1,     2075, 0xc33adb8e
+0,         38,         39,        1,     2577, 0xc158c57f
+0,         39,         40,        1,     2615, 0xeddecf84
+0,         40,         41,        1,     2415, 0x2de67136
+0,         41,         42,        1,     3065, 0x5ad5c17a
+0,         42,         43,        1,     2113, 0x9af4f26a
+0,         43,         44,        1,     2725, 0xd1d6fc51
+0,         44,         45,        1,     2276, 0x8a993ba3
+0,         45,         46,        1,     2887, 0x0aa95ea2
+0,         46,         47,        1,     1978, 0x6e8990e8
+0,         47,         48,        1,    13094, 0x5a5b2f52
+0,         48,         49,        1,     2955, 0x7fde79ce
diff --git a/tests/ref/fate/libyami-vp8-tran_mp4 b/tests/ref/fate/libyami-vp8-tran_mp4
new file mode 100644
index 0000000..536446f
--- /dev/null
+++ b/tests/ref/fate/libyami-vp8-tran_mp4
@@ -0,0 +1,131 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: vp8
+#dimensions 0: 640x360
+#sar 0: 1/1
+0,         -1,          0,        1,    20829, 0x6f4865e6
+0,          0,          1,        1,     7425, 0x05c68198
+0,          1,          2,        1,     7915, 0xbbde5e99
+0,          2,          3,        1,     7095, 0xf7859d09
+0,          3,          4,        1,     8685, 0x1945ccf9
+0,          4,          5,        1,     7401, 0x9e6550da
+0,          5,          6,        1,     7887, 0xf6845b99
+0,          6,          7,        1,     6968, 0xb110b5e7
+0,          7,          8,        1,     8093, 0xf30ab5d8
+0,          8,          9,        1,     6727, 0x2aaefc46
+0,          9,         10,        1,     7482, 0xb77e88b0
+0,         10,         11,        1,     6793, 0x1c51209c
+0,         11,         12,        1,    20083, 0xd85ea9b4
+0,         12,         13,        1,     7365, 0x8c623815
+0,         13,         14,        1,     7583, 0x4819a1ed
+0,         14,         15,        1,     7172, 0x801ff90b
+0,         15,         16,        1,     7591, 0xec1ea7f8
+0,         16,         17,        1,     7252, 0x7be71ee6
+0,         17,         18,        1,     7407, 0x4a3072b5
+0,         18,         19,        1,     7066, 0xc9279410
+0,         19,         20,        1,     7298, 0xcaa6319c
+0,         20,         21,        1,     8522, 0x5965815b
+0,         21,         22,        1,     8576, 0x6edba12b
+0,         22,         23,        1,     8262, 0xd560e466
+0,         23,         24,        1,    20468, 0xf79ebc9c
+0,         24,         25,        1,     7160, 0x87fdc2d2
+0,         25,         26,        1,     7506, 0x8fb0a9a9
+0,         26,         27,        1,     7209, 0x1f55efae
+0,         27,         28,        1,     7686, 0x3612d1af
+0,         28,         29,        1,     6857, 0xeab55fc2
+0,         29,         30,        1,     7366, 0x08196889
+0,         30,         31,        1,     6976, 0x13c1590c
+0,         31,         32,        1,     7238, 0xfa2efc7b
+0,         32,         33,        1,     6676, 0x7ee2f9a0
+0,         33,         34,        1,     7347, 0xad934aba
+0,         34,         35,        1,     7698, 0x83181464
+0,         35,         36,        1,    18942, 0xadf13f7f
+0,         36,         37,        1,     7505, 0xf94a8535
+0,         37,         38,        1,     7392, 0x05024128
+0,         38,         39,        1,     7173, 0x00b1d451
+0,         39,         40,        1,     6867, 0x2f041fec
+0,         40,         41,        1,     7169, 0xccfec766
+0,         41,         42,        1,     7502, 0xc0377c0b
+0,         42,         43,        1,     6722, 0x59d0e379
+0,         43,         44,        1,     6803, 0xfbac0911
+0,         44,         45,        1,     8649, 0x2a71a248
+0,         45,         46,        1,     8660, 0xe035add0
+0,         46,         47,        1,     8552, 0x7bbabedd
+0,         47,         48,        1,    19524, 0x8f575e9c
+0,         48,         49,        1,     7144, 0x28cfc1d4
+0,         49,         50,        1,     7754, 0xf6510cab
+0,         50,         51,        1,     7983, 0x876a726f
+0,         51,         52,        1,     7889, 0x00653ce6
+0,         52,         53,        1,     7139, 0x1a4eb240
+0,         53,         54,        1,     7776, 0xa4c50d17
+0,         54,         55,        1,     7346, 0x3d015117
+0,         55,         56,        1,     8058, 0x50c97fef
+0,         56,         57,        1,     7200, 0xd2dcf537
+0,         57,         58,        1,     7692, 0x547311d9
+0,         58,         59,        1,     6795, 0x7393616b
+0,         59,         60,        1,    17947, 0xec072f5b
+0,         60,         61,        1,     7520, 0x1ee4a2d8
+0,         61,         62,        1,     7352, 0xfcb24065
+0,         62,         63,        1,     7112, 0x9cd20623
+0,         63,         64,        1,     7331, 0x16971bb0
+0,         64,         65,        1,     6844, 0xb2643f23
+0,         65,         66,        1,     7144, 0x4aa7f758
+0,         66,         67,        1,     7239, 0xef5b2539
+0,         67,         68,        1,     7170, 0xd1ebe17d
+0,         68,         69,        1,     8722, 0x8194fe07
+0,         69,         70,        1,     8401, 0x546d37ef
+0,         70,         71,        1,     8108, 0x2a6f999b
+0,         71,         72,        1,    17922, 0xe1424c8a
+0,         72,         73,        1,     6622, 0xd0ebcc87
+0,         73,         74,        1,     7212, 0x42e8d4e3
+0,         74,         75,        1,     7192, 0x0a41b28c
+0,         75,         76,        1,     7522, 0x07198956
+0,         76,         77,        1,     6802, 0x93c23616
+0,         77,         78,        1,     7003, 0xa1dc813b
+0,         78,         79,        1,     6984, 0x54c7721c
+0,         79,         80,        1,     7157, 0x7901bc25
+0,         80,         81,        1,     6431, 0x52fd5d26
+0,         81,         82,        1,     7159, 0x3acfeff9
+0,         82,         83,        1,     6694, 0x46bda8d6
+0,         83,         84,        1,    16727, 0x9aae8010
+0,         84,         85,        1,     6995, 0x2a98611e
+0,         85,         86,        1,     7080, 0x49a2b0e5
+0,         86,         87,        1,     7026, 0x0d21aa59
+0,         87,         88,        1,     6644, 0x870ba03d
+0,         88,         89,        1,     6791, 0x7dede56a
+0,         89,         90,        1,     7419, 0x085d5774
+0,         90,         91,        1,     6695, 0x4e36f0a9
+0,         91,         92,        1,     7223, 0x8a2df4ab
+0,         92,         93,        1,     9035, 0x21e26931
+0,         93,         94,        1,     8412, 0x79801cab
+0,         94,         95,        1,     8710, 0xa9fca89f
+0,         95,         96,        1,    18406, 0xf294f070
+0,         96,         97,        1,     7401, 0xa86845c5
+0,         97,         98,        1,     7716, 0x1884c20a
+0,         98,         99,        1,     7748, 0xae8e018f
+0,         99,        100,        1,     8606, 0x48879dee
+0,        100,        101,        1,     7616, 0x856dc1c7
+0,        101,        102,        1,     7986, 0xa81661a2
+0,        102,        103,        1,     7288, 0xf199dfaa
+0,        103,        104,        1,     8160, 0x34fc791e
+0,        104,        105,        1,     8791, 0x5af113a9
+0,        105,        106,        1,     8768, 0x331aee9d
+0,        106,        107,        1,     8534, 0x4c08aebb
+0,        107,        108,        1,    18793, 0x936cded1
+0,        108,        109,        1,     8207, 0xd3e8fc54
+0,        109,        110,        1,     9074, 0x794b61b5
+0,        110,        111,        1,     5187, 0xc53df263
+0,        111,        112,        1,     4466, 0xef9cae4e
+0,        112,        113,        1,     4457, 0xb11ca6ba
+0,        113,        114,        1,     4032, 0x0965de70
+0,        114,        115,        1,     4298, 0xbab065f4
+0,        115,        116,        1,     4291, 0x473b6630
+0,        116,        117,        1,     7632, 0xf2dc9c2f
+0,        117,        118,        1,     7185, 0x4b69c6a4
+0,        118,        119,        1,     7220, 0x3cf2d4bc
+0,        119,        120,        1,    21538, 0xa9f5f373
+0,        120,        121,        1,     5784, 0x16ae0840
+0,        121,        122,        1,     5127, 0xc5f4c7c3
+0,        122,        123,        1,     4878, 0xa401737c
+0,        123,        124,        1,     4574, 0x6772f9c0
+0,        124,        125,        1,     4567, 0x62d708cb
diff --git a/tests/ref/fate/source b/tests/ref/fate/source
index c7ea3da..11fc9d4 100644
--- a/tests/ref/fate/source
+++ b/tests/ref/fate/source
@@ -26,3 +26,6 @@  compat/avisynth/windowsPorts/basicDataTypeConversions.h
 compat/avisynth/windowsPorts/windows2linux.h
 compat/float/float.h
 compat/float/limits.h
+libavcodec/libyami.h
+libavcodec/libyami_dec.h
+libavcodec/libyami_enc.h