aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-03-15 19:23:24 +0000
committerMåns Rullgård <mans@mansr.com>2010-03-15 19:23:24 +0000
commit2fad0977886f99e11ec1e27f79bcb9c56737bdb0 (patch)
tree06b2473e23f3581abd75a66e7390cb176f4ee1b4
parentf75ab7a64534c1a114f71da92d0fafc622d65244 (diff)
downloadffmpeg-2fad0977886f99e11ec1e27f79bcb9c56737bdb0.tar.gz
Add FATE tests
This adds a "fate" make target which runs the full FATE test suite. Individual tests can be run with "make fate-$testname". The location of the FATE test samples must be specified with the --samples=PATH option to configure. The tests/fate-update.sh script regenerates the references files and test list from the online FATE database. These are checked in since generating them requires non-standard tools. Originally committed as revision 22552 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--Makefile10
-rwxr-xr-xconfigure3
-rwxr-xr-xtests/fate-run.sh19
-rwxr-xr-xtests/fate-update.sh36
-rw-r--r--tests/fate.mak694
-rw-r--r--tests/ref/fate/4xm1
-rw-r--r--tests/ref/fate/8bps35
-rw-r--r--tests/ref/fate/aac-demux1
-rw-r--r--tests/ref/fate/aasc23
-rw-r--r--tests/ref/fate/adpcm-ea-r21
-rw-r--r--tests/ref/fate/adpcm-ea-r31
-rw-r--r--tests/ref/fate/aea-demux1
-rw-r--r--tests/ref/fate/alg-mm31
-rw-r--r--tests/ref/fate/amv320
-rw-r--r--tests/ref/fate/armovie-escape124104
-rw-r--r--tests/ref/fate/auravision24
-rw-r--r--tests/ref/fate/auravision-v22
-rw-r--r--tests/ref/fate/bethsoft-vid141
-rw-r--r--tests/ref/fate/bfi114
-rw-r--r--tests/ref/fate/bink-demux1
-rw-r--r--tests/ref/fate/bink-demux-video20
-rw-r--r--tests/ref/fate/caf1
-rw-r--r--tests/ref/fate/cdgraphics299
-rw-r--r--tests/ref/fate/cljr36
-rw-r--r--tests/ref/fate/corepng37
-rw-r--r--tests/ref/fate/creative-adpcm1
-rw-r--r--tests/ref/fate/creative-adpcm-8-2.6bit1
-rw-r--r--tests/ref/fate/creative-adpcm-8-2bit1
-rw-r--r--tests/ref/fate/creative-adpcm-8-4bit1
-rw-r--r--tests/ref/fate/creatureshock-avs92
-rw-r--r--tests/ref/fate/cryo-apc1
-rw-r--r--tests/ref/fate/cscd208
-rw-r--r--tests/ref/fate/cvid78
-rw-r--r--tests/ref/fate/cvid-palette56
-rw-r--r--tests/ref/fate/cyberia-c9342
-rw-r--r--tests/ref/fate/cyuv150
-rw-r--r--tests/ref/fate/d-cinema-demux4
-rw-r--r--tests/ref/fate/delphine-cin183
-rw-r--r--tests/ref/fate/deluxepaint-anm155
-rw-r--r--tests/ref/fate/dpx1
-rw-r--r--tests/ref/fate/duck-dk31
-rw-r--r--tests/ref/fate/duck-dk41
-rw-r--r--tests/ref/fate/duck-tm230
-rw-r--r--tests/ref/fate/ea-cdata1
-rw-r--r--tests/ref/fate/ea-cmv194
-rw-r--r--tests/ref/fate/ea-dct267
-rw-r--r--tests/ref/fate/ea-mad-adpcm-ea-r1191
-rw-r--r--tests/ref/fate/ea-mad-pcm-planar292
-rw-r--r--tests/ref/fate/ea-tgq278
-rw-r--r--tests/ref/fate/ea-tgv-ima-ea-eacs94
-rw-r--r--tests/ref/fate/ea-tgv-ima-ea-sead87
-rw-r--r--tests/ref/fate/ea-tqi-adpcm52
-rw-r--r--tests/ref/fate/ea-vp60133
-rw-r--r--tests/ref/fate/ea-vp61120
-rw-r--r--tests/ref/fate/feeble-dxa65
-rw-r--r--tests/ref/fate/film-cvid-pcm-stereo-8bit247
-rw-r--r--tests/ref/fate/flic-af11-palette-change116
-rw-r--r--tests/ref/fate/flic-af1227
-rw-r--r--tests/ref/fate/flic-magiccarpet42
-rw-r--r--tests/ref/fate/fraps-v020
-rw-r--r--tests/ref/fate/fraps-v11
-rw-r--r--tests/ref/fate/fraps-v210
-rw-r--r--tests/ref/fate/fraps-v39
-rw-r--r--tests/ref/fate/fraps-v47
-rw-r--r--tests/ref/fate/fraps-v558
-rw-r--r--tests/ref/fate/frwu10
-rw-r--r--tests/ref/fate/funcom-iss1
-rw-r--r--tests/ref/fate/h264-conformance-aud_mw_e100
-rw-r--r--tests/ref/fate/h264-conformance-ba1_ft_c299
-rw-r--r--tests/ref/fate/h264-conformance-ba1_sony_d17
-rw-r--r--tests/ref/fate/h264-conformance-ba2_sony_f300
-rw-r--r--tests/ref/fate/h264-conformance-ba3_sva_c33
-rw-r--r--tests/ref/fate/h264-conformance-ba_mw_d100
-rw-r--r--tests/ref/fate/h264-conformance-bamq1_jvc_c30
-rw-r--r--tests/ref/fate/h264-conformance-bamq2_jvc_c30
-rw-r--r--tests/ref/fate/h264-conformance-banm_mw_d100
-rw-r--r--tests/ref/fate/h264-conformance-basqp1_sony_c4
-rw-r--r--tests/ref/fate/h264-conformance-caba1_sony_d50
-rw-r--r--tests/ref/fate/h264-conformance-caba1_sva_b17
-rw-r--r--tests/ref/fate/h264-conformance-caba2_sony_e300
-rw-r--r--tests/ref/fate/h264-conformance-caba2_sva_b17
-rw-r--r--tests/ref/fate/h264-conformance-caba3_sony_c300
-rw-r--r--tests/ref/fate/h264-conformance-caba3_sva_b33
-rw-r--r--tests/ref/fate/h264-conformance-caba3_toshiba_e300
-rw-r--r--tests/ref/fate/h264-conformance-cabac_mot_fld0_full30
-rw-r--r--tests/ref/fate/h264-conformance-cabac_mot_frm0_full30
-rw-r--r--tests/ref/fate/h264-conformance-cabac_mot_mbaff0_full30
-rw-r--r--tests/ref/fate/h264-conformance-cabac_mot_picaff0_full30
-rw-r--r--tests/ref/fate/h264-conformance-cabaci3_sony_b300
-rw-r--r--tests/ref/fate/h264-conformance-cabast3_sony_e25
-rw-r--r--tests/ref/fate/h264-conformance-cabastbr3_sony_b25
-rw-r--r--tests/ref/fate/h264-conformance-cabref3_sand_d50
-rw-r--r--tests/ref/fate/h264-conformance-cacqp3_sony_d50
-rw-r--r--tests/ref/fate/h264-conformance-cafi1_sva_c33
-rw-r--r--tests/ref/fate/h264-conformance-cama1_sony_c5
-rw-r--r--tests/ref/fate/h264-conformance-cama1_toshiba_b90
-rw-r--r--tests/ref/fate/h264-conformance-cama1_vtc_c4
-rw-r--r--tests/ref/fate/h264-conformance-cama2_vtc_b4
-rw-r--r--tests/ref/fate/h264-conformance-cama3_sand_e50
-rw-r--r--tests/ref/fate/h264-conformance-cama3_vtc_b4
-rw-r--r--tests/ref/fate/h264-conformance-camaci3_sony_c17
-rw-r--r--tests/ref/fate/h264-conformance-camanl1_toshiba_b90
-rw-r--r--tests/ref/fate/h264-conformance-camanl2_toshiba_b90
-rw-r--r--tests/ref/fate/h264-conformance-camanl3_sand_e50
-rw-r--r--tests/ref/fate/h264-conformance-camasl3_sony_b17
-rw-r--r--tests/ref/fate/h264-conformance-camp_mot_mbaff_l3030
-rw-r--r--tests/ref/fate/h264-conformance-camp_mot_mbaff_l3130
-rw-r--r--tests/ref/fate/h264-conformance-canl1_sony_e50
-rw-r--r--tests/ref/fate/h264-conformance-canl1_sva_b17
-rw-r--r--tests/ref/fate/h264-conformance-canl1_toshiba_g300
-rw-r--r--tests/ref/fate/h264-conformance-canl2_sony_e300
-rw-r--r--tests/ref/fate/h264-conformance-canl2_sva_b17
-rw-r--r--tests/ref/fate/h264-conformance-canl3_sony_c300
-rw-r--r--tests/ref/fate/h264-conformance-canl3_sva_b17
-rw-r--r--tests/ref/fate/h264-conformance-canl4_sva_b33
-rw-r--r--tests/ref/fate/h264-conformance-canlma2_sony_c17
-rw-r--r--tests/ref/fate/h264-conformance-canlma3_sony_c17
-rw-r--r--tests/ref/fate/h264-conformance-capa1_toshiba_b90
-rw-r--r--tests/ref/fate/h264-conformance-capama3_sand_f50
-rw-r--r--tests/ref/fate/h264-conformance-capcm1_sand_e30
-rw-r--r--tests/ref/fate/h264-conformance-capcmnl1_sand_e30
-rw-r--r--tests/ref/fate/h264-conformance-capm3_sony_d300
-rw-r--r--tests/ref/fate/h264-conformance-caqp1_sony_b50
-rw-r--r--tests/ref/fate/h264-conformance-cavlc_mot_fld0_full_b30
-rw-r--r--tests/ref/fate/h264-conformance-cavlc_mot_frm0_full_b30
-rw-r--r--tests/ref/fate/h264-conformance-cavlc_mot_mbaff0_full_b30
-rw-r--r--tests/ref/fate/h264-conformance-cavlc_mot_picaff0_full_b30
-rw-r--r--tests/ref/fate/h264-conformance-cawp1_toshiba_e90
-rw-r--r--tests/ref/fate/h264-conformance-cawp5_toshiba_e90
-rw-r--r--tests/ref/fate/h264-conformance-ci1_ft_b291
-rw-r--r--tests/ref/fate/h264-conformance-ci_mw_d100
-rw-r--r--tests/ref/fate/h264-conformance-cvbs3_sony_c300
-rw-r--r--tests/ref/fate/h264-conformance-cvcanlma2_sony_c17
-rw-r--r--tests/ref/fate/h264-conformance-cvfi1_sony_d17
-rw-r--r--tests/ref/fate/h264-conformance-cvfi1_sva_c7
-rw-r--r--tests/ref/fate/h264-conformance-cvfi2_sony_h17
-rw-r--r--tests/ref/fate/h264-conformance-cvfi2_sva_c13
-rw-r--r--tests/ref/fate/h264-conformance-cvma1_sony_d5
-rw-r--r--tests/ref/fate/h264-conformance-cvma1_toshiba_b90
-rw-r--r--tests/ref/fate/h264-conformance-cvmanl1_toshiba_b90
-rw-r--r--tests/ref/fate/h264-conformance-cvmanl2_toshiba_b90
-rw-r--r--tests/ref/fate/h264-conformance-cvmapaqp3_sony_e8
-rw-r--r--tests/ref/fate/h264-conformance-cvmaqp2_sony_g17
-rw-r--r--tests/ref/fate/h264-conformance-cvmaqp3_sony_d17
-rw-r--r--tests/ref/fate/h264-conformance-cvmp_mot_fld_l30_b30
-rw-r--r--tests/ref/fate/h264-conformance-cvmp_mot_frm_l31_b30
-rw-r--r--tests/ref/fate/h264-conformance-cvnlfi1_sony_c17
-rw-r--r--tests/ref/fate/h264-conformance-cvnlfi2_sony_h17
-rw-r--r--tests/ref/fate/h264-conformance-cvpa1_toshiba_b90
-rw-r--r--tests/ref/fate/h264-conformance-cvpcmnl1_sva_c30
-rw-r--r--tests/ref/fate/h264-conformance-cvpcmnl2_sva_c2
-rw-r--r--tests/ref/fate/h264-conformance-cvwp1_toshiba_e90
-rw-r--r--tests/ref/fate/h264-conformance-cvwp2_toshiba_e90
-rw-r--r--tests/ref/fate/h264-conformance-cvwp3_toshiba_e90
-rw-r--r--tests/ref/fate/h264-conformance-cvwp5_toshiba_e90
-rw-r--r--tests/ref/fate/h264-conformance-fi1_sony_e17
-rw-r--r--tests/ref/fate/h264-conformance-frext-alphaconformanceg43
-rw-r--r--tests/ref/fate/h264-conformance-frext-bcrm_freh10100
-rw-r--r--tests/ref/fate/h264-conformance-frext-brcm_freh11100
-rw-r--r--tests/ref/fate/h264-conformance-frext-brcm_freh3100
-rw-r--r--tests/ref/fate/h264-conformance-frext-brcm_freh4100
-rw-r--r--tests/ref/fate/h264-conformance-frext-brcm_freh5100
-rw-r--r--tests/ref/fate/h264-conformance-frext-brcm_freh8100
-rw-r--r--tests/ref/fate/h264-conformance-frext-brcm_freh9100
-rw-r--r--tests/ref/fate/h264-conformance-frext-freh12_b100
-rw-r--r--tests/ref/fate/h264-conformance-frext-freh1_b100
-rw-r--r--tests/ref/fate/h264-conformance-frext-freh2_b100
-rw-r--r--tests/ref/fate/h264-conformance-frext-freh6100
-rw-r--r--tests/ref/fate/h264-conformance-frext-freh7_b100
-rw-r--r--tests/ref/fate/h264-conformance-frext-frext01_jvc_d16
-rw-r--r--tests/ref/fate/h264-conformance-frext-frext02_jvc_c16
-rw-r--r--tests/ref/fate/h264-conformance-frext-frext1_panasonic_c8
-rw-r--r--tests/ref/fate/h264-conformance-frext-frext2_panasonic_b15
-rw-r--r--tests/ref/fate/h264-conformance-frext-frext3_panasonic_d11
-rw-r--r--tests/ref/fate/h264-conformance-frext-frext4_panasonic_a10
-rw-r--r--tests/ref/fate/h264-conformance-frext-frext_mmco4_sony_b60
-rw-r--r--tests/ref/fate/h264-conformance-frext-hcaff1_hhi_b10
-rw-r--r--tests/ref/fate/h264-conformance-frext-hcafr1_hhi_c10
-rw-r--r--tests/ref/fate/h264-conformance-frext-hcafr2_hhi_a10
-rw-r--r--tests/ref/fate/h264-conformance-frext-hcafr3_hhi_a10
-rw-r--r--tests/ref/fate/h264-conformance-frext-hcafr4_hhi_a10
-rw-r--r--tests/ref/fate/h264-conformance-frext-hcamff1_hhi_b10
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpca_brcm_c300
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcadq_brcm_b300
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcafl_bcrm_c300
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcaflnl_bcrm_c300
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcalq_brcm_b300
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcamapalq_bcrm_b300
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcamolq_brcm_b100
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcanl_brcm_c300
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcaq2lq_brcm_b100
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcv_brcm_a300
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcvfl_bcrm_a300
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcvflnl_bcrm_a300
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcvmolq_brcm_b100
-rw-r--r--tests/ref/fate/h264-conformance-frext-hpcvnl_brcm_a300
-rw-r--r--tests/ref/fate/h264-conformance-hcbp2_hhi_a250
-rw-r--r--tests/ref/fate/h264-conformance-hcmp1_hhi_a250
-rw-r--r--tests/ref/fate/h264-conformance-ls_sva_d1700
-rw-r--r--tests/ref/fate/h264-conformance-midr_mw_d100
-rw-r--r--tests/ref/fate/h264-conformance-mps_mw_a150
-rw-r--r--tests/ref/fate/h264-conformance-mr1_bt_a62
-rw-r--r--tests/ref/fate/h264-conformance-mr1_mw_a150
-rw-r--r--tests/ref/fate/h264-conformance-mr2_mw_a300
-rw-r--r--tests/ref/fate/h264-conformance-mr2_tandberg_e300
-rw-r--r--tests/ref/fate/h264-conformance-mr3_tandberg_b300
-rw-r--r--tests/ref/fate/h264-conformance-mr4_tandberg_c300
-rw-r--r--tests/ref/fate/h264-conformance-mr5_tandberg_c300
-rw-r--r--tests/ref/fate/h264-conformance-mr6_bt_b60
-rw-r--r--tests/ref/fate/h264-conformance-mr7_bt_b60
-rw-r--r--tests/ref/fate/h264-conformance-mr8_bt_b58
-rw-r--r--tests/ref/fate/h264-conformance-mr9_bt_b58
-rw-r--r--tests/ref/fate/h264-conformance-mv1_brcm_d257
-rw-r--r--tests/ref/fate/h264-conformance-nl1_sony_d17
-rw-r--r--tests/ref/fate/h264-conformance-nl2_sony_h300
-rw-r--r--tests/ref/fate/h264-conformance-nl3_sva_e33
-rw-r--r--tests/ref/fate/h264-conformance-nlmq1_jvc_c30
-rw-r--r--tests/ref/fate/h264-conformance-nlmq2_jvc_c30
-rw-r--r--tests/ref/fate/h264-conformance-nrf_mw_e100
-rw-r--r--tests/ref/fate/h264-conformance-sharp_mp_field_1_b15
-rw-r--r--tests/ref/fate/h264-conformance-sharp_mp_field_2_b15
-rw-r--r--tests/ref/fate/h264-conformance-sharp_mp_field_3_b15
-rw-r--r--tests/ref/fate/h264-conformance-sharp_mp_paff_1r215
-rw-r--r--tests/ref/fate/h264-conformance-sharp_mp_paff_2r15
-rw-r--r--tests/ref/fate/h264-conformance-sl1_sva_b33
-rw-r--r--tests/ref/fate/h264-conformance-sva_ba1_b17
-rw-r--r--tests/ref/fate/h264-conformance-sva_ba2_d17
-rw-r--r--tests/ref/fate/h264-conformance-sva_base_b17
-rw-r--r--tests/ref/fate/h264-conformance-sva_cl1_e50
-rw-r--r--tests/ref/fate/h264-conformance-sva_fm1_e17
-rw-r--r--tests/ref/fate/h264-conformance-sva_nl1_b17
-rw-r--r--tests/ref/fate/h264-conformance-sva_nl2_e17
-rw-r--r--tests/ref/fate/id-cin-video105
-rw-r--r--tests/ref/fate/idroq-video-dpcm377
-rw-r--r--tests/ref/fate/idroq-video-encode1
-rw-r--r--tests/ref/fate/iff-byterun11
-rw-r--r--tests/ref/fate/iff-fibonacci1
-rw-r--r--tests/ref/fate/iff-ilbm1
-rw-r--r--tests/ref/fate/iff-pcm1
-rw-r--r--tests/ref/fate/indeo2130
-rw-r--r--tests/ref/fate/indeo340
-rw-r--r--tests/ref/fate/indeo5134
-rw-r--r--tests/ref/fate/interplay-mve-16bit129
-rw-r--r--tests/ref/fate/interplay-mve-8bit234
-rw-r--r--tests/ref/fate/iv8-demux25
-rw-r--r--tests/ref/fate/kmvc75
-rw-r--r--tests/ref/fate/lmlm4-demux547
-rw-r--r--tests/ref/fate/loco-rgb5
-rw-r--r--tests/ref/fate/loco-yuy23
-rw-r--r--tests/ref/fate/lossless-appleaudio1
-rw-r--r--tests/ref/fate/lossless-meridianaudio1
-rw-r--r--tests/ref/fate/lossless-monkeysaudio1
-rw-r--r--tests/ref/fate/lossless-shortenaudio1
-rw-r--r--tests/ref/fate/lossless-tta1
-rw-r--r--tests/ref/fate/lossless-wavpackaudio1
-rw-r--r--tests/ref/fate/maxis-xa1
-rw-r--r--tests/ref/fate/mimic76
-rw-r--r--tests/ref/fate/motionpixels112
-rw-r--r--tests/ref/fate/mpc7-demux1
-rw-r--r--tests/ref/fate/mpc8-demux1
-rw-r--r--tests/ref/fate/mpeg4-als-conformance-001
-rw-r--r--tests/ref/fate/mpeg4-als-conformance-011
-rw-r--r--tests/ref/fate/mpeg4-als-conformance-021
-rw-r--r--tests/ref/fate/mpeg4-als-conformance-031
-rw-r--r--tests/ref/fate/mpeg4-als-conformance-041
-rw-r--r--tests/ref/fate/mpeg4-als-conformance-051
-rw-r--r--tests/ref/fate/msrle-8bit29
-rw-r--r--tests/ref/fate/msvideo1-16bit30
-rw-r--r--tests/ref/fate/msvideo1-8bit31
-rw-r--r--tests/ref/fate/mszh1
-rw-r--r--tests/ref/fate/mtv135
-rw-r--r--tests/ref/fate/mxf-demux97
-rw-r--r--tests/ref/fate/nc-demux91
-rw-r--r--tests/ref/fate/nsv-demux171
-rw-r--r--tests/ref/fate/nuv30
-rw-r--r--tests/ref/fate/oma-demux1
-rw-r--r--tests/ref/fate/pcm_dvd123
-rw-r--r--tests/ref/fate/psx-str200
-rw-r--r--tests/ref/fate/ptx1
-rw-r--r--tests/ref/fate/pva-demux25
-rw-r--r--tests/ref/fate/qcp-demux1
-rw-r--r--tests/ref/fate/qpeg100
-rw-r--r--tests/ref/fate/qt-alaw-mono1
-rw-r--r--tests/ref/fate/qt-alaw-stereo1
-rw-r--r--tests/ref/fate/qt-ima4-mono1
-rw-r--r--tests/ref/fate/qt-ima4-stereo1
-rw-r--r--tests/ref/fate/qt-mac3-mono1
-rw-r--r--tests/ref/fate/qt-mac3-stereo1
-rw-r--r--tests/ref/fate/qt-mac6-mono1
-rw-r--r--tests/ref/fate/qt-mac6-stereo1
-rw-r--r--tests/ref/fate/qt-msadpcm-stereo1
-rw-r--r--tests/ref/fate/qt-msimaadpcm-stereo1
-rw-r--r--tests/ref/fate/qt-rawpcm-16bit-stereo-signed-be1
-rw-r--r--tests/ref/fate/qt-rawpcm-16bit-stereo-signed-le1
-rw-r--r--tests/ref/fate/qt-rawpcm-8bit-mono-unsigned1
-rw-r--r--tests/ref/fate/qt-rawpcm-8bit-stereo-unsigned1
-rw-r--r--tests/ref/fate/qt-ulaw-mono1
-rw-r--r--tests/ref/fate/qt-ulaw-stereo1
-rw-r--r--tests/ref/fate/qtrle-16bit83
-rw-r--r--tests/ref/fate/qtrle-1bit107
-rw-r--r--tests/ref/fate/qtrle-24bit34
-rw-r--r--tests/ref/fate/qtrle-2bit107
-rw-r--r--tests/ref/fate/qtrle-32bit26
-rw-r--r--tests/ref/fate/qtrle-4bit38
-rw-r--r--tests/ref/fate/qtrle-8bit167
-rw-r--r--tests/ref/fate/quickdraw2
-rw-r--r--tests/ref/fate/real-14_41
-rw-r--r--tests/ref/fate/real-rv40121
-rw-r--r--tests/ref/fate/redcode-demux5
-rw-r--r--tests/ref/fate/rl2108
-rw-r--r--tests/ref/fate/rpza30
-rw-r--r--tests/ref/fate/sierra-audio1
-rw-r--r--tests/ref/fate/sierra-vmd303
-rw-r--r--tests/ref/fate/siff39
-rw-r--r--tests/ref/fate/smacker186
-rw-r--r--tests/ref/fate/smc120
-rw-r--r--tests/ref/fate/sp5x19
-rw-r--r--tests/ref/fate/sunraster-1bit-raw1
-rw-r--r--tests/ref/fate/sunraster-1bit-rle1
-rw-r--r--tests/ref/fate/sunraster-24bit-raw1
-rw-r--r--tests/ref/fate/sunraster-24bit-rle1
-rw-r--r--tests/ref/fate/sunraster-8bit-raw1
-rw-r--r--tests/ref/fate/sunraster-8bit-rle1
-rw-r--r--tests/ref/fate/svq1150
-rw-r--r--tests/ref/fate/svq3180
-rw-r--r--tests/ref/fate/thp-mjpeg-adpcm143
-rw-r--r--tests/ref/fate/tiertex-seq149
-rw-r--r--tests/ref/fate/tmv220
-rw-r--r--tests/ref/fate/tscc-15bit240
-rw-r--r--tests/ref/fate/tscc-32bit159
-rw-r--r--tests/ref/fate/ulti62
-rw-r--r--tests/ref/fate/v2101
-rw-r--r--tests/ref/fate/vc12
-rw-r--r--tests/ref/fate/vcr1128
-rw-r--r--tests/ref/fate/video-xl40
-rw-r--r--tests/ref/fate/vmnc-16bit192
-rw-r--r--tests/ref/fate/vmnc-32bit171
-rw-r--r--tests/ref/fate/vp5246
-rw-r--r--tests/ref/fate/vp6a93
-rw-r--r--tests/ref/fate/vp6f174
-rw-r--r--tests/ref/fate/vqa-cc78
-rw-r--r--tests/ref/fate/vqf-demux1
-rw-r--r--tests/ref/fate/w641
-rw-r--r--tests/ref/fate/wc3movie-xan70
-rw-r--r--tests/ref/fate/westwood-aud1
-rw-r--r--tests/ref/fate/wnv186
-rw-r--r--tests/ref/fate/xan-dpcm1
-rw-r--r--tests/ref/fate/zlib1
-rw-r--r--tests/ref/fate/zmbv-15bit159
-rw-r--r--tests/ref/fate/zmbv-16bit159
-rw-r--r--tests/ref/fate/zmbv-32bit159
-rw-r--r--tests/ref/fate/zmbv-8bit275
352 files changed, 30389 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f7a8bd6a4c..2d37c0a440 100644
--- a/Makefile
+++ b/Makefile
@@ -330,5 +330,15 @@ tests/data/asynth1.sw: tests/audiogen$(HOSTEXESUF)
tests/seek_test$(EXESUF): tests/seek_test.o $(FF_DEP_LIBS)
$(LD) $(FF_LDFLAGS) -o $@ $< $(FF_EXTRALIBS)
+ifdef SAMPLES
+include $(SRC_PATH_BARE)/tests/fate.mak
+fate: $(FATE_TESTS)
+$(FATE_TESTS):
+ @echo "TEST FATE $(@:fate-%=%)"
+ @$(SRC_PATH)/tests/fate-run.sh $@ "$(SAMPLES)" "$(TARGET_EXEC)" "$(TARGET_PATH)" '$(CMD)'
+else
+fate:
+ @echo "SAMPLES not specified, cannot run FATE"
+endif
.PHONY: documentation *test regtest-* zlib-error alltools check config
diff --git a/configure b/configure
index 0c5a9051e3..b2ae10762e 100755
--- a/configure
+++ b/configure
@@ -243,6 +243,7 @@ Developer options (useful when working on FFmpeg itself):
--disable-optimizations disable compiler optimizations
--enable-extra-warnings enable more compiler warnings
--disable-stripping disable stripping of executables and shared libraries
+ --samples=PATH location of test samples for FATE
NOTE: Object files are built at the place where configure is launched.
EOF
@@ -1143,6 +1144,7 @@ CMDLINE_SET="
logfile
malloc_prefix
nm
+ samples
source_path
strip
sysinclude
@@ -3027,6 +3029,7 @@ SLIB_CREATE_DEF_CMD=${SLIB_CREATE_DEF_CMD}
SLIB_EXTRA_CMD=${SLIB_EXTRA_CMD}
SLIB_INSTALL_EXTRA_CMD=${SLIB_INSTALL_EXTRA_CMD}
SLIB_UNINSTALL_EXTRA_CMD=${SLIB_UNINSTALL_EXTRA_CMD}
+SAMPLES=$samples
EOF
get_version(){
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
new file mode 100755
index 0000000000..899580fa71
--- /dev/null
+++ b/tests/fate-run.sh
@@ -0,0 +1,19 @@
+#! /bin/sh
+
+base=$(dirname $0)
+. "${base}/md5.sh"
+
+test="${1#fate-}"
+SAMPLES_PATH=$2
+target_exec=$3
+BUILD_PATH=$4
+command=$5
+
+ref="${base}/ref/fate/${test}"
+outdir="tests/data/fate"
+outfile="${outdir}/${test}"
+
+mkdir -p "$outdir"
+
+eval $target_exec $command > "$outfile" 2>/dev/null
+diff -u -w "$ref" "$outfile"
diff --git a/tests/fate-update.sh b/tests/fate-update.sh
new file mode 100755
index 0000000000..92eaaf5a6b
--- /dev/null
+++ b/tests/fate-update.sh
@@ -0,0 +1,36 @@
+#! /bin/sh
+
+set -e
+
+base=$(dirname $0)
+ref="${base}/ref/fate"
+
+FATE_DB_URL="http://fate.multimedia.cx/fate-tests.sqlite.bz2"
+FATE_DB=$(mktemp fate-db.XXXXXX)
+SQL_TESTS='SELECT id,short_name,command FROM test_spec WHERE active=1 ORDER BY short_name'
+
+do_sql(){
+ sqlite3 -noheader -separator ' ' "$FATE_DB" "$@"
+}
+
+wget -q -O - "$FATE_DB_URL" | bunzip2 > "$FATE_DB"
+rm -rf "$ref"
+mkdir -p "$ref"
+exec 3>"$base/fate.mak"
+
+do_sql "$SQL_TESTS" | while read id name command; do
+ case "$name" in
+ 00-full-regression|ffmpeg-help|binsize-*) continue ;;
+ esac
+ case "$command" in
+ {MD5}*) command="${command#\{MD5\}} | do_md5sum | cut -c-32" ;;
+ {*}*) continue ;;
+ esac
+ command=$(echo "$command" | sed 's/\$/$$/g')
+ do_sql "SELECT expected_stdout FROM test_spec WHERE id=$id" | awk '/./{print}' > "$ref/$name"
+ printf "FATE_TESTS += fate-${name}\n" >&3
+ printf "fate-${name}: CMD = %s\n" "$command" >&3
+done
+
+exec 3<&-
+rm -f "$FATE_DB"
diff --git a/tests/fate.mak b/tests/fate.mak
new file mode 100644
index 0000000000..933dec6348
--- /dev/null
+++ b/tests/fate.mak
@@ -0,0 +1,694 @@
+FATE_TESTS += fate-4xm
+fate-4xm: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/4xm/TimeGatep01s01n01a02_2.4xm -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-8bps
+fate-8bps: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/8bps/full9iron-partial.mov -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-aac-demux
+fate-aac-demux: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/aac/ct_faac-adts.aac -acodec copy -f crc -
+FATE_TESTS += fate-aasc
+fate-aasc: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/aasc/AASC-1.5MB.AVI -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-adpcm-ea-r2
+fate-adpcm-ea-r2: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/ea-mpc/THX_logo.mpc -vn -f crc -
+FATE_TESTS += fate-adpcm-ea-r3
+fate-adpcm-ea-r3: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/ea-vp6/THX_logo.vp6 -vn -f crc -
+FATE_TESTS += fate-aea-demux
+fate-aea-demux: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/aea/chirp.aea -acodec copy -f crc -
+FATE_TESTS += fate-alg-mm
+fate-alg-mm: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/alg-mm/ibmlogo.mm -an -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-amv
+fate-amv: CMD = $$BUILD_PATH/ffmpeg -idct simple -i $$SAMPLES_PATH/amv/MTV_high_res_320x240_sample_Penguin_Joke_MTV_from_WMV.amv -t 10 -f framecrc -
+FATE_TESTS += fate-armovie-escape124
+fate-armovie-escape124: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/rpl/ESCAPE.RPL -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-auravision
+fate-auravision: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/auravision/SOUVIDEO.AVI -an -f framecrc -
+FATE_TESTS += fate-auravision-v2
+fate-auravision-v2: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/auravision/salma-hayek-in-ugly-betty-partial-avi -an -f framecrc -
+FATE_TESTS += fate-bethsoft-vid
+fate-bethsoft-vid: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/bethsoft-vid/ANIM0001.VID -vsync 0 -t 5 -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-bfi
+fate-bfi: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/bfi/2287.bfi -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-bink-demux
+fate-bink-demux: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/bink/Snd0a7d9b58.dee -vn -acodec copy -f crc -
+FATE_TESTS += fate-bink-demux-video
+fate-bink-demux-video: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/bink/hol2br.bik -f framecrc -
+FATE_TESTS += fate-caf
+fate-caf: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/caf/caf-pcm16.caf -f crc -
+FATE_TESTS += fate-cdgraphics
+fate-cdgraphics: CMD = $$BUILD_PATH/ffmpeg -t 1 -i $$SAMPLES_PATH/cdgraphics/BrotherJohn.cdg -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-cljr
+fate-cljr: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/cljr/testcljr-partial.avi -f framecrc -
+FATE_TESTS += fate-corepng
+fate-corepng: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/png1/corepng-partial.avi -f framecrc -
+FATE_TESTS += fate-creative-adpcm
+fate-creative-adpcm: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/creative/intro-partial.wav -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-creative-adpcm-8-2.6bit
+fate-creative-adpcm-8-2.6bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/creative/BBC_3BIT.VOC -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-creative-adpcm-8-2bit
+fate-creative-adpcm-8-2bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/creative/BBC_2BIT.VOC -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-creative-adpcm-8-4bit
+fate-creative-adpcm-8-4bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/creative/BBC_4BIT.VOC -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-creatureshock-avs
+fate-creatureshock-avs: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/creatureshock-avs/OUTATIME.AVS -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-cryo-apc
+fate-cryo-apc: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/cryo-apc/cine007.APC -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-cscd
+fate-cscd: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/CSCD/sample_video.avi -an -vsync 0 -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-cvid
+fate-cvid: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/cvid/laracroft-cinepak-partial.avi -an -f framecrc -
+FATE_TESTS += fate-cvid-palette
+fate-cvid-palette: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/cvid/catfight-cvid-pal8-partial.mov -pix_fmt rgb24 -an -f framecrc -
+FATE_TESTS += fate-cyberia-c93
+fate-cyberia-c93: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/cyberia-c93/intro1.c93 -t 3 -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-cyuv
+fate-cyuv: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/cyuv/cyuv.avi -f framecrc -
+FATE_TESTS += fate-d-cinema-demux
+fate-d-cinema-demux: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/d-cinema/THX_Science_FLT_1920-partial.302 -acodec copy -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-delphine-cin
+fate-delphine-cin: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/delphine-cin/LOGO-partial.CIN -pix_fmt rgb24 -vsync 0 -f framecrc -
+FATE_TESTS += fate-deluxepaint-anm
+fate-deluxepaint-anm: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/deluxepaint-anm/INTRO1.ANM -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-dpx
+fate-dpx: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/dpx/lighthouse_rgb48.dpx -f framecrc -
+FATE_TESTS += fate-duck-dk3
+fate-duck-dk3: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/duck/sop-audio-only.avi -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-duck-dk4
+fate-duck-dk4: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/duck/salsa-audio-only.avi -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-duck-tm2
+fate-duck-tm2: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/duck/tm20.avi -f framecrc -
+FATE_TESTS += fate-ea-cdata
+fate-ea-cdata: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/ea-cdata/166b084d.46410f77.0009b440.24be960c.cdata -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-ea-cmv
+fate-ea-cmv: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/ea-cmv/TITLE.CMV -vsync 0 -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-ea-dct
+fate-ea-dct: CMD = $$BUILD_PATH/ffmpeg -idct simple -i $$SAMPLES_PATH/ea-dct/NFS2Esprit-partial.dct -f framecrc -
+FATE_TESTS += fate-ea-mad-adpcm-ea-r1
+fate-ea-mad-adpcm-ea-r1: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/ea-mad/NFS6LogoE.mad -f framecrc -
+FATE_TESTS += fate-ea-mad-pcm-planar
+fate-ea-mad-pcm-planar: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/ea-mad/xeasport.mad -f framecrc -
+FATE_TESTS += fate-ea-tgq
+fate-ea-tgq: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/ea-tgq/v27.tgq -an -f framecrc -
+FATE_TESTS += fate-ea-tgv-ima-ea-eacs
+fate-ea-tgv-ima-ea-eacs: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/ea-tgv/INTRO8K-partial.TGV -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-ea-tgv-ima-ea-sead
+fate-ea-tgv-ima-ea-sead: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/ea-tgv/INTEL_S.TGV -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-ea-tqi-adpcm
+fate-ea-tqi-adpcm: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/ea-wve/networkBackbone-partial.wve -f framecrc -
+FATE_TESTS += fate-ea-vp60
+fate-ea-vp60: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/ea-vp6/g36.vp6 -f framecrc -
+FATE_TESTS += fate-ea-vp61
+fate-ea-vp61: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/ea-vp6/MovieSkirmishGondor.vp6 -t 4 -f framecrc -
+FATE_TESTS += fate-feeble-dxa
+fate-feeble-dxa: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/dxa/meetsquid.dxa -t 2 -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-film-cvid-pcm-stereo-8bit
+fate-film-cvid-pcm-stereo-8bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/film/logo-capcom.cpk -f framecrc -
+FATE_TESTS += fate-flic-af11-palette-change
+fate-flic-af11-palette-change: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/fli/fli-engines.fli -t 3.3 -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-flic-af12
+fate-flic-af12: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/fli/jj00c2.fli -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-flic-magiccarpet
+fate-flic-magiccarpet: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/fli/intel.dat -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-fraps-v0
+fate-fraps-v0: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/fraps/Griffin_Ragdoll01-partial.avi -f framecrc -
+FATE_TESTS += fate-fraps-v1
+fate-fraps-v1: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/fraps/sample-v1.avi -an -f framecrc -
+FATE_TESTS += fate-fraps-v2
+fate-fraps-v2: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/fraps/test3-nosound-partial.avi -f framecrc -
+FATE_TESTS += fate-fraps-v3
+fate-fraps-v3: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/fraps/psclient-partial.avi -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-fraps-v4
+fate-fraps-v4: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/fraps/WoW_2006-11-03_14-58-17-19-nosound-partial.avi -f framecrc -
+FATE_TESTS += fate-fraps-v5
+fate-fraps-v5: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/fraps/fraps-v5-bouncing-balls-partial.avi -f framecrc -
+FATE_TESTS += fate-frwu
+fate-frwu: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/frwu/frwu.avi -f framecrc -
+FATE_TESTS += fate-funcom-iss
+fate-funcom-iss: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/funcom-iss/0004010100.iss -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-h264-conformance-aud_mw_e
+fate-h264-conformance-aud_mw_e: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/AUD_MW_E.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-ba1_ft_c
+fate-h264-conformance-ba1_ft_c: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/BA1_FT_C.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-ba1_sony_d
+fate-h264-conformance-ba1_sony_d: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/BA1_Sony_D.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-ba2_sony_f
+fate-h264-conformance-ba2_sony_f: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/BA2_Sony_F.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-ba3_sva_c
+fate-h264-conformance-ba3_sva_c: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/BA3_SVA_C.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-ba_mw_d
+fate-h264-conformance-ba_mw_d: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/BA_MW_D.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-bamq1_jvc_c
+fate-h264-conformance-bamq1_jvc_c: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/BAMQ1_JVC_C.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-bamq2_jvc_c
+fate-h264-conformance-bamq2_jvc_c: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/BAMQ2_JVC_C.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-banm_mw_d
+fate-h264-conformance-banm_mw_d: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/BANM_MW_D.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-basqp1_sony_c
+fate-h264-conformance-basqp1_sony_c: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/BASQP1_Sony_C.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-caba1_sony_d
+fate-h264-conformance-caba1_sony_d: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CABA1_Sony_D.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-caba1_sva_b
+fate-h264-conformance-caba1_sva_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CABA1_SVA_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-caba2_sony_e
+fate-h264-conformance-caba2_sony_e: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CABA2_Sony_E.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-caba2_sva_b
+fate-h264-conformance-caba2_sva_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CABA2_SVA_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-caba3_sony_c
+fate-h264-conformance-caba3_sony_c: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CABA3_Sony_C.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-caba3_sva_b
+fate-h264-conformance-caba3_sva_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CABA3_SVA_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-caba3_toshiba_e
+fate-h264-conformance-caba3_toshiba_e: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CABA3_TOSHIBA_E.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-cabac_mot_fld0_full
+fate-h264-conformance-cabac_mot_fld0_full: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/camp_mot_fld0_full.26l -f framecrc -
+FATE_TESTS += fate-h264-conformance-cabac_mot_frm0_full
+fate-h264-conformance-cabac_mot_frm0_full: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/camp_mot_frm0_full.26l -f framecrc -
+FATE_TESTS += fate-h264-conformance-cabac_mot_mbaff0_full
+fate-h264-conformance-cabac_mot_mbaff0_full: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/camp_mot_mbaff0_full.26l -f framecrc -
+FATE_TESTS += fate-h264-conformance-cabac_mot_picaff0_full
+fate-h264-conformance-cabac_mot_picaff0_full: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/camp_mot_picaff0_full.26l -f framecrc -
+FATE_TESTS += fate-h264-conformance-cabaci3_sony_b
+fate-h264-conformance-cabaci3_sony_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CABACI3_Sony_B.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-cabast3_sony_e
+fate-h264-conformance-cabast3_sony_e: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CABAST3_Sony_E.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-cabastbr3_sony_b
+fate-h264-conformance-cabastbr3_sony_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CABASTBR3_Sony_B.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-cabref3_sand_d
+fate-h264-conformance-cabref3_sand_d: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CABREF3_Sand_D.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-cacqp3_sony_d
+fate-h264-conformance-cacqp3_sony_d: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CACQP3_Sony_D.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-cafi1_sva_c
+fate-h264-conformance-cafi1_sva_c: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CAFI1_SVA_C.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-cama1_sony_c
+fate-h264-conformance-cama1_sony_c: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CAMA1_Sony_C.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-cama1_toshiba_b
+fate-h264-conformance-cama1_toshiba_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CAMA1_TOSHIBA_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-cama1_vtc_c
+fate-h264-conformance-cama1_vtc_c: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/cama1_vtc_c.avc -f framecrc -
+FATE_TESTS += fate-h264-conformance-cama2_vtc_b
+fate-h264-conformance-cama2_vtc_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -i $$SAMPLES_PATH/h264-conformance/cama2_vtc_b.avc -f framecrc -
+FATE_TESTS += fate-h264-conformance-cama3_sand_e
+fate-h264-conformance-cama3_sand_e: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CAMA3_Sand_E.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-cama3_vtc_b
+fate-h264-conformance-cama3_vtc_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/cama3_vtc_b.avc -f framecrc -
+FATE_TESTS += fate-h264-conformance-camaci3_sony_c
+fate-h264-conformance-camaci3_sony_c: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CAMACI3_Sony_C.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-camanl1_toshiba_b
+fate-h264-conformance-camanl1_toshiba_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CAMANL1_TOSHIBA_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-camanl2_toshiba_b
+fate-h264-conformance-camanl2_toshiba_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CAMANL2_TOSHIBA_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-camanl3_sand_e
+fate-h264-conformance-camanl3_sand_e: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CAMANL3_Sand_E.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-camasl3_sony_b
+fate-h264-conformance-camasl3_sony_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CAMASL3_Sony_B.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-camp_mot_mbaff_l30
+fate-h264-conformance-camp_mot_mbaff_l30: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CAMP_MOT_MBAFF_L30.26l -f framecrc -
+FATE_TESTS += fate-h264-conformance-camp_mot_mbaff_l31
+fate-h264-conformance-camp_mot_mbaff_l31: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CAMP_MOT_MBAFF_L31.26l -f framecrc -
+FATE_TESTS += fate-h264-conformance-canl1_sony_e
+fate-h264-conformance-canl1_sony_e: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CANL1_Sony_E.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-canl1_sva_b
+fate-h264-conformance-canl1_sva_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CANL1_SVA_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-canl1_toshiba_g
+fate-h264-conformance-canl1_toshiba_g: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CANL1_TOSHIBA_G.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-canl2_sony_e
+fate-h264-conformance-canl2_sony_e: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CANL2_Sony_E.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-canl2_sva_b
+fate-h264-conformance-canl2_sva_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CANL2_SVA_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-canl3_sony_c
+fate-h264-conformance-canl3_sony_c: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CANL3_Sony_C.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-canl3_sva_b
+fate-h264-conformance-canl3_sva_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CANL3_SVA_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-canl4_sva_b
+fate-h264-conformance-canl4_sva_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CANL4_SVA_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-canlma2_sony_c
+fate-h264-conformance-canlma2_sony_c: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CANLMA2_Sony_C.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-canlma3_sony_c
+fate-h264-conformance-canlma3_sony_c: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CANLMA3_Sony_C.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-capa1_toshiba_b
+fate-h264-conformance-capa1_toshiba_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CAPA1_TOSHIBA_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-capama3_sand_f
+fate-h264-conformance-capama3_sand_f: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CAPAMA3_Sand_F.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-capcm1_sand_e
+fate-h264-conformance-capcm1_sand_e: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CAPCM1_Sand_E.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-capcmnl1_sand_e
+fate-h264-conformance-capcmnl1_sand_e: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CAPCMNL1_Sand_E.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-capm3_sony_d
+fate-h264-conformance-capm3_sony_d: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CAPM3_Sony_D.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-caqp1_sony_b
+fate-h264-conformance-caqp1_sony_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CAQP1_Sony_B.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-cavlc_mot_fld0_full_b
+fate-h264-conformance-cavlc_mot_fld0_full_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/cvmp_mot_fld0_full_B.26l -f framecrc -
+FATE_TESTS += fate-h264-conformance-cavlc_mot_frm0_full_b
+fate-h264-conformance-cavlc_mot_frm0_full_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/cvmp_mot_frm0_full_B.26l -f framecrc -
+FATE_TESTS += fate-h264-conformance-cavlc_mot_mbaff0_full_b
+fate-h264-conformance-cavlc_mot_mbaff0_full_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/cvmp_mot_mbaff0_full_B.26l -f framecrc -
+FATE_TESTS += fate-h264-conformance-cavlc_mot_picaff0_full_b
+fate-h264-conformance-cavlc_mot_picaff0_full_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/cvmp_mot_picaff0_full_B.26l -f framecrc -
+FATE_TESTS += fate-h264-conformance-cawp1_toshiba_e
+fate-h264-conformance-cawp1_toshiba_e: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CAWP1_TOSHIBA_E.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-cawp5_toshiba_e
+fate-h264-conformance-cawp5_toshiba_e: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CAWP5_TOSHIBA_E.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-ci1_ft_b
+fate-h264-conformance-ci1_ft_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CI1_FT_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-ci_mw_d
+fate-h264-conformance-ci_mw_d: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CI_MW_D.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvbs3_sony_c
+fate-h264-conformance-cvbs3_sony_c: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CVBS3_Sony_C.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvcanlma2_sony_c
+fate-h264-conformance-cvcanlma2_sony_c: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CVCANLMA2_Sony_C.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvfi1_sony_d
+fate-h264-conformance-cvfi1_sony_d: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CVFI1_Sony_D.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvfi1_sva_c
+fate-h264-conformance-cvfi1_sva_c: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CVFI1_SVA_C.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvfi2_sony_h
+fate-h264-conformance-cvfi2_sony_h: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CVFI2_Sony_H.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvfi2_sva_c
+fate-h264-conformance-cvfi2_sva_c: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CVFI2_SVA_C.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvma1_sony_d
+fate-h264-conformance-cvma1_sony_d: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CVMA1_Sony_D.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvma1_toshiba_b
+fate-h264-conformance-cvma1_toshiba_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CVMA1_TOSHIBA_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvmanl1_toshiba_b
+fate-h264-conformance-cvmanl1_toshiba_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CVMANL1_TOSHIBA_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvmanl2_toshiba_b
+fate-h264-conformance-cvmanl2_toshiba_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CVMANL2_TOSHIBA_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvmapaqp3_sony_e
+fate-h264-conformance-cvmapaqp3_sony_e: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CVMAPAQP3_Sony_E.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvmaqp2_sony_g
+fate-h264-conformance-cvmaqp2_sony_g: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CVMAQP2_Sony_G.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvmaqp3_sony_d
+fate-h264-conformance-cvmaqp3_sony_d: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CVMAQP3_Sony_D.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvmp_mot_fld_l30_b
+fate-h264-conformance-cvmp_mot_fld_l30_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CVMP_MOT_FLD_L30_B.26l -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvmp_mot_frm_l31_b
+fate-h264-conformance-cvmp_mot_frm_l31_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CVMP_MOT_FRM_L31_B.26l -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvnlfi1_sony_c
+fate-h264-conformance-cvnlfi1_sony_c: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -i $$SAMPLES_PATH/h264-conformance/CVNLFI1_Sony_C.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvnlfi2_sony_h
+fate-h264-conformance-cvnlfi2_sony_h: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CVNLFI2_Sony_H.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvpa1_toshiba_b
+fate-h264-conformance-cvpa1_toshiba_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CVPA1_TOSHIBA_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvpcmnl1_sva_c
+fate-h264-conformance-cvpcmnl1_sva_c: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CVPCMNL1_SVA_C.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvpcmnl2_sva_c
+fate-h264-conformance-cvpcmnl2_sva_c: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CVPCMNL2_SVA_C.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvwp1_toshiba_e
+fate-h264-conformance-cvwp1_toshiba_e: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/CVWP1_TOSHIBA_E.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvwp2_toshiba_e
+fate-h264-conformance-cvwp2_toshiba_e: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CVWP2_TOSHIBA_E.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvwp3_toshiba_e
+fate-h264-conformance-cvwp3_toshiba_e: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CVWP3_TOSHIBA_E.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-cvwp5_toshiba_e
+fate-h264-conformance-cvwp5_toshiba_e: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/CVWP5_TOSHIBA_E.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-fi1_sony_e
+fate-h264-conformance-fi1_sony_e: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -i $$SAMPLES_PATH/h264-conformance/FI1_Sony_E.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-alphaconformanceg
+fate-h264-conformance-frext-alphaconformanceg: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/test8b43.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-bcrm_freh10
+fate-h264-conformance-frext-bcrm_freh10: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/freh10.264 -vsync 0 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-brcm_freh11
+fate-h264-conformance-frext-brcm_freh11: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/freh11.264 -vsync 0 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-brcm_freh3
+fate-h264-conformance-frext-brcm_freh3: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/freh3.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-brcm_freh4
+fate-h264-conformance-frext-brcm_freh4: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/freh4.264 -vsync 0 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-brcm_freh5
+fate-h264-conformance-frext-brcm_freh5: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/freh5.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-brcm_freh8
+fate-h264-conformance-frext-brcm_freh8: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/freh8.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-brcm_freh9
+fate-h264-conformance-frext-brcm_freh9: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/freh9.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-freh12_b
+fate-h264-conformance-frext-freh12_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/Freh12_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-freh1_b
+fate-h264-conformance-frext-freh1_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/Freh1_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-freh2_b
+fate-h264-conformance-frext-freh2_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/Freh2_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-freh6
+fate-h264-conformance-frext-freh6: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/freh6.264 -vsync 0 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-freh7_b
+fate-h264-conformance-frext-freh7_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/Freh7_B.264 -vsync 0 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-frext01_jvc_d
+fate-h264-conformance-frext-frext01_jvc_d: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/FREXT01_JVC_D.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-frext02_jvc_c
+fate-h264-conformance-frext-frext02_jvc_c: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/FREXT02_JVC_C.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-frext1_panasonic_c
+fate-h264-conformance-frext-frext1_panasonic_c: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/FRExt1_Panasonic.avc -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-frext2_panasonic_b
+fate-h264-conformance-frext-frext2_panasonic_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/FRExt2_Panasonic.avc -vsync 0 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-frext3_panasonic_d
+fate-h264-conformance-frext-frext3_panasonic_d: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/FRExt3_Panasonic.avc -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-frext4_panasonic_a
+fate-h264-conformance-frext-frext4_panasonic_a: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/FRExt4_Panasonic.avc -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-frext_mmco4_sony_b
+fate-h264-conformance-frext-frext_mmco4_sony_b: CMD = $$BUILD_PATH/ffmpeg -strict 1 -i $$SAMPLES_PATH/h264-conformance/FRext/FRExt_MMCO4_Sony_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-hcaff1_hhi_b
+fate-h264-conformance-frext-hcaff1_hhi_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/HCAFF1_HHI.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-hcafr1_hhi_c
+fate-h264-conformance-frext-hcafr1_hhi_c: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/HCAFR1_HHI.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-hcafr2_hhi_a
+fate-h264-conformance-frext-hcafr2_hhi_a: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/HCAFR2_HHI.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-hcafr3_hhi_a
+fate-h264-conformance-frext-hcafr3_hhi_a: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/HCAFR3_HHI.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-hcafr4_hhi_a
+fate-h264-conformance-frext-hcafr4_hhi_a: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/HCAFR4_HHI.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-hcamff1_hhi_b
+fate-h264-conformance-frext-hcamff1_hhi_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/HCAMFF1_HHI.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-hpca_brcm_c
+fate-h264-conformance-frext-hpca_brcm_c: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/HPCA_BRCM_C.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-hpcadq_brcm_b
+fate-h264-conformance-frext-hpcadq_brcm_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/HPCADQ_BRCM_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-hpcafl_bcrm_c
+fate-h264-conformance-frext-hpcafl_bcrm_c: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/HPCAFL_BRCM_C.264 -vsync 0 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-hpcaflnl_bcrm_c
+fate-h264-conformance-frext-hpcaflnl_bcrm_c: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/HPCAFLNL_BRCM_C.264 -vsync 0 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-hpcalq_brcm_b
+fate-h264-conformance-frext-hpcalq_brcm_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/HPCALQ_BRCM_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-hpcamapalq_bcrm_b
+fate-h264-conformance-frext-hpcamapalq_bcrm_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/HPCAMAPALQ_BRCM_B.264 -vsync 0 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-hpcamolq_brcm_b
+fate-h264-conformance-frext-hpcamolq_brcm_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/HPCAMOLQ_BRCM_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-hpcanl_brcm_c
+fate-h264-conformance-frext-hpcanl_brcm_c: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/HPCANL_BRCM_C.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-hpcaq2lq_brcm_b
+fate-h264-conformance-frext-hpcaq2lq_brcm_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/HPCAQ2LQ_BRCM_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-hpcv_brcm_a
+fate-h264-conformance-frext-hpcv_brcm_a: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/HPCV_BRCM_A.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-hpcvfl_bcrm_a
+fate-h264-conformance-frext-hpcvfl_bcrm_a: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/HPCVFL_BRCM_A.264 -vsync 0 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-hpcvflnl_bcrm_a
+fate-h264-conformance-frext-hpcvflnl_bcrm_a: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/HPCVFLNL_BRCM_A.264 -vsync 0 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-hpcvmolq_brcm_b
+fate-h264-conformance-frext-hpcvmolq_brcm_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/HPCVMOLQ_BRCM_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-frext-hpcvnl_brcm_a
+fate-h264-conformance-frext-hpcvnl_brcm_a: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/FRext/HPCVNL_BRCM_A.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-hcbp2_hhi_a
+fate-h264-conformance-hcbp2_hhi_a: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/HCBP2_HHI_A.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-hcmp1_hhi_a
+fate-h264-conformance-hcmp1_hhi_a: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/HCMP1_HHI_A.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-ls_sva_d
+fate-h264-conformance-ls_sva_d: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/LS_SVA_D.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-midr_mw_d
+fate-h264-conformance-midr_mw_d: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/MIDR_MW_D.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-mps_mw_a
+fate-h264-conformance-mps_mw_a: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/MPS_MW_A.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-mr1_bt_a
+fate-h264-conformance-mr1_bt_a: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/MR1_BT_A.h264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-mr1_mw_a
+fate-h264-conformance-mr1_mw_a: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/MR1_MW_A.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-mr2_mw_a
+fate-h264-conformance-mr2_mw_a: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/MR2_MW_A.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-mr2_tandberg_e
+fate-h264-conformance-mr2_tandberg_e: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/MR2_TANDBERG_E.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-mr3_tandberg_b
+fate-h264-conformance-mr3_tandberg_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/MR3_TANDBERG_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-mr4_tandberg_c
+fate-h264-conformance-mr4_tandberg_c: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/MR4_TANDBERG_C.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-mr5_tandberg_c
+fate-h264-conformance-mr5_tandberg_c: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/MR5_TANDBERG_C.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-mr6_bt_b
+fate-h264-conformance-mr6_bt_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/MR6_BT_B.h264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-mr7_bt_b
+fate-h264-conformance-mr7_bt_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/MR7_BT_B.h264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-mr8_bt_b
+fate-h264-conformance-mr8_bt_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/MR8_BT_B.h264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-mr9_bt_b
+fate-h264-conformance-mr9_bt_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/MR9_BT_B.h264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-mv1_brcm_d
+fate-h264-conformance-mv1_brcm_d: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/src19td.IBP.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-nl1_sony_d
+fate-h264-conformance-nl1_sony_d: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/NL1_Sony_D.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-nl2_sony_h
+fate-h264-conformance-nl2_sony_h: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/NL2_Sony_H.jsv -f framecrc -
+FATE_TESTS += fate-h264-conformance-nl3_sva_e
+fate-h264-conformance-nl3_sva_e: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/NL3_SVA_E.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-nlmq1_jvc_c
+fate-h264-conformance-nlmq1_jvc_c: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/NLMQ1_JVC_C.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-nlmq2_jvc_c
+fate-h264-conformance-nlmq2_jvc_c: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/NLMQ2_JVC_C.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-nrf_mw_e
+fate-h264-conformance-nrf_mw_e: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/NRF_MW_E.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-sharp_mp_field_1_b
+fate-h264-conformance-sharp_mp_field_1_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -i $$SAMPLES_PATH/h264-conformance/Sharp_MP_Field_1_B.jvt -f framecrc -
+FATE_TESTS += fate-h264-conformance-sharp_mp_field_2_b
+fate-h264-conformance-sharp_mp_field_2_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -i $$SAMPLES_PATH/h264-conformance/Sharp_MP_Field_2_B.jvt -f framecrc -
+FATE_TESTS += fate-h264-conformance-sharp_mp_field_3_b
+fate-h264-conformance-sharp_mp_field_3_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -i $$SAMPLES_PATH/h264-conformance/Sharp_MP_Field_3_B.jvt -f framecrc -
+FATE_TESTS += fate-h264-conformance-sharp_mp_paff_1r2
+fate-h264-conformance-sharp_mp_paff_1r2: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/Sharp_MP_PAFF_1r2.jvt -f framecrc -
+FATE_TESTS += fate-h264-conformance-sharp_mp_paff_2r
+fate-h264-conformance-sharp_mp_paff_2r: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/Sharp_MP_PAFF_2.jvt -f framecrc -
+FATE_TESTS += fate-h264-conformance-sl1_sva_b
+fate-h264-conformance-sl1_sva_b: CMD = $$BUILD_PATH/ffmpeg -vsync 0 -strict 1 -i $$SAMPLES_PATH/h264-conformance/SL1_SVA_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-sva_ba1_b
+fate-h264-conformance-sva_ba1_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/SVA_BA1_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-sva_ba2_d
+fate-h264-conformance-sva_ba2_d: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/SVA_BA2_D.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-sva_base_b
+fate-h264-conformance-sva_base_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/SVA_Base_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-sva_cl1_e
+fate-h264-conformance-sva_cl1_e: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/SVA_CL1_E.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-sva_fm1_e
+fate-h264-conformance-sva_fm1_e: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/SVA_FM1_E.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-sva_nl1_b
+fate-h264-conformance-sva_nl1_b: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/SVA_NL1_B.264 -f framecrc -
+FATE_TESTS += fate-h264-conformance-sva_nl2_e
+fate-h264-conformance-sva_nl2_e: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/h264-conformance/SVA_NL2_E.264 -f framecrc -
+FATE_TESTS += fate-id-cin-video
+fate-id-cin-video: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/idcin/idlog-2MB.cin -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-idroq-video-dpcm
+fate-idroq-video-dpcm: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/idroq/idlogo.roq -f framecrc -
+FATE_TESTS += fate-idroq-video-encode
+fate-idroq-video-encode: CMD = $$BUILD_PATH/ffmpeg -t 0.2 -f image2 -vcodec pgmyuv -i $$SAMPLES_PATH/ffmpeg-synthetic/vsynth1/%02d.pgm -sws_flags +bitexact -padleft 80 -padright 80 -padtop 112 -padbottom 112 -f RoQ - | do_md5sum | cut -c-32
+FATE_TESTS += fate-iff-byterun1
+fate-iff-byterun1: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/iff/ASH.LBM -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-iff-fibonacci
+fate-iff-fibonacci: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/iff/dasboot-in-compressed -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-iff-ilbm
+fate-iff-ilbm: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/iff/lms-matriks.ilbm -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-iff-pcm
+fate-iff-pcm: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/iff/Bells -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-indeo2
+fate-indeo2: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/rt21/VPAR0026.AVI -f framecrc -
+FATE_TESTS += fate-indeo3
+fate-indeo3: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/iv32/cubes.mov -f framecrc -
+FATE_TESTS += fate-indeo5
+fate-indeo5: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/iv50/Educ_Movie_DeadlyForce.avi -an -f framecrc -
+FATE_TESTS += fate-interplay-mve-16bit
+fate-interplay-mve-16bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/interplay-mve/descent3-level5-16bit-partial.mve -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-interplay-mve-8bit
+fate-interplay-mve-8bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/interplay-mve/interplay-logo-2MB.mve -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-iv8-demux
+fate-iv8-demux: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/iv8/zzz-partial.mpg -vsync 0 -vcodec copy -f framecrc -
+FATE_TESTS += fate-kmvc
+fate-kmvc: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/KMVC/LOGO1.AVI -an -t 3 -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-lmlm4-demux
+fate-lmlm4-demux: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/lmlm4/LMLM4_CIFat30fps.divx -t 3 -acodec copy -vcodec copy -f framecrc -
+FATE_TESTS += fate-loco-rgb
+fate-loco-rgb: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/loco/pig-loco-rgb.avi -f framecrc -
+FATE_TESTS += fate-loco-yuy2
+fate-loco-yuy2: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/loco/pig-loco-0.avi -f framecrc -
+FATE_TESTS += fate-lossless-appleaudio
+fate-lossless-appleaudio: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/lossless-audio/inside.m4a -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-lossless-meridianaudio
+fate-lossless-meridianaudio: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/lossless-audio/luckynight-partial.mlp -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-lossless-monkeysaudio
+fate-lossless-monkeysaudio: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/lossless-audio/luckynight-partial.ape -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-lossless-shortenaudio
+fate-lossless-shortenaudio: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/lossless-audio/luckynight-partial.shn -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-lossless-tta
+fate-lossless-tta: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/lossless-audio/inside.tta -f crc -
+FATE_TESTS += fate-lossless-wavpackaudio
+fate-lossless-wavpackaudio: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/lossless-audio/luckynight-partial.wv -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-maxis-xa
+fate-maxis-xa: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/maxis-xa/SC2KBUG.XA -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-mimic
+fate-mimic: CMD = $$BUILD_PATH/ffmpeg -idct simple -i $$SAMPLES_PATH/mimic/mimic2-womanloveffmpeg.cam -vsync 0 -f framecrc -
+FATE_TESTS += fate-motionpixels
+fate-motionpixels: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/motion-pixels/INTRO-partial.MVI -an -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-mpc7-demux
+fate-mpc7-demux: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/musepack/inside-mp7.mpc -acodec copy -f crc -
+FATE_TESTS += fate-mpc8-demux
+fate-mpc8-demux: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/musepack/inside-mp8.mpc -acodec copy -f crc -
+FATE_TESTS += fate-mpeg4-als-conformance-00
+fate-mpeg4-als-conformance-00: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/lossless-audio/als_00_2ch48k16b.mp4 -f crc -
+FATE_TESTS += fate-mpeg4-als-conformance-01
+fate-mpeg4-als-conformance-01: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/lossless-audio/als_01_2ch48k16b.mp4 -f crc -
+FATE_TESTS += fate-mpeg4-als-conformance-02
+fate-mpeg4-als-conformance-02: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/lossless-audio/als_02_2ch48k16b.mp4 -f crc -
+FATE_TESTS += fate-mpeg4-als-conformance-03
+fate-mpeg4-als-conformance-03: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/lossless-audio/als_03_2ch48k16b.mp4 -f crc -
+FATE_TESTS += fate-mpeg4-als-conformance-04
+fate-mpeg4-als-conformance-04: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/lossless-audio/als_04_2ch48k16b.mp4 -f crc -
+FATE_TESTS += fate-mpeg4-als-conformance-05
+fate-mpeg4-als-conformance-05: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/lossless-audio/als_05_2ch48k16b.mp4 -f crc -
+FATE_TESTS += fate-msrle-8bit
+fate-msrle-8bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/msrle/Search-RLE.avi -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-msvideo1-16bit
+fate-msvideo1-16bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/cram/clock-cram16.avi -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-msvideo1-8bit
+fate-msvideo1-8bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/cram/skating.avi -t 1 -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-mszh
+fate-mszh: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/lcl/mszh-1frame.avi -f framecrc -
+FATE_TESTS += fate-mtv
+fate-mtv: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/mtv/comedian_auto-partial.mtv -acodec copy -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-mxf-demux
+fate-mxf-demux: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/mxf/C0023S01.mxf -acodec copy -vcodec copy -f framecrc -
+FATE_TESTS += fate-nc-demux
+fate-nc-demux: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/nc-camera/nc-sample-partial -vcodec copy -f framecrc -
+FATE_TESTS += fate-nsv-demux
+fate-nsv-demux: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/nsv/witchblade-51kbps.nsv -t 6 -vcodec copy -acodec copy -f framecrc -
+FATE_TESTS += fate-nuv
+fate-nuv: CMD = $$BUILD_PATH/ffmpeg -idct simple -i $$SAMPLES_PATH/nuv/Today.nuv -f framecrc -
+FATE_TESTS += fate-oma-demux
+fate-oma-demux: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/oma/01-Untitled-partial.oma -acodec copy -f crc -
+FATE_TESTS += fate-pcm_dvd
+fate-pcm_dvd: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/pcm-dvd/coolitnow-partial.vob -vn -f framecrc -
+FATE_TESTS += fate-psx-str
+fate-psx-str: CMD = $$BUILD_PATH/ffmpeg -idct simple -i $$SAMPLES_PATH/psx-str/descent-partial.str -f framecrc -
+FATE_TESTS += fate-ptx
+fate-ptx: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/ptx/_113kw_pic.ptx -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-pva-demux
+fate-pva-demux: CMD = $$BUILD_PATH/ffmpeg -idct simple -i $$SAMPLES_PATH/pva/PVA_test-partial.pva -t 0.6 -acodec copy -f framecrc -
+FATE_TESTS += fate-qcp-demux
+fate-qcp-demux: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qcp/0036580847.QCP -acodec copy -f crc -
+FATE_TESTS += fate-qpeg
+fate-qpeg: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qpeg/Clock.avi -an -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-qt-alaw-mono
+fate-qt-alaw-mono: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qt-surge-suite/surge-1-16-B-alaw.mov -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-qt-alaw-stereo
+fate-qt-alaw-stereo: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qt-surge-suite/surge-2-16-B-alaw.mov -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-qt-ima4-mono
+fate-qt-ima4-mono: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qt-surge-suite/surge-1-16-B-ima4.mov -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-qt-ima4-stereo
+fate-qt-ima4-stereo: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qt-surge-suite/surge-2-16-B-ima4.mov -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-qt-mac3-mono
+fate-qt-mac3-mono: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qt-surge-suite/surge-1-8-MAC3.mov -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-qt-mac3-stereo
+fate-qt-mac3-stereo: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qt-surge-suite/surge-2-8-MAC3.mov -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-qt-mac6-mono
+fate-qt-mac6-mono: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qt-surge-suite/surge-1-8-MAC6.mov -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-qt-mac6-stereo
+fate-qt-mac6-stereo: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qt-surge-suite/surge-2-8-MAC6.mov -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-qt-msadpcm-stereo
+fate-qt-msadpcm-stereo: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qt-surge-suite/surge-2-16-L-ms02.mov -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-qt-msimaadpcm-stereo
+fate-qt-msimaadpcm-stereo: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qt-surge-suite/surge-2-16-L-ms11.mov -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-qt-rawpcm-16bit-stereo-signed-be
+fate-qt-rawpcm-16bit-stereo-signed-be: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qt-surge-suite/surge-2-16-B-twos.mov -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-qt-rawpcm-16bit-stereo-signed-le
+fate-qt-rawpcm-16bit-stereo-signed-le: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qt-surge-suite/surge-2-16-L-sowt.mov -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-qt-rawpcm-8bit-mono-unsigned
+fate-qt-rawpcm-8bit-mono-unsigned: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qt-surge-suite/surge-1-8-raw.mov -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-qt-rawpcm-8bit-stereo-unsigned
+fate-qt-rawpcm-8bit-stereo-unsigned: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qt-surge-suite/surge-2-8-raw.mov -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-qt-ulaw-mono
+fate-qt-ulaw-mono: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qt-surge-suite/surge-1-16-B-ulaw.mov -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-qt-ulaw-stereo
+fate-qt-ulaw-stereo: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qt-surge-suite/surge-2-16-B-ulaw.mov -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-qtrle-16bit
+fate-qtrle-16bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qtrle/mr-cork-rle.mov -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-qtrle-1bit
+fate-qtrle-1bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qtrle/Animation-Monochrome.mov -f framecrc -
+FATE_TESTS += fate-qtrle-24bit
+fate-qtrle-24bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qtrle/aletrek-rle.mov -vsync 0 -f framecrc -
+FATE_TESTS += fate-qtrle-2bit
+fate-qtrle-2bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qtrle/Animation-4Greys.mov -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-qtrle-32bit
+fate-qtrle-32bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qtrle/ultra_demo_720_480_32bpp_rle.mov -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-qtrle-4bit
+fate-qtrle-4bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qtrle/Animation-16Greys.mov -pix_fmt rgb24 -an -f framecrc -
+FATE_TESTS += fate-qtrle-8bit
+fate-qtrle-8bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/qtrle/criticalpath-credits.mov -vsync 0 -pix_fmt rgb24 -an -f framecrc -
+FATE_TESTS += fate-quickdraw
+fate-quickdraw: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/quickdraw/Airplane.mov -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-real-14_4
+fate-real-14_4: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/real/ra3_in_rm_file.rm -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-real-rv40
+fate-real-rv40: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/real/spygames-2MB.rmvb -t 10 -an -f framecrc -
+FATE_TESTS += fate-redcode-demux
+fate-redcode-demux: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/r3d/4MB-sample.r3d -vcodec copy -acodec copy -f framecrc -
+FATE_TESTS += fate-rl2
+fate-rl2: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/rl2/Z4915300.RL2 -pix_fmt rgb24 -an -vsync 0 -f framecrc -
+FATE_TESTS += fate-rpza
+fate-rpza: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/rpza/rpza2.mov -t 2 -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-sierra-audio
+fate-sierra-audio: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/sol/lsl7sample.sol -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-sierra-vmd
+fate-sierra-vmd: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/vmd/12.vmd -vsync 0 -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-siff
+fate-siff: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/SIFF/INTRO_B.VB -t 3 -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-smacker
+fate-smacker: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/smacker/wetlogo.smk -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-smc
+fate-smc: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/smc/cass_schi.qt -vsync 0 -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-sp5x
+fate-sp5x: CMD = $$BUILD_PATH/ffmpeg -idct simple -i $$SAMPLES_PATH/sp5x/sp5x_problem.avi -f framecrc -
+FATE_TESTS += fate-sunraster-1bit-raw
+fate-sunraster-1bit-raw: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/sunraster/lena-1bit-raw.sun -f framecrc -
+FATE_TESTS += fate-sunraster-1bit-rle
+fate-sunraster-1bit-rle: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/sunraster/lena-1bit-rle.sun -f framecrc -
+FATE_TESTS += fate-sunraster-24bit-raw
+fate-sunraster-24bit-raw: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/sunraster/lena-24bit-raw.sun -f framecrc -
+FATE_TESTS += fate-sunraster-24bit-rle
+fate-sunraster-24bit-rle: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/sunraster/lena-24bit-rle.sun -f framecrc -
+FATE_TESTS += fate-sunraster-8bit-raw
+fate-sunraster-8bit-raw: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/sunraster/lena-8bit-raw.sun -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-sunraster-8bit-rle
+fate-sunraster-8bit-rle: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/sunraster/lena-8bit-rle.sun -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-svq1
+fate-svq1: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/svq1/marymary-shackles.mov -an -t 10 -f framecrc -
+FATE_TESTS += fate-svq3
+fate-svq3: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/svq3/Vertical400kbit.sorenson3.mov -t 6 -an -f framecrc -
+FATE_TESTS += fate-thp-mjpeg-adpcm
+fate-thp-mjpeg-adpcm: CMD = $$BUILD_PATH/ffmpeg -idct simple -i $$SAMPLES_PATH/thp/pikmin2-opening1-partial.thp -f framecrc -
+FATE_TESTS += fate-tiertex-seq
+fate-tiertex-seq: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/tiertex-seq/Gameover.seq -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-tmv
+fate-tmv: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/tmv/pop-partial.tmv -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-tscc-15bit
+fate-tscc-15bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/tscc/oneminute.avi -t 15 -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-tscc-32bit
+fate-tscc-32bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/tscc/2004-12-17-uebung9-partial.avi -pix_fmt rgb24 -an -f framecrc -
+FATE_TESTS += fate-ulti
+fate-ulti: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/ulti/hit12w.avi -an -f framecrc -
+FATE_TESTS += fate-v210
+fate-v210: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/v210/v210_720p-partial.avi -pix_fmt yuv422p16be -an -f framecrc -
+FATE_TESTS += fate-vc1
+fate-vc1: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/vc1/SA00040.vc1 -f framecrc -
+FATE_TESTS += fate-vcr1
+fate-vcr1: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/vcr1/VCR1test.avi -an -f framecrc -
+FATE_TESTS += fate-video-xl
+fate-video-xl: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/vixl/pig-vixl.avi -f framecrc -
+FATE_TESTS += fate-vmnc-16bit
+fate-vmnc-16bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/VMnc/test.avi -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-vmnc-32bit
+fate-vmnc-32bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/VMnc/VS2k5DebugDemo-01-partial.avi -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-vp5
+fate-vp5: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/vp5/potter512-400-partial.avi -an -f framecrc -
+FATE_TESTS += fate-vp6a
+fate-vp6a: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/flash-vp6/300x180-Scr-f8-056alpha.flv -f framecrc -
+FATE_TESTS += fate-vp6f
+fate-vp6f: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/flash-vp6/clip1024.flv -f framecrc -
+FATE_TESTS += fate-vqa-cc
+fate-vqa-cc: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/vqa/cc-demo1-partial.vqa -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-vqf-demux
+fate-vqf-demux: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/vqf/achterba.vqf -acodec copy -f framecrc - | do_md5sum | cut -c-32
+FATE_TESTS += fate-w64
+fate-w64: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/w64/w64-pcm16.w64 -f crc -
+FATE_TESTS += fate-wc3movie-xan
+fate-wc3movie-xan: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/wc3movie/SC_32-part.MVE -pix_fmt rgb24 -f framecrc -
+FATE_TESTS += fate-westwood-aud
+fate-westwood-aud: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/westwood-aud/excellent.aud -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-wnv1
+fate-wnv1: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/wnv1/wnv1-codec.avi -an -f framecrc -
+FATE_TESTS += fate-xan-dpcm
+fate-xan-dpcm: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/wc4-xan/wc4_2.avi -vn -f s16le - | do_md5sum | cut -c-32
+FATE_TESTS += fate-zlib
+fate-zlib: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/lcl/zlib-1frame.avi -f framecrc -
+FATE_TESTS += fate-zmbv-15bit
+fate-zmbv-15bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/zmbv/zmbv_15bit.avi -pix_fmt rgb24 -t 25 -f framecrc -
+FATE_TESTS += fate-zmbv-16bit
+fate-zmbv-16bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/zmbv/zmbv_16bit.avi -pix_fmt rgb24 -t 25 -f framecrc -
+FATE_TESTS += fate-zmbv-32bit
+fate-zmbv-32bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/zmbv/zmbv_32bit.avi -pix_fmt rgb24 -t 25 -f framecrc -
+FATE_TESTS += fate-zmbv-8bit
+fate-zmbv-8bit: CMD = $$BUILD_PATH/ffmpeg -i $$SAMPLES_PATH/zmbv/wc2_001-partial.avi -an -pix_fmt rgb24 -f framecrc -
diff --git a/tests/ref/fate/4xm b/tests/ref/fate/4xm
new file mode 100644
index 0000000000..614da5e759
--- /dev/null
+++ b/tests/ref/fate/4xm
@@ -0,0 +1 @@
+88a53430410d1cec5ed46846652ffd51
diff --git a/tests/ref/fate/8bps b/tests/ref/fate/8bps
new file mode 100644
index 0000000000..6ee96177db
--- /dev/null
+++ b/tests/ref/fate/8bps
@@ -0,0 +1,35 @@
+1, 0, 2048, 0x3d042426
+0, 0, 259200, 0x7e91df07
+1, 4180, 2048, 0x5bcae456
+0, 7200, 259200, 0x7e91df07
+1, 8359, 2048, 0xb6043655
+1, 12539, 2048, 0x6fdaffad
+0, 14400, 259200, 0xc468c119
+1, 16718, 2048, 0xf86700cb
+1, 20898, 2048, 0x045e46c1
+0, 21600, 259200, 0x0e058930
+1, 25078, 2048, 0x000df0e5
+0, 28800, 259200, 0xa0261310
+1, 29257, 2048, 0x8f5f12fb
+1, 33437, 2048, 0xd516f6b0
+0, 36000, 259200, 0x78ca9aba
+1, 37616, 2048, 0xa1fe2bd3
+1, 41796, 2048, 0x3647087a
+0, 43200, 259200, 0x4971f7b3
+1, 45976, 2048, 0xd2ee584e
+1, 50155, 2048, 0xf132088c
+0, 50400, 259200, 0x7dc2cff7
+1, 54335, 2048, 0x1efc0eb1
+0, 57600, 259200, 0x8cbc53d5
+1, 58514, 2048, 0xeb73f402
+1, 62694, 2048, 0x75cb3d20
+0, 64800, 259200, 0xcccd77e3
+1, 66873, 2048, 0x85a501b6
+1, 71053, 2048, 0xa4eb312d
+0, 72000, 259200, 0x6b3e0fb3
+1, 75233, 2048, 0xf0aaf8c7
+0, 79200, 259200, 0x281dd175
+1, 79412, 2048, 0x65371cda
+1, 83592, 2048, 0x25512cd6
+1, 87771, 2048, 0xc81410e3
+1, 91951, 514, 0x57d77b94
diff --git a/tests/ref/fate/aac-demux b/tests/ref/fate/aac-demux
new file mode 100644
index 0000000000..744ae64da4
--- /dev/null
+++ b/tests/ref/fate/aac-demux
@@ -0,0 +1 @@
+CRC=0xbda37454
diff --git a/tests/ref/fate/aasc b/tests/ref/fate/aasc
new file mode 100644
index 0000000000..7ec02ba575
--- /dev/null
+++ b/tests/ref/fate/aasc
@@ -0,0 +1,23 @@
+0, 0, 168000, 0x45addf8f
+0, 3600, 168000, 0x45addf8f
+0, 7200, 168000, 0x45addf8f
+0, 10800, 168000, 0x45addf8f
+0, 14400, 168000, 0x45addf8f
+0, 18000, 168000, 0x45addf8f
+0, 21600, 168000, 0x45addf8f
+0, 25200, 168000, 0x45addf8f
+0, 28800, 168000, 0x45addf8f
+0, 32400, 168000, 0x45addf8f
+0, 36000, 168000, 0x45addf8f
+0, 39600, 168000, 0x45addf8f
+0, 43200, 168000, 0x8730699b
+0, 46800, 168000, 0x08b095df
+0, 50400, 168000, 0x203526e3
+0, 54000, 168000, 0x0ebc5142
+0, 57600, 168000, 0xd168e7c2
+0, 61200, 168000, 0xcc7da0e6
+0, 64800, 168000, 0x72ac60b8
+0, 68400, 168000, 0xb691e27c
+0, 72000, 168000, 0x646fa087
+0, 75600, 168000, 0x404450a2
+0, 79200, 168000, 0x5214c456
diff --git a/tests/ref/fate/adpcm-ea-r2 b/tests/ref/fate/adpcm-ea-r2
new file mode 100644
index 0000000000..4bca11f637
--- /dev/null
+++ b/tests/ref/fate/adpcm-ea-r2
@@ -0,0 +1 @@
+CRC=0xa1158634
diff --git a/tests/ref/fate/adpcm-ea-r3 b/tests/ref/fate/adpcm-ea-r3
new file mode 100644
index 0000000000..920a4d0023
--- /dev/null
+++ b/tests/ref/fate/adpcm-ea-r3
@@ -0,0 +1 @@
+CRC=0x9ea2507f
diff --git a/tests/ref/fate/aea-demux b/tests/ref/fate/aea-demux
new file mode 100644
index 0000000000..18ec8b88ef
--- /dev/null
+++ b/tests/ref/fate/aea-demux
@@ -0,0 +1 @@
+CRC=0xc1312082
diff --git a/tests/ref/fate/alg-mm b/tests/ref/fate/alg-mm
new file mode 100644
index 0000000000..6e245ac091
--- /dev/null
+++ b/tests/ref/fate/alg-mm
@@ -0,0 +1,31 @@
+0, 0, 122880, 0x4ed8123f
+0, 9000, 122880, 0xc4c35304
+0, 18000, 122880, 0xbd3015fd
+0, 27000, 122880, 0xece5dbab
+0, 36000, 122880, 0x13249f3f
+0, 45000, 122880, 0x58f75895
+0, 54000, 122880, 0xe6570f7d
+0, 63000, 122880, 0xcce88145
+0, 72000, 122880, 0x796f633c
+0, 81000, 122880, 0x182c3cd3
+0, 90000, 122880, 0x04b2513b
+0, 99000, 122880, 0x6b7e2e42
+0, 108000, 122880, 0x2fa47070
+0, 117000, 122880, 0x7142919e
+0, 126000, 122880, 0x8995337e
+0, 135000, 122880, 0x5146ca20
+0, 144000, 122880, 0x9aadb491
+0, 153000, 122880, 0x2d5b0032
+0, 162000, 122880, 0x5c7c8314
+0, 171000, 122880, 0x2ba8253c
+0, 180000, 122880, 0xd19d504b
+0, 189000, 122880, 0x4ff15fd1
+0, 198000, 122880, 0x76039f9f
+0, 207000, 122880, 0xcce84d35
+0, 216000, 122880, 0x68c5797c
+0, 225000, 122880, 0xf1da4293
+0, 234000, 122880, 0xf5f537f3
+0, 243000, 122880, 0x8d3ffa94
+0, 252000, 122880, 0x3ca9b69c
+0, 261000, 122880, 0x21187f6c
+0, 270000, 122880, 0xe5136e34
diff --git a/tests/ref/fate/amv b/tests/ref/fate/amv
new file mode 100644
index 0000000000..a8e7136ea0
--- /dev/null
+++ b/tests/ref/fate/amv
@@ -0,0 +1,320 @@
+0, 0, 28800, 0x026058a9
+1, 0, 2756, 0x0af35034
+1, 5624, 2756, 0x8462443f
+0, 5625, 28800, 0x5dc728de
+1, 11249, 2756, 0x9f493ba6
+0, 11250, 28800, 0x83e19a2c
+1, 16873, 2756, 0x634e5f06
+0, 16875, 28800, 0xb029f94a
+1, 22498, 2760, 0x51f35cd4
+0, 22500, 28800, 0x735a6b15
+0, 28125, 28800, 0xf7e9dc8b
+1, 28131, 2756, 0x011c51e5
+0, 33750, 28800, 0xa108b0cf
+1, 33755, 2756, 0x8c2c198c
+0, 39375, 28800, 0x3d11c138
+1, 39380, 2756, 0x2b4a3397
+0, 45000, 28800, 0xed23afda
+1, 45004, 2756, 0x63794f22
+0, 50625, 28800, 0x713bb2dc
+1, 50629, 2756, 0xfc363898
+0, 56250, 28800, 0x551ad51e
+1, 56253, 2756, 0x0da5486e
+0, 61875, 28800, 0x49dfcf2d
+1, 61878, 2756, 0xbae17a5f
+0, 67500, 28800, 0x6399d5b3
+1, 67502, 2760, 0xba266e1b
+0, 73125, 28800, 0x520ad812
+1, 73135, 2756, 0xdfb61002
+0, 78750, 28800, 0xc46ad9da
+1, 78759, 2756, 0x15d029da
+0, 84375, 28800, 0xe79edb9e
+1, 84384, 2756, 0x7bc82012
+0, 90000, 28800, 0xdb1acb30
+1, 90008, 2756, 0x002e6999
+0, 95625, 28800, 0x050fb669
+1, 95633, 2756, 0x96346ba6
+0, 101250, 28800, 0x096ca687
+1, 101257, 2756, 0x3d54543b
+0, 106875, 28800, 0x0054a6bd
+1, 106882, 2760, 0x601786e1
+0, 112500, 28800, 0x6d7daad2
+1, 112514, 2756, 0xf22a5793
+0, 118125, 28800, 0x9c10a9dc
+1, 118139, 2756, 0x21f54d49
+0, 123750, 28800, 0x89b1a623
+1, 123763, 2756, 0x0c6d4399
+0, 129375, 28800, 0xa0a19c3f
+1, 129388, 2756, 0x17282f8e
+0, 135000, 28800, 0x26c898ad
+1, 135012, 2756, 0xeb698f75
+0, 140625, 28800, 0x6f639dae
+1, 140637, 2756, 0x935e1de2
+0, 146250, 28800, 0xa173a9b5
+1, 146261, 2760, 0xb6fb4293
+0, 151875, 28800, 0xa309aa08
+1, 151894, 2756, 0x485053dc
+0, 157500, 28800, 0x2059b6c4
+1, 157518, 2756, 0x24c35027
+0, 163125, 28800, 0x5ae8c761
+1, 163143, 2756, 0x09f323ee
+0, 168750, 28800, 0xb780c9c5
+1, 168767, 2756, 0xbc7d58d5
+0, 174375, 28800, 0xf58ac8fe
+1, 174392, 2756, 0xaefd487c
+0, 180000, 28800, 0x9bb307e7
+1, 180016, 2756, 0xaca16cc0
+0, 185625, 28800, 0xd32c3e81
+1, 185641, 2760, 0x98a76091
+0, 191250, 28800, 0x4edd51d2
+1, 191273, 2756, 0x5d357141
+0, 196875, 28800, 0x5a88684d
+1, 196898, 2756, 0x65ea2657
+0, 202500, 28800, 0x5bd97f0e
+1, 202522, 2756, 0xb5e1334a
+0, 208125, 28800, 0x36d67843
+1, 208147, 2756, 0x32cd5d91
+0, 213750, 28800, 0x0e18781d
+1, 213771, 2756, 0xdc23722b
+0, 219375, 28800, 0xa3168807
+1, 219396, 2756, 0x2ba34684
+0, 225000, 28800, 0xa7c575b8
+1, 225020, 2756, 0xf9755ba8
+0, 230625, 28800, 0x86367c37
+1, 230645, 2760, 0x24221ddb
+0, 236250, 28800, 0xb0f79180
+1, 236278, 2756, 0xef843aa4
+0, 241875, 28800, 0x61da8c0f
+1, 241902, 2756, 0x420442fe
+0, 247500, 28800, 0x9b11948a
+1, 247527, 2756, 0x5a0933cb
+0, 253125, 28800, 0xc53d9b44
+1, 253151, 2756, 0xef5f6d61
+0, 258750, 28800, 0xdc699185
+1, 258776, 2756, 0xe57e6dc0
+0, 264375, 28800, 0x7b4f92b5
+1, 264400, 2756, 0xc0f0495a
+0, 270000, 28800, 0x40469065
+1, 270024, 2760, 0x2c3b55df
+0, 275625, 28800, 0x737ea07e
+1, 275657, 2756, 0x39c2586c
+0, 281250, 28800, 0x0db49c8b
+1, 281282, 2756, 0x7ffc46e5
+0, 286875, 28800, 0x39249f10
+1, 286906, 2756, 0xa2766664
+0, 292500, 28800, 0xc182ab99
+1, 292531, 2756, 0xacb50c6c
+0, 298125, 28800, 0xd8f7a7c9
+1, 298155, 2756, 0x7f659084
+0, 303750, 28800, 0x46789caa
+1, 303780, 2756, 0xc72e6a12
+0, 309375, 28800, 0x4759a374
+1, 309404, 2760, 0xdb6944df
+0, 315000, 28800, 0xe621b16a
+1, 315037, 2756, 0x954f45c1
+0, 320625, 28800, 0xcf47a999
+1, 320661, 2756, 0xa9484240
+0, 326250, 28800, 0x801dacd4
+1, 326286, 2756, 0x1d595349
+0, 331875, 28800, 0xe580af51
+1, 331910, 2756, 0xcf2a565e
+0, 337500, 28800, 0x03d7a887
+1, 337535, 2756, 0x391028d5
+0, 343125, 28800, 0xa67ea51d
+1, 343159, 2756, 0x348db7ad
+0, 348750, 28800, 0x9fee0ec8
+1, 348784, 2760, 0xb69b5e3a
+0, 354375, 28800, 0x7f602a5e
+1, 354416, 2756, 0xe3635fbe
+0, 360000, 28800, 0x100d432a
+1, 360041, 2756, 0xdcad3654
+0, 365625, 28800, 0x42164dfb
+1, 365665, 2756, 0x5c17abef
+0, 371250, 28800, 0x86c05196
+1, 371290, 2756, 0xb3235184
+0, 376875, 28800, 0xfc225938
+1, 376914, 2756, 0xdabb64a6
+0, 382500, 28800, 0x81085e87
+1, 382539, 2756, 0xa95dc58d
+0, 388125, 28800, 0xaa8f5d0a
+1, 388163, 2760, 0x8e7ac9eb
+0, 393750, 28800, 0x605a5f9f
+1, 393796, 2756, 0x492b658e
+0, 399375, 28800, 0x68dc64b2
+1, 399420, 2756, 0x377483ab
+0, 405000, 28800, 0xd08e710b
+1, 405045, 2756, 0x2c250279
+0, 410625, 28800, 0xf8567939
+1, 410669, 2756, 0x704dbdb3
+0, 416250, 28800, 0x8dad7a4f
+1, 416294, 2756, 0x800d7da2
+0, 421875, 28800, 0x1a19813c
+1, 421918, 2756, 0x872aa32e
+0, 427500, 28800, 0x8a157f0e
+1, 427543, 2756, 0x2d4837fe
+0, 433125, 28800, 0xa4fa7b9d
+1, 433167, 2760, 0xc89ea57e
+0, 438750, 28800, 0x093b7b36
+1, 438800, 2756, 0x6447d7ef
+0, 444375, 28800, 0xa925755b
+1, 444424, 2756, 0x144f59cc
+0, 450000, 28800, 0xa5968138
+1, 450049, 2756, 0xc667154e
+0, 455625, 28800, 0xe00877ac
+1, 455673, 2756, 0xf0de66ae
+0, 461250, 28800, 0xd736183e
+1, 461298, 2756, 0xeabf3c32
+0, 466875, 28800, 0x356f2068
+1, 466922, 2756, 0xe98e81d1
+0, 472500, 28800, 0xf9a50f22
+1, 472547, 2760, 0x56aa5889
+0, 478125, 28800, 0x92df2ae8
+1, 478180, 2756, 0x4fd34c0e
+0, 483750, 28800, 0x67a43dc8
+1, 483804, 2756, 0x67cf6912
+0, 489375, 28800, 0xf8ce2ead
+1, 489429, 2756, 0xfa944def
+0, 495000, 28800, 0xf42f37ee
+1, 495053, 2756, 0xc12f23b2
+0, 500625, 28800, 0x03611f37
+1, 500678, 2756, 0x5ea325a2
+0, 506250, 28800, 0xddda2327
+1, 506302, 2756, 0x2b245824
+0, 511875, 28800, 0xdf073d85
+1, 511927, 2760, 0x90ac533e
+0, 517500, 28800, 0xa8331fee
+1, 517559, 2756, 0xcca34d26
+0, 523125, 28800, 0x59d3490a
+1, 523184, 2756, 0xb5f820d0
+0, 528750, 28800, 0xa8335be6
+1, 528808, 2756, 0x27f24335
+0, 534375, 28800, 0xd5483b43
+1, 534433, 2756, 0x4a9e87b7
+0, 540000, 28800, 0x23422dc9
+1, 540057, 2756, 0xbd076129
+0, 545625, 28800, 0xc04e4689
+1, 545682, 2756, 0x2e0e3f2e
+0, 551250, 28800, 0xd4d96372
+1, 551306, 2760, 0xdf534478
+0, 556875, 28800, 0x9c814e96
+1, 556939, 2756, 0xca000a2e
+0, 562500, 28800, 0x7c4b5d3b
+1, 562563, 2756, 0x87472df3
+0, 568125, 28800, 0x6bf66c04
+1, 568188, 2756, 0x16733810
+0, 573750, 28800, 0x6e8d4bb6
+1, 573812, 2756, 0xfa0734b4
+0, 579375, 28800, 0xad964d00
+1, 579437, 2756, 0x5eff3fc4
+0, 585000, 28800, 0x1ff36bd1
+1, 585061, 2756, 0xf35346bd
+0, 590625, 28800, 0xa4664c76
+1, 590686, 2756, 0xac6411c5
+0, 596250, 28800, 0x50626d82
+1, 596310, 2760, 0x478c3c56
+0, 601875, 28800, 0x81906c5c
+1, 601943, 2756, 0xebd30bdd
+0, 607500, 28800, 0x5060543f
+1, 607567, 2756, 0xaef95a31
+0, 613125, 28800, 0x231c5a86
+1, 613192, 2756, 0x8aad29d1
+0, 618750, 28800, 0x79775d48
+1, 618816, 2756, 0x626863f0
+0, 624375, 28800, 0xbb893571
+1, 624441, 2756, 0x68c05707
+0, 630000, 28800, 0x794c49ed
+1, 630065, 2756, 0x437c5e8d
+0, 635625, 28800, 0x70464bac
+1, 635690, 2760, 0x8eca4bdb
+0, 641250, 28800, 0xe79549ce
+1, 641322, 2756, 0x62bd4162
+0, 646875, 28800, 0xa6565555
+1, 646947, 2756, 0x9f744aa4
+0, 652500, 28800, 0x2ef1ad6d
+1, 652571, 2756, 0x0f3f6409
+0, 658125, 28800, 0xdd22b9aa
+1, 658196, 2756, 0x3fee827a
+0, 663750, 28800, 0x26ebaa97
+1, 663820, 2756, 0x48a0ac19
+0, 669375, 28800, 0x32bd979e
+1, 669445, 2756, 0x8e4ce0d0
+0, 675000, 28800, 0x4c167c9a
+1, 675069, 2760, 0xcda82236
+0, 680625, 28800, 0xfdf76051
+1, 680702, 2756, 0x0e523255
+0, 686250, 28800, 0x966938a8
+1, 686327, 2756, 0x84103d30
+0, 691875, 28800, 0xcea3fbde
+1, 691951, 2756, 0x13941cde
+0, 697500, 28800, 0x29a0c213
+1, 697576, 2756, 0x9fc834c5
+0, 703125, 28800, 0x5633a1c2
+1, 703200, 2756, 0xc0217a77
+0, 708750, 28800, 0xdc0b9af8
+1, 708824, 2756, 0x3f643659
+0, 714375, 28800, 0x92138848
+1, 714449, 2760, 0x9dbd6002
+0, 720000, 28800, 0xd7308da5
+1, 720082, 2756, 0x94f046fb
+0, 725625, 28800, 0x0c8f9b3f
+1, 725706, 2756, 0xab01fb12
+0, 731250, 28800, 0xd059b5d1
+1, 731331, 2756, 0x04cffe5c
+0, 736875, 28800, 0xba6ed9cd
+1, 736955, 2756, 0xef661c5e
+0, 742500, 28800, 0x896c1064
+1, 742580, 2756, 0x094c5fc5
+0, 748125, 28800, 0x986e2fc9
+1, 748204, 2756, 0xe0c1486a
+0, 753750, 28800, 0xcba94e4b
+1, 753829, 2760, 0x8c3535b7
+0, 759375, 28800, 0xf3e778ed
+1, 759461, 2756, 0x594934aa
+0, 765000, 28800, 0xc6cd7d48
+1, 765086, 2756, 0x74007238
+0, 770625, 28800, 0xd9bd84d8
+1, 770710, 2756, 0x61f1394d
+0, 776250, 28800, 0x391197b4
+1, 776335, 2756, 0x72584f07
+0, 781875, 28800, 0xf361a1d9
+1, 781959, 2756, 0xced9acf9
+0, 787500, 28800, 0x9a1ea54e
+1, 787584, 2756, 0x7d2e3ea1
+0, 793125, 28800, 0x551aab57
+1, 793208, 2756, 0x56c06897
+0, 798750, 28800, 0x3af8577d
+1, 798833, 2760, 0x19983bbf
+0, 804375, 28800, 0x10f76ed0
+1, 804465, 2756, 0x4f884f27
+0, 810000, 28800, 0x026a7fde
+1, 810090, 2756, 0x81ab2f63
+0, 815625, 28800, 0x3e0e8db8
+1, 815714, 2756, 0x448e681d
+0, 821250, 28800, 0x22998d2d
+1, 821339, 2756, 0x0ba9826e
+0, 826875, 28800, 0x05978b12
+1, 826963, 2756, 0x049f36fa
+0, 832500, 28800, 0x38b88294
+1, 832588, 2756, 0x096a2b62
+0, 838125, 28800, 0x2ef677d6
+1, 838212, 2760, 0x579e2035
+0, 843750, 28800, 0x0b9a8894
+1, 843845, 2756, 0xd13e30e1
+0, 849375, 28800, 0x2dcb6718
+1, 849469, 2756, 0x30b6412b
+0, 855000, 28800, 0xa31b6679
+1, 855094, 2756, 0xbb1c3268
+0, 860625, 28800, 0x262d6a50
+1, 860718, 2756, 0xbc175b6a
+0, 866250, 28800, 0xff3d6d0d
+1, 866343, 2756, 0xf8d160e2
+0, 871875, 28800, 0x159d7045
+1, 871967, 2756, 0xc1048154
+0, 877500, 28800, 0xf0df7800
+1, 877592, 2760, 0xb83548f4
+0, 883125, 28800, 0xbe825ea5
+1, 883224, 2756, 0x22647962
+0, 888750, 28800, 0x80e25d5a
+1, 888849, 2756, 0x14ca54d3
+0, 894375, 28800, 0x8cbe263f
+1, 894473, 2756, 0x58754b3a
diff --git a/tests/ref/fate/armovie-escape124 b/tests/ref/fate/armovie-escape124
new file mode 100644
index 0000000000..19e6795393
--- /dev/null
+++ b/tests/ref/fate/armovie-escape124
@@ -0,0 +1,104 @@
+0, 0, 230400, 0x5288d70f
+1, 0, 176400, 0xdd61578c
+0, 3600, 230400, 0x2d3c1066
+0, 7200, 230400, 0x89eb5b4a
+0, 10800, 230400, 0x24c2d2e7
+0, 14400, 230400, 0x9271cb38
+0, 18000, 230400, 0xc74a5009
+0, 21600, 230400, 0x61d70705
+0, 25200, 230400, 0x6bb2c252
+0, 28800, 230400, 0x6b3ac910
+0, 32400, 230400, 0x44071f28
+0, 36000, 230400, 0x8abd00fe
+0, 39600, 230400, 0xcbe3395d
+0, 43200, 230400, 0x603e7b7a
+0, 46800, 230400, 0x2ca8865b
+0, 50400, 230400, 0x11b4c665
+0, 54000, 230400, 0x3f19787c
+0, 57600, 230400, 0x651d24b6
+0, 61200, 230400, 0x325d05af
+0, 64800, 230400, 0x4f89d8a8
+0, 68400, 230400, 0xb07647f0
+0, 72000, 230400, 0x71141237
+0, 75600, 230400, 0xa848a2d2
+0, 79200, 230400, 0x3fbe4b58
+0, 82800, 230400, 0xa1e235a0
+0, 86400, 230400, 0x9bcf607a
+0, 90000, 230400, 0x3302e9eb
+1, 90000, 176400, 0x0b9e6d67
+0, 93600, 230400, 0xd731ba90
+0, 97200, 230400, 0x821eedcf
+0, 100800, 230400, 0xd068a93d
+0, 104400, 230400, 0x2811d46e
+0, 108000, 230400, 0xd9740446
+0, 111600, 230400, 0x1bce0df6
+0, 115200, 230400, 0x44bc60ad
+0, 118800, 230400, 0xf56f6200
+0, 122400, 230400, 0x874a2264
+0, 126000, 230400, 0xaa155c0e
+0, 129600, 230400, 0x595392d4
+0, 133200, 230400, 0x58dc57de
+0, 136800, 230400, 0x1c06733e
+0, 140400, 230400, 0x6807b1db
+0, 144000, 230400, 0x3fedff87
+0, 147600, 230400, 0x3e38cc13
+0, 151200, 230400, 0x6685ec35
+0, 154800, 230400, 0x6c0742fd
+0, 158400, 230400, 0x8108f83c
+0, 162000, 230400, 0xc0e217c8
+0, 165600, 230400, 0xb22ca65d
+0, 169200, 230400, 0xd54cec93
+0, 172800, 230400, 0xd9d61de3
+0, 176400, 230400, 0x7e0f9675
+0, 180000, 230400, 0x9869f5b7
+1, 180000, 176400, 0x2793fad7
+0, 183600, 230400, 0x22f33400
+0, 187200, 230400, 0x31b999bd
+0, 190800, 230400, 0x36c23878
+0, 194400, 230400, 0x06093a30
+0, 198000, 230400, 0x213f1718
+0, 201600, 230400, 0x83683006
+0, 205200, 230400, 0x0bfcec36
+0, 208800, 230400, 0x01b77825
+0, 212400, 230400, 0x650a5ea2
+0, 216000, 230400, 0xd8b2c559
+0, 219600, 230400, 0xb012eb10
+0, 223200, 230400, 0x135d53a4
+0, 226800, 230400, 0x98dd0712
+0, 230400, 230400, 0x75240ac0
+0, 234000, 230400, 0xa16769d5
+0, 237600, 230400, 0x3e08cda3
+0, 241200, 230400, 0xcd20d561
+0, 244800, 230400, 0x3531577d
+0, 248400, 230400, 0x65ff4c82
+0, 252000, 230400, 0x8fd4a580
+0, 255600, 230400, 0x3cf7af4c
+0, 259200, 230400, 0xda7a9202
+0, 262800, 230400, 0x4bebc138
+0, 266400, 230400, 0x5517e685
+0, 270000, 230400, 0x95f6c7a3
+1, 270000, 176400, 0xe2649a4a
+0, 273600, 230400, 0x9849ebf9
+0, 277200, 230400, 0xd77e1c7d
+0, 280800, 230400, 0x4dc6c923
+0, 284400, 230400, 0x7ce817c8
+0, 288000, 230400, 0xafb4acde
+0, 291600, 230400, 0xd0030b2c
+0, 295200, 230400, 0xb3acb77c
+0, 298800, 230400, 0x4d32b61c
+0, 302400, 230400, 0x2436a915
+0, 306000, 230400, 0xa6fd831f
+0, 309600, 230400, 0x6c6edfca
+0, 313200, 230400, 0x4b30d72e
+0, 316800, 230400, 0x59f46a8a
+0, 320400, 230400, 0xa2d0435f
+0, 324000, 230400, 0x463872c4
+0, 327600, 230400, 0x1d7e870a
+0, 331200, 230400, 0x74f4e530
+0, 334800, 230400, 0xbc61053d
+0, 338400, 230400, 0x5fb238dc
+0, 342000, 230400, 0x14a29d83
+0, 345600, 230400, 0x3fd1d09b
+0, 349200, 230400, 0x098afc13
+0, 352800, 230400, 0x9bd12a62
+0, 356400, 230400, 0x7bf71419
diff --git a/tests/ref/fate/auravision b/tests/ref/fate/auravision
new file mode 100644
index 0000000000..a7bccc0d2c
--- /dev/null
+++ b/tests/ref/fate/auravision
@@ -0,0 +1,24 @@
+0, 0, 28800, 0x4a4efbbc
+0, 6001, 28800, 0xc6c7e26a
+0, 12002, 28800, 0x6cd40913
+0, 18003, 28800, 0xa7b40fe9
+0, 24004, 28800, 0x5e77fcc6
+0, 30005, 28800, 0x9b3ef3f0
+0, 36006, 28800, 0xe7031845
+0, 42007, 28800, 0x2c15458d
+0, 48008, 28800, 0xbc3d4abf
+0, 54009, 28800, 0xf8755ac7
+0, 60010, 28800, 0x64d0405b
+0, 66011, 28800, 0x1e0c341d
+0, 72012, 28800, 0x05ca3c2b
+0, 78013, 28800, 0x28cb307f
+0, 84014, 28800, 0x3a9855af
+0, 90015, 28800, 0x92b63321
+0, 96016, 28800, 0x85585151
+0, 102017, 28800, 0x1ff01bf9
+0, 108018, 28800, 0x4bab200f
+0, 114019, 28800, 0xcf732ad7
+0, 120020, 28800, 0xced00cff
+0, 126021, 28800, 0xa69046fd
+0, 132022, 28800, 0x5aa341c3
+0, 138023, 28800, 0x87ef6219
diff --git a/tests/ref/fate/auravision-v2 b/tests/ref/fate/auravision-v2
new file mode 100644
index 0000000000..a4b6e82c6f
--- /dev/null
+++ b/tests/ref/fate/auravision-v2
@@ -0,0 +1,2 @@
+0, 0, 115200, 0x2f247f66
+0, 3000, 115200, 0xf492929e
diff --git a/tests/ref/fate/bethsoft-vid b/tests/ref/fate/bethsoft-vid
new file mode 100644
index 0000000000..4c252bdf10
--- /dev/null
+++ b/tests/ref/fate/bethsoft-vid
@@ -0,0 +1,141 @@
+1, 0, 1480, 0x00000000
+0, 0, 192000, 0x00000000
+0, 1500, 192000, 0x01a6cf45
+0, 3000, 192000, 0xd07d57e9
+0, 4500, 192000, 0x3cb1dff5
+1, 5994, 1480, 0x20a92bd4
+0, 6000, 192000, 0xd1aaa8fb
+0, 7500, 192000, 0x75f526cd
+0, 9000, 192000, 0x0f673577
+0, 10500, 192000, 0x897b6781
+1, 11988, 1850, 0xa9e48a74
+0, 12000, 192000, 0x81e6b7f7
+0, 13500, 192000, 0x1f45ce61
+0, 15000, 192000, 0x5a0772a6
+0, 16500, 192000, 0xf78732b3
+0, 18000, 192000, 0x8427f9e5
+1, 19481, 1480, 0x23ecd018
+0, 19500, 192000, 0x40473f11
+0, 21000, 192000, 0x173ceebe
+0, 22500, 192000, 0x136b9516
+0, 24000, 192000, 0x138d11ae
+1, 25475, 1480, 0x206bb915
+0, 25500, 192000, 0x063dbff3
+0, 27000, 192000, 0x5280852f
+0, 28500, 192000, 0x99943a8f
+0, 30000, 192000, 0x0330a728
+1, 31469, 1850, 0xb0e10e75
+0, 31500, 192000, 0x5d35467d
+0, 33000, 192000, 0xfd436343
+0, 34500, 192000, 0xc323fcfe
+0, 36000, 192000, 0x2a1530a0
+0, 37500, 192000, 0xbd43bb60
+1, 38961, 1480, 0x8d9baedd
+0, 39000, 192000, 0xa47f5eab
+0, 40500, 192000, 0xff17f5f7
+0, 42000, 192000, 0xb4140b55
+0, 43500, 192000, 0xb8782cc4
+1, 44955, 1480, 0xb802aae1
+0, 45000, 192000, 0x92975b8b
+0, 46500, 192000, 0xf42a64d6
+0, 48000, 192000, 0x2cc7077d
+0, 49500, 192000, 0x00080cc8
+1, 50950, 1480, 0xecd7b5cc
+0, 51000, 192000, 0x584b48f3
+0, 52500, 192000, 0xd68f57da
+0, 54000, 192000, 0x60158422
+0, 55500, 192000, 0xd7fb89e6
+1, 56944, 1850, 0x16861355
+0, 57000, 192000, 0x97f1c76a
+0, 58500, 192000, 0x46c4bb9e
+0, 60000, 192000, 0xd32f9b66
+0, 61500, 192000, 0x74f43886
+0, 63000, 192000, 0x3c4e47df
+1, 64436, 1480, 0xa51690bd
+0, 64500, 192000, 0xb5ac0a58
+0, 66000, 192000, 0xcc572b31
+0, 67500, 192000, 0xb1739d26
+0, 69000, 192000, 0x73da5473
+1, 70430, 1480, 0xdd0b90d1
+0, 70500, 192000, 0x5f79f5bc
+0, 72000, 192000, 0x0affc0a0
+0, 73500, 192000, 0x2b4d5c1c
+0, 75000, 192000, 0x309b41bc
+1, 76424, 1850, 0x3ce6e333
+0, 76500, 192000, 0xd42b6424
+0, 78000, 192000, 0x4795c948
+0, 79500, 192000, 0xbc1a3a8b
+0, 81000, 192000, 0x16529c5b
+0, 82500, 192000, 0x6b1b31ba
+1, 83917, 1480, 0xf8ce8ea3
+0, 84000, 192000, 0x569182ce
+0, 85500, 192000, 0xe6ea9866
+0, 87000, 192000, 0x102c6076
+0, 88500, 192000, 0xb29f527a
+1, 89911, 1480, 0xda4597af
+0, 90000, 192000, 0x040b4eee
+0, 91500, 192000, 0x92574f4a
+0, 93000, 192000, 0x1e8acdce
+0, 94500, 192000, 0x1becf516
+1, 95905, 1480, 0x918f7cb3
+0, 96000, 192000, 0xb62e9776
+0, 97500, 192000, 0xed37a08e
+0, 99000, 192000, 0xc0719912
+0, 100500, 192000, 0x24cf7a7e
+1, 101899, 1850, 0xca6edb15
+0, 102000, 192000, 0x0307f62f
+0, 103500, 192000, 0x79b7417b
+1, 109392, 1480, 0xba279597
+1, 115386, 1480, 0xc5a38a9e
+1, 121380, 1850, 0x8147eef5
+1, 128872, 1480, 0xce2c7cb5
+1, 134866, 1480, 0x4282819f
+1, 140860, 1480, 0xbdbb8da6
+1, 146854, 1850, 0xdbbeea10
+1, 154347, 1480, 0xbe6a77c2
+1, 160341, 1480, 0xa85c75b2
+1, 166335, 1850, 0xa45bde21
+1, 173828, 1480, 0x84aa7895
+1, 179822, 1480, 0x147f7d9f
+1, 185816, 1480, 0xc8e77b85
+1, 191810, 1850, 0x10d4d81b
+1, 199302, 1480, 0xb4ae8bb1
+1, 205297, 1480, 0x3ef782a5
+1, 211291, 1850, 0xdeebda14
+1, 218783, 1480, 0x4c7e7bbb
+1, 224777, 1480, 0x0e0e9198
+1, 230771, 1480, 0x5c1f819f
+1, 236765, 1850, 0x0e4cf6ff
+1, 244258, 1480, 0x374388a7
+1, 250252, 1480, 0xed729389
+1, 256246, 1850, 0xe0f1e43f
+1, 263739, 1480, 0x3b27839a
+1, 269733, 1480, 0xe6287e94
+1, 275727, 1480, 0x7e0d84b5
+1, 281721, 1850, 0xf08bebf7
+1, 289213, 1480, 0x94cf73a0
+1, 295207, 1480, 0xfef384ae
+1, 301202, 1850, 0x3b93e0f7
+1, 308694, 1480, 0x28d27bae
+1, 314688, 1480, 0x94d57da5
+1, 320682, 1480, 0xc9327db5
+1, 326676, 1850, 0xe781f604
+1, 334169, 1480, 0x752f8c5b
+1, 340163, 1480, 0x30068032
+1, 346157, 1850, 0x7895023e
+1, 353650, 1480, 0xa1e0a6e1
+1, 359644, 1480, 0x6af4b500
+1, 365638, 1480, 0xc26ea4c7
+1, 371632, 1850, 0x16a72419
+1, 379124, 1480, 0x1794aacc
+1, 385118, 1480, 0x2ecad8d0
+1, 391112, 1850, 0x2e645e07
+1, 398605, 1480, 0x1c54dfe7
+1, 404599, 1480, 0xbd35feec
+1, 410593, 1480, 0x419403d6
+1, 416587, 1850, 0x78699d2a
+1, 424080, 1480, 0x74ec68e0
+1, 430074, 1480, 0x76af64d9
+1, 436068, 1850, 0x5a303d1a
+1, 443560, 1074, 0x142ce7ba
+1, 447910, 1850, 0x7ff682f7
diff --git a/tests/ref/fate/bfi b/tests/ref/fate/bfi
new file mode 100644
index 0000000000..b0d853b98d
--- /dev/null
+++ b/tests/ref/fate/bfi
@@ -0,0 +1,114 @@
+1, 0, 17768, 0x07df135c
+0, 0, 134400, 0xc218b00c
+0, 10000, 134400, 0x114daf7c
+0, 20000, 134400, 0xe14db24c
+0, 30000, 134400, 0x88c71df7
+0, 40000, 134400, 0xc98c09fc
+0, 50000, 134400, 0xf7c2e7a9
+0, 60000, 134400, 0xf54f304f
+0, 70000, 134400, 0x67370fdd
+1, 72522, 2220, 0x44953646
+0, 80000, 134400, 0xe70f43cd
+1, 81584, 2220, 0x256b3329
+0, 90000, 134400, 0xad74c06f
+1, 90645, 2222, 0x344d20c6
+1, 99714, 2220, 0xd8ee20db
+0, 100000, 134400, 0xef42fdf2
+1, 108776, 2222, 0x46d70aa2
+0, 110000, 134400, 0xa14cc4b8
+1, 117845, 2220, 0xbe0a2213
+0, 120000, 134400, 0xc6e57381
+1, 126906, 2222, 0x4ee0fd07
+0, 130000, 134400, 0x74b4804b
+1, 135976, 2220, 0x709dfe87
+0, 140000, 134400, 0xe0863d6f
+1, 145037, 2222, 0xbb382521
+0, 150000, 134400, 0x90b6d03c
+1, 154106, 2220, 0x6dba1d2d
+0, 160000, 134400, 0x3d0409fd
+1, 163167, 2222, 0xbc4cdd6d
+0, 170000, 134400, 0xc02e09a4
+1, 172237, 2220, 0x54340d2c
+0, 180000, 134400, 0xa3515997
+1, 181298, 2220, 0x8925d335
+0, 190000, 134400, 0xc0fda122
+1, 190359, 2222, 0xa39bd15f
+1, 199429, 2220, 0x6875f632
+0, 200000, 134400, 0x5380d707
+1, 208490, 2222, 0xda46be57
+0, 210000, 134400, 0xcc19c085
+1, 217559, 2220, 0xd591eb44
+0, 220000, 134400, 0x8041e977
+1, 226620, 2222, 0x33afd17f
+0, 230000, 134400, 0xb96b2bea
+1, 235690, 2220, 0xd97be03b
+0, 240000, 134400, 0xcc977ca7
+1, 244751, 2222, 0x3b71e82e
+0, 250000, 134400, 0xe37abb34
+1, 253820, 2220, 0x95fbec2b
+0, 260000, 134400, 0xce488baa
+1, 262882, 2220, 0xae3a1c1e
+0, 270000, 134400, 0xa0734e8a
+1, 271943, 2222, 0x46cd0973
+0, 280000, 134400, 0x6b5ce0b0
+1, 281012, 2220, 0x7b28f3f6
+0, 290000, 134400, 0xf207f938
+1, 290073, 2222, 0xa2a5bc47
+1, 299143, 2220, 0x4727df63
+0, 300000, 134400, 0xe10060f8
+1, 308204, 2222, 0xdf53f4e2
+0, 310000, 134400, 0xaebe6b37
+1, 317273, 2220, 0x469c1e8f
+0, 320000, 134400, 0x08ea5c75
+1, 326335, 2222, 0x3c541799
+0, 330000, 134400, 0x05c6b514
+1, 335404, 2220, 0xc8d21fee
+0, 340000, 134400, 0x68cb3703
+1, 344465, 2222, 0x5f52126f
+0, 350000, 134400, 0x48867fd0
+1, 353535, 2220, 0x06a9ff18
+0, 360000, 134400, 0xc53eda30
+1, 362596, 2220, 0x84f9aa2b
+0, 370000, 134400, 0x0c1b198d
+1, 371657, 2222, 0xe0518c83
+0, 380000, 134400, 0xc8ac5bc8
+1, 380727, 2220, 0xc85ee26c
+1, 389788, 2222, 0xda23fd2d
+0, 390000, 134400, 0x9e35240d
+1, 398857, 2220, 0x7ee2e818
+0, 400000, 134400, 0x885d142f
+1, 407918, 2222, 0x45eb0465
+0, 410000, 134400, 0x207cb4ac
+1, 416988, 2220, 0xf3e90549
+0, 420000, 134400, 0x0abe748b
+1, 426049, 2222, 0x17aacf3d
+0, 430000, 134400, 0xf13e991b
+1, 435118, 2220, 0x6cb7e325
+0, 440000, 134400, 0x2544248d
+1, 444180, 2220, 0x20164553
+0, 450000, 134400, 0x5444bb22
+1, 453241, 2222, 0x00000000
+0, 460000, 134400, 0xc5a8f55a
+1, 462310, 2220, 0x00000000
+0, 470000, 134400, 0xe6006820
+1, 471371, 2222, 0x00000000
+0, 480000, 134400, 0x2a34239d
+1, 480441, 2220, 0x00000000
+1, 489502, 2222, 0x00000000
+0, 490000, 134400, 0x26deac5b
+1, 498571, 2220, 0x00000000
+0, 500000, 134400, 0x82c2c0a9
+1, 507633, 2222, 0x00000000
+0, 510000, 134400, 0xcdd8daba
+1, 516702, 2450, 0x00000000
+0, 520000, 134400, 0x5a1a2105
+1, 526702, 2450, 0x00000000
+0, 530000, 134400, 0x2ad43604
+1, 536702, 2450, 0x00000000
+0, 540000, 134400, 0xa9b58f35
+1, 546702, 2450, 0x00000000
+0, 550000, 134400, 0x0e37a7a8
+1, 556702, 2450, 0x00000000
+0, 560000, 134400, 0xd288eef7
+1, 566702, 2450, 0x00000000
+1, 576702, 2450, 0x00000000
diff --git a/tests/ref/fate/bink-demux b/tests/ref/fate/bink-demux
new file mode 100644
index 0000000000..b721f0d60f
--- /dev/null
+++ b/tests/ref/fate/bink-demux
@@ -0,0 +1 @@
+CRC=0x839f34e6
diff --git a/tests/ref/fate/bink-demux-video b/tests/ref/fate/bink-demux-video
new file mode 100644
index 0000000000..22fb3c5a20
--- /dev/null
+++ b/tests/ref/fate/bink-demux-video
@@ -0,0 +1,20 @@
+0, 0, 460800, 0xb06f7841
+0, 6000, 460800, 0x7ed06412
+0, 12000, 460800, 0xe82b5c3d
+0, 18000, 460800, 0x67284940
+0, 24000, 460800, 0x17e2c544
+0, 30000, 460800, 0x5dc65d36
+0, 36000, 460800, 0x7de63f90
+0, 42000, 460800, 0x15c8cf7d
+0, 48000, 460800, 0xbffe4047
+0, 54000, 460800, 0xcabcc150
+0, 60000, 460800, 0xe8a17ebe
+0, 66000, 460800, 0x27e94c03
+0, 72000, 460800, 0x71c0f48e
+0, 78000, 460800, 0x5fc8f783
+0, 84000, 460800, 0xd23d336a
+0, 90000, 460800, 0xa7aca9e0
+0, 96000, 460800, 0x1dff2144
+0, 102000, 460800, 0x82cf8b2b
+0, 108000, 460800, 0x4cbe3544
+0, 114000, 460800, 0x7e724731
diff --git a/tests/ref/fate/caf b/tests/ref/fate/caf
new file mode 100644
index 0000000000..a400501e68
--- /dev/null
+++ b/tests/ref/fate/caf
@@ -0,0 +1 @@
+CRC=0x5b74195c
diff --git a/tests/ref/fate/cdgraphics b/tests/ref/fate/cdgraphics
new file mode 100644
index 0000000000..0f9e74eec8
--- /dev/null
+++ b/tests/ref/fate/cdgraphics
@@ -0,0 +1,299 @@
+0, 0, 194400, 0xd919c635
+0, 300, 194400, 0xd919c635
+0, 600, 194400, 0x516a1007
+0, 900, 194400, 0x516a1007
+0, 1200, 194400, 0x516a1007
+0, 1500, 194400, 0x516a1007
+0, 1800, 194400, 0x516a1007
+0, 2100, 194400, 0x516a1007
+0, 2400, 194400, 0x516a1007
+0, 2700, 194400, 0x516a1007
+0, 3000, 194400, 0x516a1007
+0, 3300, 194400, 0x516a1007
+0, 3600, 194400, 0x516a1007
+0, 3900, 194400, 0x516a1007
+0, 4200, 194400, 0x516a1007
+0, 4500, 194400, 0x516a1007
+0, 4800, 194400, 0x46ad80da
+0, 5100, 194400, 0x46ad80da
+0, 5400, 194400, 0x46ad80da
+0, 5700, 194400, 0x46ad80da
+0, 6000, 194400, 0x46ad80da
+0, 6300, 194400, 0x46ad80da
+0, 6600, 194400, 0x46ad80da
+0, 6900, 194400, 0x46ad80da
+0, 7200, 194400, 0x46ad80da
+0, 7500, 194400, 0x46ad80da
+0, 7800, 194400, 0x46ad80da
+0, 8100, 194400, 0x46ad80da
+0, 8400, 194400, 0x46ad80da
+0, 8700, 194400, 0x46ad80da
+0, 9000, 194400, 0x46ad80da
+0, 9300, 194400, 0x46ad80da
+0, 9600, 194400, 0x9392c3b9
+0, 9900, 194400, 0x9ff8cbb1
+0, 10200, 194400, 0xd015dba1
+0, 10500, 194400, 0x6a39f18b
+0, 10800, 194400, 0x7b8cf983
+0, 11100, 194400, 0x07a20f7c
+0, 11400, 194400, 0xa63e2962
+0, 11700, 194400, 0xa63e2962
+0, 12000, 194400, 0x2dd54447
+0, 12300, 194400, 0x90735e2d
+0, 12600, 194400, 0x90735e2d
+0, 12900, 194400, 0x90d98506
+0, 13200, 194400, 0xe5b08ffb
+0, 13500, 194400, 0xe5b08ffb
+0, 13800, 194400, 0x7a0d95f5
+0, 14100, 194400, 0xff6bacde
+0, 14400, 194400, 0xff6bacde
+0, 14700, 194400, 0xd998c2c8
+0, 15000, 194400, 0x3d1ddfab
+0, 15300, 194400, 0x3d1ddfab
+0, 15600, 194400, 0x817de4a6
+0, 15900, 194400, 0xfa3ef694
+0, 16200, 194400, 0xfa3ef694
+0, 16500, 194400, 0x0b5bfb8f
+0, 16800, 194400, 0x00f62376
+0, 17100, 194400, 0x00f62376
+0, 17400, 194400, 0x2f6b2d6c
+0, 17700, 194400, 0x40cb4752
+0, 18000, 194400, 0x40cb4752
+0, 18300, 194400, 0xd8456435
+0, 18600, 194400, 0x459f6a2f
+0, 18900, 194400, 0x459f6a2f
+0, 19200, 194400, 0x9b678910
+0, 19500, 194400, 0x8791a1f7
+0, 19800, 194400, 0x8791a1f7
+0, 20100, 194400, 0xdb4ac5d3
+0, 20400, 194400, 0xb223c8d0
+0, 20700, 194400, 0xb223c8d0
+0, 21000, 194400, 0x4a9ce7b1
+0, 21300, 194400, 0x187eeaae
+0, 21600, 194400, 0x187eeaae
+0, 21900, 194400, 0xc712f8a0
+0, 22200, 194400, 0x549c00a7
+0, 22500, 194400, 0x549c00a7
+0, 22800, 194400, 0x4d991295
+0, 23100, 194400, 0xc41b2681
+0, 23400, 194400, 0xc41b2681
+0, 23700, 194400, 0xed5a3077
+0, 24000, 194400, 0x85ad4463
+0, 24300, 194400, 0x85ad4463
+0, 24600, 194400, 0xb98f4760
+0, 24900, 194400, 0x87ef5e49
+0, 25200, 194400, 0x87ef5e49
+0, 25500, 194400, 0x830a6146
+0, 25800, 194400, 0xe33a792e
+0, 26100, 194400, 0xe33a792e
+0, 26400, 194400, 0x83517a2d
+0, 26700, 194400, 0xa97e9314
+0, 27000, 194400, 0xa97e9314
+0, 27300, 194400, 0x39059611
+0, 27600, 194400, 0xbf4eb9ed
+0, 27900, 194400, 0xbf4eb9ed
+0, 28200, 194400, 0xe5afc4e2
+0, 28500, 194400, 0x35d4cdd9
+0, 28800, 194400, 0x35d4cdd9
+0, 29100, 194400, 0xb376e1c5
+0, 29400, 194400, 0x6128e3c3
+0, 29700, 194400, 0x6128e3c3
+0, 30000, 194400, 0x30b7f7af
+0, 30300, 194400, 0xf1effaac
+0, 30600, 194400, 0xf1effaac
+0, 30900, 194400, 0x483914a1
+0, 31200, 194400, 0xbd48199c
+0, 31500, 194400, 0xbd48199c
+0, 31800, 194400, 0x382f2d88
+0, 32100, 194400, 0x5a573085
+0, 32400, 194400, 0x5a573085
+0, 32700, 194400, 0x89733580
+0, 33000, 194400, 0xd1325a5b
+0, 33300, 194400, 0xd1325a5b
+0, 33600, 194400, 0x655b6253
+0, 33900, 194400, 0x55146352
+0, 34200, 194400, 0x55146352
+0, 34500, 194400, 0xda527c39
+0, 34800, 194400, 0xb0cd7e37
+0, 35100, 194400, 0xb0cd7e37
+0, 35400, 194400, 0x25e7991c
+0, 35700, 194400, 0x5c22a411
+0, 36000, 194400, 0x5c22a411
+0, 36300, 194400, 0x1e2abdf7
+0, 36600, 194400, 0x8308bff5
+0, 36900, 194400, 0x8308bff5
+0, 37200, 194400, 0xfdbfd6de
+0, 37500, 194400, 0xd4d4d9db
+0, 37800, 194400, 0xd4d4d9db
+0, 38100, 194400, 0xa449fbb9
+0, 38400, 194400, 0x3dcafdb7
+0, 38700, 194400, 0x3dcafdb7
+0, 39000, 194400, 0x6f1f01c2
+0, 39300, 194400, 0xf54a1da6
+0, 39600, 194400, 0xf54a1da6
+0, 39900, 194400, 0x88d11fa4
+0, 40200, 194400, 0x59642d96
+0, 40500, 194400, 0x59642d96
+0, 40800, 194400, 0x8ba44182
+0, 41100, 194400, 0x88f56360
+0, 41400, 194400, 0x88f56360
+0, 41700, 194400, 0xfb246d56
+0, 42000, 194400, 0xad128043
+0, 42300, 194400, 0xad128043
+0, 42600, 194400, 0x3a4f8a39
+0, 42900, 194400, 0x563d9d26
+0, 43200, 194400, 0x563d9d26
+0, 43500, 194400, 0x6ff8a320
+0, 43800, 194400, 0xcdb9b70c
+0, 44100, 194400, 0xcdb9b70c
+0, 44400, 194400, 0x99c2bd06
+0, 44700, 194400, 0x4b47cef4
+0, 45000, 194400, 0x4b47cef4
+0, 45300, 194400, 0x10b9dce6
+0, 45600, 194400, 0xdd39f1d1
+0, 45900, 194400, 0xdd39f1d1
+0, 46200, 194400, 0xbcf104cd
+0, 46500, 194400, 0x85ec17ba
+0, 46800, 194400, 0x85ec17ba
+0, 47100, 194400, 0x069219b8
+0, 47400, 194400, 0x84dd3899
+0, 47700, 194400, 0x84dd3899
+0, 48000, 194400, 0xacca4190
+0, 48300, 194400, 0xcf5b5d74
+0, 48600, 194400, 0xcf5b5d74
+0, 48900, 194400, 0x4b8c626f
+0, 49200, 194400, 0xf0817958
+0, 49500, 194400, 0xf0817958
+0, 49800, 194400, 0xc0887e53
+0, 50100, 194400, 0x42e6854c
+0, 50400, 194400, 0x42e6854c
+0, 50700, 194400, 0x036c9140
+0, 51000, 194400, 0x0f21a62b
+0, 51300, 194400, 0x0f21a62b
+0, 51600, 194400, 0xcdaeaa27
+0, 51900, 194400, 0xe425bc15
+0, 52200, 194400, 0xe425bc15
+0, 52500, 194400, 0x8e18c20f
+0, 52800, 194400, 0x767cd5fb
+0, 53100, 194400, 0x767cd5fb
+0, 53400, 194400, 0x554ae6ea
+0, 53700, 194400, 0xeac1f9d7
+0, 54000, 194400, 0xeac1f9d7
+0, 54300, 194400, 0x0b32fed2
+0, 54600, 194400, 0xe30c19c6
+0, 54900, 194400, 0xe30c19c6
+0, 55200, 194400, 0x6a8a23bc
+0, 55500, 194400, 0x26bf36a9
+0, 55800, 194400, 0x26bf36a9
+0, 56100, 194400, 0x1e4f3fa0
+0, 56400, 194400, 0x231f5986
+0, 56700, 194400, 0x231f5986
+0, 57000, 194400, 0xf557756a
+0, 57300, 194400, 0x6bce805f
+0, 57600, 194400, 0x6bce805f
+0, 57900, 194400, 0xcd80924d
+0, 58200, 194400, 0x65dc9f40
+0, 58500, 194400, 0x65dc9f40
+0, 58800, 194400, 0x2ab7af30
+0, 59100, 194400, 0xd43cb728
+0, 59400, 194400, 0xd43cb728
+0, 59700, 194400, 0x05d9c916
+0, 60000, 194400, 0x43cad10e
+0, 60300, 194400, 0x43cad10e
+0, 60600, 194400, 0x06b5e0fe
+0, 60900, 194400, 0xa142f0ee
+0, 61200, 194400, 0xa142f0ee
+0, 61500, 194400, 0xed7f03ea
+0, 61800, 194400, 0xf26019d4
+0, 62100, 194400, 0xf26019d4
+0, 62400, 194400, 0x3b7f29c4
+0, 62700, 194400, 0x30282ebf
+0, 63000, 194400, 0x30282ebf
+0, 63300, 194400, 0xaeff4aa3
+0, 63600, 194400, 0x1d355697
+0, 63900, 194400, 0x1d355697
+0, 64200, 194400, 0x2ead6f7e
+0, 64500, 194400, 0xf1b67776
+0, 64800, 194400, 0xf1b67776
+0, 65100, 194400, 0x93b38b62
+0, 65400, 194400, 0x9469905d
+0, 65700, 194400, 0x9469905d
+0, 66000, 194400, 0x27bf9756
+0, 66300, 194400, 0xd016a548
+0, 66600, 194400, 0xd016a548
+0, 66900, 194400, 0x6889b835
+0, 67200, 194400, 0x6a05be2f
+0, 67500, 194400, 0x6a05be2f
+0, 67800, 194400, 0xe0a1ce1f
+0, 68100, 194400, 0x8fdbd617
+0, 68400, 194400, 0x8fdbd617
+0, 68700, 194400, 0xd68fe805
+0, 69000, 194400, 0x0d1dfbf1
+0, 69300, 194400, 0x0d1dfbf1
+0, 69600, 194400, 0x0fe70bf0
+0, 69900, 194400, 0x0a8f13e8
+0, 70200, 194400, 0x0a8f13e8
+0, 70500, 194400, 0x0ca42bd0
+0, 70800, 194400, 0x6f3838c3
+0, 71100, 194400, 0x6f3838c3
+0, 71400, 194400, 0x045448b3
+0, 71700, 194400, 0x764349b2
+0, 72000, 194400, 0x764349b2
+0, 72300, 194400, 0xed1651aa
+0, 72600, 194400, 0xbb376398
+0, 72900, 194400, 0xbb376398
+0, 73200, 194400, 0xd0d5718a
+0, 73500, 194400, 0xcd977e7d
+0, 73800, 194400, 0xcd977e7d
+0, 74100, 194400, 0x8cb39665
+0, 74400, 194400, 0xb935b04b
+0, 74700, 194400, 0xb935b04b
+0, 75000, 194400, 0x0292be3d
+0, 75300, 194400, 0x4f21c833
+0, 75600, 194400, 0x4f21c833
+0, 75900, 194400, 0xa5c7d823
+0, 76200, 194400, 0xfb8ee01b
+0, 76500, 194400, 0xfb8ee01b
+0, 76800, 194400, 0xea53ee0d
+0, 77100, 194400, 0x803efcfe
+0, 77400, 194400, 0x803efcfe
+0, 77700, 194400, 0x2c0e0aff
+0, 78000, 194400, 0x3df318f1
+0, 78300, 194400, 0x3df318f1
+0, 78600, 194400, 0xc4cb26e3
+0, 78900, 194400, 0x92a033d6
+0, 79200, 194400, 0x92a033d6
+0, 79500, 194400, 0x1b2048c1
+0, 79800, 194400, 0x236858b1
+0, 80100, 194400, 0x236858b1
+0, 80400, 194400, 0x482f6d9c
+0, 80700, 194400, 0x9ee97891
+0, 81000, 194400, 0x9ee97891
+0, 81300, 194400, 0xe0dc8683
+0, 81600, 194400, 0x461b9079
+0, 81900, 194400, 0x461b9079
+0, 82200, 194400, 0xd346a960
+0, 82500, 194400, 0xa384b554
+0, 82800, 194400, 0xa384b554
+0, 83100, 194400, 0x3246cf3a
+0, 83400, 194400, 0xa53fe722
+0, 83700, 194400, 0xa53fe722
+0, 84000, 194400, 0xe620fd0c
+0, 84300, 194400, 0xd6370414
+0, 84600, 194400, 0xd6370414
+0, 84900, 194400, 0xf57f1404
+0, 85200, 194400, 0x8c6420f7
+0, 85500, 194400, 0x8c6420f7
+0, 85800, 194400, 0xd4be3add
+0, 86100, 194400, 0xa8dc4ec9
+0, 86400, 194400, 0xa8dc4ec9
+0, 86700, 194400, 0xda1563b4
+0, 87000, 194400, 0xd51873a4
+0, 87300, 194400, 0xd51873a4
+0, 87600, 194400, 0x68588196
+0, 87900, 194400, 0x40d18e89
+0, 88200, 194400, 0x40d18e89
+0, 88500, 194400, 0x1b75a275
+0, 88800, 194400, 0xedd1a572
+0, 89100, 194400, 0xedd1a572
+0, 89400, 194400, 0x55daad6a
diff --git a/tests/ref/fate/cljr b/tests/ref/fate/cljr
new file mode 100644
index 0000000000..7221b9e4e6
--- /dev/null
+++ b/tests/ref/fate/cljr
@@ -0,0 +1,36 @@
+0, 0, 64800, 0x44a1c47c
+0, 3169, 64800, 0x649cc3a4
+0, 6338, 64800, 0xcab1b88c
+0, 9507, 64800, 0xf56cb788
+0, 12676, 64800, 0x5336b618
+0, 15845, 64800, 0x2704b438
+0, 19013, 64800, 0x04c7b8e4
+0, 22182, 64800, 0x3185b288
+0, 25351, 64800, 0xa537c410
+0, 28520, 64800, 0x6495c0f8
+0, 31689, 64800, 0x06a1ca14
+0, 34858, 64800, 0x69cdd2a0
+0, 38027, 64800, 0x4ad2d828
+0, 41196, 64800, 0x9604dea4
+0, 44365, 64800, 0x1c00e430
+0, 47534, 64800, 0x9afeefe0
+0, 50702, 64800, 0xc13fdd78
+0, 53871, 64800, 0x8438da7c
+0, 57040, 64800, 0xa0ead278
+0, 60209, 64800, 0xbeced2d8
+0, 63378, 64800, 0x85bbd7dc
+0, 66547, 64800, 0xbe59ce34
+0, 69716, 64800, 0xd76ecccc
+0, 72885, 64800, 0xe182b474
+0, 76054, 64800, 0x916cc394
+0, 79223, 64800, 0x7efebd14
+0, 82391, 64800, 0x8d28c9f0
+0, 85560, 64800, 0x00a1c960
+0, 88729, 64800, 0xc164c400
+0, 91898, 64800, 0xfd4dc544
+0, 95067, 64800, 0x01bfbe38
+0, 98236, 64800, 0xff11b5d0
+0, 101405, 64800, 0x4876bb20
+0, 104574, 64800, 0x756ecb04
+0, 107743, 64800, 0x3b8cd540
+0, 110912, 64800, 0x063ed444
diff --git a/tests/ref/fate/corepng b/tests/ref/fate/corepng
new file mode 100644
index 0000000000..7b01e7ab27
--- /dev/null
+++ b/tests/ref/fate/corepng
@@ -0,0 +1,37 @@
+1, 0, 11026, 0x27ad637c
+0, 0, 230400, 0x03e25ead
+0, 6000, 230400, 0x0a520ffd
+0, 12000, 230400, 0x0b11a671
+0, 18000, 230400, 0x7d3fce32
+0, 24000, 230400, 0x1edb18cc
+0, 30000, 230400, 0x1d470493
+0, 36000, 230400, 0xe53ba01d
+0, 42000, 230400, 0xc4df13c2
+1, 45004, 1470, 0x4af4b7a3
+0, 48000, 230400, 0x5febe6c9
+1, 51004, 1470, 0x2601fc3b
+0, 54000, 230400, 0xb0de2ed9
+1, 57004, 1470, 0xd94ec488
+0, 60000, 230400, 0x4991ee21
+1, 63004, 1470, 0x5ffb6bdd
+0, 66000, 230400, 0x6b367a75
+1, 69004, 1470, 0xc5fece50
+0, 72000, 230400, 0x1d406b55
+1, 75004, 1470, 0xf4988a98
+0, 78000, 230400, 0x2bbbf1d3
+1, 81004, 1470, 0xa839620f
+0, 84000, 230400, 0x2a5ee265
+1, 87004, 1470, 0x800a77ff
+0, 90000, 230400, 0x0ae9de8d
+1, 93004, 1470, 0x8fc8a729
+0, 96000, 230400, 0x567eabf8
+1, 99004, 1470, 0x78708001
+0, 102000, 230400, 0x00260e67
+1, 105004, 1470, 0xb601958b
+1, 111004, 1470, 0xb054d1d3
+1, 117004, 1470, 0xce18bb41
+1, 123004, 1470, 0x43d182f9
+1, 129004, 1470, 0xe9448449
+1, 135004, 1470, 0x175ea4b3
+1, 141004, 1470, 0xf96b0e6a
+1, 147004, 1470, 0x12cc42fb
diff --git a/tests/ref/fate/creative-adpcm b/tests/ref/fate/creative-adpcm
new file mode 100644
index 0000000000..039ca3ab67
--- /dev/null
+++ b/tests/ref/fate/creative-adpcm
@@ -0,0 +1 @@
+66004779a5e51ca659b21a4197e019e6
diff --git a/tests/ref/fate/creative-adpcm-8-2.6bit b/tests/ref/fate/creative-adpcm-8-2.6bit
new file mode 100644
index 0000000000..835760448b
--- /dev/null
+++ b/tests/ref/fate/creative-adpcm-8-2.6bit
@@ -0,0 +1 @@
+dee4417597abc2db70a175d6809870e7
diff --git a/tests/ref/fate/creative-adpcm-8-2bit b/tests/ref/fate/creative-adpcm-8-2bit
new file mode 100644
index 0000000000..4166846dcb
--- /dev/null
+++ b/tests/ref/fate/creative-adpcm-8-2bit
@@ -0,0 +1 @@
+832846066fbce28821b7f0717c4d3a90
diff --git a/tests/ref/fate/creative-adpcm-8-4bit b/tests/ref/fate/creative-adpcm-8-4bit
new file mode 100644
index 0000000000..2d579aa91b
--- /dev/null
+++ b/tests/ref/fate/creative-adpcm-8-4bit
@@ -0,0 +1 @@
+1813d196cef83f7030bb150399b2903e
diff --git a/tests/ref/fate/creatureshock-avs b/tests/ref/fate/creatureshock-avs
new file mode 100644
index 0000000000..54ed2f807f
--- /dev/null
+++ b/tests/ref/fate/creatureshock-avs
@@ -0,0 +1,92 @@
+1, 0, 16372, 0xfaaab59d
+0, 0, 188892, 0xcb5be3dd
+0, 6000, 188892, 0x0f313ebc
+0, 12000, 188892, 0xc0da25cc
+0, 18000, 188892, 0xad6e1d44
+0, 24000, 188892, 0xb1103b40
+0, 30000, 188892, 0xae033450
+1, 33154, 4028, 0xc2daed72
+0, 36000, 188892, 0xb31f03b4
+1, 41310, 5486, 0xf7fd794d
+0, 42000, 188892, 0xacb2d3f9
+0, 48000, 188892, 0x7d77ecbd
+1, 52420, 5790, 0xfd5a369f
+0, 54000, 188892, 0x7faa2f6c
+0, 60000, 188892, 0x28f4fdf1
+1, 64145, 1068, 0x0b602cd0
+0, 66000, 188892, 0x4b53f3b9
+1, 66307, 4908, 0xfe870aad
+0, 72000, 188892, 0x1f09bb29
+1, 76246, 6062, 0x8a4d6e0f
+0, 78000, 188892, 0x3afcc11d
+0, 84000, 188892, 0x6b918e49
+1, 88522, 5402, 0x71fd352f
+0, 90000, 188892, 0x9630a04d
+0, 96000, 188892, 0x9381b4c1
+1, 99461, 544, 0xeb766d34
+1, 100563, 5906, 0x47ac7e08
+0, 102000, 188892, 0xa7dea7e5
+0, 108000, 188892, 0xd277c41d
+1, 112522, 5916, 0x0d26eb56
+0, 114000, 188892, 0xafa2a6c9
+0, 120000, 188892, 0x13a38839
+1, 124502, 4006, 0x9941c71a
+0, 126000, 188892, 0xcd5e5a6d
+0, 132000, 188892, 0xe7da71e9
+1, 132615, 2100, 0xc9a2ee36
+1, 136867, 5894, 0xd2ba4eaa
+0, 138000, 188892, 0x06928add
+0, 144000, 188892, 0x4a108eb9
+1, 148803, 6090, 0xf43e73d0
+0, 150000, 188892, 0xea2598f5
+0, 156000, 188892, 0x17ed6839
+1, 161135, 2288, 0x5a8b7aa0
+0, 162000, 188892, 0x9de6ab65
+1, 165768, 3850, 0x7f66eb2c
+0, 168000, 188892, 0xb4ee326f
+1, 173564, 5796, 0xc5cf3ee8
+0, 174000, 188892, 0x3f85095b
+0, 180000, 188892, 0xaab7e331
+1, 185302, 6042, 0xed80136d
+0, 186000, 188892, 0xc2a079e1
+0, 192000, 188892, 0x612080c2
+1, 197537, 684, 0xc42bd137
+0, 198000, 188892, 0xa7232d47
+1, 198922, 5436, 0xb7f8a6fd
+0, 204000, 188892, 0xc053297d
+1, 209930, 6098, 0xee6354a2
+0, 210000, 188892, 0x1ecc3bfe
+0, 216000, 188892, 0xcc4ac803
+0, 222000, 188892, 0x4b90047b
+1, 222278, 4838, 0x129e61d0
+0, 228000, 188892, 0xd863b643
+1, 232075, 1074, 0x9da90634
+0, 234000, 188892, 0x93a25fb1
+1, 234250, 6084, 0x8ffed952
+0, 240000, 188892, 0xf969e131
+0, 246000, 188892, 0x73bd2469
+1, 246571, 6038, 0xa07b4276
+0, 252000, 188892, 0x265a9ce2
+0, 258000, 188892, 0xd59ccd39
+1, 258798, 3176, 0xebef63c1
+0, 264000, 188892, 0xe50fc068
+1, 265229, 2794, 0xbe1000db
+0, 270000, 188892, 0x83113a86
+1, 270887, 6020, 0xd8e34961
+0, 276000, 188892, 0xa0203504
+0, 282000, 188892, 0x9e2d518c
+1, 283078, 6020, 0xc07cf461
+0, 288000, 188892, 0x5f610e66
+0, 294000, 188892, 0x9b77f900
+1, 295268, 1538, 0xc975ae02
+1, 298383, 4230, 0x0827111b
+0, 300000, 188892, 0xaaf279c2
+0, 306000, 188892, 0x4ac97cc2
+1, 306949, 6084, 0x2cf0a407
+0, 312000, 188892, 0xddd91642
+0, 318000, 188892, 0x4f32dcd1
+1, 319269, 5828, 0x12750279
+0, 324000, 188892, 0xdc126b42
+0, 330000, 188892, 0x00000000
+1, 331071, 230, 0xc9c03f3b
+1, 331536, 768, 0x6137a04d
diff --git a/tests/ref/fate/cryo-apc b/tests/ref/fate/cryo-apc
new file mode 100644
index 0000000000..16e1dd6a95
--- /dev/null
+++ b/tests/ref/fate/cryo-apc
@@ -0,0 +1 @@
+6dcee91d3364f389f804da7a25934b36
diff --git a/tests/ref/fate/cscd b/tests/ref/fate/cscd
new file mode 100644
index 0000000000..75a7725c18
--- /dev/null
+++ b/tests/ref/fate/cscd
@@ -0,0 +1,208 @@
+0, 0, 270000, 0xf90015d8
+0, 2880, 270000, 0xf90015d8
+0, 5760, 270000, 0xf90015d8
+0, 8640, 270000, 0xf90015d8
+0, 11520, 270000, 0xf90015d8
+0, 14400, 270000, 0xf90015d8
+0, 17280, 270000, 0xf90015d8
+0, 20160, 270000, 0xf90015d8
+0, 23040, 270000, 0xf90015d8
+0, 25920, 270000, 0xf90015d8
+0, 28800, 270000, 0xf90015d8
+0, 31680, 270000, 0xf90015d8
+0, 34560, 270000, 0xf90015d8
+0, 37440, 270000, 0xf90015d8
+0, 40320, 270000, 0xf90015d8
+0, 43200, 270000, 0xf90015d8
+0, 46080, 270000, 0xf90015d8
+0, 48960, 270000, 0xf90015d8
+0, 51840, 270000, 0xf90015d8
+0, 54720, 270000, 0xf90015d8
+0, 57600, 270000, 0xf90015d8
+0, 60480, 270000, 0xf90015d8
+0, 63360, 270000, 0xf90015d8
+0, 66240, 270000, 0xf90015d8
+0, 69120, 270000, 0xf90015d8
+0, 72000, 270000, 0xf90015d8
+0, 74880, 270000, 0xf90015d8
+0, 77760, 270000, 0xf90015d8
+0, 80640, 270000, 0xf90015d8
+0, 83520, 270000, 0xf90015d8
+0, 86400, 270000, 0xf90015d8
+0, 89280, 270000, 0xf90015d8
+0, 92160, 270000, 0xf90015d8
+0, 95040, 270000, 0xf90015d8
+0, 97920, 270000, 0xf90015d8
+0, 100800, 270000, 0xf90015d8
+0, 103680, 270000, 0xf90015d8
+0, 106560, 270000, 0xf90015d8
+0, 109440, 270000, 0xf90015d8
+0, 112320, 270000, 0x1f9c15d8
+0, 115200, 270000, 0x436f15d8
+0, 118080, 270000, 0xe90115d8
+0, 120960, 270000, 0xe90115d8
+0, 123840, 270000, 0x8ea215d8
+0, 126720, 270000, 0x424015d8
+0, 129600, 270000, 0x0ce315d8
+0, 132480, 270000, 0x14bc15d8
+0, 135360, 270000, 0x2a9215d8
+0, 138240, 270000, 0x233f15d8
+0, 141120, 270000, 0x764b15d8
+0, 144000, 270000, 0xf76115d8
+0, 146880, 270000, 0xbbe015d8
+0, 149760, 270000, 0x95af15d8
+0, 152640, 270000, 0x324815d8
+0, 155520, 270000, 0x311915d8
+0, 158400, 270000, 0x090ef191
+0, 161280, 270000, 0xd88974dc
+0, 164160, 270000, 0xfa7f58df
+0, 167040, 270000, 0x78f849c3
+0, 169920, 270000, 0xae174892
+0, 172800, 270000, 0x9d4e2332
+0, 175680, 270000, 0x874b09b4
+0, 178560, 270000, 0x4069fed6
+0, 181440, 270000, 0x4069fed6
+0, 184320, 270000, 0x4069fed6
+0, 187200, 270000, 0x4069fed6
+0, 190080, 270000, 0x4069fed6
+0, 192960, 270000, 0x4069fed6
+0, 195840, 270000, 0x4069fed6
+0, 198720, 270000, 0x4069fed6
+0, 201600, 270000, 0x4069fed6
+0, 204480, 270000, 0x4069fed6
+0, 207360, 270000, 0x4069fed6
+0, 210240, 270000, 0x773db046
+0, 213120, 270000, 0x773db046
+0, 216000, 270000, 0x773db046
+0, 218880, 270000, 0x773db046
+0, 221760, 270000, 0x773db046
+0, 224640, 270000, 0x773db046
+0, 227520, 270000, 0x773db046
+0, 230400, 270000, 0x773db046
+0, 233280, 270000, 0x773db046
+0, 236160, 270000, 0x773db046
+0, 239040, 270000, 0x773db046
+0, 241920, 270000, 0x773db046
+0, 244800, 270000, 0x773db046
+0, 247680, 270000, 0x773db046
+0, 250560, 270000, 0x773db046
+0, 253440, 270000, 0x773db046
+0, 256320, 270000, 0x773db046
+0, 259200, 270000, 0x17b9aec9
+0, 262080, 270000, 0x622fad4c
+0, 264960, 270000, 0xdaea3aef
+0, 267840, 270000, 0x61bb10e3
+0, 270720, 270000, 0xfc37ee0c
+0, 273600, 270000, 0x50dbd01e
+0, 276480, 270000, 0xcd66c27c
+0, 279360, 270000, 0xd13f1e4f
+0, 282240, 270000, 0xa4a2dbf5
+0, 285120, 270000, 0xf302c9ab
+0, 288000, 270000, 0x4479f7fe
+0, 290880, 270000, 0x1afe92c8
+0, 293760, 270000, 0x3007f4c3
+0, 296640, 270000, 0x5834c096
+0, 299520, 270000, 0x40109126
+0, 302400, 270000, 0x0a7b8882
+0, 305280, 270000, 0x15b8635d
+0, 308160, 270000, 0xeaa5598e
+0, 311040, 270000, 0x0b7b5489
+0, 313920, 270000, 0x0b7b5489
+0, 316800, 270000, 0x0b7b5489
+0, 319680, 270000, 0x0b7b5489
+0, 322560, 270000, 0x8f0e6eaa
+0, 325440, 270000, 0xc46fc0f2
+0, 328320, 270000, 0xadd7e605
+0, 331200, 270000, 0x9d23a056
+0, 334080, 270000, 0x365afa63
+0, 336960, 270000, 0x6ac3bda2
+0, 339840, 270000, 0x14f5daf2
+0, 342720, 270000, 0x4b3afb6a
+0, 345600, 270000, 0x1a3302e3
+0, 348480, 270000, 0x1a3302e3
+0, 351360, 270000, 0x1a3302e3
+0, 354240, 270000, 0x1a3302e3
+0, 357120, 270000, 0xc15526e2
+0, 360000, 270000, 0x3dd73006
+0, 362880, 270000, 0x60abb5bc
+0, 365760, 270000, 0xb960c27c
+0, 368640, 270000, 0x8fa4c01c
+0, 371520, 270000, 0x8fa4c01c
+0, 374400, 270000, 0x8fa4c01c
+0, 377280, 270000, 0xb20dcc38
+0, 380160, 270000, 0x03c6ad3c
+0, 383040, 270000, 0xe550b194
+0, 385920, 270000, 0xe550b194
+0, 388800, 270000, 0xe550b194
+0, 391680, 270000, 0xe550b194
+0, 394560, 270000, 0xe550b194
+0, 397440, 270000, 0xe550b194
+0, 400320, 270000, 0xe550b194
+0, 403200, 270000, 0xe550b194
+0, 406080, 270000, 0xe550b194
+0, 408960, 270000, 0xe550b194
+0, 411840, 270000, 0xe550b194
+0, 414720, 270000, 0xe550b194
+0, 417600, 270000, 0xe550b194
+0, 420480, 270000, 0xe550b194
+0, 423360, 270000, 0x4550a014
+0, 426240, 270000, 0xaf639da8
+0, 429120, 270000, 0xe4229da8
+0, 432000, 270000, 0x315d9da8
+0, 434880, 270000, 0x7e899da8
+0, 437760, 270000, 0x99b9a8a0
+0, 440640, 270000, 0x4588ac2a
+0, 443520, 270000, 0x1e79ae6e
+0, 446400, 270000, 0xa003cb14
+0, 449280, 270000, 0x03ef1bb8
+0, 452160, 270000, 0x3b3f30fc
+0, 455040, 270000, 0x4dad3525
+0, 457920, 270000, 0x5b600c12
+0, 460800, 270000, 0x75a1fab3
+0, 463680, 270000, 0xc9f7d9ad
+0, 466560, 270000, 0x9eaec58d
+0, 469440, 270000, 0xb91bc3e8
+0, 472320, 270000, 0x77bdbbfb
+0, 475200, 270000, 0x77bdbbfb
+0, 478080, 270000, 0x77bdbbfb
+0, 480960, 270000, 0x77bdbbfb
+0, 483840, 270000, 0x77bdbbfb
+0, 486720, 270000, 0x77bdbbfb
+0, 489600, 270000, 0x3d54eac2
+0, 492480, 270000, 0x3d54eac2
+0, 495360, 270000, 0x3d54eac2
+0, 498240, 270000, 0x3d54eac2
+0, 501120, 270000, 0x3d54eac2
+0, 504000, 270000, 0x3d54eac2
+0, 506880, 270000, 0x3d54eac2
+0, 509760, 270000, 0x3d54eac2
+0, 512640, 270000, 0x3d54eac2
+0, 515520, 270000, 0x3d54eac2
+0, 518400, 270000, 0x3d54eac2
+0, 521280, 270000, 0x3d54eac2
+0, 524160, 270000, 0x3d54eac2
+0, 527040, 270000, 0x3d54eac2
+0, 529920, 270000, 0x3d54eac2
+0, 532800, 270000, 0x3d54eac2
+0, 535680, 270000, 0x3d54eac2
+0, 538560, 270000, 0x3d54eac2
+0, 541440, 270000, 0x3d54eac2
+0, 544320, 270000, 0x5f3609ba
+0, 547200, 270000, 0x80921b0c
+0, 550080, 270000, 0x80921b0c
+0, 552960, 270000, 0x80921b0c
+0, 555840, 270000, 0x80921b0c
+0, 558720, 270000, 0x80921b0c
+0, 561600, 270000, 0x80921b0c
+0, 564480, 270000, 0x80921b0c
+0, 567360, 270000, 0x80921b0c
+0, 570240, 270000, 0x80921b0c
+0, 573120, 270000, 0x80921b0c
+0, 576000, 270000, 0x80921b0c
+0, 578880, 270000, 0x80921b0c
+0, 581760, 270000, 0x80921b0c
+0, 584640, 270000, 0x80921b0c
+0, 587520, 270000, 0x80921b0c
+0, 590400, 270000, 0x80921b0c
+0, 593280, 270000, 0xf0e626a8
+0, 596160, 270000, 0xf0e626a8
diff --git a/tests/ref/fate/cvid b/tests/ref/fate/cvid
new file mode 100644
index 0000000000..d7ebe1193d
--- /dev/null
+++ b/tests/ref/fate/cvid
@@ -0,0 +1,78 @@
+0, 0, 112400, 0x829180d8
+0, 7500, 112400, 0xdbebac5b
+0, 15000, 112400, 0xc5adc0f7
+0, 22500, 112400, 0xbe1fc030
+0, 30000, 112400, 0xe08ab460
+0, 37500, 112400, 0xfde0dbc5
+0, 45000, 112400, 0xed9242b0
+0, 52500, 112400, 0x1ae3933a
+0, 60000, 112400, 0xc82d2f5b
+0, 67500, 112400, 0xbae9ddfc
+0, 75000, 112400, 0xa350a1f7
+0, 82500, 112400, 0x3cf78029
+0, 90000, 112400, 0xaa0b82bf
+0, 97500, 112400, 0x71aa4794
+0, 105000, 112400, 0x2fe57373
+0, 112500, 112400, 0x429c6f82
+0, 120000, 112400, 0xfb2d917d
+0, 127500, 112400, 0xcc84cb9a
+0, 135000, 112400, 0xc68f0613
+0, 142500, 112400, 0x05f30e6a
+0, 150000, 112400, 0x5c5d853d
+0, 157500, 112400, 0x01e0aff2
+0, 165000, 112400, 0xc3b2cf4a
+0, 172500, 112400, 0xc0a3cf19
+0, 180000, 112400, 0xc743abda
+0, 187500, 112400, 0x54bd17a2
+0, 195000, 112400, 0x616ef28d
+0, 202500, 112400, 0x04b51f59
+0, 210000, 112400, 0x857511a2
+0, 217500, 112400, 0x25c62440
+0, 225000, 112400, 0x8c78198d
+0, 232500, 112400, 0xc046c912
+0, 240000, 112400, 0x0d828630
+0, 247500, 112400, 0x48999b80
+0, 255000, 112400, 0x9a869e77
+0, 262500, 112400, 0x16d893df
+0, 270000, 112400, 0xf6b86132
+0, 277500, 112400, 0xfa564ea4
+0, 285000, 112400, 0xdd473f69
+0, 292500, 112400, 0xf89625a6
+0, 300000, 112400, 0x823a58aa
+0, 307500, 112400, 0x25e0fe43
+0, 315000, 112400, 0x41034522
+0, 322500, 112400, 0xb8da4f00
+0, 330000, 112400, 0x9f684fce
+0, 337500, 112400, 0xf7188710
+0, 345000, 112400, 0x428fbfc6
+0, 352500, 112400, 0x535bace0
+0, 360000, 112400, 0x23216059
+0, 367500, 112400, 0x9b8bbfa6
+0, 375000, 112400, 0x932be522
+0, 382500, 112400, 0xdbd31409
+0, 390000, 112400, 0x0a69bf18
+0, 397500, 112400, 0xa15ef128
+0, 405000, 112400, 0x49a1fa92
+0, 412500, 112400, 0xadeeaf62
+0, 420000, 112400, 0xc1ce636e
+0, 427500, 112400, 0x5ca544eb
+0, 435000, 112400, 0x07230a36
+0, 442500, 112400, 0x12ae2b53
+0, 450000, 112400, 0x62453ef6
+0, 457500, 112400, 0xe0588a98
+0, 465000, 112400, 0xacd3927a
+0, 472500, 112400, 0x5d3c6b01
+0, 480000, 112400, 0xda671808
+0, 487500, 112400, 0x61d0b492
+0, 495000, 112400, 0x068b1293
+0, 502500, 112400, 0x75b99287
+0, 510000, 112400, 0xe657e7d6
+0, 517500, 112400, 0x17873df6
+0, 525000, 112400, 0xa8db5e31
+0, 532500, 112400, 0x4f633b8e
+0, 540000, 112400, 0x22266252
+0, 547500, 112400, 0x308a6282
+0, 555000, 112400, 0xfdb356ce
+0, 562500, 112400, 0xe4394f1f
+0, 570000, 112400, 0x8ca8649f
+0, 577500, 112400, 0x804d44eb
diff --git a/tests/ref/fate/cvid-palette b/tests/ref/fate/cvid-palette
new file mode 100644
index 0000000000..6f6ba112a1
--- /dev/null
+++ b/tests/ref/fate/cvid-palette
@@ -0,0 +1,56 @@
+0, 0, 57600, 0x1f5c89b7
+0, 6006, 57600, 0xd2055aaf
+0, 12012, 57600, 0x22336052
+0, 18018, 57600, 0xf7135e2a
+0, 24024, 57600, 0xd9de126a
+0, 30030, 57600, 0xe5a9e1de
+0, 36036, 57600, 0x253f1702
+0, 42042, 57600, 0xcb8679c9
+0, 48048, 57600, 0x96cb5fa8
+0, 54054, 57600, 0xbe03528a
+0, 60060, 57600, 0x120a097d
+0, 66066, 57600, 0xaf562041
+0, 72072, 57600, 0x15b2d8c9
+0, 78078, 57600, 0x95f60e58
+0, 84084, 57600, 0x5ace5a6b
+0, 90090, 57600, 0x2f80b8e3
+0, 96096, 57600, 0x5c49c915
+0, 102102, 57600, 0xb91efe60
+0, 108108, 57600, 0xa80d29e8
+0, 114114, 57600, 0x6e72d03a
+0, 120120, 57600, 0x4f716a9e
+0, 126126, 57600, 0x3a43b9c9
+0, 132132, 57600, 0x65002db3
+0, 138138, 57600, 0x70edc765
+0, 144144, 57600, 0x9dc54abd
+0, 150150, 57600, 0xd17bda86
+0, 156156, 57600, 0xc5d2d458
+0, 162162, 57600, 0x32313c79
+0, 168168, 57600, 0x2e537e8d
+0, 174174, 57600, 0xe77d5d9e
+0, 180180, 57600, 0x9cc2599a
+0, 186186, 57600, 0x8a9be76e
+0, 192192, 57600, 0x47447eef
+0, 198198, 57600, 0xbf5f84fa
+0, 204204, 57600, 0xacd49c07
+0, 210210, 57600, 0xdc628975
+0, 216216, 57600, 0x97d7964e
+0, 222222, 57600, 0xd0a19b6b
+0, 228228, 57600, 0x5ea3d78c
+0, 234234, 57600, 0x39b59be0
+0, 240240, 57600, 0x6501a2d2
+0, 246246, 57600, 0x0ee7e36d
+0, 252252, 57600, 0x354ddd1d
+0, 258258, 57600, 0x9b8f22d3
+0, 264264, 57600, 0x0aadfb8c
+0, 270270, 57600, 0x322e2785
+0, 276276, 57600, 0x78a6467e
+0, 282282, 57600, 0x1757f3b1
+0, 288288, 57600, 0xe874ceb7
+0, 294294, 57600, 0xc40f9e4d
+0, 300300, 57600, 0x89f6a735
+0, 306306, 57600, 0xe3635393
+0, 312312, 57600, 0xdae585c7
+0, 318318, 57600, 0xf99baa60
+0, 324324, 57600, 0x28a8b1ee
+0, 330330, 57600, 0xcd5587f8
diff --git a/tests/ref/fate/cyberia-c93 b/tests/ref/fate/cyberia-c93
new file mode 100644
index 0000000000..a0dacb7653
--- /dev/null
+++ b/tests/ref/fate/cyberia-c93
@@ -0,0 +1,42 @@
+0, 0, 184320, 0x8433f0f8
+1, 0, 28368, 0xaacc96a5
+0, 7200, 184320, 0xd0d480f7
+0, 14400, 184320, 0xaec85413
+0, 21600, 184320, 0x29d134dc
+0, 28800, 184320, 0xeac07175
+0, 36000, 184320, 0x21426b49
+0, 43200, 184320, 0xe500a37d
+0, 50400, 184320, 0x1d9cae21
+0, 57600, 184320, 0xda65309d
+0, 64800, 184320, 0xb64c331d
+0, 72000, 184320, 0xcb832741
+1, 79147, 28368, 0x6d1099bd
+0, 79200, 184320, 0xe573b565
+0, 86400, 184320, 0xa40c92d1
+0, 93600, 184320, 0x6d04ea3f
+0, 100800, 184320, 0xc438ae56
+0, 108000, 184320, 0xc6405523
+0, 115200, 184320, 0xaefef0b3
+0, 122400, 184320, 0x3e4526c6
+0, 129600, 184320, 0x2b164323
+0, 136800, 184320, 0x89b22193
+0, 144000, 184320, 0x3b73611b
+0, 151200, 184320, 0x42b33583
+1, 158294, 28368, 0x93033ae1
+0, 158400, 184320, 0x43e79dff
+0, 165600, 184320, 0xe389a377
+0, 172800, 184320, 0x09cb65f0
+0, 180000, 184320, 0x64b27755
+0, 187200, 184320, 0xdd25d6c6
+0, 194400, 184320, 0x082a80c9
+0, 201600, 184320, 0x41a8d7f4
+0, 208800, 184320, 0x6227d8d4
+0, 216000, 184320, 0x54975910
+0, 223200, 184320, 0xf4857db9
+0, 230400, 184320, 0x82d18161
+1, 237441, 28368, 0x9101e519
+0, 237600, 184320, 0x06d93bd0
+0, 244800, 184320, 0xa4304c00
+0, 252000, 184320, 0x5f77d9cd
+0, 259200, 184320, 0x95cb84e9
+0, 266400, 184320, 0x7c979475
diff --git a/tests/ref/fate/cyuv b/tests/ref/fate/cyuv
new file mode 100644
index 0000000000..f71232316b
--- /dev/null
+++ b/tests/ref/fate/cyuv
@@ -0,0 +1,150 @@
+0, 0, 38016, 0x501e6abe
+0, 3000, 38016, 0x84976f13
+0, 6000, 38016, 0x8c487acb
+0, 9000, 38016, 0x70998800
+0, 12000, 38016, 0x51ac9416
+0, 15000, 38016, 0xd1da94b7
+0, 18000, 38016, 0x52d691e8
+0, 21000, 38016, 0x3ca3907a
+0, 24000, 38016, 0x5f62929f
+0, 27000, 38016, 0x81ec98ac
+0, 30000, 38016, 0x72499f12
+0, 33000, 38016, 0x7598a716
+0, 36000, 38016, 0x38ada96f
+0, 39000, 38016, 0x78c8a727
+0, 42000, 38016, 0xe2d79d2d
+0, 45000, 38016, 0x84a2925a
+0, 48000, 38016, 0x131b8d70
+0, 50999, 38016, 0x32a78242
+0, 53999, 38016, 0x29f583e5
+0, 56999, 38016, 0x4a7f7305
+0, 59999, 38016, 0x80885f56
+0, 62999, 38016, 0xa73c4f61
+0, 65999, 38016, 0xe54d422b
+0, 68999, 38016, 0xa8c03188
+0, 71999, 38016, 0xa02a294e
+0, 74999, 38016, 0xc84e2366
+0, 77999, 38016, 0xe21112ca
+0, 80999, 38016, 0x3e450594
+0, 83999, 38016, 0x2499017c
+0, 86999, 38016, 0xecb1effa
+0, 89999, 38016, 0xa0f8eb28
+0, 92999, 38016, 0xa396e800
+0, 95999, 38016, 0xae1be010
+0, 98999, 38016, 0x4b41dff5
+0, 101999, 38016, 0x9172e319
+0, 104999, 38016, 0xb82ee262
+0, 107999, 38016, 0x151de59f
+0, 110999, 38016, 0x799deabd
+0, 113999, 38016, 0x008dee95
+0, 116999, 38016, 0x5ad502ce
+0, 119999, 38016, 0xdeb321f1
+0, 122999, 38016, 0x82734a09
+0, 125999, 38016, 0x1ccb6ddd
+0, 128999, 38016, 0x266584f0
+0, 131999, 38016, 0x46349e73
+0, 134999, 38016, 0x0b8cac83
+0, 137999, 38016, 0x7bcd9f49
+0, 140999, 38016, 0x4f5d7521
+0, 143999, 38016, 0x7709250c
+0, 146999, 38016, 0xf8eef5ad
+0, 149999, 38016, 0x2c5d28e3
+0, 152998, 38016, 0xdb116d69
+0, 155998, 38016, 0xb66c39d6
+0, 158998, 38016, 0xacecc966
+0, 161998, 38016, 0xaffd76af
+0, 164998, 38016, 0xd2b05d04
+0, 167998, 38016, 0x4d18582a
+0, 170998, 38016, 0x23635ca7
+0, 173998, 38016, 0x7ccc58f1
+0, 176998, 38016, 0xce9a4cc6
+0, 179998, 38016, 0xbeb259d3
+0, 182998, 38016, 0x0b28714c
+0, 185998, 38016, 0x642a8fdd
+0, 188998, 38016, 0x937bb589
+0, 191998, 38016, 0x1a48c407
+0, 194998, 38016, 0x8b44cd79
+0, 197998, 38016, 0xf35cde31
+0, 200998, 38016, 0xfc05fad9
+0, 203998, 38016, 0x44102111
+0, 206998, 38016, 0x832f5041
+0, 209998, 38016, 0x41177c71
+0, 212998, 38016, 0x723b88b5
+0, 215998, 38016, 0x05548f81
+0, 218998, 38016, 0xd9dd7995
+0, 221998, 38016, 0xed0d6226
+0, 224998, 38016, 0x458b5ce2
+0, 227998, 38016, 0xc7ef69af
+0, 230998, 38016, 0x936a7022
+0, 233998, 38016, 0x7a446c3d
+0, 236998, 38016, 0x9b2b73ee
+0, 239998, 38016, 0xa47779cd
+0, 242998, 38016, 0x7be47981
+0, 245998, 38016, 0x5d1778ac
+0, 248998, 38016, 0xf1f578fc
+0, 251997, 38016, 0x865b7edf
+0, 254997, 38016, 0x0a208252
+0, 257997, 38016, 0x22f07570
+0, 260997, 38016, 0x93036cef
+0, 263997, 38016, 0xa04b6120
+0, 266997, 38016, 0x80b249fe
+0, 269997, 38016, 0x5fe5317e
+0, 272997, 38016, 0x75bd0770
+0, 275997, 38016, 0x0607da6e
+0, 278997, 38016, 0x11cbb3a7
+0, 281997, 38016, 0xbb8b9335
+0, 284997, 38016, 0xa2bc75d9
+0, 287997, 38016, 0x58c160dd
+0, 290997, 38016, 0x742b55dc
+0, 293997, 38016, 0x62b24540
+0, 296997, 38016, 0x14f4381b
+0, 299997, 38016, 0x6494334d
+0, 302997, 38016, 0xb3772676
+0, 305997, 38016, 0x0c312715
+0, 308997, 38016, 0x8b401fc9
+0, 311997, 38016, 0xa851125a
+0, 314997, 38016, 0x3171092b
+0, 317997, 38016, 0x5c3603aa
+0, 320997, 38016, 0xab56fc95
+0, 323997, 38016, 0x5c76fcb5
+0, 326997, 38016, 0xbf13f3b4
+0, 329997, 38016, 0xbdb5ed1b
+0, 332997, 38016, 0xb511ea7c
+0, 335997, 38016, 0xec84df90
+0, 338997, 38016, 0x69aed672
+0, 341997, 38016, 0x72a6d334
+0, 344997, 38016, 0x7ec5c6a7
+0, 347997, 38016, 0x837abc3e
+0, 350996, 38016, 0x5ef7be01
+0, 353996, 38016, 0x173bb950
+0, 356996, 38016, 0xf572ab31
+0, 359996, 38016, 0xe704a2d9
+0, 362996, 38016, 0x26359bb5
+0, 365996, 38016, 0x00868e2d
+0, 368996, 38016, 0x72ef879e
+0, 371996, 38016, 0x510b7b07
+0, 374996, 38016, 0x947876ff
+0, 377996, 38016, 0x934073a7
+0, 380996, 38016, 0xf7c36a15
+0, 383996, 38016, 0xbcc86424
+0, 386996, 38016, 0x55b65fb0
+0, 389996, 38016, 0x6c4b5c4e
+0, 392996, 38016, 0xb315557a
+0, 395996, 38016, 0x154f503e
+0, 398996, 38016, 0x7abd44da
+0, 401996, 38016, 0x291940c6
+0, 404996, 38016, 0xc2264202
+0, 407996, 38016, 0xbd703e12
+0, 410996, 38016, 0x39193a9c
+0, 413996, 38016, 0x086637de
+0, 416996, 38016, 0x494c3be2
+0, 419996, 38016, 0x2d523e06
+0, 422996, 38016, 0x3843448a
+0, 425996, 38016, 0x307f4bd3
+0, 428996, 38016, 0xee074e3f
+0, 431996, 38016, 0x760d534a
+0, 434996, 38016, 0xbfa251cc
+0, 437996, 38016, 0x49094e22
+0, 440996, 38016, 0xda6a4f16
+0, 443996, 38016, 0xa3304fd5
+0, 446996, 38016, 0x99995068
diff --git a/tests/ref/fate/d-cinema-demux b/tests/ref/fate/d-cinema-demux
new file mode 100644
index 0000000000..169f54fb30
--- /dev/null
+++ b/tests/ref/fate/d-cinema-demux
@@ -0,0 +1,4 @@
+0, 0, 36000, 0xd592781d
+0, 1875, 36000, 0xd592781d
+0, 3750, 36000, 0xd592781d
+0, 5625, 23056, 0xde81f0d6
diff --git a/tests/ref/fate/delphine-cin b/tests/ref/fate/delphine-cin
new file mode 100644
index 0000000000..c8894d1771
--- /dev/null
+++ b/tests/ref/fate/delphine-cin
@@ -0,0 +1,183 @@
+0, 0, 153600, 0x00000000
+1, 0, 176448, 0x541ddc55
+0, 7500, 153600, 0x9c77862c
+0, 15000, 153600, 0xd487c33c
+0, 22500, 153600, 0x5c00c01c
+0, 30000, 153600, 0x5496c2a2
+0, 37500, 153600, 0x858ac5c0
+0, 45000, 153600, 0xe32fc7d9
+0, 52500, 153600, 0xabffc965
+0, 60000, 153600, 0x4171c8e7
+0, 67500, 153600, 0xaec4ca90
+0, 75000, 153600, 0x3cb4cb5d
+0, 82500, 153600, 0x3aedcdc0
+0, 90000, 153600, 0x0fa4cf55
+0, 97500, 153600, 0x66a1d146
+0, 105000, 153600, 0x3828d3ad
+0, 112500, 153600, 0x73ccd7a4
+0, 120000, 153600, 0xb815d983
+0, 127500, 153600, 0x11a5a54f
+0, 135000, 153600, 0x337d8bff
+0, 142500, 153600, 0x0a1c8e5c
+0, 150000, 153600, 0x09648a57
+0, 157500, 153600, 0xf7398ba4
+0, 165000, 153600, 0x836d8aaf
+0, 172500, 153600, 0x4ee385bf
+0, 180000, 153600, 0xacf2c4d6
+0, 187500, 153600, 0x0610f426
+0, 195000, 153600, 0xb798e4a1
+0, 202500, 153600, 0xdaabe17e
+0, 210000, 153600, 0x7b82def5
+0, 217500, 153600, 0x56afe483
+0, 225000, 153600, 0x4640acef
+0, 232500, 153600, 0x4415f46c
+0, 240000, 153600, 0x258d01d0
+0, 247500, 153600, 0x18a55ba1
+0, 255000, 153600, 0x165a7173
+0, 262500, 153600, 0xfa8a438b
+0, 270000, 153600, 0x57083a34
+0, 277500, 153600, 0xb39923cd
+0, 285000, 153600, 0x3e32fd70
+0, 292500, 153600, 0xa7e9eb7f
+0, 300000, 153600, 0x8c20ed88
+0, 307500, 153600, 0x8c9bed27
+0, 315000, 153600, 0xc79af188
+0, 322500, 153600, 0x3bda00c8
+0, 330000, 153600, 0x03f837a7
+0, 337500, 153600, 0x550b83e3
+0, 345000, 153600, 0xc0bc6080
+0, 352500, 153600, 0xb8d968ed
+0, 360000, 153600, 0x893e2348
+1, 360098, 3676, 0xaf455081
+0, 367500, 153600, 0x6cd01834
+1, 367600, 3676, 0x27ef4e91
+0, 375000, 153600, 0x9e6926c5
+1, 375102, 3676, 0xd1d986a3
+0, 382500, 153600, 0x4b57a4ea
+1, 382604, 3676, 0xaaa2b589
+0, 390000, 153600, 0xaab2cfcd
+1, 390106, 3676, 0x6e794ff9
+0, 397500, 153600, 0xffbb334d
+1, 397608, 3676, 0x266351f1
+0, 405000, 153600, 0x4b37e5a9
+1, 405110, 3676, 0xdeae50b2
+0, 412500, 153600, 0x3486dee0
+1, 412612, 3676, 0x90f1f96a
+0, 420000, 153600, 0xa7185454
+1, 420114, 3676, 0xea07adf9
+0, 427500, 153600, 0xec29b8c2
+1, 427616, 3676, 0xb80a8925
+0, 435000, 153600, 0x01e562ba
+1, 435118, 3676, 0xc392a1da
+0, 442500, 153600, 0xe695cda3
+1, 442620, 3676, 0xa076bdda
+0, 450000, 153600, 0xf6b59dac
+1, 450122, 3676, 0x8f40b4cc
+0, 457500, 153600, 0xb308206b
+1, 457624, 3676, 0x4227fe30
+0, 465000, 153600, 0xcc6ede4a
+1, 465127, 3676, 0x82b31ec8
+0, 472500, 153600, 0xd9f8071c
+1, 472629, 3676, 0x3ba04042
+0, 480000, 153600, 0xfb434821
+1, 480131, 3676, 0x6fe7440a
+0, 487500, 153600, 0x84c97077
+1, 487633, 3676, 0x23e33177
+0, 495000, 153600, 0x82dc5217
+1, 495135, 3676, 0x1f14242c
+0, 502500, 153600, 0xdbfd0ba8
+1, 502637, 3676, 0x72931fb0
+0, 510000, 153600, 0x3d71058e
+1, 510139, 3676, 0x2b1351c2
+0, 517500, 153600, 0x3027b928
+1, 517641, 3676, 0x6aee7070
+0, 525000, 153600, 0x792ae3bd
+1, 525143, 3676, 0x237658fa
+0, 532500, 153600, 0x36db00a7
+1, 532645, 3676, 0xac001143
+0, 540000, 153600, 0x4484e720
+1, 540147, 3676, 0x1921ee21
+0, 547500, 153600, 0xfaa76cdc
+1, 547649, 3676, 0x80186091
+0, 555000, 153600, 0x9f1e4c7e
+1, 555151, 3676, 0xb7f37ede
+0, 562500, 153600, 0x4b545d88
+1, 562653, 3676, 0x355227ef
+0, 570000, 153600, 0xa11cfd15
+1, 570155, 3676, 0xb0411f35
+0, 577500, 153600, 0x9f5d49c4
+1, 577657, 3676, 0xe7c4fe0e
+0, 585000, 153600, 0x7a496740
+1, 585159, 3676, 0x0425984d
+0, 592500, 153600, 0x98477803
+1, 592661, 3676, 0xfd59dea1
+0, 600000, 153600, 0xa5fc20f8
+1, 600163, 3676, 0xa53d5aab
+0, 607500, 153600, 0x344ff96e
+1, 607665, 3676, 0x8bc403c2
+0, 615000, 153600, 0x20c91746
+1, 615167, 3676, 0x7dd638c2
+0, 622500, 153600, 0x7c59b379
+1, 622669, 3676, 0x284913eb
+0, 630000, 153600, 0x38e3b86d
+1, 630171, 3676, 0xec17e83c
+0, 637500, 153600, 0xff25a440
+1, 637673, 3676, 0x40543463
+0, 645000, 153600, 0xa1f66533
+1, 645176, 3676, 0x92d81bf8
+0, 652500, 153600, 0xe136260a
+1, 652678, 3676, 0x44ef161d
+0, 660000, 153600, 0x048ccf56
+1, 660180, 3676, 0x499df3d5
+0, 667500, 153600, 0x65f68a24
+1, 667682, 3676, 0xf98f4d75
+0, 675000, 153600, 0xf32b385a
+1, 675184, 3676, 0x8ffe2681
+0, 682500, 153600, 0x3e930a8f
+1, 682686, 3676, 0x84093bfd
+1, 690188, 3676, 0x5f9c2e32
+1, 697690, 3676, 0x8f93c29b
+1, 705192, 3676, 0xf0ada687
+1, 712694, 3676, 0x30019db2
+1, 720196, 3676, 0x06ebace3
+1, 727698, 3676, 0xc293d944
+1, 735200, 3676, 0x789ff65e
+1, 742702, 3676, 0xa2ae13c1
+1, 750204, 3676, 0xb64f1cd9
+1, 757706, 3676, 0x18f4e36a
+1, 765208, 3676, 0xe9ccd0f0
+1, 772710, 3676, 0xc215b4ab
+1, 780212, 3676, 0x45b5c410
+1, 787714, 3676, 0xf84a9939
+1, 795216, 3676, 0xc8aff71e
+1, 802718, 3676, 0x76cc3afc
+1, 810220, 3676, 0x524e1dd6
+1, 817722, 3676, 0x115a3f10
+1, 825224, 3676, 0xd2bb51d1
+1, 832727, 3676, 0xe1dbfca5
+1, 840229, 3676, 0xc428f070
+1, 847731, 3676, 0x6aa4dddf
+1, 855233, 3676, 0xa0428f08
+1, 862735, 3676, 0x8fd7e256
+1, 870237, 3676, 0x41cb1787
+1, 877739, 3676, 0xe348568e
+1, 885241, 3676, 0x79091a0c
+1, 892743, 3676, 0x592f6f2e
+1, 900245, 3676, 0xa151448f
+1, 907747, 3676, 0xb3402e7a
+1, 915249, 3676, 0x74112e27
+1, 922751, 3676, 0xba090659
+1, 930253, 3676, 0xa0451f81
+1, 937755, 3676, 0x09c7393a
+1, 945257, 3676, 0xceb4e340
+1, 952759, 3676, 0x0440291a
+1, 960261, 3676, 0xb7b930c4
+1, 967763, 3676, 0x1a2afa4a
+1, 975265, 3676, 0x414fee56
+1, 982767, 3676, 0x5e26bc97
+1, 990269, 3676, 0x780e0481
+1, 997771, 3676, 0xb6dfb9c5
+1, 1005273, 3676, 0x447b36ca
+1, 1012776, 3676, 0x601c3067
+1, 1020278, 3676, 0x199f2f8d
+1, 1027780, 3676, 0x98645b08
diff --git a/tests/ref/fate/deluxepaint-anm b/tests/ref/fate/deluxepaint-anm
new file mode 100644
index 0000000000..2a60606611
--- /dev/null
+++ b/tests/ref/fate/deluxepaint-anm
@@ -0,0 +1,155 @@
+0, 0, 192000, 0x82a79641
+0, 3000, 192000, 0x43079971
+0, 6000, 192000, 0x6311f1e5
+0, 9000, 192000, 0x9e1ef4dc
+0, 12000, 192000, 0x6f81049b
+0, 15000, 192000, 0xe696fb12
+0, 18000, 192000, 0x1ef4d160
+0, 21000, 192000, 0x2f1bf0d4
+0, 24000, 192000, 0xcfed92da
+0, 27000, 192000, 0xbd409978
+0, 30000, 192000, 0x50f76f07
+0, 33000, 192000, 0xc8d52062
+0, 36000, 192000, 0x75061d0e
+0, 39000, 192000, 0x01b2a711
+0, 42000, 192000, 0x541ca739
+0, 45000, 192000, 0xe931ad85
+0, 48000, 192000, 0xb7e4d4a5
+0, 51000, 192000, 0xfc20d475
+0, 54000, 192000, 0x7a5eefe5
+0, 57000, 192000, 0x95a3ef97
+0, 60000, 192000, 0x021d7f69
+0, 63000, 192000, 0x108e7ed9
+0, 66000, 192000, 0x021d7f69
+0, 69000, 192000, 0x681817d8
+0, 72000, 192000, 0x653e19d2
+0, 75000, 192000, 0x56d9b14a
+0, 78000, 192000, 0x82240846
+0, 81000, 192000, 0xa2e90840
+0, 84000, 192000, 0x8e031416
+0, 87000, 192000, 0xe23813a6
+0, 90000, 192000, 0xb2451aa1
+0, 93000, 192000, 0x92eec7d2
+0, 96000, 192000, 0x6400c80e
+0, 99000, 192000, 0x24f01fce
+0, 102000, 192000, 0x7c1b201c
+0, 105000, 192000, 0xe2c878a1
+0, 108000, 192000, 0xf6006739
+0, 111000, 192000, 0x726b6677
+0, 114000, 192000, 0xca61a01d
+0, 117000, 192000, 0x87e49f69
+0, 120000, 192000, 0x57120bd4
+0, 123000, 192000, 0x50171c4b
+0, 126000, 192000, 0x8ace1c49
+0, 129000, 192000, 0x83082a8c
+0, 132000, 192000, 0x6e092b58
+0, 135000, 192000, 0x207a9af4
+0, 138000, 192000, 0xedf193f0
+0, 141000, 192000, 0x531793f0
+0, 144000, 192000, 0x24e2a406
+0, 147000, 192000, 0x6c34a1e5
+0, 150000, 192000, 0x8e7acdae
+0, 153000, 192000, 0x1f941805
+0, 156000, 192000, 0x0c391218
+0, 159000, 192000, 0xf25aa1fd
+0, 162000, 192000, 0xcb2aa40e
+0, 165000, 192000, 0x69701e49
+0, 168000, 192000, 0x0dd719d3
+0, 171000, 192000, 0x5ef71955
+0, 174000, 192000, 0xac2063ca
+0, 177000, 192000, 0xce7d601c
+0, 180000, 192000, 0x43003946
+0, 183000, 192000, 0xa72a38ee
+0, 186000, 192000, 0x98023933
+0, 189000, 192000, 0xa72a38ee
+0, 192000, 192000, 0x98023933
+0, 195000, 192000, 0xa72a38ee
+0, 198000, 192000, 0x98023933
+0, 201000, 192000, 0xa72a38ee
+0, 204000, 192000, 0xdd7f371d
+0, 207000, 192000, 0xeed134c6
+0, 210000, 192000, 0x362931f5
+0, 213000, 192000, 0x362931f5
+0, 216000, 192000, 0x362931f5
+0, 219000, 192000, 0x362931f5
+0, 222000, 192000, 0x362931f5
+0, 225000, 192000, 0x362931f5
+0, 228000, 192000, 0x362931f5
+0, 231000, 192000, 0x362931f5
+0, 234000, 192000, 0x362931f5
+0, 237000, 192000, 0x362931f5
+0, 240000, 192000, 0x362931f5
+0, 243000, 192000, 0x362931f5
+0, 246000, 192000, 0x362931f5
+0, 249000, 192000, 0x362931f5
+0, 252000, 192000, 0x362931f5
+0, 255000, 192000, 0x362931f5
+0, 258000, 192000, 0x362931f5
+0, 261000, 192000, 0x362931f5
+0, 264000, 192000, 0x362931f5
+0, 267000, 192000, 0x362931f5
+0, 270000, 192000, 0x362931f5
+0, 273000, 192000, 0x362931f5
+0, 276000, 192000, 0x362931f5
+0, 279000, 192000, 0x362931f5
+0, 282000, 192000, 0x362931f5
+0, 285000, 192000, 0x362931f5
+0, 288000, 192000, 0x362931f5
+0, 291000, 192000, 0x362931f5
+0, 294000, 192000, 0x362931f5
+0, 297000, 192000, 0x362931f5
+0, 300000, 192000, 0x362931f5
+0, 303000, 192000, 0x362931f5
+0, 306000, 192000, 0x362931f5
+0, 309000, 192000, 0xfb41331d
+0, 312000, 192000, 0x087433f8
+0, 315000, 192000, 0xf36b34a6
+0, 318000, 192000, 0x652a33cd
+0, 321000, 192000, 0x652a33cd
+0, 324000, 192000, 0xe50c336a
+0, 327000, 192000, 0x652a33cd
+0, 330000, 192000, 0xeed134c6
+0, 333000, 192000, 0x652a33cd
+0, 336000, 192000, 0x5d7633e5
+0, 339000, 192000, 0x845233b5
+0, 342000, 192000, 0x9d1c349b
+0, 345000, 192000, 0x25843317
+0, 348000, 192000, 0xc84b375c
+0, 351000, 192000, 0xaf2b3410
+0, 354000, 192000, 0xaf2b3410
+0, 357000, 192000, 0x26d23594
+0, 360000, 192000, 0xaf2b3410
+0, 363000, 192000, 0x26d23594
+0, 366000, 192000, 0xaf2b3410
+0, 369000, 192000, 0x72c4dfb9
+0, 372000, 192000, 0x3c72e390
+0, 375000, 192000, 0xb4466634
+0, 378000, 192000, 0x84f064f5
+0, 381000, 192000, 0xad43f3f5
+0, 384000, 192000, 0xa8644d57
+0, 387000, 192000, 0xfac35238
+0, 390000, 192000, 0xe9374d1e
+0, 393000, 192000, 0x0bd14cfa
+0, 396000, 192000, 0x7e51a437
+0, 399000, 192000, 0x92678dfa
+0, 402000, 192000, 0x43338d41
+0, 405000, 192000, 0x00000000
+0, 408000, 192000, 0x00000000
+0, 411000, 192000, 0x00000000
+0, 414000, 192000, 0x00000000
+0, 417000, 192000, 0x00000000
+0, 420000, 192000, 0x00000000
+0, 423000, 192000, 0x00000000
+0, 426000, 192000, 0x00000000
+0, 429000, 192000, 0x00000000
+0, 432000, 192000, 0x00000000
+0, 435000, 192000, 0x00000000
+0, 438000, 192000, 0x00000000
+0, 441000, 192000, 0x00000000
+0, 444000, 192000, 0x00000000
+0, 447000, 192000, 0x00000000
+0, 450000, 192000, 0x00000000
+0, 453000, 192000, 0x00000000
+0, 456000, 192000, 0x00000000
+0, 459000, 192000, 0x00000000
+0, 462000, 192000, 0x82a79641
diff --git a/tests/ref/fate/dpx b/tests/ref/fate/dpx
new file mode 100644
index 0000000000..9260977ca5
--- /dev/null
+++ b/tests/ref/fate/dpx
@@ -0,0 +1 @@
+0, 0, 2359296, 0x30d4d24f
diff --git a/tests/ref/fate/duck-dk3 b/tests/ref/fate/duck-dk3
new file mode 100644
index 0000000000..08c0fd1909
--- /dev/null
+++ b/tests/ref/fate/duck-dk3
@@ -0,0 +1 @@
+62fbe4db4a49cb044f57f92cce9993c5
diff --git a/tests/ref/fate/duck-dk4 b/tests/ref/fate/duck-dk4
new file mode 100644
index 0000000000..d47ef2071a
--- /dev/null
+++ b/tests/ref/fate/duck-dk4
@@ -0,0 +1 @@
+5234b53dde4961dd715a2524d6a8eb75
diff --git a/tests/ref/fate/duck-tm2 b/tests/ref/fate/duck-tm2
new file mode 100644
index 0000000000..e7c4ee47f4
--- /dev/null
+++ b/tests/ref/fate/duck-tm2
@@ -0,0 +1,30 @@
+0, 0, 230400, 0x135cb509
+0, 6000, 230400, 0x919a1ab7
+0, 12000, 230400, 0x0af8722b
+0, 18000, 230400, 0xc9616809
+0, 24000, 230400, 0xe16ecaf7
+0, 30000, 230400, 0xa86f8d1b
+0, 36000, 230400, 0xd351b5a4
+0, 42000, 230400, 0xd112b5b7
+0, 48000, 230400, 0xc9c3c9b1
+0, 54000, 230400, 0x4f91e572
+0, 60000, 230400, 0xb1d8c4d3
+0, 66000, 230400, 0x34de10c1
+0, 72000, 230400, 0xbd4f3b29
+0, 78000, 230400, 0xfeaf1477
+0, 84000, 230400, 0x718ffa17
+0, 90000, 230400, 0x23b46ef3
+0, 96000, 230400, 0x6346d9b8
+0, 102000, 230400, 0xdb66bf57
+0, 108000, 230400, 0xeb74a2ff
+0, 114000, 230400, 0xe0750470
+0, 120000, 230400, 0x645eb109
+0, 126000, 230400, 0xbb96489a
+0, 132000, 230400, 0x58a70e35
+0, 138000, 230400, 0xc7563441
+0, 144000, 230400, 0x6098f07e
+0, 150000, 230400, 0x579ece15
+0, 156000, 230400, 0xe1ca8d03
+0, 162000, 230400, 0x8928cf34
+0, 168000, 230400, 0xf621620e
+0, 174000, 230400, 0x98a344ea
diff --git a/tests/ref/fate/ea-cdata b/tests/ref/fate/ea-cdata
new file mode 100644
index 0000000000..cbfc1f529e
--- /dev/null
+++ b/tests/ref/fate/ea-cdata
@@ -0,0 +1 @@
+db441b7f9c8767ee675002763cd3ae46
diff --git a/tests/ref/fate/ea-cmv b/tests/ref/fate/ea-cmv
new file mode 100644
index 0000000000..36d88898c2
--- /dev/null
+++ b/tests/ref/fate/ea-cmv
@@ -0,0 +1,194 @@
+0, 0, 120000, 0x34ac91d2
+0, 9000, 120000, 0x17150729
+0, 18000, 120000, 0xc3f510bb
+0, 27000, 120000, 0xb3b14a3b
+0, 36000, 120000, 0x26a7f3d1
+0, 45000, 120000, 0xd161af6f
+0, 54000, 120000, 0x459fc92d
+0, 63000, 120000, 0x05c3fa94
+0, 72000, 120000, 0x6630cd8c
+0, 81000, 120000, 0x60cd39d4
+0, 90000, 120000, 0xc8854d1c
+0, 99000, 120000, 0xe55e8e6d
+0, 108000, 120000, 0xbeab201f
+0, 117000, 120000, 0x70744b0b
+0, 126000, 120000, 0x80dea5d0
+0, 135000, 120000, 0x769bfa1c
+0, 144000, 120000, 0x04e25bbe
+0, 153000, 120000, 0x48abc5a5
+0, 162000, 120000, 0xda5c4e2a
+0, 171000, 120000, 0x8de96d38
+0, 180000, 120000, 0xe96418b0
+0, 189000, 120000, 0x1c2f272b
+0, 198000, 120000, 0x4b755804
+0, 207000, 120000, 0xc92f96fd
+0, 216000, 120000, 0x69e90ebb
+0, 225000, 120000, 0x78d4bd1a
+0, 234000, 120000, 0xaf2edf55
+0, 243000, 120000, 0x94161c78
+0, 252000, 120000, 0x1109094d
+0, 261000, 120000, 0xc61b0392
+0, 270000, 120000, 0xc157d003
+0, 279000, 120000, 0xf2747e7b
+0, 288000, 120000, 0xa36299c2
+0, 297000, 120000, 0x49bc788c
+0, 306000, 120000, 0x3bee336e
+0, 315000, 120000, 0xa316b9d1
+0, 324000, 120000, 0x5cc32e9c
+0, 333000, 120000, 0x9f7eca16
+0, 342000, 120000, 0x958e2988
+0, 351000, 120000, 0xebcba2f1
+0, 360000, 120000, 0x281f1e60
+0, 369000, 120000, 0x82256c4d
+0, 378000, 120000, 0xddc8be56
+0, 387000, 120000, 0x64ff2ed0
+0, 396000, 120000, 0x3e63ab02
+0, 405000, 120000, 0x43f78b37
+0, 414000, 120000, 0xb7cc62d4
+0, 423000, 120000, 0x694f1764
+0, 432000, 120000, 0x2264c483
+0, 441000, 120000, 0xb6680b4a
+0, 450000, 120000, 0x2a92626a
+0, 459000, 120000, 0x8da02509
+0, 468000, 120000, 0xa976c382
+0, 477000, 120000, 0x749e822b
+0, 486000, 120000, 0xe9e7fc8c
+0, 495000, 120000, 0xfdc05a0c
+0, 504000, 120000, 0x7d5a856d
+0, 513000, 120000, 0xcc344937
+0, 522000, 120000, 0x9d90bc67
+0, 531000, 120000, 0x3f527712
+0, 540000, 120000, 0xf0f57f97
+0, 549000, 120000, 0xc29535cd
+0, 558000, 120000, 0x9a64598b
+0, 567000, 120000, 0x0d1ddf7c
+0, 576000, 120000, 0xb580ec24
+0, 585000, 120000, 0xf0db5bbc
+0, 594000, 120000, 0x6b980b61
+0, 603000, 120000, 0xc29f30b5
+0, 612000, 120000, 0xaf2c4bcd
+0, 621000, 120000, 0x1e725645
+0, 630000, 120000, 0x295c4c96
+0, 639000, 120000, 0x7ea121a2
+0, 648000, 120000, 0xdb9e9cec
+0, 657000, 120000, 0x1da47c80
+0, 666000, 120000, 0x9d0c1345
+0, 675000, 120000, 0x88058527
+0, 684000, 120000, 0x46766aed
+0, 693000, 120000, 0xba520bd3
+0, 702000, 120000, 0x7fb6373c
+0, 711000, 120000, 0x05a86f4d
+0, 720000, 120000, 0x7fb47cbd
+0, 729000, 120000, 0x6814d8ca
+0, 738000, 120000, 0x9c13acb8
+0, 747000, 120000, 0xad0edbfe
+0, 756000, 120000, 0x352fde81
+0, 765000, 120000, 0xa654b386
+0, 774000, 120000, 0xd3b3dc72
+0, 783000, 120000, 0x01572668
+0, 792000, 120000, 0x30189e03
+0, 801000, 120000, 0x26126d30
+0, 810000, 120000, 0x4f376c7d
+0, 819000, 120000, 0xd3667bcf
+0, 828000, 120000, 0x0b46b3d5
+0, 837000, 120000, 0x893415ef
+0, 846000, 120000, 0x99a78749
+0, 855000, 120000, 0x6da0d8e9
+0, 864000, 120000, 0x22d8ceb6
+0, 873000, 120000, 0x67ef9be8
+0, 882000, 120000, 0xb696fb53
+0, 891000, 120000, 0x70339dab
+0, 900000, 120000, 0xc1876efa
+0, 909000, 120000, 0x80e78c92
+0, 918000, 120000, 0x18d2f2ac
+0, 927000, 120000, 0x28be9ae4
+0, 936000, 120000, 0xc3c2c190
+0, 945000, 120000, 0xd6a859d8
+0, 954000, 120000, 0x40b9046d
+0, 963000, 120000, 0x7f8d5999
+0, 972000, 120000, 0x89724027
+0, 981000, 120000, 0x4c15c988
+0, 990000, 120000, 0x812ebe08
+0, 999000, 120000, 0x273ef8e2
+0, 1008000, 120000, 0xe029de06
+0, 1017000, 120000, 0x5846127c
+0, 1026000, 120000, 0x6c5df8e3
+0, 1035000, 120000, 0x7424919f
+0, 1044000, 120000, 0xa8313015
+0, 1053000, 120000, 0x28878ab4
+0, 1062000, 120000, 0x126d0746
+0, 1071000, 120000, 0xee3f7138
+0, 1080000, 120000, 0xd4b2e0a1
+0, 1089000, 120000, 0x8d60bfff
+0, 1098000, 120000, 0x701c23d0
+0, 1107000, 120000, 0x1cbb5654
+0, 1116000, 120000, 0x0f5853e9
+0, 1125000, 120000, 0x2a5c3339
+0, 1134000, 120000, 0x86b00350
+0, 1143000, 120000, 0xe8cc6931
+0, 1152000, 120000, 0xf1cad983
+0, 1161000, 120000, 0xabcd8704
+0, 1170000, 120000, 0x89592f94
+0, 1179000, 120000, 0x100486d9
+0, 1188000, 120000, 0x60ef9e2d
+0, 1197000, 120000, 0x2485176a
+0, 1206000, 120000, 0x6b8c360d
+0, 1215000, 120000, 0xe2e1bf4f
+0, 1224000, 120000, 0xe17b65c3
+0, 1233000, 120000, 0x2a42821a
+0, 1242000, 120000, 0xbe9ddba7
+0, 1251000, 120000, 0x19f937fe
+0, 1260000, 120000, 0xb7e0c600
+0, 1269000, 120000, 0xfbf8c5f6
+0, 1278000, 120000, 0x93b62f93
+0, 1287000, 120000, 0xb6ddec93
+0, 1296000, 120000, 0xa04d031b
+0, 1305000, 120000, 0x61c986c0
+0, 1314000, 120000, 0x3516e54a
+0, 1323000, 120000, 0x3489eb2c
+0, 1332000, 120000, 0xb75a4827
+0, 1341000, 120000, 0x76031a80
+0, 1350000, 120000, 0x867c3969
+0, 1359000, 120000, 0x9b63a093
+0, 1368000, 120000, 0xcb253d8a
+0, 1377000, 120000, 0x354ba3b2
+0, 1386000, 120000, 0x4d5ead8c
+0, 1395000, 120000, 0x7b7029ae
+0, 1404000, 120000, 0x4765ab9d
+0, 1413000, 120000, 0x747cdee9
+0, 1422000, 120000, 0x20989b08
+0, 1431000, 120000, 0x3a957085
+0, 1440000, 120000, 0xdd49e8ad
+0, 1449000, 120000, 0x00e89719
+0, 1458000, 120000, 0x2822aa76
+0, 1467000, 120000, 0x492388f3
+0, 1476000, 120000, 0x4dffa6ee
+0, 1485000, 120000, 0xc382bb83
+0, 1494000, 120000, 0xb59aaa74
+0, 1503000, 120000, 0x7c7885d3
+0, 1512000, 120000, 0xc05ee219
+0, 1521000, 120000, 0xc3df6b73
+0, 1530000, 120000, 0x8ae31170
+0, 1539000, 120000, 0xb979fdce
+0, 1548000, 120000, 0xb8f9e407
+0, 1557000, 120000, 0x56675b80
+0, 1566000, 120000, 0x1aad1ce2
+0, 1575000, 120000, 0xa050a52b
+0, 1584000, 120000, 0x49f8c32f
+0, 1593000, 120000, 0x8e7f4d2c
+0, 1602000, 120000, 0x5c07f751
+0, 1611000, 120000, 0x67fa5523
+0, 1620000, 120000, 0xf38b933a
+0, 1629000, 120000, 0xb113e202
+0, 1638000, 120000, 0xb8d99ff4
+0, 1647000, 120000, 0x15ab6cc6
+0, 1656000, 120000, 0xd64a51c9
+0, 1665000, 120000, 0x2088b53c
+0, 1674000, 120000, 0xdd78d40a
+0, 1683000, 120000, 0x2fb58848
+0, 1692000, 120000, 0xf775d36a
+0, 1701000, 120000, 0xa03987e9
+0, 1710000, 120000, 0x457322ad
+0, 1719000, 120000, 0x0f6c3d1c
+0, 1728000, 120000, 0xbdf2f1a5
+0, 1737000, 120000, 0x5828ee1d
diff --git a/tests/ref/fate/ea-dct b/tests/ref/fate/ea-dct
new file mode 100644
index 0000000000..98a281700c
--- /dev/null
+++ b/tests/ref/fate/ea-dct
@@ -0,0 +1,267 @@
+0, 0, 102144, 0x6edc83de
+1, 0, 5936, 0xea261a29
+0, 6000, 102144, 0xd0534fda
+1, 6057, 5824, 0x253df061
+0, 12000, 102144, 0x6447911f
+1, 12000, 5936, 0x603a5bd7
+0, 18000, 102144, 0xf21f3b46
+1, 18057, 5824, 0x9d283f59
+0, 24000, 102144, 0x0975077a
+1, 24000, 5936, 0x49323497
+0, 30000, 102144, 0xb9a12d8e
+1, 30057, 5824, 0x7c299939
+0, 36000, 102144, 0x17413513
+1, 36000, 5936, 0x9f918e9a
+0, 42000, 102144, 0x1e622a04
+1, 42057, 5824, 0x1226b534
+0, 48000, 102144, 0x7489224e
+1, 48000, 5936, 0xdd159326
+0, 54000, 102144, 0xae14956e
+1, 54057, 5824, 0x361ad10f
+0, 60000, 102144, 0x104fd3a0
+1, 60000, 5936, 0x6ccac9e3
+0, 66000, 102144, 0xea63a940
+1, 66057, 5824, 0x1861efef
+0, 72000, 102144, 0x0cf81588
+1, 72000, 5936, 0x5f718eb9
+0, 78000, 102144, 0xe4a5b2fd
+1, 78057, 5824, 0xd4ca72ba
+0, 84000, 102144, 0x0c9aaf77
+1, 84000, 5936, 0xbf2b27e6
+0, 90000, 102144, 0x065007d7
+1, 90057, 5824, 0xcb6f024e
+0, 96000, 102144, 0x54c0c29b
+1, 96000, 5936, 0x7dfb7e05
+0, 102000, 102144, 0x1114cb8e
+1, 102057, 5824, 0x80e16f13
+0, 108000, 102144, 0xe4270462
+1, 108000, 5936, 0x0fb59227
+0, 114000, 102144, 0x61e5b7fd
+1, 114057, 5824, 0x4d6f1fdb
+0, 120000, 102144, 0x7cbeaca6
+1, 120000, 5936, 0x505a5103
+0, 126000, 102144, 0xed92daa4
+1, 126057, 5824, 0x47ef4c13
+0, 132000, 102144, 0xd8654d0d
+1, 132000, 5936, 0xbe4795fb
+0, 138000, 102144, 0x854e842b
+1, 138057, 5824, 0xb82cc4ff
+0, 144000, 102144, 0x56407c3a
+1, 144000, 5936, 0xf7c6ab8d
+0, 150000, 102144, 0x17db3f90
+1, 150057, 5824, 0x1442f5e0
+0, 156000, 102144, 0x8b133b9a
+1, 156000, 5936, 0x64659389
+0, 162000, 102144, 0xe4899db9
+1, 162057, 5824, 0xdd81725c
+0, 168000, 102144, 0x579cf092
+1, 168000, 5936, 0x7f7c604f
+0, 174000, 102144, 0x19fa5062
+1, 174057, 5824, 0xafc77beb
+0, 180000, 102144, 0x71339792
+1, 180000, 5936, 0x24f88e4d
+0, 186000, 102144, 0x970e5c0c
+1, 186057, 5824, 0xa31956ca
+0, 192000, 102144, 0x84ee616a
+1, 192000, 5936, 0x958e02b9
+0, 198000, 102144, 0x1d6f9a23
+1, 198057, 5824, 0xcfc79890
+0, 204000, 102144, 0xc28e19db
+1, 204000, 5936, 0xc7e788ae
+0, 210000, 102144, 0x0e898967
+1, 210057, 5824, 0x4b6b1acc
+0, 216000, 102144, 0x52a8b671
+1, 216000, 5936, 0xa74496dc
+0, 222000, 102144, 0x3f45ea83
+1, 222057, 5824, 0x719e6171
+0, 228000, 102144, 0x7b0fc603
+1, 228000, 5936, 0x9346222d
+0, 234000, 102144, 0x14f94469
+1, 234057, 5824, 0x9e2a876e
+0, 240000, 102144, 0x5b9f37cc
+1, 240000, 5936, 0xeca6ea64
+0, 246000, 102144, 0xf902b7c7
+1, 246057, 5824, 0x07d8174f
+0, 252000, 102144, 0x326836e0
+1, 252000, 5936, 0x2df5aa6b
+0, 258000, 102144, 0x2e4aebba
+1, 258057, 5824, 0x314e7034
+0, 264000, 102144, 0xd10ae58c
+1, 264000, 5936, 0x5a328768
+0, 270000, 102144, 0xbd084ecf
+1, 270057, 5824, 0x32b92446
+0, 276000, 102144, 0xb2157c0a
+1, 276000, 5936, 0x20ecbc9b
+0, 282000, 102144, 0xd7f158d4
+1, 282057, 5824, 0x76019c14
+0, 288000, 102144, 0x3cf86462
+1, 288000, 5936, 0x8c3ef8a6
+0, 294000, 102144, 0x53ecddab
+1, 294057, 5824, 0xcdaab50b
+0, 300000, 102144, 0xcdaba8ef
+1, 300000, 5936, 0xb2f87f4f
+0, 306000, 102144, 0xab9ede18
+1, 306057, 5824, 0x70c26379
+0, 312000, 102144, 0xb6706e79
+1, 312000, 5936, 0x5691ecfd
+0, 318000, 102144, 0x76371069
+1, 318057, 5824, 0x61e208fe
+0, 324000, 102144, 0x3a365016
+1, 324000, 5936, 0x87d1a5e0
+0, 330000, 102144, 0x52177c09
+1, 330057, 5824, 0x02054cfd
+0, 336000, 102144, 0xc33eb4fb
+1, 336000, 5936, 0x22ff1c4b
+0, 342000, 102144, 0x16098436
+1, 342057, 5824, 0xc6d87fef
+0, 348000, 102144, 0x715d6a2b
+1, 348000, 5936, 0x9028bb3b
+0, 354000, 102144, 0xd3abc960
+1, 354057, 5824, 0xbadde406
+0, 360000, 102144, 0x7f34b0d4
+1, 360000, 5936, 0x6e88ddf1
+0, 366000, 102144, 0xe3219b9c
+1, 366057, 5824, 0x5bb8be6e
+0, 372000, 102144, 0x5fa54f54
+1, 372000, 5936, 0xe1f8d7fc
+0, 378000, 102144, 0x0fb746cb
+1, 378057, 5824, 0xc824e388
+0, 384000, 102144, 0xa6bd2da2
+1, 384000, 5936, 0x654371a9
+0, 390000, 102144, 0x04579119
+1, 390057, 5824, 0xae6ee9ec
+0, 396000, 102144, 0xda818691
+1, 396000, 5936, 0x9aa4550d
+0, 402000, 102144, 0xe9d44445
+1, 402057, 5824, 0xdce210ac
+0, 408000, 102144, 0x94868dc9
+1, 408000, 5936, 0xb12641c8
+0, 414000, 102144, 0x3ca52ce6
+1, 414057, 5824, 0x277e014b
+0, 420000, 102144, 0xd7eb4c4f
+1, 420000, 5936, 0xb0d262de
+0, 426000, 102144, 0xfcdfafca
+1, 426057, 5824, 0xf94d6f49
+0, 432000, 102144, 0x473a4a5a
+1, 432000, 5936, 0x3d7848cb
+0, 438000, 102144, 0xe5a5f3cb
+1, 438057, 5824, 0xe67fc08e
+0, 444000, 102144, 0x34070219
+1, 444000, 5936, 0x0475e0d6
+0, 450000, 102144, 0x0faa965a
+1, 450057, 5824, 0x8a9a4a2e
+0, 456000, 102144, 0xe2c6acda
+1, 456000, 5936, 0x82576204
+0, 462000, 102144, 0xe22776d5
+1, 462057, 5824, 0x3017b648
+0, 468000, 102144, 0x80d85602
+1, 468000, 5936, 0xca4c3e04
+0, 474000, 102144, 0x2f3fa190
+1, 474057, 5824, 0x340077d1
+0, 480000, 102144, 0x70b461b1
+1, 480000, 5936, 0x805bea6e
+0, 486000, 102144, 0x366c8b27
+1, 486057, 5824, 0x2cf6c87b
+0, 492000, 102144, 0x65cc0866
+1, 492000, 5936, 0x3635bc5f
+0, 498000, 102144, 0x903beb14
+1, 498057, 5824, 0x0d7a81c7
+0, 504000, 102144, 0xb6c5f5c7
+1, 504000, 5936, 0x26179764
+0, 510000, 102144, 0xaa813725
+1, 510057, 5824, 0xa0b2454f
+0, 516000, 102144, 0x014a84a0
+1, 516000, 5936, 0x91d24608
+0, 522000, 102144, 0xd286ece1
+1, 522057, 5824, 0x6509b3e1
+0, 528000, 102144, 0x48b1c27d
+1, 528000, 5936, 0xa0e3c9fc
+0, 534000, 102144, 0xa611ef42
+1, 534057, 5824, 0x18682a2f
+0, 540000, 102144, 0x98627584
+1, 540000, 5936, 0x89cea4ff
+0, 546000, 102144, 0x43de7c75
+1, 546057, 5824, 0x7dd22b85
+0, 552000, 102144, 0xa9e22c68
+1, 552000, 5936, 0x8b2eeb8d
+0, 558000, 102144, 0x84ac34d4
+1, 558057, 5824, 0x0c21af82
+0, 564000, 102144, 0x6abd00ba
+1, 564000, 5936, 0x9c5a748d
+0, 570000, 102144, 0x5d11066e
+1, 570057, 5824, 0x1dc72c5c
+0, 576000, 102144, 0xb6b083aa
+1, 576000, 5936, 0xe6129383
+0, 582000, 102144, 0x5d152a11
+1, 582057, 5824, 0x0a44312a
+0, 588000, 102144, 0x0c0aec67
+1, 588000, 5936, 0x7ed30640
+0, 594000, 102144, 0xa248bd10
+1, 594057, 5824, 0xede15f25
+0, 600000, 102144, 0x4e6c12cc
+1, 600000, 5936, 0x0096d0f3
+0, 606000, 102144, 0xca1d6753
+1, 606057, 5824, 0x13764b4b
+0, 612000, 102144, 0x116310c3
+1, 612000, 5936, 0xd4608756
+0, 618000, 102144, 0x16903cd0
+1, 618057, 5824, 0x254b5f2a
+0, 624000, 102144, 0x239adfed
+1, 624000, 5936, 0x7705b830
+0, 630000, 102144, 0x0970ce49
+1, 630057, 5824, 0x64a63d78
+0, 636000, 102144, 0xb628adc1
+1, 636000, 5936, 0xc02d81a6
+0, 642000, 102144, 0x473613f7
+1, 642057, 5824, 0xd239e55e
+0, 648000, 102144, 0x3eef3987
+1, 648000, 5936, 0x8018cd3a
+0, 654000, 102144, 0x935b99ca
+1, 654057, 5824, 0xf86b8a98
+0, 660000, 102144, 0xb9f4d6ee
+1, 660000, 5936, 0x2a0078bc
+0, 666000, 102144, 0xac811656
+1, 666057, 5824, 0x058d4e1b
+0, 672000, 102144, 0xd1f84af0
+1, 672000, 5936, 0xbc718309
+0, 678000, 102144, 0xf2fd25f4
+1, 678057, 5824, 0xaf6c29e5
+0, 684000, 102144, 0x935bbed9
+1, 684000, 5936, 0x80df004d
+0, 690000, 102144, 0x8c8c3e53
+1, 690057, 5824, 0xeca5aa57
+0, 696000, 102144, 0x24afc20f
+1, 696000, 5936, 0xb793a8f8
+0, 702000, 102144, 0xad20a451
+1, 702057, 5824, 0x70fa6aff
+0, 708000, 102144, 0xd1a0df13
+1, 708000, 5936, 0xda8d4cc6
+0, 714000, 102144, 0xb0ee53f8
+1, 714057, 5824, 0xa70088eb
+0, 720000, 102144, 0x08cdb591
+1, 720000, 5936, 0x1c0b0aab
+0, 726000, 102144, 0x89b985b0
+1, 726057, 5824, 0x234d2436
+0, 732000, 102144, 0xdd27d51f
+1, 732000, 5936, 0xf79d731e
+0, 738000, 102144, 0xa783fce0
+1, 738057, 5824, 0x5a4e454a
+0, 744000, 102144, 0xfe5602e8
+1, 744000, 5936, 0xccf6d042
+0, 750000, 102144, 0xfb989934
+1, 750057, 5824, 0x4e524d14
+0, 756000, 102144, 0xf857eb2b
+1, 756000, 5936, 0xf8f2fcc3
+0, 762000, 102144, 0x987a7098
+1, 762057, 5824, 0x08f12491
+0, 768000, 102144, 0xbc749f42
+1, 768000, 5936, 0x506e0a42
+0, 774000, 102144, 0x221e48a6
+1, 774057, 5824, 0x7cf05049
+0, 780000, 102144, 0x4c4b5da2
+1, 780000, 5936, 0xdeb9d295
+0, 786000, 102144, 0x32140027
+1, 786057, 5824, 0x758ef642
+0, 792000, 102144, 0xbeb4bf18
+1, 792000, 5936, 0x91903980
+0, 798000, 102144, 0x523012e5
diff --git a/tests/ref/fate/ea-mad-adpcm-ea-r1 b/tests/ref/fate/ea-mad-adpcm-ea-r1
new file mode 100644
index 0000000000..b75de55f39
--- /dev/null
+++ b/tests/ref/fate/ea-mad-adpcm-ea-r1
@@ -0,0 +1,191 @@
+0, 0, 535680, 0x889c32cf
+1, 0, 6496, 0x00000000
+0, 2970, 535680, 0x0b1ef044
+1, 3045, 6384, 0x00000000
+0, 5940, 535680, 0xa7d0818b
+1, 6038, 6384, 0x00000000
+0, 8910, 535680, 0xf392e4e1
+1, 9030, 6384, 0x00000000
+0, 11880, 535680, 0x08480c69
+1, 12023, 6384, 0x00000000
+0, 14850, 535680, 0x2b8af1ed
+1, 15015, 6496, 0xe2034d04
+0, 17820, 535680, 0x0d58e062
+1, 18060, 6384, 0x089c9157
+0, 20790, 535680, 0xd140ced0
+1, 21053, 6384, 0xeed5743c
+0, 23760, 535680, 0xbd0e6652
+1, 24045, 6384, 0x71de6b34
+0, 26730, 535680, 0xdc2f2a6b
+1, 27038, 6384, 0xc0d67710
+0, 29700, 535680, 0x97c31a38
+1, 30030, 6496, 0x35786490
+0, 32670, 535680, 0x1a2bdf38
+1, 33075, 6384, 0xdf1c99a2
+0, 35640, 535680, 0xb3af3ac4
+1, 36068, 6384, 0xca9591ad
+0, 38610, 535680, 0x07a52577
+1, 39060, 6384, 0x6f0d9c3d
+0, 41580, 535680, 0x78407368
+1, 42053, 6384, 0xfacbbaee
+0, 44550, 535680, 0xd2a9efc3
+1, 45045, 6496, 0x927fb136
+0, 47520, 535680, 0x36df2f29
+1, 48090, 6384, 0x9d4f2572
+0, 50490, 535680, 0x9821d8f7
+1, 51083, 6384, 0x2a3c6d08
+0, 53460, 535680, 0xf64321aa
+1, 54075, 6384, 0x4282b1e0
+0, 56430, 535680, 0x53e4d9aa
+1, 57068, 6384, 0xc4a77b9f
+0, 59400, 535680, 0xdbd6f853
+1, 60060, 6496, 0x2af6a14f
+0, 62370, 535680, 0x5d40cf8b
+1, 63105, 6384, 0x4d734169
+0, 65340, 535680, 0xe624af9d
+1, 66098, 6384, 0xb91b5865
+0, 68310, 535680, 0xd9dbb4cd
+1, 69090, 6384, 0x9dce2417
+0, 71280, 535680, 0xf14e72ec
+1, 72083, 6384, 0xb7c4e1ce
+0, 74250, 535680, 0xb35c18f6
+1, 75075, 6496, 0xef0dc07a
+0, 77220, 535680, 0xc96d7757
+1, 78120, 6384, 0x4ad21d10
+0, 80190, 535680, 0xdfb937df
+1, 81113, 6384, 0xcfe14682
+0, 83160, 535680, 0x40cd71d7
+1, 84105, 6384, 0x07be48eb
+0, 86130, 535680, 0x15e176d6
+1, 87098, 6384, 0x09de3498
+0, 89100, 535680, 0x7f891b24
+1, 90090, 6496, 0xab2e9686
+0, 92070, 535680, 0xb87a8c32
+1, 93135, 6384, 0x3aba3ccc
+0, 95040, 535680, 0x0c01541f
+1, 96128, 6384, 0x0a905ec3
+0, 98010, 535680, 0x9eee99b3
+1, 99120, 6384, 0x76a93ce4
+0, 100980, 535680, 0xd65eb689
+1, 102113, 6384, 0xa99063a4
+0, 103950, 535680, 0x6e733cfa
+1, 105105, 6496, 0xc16bb88d
+0, 106920, 535680, 0xac536670
+1, 108150, 6384, 0x650379bf
+0, 109890, 535680, 0x002275b8
+1, 111143, 6384, 0x4e0749fe
+0, 112860, 535680, 0x6a5385cb
+1, 114135, 6384, 0x778e8d12
+0, 115830, 535680, 0xd129ade3
+1, 117128, 6384, 0x9fa8c494
+0, 118800, 535680, 0x32cab5d7
+1, 120120, 6496, 0x61d5bead
+0, 121770, 535680, 0x08be1c8f
+1, 123165, 6384, 0x4da9bc3c
+0, 124740, 535680, 0x59e1fba0
+1, 126158, 6384, 0xa72b6f93
+0, 127710, 535680, 0x138aee3a
+1, 129150, 6384, 0x811f5f77
+0, 130680, 535680, 0x4cfbcd5e
+1, 132143, 6384, 0x83ea5e3d
+0, 133650, 535680, 0xf6cf0fb4
+1, 135135, 6496, 0x78bab460
+0, 136620, 535680, 0xb13a06de
+1, 138180, 6384, 0xc9a07432
+0, 139590, 535680, 0x59176f00
+1, 141173, 6384, 0x4b4f2a34
+0, 142560, 535680, 0xf84b4ca3
+1, 144165, 6384, 0x4d707a53
+0, 145530, 535680, 0x7fd09f73
+1, 147158, 6384, 0x703efb60
+0, 148500, 535680, 0x3be383b8
+1, 150150, 6496, 0x319a77bb
+0, 151470, 535680, 0xa7118e51
+1, 153195, 6384, 0xbdfd82ec
+0, 154440, 535680, 0xbd83120c
+1, 156188, 6384, 0x413c3503
+0, 157410, 535680, 0x3bc9d256
+1, 159180, 6384, 0xe6e666b3
+0, 160380, 535680, 0xb6c87f87
+1, 162173, 6384, 0xa09c7342
+0, 163350, 535680, 0xe80d110a
+1, 165165, 6496, 0x60cba846
+0, 166320, 535680, 0xb3a83362
+1, 168210, 6384, 0x0ba34308
+0, 169290, 535680, 0xfb39eb52
+1, 171203, 6384, 0xdc3a65f0
+0, 172260, 535680, 0xbf6e1220
+1, 174195, 6384, 0x1ebf9dc4
+0, 175230, 535680, 0x9ecdfbae
+1, 177188, 6384, 0xbbcb1449
+0, 178200, 535680, 0x069a65f5
+1, 180180, 6496, 0x926574eb
+0, 181170, 535680, 0x206e372c
+1, 183225, 6384, 0xb4da92f1
+0, 184140, 535680, 0x58c83dd4
+1, 186218, 6384, 0xdbbd21e0
+0, 187110, 535680, 0xc3562b03
+1, 189210, 6384, 0x08510eff
+0, 190080, 535680, 0xd1ed85a0
+1, 192203, 6384, 0x9534b7ca
+0, 193050, 535680, 0xb6205f4b
+1, 195195, 6496, 0x50a5ed30
+0, 196020, 535680, 0xaedf8bfa
+1, 198240, 6384, 0xf5ac2f7c
+0, 198990, 535680, 0xa48d5dea
+1, 201233, 6384, 0x4fe1fa55
+0, 201960, 535680, 0xff82e7c1
+1, 204225, 6384, 0xd61c4c05
+0, 204930, 535680, 0xc9560222
+1, 207218, 6384, 0x56d11b45
+0, 207900, 535680, 0x0fafa549
+1, 210210, 6496, 0x3906084b
+0, 210870, 535680, 0x8d556ccb
+1, 213255, 6384, 0x1ef31fed
+0, 213840, 535680, 0x802aac1f
+1, 216248, 6384, 0x58ed82f5
+0, 216810, 535680, 0x7d0fa168
+1, 219240, 6384, 0xb31ccd1f
+0, 219780, 535680, 0x1a9255c9
+1, 222233, 6384, 0xfb648285
+0, 222750, 535680, 0xb4ec7e35
+1, 225225, 6496, 0xfae2950b
+0, 225720, 535680, 0x48fac072
+1, 228270, 6384, 0xe28c8357
+0, 228690, 535680, 0x1e260135
+1, 231263, 6384, 0xda718e60
+0, 231660, 535680, 0xce4d5079
+1, 234255, 6384, 0x27516999
+0, 234630, 535680, 0x13e5e4ed
+1, 237248, 6384, 0x0ba07921
+0, 237600, 535680, 0x592305ec
+1, 240240, 6496, 0xcfbecfab
+0, 240570, 535680, 0x9e227508
+1, 243285, 6384, 0xae4cedcd
+0, 243540, 535680, 0x1d37e5ea
+1, 246278, 6384, 0x917b4707
+0, 246510, 535680, 0x7eae7692
+1, 249270, 6384, 0x8671b28e
+0, 249480, 535680, 0xf452e4b9
+1, 252263, 6384, 0x9a1238fa
+0, 252450, 535680, 0x1460e7e9
+1, 255255, 6496, 0x23b8f8ca
+0, 255420, 535680, 0xc6d8a638
+1, 258300, 6384, 0x3903bcd6
+0, 258390, 535680, 0x854f5fb0
+1, 261293, 6384, 0x0532b267
+0, 261360, 535680, 0x854f5fb0
+1, 264285, 6384, 0xde931220
+0, 264330, 535680, 0x70a02d87
+1, 267278, 6384, 0x4ed70a80
+0, 267300, 535680, 0x9a4ad464
+0, 270270, 535680, 0x9a4ad464
+1, 270270, 6496, 0x4a52d5a1
+0, 273240, 535680, 0x9a4ad464
+1, 273315, 6384, 0xc1be5760
+0, 276210, 535680, 0x9a4ad464
+1, 276308, 6384, 0x790d69ba
+0, 279180, 535680, 0x9a4ad464
+1, 279300, 6384, 0x9d73e6cf
+0, 282150, 535680, 0x9a4ad464
+1, 282293, 6272, 0xbc0fc725
diff --git a/tests/ref/fate/ea-mad-pcm-planar b/tests/ref/fate/ea-mad-pcm-planar
new file mode 100644
index 0000000000..dc47354f45
--- /dev/null
+++ b/tests/ref/fate/ea-mad-pcm-planar
@@ -0,0 +1,292 @@
+0, 0, 196608, 0x75d22292
+1, 0, 5884, 0x00000000
+0, 2970, 196608, 0x75d22292
+1, 3002, 5884, 0x00000000
+0, 5940, 196608, 0x75d22292
+1, 6004, 5888, 0x00000000
+0, 8910, 196608, 0x75d22292
+1, 9008, 5884, 0x00000000
+0, 11880, 196608, 0x75d22292
+1, 12010, 5888, 0x00000000
+0, 14850, 196608, 0x75d22292
+1, 15014, 5884, 0x00000000
+0, 17820, 196608, 0x75d22292
+1, 18016, 5888, 0x00000000
+0, 20790, 196608, 0x75d22292
+1, 21020, 5884, 0x00000000
+0, 23760, 196608, 0x75d22292
+1, 24022, 5888, 0x00000000
+0, 26730, 196608, 0xd3f66981
+1, 27027, 5884, 0x00000000
+0, 29700, 196608, 0xed37c4c3
+1, 30029, 5888, 0x174b2bd4
+0, 32670, 196608, 0x6ce01dc4
+1, 33033, 5884, 0xfab9563d
+0, 35640, 196608, 0x2874fc9a
+1, 36035, 5888, 0x0129a4f5
+0, 38610, 196608, 0x9b65bbc8
+1, 39039, 5884, 0xf12b15dd
+0, 41580, 196608, 0x8f9af811
+1, 42041, 5888, 0x60c8c922
+0, 44550, 196608, 0x04aeb0b0
+1, 45045, 5884, 0x85693c81
+0, 47520, 196608, 0x0df037a1
+1, 48047, 5888, 0xcefcf0e0
+0, 50490, 196608, 0xa32c5515
+1, 51051, 5884, 0x243974ff
+0, 53460, 196608, 0xf3b11a1b
+1, 54053, 5884, 0x9101b901
+0, 56430, 196608, 0xaf945190
+1, 57055, 5888, 0xe3c68cb9
+0, 59400, 196608, 0xabee8b24
+1, 60059, 5884, 0x80f2ff5f
+0, 62370, 196608, 0x1d7b3df0
+1, 63061, 5888, 0xfc2d19dc
+0, 65340, 196608, 0x1347d787
+1, 66065, 5884, 0xb6e0af21
+0, 68310, 196608, 0x654c4a9b
+1, 69067, 5888, 0x476e74ff
+0, 71280, 196608, 0xa2a6596a
+1, 72071, 5884, 0x3921bc7f
+0, 74250, 196608, 0x50d04d8e
+1, 75073, 5888, 0x44180a3f
+0, 77220, 196608, 0x4f9f9352
+1, 78078, 5884, 0x01b5a119
+0, 80190, 196608, 0xbb358281
+1, 81080, 5888, 0xdd7ad621
+0, 83160, 196608, 0xcd91a50a
+1, 84084, 5884, 0xadabe898
+0, 86130, 196608, 0xb665bb76
+1, 87086, 5888, 0x2141ff8e
+0, 89100, 196608, 0xec924ee7
+1, 90090, 5884, 0xfb5118fb
+0, 92070, 196608, 0x9c4aa4ad
+1, 93092, 5888, 0x06d31461
+0, 95040, 196608, 0x27ccdf86
+1, 96096, 5884, 0x80ce34c1
+0, 98010, 196608, 0x93778cc8
+1, 99098, 5888, 0x72bf392f
+0, 100980, 196608, 0x3d68e826
+1, 102102, 5884, 0x9d9237cf
+0, 103950, 196608, 0x9240b751
+1, 105104, 5884, 0xf5c9ce23
+0, 106920, 196608, 0xd77ec46b
+1, 108106, 5888, 0x12a05dc5
+0, 109890, 196608, 0x4a303ef1
+1, 111110, 5884, 0xd3ed5d4b
+0, 112860, 196608, 0x2508bacf
+1, 114112, 5888, 0x06557401
+0, 115830, 196608, 0xb74cb5bf
+1, 117116, 5884, 0x53d81662
+0, 118800, 196608, 0x9c4a9719
+1, 120118, 5888, 0xd7e0d98d
+0, 121770, 196608, 0xc34a7924
+1, 123122, 5884, 0xdf00752e
+0, 124740, 196608, 0x9d8428bd
+1, 126124, 5888, 0x82f1d7a9
+0, 127710, 196608, 0x019eebf7
+1, 129129, 5884, 0x9cb3aba9
+0, 130680, 196608, 0x36e58d6b
+1, 132131, 5888, 0xd6f98e91
+0, 133650, 196608, 0xc7038ceb
+1, 135135, 5884, 0xaa7f7c09
+0, 136620, 196608, 0xb041fd50
+1, 138137, 5888, 0xb97a82a7
+0, 139590, 196608, 0x76934674
+1, 141141, 5884, 0x375a3d53
+0, 142560, 196608, 0x22afa88b
+1, 144143, 5888, 0xa0a460cb
+0, 145530, 196608, 0x22158960
+1, 147147, 5884, 0xe05efbab
+0, 148500, 196608, 0x75ab0895
+1, 150149, 5888, 0x95e151f0
+0, 151470, 196608, 0xcaab6c6d
+1, 153153, 5884, 0x44ac688d
+0, 154440, 196608, 0xe64d8b91
+1, 156155, 5884, 0xfc6d929f
+0, 157410, 196608, 0x1e8aa17a
+1, 159157, 5888, 0x6406c5f1
+0, 160380, 196608, 0x7dd94fdb
+1, 162161, 5884, 0x4ee9e48c
+0, 163350, 196608, 0xab74566c
+1, 165163, 5888, 0xd55d43d0
+0, 166320, 196608, 0xec962966
+1, 168167, 5884, 0xcae69baf
+0, 169290, 196608, 0xf5bfd751
+1, 171169, 5888, 0x4c01f1f5
+0, 172260, 196608, 0xc7f46e0e
+1, 174173, 5884, 0xf7d6dab6
+0, 175230, 196608, 0xe641f676
+1, 177176, 5888, 0x1affdeb5
+0, 178200, 196608, 0xea7c7b75
+1, 180180, 5884, 0x6db72487
+0, 181170, 196608, 0x69120371
+1, 183182, 5888, 0x4f344e49
+0, 184140, 196608, 0xb2319175
+1, 186186, 5884, 0x2df3827b
+0, 187110, 196608, 0xd2d73b56
+1, 189188, 5888, 0x1d1fc283
+0, 190080, 196608, 0x74aafac0
+1, 192192, 5884, 0x22eb1dd5
+0, 193050, 196608, 0x15e8ddbc
+1, 195194, 5888, 0x734e7093
+0, 196020, 196608, 0xd4e2c90c
+1, 198198, 5884, 0x357c9531
+0, 198990, 196608, 0x86eaf31c
+1, 201200, 5888, 0x108c102d
+0, 201960, 196608, 0x8004291b
+1, 204204, 5884, 0x96ad26c6
+0, 204930, 196608, 0xbbf6954a
+1, 207206, 5888, 0x7bea1996
+0, 207900, 196608, 0x2f24f0e1
+1, 210210, 5884, 0x124a1f8e
+0, 210870, 196608, 0x59d56dfb
+1, 213212, 5884, 0x08d272fb
+0, 213840, 196608, 0x1377c9cb
+1, 216214, 5888, 0x88832c6b
+0, 216810, 196608, 0x07582cc3
+1, 219218, 5884, 0xedf41493
+0, 219780, 196608, 0xa5a853fc
+1, 222220, 5888, 0xc4f226d7
+0, 222750, 196608, 0x3b01856a
+1, 225224, 5884, 0x97730397
+0, 225720, 196608, 0x64927496
+1, 228227, 5888, 0xbc3540e9
+0, 228690, 196608, 0xf24c6f8a
+1, 231231, 5884, 0x8adfa135
+0, 231660, 196608, 0xc92c3c46
+1, 234233, 5888, 0x6d4be121
+0, 234630, 196608, 0xa50d07fb
+1, 237237, 5884, 0xc3daea85
+0, 237600, 196608, 0xb1d4a092
+1, 240239, 5888, 0x5498e9f0
+0, 240570, 196608, 0x20c5526b
+1, 243243, 5884, 0xa0eb691f
+0, 243540, 196608, 0x6127fbbd
+1, 246245, 5888, 0x775c7c59
+0, 246510, 196608, 0xc168a747
+1, 249249, 5884, 0x9f108fd1
+0, 249480, 196608, 0x9c0d3241
+1, 252251, 5888, 0x72d53062
+0, 252450, 196608, 0x5466dd21
+1, 255255, 5884, 0x13a93faa
+0, 255420, 196608, 0x5bba67cc
+1, 258257, 5888, 0x64773c8e
+0, 258390, 196608, 0x4c1a1c18
+1, 261261, 5884, 0xaf696999
+0, 261360, 196608, 0x22c0a537
+1, 264263, 5884, 0xf45e7e81
+0, 264330, 196608, 0x4ffc5ea6
+1, 267265, 5888, 0x00000000
+0, 267300, 196608, 0x7e8e2395
+1, 270269, 5884, 0x00000000
+0, 270270, 196608, 0xa3b6f198
+0, 273240, 196608, 0xf6aac4d1
+1, 273271, 5888, 0x00000000
+0, 276210, 196608, 0x1a6ea9ee
+1, 276276, 5884, 0x00000000
+0, 279180, 196608, 0xfd729443
+1, 279278, 5888, 0x00000000
+0, 282150, 196608, 0xc6a69012
+1, 282282, 5884, 0x00000000
+0, 285120, 196608, 0x576f9270
+1, 285284, 5888, 0x00000000
+0, 288090, 196608, 0x0d539fe5
+1, 288288, 5884, 0x00000000
+0, 291060, 196608, 0x191db7d6
+1, 291290, 5888, 0x00000000
+0, 294030, 196608, 0x80cddedd
+1, 294294, 5884, 0x00000000
+0, 297000, 196608, 0xccf5fd39
+1, 297296, 5888, 0x00000000
+0, 299970, 196608, 0x521d33b6
+1, 300300, 5884, 0x00000000
+0, 302940, 196608, 0xb75e59ee
+1, 303302, 5888, 0x00000000
+0, 305910, 196608, 0xbba68972
+1, 306306, 5884, 0x00000000
+0, 308880, 196608, 0x368fb86a
+1, 309308, 5888, 0x00000000
+0, 311850, 196608, 0x99e6e94a
+1, 312312, 5884, 0x00000000
+0, 314820, 196608, 0xe4021296
+1, 315314, 5884, 0x00000000
+0, 317790, 196608, 0xbc993b10
+1, 318316, 5888, 0x00000000
+0, 320760, 196608, 0xf2765d22
+1, 321320, 5884, 0x00000000
+0, 323730, 196608, 0xc6257db5
+1, 324322, 5888, 0x00000000
+0, 326700, 196608, 0xa832782f
+1, 327327, 5884, 0x00000000
+0, 329670, 196608, 0xa832782f
+1, 330329, 5888, 0x00000000
+0, 332640, 196608, 0xa832782f
+1, 333333, 5884, 0x00000000
+0, 335610, 196608, 0xa832782f
+1, 336335, 5888, 0x00000000
+0, 338580, 196608, 0xa832782f
+1, 339339, 5884, 0x00000000
+0, 341550, 196608, 0xa832782f
+1, 342341, 5888, 0x00000000
+0, 344520, 196608, 0xa832782f
+1, 345345, 5884, 0x00000000
+0, 347490, 196608, 0xa832782f
+1, 348347, 5888, 0x00000000
+0, 350460, 196608, 0xa832782f
+1, 351351, 5884, 0xfe4b2bd4
+0, 353430, 196608, 0xa832782f
+1, 354353, 5888, 0x00000000
+0, 356400, 196608, 0xa832782f
+1, 357357, 5884, 0x00000000
+0, 359370, 196608, 0xa832782f
+1, 360359, 5888, 0x00000000
+0, 362340, 196608, 0xa832782f
+1, 363363, 5884, 0x00000000
+0, 365310, 196608, 0xa832782f
+1, 366365, 5884, 0x00000000
+0, 368280, 196608, 0xa832782f
+1, 369367, 5888, 0x00000000
+0, 371250, 196608, 0xa832782f
+1, 372371, 5884, 0x00000000
+0, 374220, 196608, 0xa832782f
+1, 375373, 5888, 0x00000000
+0, 377190, 196608, 0xa832782f
+1, 378378, 5884, 0x00000000
+0, 380160, 196608, 0xa832782f
+1, 381380, 5888, 0x00000000
+0, 383130, 196608, 0xa832782f
+1, 384384, 5884, 0x00000000
+0, 386100, 196608, 0xa832782f
+1, 387386, 5888, 0x00000000
+0, 389070, 196608, 0xa832782f
+1, 390390, 5884, 0x00000000
+0, 392040, 196608, 0xa832782f
+1, 393392, 5888, 0x00000000
+0, 395010, 196608, 0xa832782f
+1, 396396, 5884, 0x00000000
+0, 397980, 196608, 0xa832782f
+1, 399398, 5888, 0x00000000
+0, 400950, 196608, 0xa832782f
+1, 402402, 5884, 0x00000000
+0, 403920, 196608, 0xa832782f
+1, 405404, 5888, 0x00000000
+0, 406890, 196608, 0xa832782f
+1, 408408, 5884, 0x00000000
+0, 409860, 196608, 0xa832782f
+1, 411410, 5888, 0x00000000
+0, 412830, 196608, 0xa832782f
+1, 414414, 5884, 0x00000000
+0, 415800, 196608, 0xa832782f
+1, 417416, 5888, 0x00000000
+0, 418770, 196608, 0xa832782f
+1, 420420, 5884, 0x00000000
+0, 421740, 196608, 0xa832782f
+1, 423422, 5048, 0x00000000
+0, 424710, 196608, 0xa832782f
+0, 427680, 196608, 0xa832782f
+0, 430650, 196608, 0xa832782f
+0, 433620, 196608, 0xa832782f
+0, 436590, 196608, 0xa832782f
+0, 439560, 196608, 0xa832782f
+0, 442530, 196608, 0xa832782f
diff --git a/tests/ref/fate/ea-tgq b/tests/ref/fate/ea-tgq
new file mode 100644
index 0000000000..993c08ea74
--- /dev/null
+++ b/tests/ref/fate/ea-tgq
@@ -0,0 +1,278 @@
+0, 0, 34944, 0xe33671a4
+0, 6000, 34944, 0xe33671a4
+0, 12000, 34944, 0xe33671a4
+0, 18000, 34944, 0xe33671a4
+0, 24000, 34944, 0xe33671a4
+0, 30000, 34944, 0xe33671a4
+0, 36000, 34944, 0xe33671a4
+0, 42000, 34944, 0xe33671a4
+0, 48000, 34944, 0xe33671a4
+0, 54000, 34944, 0xe33671a4
+0, 60000, 34944, 0xe33671a4
+0, 66000, 34944, 0xe33671a4
+0, 72000, 34944, 0xe33671a4
+0, 78000, 34944, 0xe33671a4
+0, 84000, 34944, 0xe33671a4
+0, 90000, 34944, 0x63196b41
+0, 96000, 34944, 0x308d6f10
+0, 102000, 34944, 0x86026ced
+0, 108000, 34944, 0xaa6a6bc9
+0, 114000, 34944, 0x58276ee3
+0, 120000, 34944, 0x402d70c2
+0, 126000, 34944, 0x948d74bf
+0, 132000, 34944, 0x3d31759c
+0, 138000, 34944, 0x638c734e
+0, 144000, 34944, 0xe218768a
+0, 150000, 34944, 0xed6678ff
+0, 156000, 34944, 0x381b7dda
+0, 162000, 34944, 0x216680e7
+0, 168000, 34944, 0xaca5810f
+0, 174000, 34944, 0xf70b81eb
+0, 180000, 34944, 0x3675858b
+0, 186000, 34944, 0xa51188c3
+0, 192000, 34944, 0x3a848bf1
+0, 198000, 34944, 0x67608d4d
+0, 204000, 34944, 0xafe49165
+0, 210000, 34944, 0x7e8a94a7
+0, 216000, 34944, 0x3b889432
+0, 222000, 34944, 0x97e89623
+0, 228000, 34944, 0x07819793
+0, 234000, 34944, 0xdac39b87
+0, 240000, 34944, 0x4d8c9d93
+0, 246000, 34944, 0xcf009fa7
+0, 252000, 34944, 0x2f109f6e
+0, 258000, 34944, 0xcedda4eb
+0, 264000, 34944, 0xfe89a6df
+0, 270000, 34944, 0x195ea7a9
+0, 276000, 34944, 0x9287ab92
+0, 282000, 34944, 0x6d21af54
+0, 288000, 34944, 0xd627b28b
+0, 294000, 34944, 0x3ad5b6fd
+0, 300000, 34944, 0x5101b64d
+0, 306000, 34944, 0xb968b8ca
+0, 312000, 34944, 0xa105b74a
+0, 318000, 34944, 0xc056bdd6
+0, 324000, 34944, 0xec7fc1d9
+0, 330000, 34944, 0x92c3c3e0
+0, 336000, 34944, 0x9bffc45c
+0, 342000, 34944, 0x5aabca4b
+0, 348000, 34944, 0xcbdacb26
+0, 354000, 34944, 0xed6cce3f
+0, 360000, 34944, 0xcc61cfb8
+0, 366000, 34944, 0x7a97d427
+0, 372000, 34944, 0x7cdbd5ec
+0, 378000, 34944, 0x5851d9c4
+0, 384000, 34944, 0x69d5dd1d
+0, 390000, 34944, 0xdf30dcf4
+0, 396000, 34944, 0x2359e084
+0, 402000, 34944, 0xe0bae491
+0, 408000, 34944, 0xa716e4fd
+0, 414000, 34944, 0xe48aeaf4
+0, 420000, 34944, 0x0a0deb21
+0, 426000, 34944, 0xe8a56e12
+0, 432000, 34944, 0x0d72c98e
+0, 438000, 34944, 0x71a7bb9d
+0, 444000, 34944, 0xc0c8c108
+0, 450000, 34944, 0x1d1fc3ba
+0, 456000, 34944, 0xebcfc67f
+0, 462000, 34944, 0x2921cb5b
+0, 468000, 34944, 0x793ed099
+0, 474000, 34944, 0xefebd9e8
+0, 480000, 34944, 0x163c2330
+0, 486000, 34944, 0x35155672
+0, 492000, 34944, 0x05474e2e
+0, 498000, 34944, 0x9433542f
+0, 504000, 34944, 0x777d5a13
+0, 510000, 34944, 0x87526776
+0, 516000, 34944, 0x4c3c72c1
+0, 522000, 34944, 0x70407b87
+0, 528000, 34944, 0x2358861d
+0, 534000, 34944, 0xec61923f
+0, 540000, 34944, 0x0bb2a0d4
+0, 546000, 34944, 0x6b6d8624
+0, 552000, 34944, 0x624761ec
+0, 558000, 34944, 0xff23b926
+0, 564000, 34944, 0x07fc7ca5
+0, 570000, 34944, 0xa8d3ffda
+0, 576000, 34944, 0xa2d31265
+0, 582000, 34944, 0x5e58225e
+0, 588000, 34944, 0x284b2fb0
+0, 594000, 34944, 0x205b3cb1
+0, 600000, 34944, 0x3fa64a09
+0, 606000, 34944, 0xa5de5097
+0, 612000, 34944, 0x00686cea
+0, 618000, 34944, 0x465a8282
+0, 624000, 34944, 0x4ceb8189
+0, 630000, 34944, 0x14698509
+0, 636000, 34944, 0x232c830d
+0, 642000, 34944, 0x0739807c
+0, 648000, 34944, 0x83b0861e
+0, 654000, 34944, 0xbdc094b1
+0, 660000, 34944, 0xc4c0a605
+0, 666000, 34944, 0x8376b059
+0, 672000, 34944, 0x2035b939
+0, 678000, 34944, 0xb6bfc812
+0, 684000, 34944, 0xc5d4d5c4
+0, 690000, 34944, 0x492c954e
+0, 696000, 34944, 0xd23f0dcc
+0, 702000, 34944, 0x22d7ff6c
+0, 708000, 34944, 0xd08b4168
+0, 714000, 34944, 0xa82e4062
+0, 720000, 34944, 0xcc4f2f31
+0, 726000, 34944, 0x964b0307
+0, 732000, 34944, 0xe8130606
+0, 738000, 34944, 0x5fb744bf
+0, 744000, 34944, 0x1546a88b
+0, 750000, 34944, 0xe6e4d94d
+0, 756000, 34944, 0x8d1ea97e
+0, 762000, 34944, 0x3bb1fb55
+0, 768000, 34944, 0x3c37e9cc
+0, 774000, 34944, 0xe2d22521
+0, 780000, 34944, 0x7c0ec8cc
+0, 786000, 34944, 0x7c2dc956
+0, 792000, 34944, 0x7fe3c263
+0, 798000, 34944, 0x9a65b813
+0, 804000, 34944, 0x7ea7cb14
+0, 810000, 34944, 0x31ded64e
+0, 816000, 34944, 0x50f30ad1
+0, 822000, 34944, 0x12eac45c
+0, 828000, 34944, 0x984b6335
+0, 834000, 34944, 0x3b9b02f0
+0, 840000, 34944, 0x4629d2a4
+0, 846000, 34944, 0x38687e89
+0, 852000, 34944, 0xb76620fe
+0, 858000, 34944, 0x66347155
+0, 864000, 34944, 0x6e6bc297
+0, 870000, 34944, 0x452a653a
+0, 876000, 34944, 0x8c8a0683
+0, 882000, 34944, 0xaf5d7c2d
+0, 888000, 34944, 0x3064a7e1
+0, 894000, 34944, 0xc0657fc4
+0, 900000, 34944, 0x1f129266
+0, 906000, 34944, 0x35adedfb
+0, 912000, 34944, 0x40a3db0d
+0, 918000, 34944, 0x87bebb37
+0, 924000, 34944, 0x04d7ffed
+0, 930000, 34944, 0x9bde3180
+0, 936000, 34944, 0xc35c25bd
+0, 942000, 34944, 0x820bf4bb
+0, 948000, 34944, 0x876163ef
+0, 954000, 34944, 0x3ab6dac0
+0, 960000, 34944, 0x69a9ef73
+0, 966000, 34944, 0x0df3813c
+0, 972000, 34944, 0x1bba0947
+0, 978000, 34944, 0x0b7883d4
+0, 984000, 34944, 0xa9972f7e
+0, 990000, 34944, 0x603d08fe
+0, 996000, 34944, 0x05f4f111
+0, 1002000, 34944, 0xb24fdb42
+0, 1008000, 34944, 0xfe2ad344
+0, 1014000, 34944, 0xda4bcb8f
+0, 1020000, 34944, 0xd28aca6b
+0, 1026000, 34944, 0x9486c260
+0, 1032000, 34944, 0xad9fc04d
+0, 1038000, 34944, 0x9333c0ca
+0, 1044000, 34944, 0x96e9c226
+0, 1050000, 34944, 0x3e89bd6f
+0, 1056000, 34944, 0x7a2dbd32
+0, 1062000, 34944, 0xe578ba53
+0, 1068000, 34944, 0xb77ebab1
+0, 1074000, 34944, 0xd8bfbcb1
+0, 1080000, 34944, 0x15d9bc97
+0, 1086000, 34944, 0x09c3b9f0
+0, 1092000, 34944, 0xd8c8b944
+0, 1098000, 34944, 0x2c2fb996
+0, 1104000, 34944, 0xd7a8b7e7
+0, 1110000, 34944, 0xce34b843
+0, 1116000, 34944, 0xba69e9fd
+0, 1122000, 34944, 0x1b3f1adc
+0, 1128000, 34944, 0x48f515aa
+0, 1134000, 34944, 0x864e12bb
+0, 1140000, 34944, 0xca571996
+0, 1146000, 34944, 0x1d5a1af0
+0, 1152000, 34944, 0x3d1e171f
+0, 1158000, 34944, 0xb57417ca
+0, 1164000, 34944, 0x6e6d1e9d
+0, 1170000, 34944, 0xc9971899
+0, 1176000, 34944, 0xe0b112c8
+0, 1182000, 34944, 0x121b0cd9
+0, 1188000, 34944, 0x418e0eff
+0, 1194000, 34944, 0x9e1b07d8
+0, 1200000, 34944, 0x5590064a
+0, 1206000, 34944, 0x7a170b14
+0, 1212000, 34944, 0xf25709f0
+0, 1218000, 34944, 0x94fa099a
+0, 1224000, 34944, 0x081e06ae
+0, 1230000, 34944, 0xcfc40417
+0, 1236000, 34944, 0xed33096f
+0, 1242000, 34944, 0xd73a07e2
+0, 1248000, 34944, 0xc512077d
+0, 1254000, 34944, 0x27d7021d
+0, 1260000, 34944, 0xab59fd20
+0, 1266000, 34944, 0xcc2400b7
+0, 1272000, 34944, 0xcb3bfb99
+0, 1278000, 34944, 0x0974fb1a
+0, 1284000, 34944, 0xef79f8ba
+0, 1290000, 34944, 0xf932f3a2
+0, 1296000, 34944, 0xa32df1bc
+0, 1302000, 34944, 0xdbe0f532
+0, 1308000, 34944, 0x234cf142
+0, 1314000, 34944, 0xe68befd0
+0, 1320000, 34944, 0xe4e7ee45
+0, 1326000, 34944, 0x0283eff1
+0, 1332000, 34944, 0xc8d3f6db
+0, 1338000, 34944, 0x0aa6ee88
+0, 1344000, 34944, 0xcc3de527
+0, 1350000, 34944, 0x9db0ebef
+0, 1356000, 34944, 0xa207e9db
+0, 1362000, 34944, 0x35b3e74a
+0, 1368000, 34944, 0x1988e848
+0, 1374000, 34944, 0x727de73c
+0, 1380000, 34944, 0x05d5e709
+0, 1386000, 34944, 0x3214e4b2
+0, 1392000, 34944, 0xed85e0a9
+0, 1398000, 34944, 0xf6c9e100
+0, 1404000, 34944, 0x57a8dbaf
+0, 1410000, 34944, 0xc75fdf41
+0, 1416000, 34944, 0x736fde24
+0, 1422000, 34944, 0x8d4bde80
+0, 1428000, 34944, 0x3220dc86
+0, 1434000, 34944, 0xe498da85
+0, 1440000, 34944, 0x0655daed
+0, 1446000, 34944, 0xb22ad874
+0, 1452000, 34944, 0x8198d411
+0, 1458000, 34944, 0xd0d2d557
+0, 1464000, 34944, 0xd740d1ff
+0, 1470000, 34944, 0x2783d00e
+0, 1476000, 34944, 0x7abdcd6b
+0, 1482000, 34944, 0x2e47d1eb
+0, 1488000, 34944, 0xfe1bcf60
+0, 1494000, 34944, 0xf0f0d5bb
+0, 1500000, 34944, 0x9af7d581
+0, 1506000, 34944, 0xb325ca3d
+0, 1512000, 34944, 0xd88abfbd
+0, 1518000, 34944, 0xf2bab746
+0, 1524000, 34944, 0xac44a7dd
+0, 1530000, 34944, 0x609e9ea3
+0, 1536000, 34944, 0xa39993b9
+0, 1542000, 34944, 0x9c948911
+0, 1548000, 34944, 0x72f8822d
+0, 1554000, 34944, 0x7f3f7a8c
+0, 1560000, 34944, 0x7ab475f9
+0, 1566000, 34944, 0x536f73aa
+0, 1572000, 34944, 0x86cb71e5
+0, 1578000, 34944, 0x17157186
+0, 1584000, 34944, 0xe33671a4
+0, 1590000, 34944, 0xe33671a4
+0, 1596000, 34944, 0xe33671a4
+0, 1602000, 34944, 0xe33671a4
+0, 1608000, 34944, 0xe33671a4
+0, 1614000, 34944, 0xe33671a4
+0, 1620000, 34944, 0xe33671a4
+0, 1626000, 34944, 0xe33671a4
+0, 1632000, 34944, 0xe33671a4
+0, 1638000, 34944, 0xe33671a4
+0, 1644000, 34944, 0xe33671a4
+0, 1650000, 34944, 0xe33671a4
+0, 1656000, 34944, 0xe33671a4
+0, 1662000, 34944, 0xe33671a4
diff --git a/tests/ref/fate/ea-tgv-ima-ea-eacs b/tests/ref/fate/ea-tgv-ima-ea-eacs
new file mode 100644
index 0000000000..de73eefca4
--- /dev/null
+++ b/tests/ref/fate/ea-tgv-ima-ea-eacs
@@ -0,0 +1,94 @@
+0, 0, 230400, 0xfbf2581e
+1, 0, 5872, 0x00000000
+1, 5992, 5872, 0x00000000
+0, 6000, 230400, 0xfbf2581e
+1, 11984, 5872, 0x00000000
+0, 12000, 230400, 0xfbf2581e
+1, 17976, 5872, 0x00000000
+0, 18000, 230400, 0xfbf2581e
+1, 23967, 5872, 0x00000000
+0, 24000, 230400, 0xfbf2581e
+1, 29959, 5872, 0x00000000
+0, 30000, 230400, 0xfbf2581e
+1, 35951, 5872, 0x00000000
+0, 36000, 230400, 0xfbf2581e
+1, 41943, 5872, 0x00000000
+0, 42000, 230400, 0xfbf2581e
+1, 47935, 5872, 0x00000000
+0, 48000, 230400, 0xfbf2581e
+1, 53927, 5872, 0x00000000
+0, 54000, 230400, 0xfbf2581e
+1, 59918, 5872, 0x00000000
+0, 60000, 230400, 0xfbf2581e
+1, 65910, 5872, 0x00000000
+0, 66000, 230400, 0xfbf2581e
+1, 71902, 5872, 0x00000000
+0, 72000, 230400, 0xfbf2581e
+1, 77894, 5872, 0x00000000
+0, 78000, 230400, 0xfbf2581e
+1, 83886, 5872, 0x00000000
+0, 84000, 230400, 0xfbf2581e
+1, 89878, 5872, 0xc6f64777
+0, 90000, 230400, 0xf5a0a21d
+1, 95869, 5872, 0x7c9e60e8
+0, 96000, 230400, 0x909cc039
+1, 101861, 5872, 0x46525c54
+0, 102000, 230400, 0x14d899dd
+1, 107853, 5872, 0x842796bb
+0, 108000, 230400, 0x0d246edf
+1, 113845, 5872, 0xb1f6cbd5
+0, 114000, 230400, 0x5345fe0d
+1, 119837, 5872, 0x0261a74b
+0, 120000, 230400, 0x5abdff9a
+1, 125829, 5872, 0x8218b1f9
+0, 126000, 230400, 0x1730d973
+1, 131820, 5872, 0xd7a2cae6
+0, 132000, 230400, 0xec881be9
+1, 137812, 5872, 0x69d34562
+0, 138000, 230400, 0xf4216895
+1, 143804, 5872, 0x9303ec65
+0, 144000, 230400, 0x529d7a52
+1, 149796, 5872, 0xd5d963a1
+0, 150000, 230400, 0x93b4c7b9
+1, 155788, 5872, 0x0557e06f
+0, 156000, 230400, 0xedc65bcd
+1, 161780, 5872, 0x1eb48b41
+0, 162000, 230400, 0xf0fb54ae
+1, 167771, 5872, 0x70f5ca3f
+0, 168000, 230400, 0x27864ce9
+1, 173763, 5872, 0xd39e5c5e
+0, 174000, 230400, 0xcd05012d
+1, 179755, 5872, 0x29c59140
+0, 180000, 230400, 0x019b6d84
+1, 185747, 5872, 0x7d95e643
+0, 186000, 230400, 0xcc05d416
+1, 191739, 5872, 0x45353fd8
+0, 192000, 230400, 0xb04c0248
+1, 197731, 5872, 0xad7b1b27
+0, 198000, 230400, 0x6806eb92
+1, 203722, 5872, 0x1f0377b3
+0, 204000, 230400, 0x60e9c001
+1, 209714, 5872, 0x6074541e
+0, 210000, 230400, 0x9b040261
+1, 215706, 5872, 0xa4f5e892
+0, 216000, 230400, 0x6961fb90
+1, 221698, 5872, 0x084bc696
+0, 222000, 230400, 0xbf67ad24
+1, 227690, 5872, 0x67fdafce
+0, 228000, 230400, 0x2270f328
+1, 233682, 5872, 0x8dfd249d
+0, 234000, 230400, 0xd0c345f6
+1, 239673, 5872, 0x514184ee
+0, 240000, 230400, 0xfd159212
+1, 245665, 5872, 0xc0090b0d
+0, 246000, 230400, 0x085578ff
+1, 251657, 5872, 0xc1171cc8
+0, 252000, 230400, 0xcca8afa6
+1, 257649, 5872, 0x7d7dd07e
+0, 258000, 230400, 0x901ec91c
+1, 263641, 5872, 0xe6aa619c
+0, 264000, 230400, 0xf1cb99f3
+1, 269633, 5872, 0xd5aac0df
+0, 270000, 230400, 0x86d98f0c
+1, 275624, 5872, 0x3b68b390
+0, 276000, 230400, 0x52970700
diff --git a/tests/ref/fate/ea-tgv-ima-ea-sead b/tests/ref/fate/ea-tgv-ima-ea-sead
new file mode 100644
index 0000000000..bfa84194c2
--- /dev/null
+++ b/tests/ref/fate/ea-tgv-ima-ea-sead
@@ -0,0 +1,87 @@
+0, 0, 192000, 0xdfc2f225
+1, 0, 2944, 0x00000000
+1, 3004, 5888, 0x5ae3c2a4
+0, 6000, 192000, 0x059b57bd
+1, 9012, 5888, 0x158fbcb4
+0, 12000, 192000, 0x766cb086
+1, 15020, 5888, 0x3fc85d35
+0, 18000, 192000, 0x459e3bac
+1, 21029, 5888, 0x4667ec2b
+0, 24000, 192000, 0x5293e622
+1, 27037, 5888, 0x82744494
+0, 30000, 192000, 0x898b03f4
+1, 33045, 5888, 0x3b0cb86f
+0, 36000, 192000, 0xb184a627
+1, 39053, 5888, 0x29493fbb
+0, 42000, 192000, 0xa3fc650a
+1, 45061, 5888, 0xaa2d8595
+0, 48000, 192000, 0xea448589
+1, 51069, 5888, 0x2e563de6
+0, 54000, 192000, 0x700e2b76
+1, 57078, 5888, 0x225cca99
+0, 60000, 192000, 0xa1a1d66d
+1, 63086, 5888, 0x2b577599
+0, 66000, 192000, 0xd63bc8a1
+1, 69094, 5888, 0x3d967f32
+0, 72000, 192000, 0x5f08c023
+1, 75102, 5888, 0x16639a84
+0, 78000, 192000, 0x8b75ec3b
+1, 81110, 5888, 0x90549ba0
+0, 84000, 192000, 0x62728ce4
+1, 87118, 5888, 0xf46e6644
+0, 90000, 192000, 0xaa007941
+1, 93127, 5888, 0x39a073ec
+0, 96000, 192000, 0x55dc5b3b
+1, 99135, 5888, 0xb1d7a93a
+0, 102000, 192000, 0x72d836c2
+1, 105143, 5888, 0x25e9795b
+0, 108000, 192000, 0x1f2de2fc
+1, 111151, 5888, 0xbbc07644
+0, 114000, 192000, 0xb295dfdb
+1, 117159, 5888, 0x323f6a1b
+0, 120000, 192000, 0xe5c5f634
+1, 123167, 5888, 0x7cae130b
+0, 126000, 192000, 0x455a0464
+1, 129176, 5888, 0xd23bf9c6
+0, 132000, 192000, 0x3bf2340d
+1, 135184, 5888, 0x5f73ef35
+0, 138000, 192000, 0xe368f0fc
+1, 141192, 5888, 0xc66026be
+0, 144000, 192000, 0xfa7549c0
+1, 147200, 5888, 0xc8fdb539
+0, 150000, 192000, 0x4dd76f3d
+1, 153208, 5888, 0x94c6bfbd
+0, 156000, 192000, 0x50a49f6c
+1, 159216, 5888, 0xb77e1b83
+0, 162000, 192000, 0xb6072f65
+1, 165224, 5888, 0x6c6d6693
+0, 168000, 192000, 0x093ce1a8
+1, 171233, 5888, 0xd9f064d4
+0, 174000, 192000, 0x55afe3db
+1, 177241, 5888, 0x85dd990d
+0, 180000, 192000, 0x81c3bfab
+1, 183249, 5888, 0x385e021b
+0, 186000, 192000, 0x583ebd3d
+1, 189257, 5888, 0xac09fd02
+0, 192000, 192000, 0x2504f003
+1, 195265, 5888, 0xc6dcdff2
+0, 198000, 192000, 0x44ade2af
+1, 201273, 5888, 0x86a6944d
+0, 204000, 192000, 0x77cbcfd8
+1, 207282, 5888, 0x8587b964
+0, 210000, 192000, 0xac7ddfa1
+1, 213290, 5888, 0x2b0355ff
+0, 216000, 192000, 0x79f7cfe8
+1, 219298, 5888, 0xe4148a85
+0, 222000, 192000, 0xdf2898fd
+1, 225306, 5888, 0xdf02ed4f
+1, 231314, 5888, 0x87a54b15
+1, 237322, 5888, 0x3ad2be45
+1, 243331, 5888, 0x3a49c2c3
+1, 249339, 5888, 0xc2b66404
+1, 255347, 5888, 0xac3e234a
+1, 261355, 5888, 0x5dcf523b
+1, 267363, 5888, 0x2034b5d6
+1, 273371, 5888, 0x96882832
+1, 279380, 5888, 0x2be3d534
+1, 285388, 5888, 0xa841a49d
diff --git a/tests/ref/fate/ea-tqi-adpcm b/tests/ref/fate/ea-tqi-adpcm
new file mode 100644
index 0000000000..c79eed52bd
--- /dev/null
+++ b/tests/ref/fate/ea-tqi-adpcm
@@ -0,0 +1,52 @@
+0, 0, 115200, 0x375ec573
+1, 0, 5936, 0x00000000
+0, 6000, 115200, 0x375ec573
+1, 6057, 5824, 0x00000000
+0, 12000, 115200, 0x375ec573
+1, 12000, 5936, 0x00000000
+0, 18000, 115200, 0x375ec573
+1, 18057, 5824, 0x00000000
+0, 24000, 115200, 0x375ec573
+1, 24000, 5936, 0x00000000
+0, 30000, 115200, 0x375ec573
+1, 30057, 5824, 0x00000000
+0, 36000, 115200, 0x375ec573
+1, 36000, 5936, 0x00000000
+0, 42000, 115200, 0x375ec573
+1, 42057, 5824, 0x0f06f5bb
+0, 48000, 115200, 0x0b4d31bf
+1, 48000, 5936, 0xb0dbfc46
+0, 54000, 115200, 0xdd724598
+1, 54057, 5824, 0x9daa9f9c
+0, 60000, 115200, 0xc3077e75
+1, 60000, 5936, 0x61400d2f
+0, 66000, 115200, 0xbf70778a
+1, 66057, 5824, 0x34a5b0e3
+0, 72000, 115200, 0x117eb766
+1, 72000, 5936, 0x6e546f72
+0, 78000, 115200, 0x4617fbad
+1, 78057, 5824, 0x4f093b35
+0, 84000, 115200, 0x5f5b02d2
+1, 84000, 5936, 0x95b5b599
+0, 90000, 115200, 0x2a9c5325
+1, 90057, 5824, 0x75e15e60
+0, 96000, 115200, 0x14a89e2a
+1, 96000, 5936, 0xd1077d39
+0, 102000, 115200, 0xe69aa994
+1, 102057, 5824, 0x956e21ca
+0, 108000, 115200, 0xfbacf589
+1, 108000, 5936, 0x33bac234
+0, 114000, 115200, 0x1d714c6e
+1, 114057, 5824, 0x5df37824
+0, 120000, 115200, 0x6eff66cb
+1, 120000, 5936, 0xc174af24
+0, 126000, 115200, 0xee21c1cb
+1, 126057, 5824, 0xe5dc2159
+0, 132000, 115200, 0xce714ada
+1, 132000, 5936, 0x63ffc8b1
+0, 138000, 115200, 0xf89d56c3
+1, 138057, 5824, 0xefe4c365
+0, 144000, 115200, 0x65fd5e60
+1, 144000, 5936, 0x2174304d
+0, 150000, 115200, 0x0c256424
+0, 156000, 115200, 0xa9cdd8d2
diff --git a/tests/ref/fate/ea-vp60 b/tests/ref/fate/ea-vp60
new file mode 100644
index 0000000000..b5a70c3a0e
--- /dev/null
+++ b/tests/ref/fate/ea-vp60
@@ -0,0 +1,133 @@
+0, 0, 55296, 0x6a3202a3
+0, 3003, 55296, 0x2af202eb
+0, 6006, 55296, 0xa1a40388
+0, 9009, 55296, 0x61c90426
+0, 12012, 55296, 0x17720594
+0, 15015, 55296, 0x49440805
+0, 18018, 55296, 0x5b2e0d32
+0, 21021, 55296, 0x207891c1
+0, 24024, 55296, 0x502da4cd
+0, 27027, 55296, 0x75a22a75
+0, 30030, 55296, 0xd55099af
+0, 33033, 55296, 0x48778bb6
+0, 36036, 55296, 0xe76b7df7
+0, 39039, 55296, 0x5a049f33
+0, 42042, 55296, 0xc83d9b90
+0, 45045, 55296, 0x567877b8
+0, 48048, 55296, 0x334c7f6e
+0, 51051, 55296, 0x8717945c
+0, 54054, 55296, 0xe432831e
+0, 57057, 55296, 0x032e8d2d
+0, 60060, 55296, 0x37109fd6
+0, 63063, 55296, 0xe9b0b61b
+0, 66066, 55296, 0x7385dae8
+0, 69069, 55296, 0x74b8a9f5
+0, 72072, 55296, 0xbce2e218
+0, 75075, 55296, 0x0ab6c623
+0, 78078, 55296, 0x2234d6d6
+0, 81081, 55296, 0xd18be4d6
+0, 84084, 55296, 0x5247ecc9
+0, 87087, 55296, 0xc89f10ca
+0, 90090, 55296, 0x16181f87
+0, 93093, 55296, 0x893bfa85
+0, 96096, 55296, 0x1fd9f1c0
+0, 99099, 55296, 0xa2e8e6a9
+0, 102102, 55296, 0x1b42dfd5
+0, 105105, 55296, 0x0fa9f509
+0, 108108, 55296, 0x4449c216
+0, 111111, 55296, 0xb66baa36
+0, 114114, 55296, 0x38c19f3b
+0, 117117, 55296, 0xcdce83a0
+0, 120120, 55296, 0xac4ea82b
+0, 123123, 55296, 0xb77a6979
+0, 126126, 55296, 0xc8834ec2
+0, 129129, 55296, 0x181d3f0f
+0, 132132, 55296, 0x2ae04252
+0, 135135, 55296, 0x07633c18
+0, 138138, 55296, 0xdc6a3340
+0, 141141, 55296, 0xa456ebb1
+0, 144144, 55296, 0xbf7de5e2
+0, 147147, 55296, 0x54a1c39b
+0, 150150, 55296, 0x08fc9423
+0, 153153, 55296, 0x926f968a
+0, 156156, 55296, 0x5c908481
+0, 159159, 55296, 0x6b257f16
+0, 162162, 55296, 0xbaf8658a
+0, 165165, 55296, 0x61c957b1
+0, 168168, 55296, 0xa6d181ff
+0, 171171, 55296, 0xef476e69
+0, 174174, 55296, 0x74f72f9a
+0, 177177, 55296, 0x3a9328e9
+0, 180180, 55296, 0xbe962874
+0, 183183, 55296, 0x5f8b58cc
+0, 186186, 55296, 0x1e066d22
+0, 189189, 55296, 0x9ef72b34
+0, 192192, 55296, 0x525c2bb1
+0, 195195, 55296, 0x8e5a20a3
+0, 198198, 55296, 0x1c6723d0
+0, 201201, 55296, 0x2b1023c8
+0, 204204, 55296, 0x8f682691
+0, 207207, 55296, 0x3a0624f5
+0, 210210, 55296, 0xbc1046fb
+0, 213213, 55296, 0x2859470e
+0, 216216, 55296, 0x61d45a12
+0, 219219, 55296, 0xa68853b6
+0, 222222, 55296, 0x36543ce4
+0, 225225, 55296, 0x95b953d4
+0, 228228, 55296, 0x804b3c53
+0, 231231, 55296, 0x743960f6
+0, 234234, 55296, 0x23916b9c
+0, 237237, 55296, 0x8f5a59e3
+0, 240240, 55296, 0xf1285f83
+0, 243243, 55296, 0xde75640f
+0, 246246, 55296, 0xde146188
+0, 249249, 55296, 0xb5315cc9
+0, 252252, 55296, 0xa85f6861
+0, 255255, 55296, 0x4fda562f
+0, 258258, 55296, 0xa0185863
+0, 261261, 55296, 0xe4dc5a5f
+0, 264264, 55296, 0x8a2aabb6
+0, 267267, 55296, 0x3ba89b4f
+0, 270270, 55296, 0x82b07c21
+0, 273273, 55296, 0xb7998478
+0, 276276, 55296, 0xceca8046
+0, 279279, 55296, 0xe652b325
+0, 282282, 55296, 0xc26bb607
+0, 285285, 55296, 0x40c99200
+0, 288288, 55296, 0x61bc9b27
+0, 291291, 55296, 0x1e4baa30
+0, 294294, 55296, 0xd8a7adb0
+0, 297297, 55296, 0x0d0aa8fb
+0, 300300, 55296, 0x1f1ba33c
+0, 303303, 55296, 0xa000a80b
+0, 306306, 55296, 0xb49dd332
+0, 309309, 55296, 0x6b8ac499
+0, 312312, 55296, 0x9636ed15
+0, 315315, 55296, 0xa152f03d
+0, 318318, 55296, 0x47a8cfc7
+0, 321321, 55296, 0x9f94c82a
+0, 324324, 55296, 0xe208d626
+0, 327327, 55296, 0x28cc0616
+0, 330330, 55296, 0xc545179e
+0, 333333, 55296, 0xdf9205af
+0, 336336, 55296, 0x31d6ed99
+0, 339339, 55296, 0x866bf86e
+0, 342342, 55296, 0x0490fbd1
+0, 345345, 55296, 0xe1102987
+0, 348348, 55296, 0x7f860c29
+0, 351351, 55296, 0xc3a91f7a
+0, 354354, 55296, 0x69641a52
+0, 357357, 55296, 0x05b12204
+0, 360360, 55296, 0x715b6206
+0, 363363, 55296, 0xdcf55139
+0, 366366, 55296, 0x1369f746
+0, 369369, 55296, 0xc1533ef5
+0, 372372, 55296, 0xc00ff85f
+0, 375375, 55296, 0x4f5f70dc
+0, 378378, 55296, 0x85720ccc
+0, 381381, 55296, 0xfdff0780
+0, 384384, 55296, 0x57ef04ff
+0, 387387, 55296, 0xbf94041f
+0, 390390, 55296, 0x4cee0392
+0, 393393, 55296, 0x80160314
+0, 396396, 55296, 0x396802af
diff --git a/tests/ref/fate/ea-vp61 b/tests/ref/fate/ea-vp61
new file mode 100644
index 0000000000..bddaf42d5d
--- /dev/null
+++ b/tests/ref/fate/ea-vp61
@@ -0,0 +1,120 @@
+0, 0, 18816, 0xc3fe9fc7
+0, 3003, 18816, 0x6ddf972f
+0, 6006, 18816, 0x72808b6e
+0, 9009, 18816, 0x8f09857f
+0, 12012, 18816, 0xe8027c00
+0, 15015, 18816, 0x308670cf
+0, 18018, 18816, 0x0e656170
+0, 21021, 18816, 0x594e54a4
+0, 24024, 18816, 0x36944b05
+0, 27027, 18816, 0x87013a34
+0, 30030, 18816, 0xc0f32f0d
+0, 33033, 18816, 0x911f1951
+0, 36036, 18816, 0xad590d59
+0, 39039, 18816, 0x943afff0
+0, 42042, 18816, 0x7f5ef719
+0, 45045, 18816, 0x889feafc
+0, 48048, 18816, 0x4334e12b
+0, 51051, 18816, 0xd080cc67
+0, 54054, 18816, 0xc3c1c04c
+0, 57057, 18816, 0x816bae4b
+0, 60060, 18816, 0xed23a5c7
+0, 63063, 18816, 0x86689c2f
+0, 66066, 18816, 0x63408c52
+0, 69069, 18816, 0x399c79d6
+0, 72072, 18816, 0xf0ff63bf
+0, 75075, 18816, 0xa6185353
+0, 78078, 18816, 0xe33d46fc
+0, 81081, 18816, 0xd58d3c6d
+0, 84084, 18816, 0xc94a27ea
+0, 87087, 18816, 0x62f31c59
+0, 90090, 18816, 0x71880825
+0, 93093, 18816, 0xa6ce01d7
+0, 96096, 18816, 0xa1d4fc06
+0, 99099, 18816, 0xc208f570
+0, 102102, 18816, 0xc862e637
+0, 105105, 18816, 0xcf9ed93a
+0, 108108, 18816, 0x85a8cbcc
+0, 111111, 18816, 0x650ac6c1
+0, 114114, 18816, 0xb418c12b
+0, 117117, 18816, 0x9fe5b412
+0, 120120, 18816, 0x80f6a7c1
+0, 123123, 18816, 0x283299e4
+0, 126126, 18816, 0x15429202
+0, 129129, 18816, 0x9f0f8c8a
+0, 132132, 18816, 0x8e828811
+0, 135135, 18816, 0xaac67993
+0, 138138, 18816, 0x8f3b6f4f
+0, 141141, 18816, 0x0b125f95
+0, 144144, 18816, 0xb4e75d14
+0, 147147, 18816, 0x1bac5933
+0, 150150, 18816, 0x300b521b
+0, 153153, 18816, 0x51174590
+0, 156156, 18816, 0x03df3d70
+0, 159159, 18816, 0x338a344a
+0, 162162, 18816, 0x45ad328d
+0, 165165, 18816, 0x2d4e321a
+0, 168168, 18816, 0x15932563
+0, 171171, 18816, 0x9b4f1c76
+0, 174174, 18816, 0x8e31153c
+0, 177177, 18816, 0xfb391185
+0, 180180, 18816, 0x93ee0cdc
+0, 183183, 18816, 0xddeb0642
+0, 186186, 18816, 0xda6cf529
+0, 189189, 18816, 0xdbd6f085
+0, 192192, 18816, 0x357aec81
+0, 195195, 18816, 0x36eaecca
+0, 198198, 18816, 0x6535ee02
+0, 201201, 18816, 0xb7dfe466
+0, 204204, 18816, 0x58d3d86b
+0, 207207, 18816, 0xd8aad64b
+0, 210210, 18816, 0x37ecd588
+0, 213213, 18816, 0xe2f9cee4
+0, 216216, 18816, 0xcd1ac93e
+0, 219219, 18816, 0x18e1be81
+0, 222222, 18816, 0xa05bb9d7
+0, 225225, 18816, 0xe0ebb663
+0, 228228, 18816, 0x7d61b39a
+0, 231231, 18816, 0x01b8acb5
+0, 234234, 18816, 0x7577aa8b
+0, 237237, 18816, 0x6bbda4b5
+0, 240240, 18816, 0xd0cc9b29
+0, 243243, 18816, 0xb2858cbb
+0, 246246, 18816, 0x93608c9d
+0, 249249, 18816, 0x80c38e03
+0, 252252, 18816, 0x37d6843c
+0, 255255, 18816, 0xacc47b9a
+0, 258258, 18816, 0xc4317178
+0, 261261, 18816, 0xc92f6ebd
+0, 264264, 18816, 0xc1217a3b
+0, 267267, 18816, 0x03a37ccb
+0, 270270, 18816, 0xf38c71a2
+0, 273273, 18816, 0x68ff697d
+0, 276276, 18816, 0x0fe358e5
+0, 279279, 18816, 0x58455870
+0, 282282, 18816, 0xc9075ce7
+0, 285285, 18816, 0x16685773
+0, 288288, 18816, 0x1b434c0e
+0, 291291, 18816, 0x008e4c97
+0, 294294, 18816, 0xb4d04f4f
+0, 297297, 18816, 0xc8c94848
+0, 300300, 18816, 0x64664191
+0, 303303, 18816, 0xd591367f
+0, 306306, 18816, 0xc70d3141
+0, 309309, 18816, 0x8d492655
+0, 312312, 18816, 0x7e7f22c8
+0, 315315, 18816, 0x335d23f9
+0, 318318, 18816, 0x0a7f22b6
+0, 321321, 18816, 0x6cf51cb2
+0, 324324, 18816, 0x312516e1
+0, 327327, 18816, 0x8a3c0c7a
+0, 330330, 18816, 0x997d0d20
+0, 333333, 18816, 0xffbd117e
+0, 336336, 18816, 0x855808ca
+0, 339339, 18816, 0xe335fb94
+0, 342342, 18816, 0x12e6f95c
+0, 345345, 18816, 0x2d62f845
+0, 348348, 18816, 0x7e63f591
+0, 351351, 18816, 0x7463f175
+0, 354354, 18816, 0x1521e0d2
+0, 357357, 18816, 0x96a8dbce
diff --git a/tests/ref/fate/feeble-dxa b/tests/ref/fate/feeble-dxa
new file mode 100644
index 0000000000..309603233e
--- /dev/null
+++ b/tests/ref/fate/feeble-dxa
@@ -0,0 +1,65 @@
+1, 0, 1000, 0x64cd9403
+0, 0, 921600, 0x0d03844f
+1, 4082, 1000, 0xa4ef8a9d
+1, 8163, 1000, 0x75c19868
+0, 9000, 921600, 0x0d03844f
+1, 12245, 1000, 0x93db6f79
+1, 16327, 1000, 0x6835625d
+0, 18000, 921600, 0x649cdcea
+1, 20408, 1000, 0xb3affa8f
+1, 24490, 1000, 0x159fdcc8
+0, 27000, 921600, 0x649cdcea
+1, 28571, 1000, 0x79f9f7f1
+1, 32653, 1000, 0xd7d1131e
+0, 36000, 921600, 0x9c7f22e8
+1, 36735, 1000, 0x52a6f797
+1, 40816, 1000, 0x748202ca
+1, 44898, 1000, 0x0ef92449
+0, 45000, 921600, 0x9c7f22e8
+1, 48980, 1000, 0x6a3760ab
+1, 53061, 1000, 0xce5c5abf
+0, 54000, 921600, 0x3451514a
+1, 57143, 1000, 0x23396792
+1, 61224, 1000, 0xa5276238
+0, 63000, 921600, 0x3451514a
+1, 65306, 1000, 0x288adf1b
+1, 69388, 1000, 0xe7de6fb2
+0, 72000, 921600, 0x8f19f600
+1, 73469, 1000, 0x2c2c707f
+1, 77551, 1000, 0xd66d6daf
+0, 81000, 921600, 0x8f19f600
+1, 81633, 1000, 0xbcea7d64
+1, 85714, 1000, 0x766feea5
+1, 89796, 1000, 0xd2e1d63a
+0, 90000, 921600, 0x07e7445b
+1, 93878, 1000, 0x2f7ef4ed
+1, 97959, 1000, 0xb655cba4
+0, 99000, 921600, 0x07e7445b
+1, 102041, 1000, 0x4507d37b
+1, 106122, 1000, 0x0c57f794
+0, 108000, 921600, 0x873d1227
+1, 110204, 1000, 0x0ecbe5cc
+1, 114286, 1000, 0x9bf6e345
+0, 117000, 921600, 0x873d1227
+1, 118367, 1000, 0xc461443c
+1, 122449, 1000, 0xad9657bf
+0, 126000, 921600, 0xbef62d86
+1, 126531, 1000, 0x466fe91c
+1, 130612, 1000, 0x9ee377fe
+1, 134694, 1000, 0x09956428
+0, 135000, 921600, 0xbef62d86
+1, 138776, 1000, 0x9b285f0a
+1, 142857, 1000, 0x0a3e61a6
+0, 144000, 921600, 0xcf84fee4
+1, 146939, 1000, 0xacc25d6b
+1, 151020, 1000, 0x377be319
+0, 153000, 921600, 0xcf84fee4
+1, 155102, 1000, 0xe4890504
+1, 159184, 1000, 0xe90a6497
+0, 162000, 921600, 0x5639e670
+1, 163265, 1000, 0xd00fe950
+1, 167347, 1000, 0xf195eb44
+0, 171000, 921600, 0x5639e670
+1, 171429, 1000, 0xa491f3ef
+1, 175510, 1000, 0x2c036e18
+1, 179592, 1000, 0x52d65e2a
diff --git a/tests/ref/fate/film-cvid-pcm-stereo-8bit b/tests/ref/fate/film-cvid-pcm-stereo-8bit
new file mode 100644
index 0000000000..ebe0fc45ca
--- /dev/null
+++ b/tests/ref/fate/film-cvid-pcm-stereo-8bit
@@ -0,0 +1,247 @@
+1, 0, 88192, 0x23bb50ae
+0, 0, 107520, 0xa6c9fdd2
+0, 3000, 107520, 0x61eb28c1
+0, 6000, 107520, 0x45e20af7
+0, 9000, 107520, 0x45e20af7
+0, 12000, 107520, 0x366970fc
+0, 15000, 107520, 0x366970fc
+0, 18000, 107520, 0xa392bcb3
+0, 21000, 107520, 0xa392bcb3
+0, 24000, 107520, 0xcf7bac98
+0, 27000, 107520, 0xcf7bac98
+0, 30000, 107520, 0x222eba53
+0, 33000, 107520, 0x222eba53
+0, 36000, 107520, 0x74e255a1
+0, 39000, 107520, 0x74e255a1
+0, 42000, 107520, 0xc19eec6f
+1, 44996, 44112, 0x79600f01
+0, 45000, 107520, 0xc19eec6f
+0, 48000, 107520, 0xa3880681
+0, 51000, 107520, 0xa3880681
+0, 54000, 107520, 0x957878db
+0, 57000, 107520, 0x957878db
+0, 60000, 107520, 0x18340692
+0, 63000, 107520, 0x18340692
+0, 66000, 107520, 0x9970f24d
+1, 67502, 44096, 0x09dbf7aa
+0, 69000, 107520, 0x9970f24d
+0, 72000, 107520, 0xf08618aa
+0, 75000, 107520, 0xf08618aa
+0, 78000, 107520, 0xee7324f0
+0, 81000, 107520, 0xee7324f0
+0, 84000, 107520, 0xe15025b3
+0, 87000, 107520, 0xe15025b3
+1, 90000, 44112, 0x18fed048
+0, 90000, 107520, 0x8afa312e
+0, 93000, 107520, 0x8afa312e
+0, 96000, 107520, 0x717a7d0f
+0, 99000, 107520, 0x717a7d0f
+0, 102000, 107520, 0x355c6e23
+0, 105000, 107520, 0x355c6e23
+0, 108000, 107520, 0x7015a50f
+0, 111000, 107520, 0x7015a50f
+1, 112506, 44112, 0x030d35ef
+0, 114000, 107520, 0xcdfc1a16
+0, 117000, 107520, 0xcdfc1a16
+0, 120000, 107520, 0x38d929e7
+0, 123000, 107520, 0x38d929e7
+0, 126000, 107520, 0x52913423
+0, 129000, 107520, 0x52913423
+0, 132000, 107520, 0xe2c91c10
+0, 135000, 107520, 0xe2c91c10
+1, 135012, 44112, 0xc23154d5
+0, 138000, 107520, 0x85516e9c
+0, 141000, 107520, 0x85516e9c
+0, 144000, 107520, 0xd1626030
+0, 147000, 107520, 0xd1626030
+0, 150000, 107520, 0xea7b16de
+0, 153000, 107520, 0xea7b16de
+0, 156000, 107520, 0xa33eaa0d
+1, 157518, 44064, 0xe4713ee7
+0, 159000, 107520, 0xa33eaa0d
+0, 162000, 107520, 0x8e3be6a6
+0, 165000, 107520, 0x8e3be6a6
+0, 168000, 107520, 0x14147bd6
+0, 171000, 107520, 0x14147bd6
+0, 174000, 107520, 0x07d54bec
+0, 177000, 107520, 0x07d54bec
+1, 180000, 44112, 0xddc19d91
+0, 180000, 107520, 0xe287a0a7
+0, 183000, 107520, 0xe287a0a7
+0, 186000, 107520, 0xc023a14d
+0, 189000, 107520, 0xc023a14d
+0, 192000, 107520, 0x2437085d
+0, 195000, 107520, 0x2437085d
+0, 198000, 107520, 0x63823918
+0, 201000, 107520, 0x63823918
+1, 202506, 44112, 0x9591522d
+0, 204000, 107520, 0xbc17e198
+0, 207000, 107520, 0xbc17e198
+0, 210000, 107520, 0x9d99bc81
+0, 213000, 107520, 0x9d99bc81
+0, 216000, 107520, 0x7e4ec71e
+0, 219000, 107520, 0x7e4ec71e
+0, 222000, 107520, 0x55b98376
+0, 225000, 107520, 0x55b98376
+1, 225012, 44112, 0x90deb013
+0, 228000, 107520, 0x356d8e9e
+0, 231000, 107520, 0x356d8e9e
+0, 234000, 107520, 0xf77e8a61
+0, 237000, 107520, 0xf77e8a61
+0, 240000, 107520, 0x5ae7c8c7
+0, 243000, 107520, 0x5ae7c8c7
+0, 246000, 107520, 0x8acf9322
+1, 247518, 44064, 0x3842d420
+0, 249000, 107520, 0x8acf9322
+0, 252000, 107520, 0x40a9177e
+0, 255000, 107520, 0x40a9177e
+0, 258000, 107520, 0x3e0e4d8d
+0, 261000, 107520, 0x3e0e4d8d
+0, 264000, 107520, 0xd268865b
+0, 267000, 107520, 0xd268865b
+1, 270000, 44112, 0x99c8c3d9
+0, 270000, 107520, 0x89a4efeb
+0, 273000, 107520, 0x89a4efeb
+0, 276000, 107520, 0x70ca2478
+0, 279000, 107520, 0x70ca2478
+0, 282000, 107520, 0xcc9ec981
+0, 285000, 107520, 0xcc9ec981
+0, 288000, 107520, 0xf0648459
+0, 291000, 107520, 0xf0648459
+1, 292506, 44112, 0xffaf3824
+0, 294000, 107520, 0x7e4a4cca
+0, 297000, 107520, 0x7e4a4cca
+0, 300000, 107520, 0xb315dc65
+0, 303000, 107520, 0xb315dc65
+0, 306000, 107520, 0x2aecc7b4
+0, 309000, 107520, 0x2aecc7b4
+0, 312000, 107520, 0x81742f51
+0, 315000, 107520, 0x81742f51
+1, 315012, 44112, 0x3dbe1aef
+0, 318000, 107520, 0x3a1d7571
+0, 321000, 107520, 0x3a1d7571
+0, 324000, 107520, 0x3a1d7571
+0, 327000, 107520, 0x3a1d7571
+0, 330000, 107520, 0x3a1d7571
+0, 333000, 107520, 0x3a1d7571
+0, 336000, 107520, 0x3a1d7571
+1, 337518, 44064, 0xed2c7dfb
+0, 339000, 107520, 0x3a1d7571
+0, 342000, 107520, 0x3a1d7571
+0, 345000, 107520, 0x3a1d7571
+0, 348000, 107520, 0x3a1d7571
+0, 351000, 107520, 0x3a1d7571
+0, 354000, 107520, 0x3a1d7571
+0, 357000, 107520, 0x3a1d7571
+1, 360000, 44112, 0x9e475274
+0, 360000, 107520, 0xe974733e
+0, 363000, 107520, 0xe974733e
+0, 366000, 107520, 0x999c6fbf
+0, 369000, 107520, 0x999c6fbf
+0, 372000, 107520, 0x26b56b6e
+0, 375000, 107520, 0x26b56b6e
+0, 378000, 107520, 0xc9f9647b
+0, 381000, 107520, 0xc9f9647b
+1, 382506, 44112, 0x541f05d4
+0, 384000, 107520, 0x6d025d00
+0, 387000, 107520, 0x6d025d00
+0, 390000, 107520, 0xf9c056c1
+0, 393000, 107520, 0xf9c056c1
+0, 396000, 107520, 0xa5cc4d0b
+0, 399000, 107520, 0xa5cc4d0b
+0, 402000, 107520, 0x1a4c4236
+0, 405000, 107520, 0x1a4c4236
+1, 405012, 44112, 0x09e39025
+0, 408000, 107520, 0xa9d538b6
+0, 411000, 107520, 0xa9d538b6
+0, 414000, 107520, 0x14682d00
+0, 417000, 107520, 0x14682d00
+0, 420000, 107520, 0x6236204f
+0, 423000, 107520, 0x6236204f
+0, 426000, 107520, 0x303e14aa
+1, 427518, 44064, 0xdc111087
+0, 429000, 107520, 0x303e14aa
+0, 432000, 107520, 0x943b0837
+0, 435000, 107520, 0x943b0837
+0, 438000, 107520, 0xfce5fd07
+0, 441000, 107520, 0xfce5fd07
+0, 444000, 107520, 0xd993f193
+0, 447000, 107520, 0xd993f193
+1, 450000, 44112, 0xb8f86e48
+0, 450000, 107520, 0x4d48e7b4
+0, 453000, 107520, 0x4d48e7b4
+0, 456000, 107520, 0x61ccdf83
+0, 459000, 107520, 0x61ccdf83
+0, 462000, 107520, 0xfb4fd608
+0, 465000, 107520, 0xfb4fd608
+0, 468000, 107520, 0x5efdcdb3
+0, 471000, 107520, 0x5efdcdb3
+1, 472506, 44112, 0xa1e0c75c
+0, 474000, 107520, 0xb03ec886
+0, 477000, 107520, 0xb03ec886
+0, 480000, 107520, 0xf464c343
+0, 483000, 107520, 0xf464c343
+0, 486000, 107520, 0xf464c343
+0, 489000, 107520, 0xf464c343
+0, 492000, 107520, 0xf464c343
+0, 495000, 107520, 0xf464c343
+1, 495012, 44112, 0x0654dcb0
+0, 498000, 107520, 0xf464c343
+0, 501000, 107520, 0xf464c343
+0, 504000, 107520, 0xf464c343
+0, 507000, 107520, 0xf464c343
+0, 510000, 107520, 0xf464c343
+0, 513000, 107520, 0xf464c343
+0, 516000, 107520, 0xf464c343
+1, 517518, 44064, 0xb921e11a
+0, 519000, 107520, 0xf464c343
+0, 522000, 107520, 0xf464c343
+0, 525000, 107520, 0xf464c343
+0, 528000, 107520, 0xf464c343
+0, 531000, 107520, 0xf464c343
+0, 534000, 107520, 0xf464c343
+0, 537000, 107520, 0xf464c343
+1, 540000, 44112, 0xe0ac619f
+0, 540000, 107520, 0xf464c343
+0, 543000, 107520, 0xf464c343
+0, 546000, 107520, 0xf2b2c712
+0, 549000, 107520, 0xf2b2c712
+0, 552000, 107520, 0xf2b2c712
+0, 555000, 107520, 0xf2b2c712
+0, 558000, 107520, 0xf2b2c712
+0, 561000, 107520, 0xf2b2c712
+1, 562506, 44112, 0xb07aa65c
+0, 564000, 107520, 0xf2b2c712
+0, 567000, 107520, 0xf2b2c712
+0, 570000, 107520, 0xb95e6bc8
+0, 573000, 107520, 0xb95e6bc8
+0, 576000, 107520, 0x33feee37
+0, 579000, 107520, 0x33feee37
+0, 582000, 107520, 0x36ee3cd5
+0, 585000, 107520, 0x36ee3cd5
+1, 585012, 44112, 0x24610ff0
+0, 588000, 107520, 0x59096471
+0, 591000, 107520, 0x59096471
+0, 594000, 107520, 0x53b470c6
+0, 597000, 107520, 0x53b470c6
+0, 600000, 107520, 0xdb7c64ff
+0, 603000, 107520, 0xdb7c64ff
+0, 606000, 107520, 0xe5a1596a
+1, 607518, 44064, 0x00000000
+0, 609000, 107520, 0xe5a1596a
+0, 612000, 107520, 0x8c8942eb
+0, 615000, 107520, 0x8c8942eb
+0, 618000, 107520, 0x5ecc379e
+0, 621000, 107520, 0x5ecc379e
+0, 624000, 107520, 0xea09432a
+0, 627000, 107520, 0xea09432a
+1, 630000, 44112, 0x00000000
+0, 630000, 107520, 0xe01e6b73
+0, 633000, 107520, 0xe01e6b73
+0, 636000, 107520, 0x1d13bba8
+0, 639000, 107520, 0x1d13bba8
+0, 642000, 107520, 0x3a993a6c
+0, 645000, 107520, 0x3a993a6c
+0, 648000, 107520, 0x2ede041a
+0, 651000, 107520, 0x2ede041a
+1, 652506, 8800, 0x00000000
diff --git a/tests/ref/fate/flic-af11-palette-change b/tests/ref/fate/flic-af11-palette-change
new file mode 100644
index 0000000000..ac609b8fc7
--- /dev/null
+++ b/tests/ref/fate/flic-af11-palette-change
@@ -0,0 +1,116 @@
+0, 0, 192000, 0x64da83e8
+0, 2571, 192000, 0xf59ccccc
+0, 5143, 192000, 0xaaa06c5c
+0, 7714, 192000, 0xa98f82c0
+0, 10286, 192000, 0x164fbbdc
+0, 12857, 192000, 0x0b3abc0c
+0, 15429, 192000, 0x47661943
+0, 18000, 192000, 0x30711074
+0, 20571, 192000, 0x67684a84
+0, 23143, 192000, 0x1d9afa70
+0, 25714, 192000, 0x4fd28e78
+0, 28286, 192000, 0x9bc5c8cc
+0, 30857, 192000, 0xcf268b6c
+0, 33429, 192000, 0xdfe65fd4
+0, 36000, 192000, 0x47e75404
+0, 38571, 192000, 0xb3b5b448
+0, 41143, 192000, 0x826c94b4
+0, 43714, 192000, 0x158e95f8
+0, 46286, 192000, 0x576f031f
+0, 48857, 192000, 0xea3399e8
+0, 51429, 192000, 0x76b1e224
+0, 54000, 192000, 0x290073db
+0, 56571, 192000, 0x83741abf
+0, 59143, 192000, 0x50f9c4ec
+0, 61714, 192000, 0x6d8fdac0
+0, 64286, 192000, 0xe26e2600
+0, 66857, 192000, 0xbeb0e11c
+0, 69429, 192000, 0x38282fd4
+0, 72000, 192000, 0x13d0b790
+0, 74571, 192000, 0x0cf8fca9
+0, 77143, 192000, 0x64da83e8
+0, 79714, 192000, 0xf59ccccc
+0, 82286, 192000, 0xaaa06c5c
+0, 84857, 192000, 0xa98f82c0
+0, 87429, 192000, 0x164fbbdc
+0, 90000, 192000, 0x0b3abc0c
+0, 92571, 192000, 0x47661943
+0, 95143, 192000, 0x30711074
+0, 97714, 192000, 0x67684a84
+0, 100286, 192000, 0x1d9afa70
+0, 102857, 192000, 0x4fd28e78
+0, 105429, 192000, 0x9bc5c8cc
+0, 108000, 192000, 0xcf268b6c
+0, 110571, 192000, 0xdfe65fd4
+0, 113143, 192000, 0x47e75404
+0, 115714, 192000, 0xb3b5b448
+0, 118286, 192000, 0x826c94b4
+0, 120857, 192000, 0x158e95f8
+0, 123429, 192000, 0x576f031f
+0, 126000, 192000, 0xea3399e8
+0, 128571, 192000, 0x76b1e224
+0, 131143, 192000, 0x290073db
+0, 133714, 192000, 0x83741abf
+0, 136286, 192000, 0x50f9c4ec
+0, 138857, 192000, 0x6d8fdac0
+0, 141429, 192000, 0xe26e2600
+0, 144000, 192000, 0xbeb0e11c
+0, 146571, 192000, 0x38282fd4
+0, 149143, 192000, 0x13d0b790
+0, 151714, 192000, 0x0cf8fca9
+0, 154286, 192000, 0x64da83e8
+0, 156857, 192000, 0xf59ccccc
+0, 159429, 192000, 0xaaa06c5c
+0, 162000, 192000, 0xa98f82c0
+0, 164571, 192000, 0x164fbbdc
+0, 167143, 192000, 0x0b3abc0c
+0, 169714, 192000, 0x47661943
+0, 172286, 192000, 0x30711074
+0, 174857, 192000, 0x67684a84
+0, 177429, 192000, 0x1d9afa70
+0, 180000, 192000, 0x4fd28e78
+0, 182571, 192000, 0x9bc5c8cc
+0, 185143, 192000, 0xcf268b6c
+0, 187714, 192000, 0xdfe65fd4
+0, 190286, 192000, 0x47e75404
+0, 192857, 192000, 0xb3b5b448
+0, 195429, 192000, 0x826c94b4
+0, 198000, 192000, 0x158e95f8
+0, 200571, 192000, 0x576f031f
+0, 203143, 192000, 0xea3399e8
+0, 205714, 192000, 0x76b1e224
+0, 208286, 192000, 0x290073db
+0, 210857, 192000, 0x83741abf
+0, 213429, 192000, 0x50f9c4ec
+0, 216000, 192000, 0x6d8fdac0
+0, 218571, 192000, 0xe26e2600
+0, 221143, 192000, 0xbeb0e11c
+0, 223714, 192000, 0x38282fd4
+0, 226286, 192000, 0x13d0b790
+0, 228857, 192000, 0x0cf8fca9
+0, 231429, 192000, 0xfcb10883
+0, 234000, 192000, 0xfcb10883
+0, 236571, 192000, 0xd0ba80c4
+0, 239143, 192000, 0xd0ba80c4
+0, 241714, 192000, 0x690520d9
+0, 244286, 192000, 0x690520d9
+0, 246857, 192000, 0x5b621c3f
+0, 249429, 192000, 0x5b621c3f
+0, 252000, 192000, 0x689e231f
+0, 254571, 192000, 0x689e231f
+0, 257143, 192000, 0x20653ff2
+0, 259714, 192000, 0x20653ff2
+0, 262286, 192000, 0xc18b3231
+0, 264857, 192000, 0xc18b3231
+0, 267429, 192000, 0x6d87ec3d
+0, 270000, 192000, 0x6d87ec3d
+0, 272571, 192000, 0x1c5b53d6
+0, 275143, 192000, 0x1c5b53d6
+0, 277714, 192000, 0x152fdf12
+0, 280286, 192000, 0xde187291
+0, 282857, 192000, 0x167617a5
+0, 285429, 192000, 0x5067b8de
+0, 288000, 192000, 0xd02ae54e
+0, 290571, 192000, 0x0d6e9402
+0, 293143, 192000, 0xa8e98616
+0, 295714, 192000, 0x04762d1a
diff --git a/tests/ref/fate/flic-af12 b/tests/ref/fate/flic-af12
new file mode 100644
index 0000000000..4c3c535939
--- /dev/null
+++ b/tests/ref/fate/flic-af12
@@ -0,0 +1,27 @@
+0, 0, 921600, 0x50a87396
+0, 6480, 921600, 0xa6e65d9e
+0, 12960, 921600, 0x05956f62
+0, 19440, 921600, 0xffd6a5d7
+0, 25920, 921600, 0xaab0a179
+0, 32400, 921600, 0x289db2db
+0, 38880, 921600, 0x3d3840cf
+0, 45360, 921600, 0xec0a4142
+0, 51840, 921600, 0x713a9f65
+0, 58320, 921600, 0x28a8f0cd
+0, 64800, 921600, 0x0fd95ba9
+0, 71280, 921600, 0xa744bdfd
+0, 77760, 921600, 0x3cdea2a5
+0, 84240, 921600, 0xe7d671e4
+0, 90720, 921600, 0x75824cdf
+0, 97200, 921600, 0x82067d95
+0, 103680, 921600, 0xee143a4c
+0, 110160, 921600, 0xa53d3f2b
+0, 116640, 921600, 0xb491c0c5
+0, 123120, 921600, 0x6aaaef07
+0, 129600, 921600, 0xad23cca8
+0, 136080, 921600, 0xdce91bd8
+0, 142560, 921600, 0x1a1499bc
+0, 149040, 921600, 0x4cbe505a
+0, 155520, 921600, 0x24006f65
+0, 162000, 921600, 0x0711906e
+0, 168480, 921600, 0x50a87396
diff --git a/tests/ref/fate/flic-magiccarpet b/tests/ref/fate/flic-magiccarpet
new file mode 100644
index 0000000000..a7d9ab9c07
--- /dev/null
+++ b/tests/ref/fate/flic-magiccarpet
@@ -0,0 +1,42 @@
+0, 0, 192000, 0x00000000
+0, 6429, 192000, 0x9c057d9c
+0, 12857, 192000, 0xab1aacaf
+0, 19286, 192000, 0x49a1dccd
+0, 25714, 192000, 0xebb7e245
+0, 32143, 192000, 0x6287759e
+0, 38571, 192000, 0xbf007410
+0, 45000, 192000, 0x6c72b247
+0, 51429, 192000, 0x4c26a8c3
+0, 57857, 192000, 0x99f06050
+0, 64286, 192000, 0x663f2d23
+0, 70714, 192000, 0x813c3a1f
+0, 77143, 192000, 0x6d6cfbe7
+0, 83571, 192000, 0x7b04163a
+0, 90000, 192000, 0x6792e679
+0, 96429, 192000, 0x939ac626
+0, 102857, 192000, 0xc7a139c0
+0, 109286, 192000, 0xcac7ef0c
+0, 115714, 192000, 0xf4ec59e0
+0, 122143, 192000, 0x56060f59
+0, 128571, 192000, 0xf45ecb3b
+0, 135000, 192000, 0xe7e634ff
+0, 141429, 192000, 0x7ac04aa4
+0, 147857, 192000, 0x4eaba5a1
+0, 154286, 192000, 0x89b84e25
+0, 160714, 192000, 0xc368ec1e
+0, 167143, 192000, 0xeeafb59e
+0, 173571, 192000, 0x0b630619
+0, 180000, 192000, 0x59cb8954
+0, 186429, 192000, 0x16b2875f
+0, 192857, 192000, 0x524e32bd
+0, 199286, 192000, 0x96000ba2
+0, 205714, 192000, 0x18ec28af
+0, 212143, 192000, 0x2609c56c
+0, 218571, 192000, 0xff25bb5a
+0, 225000, 192000, 0xb19a8819
+0, 231429, 192000, 0xa5ff8727
+0, 237857, 192000, 0xe83f6289
+0, 244286, 192000, 0xc6cb4903
+0, 250714, 192000, 0xa4d93eb5
+0, 257143, 192000, 0xec84ef6c
+0, 263571, 192000, 0x00000000
diff --git a/tests/ref/fate/fraps-v0 b/tests/ref/fate/fraps-v0
new file mode 100644
index 0000000000..bcf6e2ecb5
--- /dev/null
+++ b/tests/ref/fate/fraps-v0
@@ -0,0 +1,20 @@
+0, 0, 101088, 0x7bf448f8
+0, 3600, 101088, 0x1ba749ec
+0, 7200, 101088, 0x94eb4dc4
+0, 10800, 101088, 0xd80b4f54
+0, 14400, 101088, 0x6fd44fff
+0, 18000, 101088, 0xf30e4f12
+0, 21600, 101088, 0x67a04fef
+0, 25200, 101088, 0xd92b4f8e
+0, 28800, 101088, 0x92cd4cde
+0, 32400, 101088, 0x93a34973
+0, 36000, 101088, 0x79a646cb
+0, 39600, 101088, 0x5d9c4227
+0, 43200, 101088, 0x239941ff
+0, 46800, 101088, 0x147e11de
+0, 50400, 101088, 0x3943cbd5
+0, 54000, 101088, 0x2ce1c01f
+0, 57600, 101088, 0xe0b7ec06
+0, 61200, 101088, 0xfe5b9baa
+0, 64800, 101088, 0x9acb4d37
+0, 68400, 101088, 0xbdbd9af5
diff --git a/tests/ref/fate/fraps-v1 b/tests/ref/fate/fraps-v1
new file mode 100644
index 0000000000..7d09310a2b
--- /dev/null
+++ b/tests/ref/fate/fraps-v1
@@ -0,0 +1 @@
+0, 0, 230400, 0x6bc891ff
diff --git a/tests/ref/fate/fraps-v2 b/tests/ref/fate/fraps-v2
new file mode 100644
index 0000000000..63a01f20e5
--- /dev/null
+++ b/tests/ref/fate/fraps-v2
@@ -0,0 +1,10 @@
+0, 0, 1179648, 0x99f80436
+0, 3000, 1179648, 0x99f80436
+0, 6000, 1179648, 0x99f80436
+0, 9000, 1179648, 0x99f80436
+0, 12000, 1179648, 0x99f80436
+0, 15000, 1179648, 0xe8ae7a30
+0, 18000, 1179648, 0xe8ae7a30
+0, 21000, 1179648, 0xe8ae7a30
+0, 24000, 1179648, 0xe8ae7a30
+0, 27000, 1179648, 0xe8ae7a30
diff --git a/tests/ref/fate/fraps-v3 b/tests/ref/fate/fraps-v3
new file mode 100644
index 0000000000..ba6620675a
--- /dev/null
+++ b/tests/ref/fate/fraps-v3
@@ -0,0 +1,9 @@
+0, 0, 589824, 0x0b181bbf
+0, 3000, 589824, 0xcd740f79
+0, 6000, 589824, 0x16f8f90e
+0, 9000, 589824, 0x1aaaceba
+0, 12000, 589824, 0x1aaaceba
+0, 15000, 589824, 0x902e8fe4
+0, 18000, 589824, 0x019a4443
+0, 21000, 589824, 0x019a4443
+0, 24000, 589824, 0x04eff6c6
diff --git a/tests/ref/fate/fraps-v4 b/tests/ref/fate/fraps-v4
new file mode 100644
index 0000000000..4c9377e871
--- /dev/null
+++ b/tests/ref/fate/fraps-v4
@@ -0,0 +1,7 @@
+0, 0, 491520, 0x68ff12c0
+0, 3000, 491520, 0x22d36f0d
+0, 6000, 491520, 0xce6f877d
+0, 9000, 491520, 0x85d6744c
+0, 12000, 491520, 0x1aa85794
+0, 15000, 491520, 0x528d1274
+0, 18000, 491520, 0x357ec61c
diff --git a/tests/ref/fate/fraps-v5 b/tests/ref/fate/fraps-v5
new file mode 100644
index 0000000000..3fe1c49329
--- /dev/null
+++ b/tests/ref/fate/fraps-v5
@@ -0,0 +1,58 @@
+0, 0, 145152, 0x8458d4cb
+0, 3000, 145152, 0xa694d7c7
+0, 6000, 145152, 0x2bd4bfc9
+0, 9000, 145152, 0xe53b1616
+0, 12000, 145152, 0x6a0a806a
+0, 15000, 145152, 0x45f7b8e6
+0, 18000, 145152, 0x4e14150e
+0, 21000, 145152, 0xe1cd9b6f
+0, 24000, 145152, 0x5b5802d7
+0, 27000, 145152, 0xb03da5e7
+0, 30000, 145152, 0x3436b06e
+0, 33000, 145152, 0x4535e638
+0, 36000, 145152, 0x72934af1
+0, 39000, 145152, 0xb672d459
+0, 42000, 145152, 0xab57491b
+0, 45000, 145152, 0xdbac3480
+0, 48000, 145152, 0x54215962
+0, 51000, 145152, 0x451f456e
+0, 54000, 145152, 0xa17655d1
+0, 57000, 145152, 0xce95422c
+0, 60000, 145152, 0xe0ee8e77
+0, 63000, 145152, 0xdaabe277
+0, 66000, 145152, 0xc21bb665
+0, 69000, 145152, 0x1e74270e
+0, 72000, 145152, 0xae7bac5f
+0, 75000, 145152, 0xf62442ed
+0, 78000, 145152, 0x5c8d8984
+0, 81000, 145152, 0x97a69fe7
+0, 84000, 145152, 0x1f244d19
+0, 87000, 145152, 0x2758bc25
+0, 90000, 145152, 0xf43ddb89
+0, 93000, 145152, 0x086a524e
+0, 96000, 145152, 0x8b464d4d
+0, 99000, 145152, 0xb77b63d2
+0, 102000, 145152, 0xfd842fa8
+0, 105000, 145152, 0xa98b6dbe
+0, 108000, 145152, 0xdedbab2c
+0, 111000, 145152, 0x24e19172
+0, 114000, 145152, 0x1ef456f6
+0, 117000, 145152, 0xaceabdf0
+0, 120000, 145152, 0xb54de3d9
+0, 123000, 145152, 0x3af0df9b
+0, 126000, 145152, 0xf89fbd9a
+0, 129000, 145152, 0xc6a9673c
+0, 132000, 145152, 0x6d5a929e
+0, 135000, 145152, 0x879e7d9b
+0, 138000, 145152, 0x233c14eb
+0, 141000, 145152, 0x8246f081
+0, 144000, 145152, 0x3366c4bf
+0, 147000, 145152, 0x6b0203da
+0, 150000, 145152, 0x48a00163
+0, 153000, 145152, 0xe956ac2c
+0, 156000, 145152, 0xa2511283
+0, 159000, 145152, 0x7e03222d
+0, 162000, 145152, 0xc31a7a40
+0, 165000, 145152, 0x80448031
+0, 168000, 145152, 0xe3b1fbf7
+0, 171000, 145152, 0xa00395a4
diff --git a/tests/ref/fate/frwu b/tests/ref/fate/frwu
new file mode 100644
index 0000000000..6877b8bc2a
--- /dev/null
+++ b/tests/ref/fate/frwu
@@ -0,0 +1,10 @@
+0, 0, 153600, 0x050422c0
+0, 6000, 153600, 0x0cf35359
+0, 12000, 153600, 0x2ae95db0
+0, 18000, 153600, 0x8c855b14
+0, 24000, 153600, 0xc7a890b4
+0, 30000, 153600, 0x755bed3b
+0, 36000, 153600, 0x454a4e27
+0, 42000, 153600, 0xdc3eaecb
+0, 48000, 153600, 0x190f9a82
+0, 54000, 153600, 0x4f67511f
diff --git a/tests/ref/fate/funcom-iss b/tests/ref/fate/funcom-iss
new file mode 100644
index 0000000000..341ef24674
--- /dev/null
+++ b/tests/ref/fate/funcom-iss
@@ -0,0 +1 @@
+816ca37c22e42f488fd787e3155e59ff
diff --git a/tests/ref/fate/h264-conformance-aud_mw_e b/tests/ref/fate/h264-conformance-aud_mw_e
new file mode 100644
index 0000000000..202e14ecb4
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-aud_mw_e
@@ -0,0 +1,100 @@
+0, 0, 38016, 0xa6d63b2e
+0, 3600, 38016, 0x28bae101
+0, 7200, 38016, 0x139f9b29
+0, 10800, 38016, 0xa7b463e8
+0, 14400, 38016, 0xdcdc5130
+0, 18000, 38016, 0x3cf17039
+0, 21600, 38016, 0xdeeb9ae9
+0, 25200, 38016, 0xdc8da889
+0, 28800, 38016, 0x7a32a81c
+0, 32400, 38016, 0xaf15908b
+0, 36000, 38016, 0x4c8b5461
+0, 39600, 38016, 0x1d4826db
+0, 43200, 38016, 0x5ca72731
+0, 46800, 38016, 0xb09732e6
+0, 50400, 38016, 0xa65252eb
+0, 54000, 38016, 0x09fa7644
+0, 57600, 38016, 0x5262af8f
+0, 61200, 38016, 0x50d6c6ac
+0, 64800, 38016, 0x6895c300
+0, 68400, 38016, 0x2d58bf4f
+0, 72000, 38016, 0x50dfc4c0
+0, 75600, 38016, 0x12d2cb90
+0, 79200, 38016, 0xe465c7d7
+0, 82800, 38016, 0x47c5c615
+0, 86400, 38016, 0x76fdc6e6
+0, 90000, 38016, 0xefeec7ae
+0, 93600, 38016, 0x2cebcdf7
+0, 97200, 38016, 0x49abd265
+0, 100800, 38016, 0x157bdfe4
+0, 104400, 38016, 0x3635e5da
+0, 108000, 38016, 0x6263aace
+0, 111600, 38016, 0x7fff72f0
+0, 115200, 38016, 0x83994b85
+0, 118800, 38016, 0xa8c990a7
+0, 122400, 38016, 0xce5204c4
+0, 126000, 38016, 0xf1176131
+0, 129600, 38016, 0x4252bdca
+0, 133200, 38016, 0xd8f447c3
+0, 136800, 38016, 0xc5e79075
+0, 140400, 38016, 0x5291ca60
+0, 144000, 38016, 0x5dffe889
+0, 147600, 38016, 0x6dc4fad6
+0, 151200, 38016, 0xbcc7f16a
+0, 154800, 38016, 0xcd5c059a
+0, 158400, 38016, 0x452314ad
+0, 162000, 38016, 0x19d1fd99
+0, 165600, 38016, 0x93f4ca3c
+0, 169200, 38016, 0x23dd9d81
+0, 172800, 38016, 0x4a4cabdb
+0, 176400, 38016, 0x15a3d785
+0, 180000, 38016, 0xaa34e055
+0, 183600, 38016, 0x8a34b88d
+0, 187200, 38016, 0x1955d649
+0, 190800, 38016, 0xf6dc0782
+0, 194400, 38016, 0x66cb360a
+0, 198000, 38016, 0xf3615cfb
+0, 201600, 38016, 0xca466b6d
+0, 205200, 38016, 0xe0ad3523
+0, 208800, 38016, 0x8181323e
+0, 212400, 38016, 0x93324bab
+0, 216000, 38016, 0xce2c38b6
+0, 219600, 38016, 0xe50a20fc
+0, 223200, 38016, 0x8a74ce30
+0, 226800, 38016, 0x893ca7d8
+0, 230400, 38016, 0x716fd810
+0, 234000, 38016, 0x352aeb3c
+0, 237600, 38016, 0xdf14e4d1
+0, 241200, 38016, 0x7e87dd42
+0, 244800, 38016, 0xe084c706
+0, 248400, 38016, 0x4000ba1f
+0, 252000, 38016, 0x10679f5a
+0, 255600, 38016, 0x5cb686b2
+0, 259200, 38016, 0x5dea8ffe
+0, 262800, 38016, 0x8bd27fc8
+0, 266400, 38016, 0x72912b15
+0, 270000, 38016, 0xb86be965
+0, 273600, 38016, 0x7a42da39
+0, 277200, 38016, 0x9ddacae0
+0, 280800, 38016, 0xb767ff5b
+0, 284400, 38016, 0xa3c64887
+0, 288000, 38016, 0xbc6981f2
+0, 291600, 38016, 0xc2506c22
+0, 295200, 38016, 0x6e785862
+0, 298800, 38016, 0xfade2b2d
+0, 302400, 38016, 0xada1d917
+0, 306000, 38016, 0x459beba1
+0, 309600, 38016, 0x8b491f3c
+0, 313200, 38016, 0x917b0fab
+0, 316800, 38016, 0x053fb1d2
+0, 320400, 38016, 0x96e44e17
+0, 324000, 38016, 0x4d34f7e0
+0, 327600, 38016, 0x2265c386
+0, 331200, 38016, 0xc45dd284
+0, 334800, 38016, 0x0638fca3
+0, 338400, 38016, 0xcd9c2bbc
+0, 342000, 38016, 0x3220dea3
+0, 345600, 38016, 0x72dfb576
+0, 349200, 38016, 0xb804ee86
+0, 352800, 38016, 0xbd516400
+0, 356400, 38016, 0x737fa296
diff --git a/tests/ref/fate/h264-conformance-ba1_ft_c b/tests/ref/fate/h264-conformance-ba1_ft_c
new file mode 100644
index 0000000000..e97e05c358
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-ba1_ft_c
@@ -0,0 +1,299 @@
+0, 0, 152064, 0xa6f9b2a8
+0, 3600, 152064, 0x936a8ed6
+0, 7200, 152064, 0xa9f47652
+0, 10800, 152064, 0xf53ea804
+0, 14400, 152064, 0xc951304d
+0, 18000, 152064, 0x59b786b9
+0, 21600, 152064, 0x01b3d9e9
+0, 25200, 152064, 0x94db5883
+0, 28800, 152064, 0xef01ce6c
+0, 32400, 152064, 0x18401484
+0, 36000, 152064, 0xf8773e58
+0, 39600, 152064, 0x09d07ae7
+0, 43200, 152064, 0xbbec5291
+0, 46800, 152064, 0x1ddcbb1e
+0, 50400, 152064, 0x51b257f2
+0, 54000, 152064, 0x2e537d43
+0, 57600, 152064, 0xc4d3c391
+0, 61200, 152064, 0xe6d0ed1c
+0, 64800, 152064, 0x99d81859
+0, 68400, 152064, 0xba1c1693
+0, 72000, 152064, 0x60a22321
+0, 75600, 152064, 0xfe000aee
+0, 79200, 152064, 0x3b056f2d
+0, 82800, 152064, 0xf735caf9
+0, 86400, 152064, 0x81b94a66
+0, 90000, 152064, 0x28ad08af
+0, 93600, 152064, 0x69b316f5
+0, 97200, 152064, 0xa90e6480
+0, 100800, 152064, 0x2600a97a
+0, 104400, 152064, 0x28b1e894
+0, 108000, 152064, 0x8caaeb3c
+0, 111600, 152064, 0xeaa3cd5d
+0, 115200, 152064, 0x2aeab842
+0, 118800, 152064, 0x8781b8fe
+0, 122400, 152064, 0xd5829de5
+0, 126000, 152064, 0xd04489cd
+0, 129600, 152064, 0xfe268158
+0, 133200, 152064, 0x43917137
+0, 136800, 152064, 0x99963053
+0, 140400, 152064, 0xe085087d
+0, 144000, 152064, 0x0344f8d3
+0, 147600, 152064, 0xe353b02a
+0, 151200, 152064, 0x3f84816d
+0, 154800, 152064, 0x3c3a8145
+0, 158400, 152064, 0x478caf10
+0, 162000, 152064, 0xdc879176
+0, 165600, 152064, 0x502f3b81
+0, 169200, 152064, 0x49997d1a
+0, 172800, 152064, 0x6375e30f
+0, 176400, 152064, 0x2abd5994
+0, 180000, 152064, 0xa32a06a0
+0, 183600, 152064, 0x9a2aed47
+0, 187200, 152064, 0x1963fa9d
+0, 190800, 152064, 0xa429cc58
+0, 194400, 152064, 0x8f08abca
+0, 198000, 152064, 0xdabe3408
+0, 201600, 152064, 0x5b94b0f1
+0, 205200, 152064, 0xb2565ba5
+0, 208800, 152064, 0x6eaf3500
+0, 212400, 152064, 0x04d79374
+0, 216000, 152064, 0x0a9281d7
+0, 219600, 152064, 0x97bf672b
+0, 223200, 152064, 0x996d0b1a
+0, 226800, 152064, 0xb5c4d52d
+0, 230400, 152064, 0x8ab3897b
+0, 234000, 152064, 0xd3303ae0
+0, 237600, 152064, 0x2c217280
+0, 241200, 152064, 0xcc21c7ff
+0, 244800, 152064, 0xf9ae50ea
+0, 248400, 152064, 0xa8af67a2
+0, 252000, 152064, 0xba2cbf40
+0, 255600, 152064, 0x80364875
+0, 259200, 152064, 0xe7028c24
+0, 262800, 152064, 0x6730636d
+0, 266400, 152064, 0xd5d9bf5f
+0, 270000, 152064, 0x2ec4cf74
+0, 273600, 152064, 0x47c0e7ec
+0, 277200, 152064, 0x0e1741fb
+0, 280800, 152064, 0x4b39d9b6
+0, 284400, 152064, 0x30737f2e
+0, 288000, 152064, 0xce133061
+0, 291600, 152064, 0x3b7ce6b9
+0, 295200, 152064, 0x5b11d100
+0, 298800, 152064, 0x8bd801ca
+0, 302400, 152064, 0x5d322cf6
+0, 306000, 152064, 0xdd47a0a3
+0, 309600, 152064, 0x0e3b3c60
+0, 313200, 152064, 0x8b69ac27
+0, 316800, 152064, 0xef66b267
+0, 320400, 152064, 0x29140655
+0, 324000, 152064, 0x25f6ae5c
+0, 327600, 152064, 0xc1a48b89
+0, 331200, 152064, 0xc3eee9e4
+0, 334800, 152064, 0xec23534a
+0, 338400, 152064, 0x9eed2a2e
+0, 342000, 152064, 0x7e5de8e7
+0, 345600, 152064, 0x8d824e10
+0, 349200, 152064, 0x841ebdc5
+0, 352800, 152064, 0x9bc03542
+0, 356400, 152064, 0xd77d5b14
+0, 360000, 152064, 0x2b4597ed
+0, 363600, 152064, 0xf460a0c5
+0, 367200, 152064, 0x01f58bf9
+0, 370800, 152064, 0xa5cb8dd9
+0, 374400, 152064, 0x12e49e6f
+0, 378000, 152064, 0x6aaac311
+0, 381600, 152064, 0x0ff1d37a
+0, 385200, 152064, 0x0e5ca8ce
+0, 388800, 152064, 0x997c3a1f
+0, 392400, 152064, 0x83c1d64e
+0, 396000, 152064, 0xed2379a3
+0, 399600, 152064, 0xe6b83696
+0, 403200, 152064, 0x1a7c1864
+0, 406800, 152064, 0xb0bcf08e
+0, 410400, 152064, 0x74deb96f
+0, 414000, 152064, 0xe86a9396
+0, 417600, 152064, 0xf78a916b
+0, 421200, 152064, 0x8d35a888
+0, 424800, 152064, 0xb01a956d
+0, 428400, 152064, 0xc8d37b7d
+0, 432000, 152064, 0x903251c9
+0, 435600, 152064, 0x93b819ac
+0, 439200, 152064, 0xb949f48f
+0, 442800, 152064, 0x7dbfeaba
+0, 446400, 152064, 0x951903ae
+0, 450000, 152064, 0x05742b8e
+0, 453600, 152064, 0xb270514a
+0, 457200, 152064, 0xf729867a
+0, 460800, 152064, 0x7e05f652
+0, 464400, 152064, 0x32a99f23
+0, 468000, 152064, 0x57e7394b
+0, 471600, 152064, 0xc0ffc453
+0, 475200, 152064, 0x7b1e79fa
+0, 478800, 152064, 0x90ee1d52
+0, 482400, 152064, 0xaed672a8
+0, 486000, 152064, 0xa253ccc4
+0, 489600, 152064, 0x2d0807f9
+0, 493200, 152064, 0xdc7ec4cc
+0, 496800, 152064, 0x3c624e2e
+0, 500400, 152064, 0xfa4a91dd
+0, 504000, 152064, 0xcaa83992
+0, 507600, 152064, 0x81e5c52d
+0, 511200, 152064, 0x46ab76f8
+0, 514800, 152064, 0x4ab115d8
+0, 518400, 152064, 0x65d8c9d7
+0, 522000, 152064, 0xcb1e16b1
+0, 525600, 152064, 0xb766c029
+0, 529200, 152064, 0x2a49c7c0
+0, 532800, 152064, 0x37f35440
+0, 536400, 152064, 0x33b4940f
+0, 540000, 152064, 0x6b22fb9a
+0, 543600, 152064, 0x785e138a
+0, 547200, 152064, 0xc7a1954a
+0, 550800, 152064, 0x6f325026
+0, 554400, 152064, 0x23d6bf8d
+0, 558000, 152064, 0x8e6f5815
+0, 561600, 152064, 0x434c4770
+0, 565200, 152064, 0x22319908
+0, 568800, 152064, 0xec368ac8
+0, 572400, 152064, 0xc69d7306
+0, 576000, 152064, 0xc10ab1c8
+0, 579600, 152064, 0x2497f329
+0, 583200, 152064, 0x95782b50
+0, 586800, 152064, 0xe0481c57
+0, 590400, 152064, 0xa656f1e6
+0, 594000, 152064, 0x562da8a1
+0, 597600, 152064, 0x21716296
+0, 601200, 152064, 0xb1ffd9de
+0, 604800, 152064, 0x49204932
+0, 608400, 152064, 0x88e1ac93
+0, 612000, 152064, 0x6abb5dfb
+0, 615600, 152064, 0xacdede42
+0, 619200, 152064, 0xca28f448
+0, 622800, 152064, 0x6b7e5e84
+0, 626400, 152064, 0x464d4b58
+0, 630000, 152064, 0xd39620f1
+0, 633600, 152064, 0x67336772
+0, 637200, 152064, 0x6de386c2
+0, 640800, 152064, 0x6d8fbc97
+0, 644400, 152064, 0x09fbc88d
+0, 648000, 152064, 0x08dfa188
+0, 651600, 152064, 0xf3461401
+0, 655200, 152064, 0xdd6d1ce5
+0, 658800, 152064, 0x90182ee8
+0, 662400, 152064, 0xcb7cf9a2
+0, 666000, 152064, 0x237e59bd
+0, 669600, 152064, 0xf2efa664
+0, 673200, 152064, 0x6565d69b
+0, 676800, 152064, 0x321ce6e5
+0, 680400, 152064, 0xc7035cb7
+0, 684000, 152064, 0xbfcf2ecc
+0, 687600, 152064, 0x8a2eb353
+0, 691200, 152064, 0x5224b608
+0, 694800, 152064, 0xc0c51491
+0, 698400, 152064, 0xdeadac32
+0, 702000, 152064, 0x8ffd15fe
+0, 705600, 152064, 0x6a7fda8c
+0, 709200, 152064, 0x32ae6c5a
+0, 712800, 152064, 0x9668d580
+0, 716400, 152064, 0xb10325d6
+0, 720000, 152064, 0x1cfa4e12
+0, 723600, 152064, 0x87cb2dc6
+0, 727200, 152064, 0x03636041
+0, 730800, 152064, 0x266df3d6
+0, 734400, 152064, 0x48cd5b1b
+0, 738000, 152064, 0xf42e4dde
+0, 741600, 152064, 0x63b21de2
+0, 745200, 152064, 0xef377b16
+0, 748800, 152064, 0x540a3c21
+0, 752400, 152064, 0xbc7576a4
+0, 756000, 152064, 0x38508049
+0, 759600, 152064, 0x5c120e6f
+0, 763200, 152064, 0x5f7dae8a
+0, 766800, 152064, 0x84632e15
+0, 770400, 152064, 0xe6200a58
+0, 774000, 152064, 0xeef9c63d
+0, 777600, 152064, 0xe5c60794
+0, 781200, 152064, 0x387849c9
+0, 784800, 152064, 0x165744e6
+0, 788400, 152064, 0xdc9cce84
+0, 792000, 152064, 0xea3604e0
+0, 795600, 152064, 0xaf9f5a76
+0, 799200, 152064, 0x05ee7254
+0, 802800, 152064, 0x62ed20cf
+0, 806400, 152064, 0x6e038a86
+0, 810000, 152064, 0xc782f21c
+0, 813600, 152064, 0x9d214e66
+0, 817200, 152064, 0xd33ad489
+0, 820800, 152064, 0x5b04dd7a
+0, 824400, 152064, 0xaf9a865d
+0, 828000, 152064, 0x9eb4912a
+0, 831600, 152064, 0x677628d8
+0, 835200, 152064, 0x0b15e1b6
+0, 838800, 152064, 0xda66848a
+0, 842400, 152064, 0xd29a27a8
+0, 846000, 152064, 0x2d74c6a2
+0, 849600, 152064, 0xafa69b91
+0, 853200, 152064, 0xf065a24b
+0, 856800, 152064, 0xe9d5fe63
+0, 860400, 152064, 0xe0428668
+0, 864000, 152064, 0x2cfe6235
+0, 867600, 152064, 0x6506229d
+0, 871200, 152064, 0xc8cddb6b
+0, 874800, 152064, 0x1b827b12
+0, 878400, 152064, 0x366af54b
+0, 882000, 152064, 0x810b5998
+0, 885600, 152064, 0x40d8d09e
+0, 889200, 152064, 0xf5bd32c5
+0, 892800, 152064, 0xb7af7607
+0, 896400, 152064, 0x005ac53b
+0, 900000, 152064, 0x1a28f754
+0, 903600, 152064, 0x8e15108e
+0, 907200, 152064, 0xb40515ec
+0, 910800, 152064, 0x43a30620
+0, 914400, 152064, 0x000beec8
+0, 918000, 152064, 0x1f6e9253
+0, 921600, 152064, 0x14695f50
+0, 925200, 152064, 0x056359d6
+0, 928800, 152064, 0xdc4360e5
+0, 932400, 152064, 0x3716abb2
+0, 936000, 152064, 0xee1cff6a
+0, 939600, 152064, 0x7b251ba9
+0, 943200, 152064, 0xe4f81d2e
+0, 946800, 152064, 0x01411136
+0, 950400, 152064, 0xcff2f30a
+0, 954000, 152064, 0xc8bcd80d
+0, 957600, 152064, 0x94e8a397
+0, 961200, 152064, 0x6fd071c8
+0, 964800, 152064, 0xb6145d60
+0, 968400, 152064, 0x593f5f70
+0, 972000, 152064, 0xb5133bb7
+0, 975600, 152064, 0x40ad1ae8
+0, 979200, 152064, 0xedfc0faa
+0, 982800, 152064, 0xa2ab0578
+0, 986400, 152064, 0x3038fb4f
+0, 990000, 152064, 0xdf10fb53
+0, 993600, 152064, 0x6b63ff01
+0, 997200, 152064, 0xb34af6cd
+0, 1000800, 152064, 0xc7e9cfb0
+0, 1004400, 152064, 0x22ffb57c
+0, 1008000, 152064, 0xf429b3eb
+0, 1011600, 152064, 0x3861e0db
+0, 1015200, 152064, 0x166321b7
+0, 1018800, 152064, 0x3058744c
+0, 1022400, 152064, 0x6e1dc37a
+0, 1026000, 152064, 0xef2aee63
+0, 1029600, 152064, 0x1a9c3957
+0, 1033200, 152064, 0x93807ed4
+0, 1036800, 152064, 0x117fcbe1
+0, 1040400, 152064, 0x80502017
+0, 1044000, 152064, 0xba5a3dac
+0, 1047600, 152064, 0x157764f1
+0, 1051200, 152064, 0xc7577daf
+0, 1054800, 152064, 0xe9e8ae69
+0, 1058400, 152064, 0x04f9ddac
+0, 1062000, 152064, 0x90441226
+0, 1065600, 152064, 0xaa594ed2
+0, 1069200, 152064, 0x59258b49
+0, 1072800, 152064, 0x13ec85c6
diff --git a/tests/ref/fate/h264-conformance-ba1_sony_d b/tests/ref/fate/h264-conformance-ba1_sony_d
new file mode 100644
index 0000000000..9eefa538d1
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-ba1_sony_d
@@ -0,0 +1,17 @@
+0, 0, 38016, 0xb3883478
+0, 3600, 38016, 0x99e1fe60
+0, 7200, 38016, 0x65eace24
+0, 10800, 38016, 0xb2b0a513
+0, 14400, 38016, 0x8af47c64
+0, 18000, 38016, 0xa56670c6
+0, 21600, 38016, 0x11d45ac9
+0, 25200, 38016, 0xcd4e4f18
+0, 28800, 38016, 0x399934b2
+0, 32400, 38016, 0xedd23f7b
+0, 36000, 38016, 0x38c350b9
+0, 39600, 38016, 0xdd937244
+0, 43200, 38016, 0x39c67be6
+0, 46800, 38016, 0xabb7a34d
+0, 50400, 38016, 0x535d971f
+0, 54000, 38016, 0xd41c9cf7
+0, 57600, 38016, 0xfddda183
diff --git a/tests/ref/fate/h264-conformance-ba2_sony_f b/tests/ref/fate/h264-conformance-ba2_sony_f
new file mode 100644
index 0000000000..126b6e6c4f
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-ba2_sony_f
@@ -0,0 +1,300 @@
+0, 0, 38016, 0xb3883478
+0, 3600, 38016, 0x47b90d4b
+0, 7200, 38016, 0x3e99dfcf
+0, 10800, 38016, 0xeb18bb85
+0, 14400, 38016, 0xcf1e9658
+0, 18000, 38016, 0xf01b7bf1
+0, 21600, 38016, 0x92e06ac5
+0, 25200, 38016, 0x8ae35c1f
+0, 28800, 38016, 0x4bda52c8
+0, 32400, 38016, 0xbffe59e5
+0, 36000, 38016, 0x56c96cad
+0, 39600, 38016, 0x8a278da1
+0, 43200, 38016, 0xce6f97d6
+0, 46800, 38016, 0x69edad2e
+0, 50400, 38016, 0x5134a67c
+0, 54000, 38016, 0x1abfb2a1
+0, 57600, 38016, 0x4a37b185
+0, 61200, 38016, 0x5270a90e
+0, 64800, 38016, 0xe28f9d5d
+0, 68400, 38016, 0x3fcc87b0
+0, 72000, 38016, 0x719e6605
+0, 75600, 38016, 0x8b824ca3
+0, 79200, 38016, 0x5f6a3544
+0, 82800, 38016, 0x2ecd2ada
+0, 86400, 38016, 0x5d4f3055
+0, 90000, 38016, 0xc54441d3
+0, 93600, 38016, 0x93f83f2c
+0, 97200, 38016, 0xaa4d46a8
+0, 100800, 38016, 0x7ca45c1f
+0, 104400, 38016, 0x59de7854
+0, 108000, 38016, 0xc8f98709
+0, 111600, 38016, 0x9a199eeb
+0, 115200, 38016, 0xfd82b785
+0, 118800, 38016, 0x319fd17f
+0, 122400, 38016, 0xc6ebd362
+0, 126000, 38016, 0xbd60d5dc
+0, 129600, 38016, 0x6e27d260
+0, 133200, 38016, 0x96b7cf93
+0, 136800, 38016, 0x6787cbcf
+0, 140400, 38016, 0x48dacd76
+0, 144000, 38016, 0xbef1d08e
+0, 147600, 38016, 0xbb1bd9a4
+0, 151200, 38016, 0xa420d63b
+0, 154800, 38016, 0xfa26d0ab
+0, 158400, 38016, 0xa349d2e0
+0, 162000, 38016, 0x9946ce09
+0, 165600, 38016, 0xb101cabe
+0, 169200, 38016, 0x9e18c6b2
+0, 172800, 38016, 0xe7cccbd9
+0, 176400, 38016, 0x1067d145
+0, 180000, 38016, 0xae13cd75
+0, 183600, 38016, 0x8e06cce5
+0, 187200, 38016, 0x0b3dcbf8
+0, 190800, 38016, 0xc6cbcfbe
+0, 194400, 38016, 0x1eced2f7
+0, 198000, 38016, 0x5d72da04
+0, 201600, 38016, 0x0643e191
+0, 205200, 38016, 0x3cace7f7
+0, 208800, 38016, 0x5e31f1f0
+0, 212400, 38016, 0x04d1ef46
+0, 216000, 38016, 0xffdbe794
+0, 219600, 38016, 0x106ad275
+0, 223200, 38016, 0x5c64a147
+0, 226800, 38016, 0xb7676212
+0, 230400, 38016, 0x86ea653e
+0, 234000, 38016, 0xabb48937
+0, 237600, 38016, 0x6b1cadc4
+0, 241200, 38016, 0xa4eaf34b
+0, 244800, 38016, 0x4174280f
+0, 248400, 38016, 0xfe845818
+0, 252000, 38016, 0xc64a838e
+0, 255600, 38016, 0x5e24aaf0
+0, 259200, 38016, 0x8bffd9d8
+0, 262800, 38016, 0x00d912c9
+0, 266400, 38016, 0x0dba50f0
+0, 270000, 38016, 0x80958628
+0, 273600, 38016, 0x4e81a356
+0, 277200, 38016, 0x121dc289
+0, 280800, 38016, 0x4885de6f
+0, 284400, 38016, 0x5329e4f9
+0, 288000, 38016, 0xa129ef6b
+0, 291600, 38016, 0x3ea6fd46
+0, 295200, 38016, 0x9a68fbb4
+0, 298800, 38016, 0xea1dffdd
+0, 302400, 38016, 0x7bf9f719
+0, 306000, 38016, 0x9aa5ff2a
+0, 309600, 38016, 0xf050fe90
+0, 313200, 38016, 0xb6f50938
+0, 316800, 38016, 0xbe900b57
+0, 320400, 38016, 0x27b90a6b
+0, 324000, 38016, 0xe87bf703
+0, 327600, 38016, 0xaf0fdbe1
+0, 331200, 38016, 0x3f2cc304
+0, 334800, 38016, 0x0114b42f
+0, 338400, 38016, 0x7f739915
+0, 342000, 38016, 0xcc3da414
+0, 345600, 38016, 0x57e2afe8
+0, 349200, 38016, 0x59b6bdc5
+0, 352800, 38016, 0xb3eacf6a
+0, 356400, 38016, 0xa10ddcd8
+0, 360000, 38016, 0xae05e697
+0, 363600, 38016, 0x8cb9d81c
+0, 367200, 38016, 0x5d5cc3b1
+0, 370800, 38016, 0x8f89c0c0
+0, 374400, 38016, 0x593cda26
+0, 378000, 38016, 0xd5d1f2fc
+0, 381600, 38016, 0x2586ff00
+0, 385200, 38016, 0x1c2613f0
+0, 388800, 38016, 0x236133bd
+0, 392400, 38016, 0x92c5439b
+0, 396000, 38016, 0xd1145724
+0, 399600, 38016, 0xf2fa5c12
+0, 403200, 38016, 0x810d5f50
+0, 406800, 38016, 0x196f4470
+0, 410400, 38016, 0xcba71d6b
+0, 414000, 38016, 0x58ab17b0
+0, 417600, 38016, 0x4a96278d
+0, 421200, 38016, 0x4afe2f7d
+0, 424800, 38016, 0xe1ca3d55
+0, 428400, 38016, 0x4f6844ab
+0, 432000, 38016, 0x7ad24bc5
+0, 435600, 38016, 0x068c49f0
+0, 439200, 38016, 0x23b92dae
+0, 442800, 38016, 0x0e9a0793
+0, 446400, 38016, 0xc1d2dd4a
+0, 450000, 38016, 0x1b5cbc00
+0, 453600, 38016, 0xa951b88d
+0, 457200, 38016, 0x8b4ac1df
+0, 460800, 38016, 0x91d3d98d
+0, 464400, 38016, 0xa42aeb49
+0, 468000, 38016, 0x21b5f1f6
+0, 471600, 38016, 0xd632f07f
+0, 475200, 38016, 0x6566ec26
+0, 478800, 38016, 0x03f4ee70
+0, 482400, 38016, 0x62b6e999
+0, 486000, 38016, 0xfd1de6fb
+0, 489600, 38016, 0xb07bdc79
+0, 493200, 38016, 0xace9d441
+0, 496800, 38016, 0x7d98c788
+0, 500400, 38016, 0x3c7dbae4
+0, 504000, 38016, 0x6e85b20f
+0, 507600, 38016, 0x86a5a6bc
+0, 511200, 38016, 0xacbe93ca
+0, 514800, 38016, 0x8e438bde
+0, 518400, 38016, 0x88b4963d
+0, 522000, 38016, 0x86119504
+0, 525600, 38016, 0x0ccc8932
+0, 529200, 38016, 0x69a45f01
+0, 532800, 38016, 0x8f173148
+0, 536400, 38016, 0x1e320daf
+0, 540000, 38016, 0x3957e834
+0, 543600, 38016, 0x57c1dcee
+0, 547200, 38016, 0x2a9edf52
+0, 550800, 38016, 0x116ed4bc
+0, 554400, 38016, 0x81cfc686
+0, 558000, 38016, 0x6685db47
+0, 561600, 38016, 0xab79fd2f
+0, 565200, 38016, 0x65201bdd
+0, 568800, 38016, 0x06e64eb6
+0, 572400, 38016, 0xbcb77ac0
+0, 576000, 38016, 0x65679028
+0, 579600, 38016, 0xf33e837e
+0, 583200, 38016, 0xa77d7b6c
+0, 586800, 38016, 0x0e7b64f6
+0, 590400, 38016, 0x2d1f597c
+0, 594000, 38016, 0x1b6748a1
+0, 597600, 38016, 0x12a91f4f
+0, 601200, 38016, 0xc09df3ee
+0, 604800, 38016, 0x1b9dcd6f
+0, 608400, 38016, 0xf3c2bce4
+0, 612000, 38016, 0xfe05d34b
+0, 615600, 38016, 0x421deb25
+0, 619200, 38016, 0x0f8d0725
+0, 622800, 38016, 0xa03d0a3d
+0, 626400, 38016, 0xe00cf88f
+0, 630000, 38016, 0xa55abfdf
+0, 633600, 38016, 0x11618891
+0, 637200, 38016, 0x45835caf
+0, 640800, 38016, 0x7be63a3b
+0, 644400, 38016, 0x1ebb2104
+0, 648000, 38016, 0x055b0b26
+0, 651600, 38016, 0x076ef47e
+0, 655200, 38016, 0xa828e6e1
+0, 658800, 38016, 0x0de5eb60
+0, 662400, 38016, 0x5238f229
+0, 666000, 38016, 0x332cff7c
+0, 669600, 38016, 0x74072063
+0, 673200, 38016, 0x1e623ceb
+0, 676800, 38016, 0xad2448c9
+0, 680400, 38016, 0x32065043
+0, 684000, 38016, 0x2e7ff976
+0, 687600, 38016, 0xf1a8c805
+0, 691200, 38016, 0x3f64d1cc
+0, 694800, 38016, 0xc855efbd
+0, 698400, 38016, 0x152b0fed
+0, 702000, 38016, 0x43335881
+0, 705600, 38016, 0xec5c7979
+0, 709200, 38016, 0x150e9488
+0, 712800, 38016, 0x1a63b67a
+0, 716400, 38016, 0x24a4cca6
+0, 720000, 38016, 0x3838dba2
+0, 723600, 38016, 0xef1bec71
+0, 727200, 38016, 0x0478f12a
+0, 730800, 38016, 0x478fee17
+0, 734400, 38016, 0x1d09f0ac
+0, 738000, 38016, 0x3daef591
+0, 741600, 38016, 0xf7f3033c
+0, 745200, 38016, 0xfb09faa0
+0, 748800, 38016, 0xd87de6c9
+0, 752400, 38016, 0xbd99d6bc
+0, 756000, 38016, 0x87d8bd7d
+0, 759600, 38016, 0xf244b18a
+0, 763200, 38016, 0x3a34a2da
+0, 766800, 38016, 0x25739701
+0, 770400, 38016, 0x346b8b9a
+0, 774000, 38016, 0xc67379ec
+0, 777600, 38016, 0xbd30780d
+0, 781200, 38016, 0xc5197c2b
+0, 784800, 38016, 0xd5ce73e8
+0, 788400, 38016, 0x63ce72d1
+0, 792000, 38016, 0x140d688d
+0, 795600, 38016, 0x027158aa
+0, 799200, 38016, 0x90884ce3
+0, 802800, 38016, 0x4faa38c5
+0, 806400, 38016, 0x78693f54
+0, 810000, 38016, 0xe1fa41c1
+0, 813600, 38016, 0x9b524771
+0, 817200, 38016, 0xbb3056c8
+0, 820800, 38016, 0xa93b67df
+0, 824400, 38016, 0xe661909f
+0, 828000, 38016, 0x55a0af6d
+0, 831600, 38016, 0xa5f6d0a8
+0, 835200, 38016, 0xa44300f8
+0, 838800, 38016, 0xc7cc265e
+0, 842400, 38016, 0xe7384598
+0, 846000, 38016, 0x77e4589a
+0, 849600, 38016, 0x073c7054
+0, 853200, 38016, 0xe50e6ea8
+0, 856800, 38016, 0xcedf518f
+0, 860400, 38016, 0x8674266b
+0, 864000, 38016, 0x360e0517
+0, 867600, 38016, 0x19acdb3a
+0, 871200, 38016, 0xd029d91b
+0, 874800, 38016, 0x3101277f
+0, 878400, 38016, 0x3a919153
+0, 882000, 38016, 0x0646ffaf
+0, 885600, 38016, 0xffdd13a5
+0, 889200, 38016, 0x13e2e641
+0, 892800, 38016, 0xc6f6a13b
+0, 896400, 38016, 0x984f2ecd
+0, 900000, 38016, 0xafaec63a
+0, 903600, 38016, 0x9025817a
+0, 907200, 38016, 0x20d574d7
+0, 910800, 38016, 0x72eacc49
+0, 914400, 38016, 0x6297335a
+0, 918000, 38016, 0xc69adba1
+0, 921600, 38016, 0x7852d515
+0, 925200, 38016, 0x0e846003
+0, 928800, 38016, 0xeb294c5e
+0, 932400, 38016, 0x0913448f
+0, 936000, 38016, 0xea2c4fc1
+0, 939600, 38016, 0xb8165b3f
+0, 943200, 38016, 0x5f596c9d
+0, 946800, 38016, 0x3a1370d1
+0, 950400, 38016, 0x25dd6a9a
+0, 954000, 38016, 0x70075f7a
+0, 957600, 38016, 0xaf6749f0
+0, 961200, 38016, 0xd5c22d02
+0, 964800, 38016, 0xf6e80af2
+0, 968400, 38016, 0x42d1dcf7
+0, 972000, 38016, 0x232cb536
+0, 975600, 38016, 0x7c848ebf
+0, 979200, 38016, 0x4c756c28
+0, 982800, 38016, 0x720e1f07
+0, 986400, 38016, 0x2385ccb2
+0, 990000, 38016, 0xcd97bf76
+0, 993600, 38016, 0xebcad10b
+0, 997200, 38016, 0xbed8ceeb
+0, 1000800, 38016, 0x660ffaf8
+0, 1004400, 38016, 0x6a1662a9
+0, 1008000, 38016, 0x71f20775
+0, 1011600, 38016, 0x597ecf26
+0, 1015200, 38016, 0x7a81a050
+0, 1018800, 38016, 0x05f6676a
+0, 1022400, 38016, 0xd0065042
+0, 1026000, 38016, 0x17ca9cd9
+0, 1029600, 38016, 0x76956633
+0, 1033200, 38016, 0x9211a2b0
+0, 1036800, 38016, 0xc134b304
+0, 1040400, 38016, 0xdaca9260
+0, 1044000, 38016, 0x10252d19
+0, 1047600, 38016, 0xf52a44af
+0, 1051200, 38016, 0x4053d2d1
+0, 1054800, 38016, 0x165e0bed
+0, 1058400, 38016, 0x577352d0
+0, 1062000, 38016, 0xf9564a09
+0, 1065600, 38016, 0x78a8295f
+0, 1069200, 38016, 0xb2d7182a
+0, 1072800, 38016, 0x9a0c2487
+0, 1076400, 38016, 0x1b044efa
diff --git a/tests/ref/fate/h264-conformance-ba3_sva_c b/tests/ref/fate/h264-conformance-ba3_sva_c
new file mode 100644
index 0000000000..2b36542b9c
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-ba3_sva_c
@@ -0,0 +1,33 @@
+0, 0, 38016, 0xbf5f1df5
+0, 3600, 38016, 0x8de61f39
+0, 7200, 38016, 0xaeec0a18
+0, 10800, 38016, 0x386c2599
+0, 14400, 38016, 0x8fcf2df0
+0, 18000, 38016, 0x34fe57ec
+0, 21600, 38016, 0x7e6c5e1a
+0, 25200, 38016, 0x8f319659
+0, 28800, 38016, 0x1e1291e2
+0, 32400, 38016, 0x97e9bf55
+0, 36000, 38016, 0x35bcad1a
+0, 39600, 38016, 0xea39d354
+0, 43200, 38016, 0xca7db081
+0, 46800, 38016, 0x2c069b6c
+0, 50400, 38016, 0x32f86a99
+0, 54000, 38016, 0xb4019668
+0, 57600, 38016, 0x04038324
+0, 61200, 38016, 0xe4f0b032
+0, 64800, 38016, 0xe6119a63
+0, 68400, 38016, 0xdf17b9fa
+0, 72000, 38016, 0xe199a348
+0, 75600, 38016, 0x6704b749
+0, 79200, 38016, 0x33fc7592
+0, 82800, 38016, 0xc0c371b2
+0, 86400, 38016, 0x017628aa
+0, 90000, 38016, 0xa46b3ab5
+0, 93600, 38016, 0x216f1fdb
+0, 97200, 38016, 0x28c54669
+0, 100800, 38016, 0x070c4ac1
+0, 104400, 38016, 0x4d4c6765
+0, 108000, 38016, 0xb496626c
+0, 111600, 38016, 0x9f767057
+0, 115200, 38016, 0xe2bc4de1
diff --git a/tests/ref/fate/h264-conformance-ba_mw_d b/tests/ref/fate/h264-conformance-ba_mw_d
new file mode 100644
index 0000000000..b5fbd692b1
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-ba_mw_d
@@ -0,0 +1,100 @@
+0, 0, 38016, 0x3ae838ee
+0, 3600, 38016, 0x9ed7e141
+0, 7200, 38016, 0x393097f9
+0, 10800, 38016, 0x8fb56676
+0, 14400, 38016, 0x39d64fd2
+0, 18000, 38016, 0x7fad729a
+0, 21600, 38016, 0x7e25955f
+0, 25200, 38016, 0xc4d9a359
+0, 28800, 38016, 0x30afaca4
+0, 32400, 38016, 0x9ee195ea
+0, 36000, 38016, 0x09f65805
+0, 39600, 38016, 0x58d126ab
+0, 43200, 38016, 0x4f29282c
+0, 46800, 38016, 0x8af235a1
+0, 50400, 38016, 0x6dfe525a
+0, 54000, 38016, 0xd51c793f
+0, 57600, 38016, 0x4e90abba
+0, 61200, 38016, 0xe706c5b7
+0, 64800, 38016, 0x35fab7ef
+0, 68400, 38016, 0xed78b8fc
+0, 72000, 38016, 0x2907bb4e
+0, 75600, 38016, 0x1749bb47
+0, 79200, 38016, 0x284ec688
+0, 82800, 38016, 0x534abc24
+0, 86400, 38016, 0xcd01bd13
+0, 90000, 38016, 0xe97bbd51
+0, 93600, 38016, 0xac1cb9e9
+0, 97200, 38016, 0xd861c0a3
+0, 100800, 38016, 0xf0f1ced4
+0, 104400, 38016, 0xa9e8d2bf
+0, 108000, 38016, 0x4c6aa7c5
+0, 111600, 38016, 0xe2eb6bde
+0, 115200, 38016, 0x92eb44a1
+0, 118800, 38016, 0x376b8919
+0, 122400, 38016, 0x291bfdd9
+0, 126000, 38016, 0xed0c60a0
+0, 129600, 38016, 0xf505b70d
+0, 133200, 38016, 0x26b33a9b
+0, 136800, 38016, 0xc9269664
+0, 140400, 38016, 0xe21dc61e
+0, 144000, 38016, 0xe88fe653
+0, 147600, 38016, 0xd4cff39c
+0, 151200, 38016, 0x02bdecdf
+0, 154800, 38016, 0xec48fc13
+0, 158400, 38016, 0x363f071c
+0, 162000, 38016, 0x7fcbf2fd
+0, 165600, 38016, 0xc3d1c265
+0, 169200, 38016, 0x818a94e9
+0, 172800, 38016, 0x30b5a52f
+0, 176400, 38016, 0x7a1acd17
+0, 180000, 38016, 0xb5a6dc91
+0, 183600, 38016, 0x7d39b673
+0, 187200, 38016, 0x341ad3f9
+0, 190800, 38016, 0x264cff5f
+0, 194400, 38016, 0x613a445b
+0, 198000, 38016, 0x42a55cd6
+0, 201600, 38016, 0xe84f6a39
+0, 205200, 38016, 0xd8e93151
+0, 208800, 38016, 0xc7333ac4
+0, 212400, 38016, 0xa08a4b2c
+0, 216000, 38016, 0xeb8a3531
+0, 219600, 38016, 0x88bf1883
+0, 223200, 38016, 0x0043c104
+0, 226800, 38016, 0xa9d6a35d
+0, 230400, 38016, 0x01dec5af
+0, 234000, 38016, 0x673cdf0e
+0, 237600, 38016, 0xc8d0ce67
+0, 241200, 38016, 0xcac2d0bd
+0, 244800, 38016, 0x8575c7b9
+0, 248400, 38016, 0x71c1b4f4
+0, 252000, 38016, 0x2affa1d4
+0, 255600, 38016, 0xae947cfd
+0, 259200, 38016, 0x48b2821d
+0, 262800, 38016, 0x1c5d77f4
+0, 266400, 38016, 0x3625233b
+0, 270000, 38016, 0xcfc8e3ff
+0, 273600, 38016, 0x6d04cfa5
+0, 277200, 38016, 0x2c4ec463
+0, 280800, 38016, 0x72b1ea07
+0, 284400, 38016, 0x448d3996
+0, 288000, 38016, 0x89256b87
+0, 291600, 38016, 0x69af5fea
+0, 295200, 38016, 0x908f46b0
+0, 298800, 38016, 0x56e11a8b
+0, 302400, 38016, 0x7fd4c5f5
+0, 306000, 38016, 0x560bd701
+0, 309600, 38016, 0x71570820
+0, 313200, 38016, 0x11b20b14
+0, 316800, 38016, 0xa3fd9f19
+0, 320400, 38016, 0x4a564d33
+0, 324000, 38016, 0x1722db32
+0, 327600, 38016, 0xf853a971
+0, 331200, 38016, 0xb136bf89
+0, 334800, 38016, 0xb686e8c3
+0, 338400, 38016, 0x8afc1a4c
+0, 342000, 38016, 0xa24adb65
+0, 345600, 38016, 0xd951ae27
+0, 349200, 38016, 0xa731f04e
+0, 352800, 38016, 0xabd65795
+0, 356400, 38016, 0x46bc95e1
diff --git a/tests/ref/fate/h264-conformance-bamq1_jvc_c b/tests/ref/fate/h264-conformance-bamq1_jvc_c
new file mode 100644
index 0000000000..11f43521eb
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-bamq1_jvc_c
@@ -0,0 +1,30 @@
+0, 0, 38016, 0x6951213f
+0, 3600, 38016, 0x82ddf39d
+0, 7200, 38016, 0x3f81c6b1
+0, 10800, 38016, 0x55149f23
+0, 14400, 38016, 0x366a74e1
+0, 18000, 38016, 0xe6f465cf
+0, 21600, 38016, 0x14fd4999
+0, 25200, 38016, 0x49273f0f
+0, 28800, 38016, 0xa20a2ebe
+0, 32400, 38016, 0x701b32a4
+0, 36000, 38016, 0x8a394066
+0, 39600, 38016, 0xe9b766a6
+0, 43200, 38016, 0x4e7f766d
+0, 46800, 38016, 0x2c159585
+0, 50400, 38016, 0x31b38c2b
+0, 54000, 38016, 0xde58937f
+0, 57600, 38016, 0xf69e94f9
+0, 61200, 38016, 0x849e8a08
+0, 64800, 38016, 0xe53f79e9
+0, 68400, 38016, 0xf2ce6103
+0, 72000, 38016, 0xe98d3c96
+0, 75600, 38016, 0xea8c17c5
+0, 79200, 38016, 0xea0a01d8
+0, 82800, 38016, 0x6a45fd53
+0, 86400, 38016, 0xaad9fd47
+0, 90000, 38016, 0xabc603b7
+0, 93600, 38016, 0x89410350
+0, 97200, 38016, 0x1fac129b
+0, 100800, 38016, 0x1af529ee
+0, 104400, 38016, 0x384141b6
diff --git a/tests/ref/fate/h264-conformance-bamq2_jvc_c b/tests/ref/fate/h264-conformance-bamq2_jvc_c
new file mode 100644
index 0000000000..a16cb051c3
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-bamq2_jvc_c
@@ -0,0 +1,30 @@
+0, 0, 38016, 0x6951213f
+0, 3600, 38016, 0xd1bbf830
+0, 7200, 38016, 0x79dcc8cb
+0, 10800, 38016, 0xa426a50e
+0, 14400, 38016, 0x002275d6
+0, 18000, 38016, 0xab9a666e
+0, 21600, 38016, 0x9bd54be9
+0, 25200, 38016, 0x09003ed1
+0, 28800, 38016, 0x75e0340a
+0, 32400, 38016, 0x65ae3b23
+0, 36000, 38016, 0x4c1049a8
+0, 39600, 38016, 0x6e336a25
+0, 43200, 38016, 0x4d3579ee
+0, 46800, 38016, 0x81f89545
+0, 50400, 38016, 0xc9358e56
+0, 54000, 38016, 0x3fa69885
+0, 57600, 38016, 0x1ea49bea
+0, 61200, 38016, 0xce939241
+0, 64800, 38016, 0xbc278236
+0, 68400, 38016, 0xf11868d2
+0, 72000, 38016, 0xe4124537
+0, 75600, 38016, 0xd5831e16
+0, 79200, 38016, 0x9f5608e8
+0, 82800, 38016, 0x30ad0448
+0, 86400, 38016, 0x06a00523
+0, 90000, 38016, 0x25e50e24
+0, 93600, 38016, 0x2c220a92
+0, 97200, 38016, 0xd4b7185e
+0, 100800, 38016, 0x80f92d07
+0, 104400, 38016, 0x285a4586
diff --git a/tests/ref/fate/h264-conformance-banm_mw_d b/tests/ref/fate/h264-conformance-banm_mw_d
new file mode 100644
index 0000000000..188d7a7247
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-banm_mw_d
@@ -0,0 +1,100 @@
+0, 0, 38016, 0x3ae838ee
+0, 3600, 38016, 0x9ed7e141
+0, 7200, 38016, 0xaf9d9753
+0, 10800, 38016, 0x8a6f6906
+0, 14400, 38016, 0xcfe85810
+0, 18000, 38016, 0x00ed737f
+0, 21600, 38016, 0x93509e20
+0, 25200, 38016, 0xa02ba402
+0, 28800, 38016, 0xce09afd9
+0, 32400, 38016, 0xc7a49dcf
+0, 36000, 38016, 0x0da163c6
+0, 39600, 38016, 0xb3be2fcf
+0, 43200, 38016, 0x0d564479
+0, 46800, 38016, 0x5c554f55
+0, 50400, 38016, 0x05d06d25
+0, 54000, 38016, 0x352687bc
+0, 57600, 38016, 0x9e13b74d
+0, 61200, 38016, 0x1c3dd2af
+0, 64800, 38016, 0x3c1ad091
+0, 68400, 38016, 0x0461cad8
+0, 72000, 38016, 0xa002cc91
+0, 75600, 38016, 0x9c06d06e
+0, 79200, 38016, 0xfad0cee0
+0, 82800, 38016, 0x5cbbd4a5
+0, 86400, 38016, 0x9a99d463
+0, 90000, 38016, 0xa115d051
+0, 93600, 38016, 0x5b63cc22
+0, 97200, 38016, 0x53b3cfd2
+0, 100800, 38016, 0x7b22db61
+0, 104400, 38016, 0x4f28e319
+0, 108000, 38016, 0x4c6aa7c5
+0, 111600, 38016, 0xe2eb6bde
+0, 115200, 38016, 0xdfc84927
+0, 118800, 38016, 0xa0098eab
+0, 122400, 38016, 0x607a00e2
+0, 126000, 38016, 0x58da68d0
+0, 129600, 38016, 0x1290c8c6
+0, 133200, 38016, 0x40615120
+0, 136800, 38016, 0x070e9d9c
+0, 140400, 38016, 0x5295d213
+0, 144000, 38016, 0xaaa0f00a
+0, 147600, 38016, 0x0ef7f99d
+0, 151200, 38016, 0x018cf596
+0, 154800, 38016, 0xb9010555
+0, 158400, 38016, 0x54b10d05
+0, 162000, 38016, 0xa06ff53b
+0, 165600, 38016, 0x9a2ec1aa
+0, 169200, 38016, 0x75999938
+0, 172800, 38016, 0xda6ba315
+0, 176400, 38016, 0xaa38cc4e
+0, 180000, 38016, 0x87f6e751
+0, 183600, 38016, 0x2318c2b9
+0, 187200, 38016, 0xdebfd9c8
+0, 190800, 38016, 0xdc9a115f
+0, 194400, 38016, 0x6d1e495d
+0, 198000, 38016, 0x53d46db4
+0, 201600, 38016, 0x53287856
+0, 205200, 38016, 0x0ce93af7
+0, 208800, 38016, 0x44974b42
+0, 212400, 38016, 0x65a16170
+0, 216000, 38016, 0xeb8a3531
+0, 219600, 38016, 0x65da180b
+0, 223200, 38016, 0x6eb1cd77
+0, 226800, 38016, 0xc890b0c1
+0, 230400, 38016, 0x359ad301
+0, 234000, 38016, 0x4be2e140
+0, 237600, 38016, 0x5094da18
+0, 241200, 38016, 0x9ef9d904
+0, 244800, 38016, 0x0ad8cbb4
+0, 248400, 38016, 0xd68cb3db
+0, 252000, 38016, 0x7fcd9d3c
+0, 255600, 38016, 0x017385aa
+0, 259200, 38016, 0xa2328d96
+0, 262800, 38016, 0x18858630
+0, 266400, 38016, 0x795228e0
+0, 270000, 38016, 0xb70ce750
+0, 273600, 38016, 0x55d9da49
+0, 277200, 38016, 0x7714cc94
+0, 280800, 38016, 0xec39f711
+0, 284400, 38016, 0x561e4366
+0, 288000, 38016, 0xd91c83e0
+0, 291600, 38016, 0x8b3379e2
+0, 295200, 38016, 0xdee36b36
+0, 298800, 38016, 0x1b4940fd
+0, 302400, 38016, 0x9b13e7b2
+0, 306000, 38016, 0xb0b2f2eb
+0, 309600, 38016, 0x0e7c2373
+0, 313200, 38016, 0x87401fb0
+0, 316800, 38016, 0xc4bdb8be
+0, 320400, 38016, 0xbbfc4f40
+0, 324000, 38016, 0x1722db32
+0, 327600, 38016, 0xf7e8a749
+0, 331200, 38016, 0x8c66b366
+0, 334800, 38016, 0x9823f33e
+0, 338400, 38016, 0x5013240a
+0, 342000, 38016, 0xf174d83a
+0, 345600, 38016, 0xe49cae19
+0, 349200, 38016, 0xadc2f8f7
+0, 352800, 38016, 0x667961b0
+0, 356400, 38016, 0xcb6d9bcd
diff --git a/tests/ref/fate/h264-conformance-basqp1_sony_c b/tests/ref/fate/h264-conformance-basqp1_sony_c
new file mode 100644
index 0000000000..f8565472bb
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-basqp1_sony_c
@@ -0,0 +1,4 @@
+0, 0, 38016, 0xe2d73230
+0, 3600, 38016, 0xda4dfc8e
+0, 7200, 38016, 0x7334cb99
+0, 10800, 38016, 0xd8feab7d
diff --git a/tests/ref/fate/h264-conformance-caba1_sony_d b/tests/ref/fate/h264-conformance-caba1_sony_d
new file mode 100644
index 0000000000..62232d23ed
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-caba1_sony_d
@@ -0,0 +1,50 @@
+0, 0, 38016, 0xb3883478
+0, 3600, 38016, 0x99e1fe60
+0, 7200, 38016, 0x65eace24
+0, 10800, 38016, 0xb2b0a513
+0, 14400, 38016, 0x8af47c64
+0, 18000, 38016, 0xa56670c6
+0, 21600, 38016, 0x11d45ac9
+0, 25200, 38016, 0xcd4e4f18
+0, 28800, 38016, 0x399934b2
+0, 32400, 38016, 0xedd23f7b
+0, 36000, 38016, 0x38c350b9
+0, 39600, 38016, 0xdd937244
+0, 43200, 38016, 0x39c67be6
+0, 46800, 38016, 0xabb7a34d
+0, 50400, 38016, 0x535d971f
+0, 54000, 38016, 0xd41c9cf7
+0, 57600, 38016, 0xfddda183
+0, 61200, 38016, 0x7b659dc5
+0, 64800, 38016, 0x06978b0c
+0, 68400, 38016, 0x62596b00
+0, 72000, 38016, 0x5e504719
+0, 75600, 38016, 0x55252349
+0, 79200, 38016, 0xdbdd0d9e
+0, 82800, 38016, 0x550a0918
+0, 86400, 38016, 0xb890feeb
+0, 90000, 38016, 0x8aa01221
+0, 93600, 38016, 0xfcc01085
+0, 97200, 38016, 0x78f11d7d
+0, 100800, 38016, 0xfcd33487
+0, 104400, 38016, 0x9b444cfc
+0, 108000, 38016, 0xed9563d3
+0, 111600, 38016, 0x07e17628
+0, 115200, 38016, 0x9bb792fd
+0, 118800, 38016, 0xa6aea73d
+0, 122400, 38016, 0x4b90b778
+0, 126000, 38016, 0x6df2b998
+0, 129600, 38016, 0x799eb2db
+0, 133200, 38016, 0x48dab272
+0, 136800, 38016, 0x9877b4eb
+0, 140400, 38016, 0x901ab58e
+0, 144000, 38016, 0x32c2beb1
+0, 147600, 38016, 0xe542b56e
+0, 151200, 38016, 0x1edf9ff4
+0, 154800, 38016, 0xf103942c
+0, 158400, 38016, 0x097a8dc7
+0, 162000, 38016, 0xe3728780
+0, 165600, 38016, 0xce9a9026
+0, 169200, 38016, 0x78ba841b
+0, 172800, 38016, 0x5fc687ab
+0, 176400, 38016, 0x03a49472
diff --git a/tests/ref/fate/h264-conformance-caba1_sva_b b/tests/ref/fate/h264-conformance-caba1_sva_b
new file mode 100644
index 0000000000..f5b426b802
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-caba1_sva_b
@@ -0,0 +1,17 @@
+0, 0, 38016, 0xee831fe4
+0, 3600, 38016, 0x1098ff23
+0, 7200, 38016, 0x8fc3e078
+0, 10800, 38016, 0x86530991
+0, 14400, 38016, 0xdc8e279e
+0, 18000, 38016, 0x54ea3234
+0, 21600, 38016, 0x79014662
+0, 25200, 38016, 0x5d0a5a88
+0, 28800, 38016, 0xf712805d
+0, 32400, 38016, 0x0a09937e
+0, 36000, 38016, 0xfa62a1d7
+0, 39600, 38016, 0x67c6a41b
+0, 43200, 38016, 0x6452ab94
+0, 46800, 38016, 0xdb269049
+0, 50400, 38016, 0xc7ab8864
+0, 54000, 38016, 0xbb828f4a
+0, 57600, 38016, 0x4fb3a61a
diff --git a/tests/ref/fate/h264-conformance-caba2_sony_e b/tests/ref/fate/h264-conformance-caba2_sony_e
new file mode 100644
index 0000000000..0732027522
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-caba2_sony_e
@@ -0,0 +1,300 @@
+0, 0, 38016, 0xb3883478
+0, 3600, 38016, 0x23a30e47
+0, 7200, 38016, 0xa0b7df0f
+0, 10800, 38016, 0x5cd9beed
+0, 14400, 38016, 0x13b09699
+0, 18000, 38016, 0x66697d65
+0, 21600, 38016, 0xf0486d0d
+0, 25200, 38016, 0xaf94644e
+0, 28800, 38016, 0x43c45981
+0, 32400, 38016, 0x8f655e70
+0, 36000, 38016, 0x3d747a52
+0, 39600, 38016, 0x906e95f9
+0, 43200, 38016, 0xdd3ea1a0
+0, 46800, 38016, 0x216eb0ee
+0, 50400, 38016, 0x06cbabfe
+0, 54000, 38016, 0xd41c9cf7
+0, 57600, 38016, 0x6d2fa58e
+0, 61200, 38016, 0x0adca6fc
+0, 64800, 38016, 0x51c49ad9
+0, 68400, 38016, 0x83e57a42
+0, 72000, 38016, 0xe47b5dad
+0, 75600, 38016, 0x5e123c13
+0, 79200, 38016, 0xad682f93
+0, 82800, 38016, 0x77b02d2c
+0, 86400, 38016, 0x976d316e
+0, 90000, 38016, 0x3d923c72
+0, 93600, 38016, 0xf073398d
+0, 97200, 38016, 0x6dc547b4
+0, 100800, 38016, 0xfa9859b3
+0, 104400, 38016, 0xfc3f77b9
+0, 108000, 38016, 0xed9563d3
+0, 111600, 38016, 0xc040929e
+0, 115200, 38016, 0x5562af3c
+0, 118800, 38016, 0xa56abc78
+0, 122400, 38016, 0x702ec702
+0, 126000, 38016, 0x8ee7c909
+0, 129600, 38016, 0x9065c44f
+0, 133200, 38016, 0x11e3c40b
+0, 136800, 38016, 0x20fbc27a
+0, 140400, 38016, 0xaeecc582
+0, 144000, 38016, 0x3b32ca4f
+0, 147600, 38016, 0x5464ce6c
+0, 151200, 38016, 0x41d4cd66
+0, 154800, 38016, 0x8a69c6ef
+0, 158400, 38016, 0x2c63c59e
+0, 162000, 38016, 0xe3728780
+0, 165600, 38016, 0xc60c9ca3
+0, 169200, 38016, 0x8299a65a
+0, 172800, 38016, 0x67d4b3d5
+0, 176400, 38016, 0xd650bd19
+0, 180000, 38016, 0xe8c9b285
+0, 183600, 38016, 0x9a3dba0c
+0, 187200, 38016, 0xb3f4bfc3
+0, 190800, 38016, 0xe3edbe71
+0, 194400, 38016, 0xea7fc14f
+0, 198000, 38016, 0x4560cb94
+0, 201600, 38016, 0x3b48ce1b
+0, 205200, 38016, 0xc668d24c
+0, 208800, 38016, 0x8bdcd514
+0, 212400, 38016, 0xd0f8d380
+0, 216000, 38016, 0x98a59a5a
+0, 219600, 38016, 0x086d9c52
+0, 223200, 38016, 0x50417af3
+0, 226800, 38016, 0xe8ae428b
+0, 230400, 38016, 0xb5663f68
+0, 234000, 38016, 0x452e6045
+0, 237600, 38016, 0x0412991e
+0, 241200, 38016, 0xa791d0c8
+0, 244800, 38016, 0x952c13e8
+0, 248400, 38016, 0x9356462c
+0, 252000, 38016, 0x34026bf3
+0, 255600, 38016, 0x3a109e70
+0, 259200, 38016, 0xc28dccb1
+0, 262800, 38016, 0x445f08e7
+0, 266400, 38016, 0x1e0c4781
+0, 270000, 38016, 0x4c0b3afa
+0, 273600, 38016, 0x90147b21
+0, 277200, 38016, 0xe6fb9ee6
+0, 280800, 38016, 0x3bbac15a
+0, 284400, 38016, 0x113ecc97
+0, 288000, 38016, 0xa271e248
+0, 291600, 38016, 0xbc97f36a
+0, 295200, 38016, 0x2a5af366
+0, 298800, 38016, 0xc171ec49
+0, 302400, 38016, 0x2393e85e
+0, 306000, 38016, 0xbf59eeb0
+0, 309600, 38016, 0xcec2f989
+0, 313200, 38016, 0x3cb8fcb3
+0, 316800, 38016, 0x28150278
+0, 320400, 38016, 0x27f70026
+0, 324000, 38016, 0x8fa69f07
+0, 327600, 38016, 0x198b9a79
+0, 331200, 38016, 0x40928d52
+0, 334800, 38016, 0x1504834e
+0, 338400, 38016, 0xb53677ab
+0, 342000, 38016, 0x2e2c783d
+0, 345600, 38016, 0x5fd38e3a
+0, 349200, 38016, 0x697e9cd3
+0, 352800, 38016, 0x0b18ad4b
+0, 356400, 38016, 0x6ad7b78f
+0, 360000, 38016, 0x6af3c654
+0, 363600, 38016, 0x5aabb804
+0, 367200, 38016, 0x9b5aa6e5
+0, 370800, 38016, 0x2993a311
+0, 374400, 38016, 0x1382b8e5
+0, 378000, 38016, 0xf294a253
+0, 381600, 38016, 0xafa5c2a5
+0, 385200, 38016, 0x621ce2b5
+0, 388800, 38016, 0x676c0440
+0, 392400, 38016, 0xa7c31e07
+0, 396000, 38016, 0x29612ba2
+0, 399600, 38016, 0xb38c3920
+0, 403200, 38016, 0xfcce3ee5
+0, 406800, 38016, 0x3ee81fac
+0, 410400, 38016, 0x635cfdb0
+0, 414000, 38016, 0x222afa63
+0, 417600, 38016, 0x230c09cb
+0, 421200, 38016, 0x2b491802
+0, 424800, 38016, 0x9cac2164
+0, 428400, 38016, 0xa0532de8
+0, 432000, 38016, 0x32e93592
+0, 435600, 38016, 0x724033a9
+0, 439200, 38016, 0x74411884
+0, 442800, 38016, 0xae14efcf
+0, 446400, 38016, 0x0188cdc7
+0, 450000, 38016, 0x5708b5c1
+0, 453600, 38016, 0x54aba6da
+0, 457200, 38016, 0x7364b397
+0, 460800, 38016, 0xf676c547
+0, 464400, 38016, 0x6926db3a
+0, 468000, 38016, 0xccdbe5be
+0, 471600, 38016, 0x8fc8e490
+0, 475200, 38016, 0x5d7fdd35
+0, 478800, 38016, 0x0e27e010
+0, 482400, 38016, 0x8120dd43
+0, 486000, 38016, 0x1612a173
+0, 489600, 38016, 0x3f1cb4b7
+0, 493200, 38016, 0xd1c7b0a6
+0, 496800, 38016, 0x472baad5
+0, 500400, 38016, 0xfe37a1f3
+0, 504000, 38016, 0x42a391ba
+0, 507600, 38016, 0xdb618cac
+0, 511200, 38016, 0x7af879bf
+0, 514800, 38016, 0xe6f27644
+0, 518400, 38016, 0x550a7f0c
+0, 522000, 38016, 0x7d297eaa
+0, 525600, 38016, 0xaeb57623
+0, 529200, 38016, 0x6d5e4995
+0, 532800, 38016, 0x57df1be0
+0, 536400, 38016, 0x7617f825
+0, 540000, 38016, 0xf731aef2
+0, 543600, 38016, 0x489aae6c
+0, 547200, 38016, 0x2d80b7a4
+0, 550800, 38016, 0xe4b6ac4e
+0, 554400, 38016, 0xd243a374
+0, 558000, 38016, 0x5cf9b85b
+0, 561600, 38016, 0xe824d798
+0, 565200, 38016, 0x8a46f630
+0, 568800, 38016, 0x4a03337f
+0, 572400, 38016, 0xefe25cf7
+0, 576000, 38016, 0xed876efa
+0, 579600, 38016, 0xdf1b6b65
+0, 583200, 38016, 0xd3225d8c
+0, 586800, 38016, 0x0cf04d8d
+0, 590400, 38016, 0x0fdc3bb3
+0, 594000, 38016, 0xc31bf5da
+0, 597600, 38016, 0x09e0ec79
+0, 601200, 38016, 0x6521c8fb
+0, 604800, 38016, 0x6f67a94c
+0, 608400, 38016, 0xa0a49f38
+0, 612000, 38016, 0x759fb6f2
+0, 615600, 38016, 0xea41ddf8
+0, 619200, 38016, 0xe559f0a6
+0, 622800, 38016, 0x1dcbec38
+0, 626400, 38016, 0xfb62dc6a
+0, 630000, 38016, 0x3d0fac24
+0, 633600, 38016, 0x87c373a1
+0, 637200, 38016, 0x97a84562
+0, 640800, 38016, 0xe4361c2e
+0, 644400, 38016, 0x21170c47
+0, 648000, 38016, 0x0769ec52
+0, 651600, 38016, 0xac1ad44d
+0, 655200, 38016, 0xdf87cb3e
+0, 658800, 38016, 0x95c0d66f
+0, 662400, 38016, 0xba33da6f
+0, 666000, 38016, 0x71b2e866
+0, 669600, 38016, 0x64540dd1
+0, 673200, 38016, 0x79cb2d92
+0, 676800, 38016, 0xfe8e394b
+0, 680400, 38016, 0x648f443f
+0, 684000, 38016, 0x491eee56
+0, 687600, 38016, 0x6195b91b
+0, 691200, 38016, 0x3935c2b0
+0, 694800, 38016, 0x2408e296
+0, 698400, 38016, 0xe17106b5
+0, 702000, 38016, 0xd8d01ad1
+0, 705600, 38016, 0x85d15104
+0, 709200, 38016, 0xacc16731
+0, 712800, 38016, 0xb6a990b7
+0, 716400, 38016, 0x8153a9cd
+0, 720000, 38016, 0xef5ab92a
+0, 723600, 38016, 0x392acfab
+0, 727200, 38016, 0x7031d48e
+0, 730800, 38016, 0x5d3ed39f
+0, 734400, 38016, 0x004fd516
+0, 738000, 38016, 0x8de7dc94
+0, 741600, 38016, 0x7e21db4a
+0, 745200, 38016, 0x518dd829
+0, 748800, 38016, 0xf780cf45
+0, 752400, 38016, 0x0a49bd6f
+0, 756000, 38016, 0xadb65d17
+0, 759600, 38016, 0xbe79629d
+0, 763200, 38016, 0x2daa65c8
+0, 766800, 38016, 0x0b4a6737
+0, 770400, 38016, 0x8e705885
+0, 774000, 38016, 0x6d2a4af2
+0, 777600, 38016, 0x89fe4b54
+0, 781200, 38016, 0x90cb4dde
+0, 784800, 38016, 0x2d9e4f4e
+0, 788400, 38016, 0x5fcd4a7b
+0, 792000, 38016, 0xdb4143e7
+0, 795600, 38016, 0xd9343662
+0, 799200, 38016, 0xdf4a2af2
+0, 802800, 38016, 0xbe8f1fd2
+0, 806400, 38016, 0x4658200f
+0, 810000, 38016, 0x92b51315
+0, 813600, 38016, 0x441f1576
+0, 817200, 38016, 0x970b29b4
+0, 820800, 38016, 0x93ac40f2
+0, 824400, 38016, 0xa0ac6b06
+0, 828000, 38016, 0xdd5b8f01
+0, 831600, 38016, 0xa921b3d5
+0, 835200, 38016, 0xdd6fdf01
+0, 838800, 38016, 0x1c6c0306
+0, 842400, 38016, 0xcea2235d
+0, 846000, 38016, 0x43853758
+0, 849600, 38016, 0xa0234e29
+0, 853200, 38016, 0x94c85022
+0, 856800, 38016, 0xaf4e33ab
+0, 860400, 38016, 0x07f90e0c
+0, 864000, 38016, 0x99cee4bd
+0, 867600, 38016, 0xb7cdcf79
+0, 871200, 38016, 0x5923c14c
+0, 874800, 38016, 0x771f15d4
+0, 878400, 38016, 0x20f08043
+0, 882000, 38016, 0xb7bfeab2
+0, 885600, 38016, 0x53440996
+0, 889200, 38016, 0x6452d384
+0, 892800, 38016, 0xabcb975e
+0, 896400, 38016, 0x146123b9
+0, 900000, 38016, 0xbeddbfff
+0, 903600, 38016, 0xa0c97c47
+0, 907200, 38016, 0x1dca7308
+0, 910800, 38016, 0x16c5c832
+0, 914400, 38016, 0xcab326b9
+0, 918000, 38016, 0xe952c9bd
+0, 921600, 38016, 0x216ec182
+0, 925200, 38016, 0xb21a5074
+0, 928800, 38016, 0xcbe73c15
+0, 932400, 38016, 0xb5e532de
+0, 936000, 38016, 0x3a693aa5
+0, 939600, 38016, 0x157f4a20
+0, 943200, 38016, 0x9f9a5868
+0, 946800, 38016, 0x50f65ea1
+0, 950400, 38016, 0xe1735d4f
+0, 954000, 38016, 0x15284ec7
+0, 957600, 38016, 0x32433d94
+0, 961200, 38016, 0x768f2092
+0, 964800, 38016, 0x6b01f5ad
+0, 968400, 38016, 0xadcbce27
+0, 972000, 38016, 0x6faca613
+0, 975600, 38016, 0xd9327d40
+0, 979200, 38016, 0xbc1060ef
+0, 982800, 38016, 0xbe071251
+0, 986400, 38016, 0x47abbfaa
+0, 990000, 38016, 0x4851af88
+0, 993600, 38016, 0xff53c772
+0, 997200, 38016, 0xa1dcbef5
+0, 1000800, 38016, 0x106df309
+0, 1004400, 38016, 0x92e65f13
+0, 1008000, 38016, 0x7e8ffdb9
+0, 1011600, 38016, 0x0ba4d317
+0, 1015200, 38016, 0xe038a2a2
+0, 1018800, 38016, 0xc479675b
+0, 1022400, 38016, 0xadbc4d18
+0, 1026000, 38016, 0x2d41a44b
+0, 1029600, 38016, 0x3240617d
+0, 1033200, 38016, 0xa60f9b98
+0, 1036800, 38016, 0x3aeea379
+0, 1040400, 38016, 0x45a0936c
+0, 1044000, 38016, 0xf0c42d2f
+0, 1047600, 38016, 0x930343ee
+0, 1051200, 38016, 0xe074d631
+0, 1054800, 38016, 0xc6f20ab5
+0, 1058400, 38016, 0x3f5a4ef7
+0, 1062000, 38016, 0x94d44b16
+0, 1065600, 38016, 0xa52427da
+0, 1069200, 38016, 0x2f2116a1
+0, 1072800, 38016, 0x566c2541
+0, 1076400, 38016, 0x0b894c8b
diff --git a/tests/ref/fate/h264-conformance-caba2_sva_b b/tests/ref/fate/h264-conformance-caba2_sva_b
new file mode 100644
index 0000000000..af25df7096
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-caba2_sva_b
@@ -0,0 +1,17 @@
+0, 0, 38016, 0xee831fe4
+0, 3600, 38016, 0xd9130e19
+0, 7200, 38016, 0x8ad70cae
+0, 10800, 38016, 0x98f11d0e
+0, 14400, 38016, 0x311d46ea
+0, 18000, 38016, 0xe2f15cc5
+0, 21600, 38016, 0xb4c174c6
+0, 25200, 38016, 0x22708406
+0, 28800, 38016, 0x7116a2d2
+0, 32400, 38016, 0x7937b29b
+0, 36000, 38016, 0xfa62a1d7
+0, 39600, 38016, 0x2066b1c6
+0, 43200, 38016, 0x18ecaa40
+0, 46800, 38016, 0xe5dc8d99
+0, 50400, 38016, 0x77046f4a
+0, 54000, 38016, 0x1c50704f
+0, 57600, 38016, 0x87f1879d
diff --git a/tests/ref/fate/h264-conformance-caba3_sony_c b/tests/ref/fate/h264-conformance-caba3_sony_c
new file mode 100644
index 0000000000..d5465b3840
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-caba3_sony_c
@@ -0,0 +1,300 @@
+0, 0, 38016, 0xb3883478
+0, 3600, 38016, 0xb6261cdd
+0, 7200, 38016, 0x42ecede9
+0, 10800, 38016, 0xfcd6aec1
+0, 14400, 38016, 0xb3ffa014
+0, 18000, 38016, 0xc65383e3
+0, 21600, 38016, 0xa8494fb1
+0, 25200, 38016, 0x7fb14e0f
+0, 28800, 38016, 0x7dd3462a
+0, 32400, 38016, 0x4bd43dda
+0, 36000, 38016, 0x717e736f
+0, 39600, 38016, 0x2a9b8e47
+0, 43200, 38016, 0x1bc272be
+0, 46800, 38016, 0x0127afb5
+0, 50400, 38016, 0xfd7aacda
+0, 54000, 38016, 0xd41c9cf7
+0, 57600, 38016, 0xd205b1ee
+0, 61200, 38016, 0x967ca895
+0, 64800, 38016, 0x25978063
+0, 68400, 38016, 0x632081b3
+0, 72000, 38016, 0x8ccf5f0b
+0, 75600, 38016, 0x21cc2141
+0, 79200, 38016, 0x477d2543
+0, 82800, 38016, 0xff971bb8
+0, 86400, 38016, 0x0dc21005
+0, 90000, 38016, 0xc69c2d90
+0, 93600, 38016, 0xd7922b5d
+0, 97200, 38016, 0x59a3278f
+0, 100800, 38016, 0x83c55d4d
+0, 104400, 38016, 0xaac96f23
+0, 108000, 38016, 0xed9563d3
+0, 111600, 38016, 0xf86b9ef4
+0, 115200, 38016, 0xe616b81c
+0, 118800, 38016, 0xde60a57b
+0, 122400, 38016, 0x5fe8d130
+0, 126000, 38016, 0x11decaca
+0, 129600, 38016, 0x526fa8e2
+0, 133200, 38016, 0xc5e7ccfb
+0, 136800, 38016, 0x10e1c588
+0, 140400, 38016, 0x78aeb05b
+0, 144000, 38016, 0xff85c717
+0, 147600, 38016, 0x3f02c1b2
+0, 151200, 38016, 0xf45eb015
+0, 154800, 38016, 0x0211b84d
+0, 158400, 38016, 0x3864ba1f
+0, 162000, 38016, 0xe3728780
+0, 165600, 38016, 0x575da8b5
+0, 169200, 38016, 0xc841ad98
+0, 172800, 38016, 0xe69ea78f
+0, 176400, 38016, 0x45cabf16
+0, 180000, 38016, 0x0e00b8eb
+0, 183600, 38016, 0xa774a808
+0, 187200, 38016, 0xfb1bbc2b
+0, 190800, 38016, 0xcfb4b41d
+0, 194400, 38016, 0x66abaff8
+0, 198000, 38016, 0xc39ac9a9
+0, 201600, 38016, 0xbec0cc9a
+0, 205200, 38016, 0xf393c7fc
+0, 208800, 38016, 0xedb5d4ef
+0, 212400, 38016, 0x4b0fd4fe
+0, 216000, 38016, 0x98a59a5a
+0, 219600, 38016, 0x0a69a4f3
+0, 223200, 38016, 0x72bc89ce
+0, 226800, 38016, 0xfe8538b6
+0, 230400, 38016, 0xc8a158a3
+0, 234000, 38016, 0x1cb57fcd
+0, 237600, 38016, 0x76c29215
+0, 241200, 38016, 0xdb36ec21
+0, 244800, 38016, 0xc2e22427
+0, 248400, 38016, 0xafb433cd
+0, 252000, 38016, 0x4d736e28
+0, 255600, 38016, 0xc6ab9949
+0, 259200, 38016, 0xaa9bb9e6
+0, 262800, 38016, 0x0d41f894
+0, 266400, 38016, 0x603332b0
+0, 270000, 38016, 0x4c0b3afa
+0, 273600, 38016, 0x8fd3845e
+0, 277200, 38016, 0x8cf09ae3
+0, 280800, 38016, 0x1e02adfb
+0, 284400, 38016, 0x3c9ac38e
+0, 288000, 38016, 0xb5fdd2d9
+0, 291600, 38016, 0x82c5dd7f
+0, 295200, 38016, 0x4b6ee80a
+0, 298800, 38016, 0xaeaee46f
+0, 302400, 38016, 0x390ed382
+0, 306000, 38016, 0xedbfde44
+0, 309600, 38016, 0xabf6eba0
+0, 313200, 38016, 0x5bf5efd0
+0, 316800, 38016, 0x9a88ebe3
+0, 320400, 38016, 0x2af7ec3b
+0, 324000, 38016, 0x8fa69f07
+0, 327600, 38016, 0xff8fb3b5
+0, 331200, 38016, 0xd06fa3c1
+0, 334800, 38016, 0xe5a97d39
+0, 338400, 38016, 0x961e7c6f
+0, 342000, 38016, 0x18b278af
+0, 345600, 38016, 0x9a0d73d2
+0, 349200, 38016, 0x378f9d74
+0, 352800, 38016, 0x42e5a7a3
+0, 356400, 38016, 0x4595a78e
+0, 360000, 38016, 0x6c09c035
+0, 363600, 38016, 0xec58ab98
+0, 367200, 38016, 0x1b4b8d2b
+0, 370800, 38016, 0xf5199117
+0, 374400, 38016, 0xcd31af4d
+0, 378000, 38016, 0xf294a253
+0, 381600, 38016, 0x360dde6b
+0, 385200, 38016, 0x101cf70c
+0, 388800, 38016, 0x4b34ff17
+0, 392400, 38016, 0x520639c0
+0, 396000, 38016, 0x901840a9
+0, 399600, 38016, 0x4cb03284
+0, 403200, 38016, 0x6929470c
+0, 406800, 38016, 0x21282bdf
+0, 410400, 38016, 0xee8df0ec
+0, 414000, 38016, 0x24970e16
+0, 417600, 38016, 0x280118e3
+0, 421200, 38016, 0x00a10b64
+0, 424800, 38016, 0xb0673f83
+0, 428400, 38016, 0x838644de
+0, 432000, 38016, 0x32e93592
+0, 435600, 38016, 0xedfc477a
+0, 439200, 38016, 0x41062501
+0, 442800, 38016, 0xf218ebf2
+0, 446400, 38016, 0x3430dc73
+0, 450000, 38016, 0xb2fab8f0
+0, 453600, 38016, 0x11b19bab
+0, 457200, 38016, 0x8e30b8e7
+0, 460800, 38016, 0xc8b9c646
+0, 464400, 38016, 0xc902d559
+0, 468000, 38016, 0x3a24ec30
+0, 471600, 38016, 0x744de424
+0, 475200, 38016, 0xc40cd059
+0, 478800, 38016, 0xd98dd9ec
+0, 482400, 38016, 0x9719d698
+0, 486000, 38016, 0x1612a173
+0, 489600, 38016, 0xc044b9f1
+0, 493200, 38016, 0xc433af2f
+0, 496800, 38016, 0x559891e3
+0, 500400, 38016, 0x969e9a33
+0, 504000, 38016, 0x8a6a8e77
+0, 507600, 38016, 0x9d7b76bf
+0, 511200, 38016, 0x3725711a
+0, 514800, 38016, 0x5b316bd0
+0, 518400, 38016, 0x4c616abd
+0, 522000, 38016, 0x43637e2b
+0, 525600, 38016, 0xd9e36c4c
+0, 529200, 38016, 0x823d3596
+0, 532800, 38016, 0x57361a59
+0, 536400, 38016, 0x4a91f007
+0, 540000, 38016, 0xf731aef2
+0, 543600, 38016, 0x8ed2c618
+0, 547200, 38016, 0x6f1cc918
+0, 550800, 38016, 0x2a8ba336
+0, 554400, 38016, 0x8159b595
+0, 558000, 38016, 0x07cfced9
+0, 561600, 38016, 0x8804c878
+0, 565200, 38016, 0x624e0656
+0, 568800, 38016, 0x8628302b
+0, 572400, 38016, 0xd155461e
+0, 576000, 38016, 0x3c1c647c
+0, 579600, 38016, 0x8a485727
+0, 583200, 38016, 0x144934f7
+0, 586800, 38016, 0x43183494
+0, 590400, 38016, 0x20fd2ef2
+0, 594000, 38016, 0xc31bf5da
+0, 597600, 38016, 0x4c70f0f2
+0, 601200, 38016, 0xba1bcbcc
+0, 604800, 38016, 0x11039c6c
+0, 608400, 38016, 0x67c59b61
+0, 612000, 38016, 0xdc0aa2ba
+0, 615600, 38016, 0x1e2dbec9
+0, 619200, 38016, 0xacacdc6c
+0, 622800, 38016, 0x2049defe
+0, 626400, 38016, 0x7488cc3e
+0, 630000, 38016, 0x14bca829
+0, 633600, 38016, 0xc19c76ee
+0, 637200, 38016, 0xeca33612
+0, 640800, 38016, 0x93b027a5
+0, 644400, 38016, 0x82ae1e62
+0, 648000, 38016, 0x0769ec52
+0, 651600, 38016, 0x7cdee8dd
+0, 655200, 38016, 0x7d22d43d
+0, 658800, 38016, 0x65d8cd49
+0, 662400, 38016, 0xa7d2ede4
+0, 666000, 38016, 0x6bd2ffa1
+0, 669600, 38016, 0xb4db0734
+0, 673200, 38016, 0x69cb35ac
+0, 676800, 38016, 0x05e52e88
+0, 680400, 38016, 0x4dc92a43
+0, 684000, 38016, 0x8ca0e858
+0, 687600, 38016, 0x74fbae53
+0, 691200, 38016, 0x19f0aa17
+0, 694800, 38016, 0x04c9dc83
+0, 698400, 38016, 0x0a8ff4b9
+0, 702000, 38016, 0xd8d01ad1
+0, 705600, 38016, 0xa41b5100
+0, 709200, 38016, 0xfaf96547
+0, 712800, 38016, 0xadab8265
+0, 716400, 38016, 0x6e12a9c3
+0, 720000, 38016, 0x1de7b7d1
+0, 723600, 38016, 0x2279bc4a
+0, 727200, 38016, 0x4f62ca0f
+0, 730800, 38016, 0xfaf2cc43
+0, 734400, 38016, 0xbf68c7df
+0, 738000, 38016, 0xb927d1ea
+0, 741600, 38016, 0x8b93d7c6
+0, 745200, 38016, 0x13f3d7d6
+0, 748800, 38016, 0x9ee4cc7b
+0, 752400, 38016, 0x16deb1a0
+0, 756000, 38016, 0xadb65d17
+0, 759600, 38016, 0x0b9e7542
+0, 763200, 38016, 0x05777490
+0, 766800, 38016, 0x6805549f
+0, 770400, 38016, 0xe3246225
+0, 774000, 38016, 0x4003551b
+0, 777600, 38016, 0x1e083a01
+0, 781200, 38016, 0x756e4f22
+0, 784800, 38016, 0xf2f24967
+0, 788400, 38016, 0x680d37f2
+0, 792000, 38016, 0x85b34185
+0, 795600, 38016, 0xefa32eeb
+0, 799200, 38016, 0xca791448
+0, 802800, 38016, 0x7c6b2b13
+0, 806400, 38016, 0x0d8232a6
+0, 810000, 38016, 0x92b51315
+0, 813600, 38016, 0xcfde349c
+0, 817200, 38016, 0xdc1a488b
+0, 820800, 38016, 0xdcf94106
+0, 824400, 38016, 0xc205829b
+0, 828000, 38016, 0x0aff9da3
+0, 831600, 38016, 0x3295b04e
+0, 835200, 38016, 0xc42dfaab
+0, 838800, 38016, 0x799e14a2
+0, 842400, 38016, 0xf658150c
+0, 846000, 38016, 0x4c8751fe
+0, 849600, 38016, 0xe57d58ed
+0, 853200, 38016, 0x28f83c49
+0, 856800, 38016, 0x9760453c
+0, 860400, 38016, 0x1d550fcf
+0, 864000, 38016, 0x99cee4bd
+0, 867600, 38016, 0x743ad122
+0, 871200, 38016, 0xb533ab7c
+0, 874800, 38016, 0x5ca5fc65
+0, 878400, 38016, 0x491c7076
+0, 882000, 38016, 0x8a96d9e5
+0, 885600, 38016, 0x23c3f207
+0, 889200, 38016, 0x3181d62d
+0, 892800, 38016, 0xc72e9636
+0, 896400, 38016, 0xe0c31ae9
+0, 900000, 38016, 0x2f91c0ce
+0, 903600, 38016, 0x17937763
+0, 907200, 38016, 0x61986c20
+0, 910800, 38016, 0x6adeca83
+0, 914400, 38016, 0x894a376b
+0, 918000, 38016, 0xe952c9bd
+0, 921600, 38016, 0x0418d8e9
+0, 925200, 38016, 0x30de606e
+0, 928800, 38016, 0xd15e3116
+0, 932400, 38016, 0xee0446ac
+0, 936000, 38016, 0x34ee44f7
+0, 939600, 38016, 0x825745d4
+0, 943200, 38016, 0xb8046176
+0, 946800, 38016, 0xa812588a
+0, 950400, 38016, 0xed754b26
+0, 954000, 38016, 0xa39c51cd
+0, 957600, 38016, 0x315b38d5
+0, 961200, 38016, 0x12550e05
+0, 964800, 38016, 0xbda6fd9a
+0, 968400, 38016, 0xd10bd86c
+0, 972000, 38016, 0x6faca613
+0, 975600, 38016, 0x6268848a
+0, 979200, 38016, 0x2b8367e6
+0, 982800, 38016, 0xdb6806fd
+0, 986400, 38016, 0x4f58d418
+0, 990000, 38016, 0x59beb628
+0, 993600, 38016, 0x8017aae2
+0, 997200, 38016, 0xb26ad1b3
+0, 1000800, 38016, 0xa058f3a3
+0, 1004400, 38016, 0x4fee4ac2
+0, 1008000, 38016, 0x5dd20ae9
+0, 1011600, 38016, 0x6365dbda
+0, 1015200, 38016, 0x25b47f80
+0, 1018800, 38016, 0x468b8ecb
+0, 1022400, 38016, 0x0b0760f9
+0, 1026000, 38016, 0x2d41a44b
+0, 1029600, 38016, 0x4bb47357
+0, 1033200, 38016, 0x2c0ca74c
+0, 1036800, 38016, 0x6484a271
+0, 1040400, 38016, 0xa55871df
+0, 1044000, 38016, 0xa617ecd8
+0, 1047600, 38016, 0xf7231cc5
+0, 1051200, 38016, 0x15dba20b
+0, 1054800, 38016, 0x56a7d8c7
+0, 1058400, 38016, 0x5e78382b
+0, 1062000, 38016, 0x8edf243b
+0, 1065600, 38016, 0x571effaf
+0, 1069200, 38016, 0x274302d2
+0, 1072800, 38016, 0xc950203d
+0, 1076400, 38016, 0x4a744324
diff --git a/tests/ref/fate/h264-conformance-caba3_sva_b b/tests/ref/fate/h264-conformance-caba3_sva_b
new file mode 100644
index 0000000000..449fb75442
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-caba3_sva_b
@@ -0,0 +1,33 @@
+0, 0, 38016, 0x0e091175
+0, 3600, 38016, 0xe8f81506
+0, 7200, 38016, 0xf706f5cd
+0, 10800, 38016, 0x9aeb21b1
+0, 14400, 38016, 0xdc533379
+0, 18000, 38016, 0xd26d534b
+0, 21600, 38016, 0xdcb25dc5
+0, 25200, 38016, 0x1b258cc2
+0, 28800, 38016, 0xdfb58ff8
+0, 32400, 38016, 0x143abf85
+0, 36000, 38016, 0xace399ea
+0, 39600, 38016, 0x1ad6bb8e
+0, 43200, 38016, 0xf01d9b78
+0, 46800, 38016, 0x5a0c99ed
+0, 50400, 38016, 0x9d4e684c
+0, 54000, 38016, 0xca3d811f
+0, 57600, 38016, 0x388c7bc4
+0, 61200, 38016, 0x36329ae0
+0, 64800, 38016, 0x7ca686ac
+0, 68400, 38016, 0x9d7ababf
+0, 72000, 38016, 0x563eaf2a
+0, 75600, 38016, 0xce22a4be
+0, 79200, 38016, 0xb7cb719a
+0, 82800, 38016, 0x7b706edf
+0, 86400, 38016, 0x009a30b5
+0, 90000, 38016, 0xf1fe3fbc
+0, 93600, 38016, 0x7f732436
+0, 97200, 38016, 0x055147ec
+0, 100800, 38016, 0x1670494c
+0, 104400, 38016, 0xfede7bab
+0, 108000, 38016, 0xa3b660d8
+0, 111600, 38016, 0x33db7209
+0, 115200, 38016, 0xb7b25559
diff --git a/tests/ref/fate/h264-conformance-caba3_toshiba_e b/tests/ref/fate/h264-conformance-caba3_toshiba_e
new file mode 100644
index 0000000000..e874659167
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-caba3_toshiba_e
@@ -0,0 +1,300 @@
+0, 0, 38016, 0x72723ce4
+0, 3600, 38016, 0x347219d7
+0, 7200, 38016, 0x813ff182
+0, 10800, 38016, 0x4e69d41a
+0, 14400, 38016, 0x5e56acb6
+0, 18000, 38016, 0xe72197e5
+0, 21600, 38016, 0xd035807a
+0, 25200, 38016, 0x9ee57559
+0, 28800, 38016, 0xd0f56f28
+0, 32400, 38016, 0xa5097788
+0, 36000, 38016, 0xf108978d
+0, 39600, 38016, 0xf76cb475
+0, 43200, 38016, 0x0184cc3a
+0, 46800, 38016, 0xa4b5dc15
+0, 50400, 38016, 0x209cdc42
+0, 54000, 38016, 0xd9e69a8c
+0, 57600, 38016, 0xa2c3a9ba
+0, 61200, 38016, 0xdf84a52e
+0, 64800, 38016, 0xfe48a7f0
+0, 68400, 38016, 0xb0279a19
+0, 72000, 38016, 0xf3b48652
+0, 75600, 38016, 0xc12b61b5
+0, 79200, 38016, 0x13065a22
+0, 82800, 38016, 0x804853d4
+0, 86400, 38016, 0x40935736
+0, 90000, 38016, 0x1a135ecb
+0, 93600, 38016, 0x125f6116
+0, 97200, 38016, 0x53286da3
+0, 100800, 38016, 0xd49287ac
+0, 104400, 38016, 0xc70a9c2c
+0, 108000, 38016, 0x0c0c6998
+0, 111600, 38016, 0xf37d9141
+0, 115200, 38016, 0xd36eafa2
+0, 118800, 38016, 0x0d1fc298
+0, 122400, 38016, 0xf84ad5d9
+0, 126000, 38016, 0xc1e8d93d
+0, 129600, 38016, 0xe190dabd
+0, 133200, 38016, 0x9542db28
+0, 136800, 38016, 0xa67edc7f
+0, 140400, 38016, 0x65efdfa7
+0, 144000, 38016, 0x7039e6c6
+0, 147600, 38016, 0x8307ee87
+0, 151200, 38016, 0x1f83ec00
+0, 154800, 38016, 0x9e33ea6e
+0, 158400, 38016, 0xb53ef238
+0, 162000, 38016, 0x6d04930c
+0, 165600, 38016, 0xed90a50e
+0, 169200, 38016, 0xd98cb4a6
+0, 172800, 38016, 0xa7f5bd5e
+0, 176400, 38016, 0x4df9ca95
+0, 180000, 38016, 0xc8e7cb40
+0, 183600, 38016, 0x93d9d23c
+0, 187200, 38016, 0xc07fd34f
+0, 190800, 38016, 0xf7c5d645
+0, 194400, 38016, 0x3c1ddf53
+0, 198000, 38016, 0x0bafe394
+0, 201600, 38016, 0x9179ec6f
+0, 205200, 38016, 0x3483efc3
+0, 208800, 38016, 0xf7ccf70d
+0, 212400, 38016, 0x289ef13b
+0, 216000, 38016, 0xb00c99dc
+0, 219600, 38016, 0x59409b34
+0, 223200, 38016, 0x3fc079a2
+0, 226800, 38016, 0x90ad49d9
+0, 230400, 38016, 0x8e7751e2
+0, 234000, 38016, 0xed20743d
+0, 237600, 38016, 0x66a1a470
+0, 241200, 38016, 0x7a77e252
+0, 244800, 38016, 0x6bb427fe
+0, 248400, 38016, 0x87126360
+0, 252000, 38016, 0x330789d0
+0, 255600, 38016, 0xc298b987
+0, 259200, 38016, 0x4959f143
+0, 262800, 38016, 0xa66e3082
+0, 266400, 38016, 0xb9f67824
+0, 270000, 38016, 0x27fe46a2
+0, 273600, 38016, 0xc50c87ed
+0, 277200, 38016, 0x9523a9f6
+0, 280800, 38016, 0xbe28d1d7
+0, 284400, 38016, 0x3c0ee964
+0, 288000, 38016, 0x65c7f36c
+0, 291600, 38016, 0xe5030946
+0, 295200, 38016, 0x4bbb11fa
+0, 298800, 38016, 0xeaf209ed
+0, 302400, 38016, 0x96c80987
+0, 306000, 38016, 0x69820c58
+0, 309600, 38016, 0x5f951aa7
+0, 313200, 38016, 0xfe6122d9
+0, 316800, 38016, 0xa202301a
+0, 320400, 38016, 0xdd2628fb
+0, 324000, 38016, 0xe081a5ff
+0, 327600, 38016, 0x5b858e9e
+0, 331200, 38016, 0x7a368229
+0, 334800, 38016, 0x3791829a
+0, 338400, 38016, 0x9c68723d
+0, 342000, 38016, 0xef26778e
+0, 345600, 38016, 0x39a491cf
+0, 349200, 38016, 0x776ea867
+0, 352800, 38016, 0xda9ac03b
+0, 356400, 38016, 0x653bc9a3
+0, 360000, 38016, 0x79e1da19
+0, 363600, 38016, 0x3b98c6eb
+0, 367200, 38016, 0x42cdb846
+0, 370800, 38016, 0x7872ada1
+0, 374400, 38016, 0xb2f6d2ef
+0, 378000, 38016, 0x9468b16a
+0, 381600, 38016, 0xe793c91a
+0, 385200, 38016, 0x80bde366
+0, 388800, 38016, 0xa7250446
+0, 392400, 38016, 0x7039280b
+0, 396000, 38016, 0x1665350c
+0, 399600, 38016, 0xb5c93f1f
+0, 403200, 38016, 0xf77a4c44
+0, 406800, 38016, 0x3a093143
+0, 410400, 38016, 0x1d6b1005
+0, 414000, 38016, 0xe1a10c01
+0, 417600, 38016, 0x2d4d1d54
+0, 421200, 38016, 0x902f2b14
+0, 424800, 38016, 0xb26e3e73
+0, 428400, 38016, 0xed7a469e
+0, 432000, 38016, 0xbc663d2a
+0, 435600, 38016, 0x60a5488e
+0, 439200, 38016, 0x451b31ca
+0, 442800, 38016, 0x54311166
+0, 446400, 38016, 0x57d9f31e
+0, 450000, 38016, 0x567dd693
+0, 453600, 38016, 0x0e58d88c
+0, 457200, 38016, 0xa555e124
+0, 460800, 38016, 0x94e2f835
+0, 464400, 38016, 0xe49e0ec0
+0, 468000, 38016, 0x585d188e
+0, 471600, 38016, 0x696e1a0d
+0, 475200, 38016, 0xac9014b1
+0, 478800, 38016, 0x915413c6
+0, 482400, 38016, 0x5fa30be7
+0, 486000, 38016, 0x8fbfb69c
+0, 489600, 38016, 0xcaeabfab
+0, 493200, 38016, 0xe494bf5c
+0, 496800, 38016, 0xae03be55
+0, 500400, 38016, 0xb734b4d3
+0, 504000, 38016, 0xdc6fb56f
+0, 507600, 38016, 0xfea0a853
+0, 511200, 38016, 0xb4919381
+0, 514800, 38016, 0x13a792fe
+0, 518400, 38016, 0xc8829fd8
+0, 522000, 38016, 0x2113a62b
+0, 525600, 38016, 0x171f98d2
+0, 529200, 38016, 0x1a6d6d17
+0, 532800, 38016, 0xd4ab41c3
+0, 536400, 38016, 0xd2df1c80
+0, 540000, 38016, 0x14cdbb35
+0, 543600, 38016, 0x2b74b829
+0, 547200, 38016, 0x6433bd55
+0, 550800, 38016, 0xd11dbc28
+0, 554400, 38016, 0x4981ad33
+0, 558000, 38016, 0xc38bbbad
+0, 561600, 38016, 0x048de367
+0, 565200, 38016, 0x6c9a0c5a
+0, 568800, 38016, 0x384c4255
+0, 572400, 38016, 0x3e9873ba
+0, 576000, 38016, 0xe4988671
+0, 579600, 38016, 0x05b4843c
+0, 583200, 38016, 0xed0a7e13
+0, 586800, 38016, 0x750c6f90
+0, 590400, 38016, 0x9d296035
+0, 594000, 38016, 0xbaa006bd
+0, 597600, 38016, 0x8289f8ae
+0, 601200, 38016, 0x3f3de147
+0, 604800, 38016, 0xc5debc49
+0, 608400, 38016, 0x1fe9bbfc
+0, 612000, 38016, 0x006cd4a9
+0, 615600, 38016, 0xe551f2b3
+0, 619200, 38016, 0xb370140e
+0, 622800, 38016, 0xc9441c24
+0, 626400, 38016, 0x7f5c01c5
+0, 630000, 38016, 0x352ad9f6
+0, 633600, 38016, 0xe0909a17
+0, 637200, 38016, 0x49bf5ea8
+0, 640800, 38016, 0x7f1d387b
+0, 644400, 38016, 0x30812233
+0, 648000, 38016, 0xb0bdf16f
+0, 651600, 38016, 0x5372d0e9
+0, 655200, 38016, 0xbf1bc91c
+0, 658800, 38016, 0xaef5d647
+0, 662400, 38016, 0xf007e86c
+0, 666000, 38016, 0x683bf72b
+0, 669600, 38016, 0xbb722114
+0, 673200, 38016, 0xc5864b63
+0, 676800, 38016, 0xfefd5cf4
+0, 680400, 38016, 0xa0f263d5
+0, 684000, 38016, 0x18401a02
+0, 687600, 38016, 0x55cdd97b
+0, 691200, 38016, 0x5a4ee22d
+0, 694800, 38016, 0xa60706b3
+0, 698400, 38016, 0x644422bb
+0, 702000, 38016, 0xc22421c9
+0, 705600, 38016, 0x1d6b54e4
+0, 709200, 38016, 0xc7627820
+0, 712800, 38016, 0x0a6ea609
+0, 716400, 38016, 0x4315c087
+0, 720000, 38016, 0x3164d978
+0, 723600, 38016, 0x08e3e7eb
+0, 727200, 38016, 0x4f04eaed
+0, 730800, 38016, 0x9f83eb5a
+0, 734400, 38016, 0xfbbcf0b2
+0, 738000, 38016, 0xee1efb8a
+0, 741600, 38016, 0x87710ba0
+0, 745200, 38016, 0xb96b05c1
+0, 748800, 38016, 0xd5a4fc50
+0, 752400, 38016, 0xad85ea19
+0, 756000, 38016, 0x5f606058
+0, 759600, 38016, 0xdaf55ad0
+0, 763200, 38016, 0xee8564d6
+0, 766800, 38016, 0xa1846cad
+0, 770400, 38016, 0xcd316a62
+0, 774000, 38016, 0xdcf5638f
+0, 777600, 38016, 0xc5e36d1d
+0, 781200, 38016, 0x958369a6
+0, 784800, 38016, 0x05826bf0
+0, 788400, 38016, 0x22146914
+0, 792000, 38016, 0xf5086111
+0, 795600, 38016, 0x88f35468
+0, 799200, 38016, 0x3ae94126
+0, 802800, 38016, 0xf4473aa8
+0, 806400, 38016, 0x430c3da2
+0, 810000, 38016, 0xaf95113e
+0, 813600, 38016, 0xa8a216d6
+0, 817200, 38016, 0xad2f328c
+0, 820800, 38016, 0xea724415
+0, 824400, 38016, 0x34016af4
+0, 828000, 38016, 0x4829a4cb
+0, 831600, 38016, 0x4b24bc67
+0, 835200, 38016, 0xb523f023
+0, 838800, 38016, 0x5c6d2305
+0, 842400, 38016, 0x39e63adc
+0, 846000, 38016, 0xf7c64a7c
+0, 849600, 38016, 0xd601680a
+0, 853200, 38016, 0xbbad6a12
+0, 856800, 38016, 0xddc1500f
+0, 860400, 38016, 0x1f1726e6
+0, 864000, 38016, 0x48aee68f
+0, 867600, 38016, 0xc1fbd4f0
+0, 871200, 38016, 0x4a89dc83
+0, 874800, 38016, 0xa7cd2b02
+0, 878400, 38016, 0xf52aa0b8
+0, 882000, 38016, 0x1f260626
+0, 885600, 38016, 0x80561eac
+0, 889200, 38016, 0x6687f8ef
+0, 892800, 38016, 0x986ab08f
+0, 896400, 38016, 0xb4923773
+0, 900000, 38016, 0x5cc2d603
+0, 903600, 38016, 0x9e8d93db
+0, 907200, 38016, 0x33fd8981
+0, 910800, 38016, 0xaf45e630
+0, 914400, 38016, 0x1227448e
+0, 918000, 38016, 0x424cccf0
+0, 921600, 38016, 0x03b0cb3e
+0, 925200, 38016, 0x7aad547d
+0, 928800, 38016, 0xbf8544b2
+0, 932400, 38016, 0x54a843ca
+0, 936000, 38016, 0x759d4dd0
+0, 939600, 38016, 0x000162da
+0, 943200, 38016, 0x87ec74b0
+0, 946800, 38016, 0xefee8259
+0, 950400, 38016, 0x7b547eea
+0, 954000, 38016, 0xcae96b73
+0, 957600, 38016, 0x730f59c3
+0, 961200, 38016, 0x7d9b3e82
+0, 964800, 38016, 0x3bb11ef0
+0, 968400, 38016, 0x7581fa6b
+0, 972000, 38016, 0xe594a982
+0, 975600, 38016, 0xde3888d6
+0, 979200, 38016, 0x0e096d6b
+0, 982800, 38016, 0x297c20dc
+0, 986400, 38016, 0x51f7ce7f
+0, 990000, 38016, 0x23d2c247
+0, 993600, 38016, 0x0bdcd0d0
+0, 997200, 38016, 0x63cfd4f3
+0, 1000800, 38016, 0x6d4b01f8
+0, 1004400, 38016, 0xa50d72f0
+0, 1008000, 38016, 0xccad0d72
+0, 1011600, 38016, 0x10c9e33e
+0, 1015200, 38016, 0xba6daf97
+0, 1018800, 38016, 0xd65074e0
+0, 1022400, 38016, 0xd36954aa
+0, 1026000, 38016, 0xd9a2a642
+0, 1029600, 38016, 0xce755f9f
+0, 1033200, 38016, 0x81d29c44
+0, 1036800, 38016, 0x23b0aef5
+0, 1040400, 38016, 0xb0ef9efa
+0, 1044000, 38016, 0xf20d4a7a
+0, 1047600, 38016, 0xa0c86899
+0, 1051200, 38016, 0x1ae4f865
+0, 1054800, 38016, 0x3a5731c8
+0, 1058400, 38016, 0x75f17ec5
+0, 1062000, 38016, 0x8f447aa9
+0, 1065600, 38016, 0x71615441
+0, 1069200, 38016, 0x90c13e26
+0, 1072800, 38016, 0x08d04aaf
+0, 1076400, 38016, 0x14fd7b04
diff --git a/tests/ref/fate/h264-conformance-cabac_mot_fld0_full b/tests/ref/fate/h264-conformance-cabac_mot_fld0_full
new file mode 100644
index 0000000000..a88e0c106b
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cabac_mot_fld0_full
@@ -0,0 +1,30 @@
+0, 0, 518400, 0xbf168f4e
+0, 3600, 518400, 0xeda5e54f
+0, 7200, 518400, 0xef496d43
+0, 10800, 518400, 0x6b68dad5
+0, 14400, 518400, 0x9a40a7de
+0, 18000, 518400, 0x0c21c018
+0, 21600, 518400, 0x4ac5a846
+0, 25200, 518400, 0x3a1aa817
+0, 28800, 518400, 0xcc4eb434
+0, 32400, 518400, 0x4368a3c2
+0, 36000, 518400, 0xb923682f
+0, 39600, 518400, 0xd95460a8
+0, 43200, 518400, 0x8e8518aa
+0, 46800, 518400, 0x292a1a80
+0, 50400, 518400, 0xbada388e
+0, 54000, 518400, 0xa67f63c9
+0, 57600, 518400, 0x9fc77e21
+0, 61200, 518400, 0xe99dc2ac
+0, 64800, 518400, 0x17d7d080
+0, 68400, 518400, 0x41760c0b
+0, 72000, 518400, 0x3c70f34d
+0, 75600, 518400, 0x0d640285
+0, 79200, 518400, 0x448893e8
+0, 82800, 518400, 0x08194490
+0, 86400, 518400, 0xcf227031
+0, 90000, 518400, 0x8d94587d
+0, 93600, 518400, 0x696fca01
+0, 97200, 518400, 0xe0ab234b
+0, 100800, 518400, 0x0620153b
+0, 104400, 518400, 0xb78c146c
diff --git a/tests/ref/fate/h264-conformance-cabac_mot_frm0_full b/tests/ref/fate/h264-conformance-cabac_mot_frm0_full
new file mode 100644
index 0000000000..437a86beff
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cabac_mot_frm0_full
@@ -0,0 +1,30 @@
+0, 0, 518400, 0x40c7e2d9
+0, 3600, 518400, 0xb16701a5
+0, 7200, 518400, 0x12c2f5b1
+0, 10800, 518400, 0x9832aecc
+0, 14400, 518400, 0x2b8bcdec
+0, 18000, 518400, 0x04448f3a
+0, 21600, 518400, 0xc7ac82d8
+0, 25200, 518400, 0xe746bb8a
+0, 28800, 518400, 0xc7ac92d3
+0, 32400, 518400, 0x38d89443
+0, 36000, 518400, 0xcb9fbe74
+0, 39600, 518400, 0x5543867d
+0, 43200, 518400, 0xaf1b147f
+0, 46800, 518400, 0xe5f07e40
+0, 50400, 518400, 0x66dc6734
+0, 54000, 518400, 0x0f9491be
+0, 57600, 518400, 0xbcdaacac
+0, 61200, 518400, 0xf4480ae7
+0, 64800, 518400, 0xa5cef4d5
+0, 68400, 518400, 0x9e4e4320
+0, 72000, 518400, 0x620c3212
+0, 75600, 518400, 0x4350df1d
+0, 79200, 518400, 0x6360ef84
+0, 82800, 518400, 0xc1866d03
+0, 86400, 518400, 0x38eb3b5b
+0, 90000, 518400, 0x00166df1
+0, 93600, 518400, 0x841ea87c
+0, 97200, 518400, 0x8b40f836
+0, 100800, 518400, 0x3b380ddf
+0, 104400, 518400, 0x275adf46
diff --git a/tests/ref/fate/h264-conformance-cabac_mot_mbaff0_full b/tests/ref/fate/h264-conformance-cabac_mot_mbaff0_full
new file mode 100644
index 0000000000..0e582f3902
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cabac_mot_mbaff0_full
@@ -0,0 +1,30 @@
+0, 0, 518400, 0x8336b7db
+0, 3600, 518400, 0x9818c309
+0, 7200, 518400, 0x5417b6f9
+0, 10800, 518400, 0x8f0a5de4
+0, 14400, 518400, 0xa4ce43f3
+0, 18000, 518400, 0xfe748339
+0, 21600, 518400, 0xeab93a93
+0, 25200, 518400, 0x095176e4
+0, 28800, 518400, 0x99a45050
+0, 32400, 518400, 0xad3766e8
+0, 36000, 518400, 0xea133c1b
+0, 39600, 518400, 0xdcb2188b
+0, 43200, 518400, 0xec08c8ce
+0, 46800, 518400, 0xf38cd4f2
+0, 50400, 518400, 0x06177f80
+0, 54000, 518400, 0x2c68b642
+0, 57600, 518400, 0x7d290881
+0, 61200, 518400, 0x26c939d8
+0, 64800, 518400, 0xa0391a6e
+0, 68400, 518400, 0x3b9f02c1
+0, 72000, 518400, 0x335a0ff9
+0, 75600, 518400, 0x0deafb41
+0, 79200, 518400, 0xbf00bfe4
+0, 82800, 518400, 0xc9145210
+0, 86400, 518400, 0xb6e16a54
+0, 90000, 518400, 0xc31664da
+0, 93600, 518400, 0xfd3be55d
+0, 97200, 518400, 0xf33b134c
+0, 100800, 518400, 0xc6977304
+0, 104400, 518400, 0xa605bdb6
diff --git a/tests/ref/fate/h264-conformance-cabac_mot_picaff0_full b/tests/ref/fate/h264-conformance-cabac_mot_picaff0_full
new file mode 100644
index 0000000000..f2d6358af6
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cabac_mot_picaff0_full
@@ -0,0 +1,30 @@
+0, 0, 518400, 0xd8b58a23
+0, 3600, 518400, 0xe53b4aba
+0, 7200, 518400, 0x6cbca47a
+0, 10800, 518400, 0xceb51253
+0, 14400, 518400, 0x60cb3cdd
+0, 18000, 518400, 0x7b633553
+0, 21600, 518400, 0x10c012c9
+0, 25200, 518400, 0xa340ee20
+0, 28800, 518400, 0x574c22c2
+0, 32400, 518400, 0xbcdb1bf7
+0, 36000, 518400, 0x57811e9a
+0, 39600, 518400, 0xdd4af748
+0, 43200, 518400, 0xb931a637
+0, 46800, 518400, 0xcef6ce95
+0, 50400, 518400, 0xd28c7085
+0, 54000, 518400, 0xae9daf53
+0, 57600, 518400, 0xca29d819
+0, 61200, 518400, 0x3c4bd7eb
+0, 64800, 518400, 0x912ee227
+0, 68400, 518400, 0xb67d0e27
+0, 72000, 518400, 0x8cf7309d
+0, 75600, 518400, 0x358ad344
+0, 79200, 518400, 0x4462c642
+0, 82800, 518400, 0x3bb43428
+0, 86400, 518400, 0x12d6f8ca
+0, 90000, 518400, 0x003f13aa
+0, 93600, 518400, 0x6cd8c432
+0, 97200, 518400, 0xee5ff01b
+0, 100800, 518400, 0xba0616ee
+0, 104400, 518400, 0x37fa7891
diff --git a/tests/ref/fate/h264-conformance-cabaci3_sony_b b/tests/ref/fate/h264-conformance-cabaci3_sony_b
new file mode 100644
index 0000000000..f0ea8c2322
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cabaci3_sony_b
@@ -0,0 +1,300 @@
+0, 0, 38016, 0x705f2f41
+0, 3600, 38016, 0xa76d1766
+0, 7200, 38016, 0xf367e6f4
+0, 10800, 38016, 0xdce8a69a
+0, 14400, 38016, 0xda9d986e
+0, 18000, 38016, 0x50117ea5
+0, 21600, 38016, 0x07a848eb
+0, 25200, 38016, 0x28ab4f59
+0, 28800, 38016, 0xf6913e4c
+0, 32400, 38016, 0x3daa3500
+0, 36000, 38016, 0xe9f67703
+0, 39600, 38016, 0x9a5289e6
+0, 43200, 38016, 0x9efd705f
+0, 46800, 38016, 0x1193b01d
+0, 50400, 38016, 0x30a5acd7
+0, 54000, 38016, 0x7e3da07d
+0, 57600, 38016, 0x0f85afc6
+0, 61200, 38016, 0x8b7ba455
+0, 64800, 38016, 0xac327dfb
+0, 68400, 38016, 0x3eee7fdb
+0, 72000, 38016, 0x37fa626b
+0, 75600, 38016, 0x2c4f2501
+0, 79200, 38016, 0xa25a239a
+0, 82800, 38016, 0xe69b2327
+0, 86400, 38016, 0x6bd6164e
+0, 90000, 38016, 0xae9c2daa
+0, 93600, 38016, 0xe115331d
+0, 97200, 38016, 0xde8f2833
+0, 100800, 38016, 0xd0b45915
+0, 104400, 38016, 0x3ab16824
+0, 108000, 38016, 0x4df45e8d
+0, 111600, 38016, 0x48569b82
+0, 115200, 38016, 0x75c5b1ee
+0, 118800, 38016, 0x64e5a3ba
+0, 122400, 38016, 0x3190d133
+0, 126000, 38016, 0x4825ce86
+0, 129600, 38016, 0x8f85ab8e
+0, 133200, 38016, 0x3fb1cbc5
+0, 136800, 38016, 0x2b2cbe7d
+0, 140400, 38016, 0xa905a6a6
+0, 144000, 38016, 0x6365c188
+0, 147600, 38016, 0xff23c08d
+0, 151200, 38016, 0x73edada6
+0, 154800, 38016, 0x6be0b8a9
+0, 158400, 38016, 0x604bb6c9
+0, 162000, 38016, 0x62468a3b
+0, 165600, 38016, 0x994aad7a
+0, 169200, 38016, 0xfee1b59e
+0, 172800, 38016, 0xf722aa78
+0, 176400, 38016, 0x0ddfbf68
+0, 180000, 38016, 0x510ab7b1
+0, 183600, 38016, 0x156ca919
+0, 187200, 38016, 0xb176b488
+0, 190800, 38016, 0xd70cb8f8
+0, 194400, 38016, 0x3844b2d2
+0, 198000, 38016, 0x0ed8c6ee
+0, 201600, 38016, 0x0c6ac5ff
+0, 205200, 38016, 0x1284c442
+0, 208800, 38016, 0x0486d06c
+0, 212400, 38016, 0x0d42d1c1
+0, 216000, 38016, 0xd24297f3
+0, 219600, 38016, 0xe05cab59
+0, 223200, 38016, 0x12f1921f
+0, 226800, 38016, 0x0dc6403e
+0, 230400, 38016, 0x277f593c
+0, 234000, 38016, 0xfb7c81f8
+0, 237600, 38016, 0xb31b90b0
+0, 241200, 38016, 0x8be3e8ae
+0, 244800, 38016, 0x9aaa1ff1
+0, 248400, 38016, 0x4e6832b9
+0, 252000, 38016, 0x93fd6a5e
+0, 255600, 38016, 0xd9438f08
+0, 259200, 38016, 0x5e41b067
+0, 262800, 38016, 0xee80f32a
+0, 266400, 38016, 0x75632fe3
+0, 270000, 38016, 0xc0a93ec1
+0, 273600, 38016, 0x4e3e80c4
+0, 277200, 38016, 0x9e5398d6
+0, 280800, 38016, 0xd20aac32
+0, 284400, 38016, 0xacf5c5da
+0, 288000, 38016, 0xbe6bca1a
+0, 291600, 38016, 0x098bdac2
+0, 295200, 38016, 0xe706e491
+0, 298800, 38016, 0xcda7d8ee
+0, 302400, 38016, 0xb1d4d3f4
+0, 306000, 38016, 0x3e20d6cd
+0, 309600, 38016, 0xf368e66a
+0, 313200, 38016, 0xbfbee5b1
+0, 316800, 38016, 0xb580ec3d
+0, 320400, 38016, 0xce8dec65
+0, 324000, 38016, 0xb6fda1c2
+0, 327600, 38016, 0xb2d5ad04
+0, 331200, 38016, 0x28959c5a
+0, 334800, 38016, 0x7b1d7c65
+0, 338400, 38016, 0x357e79cd
+0, 342000, 38016, 0x08f57396
+0, 345600, 38016, 0xe59973b8
+0, 349200, 38016, 0x288a9c28
+0, 352800, 38016, 0x09a4a82f
+0, 356400, 38016, 0x61b5a518
+0, 360000, 38016, 0xddbfb88d
+0, 363600, 38016, 0x14b5a41e
+0, 367200, 38016, 0x56588add
+0, 370800, 38016, 0x7e3890c1
+0, 374400, 38016, 0xbb1eb4df
+0, 378000, 38016, 0x3b34a7d8
+0, 381600, 38016, 0xe15ddc56
+0, 385200, 38016, 0x9ed7ff21
+0, 388800, 38016, 0x03200458
+0, 392400, 38016, 0x74493572
+0, 396000, 38016, 0x73d14274
+0, 399600, 38016, 0x02933587
+0, 403200, 38016, 0x5ea74e05
+0, 406800, 38016, 0xd73d303e
+0, 410400, 38016, 0x0a17f1ea
+0, 414000, 38016, 0x915f0dcd
+0, 417600, 38016, 0xca041a88
+0, 421200, 38016, 0xc6a303b2
+0, 424800, 38016, 0x2c903df2
+0, 428400, 38016, 0x2dd04691
+0, 432000, 38016, 0xfe783551
+0, 435600, 38016, 0x900c419c
+0, 439200, 38016, 0x01b92a15
+0, 442800, 38016, 0xcce4e851
+0, 446400, 38016, 0x0167d6f6
+0, 450000, 38016, 0x023eb3fa
+0, 453600, 38016, 0xafc29caa
+0, 457200, 38016, 0xf205b88c
+0, 460800, 38016, 0x5518cc46
+0, 464400, 38016, 0x64cdd1d5
+0, 468000, 38016, 0x8e9eecb4
+0, 471600, 38016, 0xd1e0e2f8
+0, 475200, 38016, 0xb849cf3c
+0, 478800, 38016, 0xb5e4d916
+0, 482400, 38016, 0xc6c5da7e
+0, 486000, 38016, 0xcbcda68d
+0, 489600, 38016, 0x21d7bd73
+0, 493200, 38016, 0x6737b4b9
+0, 496800, 38016, 0x379f9a5f
+0, 500400, 38016, 0xa13da6cc
+0, 504000, 38016, 0x06fc941a
+0, 507600, 38016, 0x78c57e95
+0, 511200, 38016, 0x2f6674d4
+0, 514800, 38016, 0x37776db9
+0, 518400, 38016, 0x257268db
+0, 522000, 38016, 0x1dbe7e72
+0, 525600, 38016, 0x2cb96bb0
+0, 529200, 38016, 0x46a840f2
+0, 532800, 38016, 0x95951fd6
+0, 536400, 38016, 0x627ef7b2
+0, 540000, 38016, 0xa5b0b2d3
+0, 543600, 38016, 0x69fdcae9
+0, 547200, 38016, 0x0c25c873
+0, 550800, 38016, 0x3533a2cc
+0, 554400, 38016, 0x3a74b6c2
+0, 558000, 38016, 0x9d1dcbc1
+0, 561600, 38016, 0xce33cf86
+0, 565200, 38016, 0xf34201f5
+0, 568800, 38016, 0xab5f2e2b
+0, 572400, 38016, 0xf062405d
+0, 576000, 38016, 0xe7f85f7c
+0, 579600, 38016, 0x684f4ee4
+0, 583200, 38016, 0x41b83014
+0, 586800, 38016, 0x70142f5f
+0, 590400, 38016, 0x3cb229b1
+0, 594000, 38016, 0x6bd1f24c
+0, 597600, 38016, 0x9366ec77
+0, 601200, 38016, 0x6af0c1ec
+0, 604800, 38016, 0xb11a9005
+0, 608400, 38016, 0x83e390b7
+0, 612000, 38016, 0x97679ab5
+0, 615600, 38016, 0xabe3b114
+0, 619200, 38016, 0x2efed19f
+0, 622800, 38016, 0x18eddb2e
+0, 626400, 38016, 0x0a37c6fb
+0, 630000, 38016, 0xddb0a2fe
+0, 633600, 38016, 0xf8627091
+0, 637200, 38016, 0x97123074
+0, 640800, 38016, 0x33af3174
+0, 644400, 38016, 0x5caa22fe
+0, 648000, 38016, 0xa203eccf
+0, 651600, 38016, 0x506eee0c
+0, 655200, 38016, 0x2066d541
+0, 658800, 38016, 0xe08acab1
+0, 662400, 38016, 0x6740ecc4
+0, 666000, 38016, 0x954dfd6d
+0, 669600, 38016, 0xbd7ffef8
+0, 673200, 38016, 0x629f2cca
+0, 676800, 38016, 0xebd92f12
+0, 680400, 38016, 0xe5bd297f
+0, 684000, 38016, 0xcb2be670
+0, 687600, 38016, 0x51d7b529
+0, 691200, 38016, 0x95d7ab30
+0, 694800, 38016, 0x18e3df99
+0, 698400, 38016, 0xae3af726
+0, 702000, 38016, 0x9b831ee3
+0, 705600, 38016, 0x3c614e45
+0, 709200, 38016, 0x3c0a600c
+0, 712800, 38016, 0xdade838b
+0, 716400, 38016, 0xbbe3a0a7
+0, 720000, 38016, 0xd4d5b780
+0, 723600, 38016, 0xceebb4b7
+0, 727200, 38016, 0x1a8ccbb3
+0, 730800, 38016, 0x95dccfab
+0, 734400, 38016, 0xea9bc737
+0, 738000, 38016, 0xa0f6d561
+0, 741600, 38016, 0x7877d698
+0, 745200, 38016, 0xd6aad54c
+0, 748800, 38016, 0xca62c8b7
+0, 752400, 38016, 0xebc9ae1c
+0, 756000, 38016, 0x46c96194
+0, 759600, 38016, 0x61197fc4
+0, 763200, 38016, 0x9ae97570
+0, 766800, 38016, 0x7cd254da
+0, 770400, 38016, 0xe4816953
+0, 774000, 38016, 0x68685b2c
+0, 777600, 38016, 0x08d93f79
+0, 781200, 38016, 0xb4cc526b
+0, 784800, 38016, 0xc0d253d9
+0, 788400, 38016, 0x95b83d64
+0, 792000, 38016, 0xadf7454f
+0, 795600, 38016, 0xaa1d339b
+0, 799200, 38016, 0xae0417f8
+0, 802800, 38016, 0x09d2294d
+0, 806400, 38016, 0xbd892e9d
+0, 810000, 38016, 0xbccd0f97
+0, 813600, 38016, 0x03c13bd3
+0, 817200, 38016, 0x09d045d7
+0, 820800, 38016, 0xaa484278
+0, 824400, 38016, 0x054b8639
+0, 828000, 38016, 0x45e29e62
+0, 831600, 38016, 0x38bbb067
+0, 835200, 38016, 0x9f5cfc30
+0, 838800, 38016, 0x38551b76
+0, 842400, 38016, 0x3e1b18ee
+0, 846000, 38016, 0x7baf4e34
+0, 849600, 38016, 0xff6458d1
+0, 853200, 38016, 0xb7963c49
+0, 856800, 38016, 0xdaee3f6a
+0, 860400, 38016, 0xc88e09c9
+0, 864000, 38016, 0x88a7de38
+0, 867600, 38016, 0x9e81cb62
+0, 871200, 38016, 0x84d0aca7
+0, 874800, 38016, 0x3312f41e
+0, 878400, 38016, 0x550065dc
+0, 882000, 38016, 0x7e88d07e
+0, 885600, 38016, 0x9370ed4f
+0, 889200, 38016, 0xd9c9d592
+0, 892800, 38016, 0xec7589ce
+0, 896400, 38016, 0xeca71251
+0, 900000, 38016, 0xf183b951
+0, 903600, 38016, 0x9a1b740a
+0, 907200, 38016, 0x97ea5ffc
+0, 910800, 38016, 0x058dc572
+0, 914400, 38016, 0xae44345a
+0, 918000, 38016, 0xef22c82e
+0, 921600, 38016, 0x8364d583
+0, 925200, 38016, 0x2f725dfa
+0, 928800, 38016, 0x5eda3160
+0, 932400, 38016, 0x4a464613
+0, 936000, 38016, 0x447f444d
+0, 939600, 38016, 0x076b3dd8
+0, 943200, 38016, 0x690f58de
+0, 946800, 38016, 0xf4635e91
+0, 950400, 38016, 0xd5db44e7
+0, 954000, 38016, 0xced25176
+0, 957600, 38016, 0x227a2f9a
+0, 961200, 38016, 0x72100520
+0, 964800, 38016, 0x6549f9b4
+0, 968400, 38016, 0x3f77cef4
+0, 972000, 38016, 0x3d1ba72f
+0, 975600, 38016, 0xa1dd85d2
+0, 979200, 38016, 0x9a35655e
+0, 982800, 38016, 0xdc900dc6
+0, 986400, 38016, 0xca05d5cb
+0, 990000, 38016, 0xeff0be86
+0, 993600, 38016, 0xdcceb22e
+0, 997200, 38016, 0x5952d133
+0, 1000800, 38016, 0x3ab3facb
+0, 1004400, 38016, 0xdb8d4de4
+0, 1008000, 38016, 0x0afc170d
+0, 1011600, 38016, 0xd14ddc59
+0, 1015200, 38016, 0xbabf89eb
+0, 1018800, 38016, 0x09d38f7b
+0, 1022400, 38016, 0xe4805dba
+0, 1026000, 38016, 0x4d919dcf
+0, 1029600, 38016, 0x3e8c60be
+0, 1033200, 38016, 0x6c1fa94b
+0, 1036800, 38016, 0x6b68a320
+0, 1040400, 38016, 0x9de774f6
+0, 1044000, 38016, 0x38d0ecc6
+0, 1047600, 38016, 0x0623207f
+0, 1051200, 38016, 0x36429915
+0, 1054800, 38016, 0x659fdd42
+0, 1058400, 38016, 0x59c93475
+0, 1062000, 38016, 0xecd1200d
+0, 1065600, 38016, 0x3b2af9c2
+0, 1069200, 38016, 0xd00600da
+0, 1072800, 38016, 0xb0bc21ee
+0, 1076400, 38016, 0xc11f3ec2
diff --git a/tests/ref/fate/h264-conformance-cabast3_sony_e b/tests/ref/fate/h264-conformance-cabast3_sony_e
new file mode 100644
index 0000000000..06c9f1c256
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cabast3_sony_e
@@ -0,0 +1,25 @@
+0, 0, 152064, 0x96ebb3a2
+0, 3600, 152064, 0x5184d912
+0, 7200, 152064, 0xfa0c9abe
+0, 10800, 152064, 0x6dd81860
+0, 14400, 152064, 0xc5202966
+0, 18000, 152064, 0xa7dfdf71
+0, 21600, 152064, 0xffa5609f
+0, 25200, 152064, 0x352e7ce5
+0, 28800, 152064, 0xc9e52c2a
+0, 32400, 152064, 0x12dfd28d
+0, 36000, 152064, 0x962af5fe
+0, 39600, 152064, 0xa8459cb1
+0, 43200, 152064, 0xc0771945
+0, 46800, 152064, 0xfcbc351d
+0, 50400, 152064, 0xd925dfa3
+0, 54000, 152064, 0x7c627c21
+0, 57600, 152064, 0x617d8d96
+0, 61200, 152064, 0x91816b34
+0, 64800, 152064, 0xece0eaf8
+0, 68400, 152064, 0x7b1408ef
+0, 72000, 152064, 0x7430c4d2
+0, 75600, 152064, 0xdb5844fa
+0, 79200, 152064, 0xcc874ff7
+0, 82800, 152064, 0x97630fb8
+0, 86400, 152064, 0x16ae9c92
diff --git a/tests/ref/fate/h264-conformance-cabastbr3_sony_b b/tests/ref/fate/h264-conformance-cabastbr3_sony_b
new file mode 100644
index 0000000000..d51959b80d
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cabastbr3_sony_b
@@ -0,0 +1,25 @@
+0, 0, 152064, 0x96ebb3a2
+0, 3600, 152064, 0x5184d912
+0, 7200, 152064, 0xb7b5ba68
+0, 10800, 152064, 0x6dd81860
+0, 14400, 152064, 0xcffe2ff0
+0, 18000, 152064, 0x27740140
+0, 21600, 152064, 0xffa5609f
+0, 25200, 152064, 0x05e9a6c6
+0, 28800, 152064, 0xa5ea5692
+0, 32400, 152064, 0x78a9dd79
+0, 36000, 152064, 0x2bf218b3
+0, 39600, 152064, 0x4591cadc
+0, 43200, 152064, 0x075428a8
+0, 46800, 152064, 0xbbda56d8
+0, 50400, 152064, 0xc8fa1a28
+0, 54000, 152064, 0x7c627c21
+0, 57600, 152064, 0x9043ba42
+0, 61200, 152064, 0xb426940d
+0, 64800, 152064, 0x51d4058b
+0, 68400, 152064, 0xb7513536
+0, 72000, 152064, 0xe906ffab
+0, 75600, 152064, 0x3d075443
+0, 79200, 152064, 0x85c37afd
+0, 82800, 152064, 0x2ac74040
+0, 86400, 152064, 0x3a08aa90
diff --git a/tests/ref/fate/h264-conformance-cabref3_sand_d b/tests/ref/fate/h264-conformance-cabref3_sand_d
new file mode 100644
index 0000000000..7d75e01897
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cabref3_sand_d
@@ -0,0 +1,50 @@
+0, 0, 152064, 0x2061bbd0
+0, 3600, 152064, 0x41adb750
+0, 7200, 152064, 0x6e889e90
+0, 10800, 152064, 0xbb5e60f5
+0, 14400, 152064, 0x5a32eca7
+0, 18000, 152064, 0x5cb05e88
+0, 21600, 152064, 0x2fff3e6c
+0, 25200, 152064, 0xd917c85e
+0, 28800, 152064, 0x6eac446f
+0, 32400, 152064, 0x238b24b0
+0, 36000, 152064, 0x3f3bd44c
+0, 39600, 152064, 0x73982bc5
+0, 43200, 152064, 0xf6188a82
+0, 46800, 152064, 0x818c5b41
+0, 50400, 152064, 0x000d1012
+0, 54000, 152064, 0xc4a8750e
+0, 57600, 152064, 0x1689bb77
+0, 61200, 152064, 0x8f52f338
+0, 64800, 152064, 0xbf5ee06b
+0, 68400, 152064, 0x89508ad7
+0, 72000, 152064, 0x2b1986a6
+0, 75600, 152064, 0xe6fd6b0e
+0, 79200, 152064, 0x883e2e4e
+0, 82800, 152064, 0xd133db07
+0, 86400, 152064, 0x39b3bb22
+0, 90000, 152064, 0x8447410a
+0, 93600, 152064, 0x9c66c6e5
+0, 97200, 152064, 0x514de9cc
+0, 100800, 152064, 0x08d9f1da
+0, 104400, 152064, 0x8f10f536
+0, 108000, 152064, 0x57d4b27b
+0, 111600, 152064, 0x46f56d3c
+0, 115200, 152064, 0x5d260230
+0, 118800, 152064, 0x4a72aeac
+0, 122400, 152064, 0x5cfe187f
+0, 126000, 152064, 0x08e55cb2
+0, 129600, 152064, 0x4727f34f
+0, 133200, 152064, 0xd6a26f1c
+0, 136800, 152064, 0xcc1fcf9c
+0, 140400, 152064, 0x3681b775
+0, 144000, 152064, 0xf580c7d9
+0, 147600, 152064, 0xaa6747fb
+0, 151200, 152064, 0x2e22f9f9
+0, 154800, 152064, 0xb3ee6d81
+0, 158400, 152064, 0x930b0145
+0, 162000, 152064, 0xae36af99
+0, 165600, 152064, 0xeb58fd26
+0, 169200, 152064, 0xb9004da3
+0, 172800, 152064, 0x2b25e444
+0, 176400, 152064, 0xb36927de
diff --git a/tests/ref/fate/h264-conformance-cacqp3_sony_d b/tests/ref/fate/h264-conformance-cacqp3_sony_d
new file mode 100644
index 0000000000..56881b3d60
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cacqp3_sony_d
@@ -0,0 +1,50 @@
+0, 0, 38016, 0x295a375c
+0, 3600, 38016, 0xd0da1f37
+0, 7200, 38016, 0x0e5ed514
+0, 10800, 38016, 0x477dcbe7
+0, 14400, 38016, 0x2e0980f3
+0, 18000, 38016, 0xf6d0888f
+0, 21600, 38016, 0x884f4bf2
+0, 25200, 38016, 0x75135ea9
+0, 28800, 38016, 0xc85031bd
+0, 32400, 38016, 0x4dde6353
+0, 36000, 38016, 0x8c8f4f2a
+0, 39600, 38016, 0xbdae892b
+0, 43200, 38016, 0x4898783a
+0, 46800, 38016, 0xb4cc9d6b
+0, 50400, 38016, 0xd24f8797
+0, 54000, 38016, 0x74c4a0df
+0, 57600, 38016, 0x43e58a83
+0, 61200, 38016, 0x05bba901
+0, 64800, 38016, 0xe2d57f63
+0, 68400, 38016, 0xdb398611
+0, 72000, 38016, 0x7f143de2
+0, 75600, 38016, 0xff39406f
+0, 79200, 38016, 0xfed61162
+0, 82800, 38016, 0xb9e62a1e
+0, 86400, 38016, 0x65f316d1
+0, 90000, 38016, 0xda782b9c
+0, 93600, 38016, 0xb64b202c
+0, 97200, 38016, 0xb2b141ea
+0, 100800, 38016, 0xdb6b421b
+0, 104400, 38016, 0xf3287342
+0, 108000, 38016, 0xfbb35b92
+0, 111600, 38016, 0x8c77a0de
+0, 115200, 38016, 0x326c9cb4
+0, 118800, 38016, 0x7e73cc0c
+0, 122400, 38016, 0xb948b8e9
+0, 126000, 38016, 0x6f7adb29
+0, 129600, 38016, 0xb629b8c5
+0, 133200, 38016, 0xf798ccd4
+0, 136800, 38016, 0xde5bb331
+0, 140400, 38016, 0xbca4d8dc
+0, 144000, 38016, 0x9369ba10
+0, 147600, 38016, 0x581ed965
+0, 151200, 38016, 0xce7bbd59
+0, 154800, 38016, 0x95d9ce3d
+0, 158400, 38016, 0x6154bd98
+0, 162000, 38016, 0xa279c487
+0, 165600, 38016, 0x8169b5a6
+0, 169200, 38016, 0x709dc334
+0, 172800, 38016, 0x82aabea1
+0, 176400, 38016, 0x6923c4c3
diff --git a/tests/ref/fate/h264-conformance-cafi1_sva_c b/tests/ref/fate/h264-conformance-cafi1_sva_c
new file mode 100644
index 0000000000..c652ce268f
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cafi1_sva_c
@@ -0,0 +1,33 @@
+0, 0, 518400, 0x47bd73fa
+0, 3600, 518400, 0xfe3ea7cc
+0, 7200, 518400, 0x9bc549ae
+0, 10800, 518400, 0x7bb7f0a1
+0, 14400, 518400, 0x328903d4
+0, 18000, 518400, 0x96ab366b
+0, 21600, 518400, 0xa923eed3
+0, 25200, 518400, 0x162b08f6
+0, 28800, 518400, 0xe711bd8b
+0, 32400, 518400, 0x55e2d4ed
+0, 36000, 518400, 0x7dd3107b
+0, 39600, 518400, 0x0ed20bcf
+0, 43200, 518400, 0x352f5743
+0, 46800, 518400, 0x0a3aeb5e
+0, 50400, 518400, 0xc458eda3
+0, 54000, 518400, 0xe8d5fec5
+0, 57600, 518400, 0x18fc6c37
+0, 61200, 518400, 0x448add76
+0, 64800, 518400, 0x8741ead7
+0, 68400, 518400, 0x7008a751
+0, 72000, 518400, 0x4ca0633d
+0, 75600, 518400, 0x021ab800
+0, 79200, 518400, 0xfb91ba57
+0, 82800, 518400, 0x90e71dd0
+0, 86400, 518400, 0xac859de5
+0, 90000, 518400, 0xce9790bd
+0, 93600, 518400, 0x010ade8b
+0, 97200, 518400, 0xd0b3a399
+0, 100800, 518400, 0x6cafcff3
+0, 104400, 518400, 0xc32284c0
+0, 108000, 518400, 0x1af8f73e
+0, 111600, 518400, 0x3babd71e
+0, 115200, 518400, 0xd77cb86b
diff --git a/tests/ref/fate/h264-conformance-cama1_sony_c b/tests/ref/fate/h264-conformance-cama1_sony_c
new file mode 100644
index 0000000000..6b309aab49
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cama1_sony_c
@@ -0,0 +1,5 @@
+0, 0, 518400, 0x75701511
+0, 3600, 518400, 0xa7eeaa16
+0, 7200, 518400, 0xe0f32e35
+0, 10800, 518400, 0x7a1dadd9
+0, 14400, 518400, 0x4a1672a6
diff --git a/tests/ref/fate/h264-conformance-cama1_toshiba_b b/tests/ref/fate/h264-conformance-cama1_toshiba_b
new file mode 100644
index 0000000000..897e915e25
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cama1_toshiba_b
@@ -0,0 +1,90 @@
+0, 0, 152064, 0x9a9ce366
+0, 3600, 152064, 0xf4639828
+0, 7200, 152064, 0x625024a3
+0, 10800, 152064, 0x80dc2f9d
+0, 14400, 152064, 0xb2c4feea
+0, 18000, 152064, 0x4ec6ad64
+0, 21600, 152064, 0x1957bec3
+0, 25200, 152064, 0xb682799d
+0, 28800, 152064, 0x34cd2053
+0, 32400, 152064, 0x81490b4c
+0, 36000, 152064, 0x242dc943
+0, 39600, 152064, 0x3e126734
+0, 43200, 152064, 0x8e474ff8
+0, 46800, 152064, 0x239d2fbd
+0, 50400, 152064, 0x0ca3e16f
+0, 54000, 152064, 0x6161d7c2
+0, 57600, 152064, 0xca7ad1af
+0, 61200, 152064, 0xf8ef9026
+0, 64800, 152064, 0x01f2f4c1
+0, 68400, 152064, 0x510b19ec
+0, 72000, 152064, 0xe489028b
+0, 75600, 152064, 0x7a693c1e
+0, 79200, 152064, 0x276b23fe
+0, 82800, 152064, 0x0e9ced3a
+0, 86400, 152064, 0x658228f7
+0, 90000, 152064, 0x6a271bc3
+0, 93600, 152064, 0x431ecd8b
+0, 97200, 152064, 0x23a5ed14
+0, 100800, 152064, 0x76fbe121
+0, 104400, 152064, 0x471f919d
+0, 108000, 152064, 0x16bfabbc
+0, 111600, 152064, 0x0762993f
+0, 115200, 152064, 0x5a2b0b0e
+0, 118800, 152064, 0x81415ef7
+0, 122400, 152064, 0xb96e4164
+0, 126000, 152064, 0xf77aee83
+0, 129600, 152064, 0x6af81633
+0, 133200, 152064, 0xed78e5b5
+0, 136800, 152064, 0x67e38e2c
+0, 140400, 152064, 0x0417ae01
+0, 144000, 152064, 0x3887b312
+0, 147600, 152064, 0x3a4b70fb
+0, 151200, 152064, 0xcaae9e7f
+0, 154800, 152064, 0xaf9597be
+0, 158400, 152064, 0x9bae63d3
+0, 162000, 152064, 0x0e80825f
+0, 165600, 152064, 0x915661fd
+0, 169200, 152064, 0x67d3dc94
+0, 172800, 152064, 0x3dcf240c
+0, 176400, 152064, 0x127ff832
+0, 180000, 152064, 0xc8969981
+0, 183600, 152064, 0x57179c77
+0, 187200, 152064, 0x9f88656c
+0, 190800, 152064, 0xc28ff5d3
+0, 194400, 152064, 0xf100fad9
+0, 198000, 152064, 0xb570ce12
+0, 201600, 152064, 0xe8f28955
+0, 205200, 152064, 0x1f0a9549
+0, 208800, 152064, 0x22b17e9b
+0, 212400, 152064, 0x7cf1400e
+0, 216000, 152064, 0xafd273b7
+0, 219600, 152064, 0xeb9b712e
+0, 223200, 152064, 0x0f81de24
+0, 226800, 152064, 0x8f4e1953
+0, 230400, 152064, 0x682e2170
+0, 234000, 152064, 0xc32ad1b2
+0, 237600, 152064, 0x53a81d79
+0, 241200, 152064, 0x54002596
+0, 244800, 152064, 0x4b5fdbd9
+0, 248400, 152064, 0x96613368
+0, 252000, 152064, 0xd6ac0171
+0, 255600, 152064, 0xf1c1b7b7
+0, 259200, 152064, 0xc730d82f
+0, 262800, 152064, 0x0415d934
+0, 266400, 152064, 0x5338915e
+0, 270000, 152064, 0x8e9dda6d
+0, 273600, 152064, 0xe3a8b0a0
+0, 277200, 152064, 0x5fa36e44
+0, 280800, 152064, 0x0e63dc72
+0, 284400, 152064, 0xd0dad71f
+0, 288000, 152064, 0x0c4aac94
+0, 291600, 152064, 0x60d50e8d
+0, 295200, 152064, 0x96872d7c
+0, 298800, 152064, 0x4fcefc33
+0, 302400, 152064, 0x6b8157c9
+0, 306000, 152064, 0xa40d527d
+0, 309600, 152064, 0x9884480a
+0, 313200, 152064, 0xff5d9754
+0, 316800, 152064, 0x4a26a74d
+0, 320400, 152064, 0x81059e82
diff --git a/tests/ref/fate/h264-conformance-cama1_vtc_c b/tests/ref/fate/h264-conformance-cama1_vtc_c
new file mode 100644
index 0000000000..8c0e226831
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cama1_vtc_c
@@ -0,0 +1,4 @@
+0, 0, 518400, 0x41c2ce17
+0, 3600, 518400, 0x39f217da
+0, 7200, 518400, 0x5a108db9
+0, 10800, 518400, 0x20cb214c
diff --git a/tests/ref/fate/h264-conformance-cama2_vtc_b b/tests/ref/fate/h264-conformance-cama2_vtc_b
new file mode 100644
index 0000000000..8320f1f6ab
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cama2_vtc_b
@@ -0,0 +1,4 @@
+0, 0, 622080, 0x004bb93f
+0, 3600, 622080, 0xe70e193c
+0, 7200, 622080, 0xd394cf17
+0, 10800, 622080, 0x9e4cc924
diff --git a/tests/ref/fate/h264-conformance-cama3_sand_e b/tests/ref/fate/h264-conformance-cama3_sand_e
new file mode 100644
index 0000000000..77927c9ad5
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cama3_sand_e
@@ -0,0 +1,50 @@
+0, 0, 152064, 0xf772f152
+0, 3600, 152064, 0x7c501772
+0, 7200, 152064, 0x98ed0a07
+0, 10800, 152064, 0x8f9289ae
+0, 14400, 152064, 0x4047c5e6
+0, 18000, 152064, 0xf1f11922
+0, 21600, 152064, 0xef8d8130
+0, 25200, 152064, 0x6cef489d
+0, 28800, 152064, 0x3743a97f
+0, 32400, 152064, 0x9d6b9846
+0, 36000, 152064, 0x332e05a7
+0, 39600, 152064, 0x7dad10af
+0, 43200, 152064, 0x835c99de
+0, 46800, 152064, 0x2ba3f9bb
+0, 50400, 152064, 0xf8ab5286
+0, 54000, 152064, 0x76624cca
+0, 57600, 152064, 0x8ebf6342
+0, 61200, 152064, 0x8756f87b
+0, 64800, 152064, 0xf005bc2f
+0, 68400, 152064, 0x9b1ae18e
+0, 72000, 152064, 0x3e1154aa
+0, 75600, 152064, 0x851e28d6
+0, 79200, 152064, 0x940a2518
+0, 82800, 152064, 0x861be99c
+0, 86400, 152064, 0x21a788a7
+0, 90000, 152064, 0x53e216eb
+0, 93600, 152064, 0x053cb9ec
+0, 97200, 152064, 0x3bb5cfc6
+0, 100800, 152064, 0x92b250c3
+0, 104400, 152064, 0xacc20f1c
+0, 108000, 152064, 0xb01256d3
+0, 111600, 152064, 0x6db62cf2
+0, 115200, 152064, 0x7fa3074d
+0, 118800, 152064, 0x63385103
+0, 122400, 152064, 0x83ba02b6
+0, 126000, 152064, 0x3731edbb
+0, 129600, 152064, 0xb73d5b99
+0, 133200, 152064, 0xd2e743e2
+0, 136800, 152064, 0x4bcd5bf2
+0, 140400, 152064, 0x45ef7b97
+0, 144000, 152064, 0x757952c6
+0, 147600, 152064, 0xed73e3db
+0, 151200, 152064, 0x8cf41b15
+0, 154800, 152064, 0x86e2b02d
+0, 158400, 152064, 0xf8d16c87
+0, 162000, 152064, 0x6720db65
+0, 165600, 152064, 0x67a5a150
+0, 169200, 152064, 0x1849fa2a
+0, 172800, 152064, 0xb0156742
+0, 176400, 152064, 0xde75b1fd
diff --git a/tests/ref/fate/h264-conformance-cama3_vtc_b b/tests/ref/fate/h264-conformance-cama3_vtc_b
new file mode 100644
index 0000000000..8e7a3517eb
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cama3_vtc_b
@@ -0,0 +1,4 @@
+0, 0, 622080, 0xf3f0bf86
+0, 3600, 622080, 0x6aaf3d42
+0, 7200, 622080, 0xe53bcd5d
+0, 10800, 622080, 0x8dabca9d
diff --git a/tests/ref/fate/h264-conformance-camaci3_sony_c b/tests/ref/fate/h264-conformance-camaci3_sony_c
new file mode 100644
index 0000000000..643d8039ef
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-camaci3_sony_c
@@ -0,0 +1,17 @@
+0, 0, 36864, 0x9b5dcf28
+0, 3600, 36864, 0xb13d4fee
+0, 7200, 36864, 0x11c512ac
+0, 10800, 36864, 0xc013b0e3
+0, 14400, 36864, 0x25002dae
+0, 18000, 36864, 0xefd0055a
+0, 21600, 36864, 0x6be2d3b2
+0, 25200, 36864, 0xa8a0d525
+0, 28800, 36864, 0x1bf942e8
+0, 32400, 36864, 0x5c08c94f
+0, 36000, 36864, 0x5555e762
+0, 39600, 36864, 0xcc1429c7
+0, 43200, 36864, 0xa3cc1535
+0, 46800, 36864, 0x14dc2b75
+0, 50400, 36864, 0x6b965ce9
+0, 54000, 36864, 0x7424d19b
+0, 57600, 36864, 0xcada6a7f
diff --git a/tests/ref/fate/h264-conformance-camanl1_toshiba_b b/tests/ref/fate/h264-conformance-camanl1_toshiba_b
new file mode 100644
index 0000000000..07422b8d20
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-camanl1_toshiba_b
@@ -0,0 +1,90 @@
+0, 0, 152064, 0xb1edd842
+0, 3600, 152064, 0x551f8f45
+0, 7200, 152064, 0xb4931cb2
+0, 10800, 152064, 0x78882b27
+0, 14400, 152064, 0x3afef36d
+0, 18000, 152064, 0x85afad0a
+0, 21600, 152064, 0x3a8bab81
+0, 25200, 152064, 0x2a437174
+0, 28800, 152064, 0x22421437
+0, 32400, 152064, 0x39c5f125
+0, 36000, 152064, 0x256eaad2
+0, 39600, 152064, 0x668a5d31
+0, 43200, 152064, 0x412a4aa7
+0, 46800, 152064, 0x3f091baf
+0, 50400, 152064, 0xbf16d262
+0, 54000, 152064, 0x2fc4ce67
+0, 57600, 152064, 0x119cde3e
+0, 61200, 152064, 0xb40b8632
+0, 64800, 152064, 0x4be4f192
+0, 68400, 152064, 0x906c1237
+0, 72000, 152064, 0x95380024
+0, 75600, 152064, 0x6a833025
+0, 79200, 152064, 0x681d1c4f
+0, 82800, 152064, 0x08c8dea4
+0, 86400, 152064, 0xc69226f0
+0, 90000, 152064, 0x86631102
+0, 93600, 152064, 0x7f40c77a
+0, 97200, 152064, 0xc746ddd4
+0, 100800, 152064, 0x5f2bd3cb
+0, 104400, 152064, 0x643c8316
+0, 108000, 152064, 0x5b7fa380
+0, 111600, 152064, 0x82438cf7
+0, 115200, 152064, 0xdee0f7e7
+0, 118800, 152064, 0xc50d41f1
+0, 122400, 152064, 0xf3453631
+0, 126000, 152064, 0x90bce66b
+0, 129600, 152064, 0x045b03f7
+0, 133200, 152064, 0xf64bd756
+0, 136800, 152064, 0xff997ef2
+0, 140400, 152064, 0x3613a0a5
+0, 144000, 152064, 0xe6a7a8d6
+0, 147600, 152064, 0xb0906c42
+0, 151200, 152064, 0x4dfc912b
+0, 154800, 152064, 0x81e3991c
+0, 158400, 152064, 0x4efc61fb
+0, 162000, 152064, 0xed478395
+0, 165600, 152064, 0x4cb25ab6
+0, 169200, 152064, 0x28e7d51f
+0, 172800, 152064, 0x8bcc1a8d
+0, 176400, 152064, 0x2fe1f240
+0, 180000, 152064, 0xb4978ef8
+0, 183600, 152064, 0xe3929556
+0, 187200, 152064, 0xd370632a
+0, 190800, 152064, 0xba86ffb2
+0, 194400, 152064, 0x444bf18c
+0, 198000, 152064, 0xab40bd14
+0, 201600, 152064, 0xfd488a5d
+0, 205200, 152064, 0xe1f09568
+0, 208800, 152064, 0x09ee7a7e
+0, 212400, 152064, 0x9360397c
+0, 216000, 152064, 0xdbd467e9
+0, 219600, 152064, 0x99726777
+0, 223200, 152064, 0x009fd46c
+0, 226800, 152064, 0xcf770fdb
+0, 230400, 152064, 0x2a890fd9
+0, 234000, 152064, 0x7f40de4b
+0, 237600, 152064, 0x04191304
+0, 241200, 152064, 0x15722022
+0, 244800, 152064, 0x59f4ea93
+0, 248400, 152064, 0x28ba373f
+0, 252000, 152064, 0xf9e400b8
+0, 255600, 152064, 0x85c4bd98
+0, 259200, 152064, 0x6917d2a5
+0, 262800, 152064, 0x61cae234
+0, 266400, 152064, 0x752a9a2d
+0, 270000, 152064, 0x1ee2d9bd
+0, 273600, 152064, 0xdce9ab8e
+0, 277200, 152064, 0x51225fd0
+0, 280800, 152064, 0x10e8cb60
+0, 284400, 152064, 0x8d07cd25
+0, 288000, 152064, 0xb18ba61b
+0, 291600, 152064, 0xb0f10280
+0, 295200, 152064, 0x76a71f13
+0, 298800, 152064, 0x3004f5a1
+0, 302400, 152064, 0x9aba5724
+0, 306000, 152064, 0x5db85385
+0, 309600, 152064, 0xbe9d3f5b
+0, 313200, 152064, 0xa71e85bb
+0, 316800, 152064, 0xdcf59cd7
+0, 320400, 152064, 0x5e319459
diff --git a/tests/ref/fate/h264-conformance-camanl2_toshiba_b b/tests/ref/fate/h264-conformance-camanl2_toshiba_b
new file mode 100644
index 0000000000..d8959a3348
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-camanl2_toshiba_b
@@ -0,0 +1,90 @@
+0, 0, 152064, 0xb1edd842
+0, 3600, 152064, 0x551f8f45
+0, 7200, 152064, 0xb4931cb2
+0, 10800, 152064, 0x5f352e98
+0, 14400, 152064, 0xeba5fe28
+0, 18000, 152064, 0x85afad0a
+0, 21600, 152064, 0x1120b6a4
+0, 25200, 152064, 0x67506e16
+0, 28800, 152064, 0x22421437
+0, 32400, 152064, 0x929becd6
+0, 36000, 152064, 0x6ffcb4b0
+0, 39600, 152064, 0x668a5d31
+0, 43200, 152064, 0x1b034ebb
+0, 46800, 152064, 0x7e2d213c
+0, 50400, 152064, 0xbf16d262
+0, 54000, 152064, 0xdeaecab3
+0, 57600, 152064, 0xd220d704
+0, 61200, 152064, 0xb40b8632
+0, 64800, 152064, 0xbdf0ef57
+0, 68400, 152064, 0x7e2e10df
+0, 72000, 152064, 0x95380024
+0, 75600, 152064, 0xdb80256d
+0, 79200, 152064, 0xa4561c61
+0, 82800, 152064, 0x08c8dea4
+0, 86400, 152064, 0x7bb917d6
+0, 90000, 152064, 0x796f0e2b
+0, 93600, 152064, 0x7f40c77a
+0, 97200, 152064, 0xda32de2e
+0, 100800, 152064, 0x00ffc15a
+0, 104400, 152064, 0x643c8316
+0, 108000, 152064, 0xb7588f7f
+0, 111600, 152064, 0xa4e07c02
+0, 115200, 152064, 0xdee0f7e7
+0, 118800, 152064, 0x2c3245ee
+0, 122400, 152064, 0x6565355b
+0, 126000, 152064, 0x90bce66b
+0, 129600, 152064, 0x0abffe08
+0, 133200, 152064, 0x119ccc3e
+0, 136800, 152064, 0xff997ef2
+0, 140400, 152064, 0xba4b9820
+0, 144000, 152064, 0xb6dfa596
+0, 147600, 152064, 0xb0906c42
+0, 151200, 152064, 0xf3c29133
+0, 154800, 152064, 0x08cd8e2b
+0, 158400, 152064, 0x4efc61fb
+0, 162000, 152064, 0x5b7c6e48
+0, 165600, 152064, 0xd28a47c2
+0, 169200, 152064, 0x28e7d51f
+0, 172800, 152064, 0x3a5619b1
+0, 176400, 152064, 0xa517e7f2
+0, 180000, 152064, 0xb4978ef8
+0, 183600, 152064, 0x25929175
+0, 187200, 152064, 0x20f05834
+0, 190800, 152064, 0xba86ffb2
+0, 194400, 152064, 0xa265f06f
+0, 198000, 152064, 0x97bbbfb7
+0, 201600, 152064, 0xfd488a5d
+0, 205200, 152064, 0x1b0989da
+0, 208800, 152064, 0xfd1878ce
+0, 212400, 152064, 0x9360397c
+0, 216000, 152064, 0x0d8151a7
+0, 219600, 152064, 0xe7a05bb8
+0, 223200, 152064, 0x009fd46c
+0, 226800, 152064, 0x8751123f
+0, 230400, 152064, 0x8252101a
+0, 234000, 152064, 0x7f40de4b
+0, 237600, 152064, 0x4ea317fe
+0, 241200, 152064, 0x519224d9
+0, 244800, 152064, 0x59f4ea93
+0, 248400, 152064, 0xc93c1dba
+0, 252000, 152064, 0xe3c9fb61
+0, 255600, 152064, 0x85c4bd98
+0, 259200, 152064, 0xcebacfd3
+0, 262800, 152064, 0x7327da99
+0, 266400, 152064, 0x752a9a2d
+0, 270000, 152064, 0x5ea6c8d2
+0, 273600, 152064, 0x66fd8c6f
+0, 277200, 152064, 0x51225fd0
+0, 280800, 152064, 0x58b9be96
+0, 284400, 152064, 0xa5abcdb7
+0, 288000, 152064, 0xb18ba61b
+0, 291600, 152064, 0xc7d20190
+0, 295200, 152064, 0xb6da14aa
+0, 298800, 152064, 0x3004f5a1
+0, 302400, 152064, 0x129354e2
+0, 306000, 152064, 0xffa148d5
+0, 309600, 152064, 0xbe9d3f5b
+0, 313200, 152064, 0x1c7f8976
+0, 316800, 152064, 0xa107a54d
+0, 320400, 152064, 0x5e319459
diff --git a/tests/ref/fate/h264-conformance-camanl3_sand_e b/tests/ref/fate/h264-conformance-camanl3_sand_e
new file mode 100644
index 0000000000..ac8be19121
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-camanl3_sand_e
@@ -0,0 +1,50 @@
+0, 0, 152064, 0x6c1ff6a7
+0, 3600, 152064, 0x17f1ff3a
+0, 7200, 152064, 0xf7ddcda8
+0, 10800, 152064, 0xdcb64a37
+0, 14400, 152064, 0x4d2ad1db
+0, 18000, 152064, 0x2e49028a
+0, 21600, 152064, 0xcebb0f39
+0, 25200, 152064, 0xac74e574
+0, 28800, 152064, 0x8cd667e5
+0, 32400, 152064, 0xda511cf6
+0, 36000, 152064, 0x795c45c1
+0, 39600, 152064, 0x6034397c
+0, 43200, 152064, 0xafb4b03d
+0, 46800, 152064, 0xd73b1785
+0, 50400, 152064, 0xd873a98f
+0, 54000, 152064, 0x07ac191e
+0, 57600, 152064, 0x14fa5413
+0, 61200, 152064, 0xe6d1667e
+0, 64800, 152064, 0x1cc2a92e
+0, 68400, 152064, 0x4a878e35
+0, 72000, 152064, 0x4adfa52c
+0, 75600, 152064, 0x8dbb370b
+0, 79200, 152064, 0x4d66a69a
+0, 82800, 152064, 0x2dcb66da
+0, 86400, 152064, 0x74591150
+0, 90000, 152064, 0x259eb13f
+0, 93600, 152064, 0xe5c96dd3
+0, 97200, 152064, 0x0fb52fe3
+0, 100800, 152064, 0x47c506a0
+0, 104400, 152064, 0xcc09ca7a
+0, 108000, 152064, 0xc3430f03
+0, 111600, 152064, 0x702b1a73
+0, 115200, 152064, 0x4f385186
+0, 118800, 152064, 0x07a34aa5
+0, 122400, 152064, 0x698310b0
+0, 126000, 152064, 0x5fa469bc
+0, 129600, 152064, 0xb6ab39ef
+0, 133200, 152064, 0xbb6dc59d
+0, 136800, 152064, 0xe5fa7503
+0, 140400, 152064, 0xd367512a
+0, 144000, 152064, 0x215c0ca7
+0, 147600, 152064, 0x6bea4847
+0, 151200, 152064, 0xba03f875
+0, 154800, 152064, 0x3ac282cd
+0, 158400, 152064, 0x23aee807
+0, 162000, 152064, 0x4274c84c
+0, 165600, 152064, 0xdfdacf4b
+0, 169200, 152064, 0xb2de9e6e
+0, 172800, 152064, 0x456b684e
+0, 176400, 152064, 0xa6297c83
diff --git a/tests/ref/fate/h264-conformance-camasl3_sony_b b/tests/ref/fate/h264-conformance-camasl3_sony_b
new file mode 100644
index 0000000000..73f9b7fda5
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-camasl3_sony_b
@@ -0,0 +1,17 @@
+0, 0, 36864, 0xfe2ad849
+0, 3600, 36864, 0x37954ba1
+0, 7200, 36864, 0xaf0e0877
+0, 10800, 36864, 0xf28cadd1
+0, 14400, 36864, 0xe182365a
+0, 18000, 36864, 0xdcdc03b7
+0, 21600, 36864, 0x2eded02f
+0, 25200, 36864, 0xa706ca87
+0, 28800, 36864, 0x446f4c83
+0, 32400, 36864, 0x766acab3
+0, 36000, 36864, 0x651feaed
+0, 39600, 36864, 0x834a2a75
+0, 43200, 36864, 0xb1811822
+0, 46800, 36864, 0xd8e12e21
+0, 50400, 36864, 0x6b445b13
+0, 54000, 36864, 0xa4ded223
+0, 57600, 36864, 0xbd1161b5
diff --git a/tests/ref/fate/h264-conformance-camp_mot_mbaff_l30 b/tests/ref/fate/h264-conformance-camp_mot_mbaff_l30
new file mode 100644
index 0000000000..f8a1b8c93b
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-camp_mot_mbaff_l30
@@ -0,0 +1,30 @@
+0, 0, 518400, 0x672279df
+0, 3600, 518400, 0xb248a762
+0, 7200, 518400, 0x4399de88
+0, 10800, 518400, 0x14200d2d
+0, 14400, 518400, 0x14a704cf
+0, 18000, 518400, 0xcaac5431
+0, 21600, 518400, 0x69d77cee
+0, 25200, 518400, 0x420d5f92
+0, 28800, 518400, 0x083a357d
+0, 32400, 518400, 0x01777426
+0, 36000, 518400, 0x474640e9
+0, 39600, 518400, 0x3d690eab
+0, 43200, 518400, 0x58074830
+0, 46800, 518400, 0x3e3f0fcc
+0, 50400, 518400, 0x8c72de01
+0, 54000, 518400, 0xbf0a4f6f
+0, 57600, 518400, 0xbdea010d
+0, 61200, 518400, 0x54bdc458
+0, 64800, 518400, 0xdcd00ed0
+0, 68400, 518400, 0x64ba9ba9
+0, 72000, 518400, 0x5c0c6790
+0, 75600, 518400, 0x178674ed
+0, 79200, 518400, 0x9ebec8d3
+0, 82800, 518400, 0x375c5426
+0, 86400, 518400, 0x19987af8
+0, 90000, 518400, 0x347ec12c
+0, 93600, 518400, 0x96856c36
+0, 97200, 518400, 0xb81264a6
+0, 100800, 518400, 0xde0a08d6
+0, 104400, 518400, 0x19cb10be
diff --git a/tests/ref/fate/h264-conformance-camp_mot_mbaff_l31 b/tests/ref/fate/h264-conformance-camp_mot_mbaff_l31
new file mode 100644
index 0000000000..baccdb8aad
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-camp_mot_mbaff_l31
@@ -0,0 +1,30 @@
+0, 0, 518400, 0x077637bf
+0, 3600, 518400, 0xbd096d55
+0, 7200, 518400, 0x58b58820
+0, 10800, 518400, 0xdf24aced
+0, 14400, 518400, 0x2354c6a2
+0, 18000, 518400, 0xedaaffdf
+0, 21600, 518400, 0x28a8f027
+0, 25200, 518400, 0x05dee3d2
+0, 28800, 518400, 0x2ae9dbe4
+0, 32400, 518400, 0x361fec4a
+0, 36000, 518400, 0xd9c7b07d
+0, 39600, 518400, 0xa9d69c9f
+0, 43200, 518400, 0x7f44c08c
+0, 46800, 518400, 0xbfed83b4
+0, 50400, 518400, 0x65a5588c
+0, 54000, 518400, 0xf4859855
+0, 57600, 518400, 0xcba96df9
+0, 61200, 518400, 0x8ae11dfd
+0, 64800, 518400, 0xf0e36904
+0, 68400, 518400, 0x45cf1cb3
+0, 72000, 518400, 0xffefde04
+0, 75600, 518400, 0xc2a8edef
+0, 79200, 518400, 0x72b15456
+0, 82800, 518400, 0x67b8dd35
+0, 86400, 518400, 0x8b91f38e
+0, 90000, 518400, 0xe7055df1
+0, 93600, 518400, 0x5c32200d
+0, 97200, 518400, 0xfbb709dc
+0, 100800, 518400, 0x5c45b17f
+0, 104400, 518400, 0x3a25903f
diff --git a/tests/ref/fate/h264-conformance-canl1_sony_e b/tests/ref/fate/h264-conformance-canl1_sony_e
new file mode 100644
index 0000000000..552caa8580
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-canl1_sony_e
@@ -0,0 +1,50 @@
+0, 0, 38016, 0xc805351d
+0, 3600, 38016, 0x3809fec3
+0, 7200, 38016, 0xf698ce3c
+0, 10800, 38016, 0x7e3da603
+0, 14400, 38016, 0x68b07d81
+0, 18000, 38016, 0xd91f717a
+0, 21600, 38016, 0x48885dd6
+0, 25200, 38016, 0x27e64e8e
+0, 28800, 38016, 0x955835ce
+0, 32400, 38016, 0xf19940a0
+0, 36000, 38016, 0x9a1c51e4
+0, 39600, 38016, 0xf59373af
+0, 43200, 38016, 0x5d6c7d06
+0, 46800, 38016, 0x32fca533
+0, 50400, 38016, 0x37e69987
+0, 54000, 38016, 0x96929e05
+0, 57600, 38016, 0xee37a1f9
+0, 61200, 38016, 0xc6279d8f
+0, 64800, 38016, 0x33d28b0a
+0, 68400, 38016, 0x42946b72
+0, 72000, 38016, 0x51e947bf
+0, 75600, 38016, 0xb10b2399
+0, 79200, 38016, 0x250c0fe4
+0, 82800, 38016, 0x81e20b18
+0, 86400, 38016, 0xb93f00db
+0, 90000, 38016, 0x4f9d13d8
+0, 93600, 38016, 0x7d9c1184
+0, 97200, 38016, 0xd3271d2c
+0, 100800, 38016, 0x9b253539
+0, 104400, 38016, 0xc4fd4d89
+0, 108000, 38016, 0x006f63cc
+0, 111600, 38016, 0xa7d976b4
+0, 115200, 38016, 0x30de94d6
+0, 118800, 38016, 0x2cb7a745
+0, 122400, 38016, 0xa7a2b854
+0, 126000, 38016, 0x1ca1ba1a
+0, 129600, 38016, 0x13b2b430
+0, 133200, 38016, 0x82bbb2de
+0, 136800, 38016, 0x5fa0b4f9
+0, 140400, 38016, 0xedefb64d
+0, 144000, 38016, 0x5ccdbf33
+0, 147600, 38016, 0x4fd0b4bb
+0, 151200, 38016, 0x195fa008
+0, 154800, 38016, 0xda1494e0
+0, 158400, 38016, 0x98ac8fa6
+0, 162000, 38016, 0xd1548835
+0, 165600, 38016, 0x35c790ee
+0, 169200, 38016, 0xecda84f1
+0, 172800, 38016, 0x9d9f8710
+0, 176400, 38016, 0x72d89581
diff --git a/tests/ref/fate/h264-conformance-canl1_sva_b b/tests/ref/fate/h264-conformance-canl1_sva_b
new file mode 100644
index 0000000000..8594553538
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-canl1_sva_b
@@ -0,0 +1,17 @@
+0, 0, 38016, 0x0bd22424
+0, 3600, 38016, 0x4eb601f0
+0, 7200, 38016, 0xe16de459
+0, 10800, 38016, 0xde2e0c37
+0, 14400, 38016, 0x14a0286b
+0, 18000, 38016, 0x37bc35b5
+0, 21600, 38016, 0xcfa24923
+0, 25200, 38016, 0xac755ba0
+0, 28800, 38016, 0x27d1822a
+0, 32400, 38016, 0xa8039548
+0, 36000, 38016, 0x400ea1fb
+0, 39600, 38016, 0x7d2ca44a
+0, 43200, 38016, 0xd42dae4f
+0, 46800, 38016, 0x39ce9599
+0, 50400, 38016, 0x37498aa1
+0, 54000, 38016, 0x8558911f
+0, 57600, 38016, 0x06a8a9ad
diff --git a/tests/ref/fate/h264-conformance-canl1_toshiba_g b/tests/ref/fate/h264-conformance-canl1_toshiba_g
new file mode 100644
index 0000000000..49faee0db5
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-canl1_toshiba_g
@@ -0,0 +1,300 @@
+0, 0, 38016, 0x58892149
+0, 3600, 38016, 0xda2ded74
+0, 7200, 38016, 0x2661cdb0
+0, 10800, 38016, 0xb581a73a
+0, 14400, 38016, 0xa04a7e93
+0, 18000, 38016, 0x149e7861
+0, 21600, 38016, 0x53725080
+0, 25200, 38016, 0x341a4d3f
+0, 28800, 38016, 0x2ecc41ac
+0, 32400, 38016, 0x99b85127
+0, 36000, 38016, 0x7bdc50bc
+0, 39600, 38016, 0xd3d58663
+0, 43200, 38016, 0x717485e9
+0, 46800, 38016, 0x2ac29c85
+0, 50400, 38016, 0x36daa429
+0, 54000, 38016, 0x8bb7a48e
+0, 57600, 38016, 0xb38aab11
+0, 61200, 38016, 0xacd89c4c
+0, 64800, 38016, 0x676b71e1
+0, 68400, 38016, 0xa2e7731e
+0, 72000, 38016, 0x4a2f5766
+0, 75600, 38016, 0x04ef1873
+0, 79200, 38016, 0x52ac0171
+0, 82800, 38016, 0xdd0a027a
+0, 86400, 38016, 0x700810c6
+0, 90000, 38016, 0x417f0cd3
+0, 93600, 38016, 0xf8ef0da9
+0, 97200, 38016, 0xfce62a5a
+0, 100800, 38016, 0x03592b0a
+0, 104400, 38016, 0x9b7b5373
+0, 108000, 38016, 0xab015505
+0, 111600, 38016, 0xf3387ae1
+0, 115200, 38016, 0x1d09a5b6
+0, 118800, 38016, 0x9159a5e2
+0, 122400, 38016, 0x8887c177
+0, 126000, 38016, 0x914dbacd
+0, 129600, 38016, 0xaa97c0f6
+0, 133200, 38016, 0x0837b14a
+0, 136800, 38016, 0x0198be16
+0, 140400, 38016, 0xc14bc9c6
+0, 144000, 38016, 0xdb58c2a7
+0, 147600, 38016, 0xa751ae90
+0, 151200, 38016, 0x5813a64d
+0, 154800, 38016, 0x73959f9b
+0, 158400, 38016, 0xb0de8994
+0, 162000, 38016, 0x79ea9214
+0, 165600, 38016, 0x0b388957
+0, 169200, 38016, 0x31aa91c9
+0, 172800, 38016, 0xadcf88ec
+0, 176400, 38016, 0x5bc99b68
+0, 180000, 38016, 0x535e7c2e
+0, 183600, 38016, 0xbfef8e0a
+0, 187200, 38016, 0xc56285aa
+0, 190800, 38016, 0x76758edc
+0, 194400, 38016, 0xd8c3a20b
+0, 198000, 38016, 0xd2aa918b
+0, 201600, 38016, 0xfe1ea23b
+0, 205200, 38016, 0x3533a68d
+0, 208800, 38016, 0xd8679427
+0, 212400, 38016, 0x76be9c98
+0, 216000, 38016, 0xc37a9a7a
+0, 219600, 38016, 0x1ebe9463
+0, 223200, 38016, 0xab4c63d2
+0, 226800, 38016, 0x761b3c50
+0, 230400, 38016, 0xb57c4bb7
+0, 234000, 38016, 0x86117755
+0, 237600, 38016, 0xd89dacf3
+0, 241200, 38016, 0x8940eee9
+0, 244800, 38016, 0x2f7c3abf
+0, 248400, 38016, 0x98366678
+0, 252000, 38016, 0x14348147
+0, 255600, 38016, 0x4e3ba8f8
+0, 259200, 38016, 0xc167c205
+0, 262800, 38016, 0x0581e211
+0, 266400, 38016, 0x62cd0ea6
+0, 270000, 38016, 0x753b3a2b
+0, 273600, 38016, 0x25ce507a
+0, 277200, 38016, 0x726f64af
+0, 280800, 38016, 0xa13c7c58
+0, 284400, 38016, 0xa27b7584
+0, 288000, 38016, 0x45b47c12
+0, 291600, 38016, 0x0f6a9456
+0, 295200, 38016, 0x30ae9e92
+0, 298800, 38016, 0xf59fa16d
+0, 302400, 38016, 0x16d292d7
+0, 306000, 38016, 0x828791cc
+0, 309600, 38016, 0x71769267
+0, 313200, 38016, 0xf297a0e0
+0, 316800, 38016, 0x33a4a00a
+0, 320400, 38016, 0xda96c5b8
+0, 324000, 38016, 0x742daf25
+0, 327600, 38016, 0x603f8bba
+0, 331200, 38016, 0x89d18e70
+0, 334800, 38016, 0x8c2b8c29
+0, 338400, 38016, 0x9ccf6983
+0, 342000, 38016, 0x8ddd5a29
+0, 345600, 38016, 0x5679718d
+0, 349200, 38016, 0x28aa80b3
+0, 352800, 38016, 0x3b08780e
+0, 356400, 38016, 0x9e408cbc
+0, 360000, 38016, 0xe7c18e94
+0, 363600, 38016, 0xaba57f22
+0, 367200, 38016, 0xd8826dc5
+0, 370800, 38016, 0x2ed2710e
+0, 374400, 38016, 0x59748443
+0, 378000, 38016, 0x5076b247
+0, 381600, 38016, 0xf6ae9bcd
+0, 385200, 38016, 0x4d83d68f
+0, 388800, 38016, 0x118ff589
+0, 392400, 38016, 0x65b3f2c0
+0, 396000, 38016, 0x8f341576
+0, 399600, 38016, 0xbeac1816
+0, 403200, 38016, 0x19073cf9
+0, 406800, 38016, 0xcfdb2e55
+0, 410400, 38016, 0x99fd08f8
+0, 414000, 38016, 0x025c0249
+0, 417600, 38016, 0x4d311afc
+0, 421200, 38016, 0xef532038
+0, 424800, 38016, 0x7c353d9a
+0, 428400, 38016, 0x9fed4678
+0, 432000, 38016, 0x67062dad
+0, 435600, 38016, 0x1e5b2069
+0, 439200, 38016, 0x8b25fd3f
+0, 442800, 38016, 0x06a9e566
+0, 446400, 38016, 0x263badf5
+0, 450000, 38016, 0x35a99a45
+0, 453600, 38016, 0x930a8491
+0, 457200, 38016, 0xf9d49dfd
+0, 460800, 38016, 0xbc8cb0a6
+0, 464400, 38016, 0x8f10d1a9
+0, 468000, 38016, 0xb6dbc51b
+0, 471600, 38016, 0x2f1bc747
+0, 475200, 38016, 0xecdac1ac
+0, 478800, 38016, 0x6391bdcc
+0, 482400, 38016, 0x7e5eb209
+0, 486000, 38016, 0x8f5ea1e8
+0, 489600, 38016, 0x969195a9
+0, 493200, 38016, 0x18579903
+0, 496800, 38016, 0x4cfe8893
+0, 500400, 38016, 0x68c57143
+0, 504000, 38016, 0x297f6420
+0, 507600, 38016, 0x36b1669c
+0, 511200, 38016, 0x3d78362e
+0, 514800, 38016, 0xaba14c36
+0, 518400, 38016, 0xe6914a59
+0, 522000, 38016, 0x3733481a
+0, 525600, 38016, 0xb6df4c6d
+0, 529200, 38016, 0x20631838
+0, 532800, 38016, 0x014df835
+0, 536400, 38016, 0xcb36db94
+0, 540000, 38016, 0x4cb8b44a
+0, 543600, 38016, 0xa49da6e5
+0, 547200, 38016, 0x8dbfb72d
+0, 550800, 38016, 0x3ba5b7d5
+0, 554400, 38016, 0xc8ebad2d
+0, 558000, 38016, 0x36fad594
+0, 561600, 38016, 0x6302f0f2
+0, 565200, 38016, 0xc799139e
+0, 568800, 38016, 0x947947d0
+0, 572400, 38016, 0x39756224
+0, 576000, 38016, 0x1d995e51
+0, 579600, 38016, 0x56274435
+0, 583200, 38016, 0x3cfc2b1d
+0, 586800, 38016, 0x5a4a178f
+0, 590400, 38016, 0xca212af1
+0, 594000, 38016, 0x885af884
+0, 597600, 38016, 0x3241c9c1
+0, 601200, 38016, 0x4ef997a4
+0, 604800, 38016, 0x5ecb8030
+0, 608400, 38016, 0x2eb76daa
+0, 612000, 38016, 0x485780ba
+0, 615600, 38016, 0xf5f88241
+0, 619200, 38016, 0x563f97d0
+0, 622800, 38016, 0x4a01a6c4
+0, 626400, 38016, 0xd7ea8457
+0, 630000, 38016, 0x08ae6916
+0, 633600, 38016, 0x4c933e75
+0, 637200, 38016, 0x49541e4a
+0, 640800, 38016, 0xd14e028a
+0, 644400, 38016, 0xabd5f4e6
+0, 648000, 38016, 0xfe3bdd0f
+0, 651600, 38016, 0xbb30cef4
+0, 655200, 38016, 0xd724d0e3
+0, 658800, 38016, 0x7537d6bf
+0, 662400, 38016, 0x3da3e67a
+0, 666000, 38016, 0xf02606eb
+0, 669600, 38016, 0x2dde399b
+0, 673200, 38016, 0xafe94c86
+0, 676800, 38016, 0x923d6081
+0, 680400, 38016, 0x9c733e4e
+0, 684000, 38016, 0x2b16d821
+0, 687600, 38016, 0x1edf9cd1
+0, 691200, 38016, 0xa9c3b601
+0, 694800, 38016, 0x9adeb02b
+0, 698400, 38016, 0xf5eaddc3
+0, 702000, 38016, 0xac871bea
+0, 705600, 38016, 0x060429f4
+0, 709200, 38016, 0xf80b421d
+0, 712800, 38016, 0x7dcd6c50
+0, 716400, 38016, 0x46e46798
+0, 720000, 38016, 0xdbee759f
+0, 723600, 38016, 0xbbe78774
+0, 727200, 38016, 0xb85990ed
+0, 730800, 38016, 0xda0e8530
+0, 734400, 38016, 0x5eaf8508
+0, 738000, 38016, 0x5c2c83fa
+0, 741600, 38016, 0x6dfe9322
+0, 745200, 38016, 0xa3059a60
+0, 748800, 38016, 0x357c8237
+0, 752400, 38016, 0xccae6b20
+0, 756000, 38016, 0x25fe57c1
+0, 759600, 38016, 0xfa65376b
+0, 763200, 38016, 0xd9b12ef8
+0, 766800, 38016, 0x3ab73fa0
+0, 770400, 38016, 0xcb6a2f96
+0, 774000, 38016, 0x8a973915
+0, 777600, 38016, 0x71ac1dd2
+0, 781200, 38016, 0x71802085
+0, 784800, 38016, 0x4de728d9
+0, 788400, 38016, 0xdf3a1de7
+0, 792000, 38016, 0x36270e93
+0, 795600, 38016, 0x90d4fe93
+0, 799200, 38016, 0x3477fb4e
+0, 802800, 38016, 0xd410fa81
+0, 806400, 38016, 0xfc230675
+0, 810000, 38016, 0xbda40c03
+0, 813600, 38016, 0x7a47fc07
+0, 817200, 38016, 0x53fe2a37
+0, 820800, 38016, 0x342d3bec
+0, 824400, 38016, 0xf13163a3
+0, 828000, 38016, 0x03f087da
+0, 831600, 38016, 0xbc03c466
+0, 835200, 38016, 0x6318d676
+0, 838800, 38016, 0xbc2f0b68
+0, 842400, 38016, 0xcb57354b
+0, 846000, 38016, 0x7e9a5b48
+0, 849600, 38016, 0x9dca693a
+0, 853200, 38016, 0xd0776497
+0, 856800, 38016, 0x05a24093
+0, 860400, 38016, 0x69b21063
+0, 864000, 38016, 0x15f3ed8b
+0, 867600, 38016, 0x2417bc52
+0, 871200, 38016, 0xabc2a564
+0, 874800, 38016, 0x67f2dd90
+0, 878400, 38016, 0xa5fe4b6e
+0, 882000, 38016, 0x7801add2
+0, 885600, 38016, 0xf4abc321
+0, 889200, 38016, 0x1d06a837
+0, 892800, 38016, 0x2e0d6fc2
+0, 896400, 38016, 0xc4f30535
+0, 900000, 38016, 0x67d09a80
+0, 903600, 38016, 0xca505a1e
+0, 907200, 38016, 0x2e2e56c8
+0, 910800, 38016, 0x689ea3e2
+0, 914400, 38016, 0x9989165a
+0, 918000, 38016, 0xd8e2c30e
+0, 921600, 38016, 0x2a98bf3f
+0, 925200, 38016, 0x44664d3e
+0, 928800, 38016, 0x53a939de
+0, 932400, 38016, 0x4c153702
+0, 936000, 38016, 0x03c73e88
+0, 939600, 38016, 0x7cd649d4
+0, 943200, 38016, 0x7d7c5687
+0, 946800, 38016, 0x8f3c53a6
+0, 950400, 38016, 0x24634dd1
+0, 954000, 38016, 0x5d00442c
+0, 957600, 38016, 0xdcc72906
+0, 961200, 38016, 0x5def12f3
+0, 964800, 38016, 0x95e6e8be
+0, 968400, 38016, 0x2675c694
+0, 972000, 38016, 0x906aa24e
+0, 975600, 38016, 0x09468fe4
+0, 979200, 38016, 0xaec9736d
+0, 982800, 38016, 0xa5812142
+0, 986400, 38016, 0x9986d55f
+0, 990000, 38016, 0x9f7fc399
+0, 993600, 38016, 0xc345d526
+0, 997200, 38016, 0x3ae3b9bd
+0, 1000800, 38016, 0xb103ec45
+0, 1004400, 38016, 0x3ff462c2
+0, 1008000, 38016, 0x5c07ed68
+0, 1011600, 38016, 0xccbad189
+0, 1015200, 38016, 0x6f3f9a18
+0, 1018800, 38016, 0x26406fa1
+0, 1022400, 38016, 0x06cf5f62
+0, 1026000, 38016, 0x3eb29bd1
+0, 1029600, 38016, 0x12ab807e
+0, 1033200, 38016, 0x7621bf0d
+0, 1036800, 38016, 0x88eabc0c
+0, 1040400, 38016, 0x21386662
+0, 1044000, 38016, 0x5839e3e4
+0, 1047600, 38016, 0xd196ee7c
+0, 1051200, 38016, 0x84dc8477
+0, 1054800, 38016, 0xbf2dcc7a
+0, 1058400, 38016, 0x29e3fe96
+0, 1062000, 38016, 0xf115ffc3
+0, 1065600, 38016, 0x7585d699
+0, 1069200, 38016, 0x7a7dcb8a
+0, 1072800, 38016, 0x03cfdb04
+0, 1076400, 38016, 0xd56e028c
diff --git a/tests/ref/fate/h264-conformance-canl2_sony_e b/tests/ref/fate/h264-conformance-canl2_sony_e
new file mode 100644
index 0000000000..327e92597d
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-canl2_sony_e
@@ -0,0 +1,300 @@
+0, 0, 38016, 0xc805351d
+0, 3600, 38016, 0x3017107e
+0, 7200, 38016, 0xe172e2d2
+0, 10800, 38016, 0x7fefbb5b
+0, 14400, 38016, 0x331097e6
+0, 18000, 38016, 0x47de825a
+0, 21600, 38016, 0x0bf36d87
+0, 25200, 38016, 0x03ae60c5
+0, 28800, 38016, 0x986b5930
+0, 32400, 38016, 0x398b6450
+0, 36000, 38016, 0x8e1b77e7
+0, 39600, 38016, 0xefb198a6
+0, 43200, 38016, 0x395aa9ee
+0, 46800, 38016, 0x1918b963
+0, 50400, 38016, 0xe6cab421
+0, 54000, 38016, 0x96929e05
+0, 57600, 38016, 0xf076abc7
+0, 61200, 38016, 0xd0f4ab70
+0, 64800, 38016, 0x7a39a75c
+0, 68400, 38016, 0xb04f8bad
+0, 72000, 38016, 0xe4996ff5
+0, 75600, 38016, 0x096e549a
+0, 79200, 38016, 0x36d73f1a
+0, 82800, 38016, 0x25f53bbf
+0, 86400, 38016, 0x7ebd3f9f
+0, 90000, 38016, 0x464c4b4c
+0, 93600, 38016, 0x2d794a40
+0, 97200, 38016, 0x1599532d
+0, 100800, 38016, 0xf8326999
+0, 104400, 38016, 0x858e789b
+0, 108000, 38016, 0x006f63cc
+0, 111600, 38016, 0x488a9614
+0, 115200, 38016, 0x950fb7cc
+0, 118800, 38016, 0x6deac9dd
+0, 122400, 38016, 0x0a82d725
+0, 126000, 38016, 0x2702d5fe
+0, 129600, 38016, 0xf7ead782
+0, 133200, 38016, 0x560fd1f1
+0, 136800, 38016, 0xa3cdd31a
+0, 140400, 38016, 0xa19ed45c
+0, 144000, 38016, 0x8d85d757
+0, 147600, 38016, 0x7fa6e1b5
+0, 151200, 38016, 0x8a31db0e
+0, 154800, 38016, 0x9dead6ff
+0, 158400, 38016, 0x8a8adf44
+0, 162000, 38016, 0xd1548835
+0, 165600, 38016, 0xf696a62c
+0, 169200, 38016, 0x5edbb219
+0, 172800, 38016, 0x0d9db749
+0, 176400, 38016, 0xc109c379
+0, 180000, 38016, 0xe814c2b1
+0, 183600, 38016, 0x4a8dc84b
+0, 187200, 38016, 0x6bcac28c
+0, 190800, 38016, 0xa37ec8da
+0, 194400, 38016, 0x3202d5e9
+0, 198000, 38016, 0x3d65ddb6
+0, 201600, 38016, 0x165de082
+0, 205200, 38016, 0x5702e231
+0, 208800, 38016, 0x034fe8f4
+0, 212400, 38016, 0x96f0ea58
+0, 216000, 38016, 0x65539ad7
+0, 219600, 38016, 0xdf98a7cf
+0, 223200, 38016, 0xda007de0
+0, 226800, 38016, 0xdf43520e
+0, 230400, 38016, 0xc5d553d2
+0, 234000, 38016, 0xc3327450
+0, 237600, 38016, 0x81c4a2e0
+0, 241200, 38016, 0x7c56e2d1
+0, 244800, 38016, 0x813f20a4
+0, 248400, 38016, 0xe48257ad
+0, 252000, 38016, 0x261b812f
+0, 255600, 38016, 0x8836ae43
+0, 259200, 38016, 0x4c52e30f
+0, 262800, 38016, 0x0614245f
+0, 266400, 38016, 0xbf275e2e
+0, 270000, 38016, 0x2f0f3e49
+0, 273600, 38016, 0xfaf57eb1
+0, 277200, 38016, 0xd1b49f95
+0, 280800, 38016, 0x10f4c2f6
+0, 284400, 38016, 0x2322d359
+0, 288000, 38016, 0x994de596
+0, 291600, 38016, 0x2a0df115
+0, 295200, 38016, 0xfcb7f1ec
+0, 298800, 38016, 0xcbc2ee10
+0, 302400, 38016, 0x49f5ee5c
+0, 306000, 38016, 0x4eb9f286
+0, 309600, 38016, 0xe5d80039
+0, 313200, 38016, 0xfa57fa81
+0, 316800, 38016, 0x2bea01f7
+0, 320400, 38016, 0x4e7c07a0
+0, 324000, 38016, 0x43b6a0f7
+0, 327600, 38016, 0x996e93cc
+0, 331200, 38016, 0x8e5c8a40
+0, 334800, 38016, 0x15cc7fe7
+0, 338400, 38016, 0x7f0a6c35
+0, 342000, 38016, 0x031677a4
+0, 345600, 38016, 0x14dd8b6d
+0, 349200, 38016, 0x143ca592
+0, 352800, 38016, 0x8e56b262
+0, 356400, 38016, 0x01c7c2b9
+0, 360000, 38016, 0xc117cbfa
+0, 363600, 38016, 0x609bbe4b
+0, 367200, 38016, 0x9a9fad05
+0, 370800, 38016, 0xba959d79
+0, 374400, 38016, 0x8773c00e
+0, 378000, 38016, 0xea22a35b
+0, 381600, 38016, 0x4b76c5fa
+0, 385200, 38016, 0x5088e610
+0, 388800, 38016, 0xb6db1234
+0, 392400, 38016, 0xef631cf7
+0, 396000, 38016, 0x7d993030
+0, 399600, 38016, 0xa9b24013
+0, 403200, 38016, 0xc3a14055
+0, 406800, 38016, 0x5e7e2b4c
+0, 410400, 38016, 0xae3505e0
+0, 414000, 38016, 0x48880369
+0, 417600, 38016, 0x844e1316
+0, 421200, 38016, 0x1d501951
+0, 424800, 38016, 0x36ae2e34
+0, 428400, 38016, 0xe48b385f
+0, 432000, 38016, 0xd88d3691
+0, 435600, 38016, 0xf38f3ad4
+0, 439200, 38016, 0x2a0e256e
+0, 442800, 38016, 0x0c25fbbd
+0, 446400, 38016, 0x13dbd8fc
+0, 450000, 38016, 0x8c4dc0b1
+0, 453600, 38016, 0x054bb5d5
+0, 457200, 38016, 0x19f8c259
+0, 460800, 38016, 0x4037d8fd
+0, 464400, 38016, 0x13f4ecda
+0, 468000, 38016, 0xde8af5a1
+0, 471600, 38016, 0x5997f541
+0, 475200, 38016, 0x876bebfe
+0, 478800, 38016, 0x7322ef36
+0, 482400, 38016, 0xe6a7ecc3
+0, 486000, 38016, 0x20e5a1eb
+0, 489600, 38016, 0xd1e5b985
+0, 493200, 38016, 0xe83cb437
+0, 496800, 38016, 0x8928a6f2
+0, 500400, 38016, 0xc6b1a7f4
+0, 504000, 38016, 0xcaf79531
+0, 507600, 38016, 0x3ded956e
+0, 511200, 38016, 0x494b82c5
+0, 514800, 38016, 0x86cb794a
+0, 518400, 38016, 0x548687e6
+0, 522000, 38016, 0x8f478a9f
+0, 525600, 38016, 0x32a97cbb
+0, 529200, 38016, 0x587b56cf
+0, 532800, 38016, 0x933428a9
+0, 536400, 38016, 0xcb610212
+0, 540000, 38016, 0x0d27b12d
+0, 543600, 38016, 0xf5a9b7e0
+0, 547200, 38016, 0x5287bdb7
+0, 550800, 38016, 0xa4e9b762
+0, 554400, 38016, 0x289da6d8
+0, 558000, 38016, 0x1969bb3e
+0, 561600, 38016, 0x29cbe019
+0, 565200, 38016, 0xe01403c6
+0, 568800, 38016, 0xce003f90
+0, 572400, 38016, 0x455d67e1
+0, 576000, 38016, 0xb57f7724
+0, 579600, 38016, 0x7fce73b9
+0, 583200, 38016, 0x7f136bbe
+0, 586800, 38016, 0xf096599f
+0, 590400, 38016, 0xe6df4c3a
+0, 594000, 38016, 0x98d2f70e
+0, 597600, 38016, 0xb500f2d7
+0, 601200, 38016, 0x95d3ce30
+0, 604800, 38016, 0x02a9ae41
+0, 608400, 38016, 0xb146a958
+0, 612000, 38016, 0x86a0bf3d
+0, 615600, 38016, 0x0c58d90a
+0, 619200, 38016, 0x27aef37f
+0, 622800, 38016, 0x3933fc3e
+0, 626400, 38016, 0x9ce9dc1c
+0, 630000, 38016, 0x3161ac45
+0, 633600, 38016, 0x4e8174cd
+0, 637200, 38016, 0xd8904d4b
+0, 640800, 38016, 0x933c2a55
+0, 644400, 38016, 0x85371555
+0, 648000, 38016, 0x3bb3ecd3
+0, 651600, 38016, 0x6b6ad873
+0, 655200, 38016, 0xa04dcf64
+0, 658800, 38016, 0x7869dc82
+0, 662400, 38016, 0x1c11e371
+0, 666000, 38016, 0x91eef557
+0, 669600, 38016, 0x27a30e42
+0, 673200, 38016, 0xcba73491
+0, 676800, 38016, 0xdffc402e
+0, 680400, 38016, 0x49b543c6
+0, 684000, 38016, 0xe3f7f438
+0, 687600, 38016, 0xed3ec663
+0, 691200, 38016, 0x174ad199
+0, 694800, 38016, 0x5330eef8
+0, 698400, 38016, 0x19d9074b
+0, 702000, 38016, 0x25961ad1
+0, 705600, 38016, 0x63024e80
+0, 709200, 38016, 0x25de6e2e
+0, 712800, 38016, 0x4cc594e8
+0, 716400, 38016, 0x8b25afcf
+0, 720000, 38016, 0x7b29bfcf
+0, 723600, 38016, 0x93abce16
+0, 727200, 38016, 0xc7f1d8fb
+0, 730800, 38016, 0x277ed79e
+0, 734400, 38016, 0x30dbdfe4
+0, 738000, 38016, 0xbd8be711
+0, 741600, 38016, 0xf072ea62
+0, 745200, 38016, 0xbfd0e5a5
+0, 748800, 38016, 0xedffdb3d
+0, 752400, 38016, 0x5238cb59
+0, 756000, 38016, 0x39305ec1
+0, 759600, 38016, 0x07816d20
+0, 763200, 38016, 0x61416e5b
+0, 766800, 38016, 0xc39d6ae2
+0, 770400, 38016, 0x1de95fe1
+0, 774000, 38016, 0x0530552f
+0, 777600, 38016, 0xa48f5b19
+0, 781200, 38016, 0x11305e31
+0, 784800, 38016, 0x9ae25bda
+0, 788400, 38016, 0xf16e5b67
+0, 792000, 38016, 0x9a375284
+0, 795600, 38016, 0x5a744019
+0, 799200, 38016, 0x811631e5
+0, 802800, 38016, 0x178a20e6
+0, 806400, 38016, 0xcab02bf2
+0, 810000, 38016, 0x6fca13cb
+0, 813600, 38016, 0xa1a71ba8
+0, 817200, 38016, 0x95f52de5
+0, 820800, 38016, 0xd2744451
+0, 824400, 38016, 0x717f6ef6
+0, 828000, 38016, 0x1f9e8ca9
+0, 831600, 38016, 0xc931b115
+0, 835200, 38016, 0xa4c1db05
+0, 838800, 38016, 0x92e80cc1
+0, 842400, 38016, 0x5ac5276c
+0, 846000, 38016, 0x624340ca
+0, 849600, 38016, 0x774a5a7c
+0, 853200, 38016, 0x1da55863
+0, 856800, 38016, 0x1bbc3b98
+0, 860400, 38016, 0x953b1479
+0, 864000, 38016, 0x8b11e5a8
+0, 867600, 38016, 0xf749d359
+0, 871200, 38016, 0xb54fcb8a
+0, 874800, 38016, 0xb64b1951
+0, 878400, 38016, 0x99778550
+0, 882000, 38016, 0x5e70e9e2
+0, 885600, 38016, 0x22550b80
+0, 889200, 38016, 0xfe3ddcde
+0, 892800, 38016, 0x1e28989e
+0, 896400, 38016, 0x25b926a4
+0, 900000, 38016, 0xf2c3c536
+0, 903600, 38016, 0x534a8643
+0, 907200, 38016, 0xf44b7f07
+0, 910800, 38016, 0x2873c895
+0, 914400, 38016, 0x67a7388d
+0, 918000, 38016, 0x0e5eca3b
+0, 921600, 38016, 0xc50dc747
+0, 925200, 38016, 0x6a3a4f1e
+0, 928800, 38016, 0x77d83b5f
+0, 932400, 38016, 0x91213d43
+0, 936000, 38016, 0x28344889
+0, 939600, 38016, 0xd1155a3f
+0, 943200, 38016, 0x5c7a65c5
+0, 946800, 38016, 0x3d4e7104
+0, 950400, 38016, 0x91d96a37
+0, 954000, 38016, 0xbc7f63f3
+0, 957600, 38016, 0x79275184
+0, 961200, 38016, 0xa6b43348
+0, 964800, 38016, 0x9e1d105a
+0, 968400, 38016, 0x14bce053
+0, 972000, 38016, 0x0ce3a7ca
+0, 975600, 38016, 0x4b5980fe
+0, 979200, 38016, 0x32745e1c
+0, 982800, 38016, 0x85b91358
+0, 986400, 38016, 0x9e26c66c
+0, 990000, 38016, 0x9735b157
+0, 993600, 38016, 0xfeaac3d1
+0, 997200, 38016, 0x8c95ca9f
+0, 1000800, 38016, 0x1336fa92
+0, 1004400, 38016, 0x37bb65f8
+0, 1008000, 38016, 0x830c078a
+0, 1011600, 38016, 0x088dd912
+0, 1015200, 38016, 0x8ef1a5a0
+0, 1018800, 38016, 0x9a1e642d
+0, 1022400, 38016, 0xa165517e
+0, 1026000, 38016, 0x0a34a67f
+0, 1029600, 38016, 0xaf0a662a
+0, 1033200, 38016, 0x3a5fa553
+0, 1036800, 38016, 0xda92b1f8
+0, 1040400, 38016, 0xac2997f4
+0, 1044000, 38016, 0x5df32cfc
+0, 1047600, 38016, 0x5cea491d
+0, 1051200, 38016, 0xeafbd139
+0, 1054800, 38016, 0x9ced0e69
+0, 1058400, 38016, 0x89514e3f
+0, 1062000, 38016, 0x3f0b4842
+0, 1065600, 38016, 0xc9902325
+0, 1069200, 38016, 0xdb3e1585
+0, 1072800, 38016, 0x3cf31e95
+0, 1076400, 38016, 0x60f14679
diff --git a/tests/ref/fate/h264-conformance-canl2_sva_b b/tests/ref/fate/h264-conformance-canl2_sva_b
new file mode 100644
index 0000000000..8594553538
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-canl2_sva_b
@@ -0,0 +1,17 @@
+0, 0, 38016, 0x0bd22424
+0, 3600, 38016, 0x4eb601f0
+0, 7200, 38016, 0xe16de459
+0, 10800, 38016, 0xde2e0c37
+0, 14400, 38016, 0x14a0286b
+0, 18000, 38016, 0x37bc35b5
+0, 21600, 38016, 0xcfa24923
+0, 25200, 38016, 0xac755ba0
+0, 28800, 38016, 0x27d1822a
+0, 32400, 38016, 0xa8039548
+0, 36000, 38016, 0x400ea1fb
+0, 39600, 38016, 0x7d2ca44a
+0, 43200, 38016, 0xd42dae4f
+0, 46800, 38016, 0x39ce9599
+0, 50400, 38016, 0x37498aa1
+0, 54000, 38016, 0x8558911f
+0, 57600, 38016, 0x06a8a9ad
diff --git a/tests/ref/fate/h264-conformance-canl3_sony_c b/tests/ref/fate/h264-conformance-canl3_sony_c
new file mode 100644
index 0000000000..4d7f0eb0a4
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-canl3_sony_c
@@ -0,0 +1,300 @@
+0, 0, 38016, 0xc805351d
+0, 3600, 38016, 0xa0b41fef
+0, 7200, 38016, 0x965cf070
+0, 10800, 38016, 0x4552af45
+0, 14400, 38016, 0x8429a576
+0, 18000, 38016, 0xf6df8fc0
+0, 21600, 38016, 0x5d85554c
+0, 25200, 38016, 0x9c9d5b96
+0, 28800, 38016, 0xbc4a4b71
+0, 32400, 38016, 0xae4d3fc8
+0, 36000, 38016, 0xf4da7f25
+0, 39600, 38016, 0xf7d89a46
+0, 43200, 38016, 0x204977fd
+0, 46800, 38016, 0xa505b626
+0, 50400, 38016, 0xc7b8b3f8
+0, 54000, 38016, 0x96929e05
+0, 57600, 38016, 0xfcfab8cc
+0, 61200, 38016, 0x750caf2d
+0, 64800, 38016, 0xa2c682ca
+0, 68400, 38016, 0x3dcd8f07
+0, 72000, 38016, 0x48fb69b3
+0, 75600, 38016, 0x128e3310
+0, 79200, 38016, 0x03803338
+0, 82800, 38016, 0x11362bda
+0, 86400, 38016, 0xc672229a
+0, 90000, 38016, 0x68e540d0
+0, 93600, 38016, 0x9d3a3deb
+0, 97200, 38016, 0x53b233af
+0, 100800, 38016, 0x3c6767eb
+0, 104400, 38016, 0x2a8d75f2
+0, 108000, 38016, 0x006f63cc
+0, 111600, 38016, 0x3652a79e
+0, 115200, 38016, 0x42f8c0fa
+0, 118800, 38016, 0x052eb292
+0, 122400, 38016, 0xbe7de0e7
+0, 126000, 38016, 0xf9f9d46f
+0, 129600, 38016, 0xb6d9b200
+0, 133200, 38016, 0xc3bcd2d2
+0, 136800, 38016, 0x23b5c8c2
+0, 140400, 38016, 0x67caaf99
+0, 144000, 38016, 0xb365cd31
+0, 147600, 38016, 0x7cabc68f
+0, 151200, 38016, 0xca8bb87a
+0, 154800, 38016, 0x66a4be22
+0, 158400, 38016, 0x2d10c1b0
+0, 162000, 38016, 0xd1548835
+0, 165600, 38016, 0x8b15b359
+0, 169200, 38016, 0x2337b654
+0, 172800, 38016, 0x56cfac2b
+0, 176400, 38016, 0x7ad4c642
+0, 180000, 38016, 0x6666c353
+0, 183600, 38016, 0x053fb0f2
+0, 187200, 38016, 0x2547c115
+0, 190800, 38016, 0xf202c045
+0, 194400, 38016, 0x94a8b95f
+0, 198000, 38016, 0x439ccb13
+0, 201600, 38016, 0xdfe4d54f
+0, 205200, 38016, 0x2a0aceae
+0, 208800, 38016, 0x1293dbd5
+0, 212400, 38016, 0x9a62d994
+0, 216000, 38016, 0x65539ad7
+0, 219600, 38016, 0xc415ad58
+0, 223200, 38016, 0x47bb9417
+0, 226800, 38016, 0x92b745ea
+0, 230400, 38016, 0x8fe8646e
+0, 234000, 38016, 0x2b94857a
+0, 237600, 38016, 0x12ac9aa4
+0, 241200, 38016, 0x856bf0ea
+0, 244800, 38016, 0xdbb32674
+0, 248400, 38016, 0x96b53747
+0, 252000, 38016, 0x875a7548
+0, 255600, 38016, 0xdba4985c
+0, 259200, 38016, 0x47cbb86c
+0, 262800, 38016, 0x32dcfb99
+0, 266400, 38016, 0x18b53b26
+0, 270000, 38016, 0x2f0f3e49
+0, 273600, 38016, 0x27b1880d
+0, 277200, 38016, 0xbcc19dac
+0, 280800, 38016, 0x7b6caeb1
+0, 284400, 38016, 0xf3eece06
+0, 288000, 38016, 0x7d93d4c9
+0, 291600, 38016, 0xe6b8d923
+0, 295200, 38016, 0xf47ce844
+0, 298800, 38016, 0x74fce21c
+0, 302400, 38016, 0x8e87d8cd
+0, 306000, 38016, 0x9675d3ce
+0, 309600, 38016, 0xd797ec75
+0, 313200, 38016, 0x70aeeef1
+0, 316800, 38016, 0x47baef32
+0, 320400, 38016, 0x5054ec56
+0, 324000, 38016, 0x43b6a0f7
+0, 327600, 38016, 0x95dfb688
+0, 331200, 38016, 0xc878a574
+0, 334800, 38016, 0xeb928019
+0, 338400, 38016, 0x304b7fec
+0, 342000, 38016, 0x02cd7ea4
+0, 345600, 38016, 0x505f7a7a
+0, 349200, 38016, 0x09f59eaf
+0, 352800, 38016, 0x513faaf7
+0, 356400, 38016, 0xbd0daaa8
+0, 360000, 38016, 0x8012be0f
+0, 363600, 38016, 0xb663aa15
+0, 367200, 38016, 0xd138981a
+0, 370800, 38016, 0xc16b98a2
+0, 374400, 38016, 0xf43eb8f8
+0, 378000, 38016, 0xea22a35b
+0, 381600, 38016, 0x9a0be0bb
+0, 385200, 38016, 0x2a77ff9d
+0, 388800, 38016, 0x2e350431
+0, 392400, 38016, 0x9d0335ba
+0, 396000, 38016, 0x62f23f21
+0, 399600, 38016, 0x3e973351
+0, 403200, 38016, 0x9d8f4ac5
+0, 406800, 38016, 0x91e132ba
+0, 410400, 38016, 0xfd04f69a
+0, 414000, 38016, 0x481a1778
+0, 417600, 38016, 0x27fa1dc4
+0, 421200, 38016, 0x23ae0a6a
+0, 424800, 38016, 0xc3ec426a
+0, 428400, 38016, 0xc2a54ac1
+0, 432000, 38016, 0xd88d3691
+0, 435600, 38016, 0x46014ba7
+0, 439200, 38016, 0xbf902815
+0, 442800, 38016, 0x2af5ee16
+0, 446400, 38016, 0xd183dc64
+0, 450000, 38016, 0xf0c5bdd8
+0, 453600, 38016, 0xb21aa102
+0, 457200, 38016, 0xb35bbec2
+0, 460800, 38016, 0x7efad1ce
+0, 464400, 38016, 0x04e3d71d
+0, 468000, 38016, 0x901ff71b
+0, 471600, 38016, 0xc6c6e640
+0, 475200, 38016, 0xd292d5d3
+0, 478800, 38016, 0x2ce4e3fe
+0, 482400, 38016, 0xe7fedf8a
+0, 486000, 38016, 0x20e5a1eb
+0, 489600, 38016, 0xbc39be76
+0, 493200, 38016, 0xf749b4dd
+0, 496800, 38016, 0xbc3f97a4
+0, 500400, 38016, 0xa058a244
+0, 504000, 38016, 0x77eb961b
+0, 507600, 38016, 0xa92e7f25
+0, 511200, 38016, 0xc75e796f
+0, 514800, 38016, 0x114c79bd
+0, 518400, 38016, 0x3fb96da3
+0, 522000, 38016, 0x1c6f87b8
+0, 525600, 38016, 0x25567ae4
+0, 529200, 38016, 0xf5dd42b2
+0, 532800, 38016, 0xe6172d0c
+0, 536400, 38016, 0xcec0fd48
+0, 540000, 38016, 0x0d27b12d
+0, 543600, 38016, 0x3ec7cd24
+0, 547200, 38016, 0xb2dccabe
+0, 550800, 38016, 0xa977a844
+0, 554400, 38016, 0x4b3bbfed
+0, 558000, 38016, 0xed6dd876
+0, 561600, 38016, 0x751bd34e
+0, 565200, 38016, 0x80160cf9
+0, 568800, 38016, 0xfbf53be8
+0, 572400, 38016, 0x726e4f3b
+0, 576000, 38016, 0x8ebb730c
+0, 579600, 38016, 0x2c0c5fe6
+0, 583200, 38016, 0x450940c0
+0, 586800, 38016, 0xeed63ff8
+0, 590400, 38016, 0x6f233d75
+0, 594000, 38016, 0x98d2f70e
+0, 597600, 38016, 0x8d38f2e8
+0, 601200, 38016, 0x905dcbc9
+0, 604800, 38016, 0x68c3a0f7
+0, 608400, 38016, 0x4bb8a40c
+0, 612000, 38016, 0x3650b08e
+0, 615600, 38016, 0x3c3bbfd7
+0, 619200, 38016, 0xcbc9da56
+0, 622800, 38016, 0x576de6cd
+0, 626400, 38016, 0x95f5c8c1
+0, 630000, 38016, 0xbbcaacc8
+0, 633600, 38016, 0x1b547ba4
+0, 637200, 38016, 0x8f5238b2
+0, 640800, 38016, 0x4c0f35c4
+0, 644400, 38016, 0x894f278d
+0, 648000, 38016, 0x3bb3ecd3
+0, 651600, 38016, 0x177bf317
+0, 655200, 38016, 0xdb1fdada
+0, 658800, 38016, 0xec27cc28
+0, 662400, 38016, 0x6a12eec7
+0, 666000, 38016, 0x0168ff3f
+0, 669600, 38016, 0x3fa206ba
+0, 673200, 38016, 0x47cc30b5
+0, 676800, 38016, 0xb2d02ddd
+0, 680400, 38016, 0x306626bb
+0, 684000, 38016, 0xfb06eb5b
+0, 687600, 38016, 0x5881b60e
+0, 691200, 38016, 0xd58caaf8
+0, 694800, 38016, 0x840bdd0c
+0, 698400, 38016, 0xb71efac1
+0, 702000, 38016, 0x25961ad1
+0, 705600, 38016, 0xbec156eb
+0, 709200, 38016, 0xe2d1695c
+0, 712800, 38016, 0x3fbe83d4
+0, 716400, 38016, 0x10d8afe2
+0, 720000, 38016, 0xa61fb9aa
+0, 723600, 38016, 0x0c20be29
+0, 727200, 38016, 0xc273cdd4
+0, 730800, 38016, 0xfb21cfa0
+0, 734400, 38016, 0xb1ccc643
+0, 738000, 38016, 0x30f5d7a2
+0, 741600, 38016, 0xe742da0f
+0, 745200, 38016, 0x0a08d6a3
+0, 748800, 38016, 0x85c4cf6c
+0, 752400, 38016, 0xc117b8f4
+0, 756000, 38016, 0x39305ec1
+0, 759600, 38016, 0xf2867b2d
+0, 763200, 38016, 0x81147a22
+0, 766800, 38016, 0x308b59c3
+0, 770400, 38016, 0xfd076bbd
+0, 774000, 38016, 0x11bf57f5
+0, 777600, 38016, 0x8c103fb7
+0, 781200, 38016, 0x4f5e5a48
+0, 784800, 38016, 0xa0fd54dc
+0, 788400, 38016, 0x69d7429b
+0, 792000, 38016, 0x93154a7c
+0, 795600, 38016, 0xc72e3995
+0, 799200, 38016, 0x86541ae0
+0, 802800, 38016, 0xa9c93120
+0, 806400, 38016, 0x602d368a
+0, 810000, 38016, 0x6fca13cb
+0, 813600, 38016, 0x314f3702
+0, 817200, 38016, 0x4d1647bd
+0, 820800, 38016, 0x73673c96
+0, 824400, 38016, 0x62897c6f
+0, 828000, 38016, 0x918e9a7d
+0, 831600, 38016, 0x9fb9ad4f
+0, 835200, 38016, 0xc4c30339
+0, 838800, 38016, 0x137017df
+0, 842400, 38016, 0xa98a1b61
+0, 846000, 38016, 0xf74c4b4f
+0, 849600, 38016, 0x3eac5cb1
+0, 853200, 38016, 0x5d403e50
+0, 856800, 38016, 0xa33a4eb6
+0, 860400, 38016, 0x3f0a13fb
+0, 864000, 38016, 0x8b11e5a8
+0, 867600, 38016, 0x536bca4b
+0, 871200, 38016, 0xe1daa789
+0, 874800, 38016, 0xab37f6d1
+0, 878400, 38016, 0xbefe6f58
+0, 882000, 38016, 0xa5fdd2ff
+0, 885600, 38016, 0x6065ec01
+0, 889200, 38016, 0x939dd93a
+0, 892800, 38016, 0x3a7593d5
+0, 896400, 38016, 0x30fe19fe
+0, 900000, 38016, 0xb507c21c
+0, 903600, 38016, 0xf47f73ac
+0, 907200, 38016, 0xe9fc669a
+0, 910800, 38016, 0x2b85d19a
+0, 914400, 38016, 0x57033999
+0, 918000, 38016, 0x0e5eca3b
+0, 921600, 38016, 0x6a7bda2c
+0, 925200, 38016, 0x3517638d
+0, 928800, 38016, 0x1f5432e3
+0, 932400, 38016, 0x584d4c96
+0, 936000, 38016, 0x92474c0c
+0, 939600, 38016, 0x8c5e44a5
+0, 943200, 38016, 0x07dd64d4
+0, 946800, 38016, 0x828d632b
+0, 950400, 38016, 0x142254b6
+0, 954000, 38016, 0x8f9b60a4
+0, 957600, 38016, 0x44f745dd
+0, 961200, 38016, 0xc3321666
+0, 964800, 38016, 0x95520396
+0, 968400, 38016, 0x3eb3de27
+0, 972000, 38016, 0x0ce3a7ca
+0, 975600, 38016, 0x58258838
+0, 979200, 38016, 0x5725627a
+0, 982800, 38016, 0x901907ab
+0, 986400, 38016, 0xf965da2f
+0, 990000, 38016, 0xf542bae9
+0, 993600, 38016, 0x3dc4b3c3
+0, 997200, 38016, 0x8a1dd1e9
+0, 1000800, 38016, 0x4f6ef803
+0, 1004400, 38016, 0xde384800
+0, 1008000, 38016, 0x7251116f
+0, 1011600, 38016, 0x89f9e1ca
+0, 1015200, 38016, 0xc9818624
+0, 1018800, 38016, 0x30e391a6
+0, 1022400, 38016, 0x7aab6887
+0, 1026000, 38016, 0x0a34a67f
+0, 1029600, 38016, 0xe1258086
+0, 1033200, 38016, 0x5b16a887
+0, 1036800, 38016, 0x3297a135
+0, 1040400, 38016, 0x45a77236
+0, 1044000, 38016, 0xa414013a
+0, 1047600, 38016, 0xfab52c7e
+0, 1051200, 38016, 0x9074aca1
+0, 1054800, 38016, 0x843ad8a6
+0, 1058400, 38016, 0xccc63573
+0, 1062000, 38016, 0x3ba52a5f
+0, 1065600, 38016, 0x2f7b0236
+0, 1069200, 38016, 0x0ad407ec
+0, 1072800, 38016, 0x42082369
+0, 1076400, 38016, 0x5a9d3f63
diff --git a/tests/ref/fate/h264-conformance-canl3_sva_b b/tests/ref/fate/h264-conformance-canl3_sva_b
new file mode 100644
index 0000000000..1c575c8367
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-canl3_sva_b
@@ -0,0 +1,17 @@
+0, 0, 38016, 0x0bd22424
+0, 3600, 38016, 0xc45d1947
+0, 7200, 38016, 0x9d3d1218
+0, 10800, 38016, 0x79b71e03
+0, 14400, 38016, 0xd11e4a14
+0, 18000, 38016, 0x44c66b22
+0, 21600, 38016, 0xb9cc7acf
+0, 25200, 38016, 0x8ccd92a1
+0, 28800, 38016, 0x4a76aec4
+0, 32400, 38016, 0x6e2fc27e
+0, 36000, 38016, 0x400ea1fb
+0, 39600, 38016, 0xd1e2b7c4
+0, 43200, 38016, 0xb45eb08d
+0, 46800, 38016, 0x15079991
+0, 50400, 38016, 0x0fc97188
+0, 54000, 38016, 0xf9fc81af
+0, 57600, 38016, 0x020f992d
diff --git a/tests/ref/fate/h264-conformance-canl4_sva_b b/tests/ref/fate/h264-conformance-canl4_sva_b
new file mode 100644
index 0000000000..65555fac9f
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-canl4_sva_b
@@ -0,0 +1,33 @@
+0, 0, 38016, 0x5d9514e3
+0, 3600, 38016, 0xf5e8155c
+0, 7200, 38016, 0xc0a5f88b
+0, 10800, 38016, 0x421d2610
+0, 14400, 38016, 0x971838af
+0, 18000, 38016, 0xbd645dfc
+0, 21600, 38016, 0xaab5626a
+0, 25200, 38016, 0xc8fc9b6b
+0, 28800, 38016, 0x8be593f4
+0, 32400, 38016, 0x6560c0f4
+0, 36000, 38016, 0x29009b56
+0, 39600, 38016, 0x20b4bd2a
+0, 43200, 38016, 0xe8a7a51e
+0, 46800, 38016, 0x8c5e906a
+0, 50400, 38016, 0x15496f1e
+0, 54000, 38016, 0xdc788399
+0, 57600, 38016, 0x2b1e89b2
+0, 61200, 38016, 0xe9fda9bd
+0, 64800, 38016, 0x7c319f69
+0, 68400, 38016, 0x2921cbc4
+0, 72000, 38016, 0xb4fab1e2
+0, 75600, 38016, 0x6af6ba57
+0, 79200, 38016, 0xb36e7df5
+0, 82800, 38016, 0x57517aec
+0, 86400, 38016, 0x9f5f331a
+0, 90000, 38016, 0xafde3f8a
+0, 93600, 38016, 0x97f32b54
+0, 97200, 38016, 0x0c194bf7
+0, 100800, 38016, 0x58a054c2
+0, 104400, 38016, 0x6a637e5f
+0, 108000, 38016, 0x8b2d63d0
+0, 111600, 38016, 0x521772c5
+0, 115200, 38016, 0xae555677
diff --git a/tests/ref/fate/h264-conformance-canlma2_sony_c b/tests/ref/fate/h264-conformance-canlma2_sony_c
new file mode 100644
index 0000000000..5eff64e541
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-canlma2_sony_c
@@ -0,0 +1,17 @@
+0, 0, 518400, 0xfbca00c6
+0, 3600, 518400, 0x82b80adf
+0, 7200, 518400, 0x87ecdf4a
+0, 10800, 518400, 0xf6ca8cbe
+0, 14400, 518400, 0x8e9bb8a0
+0, 18000, 518400, 0x6512caa2
+0, 21600, 518400, 0xc015e43e
+0, 25200, 518400, 0x5f504a5c
+0, 28800, 518400, 0x4c7458a4
+0, 32400, 518400, 0x630f4004
+0, 36000, 518400, 0x889af20e
+0, 39600, 518400, 0x4437a5a4
+0, 43200, 518400, 0x1e19a254
+0, 46800, 518400, 0xb7ef1763
+0, 50400, 518400, 0xc966c95a
+0, 54000, 518400, 0x0c9074d6
+0, 57600, 518400, 0x24c906c9
diff --git a/tests/ref/fate/h264-conformance-canlma3_sony_c b/tests/ref/fate/h264-conformance-canlma3_sony_c
new file mode 100644
index 0000000000..9ee15dddf3
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-canlma3_sony_c
@@ -0,0 +1,17 @@
+0, 0, 518400, 0xfbca00c6
+0, 3600, 518400, 0x82b80adf
+0, 7200, 518400, 0x4874c24c
+0, 10800, 518400, 0xdb19528a
+0, 14400, 518400, 0x27888656
+0, 18000, 518400, 0x5e7aa98f
+0, 21600, 518400, 0xb43ecd8b
+0, 25200, 518400, 0xef772cbd
+0, 28800, 518400, 0x4f1e1d7e
+0, 32400, 518400, 0x0e9fe921
+0, 36000, 518400, 0xe4dab3d2
+0, 39600, 518400, 0x9279587b
+0, 43200, 518400, 0xa8248296
+0, 46800, 518400, 0x7be6c0d6
+0, 50400, 518400, 0x85ea92b1
+0, 54000, 518400, 0x0c9074d6
+0, 57600, 518400, 0x5c95bf41
diff --git a/tests/ref/fate/h264-conformance-capa1_toshiba_b b/tests/ref/fate/h264-conformance-capa1_toshiba_b
new file mode 100644
index 0000000000..9f1d91f8a3
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-capa1_toshiba_b
@@ -0,0 +1,90 @@
+0, 0, 152064, 0x4040d2fc
+0, 3600, 152064, 0x0d8f9897
+0, 7200, 152064, 0xc23321cd
+0, 10800, 152064, 0x3c9225eb
+0, 14400, 152064, 0x8927006f
+0, 18000, 152064, 0xf706a302
+0, 21600, 152064, 0x8219c106
+0, 25200, 152064, 0x06c990ea
+0, 28800, 152064, 0x3a0f1135
+0, 32400, 152064, 0x4cff21d3
+0, 36000, 152064, 0x6be0e050
+0, 39600, 152064, 0x718b6c7b
+0, 43200, 152064, 0x24b38713
+0, 46800, 152064, 0x500553fb
+0, 50400, 152064, 0x531ae610
+0, 54000, 152064, 0x46f4ff1b
+0, 57600, 152064, 0xe5abe5ff
+0, 61200, 152064, 0x97daa351
+0, 64800, 152064, 0xfbef0a8f
+0, 68400, 152064, 0xbe76134f
+0, 72000, 152064, 0xa4bf10ea
+0, 75600, 152064, 0xb2fb32af
+0, 79200, 152064, 0xd33027a5
+0, 82800, 152064, 0x78e20c2b
+0, 86400, 152064, 0xefda2d6f
+0, 90000, 152064, 0xb99126f0
+0, 93600, 152064, 0x89d7e465
+0, 97200, 152064, 0x6150ff97
+0, 100800, 152064, 0xde03d937
+0, 104400, 152064, 0xd90ca874
+0, 108000, 152064, 0xb120b294
+0, 111600, 152064, 0x644eade4
+0, 115200, 152064, 0xd1bb004f
+0, 118800, 152064, 0x99806a8b
+0, 122400, 152064, 0x8c6b635f
+0, 126000, 152064, 0xa269fa8b
+0, 129600, 152064, 0xc11c0e64
+0, 133200, 152064, 0xac13f5eb
+0, 136800, 152064, 0x895799cf
+0, 140400, 152064, 0x95a9bea1
+0, 144000, 152064, 0xe998dfba
+0, 147600, 152064, 0xc72d8460
+0, 151200, 152064, 0xd1cb9b9a
+0, 154800, 152064, 0xb49aadd3
+0, 158400, 152064, 0x8bc38547
+0, 162000, 152064, 0x3485984b
+0, 165600, 152064, 0xdf305c0a
+0, 169200, 152064, 0x6a1ec990
+0, 172800, 152064, 0x595e0de4
+0, 176400, 152064, 0xe1baf7c4
+0, 180000, 152064, 0xf08b9b47
+0, 183600, 152064, 0x6532ba6f
+0, 187200, 152064, 0x3de67da6
+0, 190800, 152064, 0x439ffd04
+0, 194400, 152064, 0x6e6c1e97
+0, 198000, 152064, 0x8e5aee7a
+0, 201600, 152064, 0xd634999a
+0, 205200, 152064, 0xadfa9e8b
+0, 208800, 152064, 0x1b9090f5
+0, 212400, 152064, 0x29094dfc
+0, 216000, 152064, 0x56748851
+0, 219600, 152064, 0x2316719d
+0, 223200, 152064, 0x2ee0060b
+0, 226800, 152064, 0x3edb36d4
+0, 230400, 152064, 0x9ef437a3
+0, 234000, 152064, 0x8d9af72e
+0, 237600, 152064, 0xab86389c
+0, 241200, 152064, 0xd3b34576
+0, 244800, 152064, 0x9e5b04f4
+0, 248400, 152064, 0x6a164c17
+0, 252000, 152064, 0xcecf20ab
+0, 255600, 152064, 0x07c8e273
+0, 259200, 152064, 0x9b46fe6a
+0, 262800, 152064, 0xc1e8002b
+0, 266400, 152064, 0xdebdbe53
+0, 270000, 152064, 0x0d2dfd99
+0, 273600, 152064, 0xe8ae925f
+0, 277200, 152064, 0xe1fe6272
+0, 280800, 152064, 0xbb74d5e6
+0, 284400, 152064, 0xc7b5d949
+0, 288000, 152064, 0x9b15b020
+0, 291600, 152064, 0xc8201f44
+0, 295200, 152064, 0x30d03303
+0, 298800, 152064, 0x9f66fbc2
+0, 302400, 152064, 0x482b71ec
+0, 306000, 152064, 0x1c9e50bf
+0, 309600, 152064, 0x89f247e4
+0, 313200, 152064, 0xaa5f9141
+0, 316800, 152064, 0xb816aa8c
+0, 320400, 152064, 0x3112a619
diff --git a/tests/ref/fate/h264-conformance-capama3_sand_f b/tests/ref/fate/h264-conformance-capama3_sand_f
new file mode 100644
index 0000000000..5fb9756d61
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-capama3_sand_f
@@ -0,0 +1,50 @@
+0, 0, 152064, 0xf772f152
+0, 3600, 152064, 0xc416d300
+0, 7200, 152064, 0xc2275c94
+0, 10800, 152064, 0x1bd35645
+0, 14400, 152064, 0x60327bf5
+0, 18000, 152064, 0x7f5541bd
+0, 21600, 152064, 0x52e5ebad
+0, 25200, 152064, 0xb8e5c1f3
+0, 28800, 152064, 0x2b4e3653
+0, 32400, 152064, 0x9a8f8499
+0, 36000, 152064, 0x32d4e9fb
+0, 39600, 152064, 0x0bc73d7a
+0, 43200, 152064, 0xb58a8b87
+0, 46800, 152064, 0xddbc5468
+0, 50400, 152064, 0xcfa30b64
+0, 54000, 152064, 0xad411f36
+0, 57600, 152064, 0x2f8c4d9b
+0, 61200, 152064, 0xc8523359
+0, 64800, 152064, 0x86be9861
+0, 68400, 152064, 0x7518d731
+0, 72000, 152064, 0x425fbfab
+0, 75600, 152064, 0x4f00250d
+0, 79200, 152064, 0x12b40617
+0, 82800, 152064, 0x65ff925d
+0, 86400, 152064, 0xc76a94c9
+0, 90000, 152064, 0x640170d5
+0, 93600, 152064, 0xd338a090
+0, 97200, 152064, 0xce715174
+0, 100800, 152064, 0x7bded195
+0, 104400, 152064, 0x09e7d3b9
+0, 108000, 152064, 0x651e1518
+0, 111600, 152064, 0x03cadc5f
+0, 115200, 152064, 0x08906919
+0, 118800, 152064, 0x3303ebe0
+0, 122400, 152064, 0xa28676c5
+0, 126000, 152064, 0x3900ecaf
+0, 129600, 152064, 0xeb795a05
+0, 133200, 152064, 0x870034df
+0, 136800, 152064, 0x69b0527a
+0, 140400, 152064, 0xb2b314f9
+0, 144000, 152064, 0x1a44ea1a
+0, 147600, 152064, 0xe6eaec87
+0, 151200, 152064, 0xd9ad818e
+0, 154800, 152064, 0x9c7ff76e
+0, 158400, 152064, 0x74c45abb
+0, 162000, 152064, 0x2f4fa5c6
+0, 165600, 152064, 0x19620702
+0, 169200, 152064, 0xfc9601f3
+0, 172800, 152064, 0x33e0d8e7
+0, 176400, 152064, 0xdf7f2a80
diff --git a/tests/ref/fate/h264-conformance-capcm1_sand_e b/tests/ref/fate/h264-conformance-capcm1_sand_e
new file mode 100644
index 0000000000..3a90eaf38c
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-capcm1_sand_e
@@ -0,0 +1,30 @@
+0, 0, 152064, 0x9989b588
+0, 3600, 152064, 0x7cbf85d4
+0, 7200, 152064, 0x72615cf1
+0, 10800, 152064, 0xcf98053c
+0, 14400, 152064, 0x42daddb0
+0, 18000, 152064, 0x460ca616
+0, 21600, 152064, 0x54cc5ab1
+0, 25200, 152064, 0xd146396e
+0, 28800, 152064, 0xefbbffc3
+0, 32400, 152064, 0x41ecd870
+0, 36000, 152064, 0x57bba322
+0, 39600, 152064, 0x7e7270f8
+0, 43200, 152064, 0x1f5d1f0e
+0, 46800, 152064, 0x5478eb60
+0, 50400, 152064, 0xd9abb62a
+0, 54000, 152064, 0x97997f6d
+0, 57600, 152064, 0xfc405569
+0, 61200, 152064, 0x4e49329b
+0, 64800, 152064, 0x6b98f9c6
+0, 68400, 152064, 0xa872cf59
+0, 72000, 152064, 0x478a897d
+0, 75600, 152064, 0xf6744e5d
+0, 79200, 152064, 0x7ddf110d
+0, 82800, 152064, 0xe6bde4be
+0, 86400, 152064, 0x5c3ba029
+0, 90000, 152064, 0x07759146
+0, 93600, 152064, 0x4beb510f
+0, 97200, 152064, 0x5b063ad9
+0, 100800, 152064, 0xc2930366
+0, 104400, 152064, 0x5435e658
diff --git a/tests/ref/fate/h264-conformance-capcmnl1_sand_e b/tests/ref/fate/h264-conformance-capcmnl1_sand_e
new file mode 100644
index 0000000000..02f6a902ee
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-capcmnl1_sand_e
@@ -0,0 +1,30 @@
+0, 0, 152064, 0xf973b384
+0, 3600, 152064, 0x84418532
+0, 7200, 152064, 0x63165bc0
+0, 10800, 152064, 0x54b5049d
+0, 14400, 152064, 0xde66dbbc
+0, 18000, 152064, 0x8001a4f5
+0, 21600, 152064, 0x6b5259b7
+0, 25200, 152064, 0xd15137a1
+0, 28800, 152064, 0x1d19fdb9
+0, 32400, 152064, 0x3533d5a1
+0, 36000, 152064, 0xf82ba039
+0, 39600, 152064, 0x04366ee9
+0, 43200, 152064, 0xf7ac1dfb
+0, 46800, 152064, 0x6d0aebd7
+0, 50400, 152064, 0x4f2bb62d
+0, 54000, 152064, 0x6a7a7d50
+0, 57600, 152064, 0xc9c95422
+0, 61200, 152064, 0x35a13150
+0, 64800, 152064, 0xb576f7e4
+0, 68400, 152064, 0x5ad3cde5
+0, 72000, 152064, 0xbcb18908
+0, 75600, 152064, 0xa2a24ca7
+0, 79200, 152064, 0x95700ea5
+0, 82800, 152064, 0xfdb5e316
+0, 86400, 152064, 0x56e3a003
+0, 90000, 152064, 0x09ae905c
+0, 93600, 152064, 0xa1175024
+0, 97200, 152064, 0x8b82395e
+0, 100800, 152064, 0x032202da
+0, 104400, 152064, 0xae15e5e7
diff --git a/tests/ref/fate/h264-conformance-capm3_sony_d b/tests/ref/fate/h264-conformance-capm3_sony_d
new file mode 100644
index 0000000000..4080b65fa4
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-capm3_sony_d
@@ -0,0 +1,300 @@
+0, 0, 38016, 0xa3b72d2f
+0, 3600, 38016, 0x77d918ae
+0, 7200, 38016, 0x181ad684
+0, 10800, 38016, 0x0dafa49c
+0, 14400, 38016, 0x8250a733
+0, 18000, 38016, 0x5d4f79b5
+0, 21600, 38016, 0x59664665
+0, 25200, 38016, 0xdce3491c
+0, 28800, 38016, 0xaffc395f
+0, 32400, 38016, 0xfb09320d
+0, 36000, 38016, 0x9b776724
+0, 39600, 38016, 0x30497da7
+0, 43200, 38016, 0xffd16ea0
+0, 46800, 38016, 0x5b7da1b5
+0, 50400, 38016, 0x764a9cc4
+0, 54000, 38016, 0xc4c79c41
+0, 57600, 38016, 0x883299dd
+0, 61200, 38016, 0xd5f39350
+0, 64800, 38016, 0x892f6808
+0, 68400, 38016, 0x5b0572d7
+0, 72000, 38016, 0x53c84a0c
+0, 75600, 38016, 0xe6ff14e2
+0, 79200, 38016, 0xd66d1924
+0, 82800, 38016, 0x7bec105f
+0, 86400, 38016, 0x405ffc8d
+0, 90000, 38016, 0xfccc2019
+0, 93600, 38016, 0x639f25a2
+0, 97200, 38016, 0xf89e179b
+0, 100800, 38016, 0x3e49456e
+0, 104400, 38016, 0x8d7d5d8e
+0, 108000, 38016, 0x89d15f1e
+0, 111600, 38016, 0x413d8c6a
+0, 115200, 38016, 0xf1a0a555
+0, 118800, 38016, 0x61249a1f
+0, 122400, 38016, 0xbd91c000
+0, 126000, 38016, 0x3209c225
+0, 129600, 38016, 0xfebca72f
+0, 133200, 38016, 0x839abdfd
+0, 136800, 38016, 0xa47cbc00
+0, 140400, 38016, 0x4537a269
+0, 144000, 38016, 0xbf19c0b2
+0, 147600, 38016, 0x7487c290
+0, 151200, 38016, 0xfbf8ab0c
+0, 154800, 38016, 0xce2ab41e
+0, 158400, 38016, 0xb505acf2
+0, 162000, 38016, 0x758489bc
+0, 165600, 38016, 0x7eae9aca
+0, 169200, 38016, 0x67b59692
+0, 172800, 38016, 0x074d9354
+0, 176400, 38016, 0xb6f6ae8a
+0, 180000, 38016, 0xe3b9a825
+0, 183600, 38016, 0x5f4e9cb2
+0, 187200, 38016, 0x88b3abcd
+0, 190800, 38016, 0x0cd7acdb
+0, 194400, 38016, 0xa731a3e4
+0, 198000, 38016, 0x9414c055
+0, 201600, 38016, 0x6cfec34a
+0, 205200, 38016, 0x6c89bce0
+0, 208800, 38016, 0xdabdc781
+0, 212400, 38016, 0x1afcc587
+0, 216000, 38016, 0xb4e79851
+0, 219600, 38016, 0x383ca78a
+0, 223200, 38016, 0x461f83fb
+0, 226800, 38016, 0x55f039e3
+0, 230400, 38016, 0xb6ec5d3f
+0, 234000, 38016, 0x645888af
+0, 237600, 38016, 0x37bc9e52
+0, 241200, 38016, 0x12a4f603
+0, 244800, 38016, 0x63e92df7
+0, 248400, 38016, 0x1a0246e3
+0, 252000, 38016, 0x1a6282fe
+0, 255600, 38016, 0x4e99a785
+0, 259200, 38016, 0xdaefbf23
+0, 262800, 38016, 0x9e8f00f1
+0, 266400, 38016, 0x85ea26c5
+0, 270000, 38016, 0x495e2ddb
+0, 273600, 38016, 0xab6278a4
+0, 277200, 38016, 0x48a78708
+0, 280800, 38016, 0x6fe99535
+0, 284400, 38016, 0xc3d9b8eb
+0, 288000, 38016, 0x4491c577
+0, 291600, 38016, 0x4d42cc30
+0, 295200, 38016, 0x3469d8bd
+0, 298800, 38016, 0x563dd0ad
+0, 302400, 38016, 0x681dbdef
+0, 306000, 38016, 0x5da9d2a7
+0, 309600, 38016, 0x75abdf2e
+0, 313200, 38016, 0x9bf0d13a
+0, 316800, 38016, 0x3c24dd7c
+0, 320400, 38016, 0x5132df96
+0, 324000, 38016, 0x01bd9d86
+0, 327600, 38016, 0x2b97bdfe
+0, 331200, 38016, 0xa7fdb2f1
+0, 334800, 38016, 0xcf908cfd
+0, 338400, 38016, 0xd18e7e52
+0, 342000, 38016, 0x6a1d78d3
+0, 345600, 38016, 0xd9cc83af
+0, 349200, 38016, 0xf6329ca1
+0, 352800, 38016, 0x1976aaeb
+0, 356400, 38016, 0xa3e8a3ce
+0, 360000, 38016, 0x73a2bd65
+0, 363600, 38016, 0xfd00a552
+0, 367200, 38016, 0x2df18642
+0, 370800, 38016, 0x85ad82fb
+0, 374400, 38016, 0x0456a864
+0, 378000, 38016, 0x0d6da3b6
+0, 381600, 38016, 0xabf0de94
+0, 385200, 38016, 0x68aef77e
+0, 388800, 38016, 0xd6aefd84
+0, 392400, 38016, 0x01953184
+0, 396000, 38016, 0xff324067
+0, 399600, 38016, 0x49aa300f
+0, 403200, 38016, 0xc146456b
+0, 406800, 38016, 0xfe5c2980
+0, 410400, 38016, 0x8f4df7eb
+0, 414000, 38016, 0x137c1373
+0, 417600, 38016, 0xfb9d1006
+0, 421200, 38016, 0x7f5409f9
+0, 424800, 38016, 0xa6ff29fc
+0, 428400, 38016, 0xc63e3807
+0, 432000, 38016, 0xd77c313a
+0, 435600, 38016, 0xdd3832dd
+0, 439200, 38016, 0xe70d140c
+0, 442800, 38016, 0xa559d731
+0, 446400, 38016, 0x3593d345
+0, 450000, 38016, 0x7497ad8a
+0, 453600, 38016, 0x9906919f
+0, 457200, 38016, 0x18bfb034
+0, 460800, 38016, 0xa4fbbd76
+0, 464400, 38016, 0xbd6cc31c
+0, 468000, 38016, 0x6ddde005
+0, 471600, 38016, 0x0072dd5f
+0, 475200, 38016, 0x62c5c5c0
+0, 478800, 38016, 0x1093cf81
+0, 482400, 38016, 0x46dbc9ff
+0, 486000, 38016, 0x0269a169
+0, 489600, 38016, 0xc96daa27
+0, 493200, 38016, 0xa0319cf4
+0, 496800, 38016, 0x1cae87fd
+0, 500400, 38016, 0xf1a0977f
+0, 504000, 38016, 0xc4d48a56
+0, 507600, 38016, 0xd3b1704c
+0, 511200, 38016, 0xd5e46a6c
+0, 514800, 38016, 0xb73e68fb
+0, 518400, 38016, 0xc0585fcf
+0, 522000, 38016, 0x1b3978fe
+0, 525600, 38016, 0xdda66c02
+0, 529200, 38016, 0x581033d6
+0, 532800, 38016, 0x0737185f
+0, 536400, 38016, 0xa0c9f494
+0, 540000, 38016, 0x916eae22
+0, 543600, 38016, 0xfdf7d6cd
+0, 547200, 38016, 0x6978ce4c
+0, 550800, 38016, 0x6783b016
+0, 554400, 38016, 0x528ac304
+0, 558000, 38016, 0x245de0ae
+0, 561600, 38016, 0x1dade956
+0, 565200, 38016, 0xa8f316da
+0, 568800, 38016, 0x95f04ca6
+0, 572400, 38016, 0x76615822
+0, 576000, 38016, 0x21de6ff4
+0, 579600, 38016, 0x12be5e8b
+0, 583200, 38016, 0x47ea3cbd
+0, 586800, 38016, 0x113631b5
+0, 590400, 38016, 0x546b2789
+0, 594000, 38016, 0x0505f2bb
+0, 597600, 38016, 0x90eee299
+0, 601200, 38016, 0x305cb341
+0, 604800, 38016, 0x5921841b
+0, 608400, 38016, 0x1449922d
+0, 612000, 38016, 0xca8f9f0a
+0, 615600, 38016, 0x0daeab19
+0, 619200, 38016, 0xde20dc27
+0, 622800, 38016, 0xb6ffd92c
+0, 626400, 38016, 0xedb1bc49
+0, 630000, 38016, 0x4ccf9ff5
+0, 633600, 38016, 0xfb636cd5
+0, 637200, 38016, 0x9c562c3d
+0, 640800, 38016, 0x0b021c95
+0, 644400, 38016, 0x8da50f21
+0, 648000, 38016, 0xa043ec8c
+0, 651600, 38016, 0x0143f4f2
+0, 655200, 38016, 0x77bece5b
+0, 658800, 38016, 0x147ccc68
+0, 662400, 38016, 0xa90cf948
+0, 666000, 38016, 0x8764066e
+0, 669600, 38016, 0x26c61821
+0, 673200, 38016, 0x39dd3be4
+0, 676800, 38016, 0xe2203c69
+0, 680400, 38016, 0x00e73014
+0, 684000, 38016, 0x0024f9eb
+0, 687600, 38016, 0x3a0da880
+0, 691200, 38016, 0x0336a353
+0, 694800, 38016, 0x721ed897
+0, 698400, 38016, 0x1c51f53f
+0, 702000, 38016, 0xeec91a00
+0, 705600, 38016, 0x73074864
+0, 709200, 38016, 0x672e5ff8
+0, 712800, 38016, 0xe7ea7aba
+0, 716400, 38016, 0x11899f08
+0, 720000, 38016, 0xa98daf03
+0, 723600, 38016, 0x4553af5c
+0, 727200, 38016, 0x4892c5d5
+0, 730800, 38016, 0x0ddbc2eb
+0, 734400, 38016, 0x0ce5b867
+0, 738000, 38016, 0xb0e6ce2c
+0, 741600, 38016, 0x8a2bd4da
+0, 745200, 38016, 0xf9f4cbec
+0, 748800, 38016, 0x77aeba8f
+0, 752400, 38016, 0xc1839e46
+0, 756000, 38016, 0x34845d3a
+0, 759600, 38016, 0xc3227ad7
+0, 763200, 38016, 0x2dad7051
+0, 766800, 38016, 0x7145565a
+0, 770400, 38016, 0x1e056ef1
+0, 774000, 38016, 0x9baa5195
+0, 777600, 38016, 0xacb53a1a
+0, 781200, 38016, 0x825d4fb7
+0, 784800, 38016, 0x63194b14
+0, 788400, 38016, 0xcb16360e
+0, 792000, 38016, 0x35104320
+0, 795600, 38016, 0x7e4c33dc
+0, 799200, 38016, 0x84811693
+0, 802800, 38016, 0x242b1811
+0, 806400, 38016, 0xb4af2667
+0, 810000, 38016, 0x77a20da2
+0, 813600, 38016, 0x8e4f36a8
+0, 817200, 38016, 0xe72435cb
+0, 820800, 38016, 0xf38a381b
+0, 824400, 38016, 0xb2b876d6
+0, 828000, 38016, 0x1c359b35
+0, 831600, 38016, 0x4fb8b180
+0, 835200, 38016, 0x90fdf94b
+0, 838800, 38016, 0xb8680c40
+0, 842400, 38016, 0x99331edd
+0, 846000, 38016, 0xd8e3433d
+0, 849600, 38016, 0x6d4d5aa2
+0, 853200, 38016, 0x4c3545c4
+0, 856800, 38016, 0x25b8376f
+0, 860400, 38016, 0xc4fe09df
+0, 864000, 38016, 0x6a9fe4f8
+0, 867600, 38016, 0x8fd2c2f3
+0, 871200, 38016, 0x78199f41
+0, 874800, 38016, 0x27b6e9f0
+0, 878400, 38016, 0xd8316400
+0, 882000, 38016, 0x0a70cd14
+0, 885600, 38016, 0x2075e91c
+0, 889200, 38016, 0xcd3cd7cb
+0, 892800, 38016, 0x4edc8cf5
+0, 896400, 38016, 0xf02e0bc7
+0, 900000, 38016, 0xcdd1b487
+0, 903600, 38016, 0xea5f6c8f
+0, 907200, 38016, 0x6b635e22
+0, 910800, 38016, 0xd548c435
+0, 914400, 38016, 0x455826ee
+0, 918000, 38016, 0x120ac7ed
+0, 921600, 38016, 0xf86adc5a
+0, 925200, 38016, 0x8dbd5c4e
+0, 928800, 38016, 0xe4c62dae
+0, 932400, 38016, 0x0a2a3be7
+0, 936000, 38016, 0xf8a243d7
+0, 939600, 38016, 0x898a3afb
+0, 943200, 38016, 0x39e661bb
+0, 946800, 38016, 0xe4e65f22
+0, 950400, 38016, 0x014846ff
+0, 954000, 38016, 0xf392509c
+0, 957600, 38016, 0x34623207
+0, 961200, 38016, 0xac4a09ed
+0, 964800, 38016, 0x9d18eb07
+0, 968400, 38016, 0x4594c90e
+0, 972000, 38016, 0x624f9b6b
+0, 975600, 38016, 0x8adc89d3
+0, 979200, 38016, 0xf4dd64f6
+0, 982800, 38016, 0x4c121386
+0, 986400, 38016, 0xfb5ddc7e
+0, 990000, 38016, 0x837fc31e
+0, 993600, 38016, 0xa4f4bd31
+0, 997200, 38016, 0x0445def7
+0, 1000800, 38016, 0xbac0fe62
+0, 1004400, 38016, 0x050b5778
+0, 1008000, 38016, 0x3d0723e5
+0, 1011600, 38016, 0x9967eae7
+0, 1015200, 38016, 0xf4be9ec7
+0, 1018800, 38016, 0x870377d2
+0, 1022400, 38016, 0x5c9d648a
+0, 1026000, 38016, 0x2d41a44b
+0, 1029600, 38016, 0xa50e7c6f
+0, 1033200, 38016, 0x2bd1b477
+0, 1036800, 38016, 0xd123ae8d
+0, 1040400, 38016, 0xf2fc7a6b
+0, 1044000, 38016, 0xaa3ee416
+0, 1047600, 38016, 0x5f8801d6
+0, 1051200, 38016, 0xbee7924a
+0, 1054800, 38016, 0x6e47c3e1
+0, 1058400, 38016, 0xf34f1223
+0, 1062000, 38016, 0x7a610876
+0, 1065600, 38016, 0x15e9e47f
+0, 1069200, 38016, 0x557ddcf1
+0, 1072800, 38016, 0xf0cd02e2
+0, 1076400, 38016, 0xe98f1deb
diff --git a/tests/ref/fate/h264-conformance-caqp1_sony_b b/tests/ref/fate/h264-conformance-caqp1_sony_b
new file mode 100644
index 0000000000..fe023eb41e
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-caqp1_sony_b
@@ -0,0 +1,50 @@
+0, 0, 38016, 0x25f92b0e
+0, 3600, 38016, 0x2ecbe752
+0, 7200, 38016, 0x3432e744
+0, 10800, 38016, 0x7970aa2e
+0, 14400, 38016, 0x250787bf
+0, 18000, 38016, 0xd58e5e56
+0, 21600, 38016, 0xf4b8580f
+0, 25200, 38016, 0x9acb4096
+0, 28800, 38016, 0xeed0476f
+0, 32400, 38016, 0xe33846ef
+0, 36000, 38016, 0x02da4e76
+0, 39600, 38016, 0xd3e572f8
+0, 43200, 38016, 0x5fd27f8a
+0, 46800, 38016, 0xfa169823
+0, 50400, 38016, 0xcc6b8d76
+0, 54000, 38016, 0xcc4da11f
+0, 57600, 38016, 0x32259b9d
+0, 61200, 38016, 0xf1e39b70
+0, 64800, 38016, 0xb49d7480
+0, 68400, 38016, 0x3dc158e9
+0, 72000, 38016, 0x4ce134db
+0, 75600, 38016, 0x4fb30b43
+0, 79200, 38016, 0xda49fe5f
+0, 82800, 38016, 0x7fda0d68
+0, 86400, 38016, 0x3a8b25e3
+0, 90000, 38016, 0x3df11d4e
+0, 93600, 38016, 0x26e11107
+0, 97200, 38016, 0xdc3b03a7
+0, 100800, 38016, 0x72b2434d
+0, 104400, 38016, 0x2a013e27
+0, 108000, 38016, 0xf95a4c2e
+0, 111600, 38016, 0x1e7b6656
+0, 115200, 38016, 0x776a81c8
+0, 118800, 38016, 0x162cb0bf
+0, 122400, 38016, 0x7ff4aaf5
+0, 126000, 38016, 0x7150b50b
+0, 129600, 38016, 0xf7d0b889
+0, 133200, 38016, 0xbe09b5c2
+0, 136800, 38016, 0xf6f7d29c
+0, 140400, 38016, 0x4356b996
+0, 144000, 38016, 0xb056c4b4
+0, 147600, 38016, 0x38e9c6e6
+0, 151200, 38016, 0x9c64ab45
+0, 154800, 38016, 0x31189eef
+0, 158400, 38016, 0x1ee3a3b1
+0, 162000, 38016, 0x8bed7c95
+0, 165600, 38016, 0x30357cee
+0, 169200, 38016, 0x5d828428
+0, 172800, 38016, 0xc06388b3
+0, 176400, 38016, 0x2af597b4
diff --git a/tests/ref/fate/h264-conformance-cavlc_mot_fld0_full_b b/tests/ref/fate/h264-conformance-cavlc_mot_fld0_full_b
new file mode 100644
index 0000000000..6a77690f85
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cavlc_mot_fld0_full_b
@@ -0,0 +1,30 @@
+0, 0, 518400, 0x99d0df36
+0, 3600, 518400, 0xa8601c1a
+0, 7200, 518400, 0x4a17d235
+0, 10800, 518400, 0x75f23abf
+0, 14400, 518400, 0x746aad53
+0, 18000, 518400, 0xb0b8913e
+0, 21600, 518400, 0x60a27f57
+0, 25200, 518400, 0xfa227f3e
+0, 28800, 518400, 0x7a1e57c2
+0, 32400, 518400, 0xcbbaa84f
+0, 36000, 518400, 0xf9c1bd13
+0, 39600, 518400, 0x9e80caaf
+0, 43200, 518400, 0x14cc6928
+0, 46800, 518400, 0xca0353ef
+0, 50400, 518400, 0xcad65e5f
+0, 54000, 518400, 0xd5bc47b3
+0, 57600, 518400, 0xa9893d36
+0, 61200, 518400, 0x69bd9085
+0, 64800, 518400, 0xff33c476
+0, 68400, 518400, 0x9538adf7
+0, 72000, 518400, 0xd4ff3b62
+0, 75600, 518400, 0x021a11fd
+0, 79200, 518400, 0x293e6f9f
+0, 82800, 518400, 0x5d38e4c3
+0, 86400, 518400, 0xd1f4ad49
+0, 90000, 518400, 0xf13dd946
+0, 93600, 518400, 0x0359e9ff
+0, 97200, 518400, 0xb61098ad
+0, 100800, 518400, 0xa855b11c
+0, 104400, 518400, 0x7fcf9343
diff --git a/tests/ref/fate/h264-conformance-cavlc_mot_frm0_full_b b/tests/ref/fate/h264-conformance-cavlc_mot_frm0_full_b
new file mode 100644
index 0000000000..5d29a405f5
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cavlc_mot_frm0_full_b
@@ -0,0 +1,30 @@
+0, 0, 518400, 0x21baedbf
+0, 3600, 518400, 0x6003273c
+0, 7200, 518400, 0x935d45d7
+0, 10800, 518400, 0x00485000
+0, 14400, 518400, 0x31b191ff
+0, 18000, 518400, 0xe334135a
+0, 21600, 518400, 0xc4d7bf2c
+0, 25200, 518400, 0x7106ac82
+0, 28800, 518400, 0xeb277b07
+0, 32400, 518400, 0xaf1ee80f
+0, 36000, 518400, 0x8c7d1bad
+0, 39600, 518400, 0x0e24ae6c
+0, 43200, 518400, 0x89c216b4
+0, 46800, 518400, 0x991fbcb1
+0, 50400, 518400, 0x87411486
+0, 54000, 518400, 0x0151b48f
+0, 57600, 518400, 0x3f4d5a91
+0, 61200, 518400, 0x48ea911b
+0, 64800, 518400, 0x6bec19a0
+0, 68400, 518400, 0x10233bf6
+0, 72000, 518400, 0x2a36ae4d
+0, 75600, 518400, 0xd8d3224b
+0, 79200, 518400, 0xf5c5f81f
+0, 82800, 518400, 0x30054561
+0, 86400, 518400, 0x67ea1c9f
+0, 90000, 518400, 0xbbda3984
+0, 93600, 518400, 0x9af40c71
+0, 97200, 518400, 0xb0cf0d12
+0, 100800, 518400, 0x569b9866
+0, 104400, 518400, 0xffd72ee5
diff --git a/tests/ref/fate/h264-conformance-cavlc_mot_mbaff0_full_b b/tests/ref/fate/h264-conformance-cavlc_mot_mbaff0_full_b
new file mode 100644
index 0000000000..2b6d0d3c8a
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cavlc_mot_mbaff0_full_b
@@ -0,0 +1,30 @@
+0, 0, 518400, 0x4cecc821
+0, 3600, 518400, 0xee49ea81
+0, 7200, 518400, 0x78b0d65f
+0, 10800, 518400, 0x7fa72010
+0, 14400, 518400, 0xbc7fecdb
+0, 18000, 518400, 0xe54cf951
+0, 21600, 518400, 0x1e2795e0
+0, 25200, 518400, 0x7db968b9
+0, 28800, 518400, 0xcecb446b
+0, 32400, 518400, 0x4f813fc5
+0, 36000, 518400, 0xd0816131
+0, 39600, 518400, 0x6cf66cb7
+0, 43200, 518400, 0xac9913a1
+0, 46800, 518400, 0x0a2dd6ae
+0, 50400, 518400, 0x5de1acef
+0, 54000, 518400, 0x5ac7741e
+0, 57600, 518400, 0x4d2726de
+0, 61200, 518400, 0x6b9b2677
+0, 64800, 518400, 0x99b70e82
+0, 68400, 518400, 0x6a01ed56
+0, 72000, 518400, 0xa6976f95
+0, 75600, 518400, 0x645f6562
+0, 79200, 518400, 0xf750796b
+0, 82800, 518400, 0xe381ee9c
+0, 86400, 518400, 0xb7d45f84
+0, 90000, 518400, 0x7c9d79df
+0, 93600, 518400, 0x8a306a11
+0, 97200, 518400, 0x766fcf15
+0, 100800, 518400, 0x45c3cbdd
+0, 104400, 518400, 0x6a22610e
diff --git a/tests/ref/fate/h264-conformance-cavlc_mot_picaff0_full_b b/tests/ref/fate/h264-conformance-cavlc_mot_picaff0_full_b
new file mode 100644
index 0000000000..741b94ca47
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cavlc_mot_picaff0_full_b
@@ -0,0 +1,30 @@
+0, 0, 518400, 0xf6b83a0e
+0, 3600, 518400, 0xc5e8b8ee
+0, 7200, 518400, 0xb3bc6e43
+0, 10800, 518400, 0x5b08dc73
+0, 14400, 518400, 0x4a7f7690
+0, 18000, 518400, 0x8a9f4275
+0, 21600, 518400, 0xc7cb92fd
+0, 25200, 518400, 0xc721e231
+0, 28800, 518400, 0xfb31371b
+0, 32400, 518400, 0xac57f5d9
+0, 36000, 518400, 0x92b7debc
+0, 39600, 518400, 0xfe3e533e
+0, 43200, 518400, 0x1b3a7a72
+0, 46800, 518400, 0x98df2d81
+0, 50400, 518400, 0xe0ce9c52
+0, 54000, 518400, 0x6a31166d
+0, 57600, 518400, 0x64ffd4d2
+0, 61200, 518400, 0x3ec062ef
+0, 64800, 518400, 0x3480fae1
+0, 68400, 518400, 0xa87ae4b7
+0, 72000, 518400, 0xd301319f
+0, 75600, 518400, 0xa9284989
+0, 79200, 518400, 0x3de73b50
+0, 82800, 518400, 0x30a79f84
+0, 86400, 518400, 0x7d5152d4
+0, 90000, 518400, 0x25514095
+0, 93600, 518400, 0x1749a05f
+0, 97200, 518400, 0x598139a7
+0, 100800, 518400, 0x3cece862
+0, 104400, 518400, 0xe1c27efe
diff --git a/tests/ref/fate/h264-conformance-cawp1_toshiba_e b/tests/ref/fate/h264-conformance-cawp1_toshiba_e
new file mode 100644
index 0000000000..36223a350e
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cawp1_toshiba_e
@@ -0,0 +1,90 @@
+0, 0, 152064, 0xabf9ae05
+0, 3600, 152064, 0x20418b16
+0, 7200, 152064, 0xc26760ae
+0, 10800, 152064, 0x7ed0c861
+0, 14400, 152064, 0x1a13d207
+0, 18000, 152064, 0x700bdb09
+0, 21600, 152064, 0x7fa6476e
+0, 25200, 152064, 0x951158c6
+0, 28800, 152064, 0x263a2dfc
+0, 32400, 152064, 0xa25c5371
+0, 36000, 152064, 0xd67bd5c5
+0, 39600, 152064, 0x73e6d7c0
+0, 43200, 152064, 0x509967e4
+0, 46800, 152064, 0x27574b8f
+0, 50400, 152064, 0xa701d36f
+0, 54000, 152064, 0x3d457728
+0, 57600, 152064, 0xe9977098
+0, 61200, 152064, 0x33b3542b
+0, 64800, 152064, 0x5635d3fa
+0, 68400, 152064, 0x51dbc0bd
+0, 72000, 152064, 0xa2287df1
+0, 75600, 152064, 0x24533377
+0, 79200, 152064, 0xfd05e083
+0, 82800, 152064, 0xfadce02d
+0, 86400, 152064, 0xf67cc1da
+0, 90000, 152064, 0x4e7bc654
+0, 93600, 152064, 0x5b686f11
+0, 97200, 152064, 0xb8e33dc8
+0, 100800, 152064, 0x0ff224ca
+0, 104400, 152064, 0xcd98c152
+0, 108000, 152064, 0x4fdfb595
+0, 111600, 152064, 0xb1b7f4fc
+0, 115200, 152064, 0x666ccd6a
+0, 118800, 152064, 0x80e9c1a3
+0, 122400, 152064, 0x304b9be3
+0, 126000, 152064, 0x9741fb13
+0, 129600, 152064, 0x5e016501
+0, 133200, 152064, 0x50dd4139
+0, 136800, 152064, 0x9a4ef972
+0, 140400, 152064, 0x03b7da4e
+0, 144000, 152064, 0x17fd7d8a
+0, 147600, 152064, 0xc0137bb0
+0, 151200, 152064, 0xaf167d40
+0, 154800, 152064, 0xde191051
+0, 158400, 152064, 0x1cdcee05
+0, 162000, 152064, 0xa8d1b139
+0, 165600, 152064, 0xade6bf62
+0, 169200, 152064, 0x4515a552
+0, 172800, 152064, 0xb05036fe
+0, 176400, 152064, 0xfa500b17
+0, 180000, 152064, 0x512dec06
+0, 183600, 152064, 0x0e77ff69
+0, 187200, 152064, 0x06f7b2cd
+0, 190800, 152064, 0x9bc99b67
+0, 194400, 152064, 0x6b68301b
+0, 198000, 152064, 0xe31321ba
+0, 201600, 152064, 0x9ad0192e
+0, 205200, 152064, 0xcc14d7c8
+0, 208800, 152064, 0xf6ab91ec
+0, 212400, 152064, 0xf76afbce
+0, 216000, 152064, 0xb7d7f1dc
+0, 219600, 152064, 0xca95e688
+0, 223200, 152064, 0xc36bb8ac
+0, 226800, 152064, 0xc1c06a2e
+0, 230400, 152064, 0xf2a08f2a
+0, 234000, 152064, 0xb81013d2
+0, 237600, 152064, 0xf30cee41
+0, 241200, 152064, 0xad85c0d6
+0, 244800, 152064, 0x087b7807
+0, 248400, 152064, 0x178c39f0
+0, 252000, 152064, 0x6e0e3e66
+0, 255600, 152064, 0x9a020bcf
+0, 259200, 152064, 0xc33d4749
+0, 262800, 152064, 0x6370dbad
+0, 266400, 152064, 0x928cbe47
+0, 270000, 152064, 0xb8b036cc
+0, 273600, 152064, 0x79d92c37
+0, 277200, 152064, 0xc4cf0d8f
+0, 280800, 152064, 0xfe706c76
+0, 284400, 152064, 0x6a37de81
+0, 288000, 152064, 0x659eb2c1
+0, 291600, 152064, 0x0630855f
+0, 295200, 152064, 0xfa964f67
+0, 298800, 152064, 0xc5a1ff95
+0, 302400, 152064, 0xa131b89f
+0, 306000, 152064, 0x73007c16
+0, 309600, 152064, 0x4d237a3b
+0, 313200, 152064, 0xe68f44be
+0, 316800, 152064, 0x065f0be3
+0, 320400, 152064, 0x39cab454
diff --git a/tests/ref/fate/h264-conformance-cawp5_toshiba_e b/tests/ref/fate/h264-conformance-cawp5_toshiba_e
new file mode 100644
index 0000000000..30f691259d
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cawp5_toshiba_e
@@ -0,0 +1,90 @@
+0, 0, 152064, 0xabf9ae05
+0, 3600, 152064, 0x20418b16
+0, 7200, 152064, 0x20f72775
+0, 10800, 152064, 0x57c07111
+0, 14400, 152064, 0x1b49267f
+0, 18000, 152064, 0x024cd238
+0, 21600, 152064, 0x044d1ae0
+0, 25200, 152064, 0xbfec1b59
+0, 28800, 152064, 0x1a91f935
+0, 32400, 152064, 0x9ee184dc
+0, 36000, 152064, 0x65047dbe
+0, 39600, 152064, 0xd1632fb5
+0, 43200, 152064, 0x56f64c3e
+0, 46800, 152064, 0xe6122f37
+0, 50400, 152064, 0x0575e670
+0, 54000, 152064, 0x3d457728
+0, 57600, 152064, 0x6b508105
+0, 61200, 152064, 0xcaaf5ea7
+0, 64800, 152064, 0x9f4e4501
+0, 68400, 152064, 0x1c661a73
+0, 72000, 152064, 0x2fd9d1c8
+0, 75600, 152064, 0x4ac99ab1
+0, 79200, 152064, 0xf2d36809
+0, 82800, 152064, 0xa8e32ffb
+0, 86400, 152064, 0xd4da2fd2
+0, 90000, 152064, 0xac3adde0
+0, 93600, 152064, 0xf014ed0f
+0, 97200, 152064, 0xca2e7d28
+0, 100800, 152064, 0x3a875e51
+0, 104400, 152064, 0xc03e4bda
+0, 108000, 152064, 0x4fdfb595
+0, 111600, 152064, 0x9243f098
+0, 115200, 152064, 0x9361bae6
+0, 118800, 152064, 0x7a1dadee
+0, 122400, 152064, 0x72a59e15
+0, 126000, 152064, 0xb5b47170
+0, 129600, 152064, 0x5eb16651
+0, 133200, 152064, 0xe7894af7
+0, 136800, 152064, 0x2683bb0b
+0, 140400, 152064, 0x90b4c8c5
+0, 144000, 152064, 0xf800c5b5
+0, 147600, 152064, 0xc2f5a895
+0, 151200, 152064, 0x213c65d4
+0, 154800, 152064, 0x01c65a19
+0, 158400, 152064, 0xd9f1b04b
+0, 162000, 152064, 0xa8d1b139
+0, 165600, 152064, 0x2d0cb0cd
+0, 169200, 152064, 0x5b0783fe
+0, 172800, 152064, 0x29e628ec
+0, 176400, 152064, 0x1b8527e5
+0, 180000, 152064, 0x4b46d179
+0, 183600, 152064, 0x6184c708
+0, 187200, 152064, 0x697bb8e2
+0, 190800, 152064, 0x5fd3a772
+0, 194400, 152064, 0x91456c86
+0, 198000, 152064, 0x376c4dae
+0, 201600, 152064, 0x00ba2b3f
+0, 205200, 152064, 0xf6f0f553
+0, 208800, 152064, 0xc0020855
+0, 212400, 152064, 0xec3d13d2
+0, 216000, 152064, 0xb7d7f1dc
+0, 219600, 152064, 0xf9dae37b
+0, 223200, 152064, 0x50d9cc93
+0, 226800, 152064, 0xba1eb592
+0, 230400, 152064, 0x67616557
+0, 234000, 152064, 0x09804760
+0, 237600, 152064, 0xc2ffba00
+0, 241200, 152064, 0xb71fcf46
+0, 244800, 152064, 0x6cd975af
+0, 248400, 152064, 0x19189167
+0, 252000, 152064, 0xbca8fe71
+0, 255600, 152064, 0xb0b3f607
+0, 259200, 152064, 0x7614d73a
+0, 262800, 152064, 0x7de9d87d
+0, 266400, 152064, 0x81f58cf2
+0, 270000, 152064, 0xb8b036cc
+0, 273600, 152064, 0x26d1e2e4
+0, 277200, 152064, 0xb41a1e6c
+0, 280800, 152064, 0x4f9be4a9
+0, 284400, 152064, 0xe95ad5d3
+0, 288000, 152064, 0xdffc9335
+0, 291600, 152064, 0x01d658c0
+0, 295200, 152064, 0x631b4b75
+0, 298800, 152064, 0x80ae282f
+0, 302400, 152064, 0xb34bf688
+0, 306000, 152064, 0xd0cc7d65
+0, 309600, 152064, 0x86aa4590
+0, 313200, 152064, 0xcb515a57
+0, 316800, 152064, 0x68650834
+0, 320400, 152064, 0x444ee2a4
diff --git a/tests/ref/fate/h264-conformance-ci1_ft_b b/tests/ref/fate/h264-conformance-ci1_ft_b
new file mode 100644
index 0000000000..b2dca70352
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-ci1_ft_b
@@ -0,0 +1,291 @@
+0, 0, 152064, 0xb291a678
+0, 3600, 152064, 0x913c5a5d
+0, 7200, 152064, 0x9558a372
+0, 10800, 152064, 0x5e521e9b
+0, 14400, 152064, 0xbc2c7bd7
+0, 18000, 152064, 0x8867cc80
+0, 21600, 152064, 0xae394b0b
+0, 25200, 152064, 0x15d9c120
+0, 28800, 152064, 0xffe01d0f
+0, 32400, 152064, 0xf90a1d50
+0, 36000, 152064, 0x7b9b6a02
+0, 39600, 152064, 0x687f5afa
+0, 43200, 152064, 0x6bf7b8a2
+0, 46800, 152064, 0x45cb58e9
+0, 50400, 152064, 0xc4246ef0
+0, 54000, 152064, 0xa19dbe0a
+0, 57600, 152064, 0xe297eaa9
+0, 61200, 152064, 0x8f4300bc
+0, 64800, 152064, 0x9a541a18
+0, 68400, 152064, 0xf3b51480
+0, 72000, 152064, 0x5a191303
+0, 75600, 152064, 0x2e887f27
+0, 79200, 152064, 0xf050d46d
+0, 82800, 152064, 0xc31c6716
+0, 86400, 152064, 0x37761725
+0, 90000, 152064, 0x81141cf6
+0, 93600, 152064, 0x181f7e61
+0, 97200, 152064, 0x9fc2b668
+0, 100800, 152064, 0x3716f5da
+0, 104400, 152064, 0x3b28f0c9
+0, 108000, 152064, 0xe33bd972
+0, 111600, 152064, 0x948ccdaa
+0, 115200, 152064, 0x21fdc6c2
+0, 118800, 152064, 0x3874b6fc
+0, 122400, 152064, 0x07b7a748
+0, 126000, 152064, 0x7aee8b8d
+0, 129600, 152064, 0x013d7552
+0, 133200, 152064, 0x9631487e
+0, 136800, 152064, 0xd9a109d6
+0, 140400, 152064, 0x7b450b1b
+0, 144000, 152064, 0x25f0cb06
+0, 147600, 152064, 0x6542aa9c
+0, 151200, 152064, 0x40ba9bd7
+0, 154800, 152064, 0x2dc7d564
+0, 158400, 152064, 0x4534a83f
+0, 162000, 152064, 0x671551a3
+0, 165600, 152064, 0xc69a9a28
+0, 169200, 152064, 0x899be59a
+0, 172800, 152064, 0x1adb6455
+0, 176400, 152064, 0x5d34066b
+0, 180000, 152064, 0x17f4dcec
+0, 183600, 152064, 0xcc9fd4b1
+0, 187200, 152064, 0x329aaeb5
+0, 190800, 152064, 0x4532a3f0
+0, 194400, 152064, 0xb0440be3
+0, 198000, 152064, 0x9055a9e2
+0, 201600, 152064, 0x1f5b4730
+0, 205200, 152064, 0x55fc2ba8
+0, 208800, 152064, 0x6adc911a
+0, 212400, 152064, 0x4968851f
+0, 216000, 152064, 0x31a86628
+0, 219600, 152064, 0x7223240a
+0, 223200, 152064, 0xb982e88e
+0, 226800, 152064, 0xba45b5ea
+0, 230400, 152064, 0x72f55121
+0, 234000, 152064, 0x36c59af9
+0, 237600, 152064, 0x6fc51449
+0, 241200, 152064, 0xbd9d99b7
+0, 244800, 152064, 0x0bd3a6e7
+0, 248400, 152064, 0x5a5d0203
+0, 252000, 152064, 0x44a26951
+0, 255600, 152064, 0xfe9fcff5
+0, 259200, 152064, 0xce25a939
+0, 262800, 152064, 0xdf7c1b79
+0, 266400, 152064, 0xe82a1c4c
+0, 270000, 152064, 0x946b20d7
+0, 273600, 152064, 0x5d4887d2
+0, 277200, 152064, 0xadfe1034
+0, 280800, 152064, 0x6d20b119
+0, 284400, 152064, 0x8e414e12
+0, 288000, 152064, 0x06effdf9
+0, 291600, 152064, 0x3073e4f5
+0, 295200, 152064, 0xa0ef2291
+0, 298800, 152064, 0x3feb2cf6
+0, 302400, 152064, 0x3e77b0c8
+0, 306000, 152064, 0xdbce3b7a
+0, 309600, 152064, 0x15e0b088
+0, 313200, 152064, 0xb05bb465
+0, 316800, 152064, 0x63423915
+0, 320400, 152064, 0x290210f4
+0, 324000, 152064, 0x4d14cc43
+0, 327600, 152064, 0x4a5509fe
+0, 331200, 152064, 0x110c6420
+0, 334800, 152064, 0xbe614dfb
+0, 338400, 152064, 0xa6311469
+0, 342000, 152064, 0x198b6b73
+0, 345600, 152064, 0xe96fe872
+0, 349200, 152064, 0x7a7a6937
+0, 352800, 152064, 0xfe2b868d
+0, 356400, 152064, 0x9e0bbb2b
+0, 360000, 152064, 0x53dbdf39
+0, 363600, 152064, 0xee90ba8e
+0, 367200, 152064, 0x38bcb94d
+0, 370800, 152064, 0x16a6d9bb
+0, 374400, 152064, 0x450ae454
+0, 378000, 152064, 0x7d98fcf4
+0, 381600, 152064, 0xc54ed4cf
+0, 385200, 152064, 0x560d74ac
+0, 388800, 152064, 0xb203fc98
+0, 392400, 152064, 0xb085b576
+0, 396000, 152064, 0x05e16f79
+0, 399600, 152064, 0x90cd4c73
+0, 403200, 152064, 0x4dd42a7f
+0, 406800, 152064, 0x26b9e35c
+0, 410400, 152064, 0x70cbb417
+0, 414000, 152064, 0x0a1bc4a9
+0, 417600, 152064, 0xe08fdbc9
+0, 421200, 152064, 0x8768cd49
+0, 424800, 152064, 0x80a4b575
+0, 428400, 152064, 0x68478ea6
+0, 432000, 152064, 0x8f8c589d
+0, 435600, 152064, 0x8ee4345c
+0, 439200, 152064, 0x93911901
+0, 442800, 152064, 0x38fb4298
+0, 446400, 152064, 0x8bee60e7
+0, 450000, 152064, 0x3f906dbd
+0, 453600, 152064, 0x9de2a984
+0, 457200, 152064, 0x64c804e0
+0, 460800, 152064, 0x4757c864
+0, 464400, 152064, 0xe6f43905
+0, 468000, 152064, 0x8ad2e577
+0, 471600, 152064, 0x1b06977e
+0, 475200, 152064, 0xe92a2dfa
+0, 478800, 152064, 0x97b993fa
+0, 482400, 152064, 0x1602de2d
+0, 486000, 152064, 0x6dda24f1
+0, 489600, 152064, 0x5552ec9d
+0, 493200, 152064, 0xcce058e8
+0, 496800, 152064, 0x4359bccd
+0, 500400, 152064, 0xe41d77d0
+0, 504000, 152064, 0x05730d21
+0, 507600, 152064, 0xa963bf92
+0, 511200, 152064, 0x3f4d8e29
+0, 514800, 152064, 0x385d2403
+0, 518400, 152064, 0xd8e279d6
+0, 522000, 152064, 0xcfcb3713
+0, 525600, 152064, 0xd68d57d4
+0, 529200, 152064, 0xdaecd2d6
+0, 532800, 152064, 0x7c1805cf
+0, 536400, 152064, 0x19969137
+0, 540000, 152064, 0x15007e0c
+0, 543600, 152064, 0xf4f5011a
+0, 547200, 152064, 0x792793e3
+0, 550800, 152064, 0x1c4126f9
+0, 554400, 152064, 0xfaeb9465
+0, 558000, 152064, 0x3366c5c6
+0, 561600, 152064, 0x8efa29ed
+0, 565200, 152064, 0x2b36d937
+0, 568800, 152064, 0x4cfc993f
+0, 572400, 152064, 0x0809f8f8
+0, 576000, 152064, 0x5be26710
+0, 579600, 152064, 0x6d757860
+0, 583200, 152064, 0xf4e8706d
+0, 586800, 152064, 0xec42387d
+0, 590400, 152064, 0x828f02e1
+0, 594000, 152064, 0x45a0954c
+0, 597600, 152064, 0xbcca1065
+0, 601200, 152064, 0xd5946707
+0, 604800, 152064, 0x6887cbcb
+0, 608400, 152064, 0x63fc7423
+0, 612000, 152064, 0x3339ebc2
+0, 615600, 152064, 0x6419e277
+0, 619200, 152064, 0xe9cd70aa
+0, 622800, 152064, 0x23903b35
+0, 626400, 152064, 0xd83d028a
+0, 630000, 152064, 0x79e21536
+0, 633600, 152064, 0x81cc6027
+0, 637200, 152064, 0x56334e89
+0, 640800, 152064, 0xe32e532e
+0, 644400, 152064, 0x528832b4
+0, 648000, 152064, 0x348da007
+0, 651600, 152064, 0x5104b2e8
+0, 655200, 152064, 0x7b0d1f8f
+0, 658800, 152064, 0x6750c77c
+0, 662400, 152064, 0x3a8f2faa
+0, 666000, 152064, 0x8a24a116
+0, 669600, 152064, 0x82d00d82
+0, 673200, 152064, 0xc6f5b11a
+0, 676800, 152064, 0x2b352039
+0, 680400, 152064, 0x7c067e22
+0, 684000, 152064, 0xc975d80d
+0, 687600, 152064, 0xa49978ed
+0, 691200, 152064, 0x441f703e
+0, 694800, 152064, 0x5cb150c5
+0, 698400, 152064, 0xeeda6c8e
+0, 702000, 152064, 0xe9e0ce47
+0, 705600, 152064, 0xba55acbd
+0, 709200, 152064, 0xae8250e5
+0, 712800, 152064, 0xf438f2e8
+0, 716400, 152064, 0xe6263d10
+0, 720000, 152064, 0x8d13277a
+0, 723600, 152064, 0x4bfb4aab
+0, 727200, 152064, 0x1c0a78ea
+0, 730800, 152064, 0xa0651778
+0, 734400, 152064, 0xa309ca66
+0, 738000, 152064, 0x294c750b
+0, 741600, 152064, 0xd55d6881
+0, 745200, 152064, 0x8d002b72
+0, 748800, 152064, 0xe0ae5976
+0, 752400, 152064, 0xc6f28961
+0, 756000, 152064, 0x6fb5899d
+0, 759600, 152064, 0x046f3445
+0, 763200, 152064, 0x9b2d5779
+0, 766800, 152064, 0xeb9db946
+0, 770400, 152064, 0x190bdc3b
+0, 774000, 152064, 0xb9ae5c7b
+0, 777600, 152064, 0xca07ad32
+0, 781200, 152064, 0x8d1fee22
+0, 784800, 152064, 0x446470dd
+0, 788400, 152064, 0x8802cf93
+0, 792000, 152064, 0x8bbaeb30
+0, 795600, 152064, 0xfe4e7fdf
+0, 799200, 152064, 0xc6379dc7
+0, 802800, 152064, 0xaa53198b
+0, 806400, 152064, 0x88d6d37c
+0, 810000, 152064, 0xd1b89370
+0, 813600, 152064, 0xdab349f4
+0, 817200, 152064, 0x4702c238
+0, 820800, 152064, 0xfaa893bb
+0, 824400, 152064, 0x515b940e
+0, 828000, 152064, 0x4d86d838
+0, 831600, 152064, 0xe3815641
+0, 835200, 152064, 0x0e501c17
+0, 838800, 152064, 0x449df073
+0, 842400, 152064, 0xc06daa27
+0, 846000, 152064, 0x72f5394c
+0, 849600, 152064, 0x18be9f70
+0, 853200, 152064, 0xc508213a
+0, 856800, 152064, 0xa616a322
+0, 860400, 152064, 0x1a5d09e5
+0, 864000, 152064, 0xf6e78051
+0, 867600, 152064, 0x8945ad83
+0, 871200, 152064, 0xa06fd95d
+0, 874800, 152064, 0x7d86f015
+0, 878400, 152064, 0x768af87c
+0, 882000, 152064, 0xffa2e8d9
+0, 885600, 152064, 0x2ac0d2df
+0, 889200, 152064, 0x40c27662
+0, 892800, 152064, 0xfcc7580a
+0, 896400, 152064, 0xcdbd51f0
+0, 900000, 152064, 0xe0d754ec
+0, 903600, 152064, 0xbfb59395
+0, 907200, 152064, 0x26f6db71
+0, 910800, 152064, 0x1d85f144
+0, 914400, 152064, 0xfacbfbd9
+0, 918000, 152064, 0x55bdf6b8
+0, 921600, 152064, 0x9c89e3f8
+0, 925200, 152064, 0x6e90c4bd
+0, 928800, 152064, 0x3b19a944
+0, 932400, 152064, 0xcb527670
+0, 936000, 152064, 0xc0ec5c7b
+0, 939600, 152064, 0x7f5f4814
+0, 943200, 152064, 0xb0983900
+0, 946800, 152064, 0xc57534a6
+0, 950400, 152064, 0xd37b30b9
+0, 954000, 152064, 0x61fe2e9f
+0, 957600, 152064, 0x613d2e8a
+0, 961200, 152064, 0x9bc5224b
+0, 964800, 152064, 0x246122c2
+0, 968400, 152064, 0x28811a8f
+0, 972000, 152064, 0x609cfcbf
+0, 975600, 152064, 0x9c5aee70
+0, 979200, 152064, 0x06d7e997
+0, 982800, 152064, 0xcb3e1e4a
+0, 986400, 152064, 0x65e36256
+0, 990000, 152064, 0x571eb628
+0, 993600, 152064, 0x9e940be8
+0, 997200, 152064, 0x425a374b
+0, 1000800, 152064, 0xbeed72a2
+0, 1004400, 152064, 0x295bb61d
+0, 1008000, 152064, 0xfe2df639
+0, 1011600, 152064, 0xbd4f441a
+0, 1015200, 152064, 0x61ce59bc
+0, 1018800, 152064, 0xd5eb825f
+0, 1022400, 152064, 0xc03cb656
+0, 1026000, 152064, 0xfc10c1f6
+0, 1029600, 152064, 0xb93908dc
+0, 1033200, 152064, 0xbc2d3209
+0, 1036800, 152064, 0xcc267ab3
+0, 1040400, 152064, 0x32629fa0
+0, 1044000, 152064, 0x5d5bb942
diff --git a/tests/ref/fate/h264-conformance-ci_mw_d b/tests/ref/fate/h264-conformance-ci_mw_d
new file mode 100644
index 0000000000..193c5c809b
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-ci_mw_d
@@ -0,0 +1,100 @@
+0, 0, 38016, 0x3ae838ee
+0, 3600, 38016, 0x8523e136
+0, 7200, 38016, 0xcffc99dd
+0, 10800, 38016, 0xd42c63b0
+0, 14400, 38016, 0x6ba94f84
+0, 18000, 38016, 0xa5c56dd3
+0, 21600, 38016, 0x6f6a929e
+0, 25200, 38016, 0x84f89b27
+0, 28800, 38016, 0x35bd9f0f
+0, 32400, 38016, 0x69058ed2
+0, 36000, 38016, 0x44c05088
+0, 39600, 38016, 0xed9725f0
+0, 43200, 38016, 0x37b92a40
+0, 46800, 38016, 0xbeed3c7c
+0, 50400, 38016, 0x833a5669
+0, 54000, 38016, 0xf37b78b1
+0, 57600, 38016, 0x84e2aff4
+0, 61200, 38016, 0x8c69c59c
+0, 64800, 38016, 0x40fdbe25
+0, 68400, 38016, 0x1c7cba40
+0, 72000, 38016, 0x052abe29
+0, 75600, 38016, 0x398ec317
+0, 79200, 38016, 0xa157bb47
+0, 82800, 38016, 0x6acfc1a0
+0, 86400, 38016, 0xfa77bdba
+0, 90000, 38016, 0x2254bb0d
+0, 93600, 38016, 0xefdfbdb3
+0, 97200, 38016, 0x80eec1f4
+0, 100800, 38016, 0x48b6c903
+0, 104400, 38016, 0x277dd23b
+0, 108000, 38016, 0x4c6aa7c5
+0, 111600, 38016, 0x223f6bb7
+0, 115200, 38016, 0xdbee4420
+0, 118800, 38016, 0x5f888bdc
+0, 122400, 38016, 0xe5aef9b8
+0, 126000, 38016, 0x6a68596e
+0, 129600, 38016, 0x47feb0d4
+0, 133200, 38016, 0x46d13363
+0, 136800, 38016, 0x31758ae0
+0, 140400, 38016, 0xa9b3c513
+0, 144000, 38016, 0x041ce805
+0, 147600, 38016, 0xd3aef1e9
+0, 151200, 38016, 0x8c51ecf8
+0, 154800, 38016, 0x60a5f20d
+0, 158400, 38016, 0xf3c80bfb
+0, 162000, 38016, 0xcec4f6af
+0, 165600, 38016, 0x70a1c28c
+0, 169200, 38016, 0x1c579938
+0, 172800, 38016, 0x07a8a63d
+0, 176400, 38016, 0xd16ccd4e
+0, 180000, 38016, 0xceb5e478
+0, 183600, 38016, 0x81c0bf00
+0, 187200, 38016, 0x4867d846
+0, 190800, 38016, 0xd8650fd3
+0, 194400, 38016, 0x1d8f375c
+0, 198000, 38016, 0x5ce65ef5
+0, 201600, 38016, 0xbc766bf0
+0, 205200, 38016, 0x73cd27ee
+0, 208800, 38016, 0xd1433004
+0, 212400, 38016, 0xc5bc4798
+0, 216000, 38016, 0xeb8a3531
+0, 219600, 38016, 0xd4b014b8
+0, 223200, 38016, 0xaaa2c77e
+0, 226800, 38016, 0xa0a5a94e
+0, 230400, 38016, 0x74edcf2e
+0, 234000, 38016, 0x2925e32a
+0, 237600, 38016, 0x5400da3a
+0, 241200, 38016, 0xc50eda9b
+0, 244800, 38016, 0xfd4acbe7
+0, 248400, 38016, 0xa75eb6ee
+0, 252000, 38016, 0xc0dca463
+0, 255600, 38016, 0xfd1b83b7
+0, 259200, 38016, 0x5b378f02
+0, 262800, 38016, 0x608983d5
+0, 266400, 38016, 0x6f6f2cda
+0, 270000, 38016, 0x9367e1b2
+0, 273600, 38016, 0x12d7d677
+0, 277200, 38016, 0xd02cc0c5
+0, 280800, 38016, 0xbe2fed59
+0, 284400, 38016, 0x66c1402d
+0, 288000, 38016, 0x150e75cf
+0, 291600, 38016, 0x83c959ea
+0, 295200, 38016, 0xa9c048f4
+0, 298800, 38016, 0xffa9237f
+0, 302400, 38016, 0x0ab0d668
+0, 306000, 38016, 0xae4de2a4
+0, 309600, 38016, 0xfc4322e8
+0, 313200, 38016, 0x21f026dd
+0, 316800, 38016, 0x7582b6a6
+0, 320400, 38016, 0x4ddc5306
+0, 324000, 38016, 0x1722db32
+0, 327600, 38016, 0x33a0ace6
+0, 331200, 38016, 0xe96ebd07
+0, 334800, 38016, 0xdff2e5ef
+0, 338400, 38016, 0xbf941880
+0, 342000, 38016, 0x12ffcea4
+0, 345600, 38016, 0x1ef6aaef
+0, 349200, 38016, 0x2b01f811
+0, 352800, 38016, 0x422b5992
+0, 356400, 38016, 0x68ba9d2d
diff --git a/tests/ref/fate/h264-conformance-cvbs3_sony_c b/tests/ref/fate/h264-conformance-cvbs3_sony_c
new file mode 100644
index 0000000000..7a5db82d10
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvbs3_sony_c
@@ -0,0 +1,300 @@
+0, 0, 38016, 0xb3883478
+0, 3600, 38016, 0xddf01d9d
+0, 7200, 38016, 0xb177ece2
+0, 10800, 38016, 0xfcd6aec1
+0, 14400, 38016, 0x5cb5a017
+0, 18000, 38016, 0xeb3884e7
+0, 21600, 38016, 0xa8494fb1
+0, 25200, 38016, 0xe0084edb
+0, 28800, 38016, 0x605845e7
+0, 32400, 38016, 0xe2103e96
+0, 36000, 38016, 0x3b057699
+0, 39600, 38016, 0x130b9413
+0, 43200, 38016, 0x1af773f6
+0, 46800, 38016, 0x1a77b1f3
+0, 50400, 38016, 0xbb5bac34
+0, 54000, 38016, 0xd41c9cf7
+0, 57600, 38016, 0x6df3ac7f
+0, 61200, 38016, 0xba44a850
+0, 64800, 38016, 0xe8887fc4
+0, 68400, 38016, 0xa50387fa
+0, 72000, 38016, 0x164c6317
+0, 75600, 38016, 0xb9c52925
+0, 79200, 38016, 0xfbcc2f11
+0, 82800, 38016, 0x5c0f258c
+0, 86400, 38016, 0x0d61186e
+0, 90000, 38016, 0xec173b07
+0, 93600, 38016, 0x322c353a
+0, 97200, 38016, 0x30f72be0
+0, 100800, 38016, 0xb0aa5d52
+0, 104400, 38016, 0x915a70e2
+0, 108000, 38016, 0xed9563d3
+0, 111600, 38016, 0x2122a450
+0, 115200, 38016, 0xc8a6ba0a
+0, 118800, 38016, 0x7fbaad08
+0, 122400, 38016, 0xef19d83b
+0, 126000, 38016, 0x4fb1d339
+0, 129600, 38016, 0xe73eb1a3
+0, 133200, 38016, 0xfd23d6f0
+0, 136800, 38016, 0xfc21ca53
+0, 140400, 38016, 0xa6c7b2c9
+0, 144000, 38016, 0x4fb3c8e0
+0, 147600, 38016, 0xdb7acc62
+0, 151200, 38016, 0x281db765
+0, 154800, 38016, 0x2e11b6e9
+0, 158400, 38016, 0x8237b906
+0, 162000, 38016, 0xe3728780
+0, 165600, 38016, 0x2932a82c
+0, 169200, 38016, 0x8a0ab2ca
+0, 172800, 38016, 0xdb38a893
+0, 176400, 38016, 0xd64cbfc3
+0, 180000, 38016, 0x8a53b992
+0, 183600, 38016, 0xef29abc9
+0, 187200, 38016, 0x6d64baf6
+0, 190800, 38016, 0xc402bf13
+0, 194400, 38016, 0x00c7b709
+0, 198000, 38016, 0x55ddcb84
+0, 201600, 38016, 0x22cac705
+0, 205200, 38016, 0xfa1bc59d
+0, 208800, 38016, 0x82a1d3d0
+0, 212400, 38016, 0x7db8d411
+0, 216000, 38016, 0x98a59a5a
+0, 219600, 38016, 0x02bda814
+0, 223200, 38016, 0xc4a288d9
+0, 226800, 38016, 0x799a3804
+0, 230400, 38016, 0x11474f82
+0, 234000, 38016, 0x0b807846
+0, 237600, 38016, 0x2a118c7e
+0, 241200, 38016, 0xa076e441
+0, 244800, 38016, 0x9b2c1c2b
+0, 248400, 38016, 0xf1433098
+0, 252000, 38016, 0xbf68697b
+0, 255600, 38016, 0x0c2c94de
+0, 259200, 38016, 0x5fdcb88b
+0, 262800, 38016, 0x543dfb09
+0, 266400, 38016, 0x4c602fc8
+0, 270000, 38016, 0x4c0b3afa
+0, 273600, 38016, 0x97dd846b
+0, 277200, 38016, 0xb5cb97f7
+0, 280800, 38016, 0x42dba91c
+0, 284400, 38016, 0x827cc117
+0, 288000, 38016, 0xd589cd88
+0, 291600, 38016, 0x15bfdd09
+0, 295200, 38016, 0x77cbe929
+0, 298800, 38016, 0x499edfb2
+0, 302400, 38016, 0x3bd5d22c
+0, 306000, 38016, 0xed0ed545
+0, 309600, 38016, 0x1751e754
+0, 313200, 38016, 0x042feed4
+0, 316800, 38016, 0x24dde6b3
+0, 320400, 38016, 0x8aa2ed66
+0, 324000, 38016, 0x8fa69f07
+0, 327600, 38016, 0xe018ad28
+0, 331200, 38016, 0x0b31992e
+0, 334800, 38016, 0xf8aa6dbc
+0, 338400, 38016, 0x0eb36da4
+0, 342000, 38016, 0x392b6658
+0, 345600, 38016, 0xb8056967
+0, 349200, 38016, 0x16899181
+0, 352800, 38016, 0x44b9a1b2
+0, 356400, 38016, 0x20ee9b98
+0, 360000, 38016, 0x42cdad98
+0, 363600, 38016, 0xd438a3d6
+0, 367200, 38016, 0x551e8751
+0, 370800, 38016, 0x68428f39
+0, 374400, 38016, 0x7449b249
+0, 378000, 38016, 0xf294a253
+0, 381600, 38016, 0x8628d899
+0, 385200, 38016, 0xba05f633
+0, 388800, 38016, 0x329bfacb
+0, 392400, 38016, 0xaa5c33dd
+0, 396000, 38016, 0x2b9437d9
+0, 399600, 38016, 0x8bd8273b
+0, 403200, 38016, 0xc6d541fb
+0, 406800, 38016, 0xb42c1e45
+0, 410400, 38016, 0xdd39e610
+0, 414000, 38016, 0xae56fe66
+0, 417600, 38016, 0x812a16e4
+0, 421200, 38016, 0x47fdff0f
+0, 424800, 38016, 0xfbb33b56
+0, 428400, 38016, 0x792a486f
+0, 432000, 38016, 0x32e93592
+0, 435600, 38016, 0xbd2142ca
+0, 439200, 38016, 0x2d412532
+0, 442800, 38016, 0x5ee8e957
+0, 446400, 38016, 0x57c3de13
+0, 450000, 38016, 0xad94b6f1
+0, 453600, 38016, 0x8cda97a1
+0, 457200, 38016, 0x3563b54e
+0, 460800, 38016, 0x1d2bc4fb
+0, 464400, 38016, 0xada2cf01
+0, 468000, 38016, 0x8dabed0a
+0, 471600, 38016, 0x441ae3c0
+0, 475200, 38016, 0x5514cc85
+0, 478800, 38016, 0xd20cddad
+0, 482400, 38016, 0x5286d569
+0, 486000, 38016, 0x1612a173
+0, 489600, 38016, 0x5946be84
+0, 493200, 38016, 0x1925b1fe
+0, 496800, 38016, 0xf34f93eb
+0, 500400, 38016, 0xac3d9add
+0, 504000, 38016, 0x12d18ba6
+0, 507600, 38016, 0xcc7f7e5a
+0, 511200, 38016, 0x449270ec
+0, 514800, 38016, 0x04416f83
+0, 518400, 38016, 0x50d36abf
+0, 522000, 38016, 0x8605799f
+0, 525600, 38016, 0xe6ec6cfd
+0, 529200, 38016, 0x1f2d3baf
+0, 532800, 38016, 0x9f3e1a4c
+0, 536400, 38016, 0x5c3ef4c8
+0, 540000, 38016, 0xf731aef2
+0, 543600, 38016, 0x90b4c921
+0, 547200, 38016, 0xa12dc74f
+0, 550800, 38016, 0x1fe2a278
+0, 554400, 38016, 0xa6b0b432
+0, 558000, 38016, 0xf9e9cb79
+0, 561600, 38016, 0xef58d10e
+0, 565200, 38016, 0x957805c0
+0, 568800, 38016, 0x76e03b1f
+0, 572400, 38016, 0xcb2a4905
+0, 576000, 38016, 0xb863646d
+0, 579600, 38016, 0x3e5f57fe
+0, 583200, 38016, 0xbe7d3d77
+0, 586800, 38016, 0x4f3c3ce5
+0, 590400, 38016, 0x806033d0
+0, 594000, 38016, 0xc31bf5da
+0, 597600, 38016, 0x6f8ef69e
+0, 601200, 38016, 0x010ac670
+0, 604800, 38016, 0x374e9bdd
+0, 608400, 38016, 0xd8499c26
+0, 612000, 38016, 0x5901a512
+0, 615600, 38016, 0x31b2bcdf
+0, 619200, 38016, 0x972cdda0
+0, 622800, 38016, 0x10c8ded1
+0, 626400, 38016, 0xc6e3c839
+0, 630000, 38016, 0xf661aa12
+0, 633600, 38016, 0x6ca379d0
+0, 637200, 38016, 0xc5a53d41
+0, 640800, 38016, 0x317d353c
+0, 644400, 38016, 0xb9962522
+0, 648000, 38016, 0x0769ec52
+0, 651600, 38016, 0x4463ea8b
+0, 655200, 38016, 0xdd7dd585
+0, 658800, 38016, 0x6039ca99
+0, 662400, 38016, 0x87beeba1
+0, 666000, 38016, 0x2503fd5d
+0, 669600, 38016, 0xde950c40
+0, 673200, 38016, 0xd6f5332f
+0, 676800, 38016, 0xa95b3137
+0, 680400, 38016, 0x37c026b4
+0, 684000, 38016, 0x93f9e3e3
+0, 687600, 38016, 0x5826b471
+0, 691200, 38016, 0xef81ac84
+0, 694800, 38016, 0x6361dfa0
+0, 698400, 38016, 0x9774f041
+0, 702000, 38016, 0xd8d01ad1
+0, 705600, 38016, 0x456252f3
+0, 709200, 38016, 0x448c6119
+0, 712800, 38016, 0x12157fca
+0, 716400, 38016, 0x145ca727
+0, 720000, 38016, 0x17a5b174
+0, 723600, 38016, 0xc0c0bb0c
+0, 727200, 38016, 0x9afbc5e8
+0, 730800, 38016, 0xc8c7cc3a
+0, 734400, 38016, 0x489dc5dd
+0, 738000, 38016, 0x6da6c7c8
+0, 741600, 38016, 0x6408d491
+0, 745200, 38016, 0x0820d9ce
+0, 748800, 38016, 0xebcfc8d6
+0, 752400, 38016, 0xf462b2a2
+0, 756000, 38016, 0xadb65d17
+0, 759600, 38016, 0xecde79e9
+0, 763200, 38016, 0x81786ed0
+0, 766800, 38016, 0x3cfc51f8
+0, 770400, 38016, 0x307560ba
+0, 774000, 38016, 0xc4f95361
+0, 777600, 38016, 0xe2fe384b
+0, 781200, 38016, 0x95de4e60
+0, 784800, 38016, 0x1b6147f9
+0, 788400, 38016, 0xe1bc385b
+0, 792000, 38016, 0x14cc446a
+0, 795600, 38016, 0x5fcb313f
+0, 799200, 38016, 0xf33f1721
+0, 802800, 38016, 0x49fc2fbb
+0, 806400, 38016, 0x33ad3314
+0, 810000, 38016, 0x92b51315
+0, 813600, 38016, 0x7e4d3139
+0, 817200, 38016, 0xb99e432b
+0, 820800, 38016, 0x52cb3c30
+0, 824400, 38016, 0xe5e48199
+0, 828000, 38016, 0x59419769
+0, 831600, 38016, 0x3e90b130
+0, 835200, 38016, 0x85fbfbd6
+0, 838800, 38016, 0xba8912ac
+0, 842400, 38016, 0x3fc3128c
+0, 846000, 38016, 0x61db4d37
+0, 849600, 38016, 0x3c405a46
+0, 853200, 38016, 0x9c113b43
+0, 856800, 38016, 0x739c43f4
+0, 860400, 38016, 0xffab0fe6
+0, 864000, 38016, 0x99cee4bd
+0, 867600, 38016, 0xd76dcff5
+0, 871200, 38016, 0xe8ccb16c
+0, 874800, 38016, 0x43d8ff1f
+0, 878400, 38016, 0xffde708b
+0, 882000, 38016, 0xe5cfd3d4
+0, 885600, 38016, 0x0b67ef9f
+0, 889200, 38016, 0xd54cd697
+0, 892800, 38016, 0x5879926e
+0, 896400, 38016, 0x9cb01428
+0, 900000, 38016, 0x09b0c0b7
+0, 903600, 38016, 0xbbef721e
+0, 907200, 38016, 0xcebd66ea
+0, 910800, 38016, 0x7492c956
+0, 914400, 38016, 0xeaa5317b
+0, 918000, 38016, 0xe952c9bd
+0, 921600, 38016, 0xb4cfd878
+0, 925200, 38016, 0xa8675f14
+0, 928800, 38016, 0x24653121
+0, 932400, 38016, 0xeec9425e
+0, 936000, 38016, 0x14413e58
+0, 939600, 38016, 0xc8e13f0a
+0, 943200, 38016, 0x09045f0f
+0, 946800, 38016, 0xa021583e
+0, 950400, 38016, 0x26384591
+0, 954000, 38016, 0x157b55d2
+0, 957600, 38016, 0x22973c65
+0, 961200, 38016, 0x2fe30f64
+0, 964800, 38016, 0xf640fab4
+0, 968400, 38016, 0x2b82d807
+0, 972000, 38016, 0x6faca613
+0, 975600, 38016, 0x8a5b89c3
+0, 979200, 38016, 0xb7d76316
+0, 982800, 38016, 0x3e3a0a82
+0, 986400, 38016, 0x7d93d78b
+0, 990000, 38016, 0xa3bcc050
+0, 993600, 38016, 0x41d4b2ba
+0, 997200, 38016, 0x7a08d518
+0, 1000800, 38016, 0xd6b0f72b
+0, 1004400, 38016, 0x9c794c7b
+0, 1008000, 38016, 0xc2680d18
+0, 1011600, 38016, 0x9fa6db96
+0, 1015200, 38016, 0xd90c83c3
+0, 1018800, 38016, 0xf1278cf5
+0, 1022400, 38016, 0xf2ce5e19
+0, 1026000, 38016, 0x2d41a44b
+0, 1029600, 38016, 0xade2715b
+0, 1033200, 38016, 0xd21da6fe
+0, 1036800, 38016, 0x37c89e7f
+0, 1040400, 38016, 0x6bad76e8
+0, 1044000, 38016, 0xfefce893
+0, 1047600, 38016, 0xcd301b29
+0, 1051200, 38016, 0x0e80a08d
+0, 1054800, 38016, 0x88f3d605
+0, 1058400, 38016, 0x80273791
+0, 1062000, 38016, 0x36472009
+0, 1065600, 38016, 0xe8b6fc54
+0, 1069200, 38016, 0x5d9bfd2d
+0, 1072800, 38016, 0x61df1820
+0, 1076400, 38016, 0x8db23b5c
diff --git a/tests/ref/fate/h264-conformance-cvcanlma2_sony_c b/tests/ref/fate/h264-conformance-cvcanlma2_sony_c
new file mode 100644
index 0000000000..5eff64e541
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvcanlma2_sony_c
@@ -0,0 +1,17 @@
+0, 0, 518400, 0xfbca00c6
+0, 3600, 518400, 0x82b80adf
+0, 7200, 518400, 0x87ecdf4a
+0, 10800, 518400, 0xf6ca8cbe
+0, 14400, 518400, 0x8e9bb8a0
+0, 18000, 518400, 0x6512caa2
+0, 21600, 518400, 0xc015e43e
+0, 25200, 518400, 0x5f504a5c
+0, 28800, 518400, 0x4c7458a4
+0, 32400, 518400, 0x630f4004
+0, 36000, 518400, 0x889af20e
+0, 39600, 518400, 0x4437a5a4
+0, 43200, 518400, 0x1e19a254
+0, 46800, 518400, 0xb7ef1763
+0, 50400, 518400, 0xc966c95a
+0, 54000, 518400, 0x0c9074d6
+0, 57600, 518400, 0x24c906c9
diff --git a/tests/ref/fate/h264-conformance-cvfi1_sony_d b/tests/ref/fate/h264-conformance-cvfi1_sony_d
new file mode 100644
index 0000000000..aaf0e7b024
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvfi1_sony_d
@@ -0,0 +1,17 @@
+0, 0, 518400, 0xd9444d71
+0, 3600, 518400, 0x5d8928cd
+0, 7200, 518400, 0xea5bc08b
+0, 10800, 518400, 0xb4465d31
+0, 14400, 518400, 0x983b5dbb
+0, 18000, 518400, 0x54936746
+0, 21600, 518400, 0x7ae38b02
+0, 25200, 518400, 0xc2a0dd83
+0, 28800, 518400, 0x61cac7a6
+0, 32400, 518400, 0xb0038443
+0, 36000, 518400, 0x16514296
+0, 39600, 518400, 0xa68dd470
+0, 43200, 518400, 0x2572f868
+0, 46800, 518400, 0x770a3239
+0, 50400, 518400, 0xdd04f6d2
+0, 54000, 518400, 0xa5e5d01e
+0, 57600, 518400, 0x5fe25c86
diff --git a/tests/ref/fate/h264-conformance-cvfi1_sva_c b/tests/ref/fate/h264-conformance-cvfi1_sva_c
new file mode 100644
index 0000000000..bcff3ea05d
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvfi1_sva_c
@@ -0,0 +1,7 @@
+0, 0, 518400, 0x8f022263
+0, 3600, 518400, 0x02692654
+0, 7200, 518400, 0x55eff579
+0, 10800, 518400, 0x6c1bdf1d
+0, 14400, 518400, 0xbbedf5e4
+0, 18000, 518400, 0xb90d740d
+0, 21600, 518400, 0x81300adb
diff --git a/tests/ref/fate/h264-conformance-cvfi2_sony_h b/tests/ref/fate/h264-conformance-cvfi2_sony_h
new file mode 100644
index 0000000000..1a7743ad8c
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvfi2_sony_h
@@ -0,0 +1,17 @@
+0, 0, 518400, 0xd9444d71
+0, 3600, 518400, 0x491faf75
+0, 7200, 518400, 0xf8b4d15c
+0, 10800, 518400, 0x99d9f60c
+0, 14400, 518400, 0x46c17a6d
+0, 18000, 518400, 0x30b9447d
+0, 21600, 518400, 0x135d0c76
+0, 25200, 518400, 0x1b831a3c
+0, 28800, 518400, 0x5910def8
+0, 32400, 518400, 0x8db90147
+0, 36000, 518400, 0x6a2b79c7
+0, 39600, 518400, 0xc8d302e5
+0, 43200, 518400, 0x515bb024
+0, 46800, 518400, 0xedf7836c
+0, 50400, 518400, 0x7e247b9d
+0, 54000, 518400, 0x10c9bb10
+0, 57600, 518400, 0xe38e2807
diff --git a/tests/ref/fate/h264-conformance-cvfi2_sva_c b/tests/ref/fate/h264-conformance-cvfi2_sva_c
new file mode 100644
index 0000000000..ffb0a8367a
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvfi2_sva_c
@@ -0,0 +1,13 @@
+0, 0, 518400, 0x4073cc0b
+0, 3600, 518400, 0x5f599a48
+0, 7200, 518400, 0xc6fe555a
+0, 10800, 518400, 0xe63ac345
+0, 14400, 518400, 0x9b4f0c5c
+0, 18000, 518400, 0x98aaba2d
+0, 21600, 518400, 0xd629bd09
+0, 25200, 518400, 0xe9796c37
+0, 28800, 518400, 0xba54d16e
+0, 32400, 518400, 0xe396c3eb
+0, 36000, 518400, 0x63ee4b81
+0, 39600, 518400, 0x68ac6986
+0, 43200, 518400, 0xe0d53000
diff --git a/tests/ref/fate/h264-conformance-cvma1_sony_d b/tests/ref/fate/h264-conformance-cvma1_sony_d
new file mode 100644
index 0000000000..6b309aab49
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvma1_sony_d
@@ -0,0 +1,5 @@
+0, 0, 518400, 0x75701511
+0, 3600, 518400, 0xa7eeaa16
+0, 7200, 518400, 0xe0f32e35
+0, 10800, 518400, 0x7a1dadd9
+0, 14400, 518400, 0x4a1672a6
diff --git a/tests/ref/fate/h264-conformance-cvma1_toshiba_b b/tests/ref/fate/h264-conformance-cvma1_toshiba_b
new file mode 100644
index 0000000000..897e915e25
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvma1_toshiba_b
@@ -0,0 +1,90 @@
+0, 0, 152064, 0x9a9ce366
+0, 3600, 152064, 0xf4639828
+0, 7200, 152064, 0x625024a3
+0, 10800, 152064, 0x80dc2f9d
+0, 14400, 152064, 0xb2c4feea
+0, 18000, 152064, 0x4ec6ad64
+0, 21600, 152064, 0x1957bec3
+0, 25200, 152064, 0xb682799d
+0, 28800, 152064, 0x34cd2053
+0, 32400, 152064, 0x81490b4c
+0, 36000, 152064, 0x242dc943
+0, 39600, 152064, 0x3e126734
+0, 43200, 152064, 0x8e474ff8
+0, 46800, 152064, 0x239d2fbd
+0, 50400, 152064, 0x0ca3e16f
+0, 54000, 152064, 0x6161d7c2
+0, 57600, 152064, 0xca7ad1af
+0, 61200, 152064, 0xf8ef9026
+0, 64800, 152064, 0x01f2f4c1
+0, 68400, 152064, 0x510b19ec
+0, 72000, 152064, 0xe489028b
+0, 75600, 152064, 0x7a693c1e
+0, 79200, 152064, 0x276b23fe
+0, 82800, 152064, 0x0e9ced3a
+0, 86400, 152064, 0x658228f7
+0, 90000, 152064, 0x6a271bc3
+0, 93600, 152064, 0x431ecd8b
+0, 97200, 152064, 0x23a5ed14
+0, 100800, 152064, 0x76fbe121
+0, 104400, 152064, 0x471f919d
+0, 108000, 152064, 0x16bfabbc
+0, 111600, 152064, 0x0762993f
+0, 115200, 152064, 0x5a2b0b0e
+0, 118800, 152064, 0x81415ef7
+0, 122400, 152064, 0xb96e4164
+0, 126000, 152064, 0xf77aee83
+0, 129600, 152064, 0x6af81633
+0, 133200, 152064, 0xed78e5b5
+0, 136800, 152064, 0x67e38e2c
+0, 140400, 152064, 0x0417ae01
+0, 144000, 152064, 0x3887b312
+0, 147600, 152064, 0x3a4b70fb
+0, 151200, 152064, 0xcaae9e7f
+0, 154800, 152064, 0xaf9597be
+0, 158400, 152064, 0x9bae63d3
+0, 162000, 152064, 0x0e80825f
+0, 165600, 152064, 0x915661fd
+0, 169200, 152064, 0x67d3dc94
+0, 172800, 152064, 0x3dcf240c
+0, 176400, 152064, 0x127ff832
+0, 180000, 152064, 0xc8969981
+0, 183600, 152064, 0x57179c77
+0, 187200, 152064, 0x9f88656c
+0, 190800, 152064, 0xc28ff5d3
+0, 194400, 152064, 0xf100fad9
+0, 198000, 152064, 0xb570ce12
+0, 201600, 152064, 0xe8f28955
+0, 205200, 152064, 0x1f0a9549
+0, 208800, 152064, 0x22b17e9b
+0, 212400, 152064, 0x7cf1400e
+0, 216000, 152064, 0xafd273b7
+0, 219600, 152064, 0xeb9b712e
+0, 223200, 152064, 0x0f81de24
+0, 226800, 152064, 0x8f4e1953
+0, 230400, 152064, 0x682e2170
+0, 234000, 152064, 0xc32ad1b2
+0, 237600, 152064, 0x53a81d79
+0, 241200, 152064, 0x54002596
+0, 244800, 152064, 0x4b5fdbd9
+0, 248400, 152064, 0x96613368
+0, 252000, 152064, 0xd6ac0171
+0, 255600, 152064, 0xf1c1b7b7
+0, 259200, 152064, 0xc730d82f
+0, 262800, 152064, 0x0415d934
+0, 266400, 152064, 0x5338915e
+0, 270000, 152064, 0x8e9dda6d
+0, 273600, 152064, 0xe3a8b0a0
+0, 277200, 152064, 0x5fa36e44
+0, 280800, 152064, 0x0e63dc72
+0, 284400, 152064, 0xd0dad71f
+0, 288000, 152064, 0x0c4aac94
+0, 291600, 152064, 0x60d50e8d
+0, 295200, 152064, 0x96872d7c
+0, 298800, 152064, 0x4fcefc33
+0, 302400, 152064, 0x6b8157c9
+0, 306000, 152064, 0xa40d527d
+0, 309600, 152064, 0x9884480a
+0, 313200, 152064, 0xff5d9754
+0, 316800, 152064, 0x4a26a74d
+0, 320400, 152064, 0x81059e82
diff --git a/tests/ref/fate/h264-conformance-cvmanl1_toshiba_b b/tests/ref/fate/h264-conformance-cvmanl1_toshiba_b
new file mode 100644
index 0000000000..07422b8d20
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvmanl1_toshiba_b
@@ -0,0 +1,90 @@
+0, 0, 152064, 0xb1edd842
+0, 3600, 152064, 0x551f8f45
+0, 7200, 152064, 0xb4931cb2
+0, 10800, 152064, 0x78882b27
+0, 14400, 152064, 0x3afef36d
+0, 18000, 152064, 0x85afad0a
+0, 21600, 152064, 0x3a8bab81
+0, 25200, 152064, 0x2a437174
+0, 28800, 152064, 0x22421437
+0, 32400, 152064, 0x39c5f125
+0, 36000, 152064, 0x256eaad2
+0, 39600, 152064, 0x668a5d31
+0, 43200, 152064, 0x412a4aa7
+0, 46800, 152064, 0x3f091baf
+0, 50400, 152064, 0xbf16d262
+0, 54000, 152064, 0x2fc4ce67
+0, 57600, 152064, 0x119cde3e
+0, 61200, 152064, 0xb40b8632
+0, 64800, 152064, 0x4be4f192
+0, 68400, 152064, 0x906c1237
+0, 72000, 152064, 0x95380024
+0, 75600, 152064, 0x6a833025
+0, 79200, 152064, 0x681d1c4f
+0, 82800, 152064, 0x08c8dea4
+0, 86400, 152064, 0xc69226f0
+0, 90000, 152064, 0x86631102
+0, 93600, 152064, 0x7f40c77a
+0, 97200, 152064, 0xc746ddd4
+0, 100800, 152064, 0x5f2bd3cb
+0, 104400, 152064, 0x643c8316
+0, 108000, 152064, 0x5b7fa380
+0, 111600, 152064, 0x82438cf7
+0, 115200, 152064, 0xdee0f7e7
+0, 118800, 152064, 0xc50d41f1
+0, 122400, 152064, 0xf3453631
+0, 126000, 152064, 0x90bce66b
+0, 129600, 152064, 0x045b03f7
+0, 133200, 152064, 0xf64bd756
+0, 136800, 152064, 0xff997ef2
+0, 140400, 152064, 0x3613a0a5
+0, 144000, 152064, 0xe6a7a8d6
+0, 147600, 152064, 0xb0906c42
+0, 151200, 152064, 0x4dfc912b
+0, 154800, 152064, 0x81e3991c
+0, 158400, 152064, 0x4efc61fb
+0, 162000, 152064, 0xed478395
+0, 165600, 152064, 0x4cb25ab6
+0, 169200, 152064, 0x28e7d51f
+0, 172800, 152064, 0x8bcc1a8d
+0, 176400, 152064, 0x2fe1f240
+0, 180000, 152064, 0xb4978ef8
+0, 183600, 152064, 0xe3929556
+0, 187200, 152064, 0xd370632a
+0, 190800, 152064, 0xba86ffb2
+0, 194400, 152064, 0x444bf18c
+0, 198000, 152064, 0xab40bd14
+0, 201600, 152064, 0xfd488a5d
+0, 205200, 152064, 0xe1f09568
+0, 208800, 152064, 0x09ee7a7e
+0, 212400, 152064, 0x9360397c
+0, 216000, 152064, 0xdbd467e9
+0, 219600, 152064, 0x99726777
+0, 223200, 152064, 0x009fd46c
+0, 226800, 152064, 0xcf770fdb
+0, 230400, 152064, 0x2a890fd9
+0, 234000, 152064, 0x7f40de4b
+0, 237600, 152064, 0x04191304
+0, 241200, 152064, 0x15722022
+0, 244800, 152064, 0x59f4ea93
+0, 248400, 152064, 0x28ba373f
+0, 252000, 152064, 0xf9e400b8
+0, 255600, 152064, 0x85c4bd98
+0, 259200, 152064, 0x6917d2a5
+0, 262800, 152064, 0x61cae234
+0, 266400, 152064, 0x752a9a2d
+0, 270000, 152064, 0x1ee2d9bd
+0, 273600, 152064, 0xdce9ab8e
+0, 277200, 152064, 0x51225fd0
+0, 280800, 152064, 0x10e8cb60
+0, 284400, 152064, 0x8d07cd25
+0, 288000, 152064, 0xb18ba61b
+0, 291600, 152064, 0xb0f10280
+0, 295200, 152064, 0x76a71f13
+0, 298800, 152064, 0x3004f5a1
+0, 302400, 152064, 0x9aba5724
+0, 306000, 152064, 0x5db85385
+0, 309600, 152064, 0xbe9d3f5b
+0, 313200, 152064, 0xa71e85bb
+0, 316800, 152064, 0xdcf59cd7
+0, 320400, 152064, 0x5e319459
diff --git a/tests/ref/fate/h264-conformance-cvmanl2_toshiba_b b/tests/ref/fate/h264-conformance-cvmanl2_toshiba_b
new file mode 100644
index 0000000000..d8959a3348
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvmanl2_toshiba_b
@@ -0,0 +1,90 @@
+0, 0, 152064, 0xb1edd842
+0, 3600, 152064, 0x551f8f45
+0, 7200, 152064, 0xb4931cb2
+0, 10800, 152064, 0x5f352e98
+0, 14400, 152064, 0xeba5fe28
+0, 18000, 152064, 0x85afad0a
+0, 21600, 152064, 0x1120b6a4
+0, 25200, 152064, 0x67506e16
+0, 28800, 152064, 0x22421437
+0, 32400, 152064, 0x929becd6
+0, 36000, 152064, 0x6ffcb4b0
+0, 39600, 152064, 0x668a5d31
+0, 43200, 152064, 0x1b034ebb
+0, 46800, 152064, 0x7e2d213c
+0, 50400, 152064, 0xbf16d262
+0, 54000, 152064, 0xdeaecab3
+0, 57600, 152064, 0xd220d704
+0, 61200, 152064, 0xb40b8632
+0, 64800, 152064, 0xbdf0ef57
+0, 68400, 152064, 0x7e2e10df
+0, 72000, 152064, 0x95380024
+0, 75600, 152064, 0xdb80256d
+0, 79200, 152064, 0xa4561c61
+0, 82800, 152064, 0x08c8dea4
+0, 86400, 152064, 0x7bb917d6
+0, 90000, 152064, 0x796f0e2b
+0, 93600, 152064, 0x7f40c77a
+0, 97200, 152064, 0xda32de2e
+0, 100800, 152064, 0x00ffc15a
+0, 104400, 152064, 0x643c8316
+0, 108000, 152064, 0xb7588f7f
+0, 111600, 152064, 0xa4e07c02
+0, 115200, 152064, 0xdee0f7e7
+0, 118800, 152064, 0x2c3245ee
+0, 122400, 152064, 0x6565355b
+0, 126000, 152064, 0x90bce66b
+0, 129600, 152064, 0x0abffe08
+0, 133200, 152064, 0x119ccc3e
+0, 136800, 152064, 0xff997ef2
+0, 140400, 152064, 0xba4b9820
+0, 144000, 152064, 0xb6dfa596
+0, 147600, 152064, 0xb0906c42
+0, 151200, 152064, 0xf3c29133
+0, 154800, 152064, 0x08cd8e2b
+0, 158400, 152064, 0x4efc61fb
+0, 162000, 152064, 0x5b7c6e48
+0, 165600, 152064, 0xd28a47c2
+0, 169200, 152064, 0x28e7d51f
+0, 172800, 152064, 0x3a5619b1
+0, 176400, 152064, 0xa517e7f2
+0, 180000, 152064, 0xb4978ef8
+0, 183600, 152064, 0x25929175
+0, 187200, 152064, 0x20f05834
+0, 190800, 152064, 0xba86ffb2
+0, 194400, 152064, 0xa265f06f
+0, 198000, 152064, 0x97bbbfb7
+0, 201600, 152064, 0xfd488a5d
+0, 205200, 152064, 0x1b0989da
+0, 208800, 152064, 0xfd1878ce
+0, 212400, 152064, 0x9360397c
+0, 216000, 152064, 0x0d8151a7
+0, 219600, 152064, 0xe7a05bb8
+0, 223200, 152064, 0x009fd46c
+0, 226800, 152064, 0x8751123f
+0, 230400, 152064, 0x8252101a
+0, 234000, 152064, 0x7f40de4b
+0, 237600, 152064, 0x4ea317fe
+0, 241200, 152064, 0x519224d9
+0, 244800, 152064, 0x59f4ea93
+0, 248400, 152064, 0xc93c1dba
+0, 252000, 152064, 0xe3c9fb61
+0, 255600, 152064, 0x85c4bd98
+0, 259200, 152064, 0xcebacfd3
+0, 262800, 152064, 0x7327da99
+0, 266400, 152064, 0x752a9a2d
+0, 270000, 152064, 0x5ea6c8d2
+0, 273600, 152064, 0x66fd8c6f
+0, 277200, 152064, 0x51225fd0
+0, 280800, 152064, 0x58b9be96
+0, 284400, 152064, 0xa5abcdb7
+0, 288000, 152064, 0xb18ba61b
+0, 291600, 152064, 0xc7d20190
+0, 295200, 152064, 0xb6da14aa
+0, 298800, 152064, 0x3004f5a1
+0, 302400, 152064, 0x129354e2
+0, 306000, 152064, 0xffa148d5
+0, 309600, 152064, 0xbe9d3f5b
+0, 313200, 152064, 0x1c7f8976
+0, 316800, 152064, 0xa107a54d
+0, 320400, 152064, 0x5e319459
diff --git a/tests/ref/fate/h264-conformance-cvmapaqp3_sony_e b/tests/ref/fate/h264-conformance-cvmapaqp3_sony_e
new file mode 100644
index 0000000000..ba89dfc1f6
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvmapaqp3_sony_e
@@ -0,0 +1,8 @@
+0, 0, 518400, 0x80dffda2
+0, 3600, 518400, 0x9450183b
+0, 7200, 518400, 0x85d429a7
+0, 10800, 518400, 0xe1f3b686
+0, 14400, 518400, 0x2180c761
+0, 18000, 518400, 0x30269c7c
+0, 21600, 518400, 0xe9aa575a
+0, 25200, 518400, 0x7b815a0a
diff --git a/tests/ref/fate/h264-conformance-cvmaqp2_sony_g b/tests/ref/fate/h264-conformance-cvmaqp2_sony_g
new file mode 100644
index 0000000000..292aeed0e9
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvmaqp2_sony_g
@@ -0,0 +1,17 @@
+0, 0, 36864, 0xdee3d4e3
+0, 3600, 36864, 0xaa1a67ca
+0, 7200, 36864, 0xe00e0dec
+0, 10800, 36864, 0x31f0b63f
+0, 14400, 36864, 0xd0cc34d9
+0, 18000, 36864, 0x3e76eba5
+0, 21600, 36864, 0x0e7dcc9c
+0, 25200, 36864, 0xd71bc457
+0, 28800, 36864, 0x11c81ebe
+0, 32400, 36864, 0x1d4ca6d7
+0, 36000, 36864, 0xb191d155
+0, 39600, 36864, 0x435a188c
+0, 43200, 36864, 0x99d7227c
+0, 46800, 36864, 0x700637fc
+0, 50400, 36864, 0x351f7dd3
+0, 54000, 36864, 0x1658c18b
+0, 57600, 36864, 0x60034b90
diff --git a/tests/ref/fate/h264-conformance-cvmaqp3_sony_d b/tests/ref/fate/h264-conformance-cvmaqp3_sony_d
new file mode 100644
index 0000000000..c029f456a6
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvmaqp3_sony_d
@@ -0,0 +1,17 @@
+0, 0, 36864, 0xdee3d4e3
+0, 3600, 36864, 0xabec8d44
+0, 7200, 36864, 0x95d029fe
+0, 10800, 36864, 0x4daeb4b9
+0, 14400, 36864, 0x320a6301
+0, 18000, 36864, 0x6b881d0c
+0, 21600, 36864, 0xfe6eda15
+0, 25200, 36864, 0xda72d0b2
+0, 28800, 36864, 0x3232651b
+0, 32400, 36864, 0x9f20cbf1
+0, 36000, 36864, 0x5dfbd085
+0, 39600, 36864, 0x2bb62dd1
+0, 43200, 36864, 0xf8ed11cf
+0, 46800, 36864, 0x1ed62476
+0, 50400, 36864, 0x65b18976
+0, 54000, 36864, 0x1658c18b
+0, 57600, 36864, 0x76073a08
diff --git a/tests/ref/fate/h264-conformance-cvmp_mot_fld_l30_b b/tests/ref/fate/h264-conformance-cvmp_mot_fld_l30_b
new file mode 100644
index 0000000000..ba7caaf184
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvmp_mot_fld_l30_b
@@ -0,0 +1,30 @@
+0, 0, 518400, 0xe9c7643e
+0, 3600, 518400, 0xba7456ec
+0, 7200, 518400, 0xdeb96749
+0, 10800, 518400, 0xa101a986
+0, 14400, 518400, 0x3db7baa5
+0, 18000, 518400, 0xf3dfcec7
+0, 21600, 518400, 0x79b4f537
+0, 25200, 518400, 0x9e64fe68
+0, 28800, 518400, 0x0e810b53
+0, 32400, 518400, 0x20baf3b8
+0, 36000, 518400, 0x0a49d341
+0, 39600, 518400, 0xa8304ab5
+0, 43200, 518400, 0x2600e98f
+0, 46800, 518400, 0x9253e3e8
+0, 50400, 518400, 0xd6e12783
+0, 54000, 518400, 0x6894fc79
+0, 57600, 518400, 0xfb60d3e3
+0, 61200, 518400, 0x523602be
+0, 64800, 518400, 0x4979f409
+0, 68400, 518400, 0x50d4e2ab
+0, 72000, 518400, 0xa8c2140a
+0, 75600, 518400, 0x45c0bc15
+0, 79200, 518400, 0xaef78cab
+0, 82800, 518400, 0xec539d02
+0, 86400, 518400, 0x602585ea
+0, 90000, 518400, 0xda263463
+0, 93600, 518400, 0xa03d8922
+0, 97200, 518400, 0x43ea1c1d
+0, 100800, 518400, 0xb1e055a6
+0, 104400, 518400, 0x6fff9398
diff --git a/tests/ref/fate/h264-conformance-cvmp_mot_frm_l31_b b/tests/ref/fate/h264-conformance-cvmp_mot_frm_l31_b
new file mode 100644
index 0000000000..05827ef517
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvmp_mot_frm_l31_b
@@ -0,0 +1,30 @@
+0, 0, 518400, 0x7b2475e3
+0, 3600, 518400, 0xda786a87
+0, 7200, 518400, 0xb1dd8108
+0, 10800, 518400, 0x760ed65d
+0, 14400, 518400, 0x8632d20c
+0, 18000, 518400, 0xdd81e625
+0, 21600, 518400, 0x853f1c41
+0, 25200, 518400, 0x20191585
+0, 28800, 518400, 0x0367e357
+0, 32400, 518400, 0x60521167
+0, 36000, 518400, 0xa887d4cc
+0, 39600, 518400, 0x9a450f9e
+0, 43200, 518400, 0xe9620841
+0, 46800, 518400, 0xb482fb0e
+0, 50400, 518400, 0x7b79f670
+0, 54000, 518400, 0x9d37f1d1
+0, 57600, 518400, 0xe358d323
+0, 61200, 518400, 0x62ade59c
+0, 64800, 518400, 0xdd78da66
+0, 68400, 518400, 0xd97b867b
+0, 72000, 518400, 0x8a90cf8c
+0, 75600, 518400, 0x9d386610
+0, 79200, 518400, 0x2c590f46
+0, 82800, 518400, 0x92662861
+0, 86400, 518400, 0x6979f563
+0, 90000, 518400, 0xdd0fa1b2
+0, 93600, 518400, 0xccbf1c1c
+0, 97200, 518400, 0x7e358112
+0, 100800, 518400, 0xb7c0d89d
+0, 104400, 518400, 0xc6b03973
diff --git a/tests/ref/fate/h264-conformance-cvnlfi1_sony_c b/tests/ref/fate/h264-conformance-cvnlfi1_sony_c
new file mode 100644
index 0000000000..26fa93a846
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvnlfi1_sony_c
@@ -0,0 +1,17 @@
+0, 0, 518400, 0x0fbb4e71
+0, 3600, 518400, 0x4b816734
+0, 7200, 518400, 0x0c350f19
+0, 10800, 518400, 0xda049cb6
+0, 14400, 518400, 0x1f3e7bb9
+0, 18000, 518400, 0x995cbe66
+0, 21600, 518400, 0x07f7e65c
+0, 25200, 518400, 0xfcb7487f
+0, 28800, 518400, 0xb080f48a
+0, 32400, 518400, 0x3ef5b7e4
+0, 36000, 518400, 0xa1518e1c
+0, 39600, 518400, 0xb36f1cc9
+0, 43200, 518400, 0x86ea48af
+0, 46800, 518400, 0xe42373b7
+0, 50400, 518400, 0xa8435828
+0, 54000, 518400, 0xc942ea0e
+0, 57600, 518400, 0xcc597514
diff --git a/tests/ref/fate/h264-conformance-cvnlfi2_sony_h b/tests/ref/fate/h264-conformance-cvnlfi2_sony_h
new file mode 100644
index 0000000000..045929b06a
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvnlfi2_sony_h
@@ -0,0 +1,17 @@
+0, 0, 518400, 0x0fbb4e71
+0, 3600, 518400, 0xc46bec04
+0, 7200, 518400, 0xc50ffc1d
+0, 10800, 518400, 0x684b07b7
+0, 14400, 518400, 0xde799af0
+0, 18000, 518400, 0xed497b27
+0, 21600, 518400, 0x3e9d1e3a
+0, 25200, 518400, 0x154d3c5c
+0, 28800, 518400, 0x5257e37c
+0, 32400, 518400, 0x6e15139a
+0, 36000, 518400, 0x5dc39c59
+0, 39600, 518400, 0xe1803100
+0, 43200, 518400, 0xb4d4d535
+0, 46800, 518400, 0x7a97a25d
+0, 50400, 518400, 0xf86b8923
+0, 54000, 518400, 0x3355be98
+0, 57600, 518400, 0x8f555830
diff --git a/tests/ref/fate/h264-conformance-cvpa1_toshiba_b b/tests/ref/fate/h264-conformance-cvpa1_toshiba_b
new file mode 100644
index 0000000000..6f94315cef
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvpa1_toshiba_b
@@ -0,0 +1,90 @@
+0, 0, 152064, 0x128cd77a
+0, 3600, 152064, 0x565b9fc1
+0, 7200, 152064, 0xbe322679
+0, 10800, 152064, 0x0ea4238f
+0, 14400, 152064, 0x1e08fb3c
+0, 18000, 152064, 0x6da3a93c
+0, 21600, 152064, 0x75e5b181
+0, 25200, 152064, 0xa0b39334
+0, 28800, 152064, 0xa0d10d6d
+0, 32400, 152064, 0x33842bcb
+0, 36000, 152064, 0x9a74e1e4
+0, 39600, 152064, 0xc2037244
+0, 43200, 152064, 0x364b8ae4
+0, 46800, 152064, 0x18c04971
+0, 50400, 152064, 0x7234ecb5
+0, 54000, 152064, 0x3719f8bc
+0, 57600, 152064, 0x1285ead1
+0, 61200, 152064, 0xd3bfab18
+0, 64800, 152064, 0x898111e2
+0, 68400, 152064, 0x681c15fc
+0, 72000, 152064, 0x8e501572
+0, 75600, 152064, 0xd7c838be
+0, 79200, 152064, 0xede424b2
+0, 82800, 152064, 0xcfc20240
+0, 86400, 152064, 0x13992e86
+0, 90000, 152064, 0x56fb251a
+0, 93600, 152064, 0xee9be320
+0, 97200, 152064, 0xea650153
+0, 100800, 152064, 0x2cb6dabe
+0, 104400, 152064, 0xf44fa4b5
+0, 108000, 152064, 0xdac2adff
+0, 111600, 152064, 0x9e15a1dc
+0, 115200, 152064, 0x28d00970
+0, 118800, 152064, 0xe4277347
+0, 122400, 152064, 0xebd25ad1
+0, 126000, 152064, 0x029402da
+0, 129600, 152064, 0x1a2311ef
+0, 133200, 152064, 0xb86bf96a
+0, 136800, 152064, 0x67d7a5b0
+0, 140400, 152064, 0x573abc2d
+0, 144000, 152064, 0xbe97dec0
+0, 147600, 152064, 0x592b91a4
+0, 151200, 152064, 0x9adda65e
+0, 154800, 152064, 0x0354b2cb
+0, 158400, 152064, 0x91e27ff9
+0, 162000, 152064, 0x389f8625
+0, 165600, 152064, 0x90175850
+0, 169200, 152064, 0x2d36c427
+0, 172800, 152064, 0xc0dd14ab
+0, 176400, 152064, 0xd49bf131
+0, 180000, 152064, 0x0d4a9b92
+0, 183600, 152064, 0xae9bb2f1
+0, 187200, 152064, 0x36847ade
+0, 190800, 152064, 0x74810382
+0, 194400, 152064, 0xc56d1d9f
+0, 198000, 152064, 0xcfefe3ae
+0, 201600, 152064, 0xeaa39353
+0, 205200, 152064, 0x14289aef
+0, 208800, 152064, 0x74ba8f3b
+0, 212400, 152064, 0xdcaa518d
+0, 216000, 152064, 0x6e4881c2
+0, 219600, 152064, 0xa4db767d
+0, 223200, 152064, 0x239b0b19
+0, 226800, 152064, 0x5d054236
+0, 230400, 152064, 0x6f392d7c
+0, 234000, 152064, 0x5c2af146
+0, 237600, 152064, 0x26b439af
+0, 241200, 152064, 0xba7043ab
+0, 244800, 152064, 0x0816000c
+0, 248400, 152064, 0x3a713c05
+0, 252000, 152064, 0xb3111f6d
+0, 255600, 152064, 0xdbf8dae2
+0, 259200, 152064, 0x09ddf22e
+0, 262800, 152064, 0x8871fa7e
+0, 266400, 152064, 0x9f5db7a1
+0, 270000, 152064, 0xcc38f225
+0, 273600, 152064, 0xa1d18df9
+0, 277200, 152064, 0x9b1c5d6a
+0, 280800, 152064, 0x9f2bc696
+0, 284400, 152064, 0xc39bd11a
+0, 288000, 152064, 0x4ceca7d0
+0, 291600, 152064, 0x63a60f1d
+0, 295200, 152064, 0x4cd31f28
+0, 298800, 152064, 0x9c9af5d1
+0, 302400, 152064, 0x6def65fc
+0, 306000, 152064, 0x1011466d
+0, 309600, 152064, 0xfeca406d
+0, 313200, 152064, 0xd1ca8a1e
+0, 316800, 152064, 0x30caa195
+0, 320400, 152064, 0x31a09a48
diff --git a/tests/ref/fate/h264-conformance-cvpcmnl1_sva_c b/tests/ref/fate/h264-conformance-cvpcmnl1_sva_c
new file mode 100644
index 0000000000..feb301097c
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvpcmnl1_sva_c
@@ -0,0 +1,30 @@
+0, 0, 152064, 0x19b8407d
+0, 3600, 152064, 0xab8bede6
+0, 7200, 152064, 0xf59acd09
+0, 10800, 152064, 0xc905853b
+0, 14400, 152064, 0x1c3d32f8
+0, 18000, 152064, 0x26a91508
+0, 21600, 152064, 0x9443e44a
+0, 25200, 152064, 0x0d158c55
+0, 28800, 152064, 0x4b207062
+0, 32400, 152064, 0x31d8543f
+0, 36000, 152064, 0x43520337
+0, 39600, 152064, 0x4676dd14
+0, 43200, 152064, 0x8b4291d4
+0, 46800, 152064, 0xb35e4950
+0, 50400, 152064, 0xd7164390
+0, 54000, 152064, 0x7cce0af7
+0, 57600, 152064, 0x4f67ca7d
+0, 61200, 152064, 0xd517af08
+0, 64800, 152064, 0x519b8322
+0, 68400, 152064, 0xa87d2987
+0, 72000, 152064, 0xfe8cfd89
+0, 75600, 152064, 0x3b40b919
+0, 79200, 152064, 0x83398526
+0, 82800, 152064, 0x309b6168
+0, 86400, 152064, 0xa8351c37
+0, 90000, 152064, 0x7977f8fd
+0, 93600, 152064, 0x5b24e5a7
+0, 97200, 152064, 0x0ad0a48e
+0, 100800, 152064, 0xd93a7d3e
+0, 104400, 152064, 0xae0f6631
diff --git a/tests/ref/fate/h264-conformance-cvpcmnl2_sva_c b/tests/ref/fate/h264-conformance-cvpcmnl2_sva_c
new file mode 100644
index 0000000000..16a4650323
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvpcmnl2_sva_c
@@ -0,0 +1,2 @@
+0, 0, 1382400, 0xccbe6bf8
+0, 3600, 1382400, 0x49c0cfd7
diff --git a/tests/ref/fate/h264-conformance-cvwp1_toshiba_e b/tests/ref/fate/h264-conformance-cvwp1_toshiba_e
new file mode 100644
index 0000000000..6c9b227822
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvwp1_toshiba_e
@@ -0,0 +1,90 @@
+0, 0, 152064, 0xabf9ae05
+0, 3600, 152064, 0x20418b16
+0, 7200, 152064, 0xe941572f
+0, 10800, 152064, 0xcf63e20e
+0, 14400, 152064, 0x57dedcde
+0, 18000, 152064, 0x4de7bf34
+0, 21600, 152064, 0xc8014983
+0, 25200, 152064, 0x5ab946fc
+0, 28800, 152064, 0x2ca02582
+0, 32400, 152064, 0x9c95435d
+0, 36000, 152064, 0x8371b963
+0, 39600, 152064, 0xa0f1af67
+0, 43200, 152064, 0xf1155345
+0, 46800, 152064, 0x66a71c79
+0, 50400, 152064, 0x509db08a
+0, 54000, 152064, 0x3d457728
+0, 57600, 152064, 0x66035e2b
+0, 61200, 152064, 0xa4113115
+0, 64800, 152064, 0x3d35d3c0
+0, 68400, 152064, 0x5117d324
+0, 72000, 152064, 0x7b0c7660
+0, 75600, 152064, 0x0eacf9ba
+0, 79200, 152064, 0x358d0486
+0, 82800, 152064, 0xc2dbeadc
+0, 86400, 152064, 0x61b2c275
+0, 90000, 152064, 0xbb3697d2
+0, 93600, 152064, 0x44e58e8a
+0, 97200, 152064, 0x21f6464f
+0, 100800, 152064, 0xdb3416f2
+0, 104400, 152064, 0x8201d928
+0, 108000, 152064, 0x4fdfb595
+0, 111600, 152064, 0x28cff0a5
+0, 115200, 152064, 0x5d77cab2
+0, 118800, 152064, 0x2218b509
+0, 122400, 152064, 0xaf40790a
+0, 126000, 152064, 0xaed42b3b
+0, 129600, 152064, 0x866d2462
+0, 133200, 152064, 0x23a7111a
+0, 136800, 152064, 0xceefc9d0
+0, 140400, 152064, 0x88dba819
+0, 144000, 152064, 0x19b350f3
+0, 147600, 152064, 0x85a857e5
+0, 151200, 152064, 0x02ca7c6f
+0, 154800, 152064, 0xe2de12d0
+0, 158400, 152064, 0x84a36173
+0, 162000, 152064, 0xa8d1b139
+0, 165600, 152064, 0x6b72ab43
+0, 169200, 152064, 0x5fba909e
+0, 172800, 152064, 0x43ab27f2
+0, 176400, 152064, 0x414cdd60
+0, 180000, 152064, 0x080fde7b
+0, 183600, 152064, 0xb1b7e4db
+0, 187200, 152064, 0xf17db2da
+0, 190800, 152064, 0x248b88e9
+0, 194400, 152064, 0x6b68301b
+0, 198000, 152064, 0xc581100d
+0, 201600, 152064, 0x8e9cf443
+0, 205200, 152064, 0x3c4ec87a
+0, 208800, 152064, 0x6e417a1f
+0, 212400, 152064, 0x02c7ecc4
+0, 216000, 152064, 0xb7d7f1dc
+0, 219600, 152064, 0xc44cf3fa
+0, 223200, 152064, 0x0f8db331
+0, 226800, 152064, 0x71fe651b
+0, 230400, 152064, 0xdd0b9b70
+0, 234000, 152064, 0x4f6114c3
+0, 237600, 152064, 0x5a64e819
+0, 241200, 152064, 0x20bce1a1
+0, 244800, 152064, 0x6b196d49
+0, 248400, 152064, 0x7c1535a6
+0, 252000, 152064, 0x9b5225a4
+0, 255600, 152064, 0x72c5f185
+0, 259200, 152064, 0x3da4f50d
+0, 262800, 152064, 0xd7f7af48
+0, 266400, 152064, 0x0e1a8f2e
+0, 270000, 152064, 0xb8b036cc
+0, 273600, 152064, 0x003a2b62
+0, 277200, 152064, 0x7777f6bd
+0, 280800, 152064, 0x91003021
+0, 284400, 152064, 0xb2e1af8c
+0, 288000, 152064, 0xae6676bc
+0, 291600, 152064, 0x72f55c98
+0, 295200, 152064, 0x9dfb52bc
+0, 298800, 152064, 0x4b6b0db4
+0, 302400, 152064, 0xba8bab86
+0, 306000, 152064, 0x775a8da0
+0, 309600, 152064, 0x96a35194
+0, 313200, 152064, 0x17732a58
+0, 316800, 152064, 0x45eef560
+0, 320400, 152064, 0x95c79208
diff --git a/tests/ref/fate/h264-conformance-cvwp2_toshiba_e b/tests/ref/fate/h264-conformance-cvwp2_toshiba_e
new file mode 100644
index 0000000000..4e904bc7af
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvwp2_toshiba_e
@@ -0,0 +1,90 @@
+0, 0, 152064, 0xf503fb79
+0, 3600, 152064, 0xeaa4ba5d
+0, 7200, 152064, 0x50865a33
+0, 10800, 152064, 0x34125f86
+0, 14400, 152064, 0xc5a8bb68
+0, 18000, 152064, 0xe6e9b376
+0, 21600, 152064, 0x4e41d48e
+0, 25200, 152064, 0xea73cc5d
+0, 28800, 152064, 0xc0c60ac0
+0, 32400, 152064, 0xd7110670
+0, 36000, 152064, 0x00465d0d
+0, 39600, 152064, 0xa37a726b
+0, 43200, 152064, 0x5dd13b2a
+0, 46800, 152064, 0x08471f31
+0, 50400, 152064, 0x2bb2b055
+0, 54000, 152064, 0xd06d7f1c
+0, 57600, 152064, 0x91fde84a
+0, 61200, 152064, 0xdbb52d2b
+0, 64800, 152064, 0x505c08b4
+0, 68400, 152064, 0xd8aeef9f
+0, 72000, 152064, 0x4e3f8721
+0, 75600, 152064, 0xce534aee
+0, 79200, 152064, 0x51f80737
+0, 82800, 152064, 0x8fa0e443
+0, 86400, 152064, 0xe8c9db17
+0, 90000, 152064, 0xc84bcee6
+0, 93600, 152064, 0xa7916158
+0, 97200, 152064, 0x16149c36
+0, 100800, 152064, 0xe55213fd
+0, 104400, 152064, 0xa701e59d
+0, 108000, 152064, 0xad65e200
+0, 111600, 152064, 0x4606dc82
+0, 115200, 152064, 0x582f9f64
+0, 118800, 152064, 0xc630662a
+0, 122400, 152064, 0xe54bacf5
+0, 126000, 152064, 0x230e387f
+0, 129600, 152064, 0x1a9c746c
+0, 133200, 152064, 0xfa002d7c
+0, 136800, 152064, 0xe617c4a9
+0, 140400, 152064, 0xd3a4df19
+0, 144000, 152064, 0x25b9ca8c
+0, 147600, 152064, 0x0c505f7c
+0, 151200, 152064, 0x43f84f88
+0, 154800, 152064, 0x859fb3af
+0, 158400, 152064, 0x9680fc13
+0, 162000, 152064, 0x3fe6ecb6
+0, 165600, 152064, 0xf4c05a9c
+0, 169200, 152064, 0x16ba3b13
+0, 172800, 152064, 0x72f33fb9
+0, 176400, 152064, 0x3076e567
+0, 180000, 152064, 0x4e69b604
+0, 183600, 152064, 0x9c37a98b
+0, 187200, 152064, 0x0d5756c7
+0, 190800, 152064, 0xa4a46a81
+0, 194400, 152064, 0xadfc89d7
+0, 198000, 152064, 0x35693493
+0, 201600, 152064, 0xe3baedbf
+0, 205200, 152064, 0x78cfb405
+0, 208800, 152064, 0xd85c7074
+0, 212400, 152064, 0x14ab350e
+0, 216000, 152064, 0xaf55433e
+0, 219600, 152064, 0x75a8e79f
+0, 223200, 152064, 0x2fb599f6
+0, 226800, 152064, 0xbe30bdfe
+0, 230400, 152064, 0x8b07a5ce
+0, 234000, 152064, 0x99b32730
+0, 237600, 152064, 0x9265182d
+0, 241200, 152064, 0x91e789fd
+0, 244800, 152064, 0x1c1e6d16
+0, 248400, 152064, 0xfa06bdaa
+0, 252000, 152064, 0x7177041f
+0, 255600, 152064, 0xd902f99d
+0, 259200, 152064, 0x29bdc134
+0, 262800, 152064, 0xd713ab76
+0, 266400, 152064, 0x60e4788e
+0, 270000, 152064, 0xb18c7789
+0, 273600, 152064, 0x0b7829a5
+0, 277200, 152064, 0xf676d780
+0, 280800, 152064, 0xa88a3a57
+0, 284400, 152064, 0x825cf289
+0, 288000, 152064, 0x78928201
+0, 291600, 152064, 0x013a589c
+0, 295200, 152064, 0x9269fa64
+0, 298800, 152064, 0x6db5f5fa
+0, 302400, 152064, 0x49ad9d6a
+0, 306000, 152064, 0x1b7c290f
+0, 309600, 152064, 0x99716ad1
+0, 313200, 152064, 0x371527c2
+0, 316800, 152064, 0x9f351841
+0, 320400, 152064, 0x884bb432
diff --git a/tests/ref/fate/h264-conformance-cvwp3_toshiba_e b/tests/ref/fate/h264-conformance-cvwp3_toshiba_e
new file mode 100644
index 0000000000..e78f20904b
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvwp3_toshiba_e
@@ -0,0 +1,90 @@
+0, 0, 152064, 0x3b3ffd31
+0, 3600, 152064, 0x14e0b899
+0, 7200, 152064, 0x50865a33
+0, 10800, 152064, 0x12e749e5
+0, 14400, 152064, 0xe5921130
+0, 18000, 152064, 0x2ca3b10d
+0, 21600, 152064, 0xa9a39f04
+0, 25200, 152064, 0x2c78761a
+0, 28800, 152064, 0x70890ad7
+0, 32400, 152064, 0x4fc30132
+0, 36000, 152064, 0x10e4d2c9
+0, 39600, 152064, 0xa3326b50
+0, 43200, 152064, 0x8e054bf1
+0, 46800, 152064, 0x5bd91687
+0, 50400, 152064, 0x70bab119
+0, 54000, 152064, 0x9a1ab472
+0, 57600, 152064, 0x490776a0
+0, 61200, 152064, 0xdbb52d2b
+0, 64800, 152064, 0x142714b9
+0, 68400, 152064, 0xa051ee6f
+0, 72000, 152064, 0xafa97fdf
+0, 75600, 152064, 0x1ae67347
+0, 79200, 152064, 0xc4f42ed6
+0, 82800, 152064, 0x4445dc60
+0, 86400, 152064, 0xaef4d04b
+0, 90000, 152064, 0x6a51be82
+0, 93600, 152064, 0x48356190
+0, 97200, 152064, 0xc09b5f5d
+0, 100800, 152064, 0x933d3379
+0, 104400, 152064, 0xfb57e471
+0, 108000, 152064, 0xb5b2f45c
+0, 111600, 152064, 0xce36e45e
+0, 115200, 152064, 0x582f9f64
+0, 118800, 152064, 0x2f45b1fd
+0, 122400, 152064, 0x90708fa0
+0, 126000, 152064, 0xee483b8f
+0, 129600, 152064, 0xd2163e6c
+0, 133200, 152064, 0x39492dfe
+0, 136800, 152064, 0xf89cc57f
+0, 140400, 152064, 0xbfc3c411
+0, 144000, 152064, 0x919eb007
+0, 147600, 152064, 0x2c526309
+0, 151200, 152064, 0x39f067a2
+0, 154800, 152064, 0xb7653abb
+0, 158400, 152064, 0xe26a035c
+0, 162000, 152064, 0xcef1eb3b
+0, 165600, 152064, 0xb8b3c55f
+0, 169200, 152064, 0x16ba3b13
+0, 172800, 152064, 0x153a3117
+0, 176400, 152064, 0x90a21859
+0, 180000, 152064, 0x9231b756
+0, 183600, 152064, 0x65fcbcb9
+0, 187200, 152064, 0x447eaf44
+0, 190800, 152064, 0xa26b6a8e
+0, 194400, 152064, 0x100464f8
+0, 198000, 152064, 0x479648ec
+0, 201600, 152064, 0x6742f51f
+0, 205200, 152064, 0x14e9d906
+0, 208800, 152064, 0xa058ab87
+0, 212400, 152064, 0x8d093874
+0, 216000, 152064, 0xef7f2965
+0, 219600, 152064, 0x200d02bd
+0, 223200, 152064, 0x2fb599f6
+0, 226800, 152064, 0xf65fb6e4
+0, 230400, 152064, 0x489a9152
+0, 234000, 152064, 0xbe8a2fc2
+0, 237600, 152064, 0xea04097e
+0, 241200, 152064, 0xaf0cd627
+0, 244800, 152064, 0xc0a26b27
+0, 248400, 152064, 0x985f67e7
+0, 252000, 152064, 0x7d1b4c4c
+0, 255600, 152064, 0x9908f838
+0, 259200, 152064, 0xb8fef131
+0, 262800, 152064, 0xb1feaf6c
+0, 266400, 152064, 0x37b16bda
+0, 270000, 152064, 0x242471aa
+0, 273600, 152064, 0xf18c3839
+0, 277200, 152064, 0xf676d780
+0, 280800, 152064, 0x17bd0f76
+0, 284400, 152064, 0x3703e7a6
+0, 288000, 152064, 0x69ba8a8a
+0, 291600, 152064, 0x205281b3
+0, 295200, 152064, 0x54bf51e1
+0, 298800, 152064, 0xf6daf8ed
+0, 302400, 152064, 0x8728e805
+0, 306000, 152064, 0xe98cd2b0
+0, 309600, 152064, 0x7ef76e26
+0, 313200, 152064, 0x0fbf5230
+0, 316800, 152064, 0x9e4d104b
+0, 320400, 152064, 0xd562b815
diff --git a/tests/ref/fate/h264-conformance-cvwp5_toshiba_e b/tests/ref/fate/h264-conformance-cvwp5_toshiba_e
new file mode 100644
index 0000000000..30f691259d
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-cvwp5_toshiba_e
@@ -0,0 +1,90 @@
+0, 0, 152064, 0xabf9ae05
+0, 3600, 152064, 0x20418b16
+0, 7200, 152064, 0x20f72775
+0, 10800, 152064, 0x57c07111
+0, 14400, 152064, 0x1b49267f
+0, 18000, 152064, 0x024cd238
+0, 21600, 152064, 0x044d1ae0
+0, 25200, 152064, 0xbfec1b59
+0, 28800, 152064, 0x1a91f935
+0, 32400, 152064, 0x9ee184dc
+0, 36000, 152064, 0x65047dbe
+0, 39600, 152064, 0xd1632fb5
+0, 43200, 152064, 0x56f64c3e
+0, 46800, 152064, 0xe6122f37
+0, 50400, 152064, 0x0575e670
+0, 54000, 152064, 0x3d457728
+0, 57600, 152064, 0x6b508105
+0, 61200, 152064, 0xcaaf5ea7
+0, 64800, 152064, 0x9f4e4501
+0, 68400, 152064, 0x1c661a73
+0, 72000, 152064, 0x2fd9d1c8
+0, 75600, 152064, 0x4ac99ab1
+0, 79200, 152064, 0xf2d36809
+0, 82800, 152064, 0xa8e32ffb
+0, 86400, 152064, 0xd4da2fd2
+0, 90000, 152064, 0xac3adde0
+0, 93600, 152064, 0xf014ed0f
+0, 97200, 152064, 0xca2e7d28
+0, 100800, 152064, 0x3a875e51
+0, 104400, 152064, 0xc03e4bda
+0, 108000, 152064, 0x4fdfb595
+0, 111600, 152064, 0x9243f098
+0, 115200, 152064, 0x9361bae6
+0, 118800, 152064, 0x7a1dadee
+0, 122400, 152064, 0x72a59e15
+0, 126000, 152064, 0xb5b47170
+0, 129600, 152064, 0x5eb16651
+0, 133200, 152064, 0xe7894af7
+0, 136800, 152064, 0x2683bb0b
+0, 140400, 152064, 0x90b4c8c5
+0, 144000, 152064, 0xf800c5b5
+0, 147600, 152064, 0xc2f5a895
+0, 151200, 152064, 0x213c65d4
+0, 154800, 152064, 0x01c65a19
+0, 158400, 152064, 0xd9f1b04b
+0, 162000, 152064, 0xa8d1b139
+0, 165600, 152064, 0x2d0cb0cd
+0, 169200, 152064, 0x5b0783fe
+0, 172800, 152064, 0x29e628ec
+0, 176400, 152064, 0x1b8527e5
+0, 180000, 152064, 0x4b46d179
+0, 183600, 152064, 0x6184c708
+0, 187200, 152064, 0x697bb8e2
+0, 190800, 152064, 0x5fd3a772
+0, 194400, 152064, 0x91456c86
+0, 198000, 152064, 0x376c4dae
+0, 201600, 152064, 0x00ba2b3f
+0, 205200, 152064, 0xf6f0f553
+0, 208800, 152064, 0xc0020855
+0, 212400, 152064, 0xec3d13d2
+0, 216000, 152064, 0xb7d7f1dc
+0, 219600, 152064, 0xf9dae37b
+0, 223200, 152064, 0x50d9cc93
+0, 226800, 152064, 0xba1eb592
+0, 230400, 152064, 0x67616557
+0, 234000, 152064, 0x09804760
+0, 237600, 152064, 0xc2ffba00
+0, 241200, 152064, 0xb71fcf46
+0, 244800, 152064, 0x6cd975af
+0, 248400, 152064, 0x19189167
+0, 252000, 152064, 0xbca8fe71
+0, 255600, 152064, 0xb0b3f607
+0, 259200, 152064, 0x7614d73a
+0, 262800, 152064, 0x7de9d87d
+0, 266400, 152064, 0x81f58cf2
+0, 270000, 152064, 0xb8b036cc
+0, 273600, 152064, 0x26d1e2e4
+0, 277200, 152064, 0xb41a1e6c
+0, 280800, 152064, 0x4f9be4a9
+0, 284400, 152064, 0xe95ad5d3
+0, 288000, 152064, 0xdffc9335
+0, 291600, 152064, 0x01d658c0
+0, 295200, 152064, 0x631b4b75
+0, 298800, 152064, 0x80ae282f
+0, 302400, 152064, 0xb34bf688
+0, 306000, 152064, 0xd0cc7d65
+0, 309600, 152064, 0x86aa4590
+0, 313200, 152064, 0xcb515a57
+0, 316800, 152064, 0x68650834
+0, 320400, 152064, 0x444ee2a4
diff --git a/tests/ref/fate/h264-conformance-fi1_sony_e b/tests/ref/fate/h264-conformance-fi1_sony_e
new file mode 100644
index 0000000000..5b7f4c8892
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-fi1_sony_e
@@ -0,0 +1,17 @@
+0, 0, 36864, 0x3d54d3e3
+0, 3600, 36864, 0xa9573ef0
+0, 7200, 36864, 0x0ea5f263
+0, 10800, 36864, 0x5a849fb9
+0, 14400, 36864, 0x7ddb1eff
+0, 18000, 36864, 0x5e73e3b7
+0, 21600, 36864, 0x7d50d329
+0, 25200, 36864, 0xf2c2cd27
+0, 28800, 36864, 0xdf4f4628
+0, 32400, 36864, 0xddd6d5be
+0, 36000, 36864, 0xb530e1aa
+0, 39600, 36864, 0xeca42470
+0, 43200, 36864, 0xa5701caf
+0, 46800, 36864, 0x6f5d28fc
+0, 50400, 36864, 0xd4ab4ab2
+0, 54000, 36864, 0xf2dfcc22
+0, 57600, 36864, 0xcaa87e79
diff --git a/tests/ref/fate/h264-conformance-frext-alphaconformanceg b/tests/ref/fate/h264-conformance-frext-alphaconformanceg
new file mode 100644
index 0000000000..02a7274292
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-alphaconformanceg
@@ -0,0 +1,43 @@
+0, 0, 783360, 0xbc458a9a
+0, 3600, 783360, 0xc2b4a765
+0, 7200, 783360, 0x40a8ca87
+0, 10800, 783360, 0xdd0cbc2c
+0, 14400, 783360, 0xecf8e434
+0, 18000, 783360, 0xcc87e3d4
+0, 21600, 783360, 0x386e1a34
+0, 25200, 783360, 0x6ac4a62e
+0, 28800, 783360, 0xf23d89bb
+0, 32400, 783360, 0x52f7b94c
+0, 36000, 783360, 0x2b4ea2c2
+0, 39600, 783360, 0x0a43839c
+0, 43200, 783360, 0xad4b81ea
+0, 46800, 783360, 0xcb4fe0d4
+0, 50400, 783360, 0x6c3ca755
+0, 54000, 783360, 0x17d37f49
+0, 57600, 783360, 0x8fdfebec
+0, 61200, 783360, 0x1a177b49
+0, 64800, 783360, 0x72d230ad
+0, 68400, 783360, 0x62147d69
+0, 72000, 783360, 0xeed9b62c
+0, 75600, 783360, 0x7fc45b23
+0, 79200, 783360, 0x5dc60681
+0, 82800, 783360, 0x2d91c001
+0, 86400, 783360, 0x259ab608
+0, 90000, 783360, 0x29112b29
+0, 93600, 783360, 0x7e4d497e
+0, 97200, 783360, 0x616e5507
+0, 100800, 783360, 0x299473c9
+0, 104400, 783360, 0x4d63d722
+0, 108000, 783360, 0xa89e4bc6
+0, 111600, 783360, 0xbdef585a
+0, 115200, 783360, 0x5b12c72c
+0, 118800, 783360, 0x5a884bd8
+0, 122400, 783360, 0x97728ade
+0, 126000, 783360, 0x27dd8999
+0, 129600, 783360, 0x94104d66
+0, 133200, 783360, 0xf30244f1
+0, 136800, 783360, 0xfc98c63e
+0, 140400, 783360, 0x8b27de2e
+0, 144000, 783360, 0xfc6bbbf2
+0, 147600, 783360, 0x4527b6a3
+0, 151200, 783360, 0x4070daf0
diff --git a/tests/ref/fate/h264-conformance-frext-bcrm_freh10 b/tests/ref/fate/h264-conformance-frext-bcrm_freh10
new file mode 100644
index 0000000000..252214ebda
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-bcrm_freh10
@@ -0,0 +1,100 @@
+0, 0, 152064, 0xbdc2b880
+0, 3600, 152064, 0x4ebf93fe
+0, 7200, 152064, 0xe30d6871
+0, 10800, 152064, 0x04f46b9b
+0, 14400, 152064, 0xd7dd219a
+0, 18000, 152064, 0x02fc6511
+0, 21600, 152064, 0x98868faa
+0, 25200, 152064, 0x54b94f92
+0, 28800, 152064, 0xe3b6be4b
+0, 32400, 152064, 0xf148cf10
+0, 36000, 152064, 0xda3239b8
+0, 39600, 152064, 0x6c5d7331
+0, 43200, 152064, 0x825f1fea
+0, 46800, 152064, 0x47791056
+0, 50400, 152064, 0xc08e8a58
+0, 54000, 152064, 0x020299f3
+0, 57600, 152064, 0x0dfd4457
+0, 61200, 152064, 0xcf005e68
+0, 64800, 152064, 0x1f9e2c32
+0, 68400, 152064, 0xa8359324
+0, 72000, 152064, 0x4b03752d
+0, 75600, 152064, 0xd6281621
+0, 79200, 152064, 0xc97ac928
+0, 82800, 152064, 0xded90dcd
+0, 86400, 152064, 0xd6883255
+0, 90000, 152064, 0x6edb4d4f
+0, 93600, 152064, 0xd6f93a80
+0, 97200, 152064, 0x163d6153
+0, 100800, 152064, 0x04b90c06
+0, 104400, 152064, 0xee8730c1
+0, 108000, 152064, 0xd5f5c669
+0, 111600, 152064, 0xcc600b1f
+0, 115200, 152064, 0x15ddde03
+0, 118800, 152064, 0xd0388dd0
+0, 122400, 152064, 0xa292ab7d
+0, 126000, 152064, 0xacf584e9
+0, 129600, 152064, 0xcef42714
+0, 133200, 152064, 0xeb162f35
+0, 136800, 152064, 0x0a07de7b
+0, 140400, 152064, 0x7ae76c81
+0, 144000, 152064, 0x139c8fda
+0, 147600, 152064, 0x43724411
+0, 151200, 152064, 0x07b2ddea
+0, 154800, 152064, 0x831a1cc7
+0, 158400, 152064, 0x092f5073
+0, 162000, 152064, 0xe5b6d380
+0, 165600, 152064, 0xdd30d69e
+0, 169200, 152064, 0x887020b2
+0, 172800, 152064, 0x84436510
+0, 176400, 152064, 0x49f63606
+0, 180000, 152064, 0x6b96e959
+0, 183600, 152064, 0xc6247cc7
+0, 187200, 152064, 0x7a67c532
+0, 190800, 152064, 0x93f4c476
+0, 194400, 152064, 0x3c119654
+0, 198000, 152064, 0xa45f7c72
+0, 201600, 152064, 0x2ac50cb0
+0, 205200, 152064, 0x9bf16d06
+0, 208800, 152064, 0xfa0750d9
+0, 212400, 152064, 0x02197630
+0, 216000, 152064, 0x6d44f9b5
+0, 219600, 152064, 0x86b211f5
+0, 223200, 152064, 0xf4fda5d0
+0, 226800, 152064, 0x36f840a7
+0, 230400, 152064, 0x42412992
+0, 234000, 152064, 0xd0c9ba37
+0, 237600, 152064, 0xc40eba62
+0, 241200, 152064, 0x2d093b53
+0, 244800, 152064, 0xee39c69c
+0, 248400, 152064, 0xcbbf8968
+0, 252000, 152064, 0xfddc1704
+0, 255600, 152064, 0x8dc47c61
+0, 259200, 152064, 0xf15580bf
+0, 262800, 152064, 0x9c71a8b0
+0, 266400, 152064, 0x19b90b9f
+0, 270000, 152064, 0xb65ae287
+0, 273600, 152064, 0xf265693d
+0, 277200, 152064, 0x721714a1
+0, 280800, 152064, 0x383e8ac5
+0, 284400, 152064, 0x02558677
+0, 288000, 152064, 0xdaab3cdf
+0, 291600, 152064, 0xc939a2f6
+0, 295200, 152064, 0x977afa7f
+0, 298800, 152064, 0xe5e65f35
+0, 302400, 152064, 0x247546fa
+0, 306000, 152064, 0x49ff2094
+0, 309600, 152064, 0x9fd58cda
+0, 313200, 152064, 0x3e31b6e3
+0, 316800, 152064, 0x75c6d796
+0, 320400, 152064, 0x4ab3e7bb
+0, 324000, 152064, 0x393935ea
+0, 327600, 152064, 0xc8e62905
+0, 331200, 152064, 0xbb149e61
+0, 334800, 152064, 0x2553c4c5
+0, 338400, 152064, 0x7f82a8b4
+0, 342000, 152064, 0x26ef31e6
+0, 345600, 152064, 0xf029744a
+0, 349200, 152064, 0x0a6f191a
+0, 352800, 152064, 0x55808643
+0, 356400, 152064, 0x27576172
diff --git a/tests/ref/fate/h264-conformance-frext-brcm_freh11 b/tests/ref/fate/h264-conformance-frext-brcm_freh11
new file mode 100644
index 0000000000..fa2e708dc6
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-brcm_freh11
@@ -0,0 +1,100 @@
+0, 0, 152064, 0x9744ac59
+0, 3600, 152064, 0x3eba88bf
+0, 7200, 152064, 0xd4105c5a
+0, 10800, 152064, 0x452966a3
+0, 14400, 152064, 0x30071add
+0, 18000, 152064, 0x0eb75245
+0, 21600, 152064, 0x4daa80fa
+0, 25200, 152064, 0xf53a43a1
+0, 28800, 152064, 0xa55ab43d
+0, 32400, 152064, 0x915ec82e
+0, 36000, 152064, 0xadce2f9a
+0, 39600, 152064, 0xf7a25715
+0, 43200, 152064, 0x90c91c7d
+0, 46800, 152064, 0x4f0df4ef
+0, 50400, 152064, 0xf6e0783c
+0, 54000, 152064, 0x417c8ca8
+0, 57600, 152064, 0xd33d29d8
+0, 61200, 152064, 0xc9723fa3
+0, 64800, 152064, 0x3e4f22f4
+0, 68400, 152064, 0xd5aa7bd8
+0, 72000, 152064, 0x2a425b54
+0, 75600, 152064, 0x2d400788
+0, 79200, 152064, 0x12fab3a4
+0, 82800, 152064, 0x5544f881
+0, 86400, 152064, 0xd0612cc5
+0, 90000, 152064, 0x157b3654
+0, 93600, 152064, 0x04b61fe0
+0, 97200, 152064, 0x897d600a
+0, 100800, 152064, 0x0d94fa29
+0, 104400, 152064, 0xc0fe249d
+0, 108000, 152064, 0x65abc1d6
+0, 111600, 152064, 0x2bd5f09d
+0, 115200, 152064, 0xd3eebd28
+0, 118800, 152064, 0x93458649
+0, 122400, 152064, 0x55e793a6
+0, 126000, 152064, 0x9fc378ce
+0, 129600, 152064, 0x24c32731
+0, 133200, 152064, 0x3c321c50
+0, 136800, 152064, 0xcef3ca8b
+0, 140400, 152064, 0x97116676
+0, 144000, 152064, 0x73ae78f6
+0, 147600, 152064, 0xdeec219e
+0, 151200, 152064, 0xc061d584
+0, 154800, 152064, 0xcf47f6c9
+0, 158400, 152064, 0x280d3a2d
+0, 162000, 152064, 0xb660c846
+0, 165600, 152064, 0xe167c588
+0, 169200, 152064, 0x08f808de
+0, 172800, 152064, 0x9de65c0b
+0, 176400, 152064, 0xc52a1937
+0, 180000, 152064, 0xf5a4d86f
+0, 183600, 152064, 0xbef86d37
+0, 187200, 152064, 0xa227b21b
+0, 190800, 152064, 0x0601ad35
+0, 194400, 152064, 0x15198730
+0, 198000, 152064, 0x9af764c6
+0, 201600, 152064, 0x1a95e99a
+0, 205200, 152064, 0x6bef5aa8
+0, 208800, 152064, 0x92f03267
+0, 212400, 152064, 0x0a3d56cb
+0, 216000, 152064, 0xd9c9f62e
+0, 219600, 152064, 0xcd81ea16
+0, 223200, 152064, 0x8ed789c0
+0, 226800, 152064, 0x5a5e356f
+0, 230400, 152064, 0x2f260ebf
+0, 234000, 152064, 0xa0379c89
+0, 237600, 152064, 0x100cb40c
+0, 241200, 152064, 0xaad2220a
+0, 244800, 152064, 0xec82aa8d
+0, 248400, 152064, 0x91088303
+0, 252000, 152064, 0x0cce0e9e
+0, 255600, 152064, 0xf3bc716a
+0, 259200, 152064, 0x989879c5
+0, 262800, 152064, 0x491297a0
+0, 266400, 152064, 0xdc16f30d
+0, 270000, 152064, 0xb9bfdd57
+0, 273600, 152064, 0x5fba59c2
+0, 277200, 152064, 0x89c40529
+0, 280800, 152064, 0x1b3e7b54
+0, 284400, 152064, 0x5d0d7903
+0, 288000, 152064, 0x2e3434e1
+0, 291600, 152064, 0x1f47a276
+0, 295200, 152064, 0xa22de2b1
+0, 298800, 152064, 0x77344844
+0, 302400, 152064, 0x6a6b3fce
+0, 306000, 152064, 0x82660651
+0, 309600, 152064, 0x51e67cc9
+0, 313200, 152064, 0xb790ae51
+0, 316800, 152064, 0x906bc6b6
+0, 320400, 152064, 0x55c5dc21
+0, 324000, 152064, 0xb51f3004
+0, 327600, 152064, 0x68500a25
+0, 331200, 152064, 0x5dbc812e
+0, 334800, 152064, 0x895eb6ed
+0, 338400, 152064, 0x2f5594fc
+0, 342000, 152064, 0x04a222a9
+0, 345600, 152064, 0x90036f6a
+0, 349200, 152064, 0x8b8b064c
+0, 352800, 152064, 0xd47c7334
+0, 356400, 152064, 0x13f06213
diff --git a/tests/ref/fate/h264-conformance-frext-brcm_freh3 b/tests/ref/fate/h264-conformance-frext-brcm_freh3
new file mode 100644
index 0000000000..4a5671024c
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-brcm_freh3
@@ -0,0 +1,100 @@
+0, 0, 152064, 0x9f9caf3c
+0, 3600, 152064, 0x4e8e9dc4
+0, 7200, 152064, 0x7eab62be
+0, 10800, 152064, 0x79de6e48
+0, 14400, 152064, 0x6bb843f3
+0, 18000, 152064, 0xd0e96c36
+0, 21600, 152064, 0x061a9036
+0, 25200, 152064, 0x342c42ea
+0, 28800, 152064, 0x9835cfc3
+0, 32400, 152064, 0x129ed3dd
+0, 36000, 152064, 0x81413cf7
+0, 39600, 152064, 0xcd16539e
+0, 43200, 152064, 0x927728cd
+0, 46800, 152064, 0x5ebd1126
+0, 50400, 152064, 0x9ad29eb3
+0, 54000, 152064, 0x0ae5a447
+0, 57600, 152064, 0xaf275266
+0, 61200, 152064, 0x98f96209
+0, 64800, 152064, 0x5fcf241f
+0, 68400, 152064, 0x17507ee5
+0, 72000, 152064, 0xb4ad5f2d
+0, 75600, 152064, 0x02fff6da
+0, 79200, 152064, 0x8726c662
+0, 82800, 152064, 0x8ca707d5
+0, 86400, 152064, 0xe41f3946
+0, 90000, 152064, 0xc7b34d1e
+0, 93600, 152064, 0x25146571
+0, 97200, 152064, 0xeb4868f4
+0, 100800, 152064, 0xd0fe149d
+0, 104400, 152064, 0x31043d0a
+0, 108000, 152064, 0xdaf2ba1c
+0, 111600, 152064, 0xb474076c
+0, 115200, 152064, 0x0cf7f1a2
+0, 118800, 152064, 0x2e427793
+0, 122400, 152064, 0x08d9a655
+0, 126000, 152064, 0x79bc8fc9
+0, 129600, 152064, 0xb9871e5c
+0, 133200, 152064, 0xca1246df
+0, 136800, 152064, 0x08c8d524
+0, 140400, 152064, 0xb9be5ecb
+0, 144000, 152064, 0x807f87f0
+0, 147600, 152064, 0x72eb3ab2
+0, 151200, 152064, 0xf463d15f
+0, 154800, 152064, 0x857d0471
+0, 158400, 152064, 0x5dda5ede
+0, 162000, 152064, 0xec33b550
+0, 165600, 152064, 0x2217b9bb
+0, 169200, 152064, 0x060b0fa4
+0, 172800, 152064, 0x5a785b49
+0, 176400, 152064, 0x6969268b
+0, 180000, 152064, 0xe145d3a4
+0, 183600, 152064, 0xb7256e99
+0, 187200, 152064, 0x5bbebf16
+0, 190800, 152064, 0x9234b31e
+0, 194400, 152064, 0x9f0f8c7e
+0, 198000, 152064, 0x15e271c4
+0, 201600, 152064, 0xe8110297
+0, 205200, 152064, 0x1a4364f3
+0, 208800, 152064, 0xb7b336f8
+0, 212400, 152064, 0x31657acb
+0, 216000, 152064, 0xd8e1de00
+0, 219600, 152064, 0x9a57117a
+0, 223200, 152064, 0xfb828be8
+0, 226800, 152064, 0x30bf2ab7
+0, 230400, 152064, 0xaf840b27
+0, 234000, 152064, 0x900cbcd4
+0, 237600, 152064, 0x6439acfc
+0, 241200, 152064, 0x716036fd
+0, 244800, 152064, 0xc3d9baa8
+0, 248400, 152064, 0x455f7d1f
+0, 252000, 152064, 0x84c10d78
+0, 255600, 152064, 0x2cd76642
+0, 259200, 152064, 0x5c746b3a
+0, 262800, 152064, 0x92e39e7d
+0, 266400, 152064, 0xae610df8
+0, 270000, 152064, 0xc8bac3fa
+0, 273600, 152064, 0x04be8a35
+0, 277200, 152064, 0xaaf91b17
+0, 280800, 152064, 0x5afa8764
+0, 284400, 152064, 0x31828a12
+0, 288000, 152064, 0xf1bd3da9
+0, 291600, 152064, 0xbbb2aaef
+0, 295200, 152064, 0xcf69efa1
+0, 298800, 152064, 0x54e85e1b
+0, 302400, 152064, 0x89ff3a1a
+0, 306000, 152064, 0x86c80511
+0, 309600, 152064, 0x41c886f2
+0, 313200, 152064, 0x9f2ebd74
+0, 316800, 152064, 0x74d3d0e0
+0, 320400, 152064, 0xc79501cc
+0, 324000, 152064, 0x123e23e2
+0, 327600, 152064, 0xb6122ea0
+0, 331200, 152064, 0x551f95df
+0, 334800, 152064, 0x0652ac2d
+0, 338400, 152064, 0x6483a8ad
+0, 342000, 152064, 0x7f632ae2
+0, 345600, 152064, 0xae74622f
+0, 349200, 152064, 0xdd411339
+0, 352800, 152064, 0xff0e7f69
+0, 356400, 152064, 0x8b3a5933
diff --git a/tests/ref/fate/h264-conformance-frext-brcm_freh4 b/tests/ref/fate/h264-conformance-frext-brcm_freh4
new file mode 100644
index 0000000000..8f0305a34d
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-brcm_freh4
@@ -0,0 +1,100 @@
+0, 0, 152064, 0x9744ac59
+0, 3600, 152064, 0xe1c69d97
+0, 7200, 152064, 0x9ae85f93
+0, 10800, 152064, 0x452966a3
+0, 14400, 152064, 0xe8192823
+0, 18000, 152064, 0x58b764eb
+0, 21600, 152064, 0x51b686b1
+0, 25200, 152064, 0x4bca5822
+0, 28800, 152064, 0x29abc41c
+0, 32400, 152064, 0x850ec94f
+0, 36000, 152064, 0xac2c34f8
+0, 39600, 152064, 0x080c6e67
+0, 43200, 152064, 0x5e4e14d2
+0, 46800, 152064, 0x978b054c
+0, 50400, 152064, 0x861d8c3c
+0, 54000, 152064, 0xe0818918
+0, 57600, 152064, 0x8b834511
+0, 61200, 152064, 0x223f567c
+0, 64800, 152064, 0x6d61298d
+0, 68400, 152064, 0xfe30826e
+0, 72000, 152064, 0x4bad4f98
+0, 75600, 152064, 0x69d5fdca
+0, 79200, 152064, 0xe45bba1b
+0, 82800, 152064, 0xa6d81298
+0, 86400, 152064, 0x7f3f2c91
+0, 90000, 152064, 0x658754b9
+0, 93600, 152064, 0x2c6d3eba
+0, 97200, 152064, 0x4500600c
+0, 100800, 152064, 0xa745f74b
+0, 104400, 152064, 0x2bf21fca
+0, 108000, 152064, 0x08b8bdb3
+0, 111600, 152064, 0x5a9d0a8b
+0, 115200, 152064, 0x3a57d523
+0, 118800, 152064, 0x3606826e
+0, 122400, 152064, 0x3b91a8fb
+0, 126000, 152064, 0x37c28959
+0, 129600, 152064, 0xb51d1e75
+0, 133200, 152064, 0x13be3f58
+0, 136800, 152064, 0x0ed0e7cf
+0, 140400, 152064, 0x298560d4
+0, 144000, 152064, 0x62b68373
+0, 147600, 152064, 0xf8bb4520
+0, 151200, 152064, 0x90dfd6af
+0, 154800, 152064, 0xf4770d20
+0, 158400, 152064, 0x0d9549a0
+0, 162000, 152064, 0x004eccb1
+0, 165600, 152064, 0x3146d46b
+0, 169200, 152064, 0x078d1808
+0, 172800, 152064, 0x5d8d60cd
+0, 176400, 152064, 0x8ff52dd8
+0, 180000, 152064, 0x5aa3ccf7
+0, 183600, 152064, 0x5bec6c39
+0, 187200, 152064, 0xd44cae9d
+0, 190800, 152064, 0xa1b0a151
+0, 194400, 152064, 0xe3be7bb2
+0, 198000, 152064, 0x50096775
+0, 201600, 152064, 0xdffff851
+0, 205200, 152064, 0x1d7250eb
+0, 208800, 152064, 0x69663ca7
+0, 212400, 152064, 0x62f77fc7
+0, 216000, 152064, 0xbab8f471
+0, 219600, 152064, 0x6af31785
+0, 223200, 152064, 0xcbb2a9aa
+0, 226800, 152064, 0xc57c32b9
+0, 230400, 152064, 0xecbe2ce0
+0, 234000, 152064, 0x2fbebf81
+0, 237600, 152064, 0xa168af68
+0, 241200, 152064, 0x1e5631ac
+0, 244800, 152064, 0xe69fc927
+0, 248400, 152064, 0x8e5c81d8
+0, 252000, 152064, 0x42402010
+0, 255600, 152064, 0xd7267482
+0, 259200, 152064, 0x64b280df
+0, 262800, 152064, 0xc4cbafcc
+0, 266400, 152064, 0xcf2f1e8b
+0, 270000, 152064, 0x4d6fdb3f
+0, 273600, 152064, 0xf22d6fed
+0, 277200, 152064, 0x625b167c
+0, 280800, 152064, 0x41348089
+0, 284400, 152064, 0x6db2779b
+0, 288000, 152064, 0xe87030a8
+0, 291600, 152064, 0x91b29cdd
+0, 295200, 152064, 0xe824f242
+0, 298800, 152064, 0xac995380
+0, 302400, 152064, 0x7efe361b
+0, 306000, 152064, 0xe10c0c26
+0, 309600, 152064, 0x93108260
+0, 313200, 152064, 0xbf4caed7
+0, 316800, 152064, 0xb6a4d826
+0, 320400, 152064, 0x78beea4e
+0, 324000, 152064, 0xdf612df9
+0, 327600, 152064, 0xa9ef2830
+0, 331200, 152064, 0x06448895
+0, 334800, 152064, 0x332eb6d5
+0, 338400, 152064, 0x935ba2c5
+0, 342000, 152064, 0x62a22656
+0, 345600, 152064, 0x06a670a7
+0, 349200, 152064, 0xf60b1af0
+0, 352800, 152064, 0x85177c10
+0, 356400, 152064, 0x5e4e5c4b
diff --git a/tests/ref/fate/h264-conformance-frext-brcm_freh5 b/tests/ref/fate/h264-conformance-frext-brcm_freh5
new file mode 100644
index 0000000000..dc7efef63b
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-brcm_freh5
@@ -0,0 +1,100 @@
+0, 0, 152064, 0xd816ae9a
+0, 3600, 152064, 0x970e9c33
+0, 7200, 152064, 0xbdd14635
+0, 10800, 152064, 0x103f667c
+0, 14400, 152064, 0x752b1ebb
+0, 18000, 152064, 0x1e9d59d4
+0, 21600, 152064, 0x4b9d89b6
+0, 25200, 152064, 0x16c1362e
+0, 28800, 152064, 0x3ea9a977
+0, 32400, 152064, 0x24e3c7fe
+0, 36000, 152064, 0xe64132fa
+0, 39600, 152064, 0xb2074e31
+0, 43200, 152064, 0x87e61824
+0, 46800, 152064, 0xf3e7f2d3
+0, 50400, 152064, 0x36856b98
+0, 54000, 152064, 0xe2be97dd
+0, 57600, 152064, 0xb99a3a3d
+0, 61200, 152064, 0xf4d04afa
+0, 64800, 152064, 0x20a92205
+0, 68400, 152064, 0x5f6272ca
+0, 72000, 152064, 0xe1f45d11
+0, 75600, 152064, 0x7ff113ee
+0, 79200, 152064, 0x47e8befb
+0, 82800, 152064, 0x562c03c6
+0, 86400, 152064, 0x197a311c
+0, 90000, 152064, 0x30017402
+0, 93600, 152064, 0x27e6384e
+0, 97200, 152064, 0x456f6152
+0, 100800, 152064, 0x368810d1
+0, 104400, 152064, 0x7be61b5f
+0, 108000, 152064, 0x5fa9aaef
+0, 111600, 152064, 0x957de9da
+0, 115200, 152064, 0x47c6bc4f
+0, 118800, 152064, 0xb2247b98
+0, 122400, 152064, 0xd045a416
+0, 126000, 152064, 0xa0b16da9
+0, 129600, 152064, 0xe9bd1d8f
+0, 133200, 152064, 0xe7881f4d
+0, 136800, 152064, 0x85e2d4a9
+0, 140400, 152064, 0x00a967cd
+0, 144000, 152064, 0x02507278
+0, 147600, 152064, 0xc511370e
+0, 151200, 152064, 0x7963cf0b
+0, 154800, 152064, 0xf99ef0fd
+0, 158400, 152064, 0x00813540
+0, 162000, 152064, 0xa9aeaf2b
+0, 165600, 152064, 0x559eb849
+0, 169200, 152064, 0x315605c1
+0, 172800, 152064, 0xe2594b7c
+0, 176400, 152064, 0x844ef85c
+0, 180000, 152064, 0x5012c785
+0, 183600, 152064, 0x239f600d
+0, 187200, 152064, 0x80a2a156
+0, 190800, 152064, 0xec239895
+0, 194400, 152064, 0xd7387dbe
+0, 198000, 152064, 0xe8aa6125
+0, 201600, 152064, 0x4742d997
+0, 205200, 152064, 0x88515422
+0, 208800, 152064, 0x3dd02167
+0, 212400, 152064, 0xe36855d1
+0, 216000, 152064, 0x202edeb9
+0, 219600, 152064, 0xf5a5eed3
+0, 223200, 152064, 0xd3bc6e68
+0, 226800, 152064, 0xba902a0a
+0, 230400, 152064, 0x4db4f721
+0, 234000, 152064, 0x293c90bd
+0, 237600, 152064, 0xa651a49f
+0, 241200, 152064, 0x5c1a2a7d
+0, 244800, 152064, 0xa67986de
+0, 248400, 152064, 0xe5fe7d26
+0, 252000, 152064, 0xde191b31
+0, 255600, 152064, 0x5e303cb1
+0, 259200, 152064, 0x657f6d5d
+0, 262800, 152064, 0x5c44adaa
+0, 266400, 152064, 0x8c3c0422
+0, 270000, 152064, 0x161cb54f
+0, 273600, 152064, 0xc96355c8
+0, 277200, 152064, 0xeb02fdec
+0, 280800, 152064, 0xd18a7989
+0, 284400, 152064, 0xc7d671bf
+0, 288000, 152064, 0x2e1637cc
+0, 291600, 152064, 0xd0d5958a
+0, 295200, 152064, 0x2f9dd79c
+0, 298800, 152064, 0xa96b4dd1
+0, 302400, 152064, 0x7bfc2eb9
+0, 306000, 152064, 0xc3c91809
+0, 309600, 152064, 0x9e167aa3
+0, 313200, 152064, 0xb47e9f6e
+0, 316800, 152064, 0x70e6c184
+0, 320400, 152064, 0x0d92e4e7
+0, 324000, 152064, 0xf4891b11
+0, 327600, 152064, 0x93f912c7
+0, 331200, 152064, 0xa3bc52c5
+0, 334800, 152064, 0xc6fca440
+0, 338400, 152064, 0x045aa5d4
+0, 342000, 152064, 0x15ba1dd0
+0, 345600, 152064, 0x59f45a8b
+0, 349200, 152064, 0x9dc20832
+0, 352800, 152064, 0x36316eb4
+0, 356400, 152064, 0x28ba54f4
diff --git a/tests/ref/fate/h264-conformance-frext-brcm_freh8 b/tests/ref/fate/h264-conformance-frext-brcm_freh8
new file mode 100644
index 0000000000..69a55e1b9f
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-brcm_freh8
@@ -0,0 +1,100 @@
+0, 0, 152064, 0xdcc4ac76
+0, 3600, 152064, 0xfde6871a
+0, 7200, 152064, 0xe8a351b5
+0, 10800, 152064, 0x0e586608
+0, 14400, 152064, 0xbe3c2adc
+0, 18000, 152064, 0x244a5b3c
+0, 21600, 152064, 0x7cad919e
+0, 25200, 152064, 0x24c452c0
+0, 28800, 152064, 0x089dc7f0
+0, 32400, 152064, 0x6ee5d1dd
+0, 36000, 152064, 0x177430f0
+0, 39600, 152064, 0xf2af65f6
+0, 43200, 152064, 0x4c4626a7
+0, 46800, 152064, 0x897af1da
+0, 50400, 152064, 0xf16199b1
+0, 54000, 152064, 0x2979a469
+0, 57600, 152064, 0x5ce345a0
+0, 61200, 152064, 0x1a044ff3
+0, 64800, 152064, 0x9075241f
+0, 68400, 152064, 0xd1457558
+0, 72000, 152064, 0xdfe3669f
+0, 75600, 152064, 0x4961fc7a
+0, 79200, 152064, 0xb84daee5
+0, 82800, 152064, 0xc4efe5c3
+0, 86400, 152064, 0x35f73410
+0, 90000, 152064, 0xf99a2c73
+0, 93600, 152064, 0xe5c12391
+0, 97200, 152064, 0xc2056236
+0, 100800, 152064, 0xce2bff90
+0, 104400, 152064, 0x01d92bb1
+0, 108000, 152064, 0xc55eb558
+0, 111600, 152064, 0xf02ef0ff
+0, 115200, 152064, 0x069dd1c6
+0, 118800, 152064, 0x49718229
+0, 122400, 152064, 0x0e9ea401
+0, 126000, 152064, 0x307e7f8b
+0, 129600, 152064, 0xf5071e31
+0, 133200, 152064, 0xac2c2ad0
+0, 136800, 152064, 0x5586d665
+0, 140400, 152064, 0xa62a6a2b
+0, 144000, 152064, 0xff167d1b
+0, 147600, 152064, 0x02d225c2
+0, 151200, 152064, 0x868ccb0b
+0, 154800, 152064, 0x36edfa29
+0, 158400, 152064, 0xb6244864
+0, 162000, 152064, 0xd891b5dc
+0, 165600, 152064, 0x9246b763
+0, 169200, 152064, 0xea240b61
+0, 172800, 152064, 0x2d985877
+0, 176400, 152064, 0xe6b92603
+0, 180000, 152064, 0x102ac84f
+0, 183600, 152064, 0xddaf709b
+0, 187200, 152064, 0x48dfb25e
+0, 190800, 152064, 0xf2acadbb
+0, 194400, 152064, 0x647685f5
+0, 198000, 152064, 0x893874c9
+0, 201600, 152064, 0xdfd7ed77
+0, 205200, 152064, 0x97b36277
+0, 208800, 152064, 0x59f33282
+0, 212400, 152064, 0xba5c6a0e
+0, 216000, 152064, 0x7856ddf0
+0, 219600, 152064, 0x74e5f095
+0, 223200, 152064, 0x76167a60
+0, 226800, 152064, 0xa6cf2255
+0, 230400, 152064, 0x9f8b1446
+0, 234000, 152064, 0xa775aa79
+0, 237600, 152064, 0x5662a698
+0, 241200, 152064, 0xe6321e5b
+0, 244800, 152064, 0xdaea9a83
+0, 248400, 152064, 0xd89d835f
+0, 252000, 152064, 0x0b1503e2
+0, 255600, 152064, 0x7fef6395
+0, 259200, 152064, 0xc27273f2
+0, 262800, 152064, 0xff9288fd
+0, 266400, 152064, 0xb76aee35
+0, 270000, 152064, 0xbd0dc4b2
+0, 273600, 152064, 0x3085598e
+0, 277200, 152064, 0x22e408f6
+0, 280800, 152064, 0xc054866d
+0, 284400, 152064, 0x881377f8
+0, 288000, 152064, 0x0dd7311e
+0, 291600, 152064, 0x627ea688
+0, 295200, 152064, 0x95bbe693
+0, 298800, 152064, 0x806c480f
+0, 302400, 152064, 0x6feb3d47
+0, 306000, 152064, 0x639f0a72
+0, 309600, 152064, 0x4922909d
+0, 313200, 152064, 0x44bbc195
+0, 316800, 152064, 0xf119ca8f
+0, 320400, 152064, 0x6f46e9c8
+0, 324000, 152064, 0xd68e222a
+0, 327600, 152064, 0xedc716eb
+0, 331200, 152064, 0x090a7702
+0, 334800, 152064, 0xc94eac7a
+0, 338400, 152064, 0x629d8823
+0, 342000, 152064, 0x30a51f8c
+0, 345600, 152064, 0x4265666b
+0, 349200, 152064, 0x766dfd25
+0, 352800, 152064, 0x7dc37c52
+0, 356400, 152064, 0x07c65fbe
diff --git a/tests/ref/fate/h264-conformance-frext-brcm_freh9 b/tests/ref/fate/h264-conformance-frext-brcm_freh9
new file mode 100644
index 0000000000..5b21b7f1e3
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-brcm_freh9
@@ -0,0 +1,100 @@
+0, 0, 152064, 0x9f9caf3c
+0, 3600, 152064, 0x68f285b1
+0, 7200, 152064, 0x28bd4987
+0, 10800, 152064, 0x79de6e48
+0, 14400, 152064, 0x48301bf9
+0, 18000, 152064, 0x2c9e516c
+0, 21600, 152064, 0xf774946a
+0, 25200, 152064, 0x36534317
+0, 28800, 152064, 0x98b7bd86
+0, 32400, 152064, 0x2aa3d50b
+0, 36000, 152064, 0xc4343429
+0, 39600, 152064, 0x276c5f04
+0, 43200, 152064, 0x042d2916
+0, 46800, 152064, 0x777ee739
+0, 50400, 152064, 0x1ce186d8
+0, 54000, 152064, 0x0ae5a447
+0, 57600, 152064, 0x179435a8
+0, 61200, 152064, 0x96d743b8
+0, 64800, 152064, 0x7dcc26b7
+0, 68400, 152064, 0x72c860c8
+0, 72000, 152064, 0x12a95052
+0, 75600, 152064, 0x1ed00304
+0, 79200, 152064, 0xf9f698be
+0, 82800, 152064, 0x768ef04d
+0, 86400, 152064, 0x873833ee
+0, 90000, 152064, 0x1b4a1e1e
+0, 93600, 152064, 0x67462224
+0, 97200, 152064, 0x0206612a
+0, 100800, 152064, 0xd203f197
+0, 104400, 152064, 0x5dc020b0
+0, 108000, 152064, 0xdaf2ba1c
+0, 111600, 152064, 0xad54e4b2
+0, 115200, 152064, 0x4273c281
+0, 118800, 152064, 0x0655817d
+0, 122400, 152064, 0xdea79e1c
+0, 126000, 152064, 0x60ae6d1e
+0, 129600, 152064, 0x45401d1b
+0, 133200, 152064, 0xc6b12160
+0, 136800, 152064, 0x163fbde9
+0, 140400, 152064, 0x91636a0c
+0, 144000, 152064, 0x442173a4
+0, 147600, 152064, 0x0f941379
+0, 151200, 152064, 0x0649caad
+0, 154800, 152064, 0x1238eaa4
+0, 158400, 152064, 0x86013d55
+0, 162000, 152064, 0xec33b550
+0, 165600, 152064, 0x4cc7b33d
+0, 169200, 152064, 0x4c93f8ab
+0, 172800, 152064, 0x0cf15a34
+0, 176400, 152064, 0x04b71770
+0, 180000, 152064, 0xf860cea8
+0, 183600, 152064, 0x77fb76a3
+0, 187200, 152064, 0xa494b27c
+0, 190800, 152064, 0xf7a0b0b2
+0, 194400, 152064, 0x4cae843b
+0, 198000, 152064, 0x590e6403
+0, 201600, 152064, 0xe439e63e
+0, 205200, 152064, 0xbeca5f92
+0, 208800, 152064, 0x31d9164f
+0, 212400, 152064, 0xedab54a9
+0, 216000, 152064, 0xd8e1de00
+0, 219600, 152064, 0xd04fe391
+0, 223200, 152064, 0xef6568b3
+0, 226800, 152064, 0x859a2811
+0, 230400, 152064, 0x9d5ffe6f
+0, 234000, 152064, 0x5a679908
+0, 237600, 152064, 0xc264a830
+0, 241200, 152064, 0xbfdf08c0
+0, 244800, 152064, 0x4fd68cb7
+0, 248400, 152064, 0x0a7b86f3
+0, 252000, 152064, 0xe4fe043b
+0, 255600, 152064, 0x8b186a22
+0, 259200, 152064, 0xf715765a
+0, 262800, 152064, 0xfd7b77e5
+0, 266400, 152064, 0x9e3fdd06
+0, 270000, 152064, 0xc8bac3fa
+0, 273600, 152064, 0x4e83449f
+0, 277200, 152064, 0xe5fefcff
+0, 280800, 152064, 0x89d77b09
+0, 284400, 152064, 0x77fd6f7e
+0, 288000, 152064, 0xa7ec356c
+0, 291600, 152064, 0x2000aa87
+0, 295200, 152064, 0xa9a1e267
+0, 298800, 152064, 0xf67c3fcc
+0, 302400, 152064, 0x10143acc
+0, 306000, 152064, 0xa5fa0476
+0, 309600, 152064, 0x2e8d8966
+0, 313200, 152064, 0x74ccbbde
+0, 316800, 152064, 0xf903b2cf
+0, 320400, 152064, 0x66a8d7ab
+0, 324000, 152064, 0x123e23e2
+0, 327600, 152064, 0x8bd70865
+0, 331200, 152064, 0x2b017249
+0, 334800, 152064, 0x17f1aba6
+0, 338400, 152064, 0x38368449
+0, 342000, 152064, 0x72ee1b69
+0, 345600, 152064, 0x0f1c6a1d
+0, 349200, 152064, 0xbeea0040
+0, 352800, 152064, 0x4a9e73b9
+0, 356400, 152064, 0x51a46120
diff --git a/tests/ref/fate/h264-conformance-frext-freh12_b b/tests/ref/fate/h264-conformance-frext-freh12_b
new file mode 100644
index 0000000000..12c195984e
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-freh12_b
@@ -0,0 +1,100 @@
+0, 0, 152064, 0x9f9caf3c
+0, 3600, 152064, 0x0ff688a6
+0, 7200, 152064, 0x247d4215
+0, 10800, 152064, 0x6d075b1b
+0, 14400, 152064, 0x23893f77
+0, 18000, 152064, 0x46db7dfc
+0, 21600, 152064, 0x6438c4b9
+0, 25200, 152064, 0x1f468257
+0, 28800, 152064, 0xd534ff36
+0, 32400, 152064, 0xb230f7b8
+0, 36000, 152064, 0xd8f66983
+0, 39600, 152064, 0x2068b7a9
+0, 43200, 152064, 0xd5748d8c
+0, 46800, 152064, 0x1d701770
+0, 50400, 152064, 0xe505c973
+0, 54000, 152064, 0x0ae5a447
+0, 57600, 152064, 0x3cf356bc
+0, 61200, 152064, 0x7d735625
+0, 64800, 152064, 0x3ce6438f
+0, 68400, 152064, 0xef3d947c
+0, 72000, 152064, 0xa35872be
+0, 75600, 152064, 0xcb9d1a37
+0, 79200, 152064, 0x9ad4cda1
+0, 82800, 152064, 0xc8d00a24
+0, 86400, 152064, 0xadab390b
+0, 90000, 152064, 0x530837a5
+0, 93600, 152064, 0xfda73274
+0, 97200, 152064, 0x7a297022
+0, 100800, 152064, 0x0d5f16a1
+0, 104400, 152064, 0xb0453e15
+0, 108000, 152064, 0xdaf2ba1c
+0, 111600, 152064, 0x55e5f451
+0, 115200, 152064, 0x723ecbce
+0, 118800, 152064, 0xb8376dfa
+0, 122400, 152064, 0xf53d97b7
+0, 126000, 152064, 0x1e2065cb
+0, 129600, 152064, 0x79ab0d75
+0, 133200, 152064, 0xc5da27ed
+0, 136800, 152064, 0x37c9d744
+0, 140400, 152064, 0xa8ab8bc3
+0, 144000, 152064, 0xab16a630
+0, 147600, 152064, 0xbbd76705
+0, 151200, 152064, 0xe67b2032
+0, 154800, 152064, 0xe1e02979
+0, 158400, 152064, 0xe79260b2
+0, 162000, 152064, 0xec33b550
+0, 165600, 152064, 0x679cca25
+0, 169200, 152064, 0x464b0935
+0, 172800, 152064, 0xa4c36a2a
+0, 176400, 152064, 0xe9593764
+0, 180000, 152064, 0x10f9ff42
+0, 183600, 152064, 0x6518a6fa
+0, 187200, 152064, 0xd161e4f3
+0, 190800, 152064, 0xc9d9be11
+0, 194400, 152064, 0x0db78ff6
+0, 198000, 152064, 0xd47d7e0f
+0, 201600, 152064, 0xdf34e3a3
+0, 205200, 152064, 0x13b68bd6
+0, 208800, 152064, 0x90e845bd
+0, 212400, 152064, 0xb434883a
+0, 216000, 152064, 0xd8e1de00
+0, 219600, 152064, 0xc9a3df1f
+0, 223200, 152064, 0x01476f54
+0, 226800, 152064, 0xd52824a4
+0, 230400, 152064, 0x63d43662
+0, 234000, 152064, 0x40a90d0f
+0, 237600, 152064, 0x332b22eb
+0, 241200, 152064, 0x1c267e8c
+0, 244800, 152064, 0x9be230d3
+0, 248400, 152064, 0x0ca308e8
+0, 252000, 152064, 0xfb5c5fdd
+0, 255600, 152064, 0x0d386358
+0, 259200, 152064, 0x3c7148b3
+0, 262800, 152064, 0xc2c07dab
+0, 266400, 152064, 0x76bbf8eb
+0, 270000, 152064, 0xc8bac3fa
+0, 273600, 152064, 0x35ef5e12
+0, 277200, 152064, 0x5d1fea8d
+0, 280800, 152064, 0xafbb54ef
+0, 284400, 152064, 0xf5d3396e
+0, 288000, 152064, 0xc4f4f8eb
+0, 291600, 152064, 0x60a17fa1
+0, 295200, 152064, 0x8804cdf9
+0, 298800, 152064, 0x3227412f
+0, 302400, 152064, 0x130e5026
+0, 306000, 152064, 0xcb17344e
+0, 309600, 152064, 0x4f0dde70
+0, 313200, 152064, 0x57422405
+0, 316800, 152064, 0x48070e40
+0, 320400, 152064, 0x5c2f134d
+0, 324000, 152064, 0x123e23e2
+0, 327600, 152064, 0x393c1185
+0, 331200, 152064, 0x59919a69
+0, 334800, 152064, 0xc1dad5c4
+0, 338400, 152064, 0x49b8c9a9
+0, 342000, 152064, 0x8dab7b1c
+0, 345600, 152064, 0x3a63c0c0
+0, 349200, 152064, 0x224860bc
+0, 352800, 152064, 0xdc40c9b2
+0, 356400, 152064, 0xd3a0b8a1
diff --git a/tests/ref/fate/h264-conformance-frext-freh1_b b/tests/ref/fate/h264-conformance-frext-freh1_b
new file mode 100644
index 0000000000..4e35e13b56
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-freh1_b
@@ -0,0 +1,100 @@
+0, 0, 152064, 0x42a3d9ce
+0, 3600, 152064, 0xa95cc2ed
+0, 7200, 152064, 0xc48f8fdc
+0, 10800, 152064, 0x1584b7e8
+0, 14400, 152064, 0xd6f34b7e
+0, 18000, 152064, 0xbb196ee4
+0, 21600, 152064, 0xdfe79cbd
+0, 25200, 152064, 0x023799b7
+0, 28800, 152064, 0x156b1932
+0, 32400, 152064, 0x6dd14765
+0, 36000, 152064, 0xd2bd86b9
+0, 39600, 152064, 0xee62c71d
+0, 43200, 152064, 0x60667d48
+0, 46800, 152064, 0x09df084c
+0, 50400, 152064, 0xc1a0b8d7
+0, 54000, 152064, 0x55adc538
+0, 57600, 152064, 0xf6d28a14
+0, 61200, 152064, 0x1adab322
+0, 64800, 152064, 0xa6c796aa
+0, 68400, 152064, 0x60d8dc6a
+0, 72000, 152064, 0x20f9c609
+0, 75600, 152064, 0x299f4059
+0, 79200, 152064, 0x93eb0fea
+0, 82800, 152064, 0x76e7547e
+0, 86400, 152064, 0xc4b76f90
+0, 90000, 152064, 0x4b7a85ea
+0, 93600, 152064, 0x2e138df4
+0, 97200, 152064, 0x7df1a421
+0, 100800, 152064, 0x0e9a1a3e
+0, 104400, 152064, 0x56124293
+0, 108000, 152064, 0x1faee8f7
+0, 111600, 152064, 0x7f551572
+0, 115200, 152064, 0x8974cbf0
+0, 118800, 152064, 0x1c5dc5e9
+0, 122400, 152064, 0x2498eb5b
+0, 126000, 152064, 0x861ed634
+0, 129600, 152064, 0x0e62a433
+0, 133200, 152064, 0xf3648cc0
+0, 136800, 152064, 0x69bc344b
+0, 140400, 152064, 0x797eaafe
+0, 144000, 152064, 0x722fbff8
+0, 147600, 152064, 0xa8895582
+0, 151200, 152064, 0xde1bcffb
+0, 154800, 152064, 0xf558ed3f
+0, 158400, 152064, 0xa5173e0e
+0, 162000, 152064, 0x6872d018
+0, 165600, 152064, 0x6af6c55d
+0, 169200, 152064, 0x7c6b1f26
+0, 172800, 152064, 0xa8086db3
+0, 176400, 152064, 0x70b762e1
+0, 180000, 152064, 0x85b7eb76
+0, 183600, 152064, 0x3a4393f1
+0, 187200, 152064, 0xdabdda42
+0, 190800, 152064, 0xbb84b84c
+0, 194400, 152064, 0xabe880d8
+0, 198000, 152064, 0xe7303cc5
+0, 201600, 152064, 0xecdcc142
+0, 205200, 152064, 0x591118db
+0, 208800, 152064, 0x37a715c6
+0, 212400, 152064, 0x9106221e
+0, 216000, 152064, 0xb1821a2e
+0, 219600, 152064, 0x3adeccdb
+0, 223200, 152064, 0xd4ac64a8
+0, 226800, 152064, 0x8f34134f
+0, 230400, 152064, 0x1f3cf03d
+0, 234000, 152064, 0x7b5da3b0
+0, 237600, 152064, 0x23f69e68
+0, 241200, 152064, 0x67e62093
+0, 244800, 152064, 0xf226d12e
+0, 248400, 152064, 0x2eb08a1f
+0, 252000, 152064, 0x5bb70c54
+0, 255600, 152064, 0x2edb3578
+0, 259200, 152064, 0x9d0c1b30
+0, 262800, 152064, 0xd8266732
+0, 266400, 152064, 0xad67cd45
+0, 270000, 152064, 0x7a11d3cc
+0, 273600, 152064, 0xac534ec1
+0, 277200, 152064, 0x7ff6ba17
+0, 280800, 152064, 0xf9741b77
+0, 284400, 152064, 0x318d25fa
+0, 288000, 152064, 0xff4ae686
+0, 291600, 152064, 0x26a05ae2
+0, 295200, 152064, 0x95619a34
+0, 298800, 152064, 0xec2b1136
+0, 302400, 152064, 0xf93ebeca
+0, 306000, 152064, 0xd8237aaa
+0, 309600, 152064, 0x1c362a05
+0, 313200, 152064, 0x6fc74faa
+0, 316800, 152064, 0x875e5b67
+0, 320400, 152064, 0xc04093be
+0, 324000, 152064, 0x4c2340a1
+0, 327600, 152064, 0x7af99e63
+0, 331200, 152064, 0xf5b89a4e
+0, 334800, 152064, 0xb7759e48
+0, 338400, 152064, 0x61a15c06
+0, 342000, 152064, 0x91a5ae4c
+0, 345600, 152064, 0x6aedf226
+0, 349200, 152064, 0x870dbf36
+0, 352800, 152064, 0x814d04a3
+0, 356400, 152064, 0xd5a30892
diff --git a/tests/ref/fate/h264-conformance-frext-freh2_b b/tests/ref/fate/h264-conformance-frext-freh2_b
new file mode 100644
index 0000000000..ac9a48c483
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-freh2_b
@@ -0,0 +1,100 @@
+0, 0, 152064, 0x1668b41a
+0, 3600, 152064, 0x953ca7fb
+0, 7200, 152064, 0x3e38bc6e
+0, 10800, 152064, 0x18dff6cc
+0, 14400, 152064, 0x03105f7a
+0, 18000, 152064, 0x6fe79efb
+0, 21600, 152064, 0xbd4ccb6f
+0, 25200, 152064, 0xaf398a10
+0, 28800, 152064, 0x4f281075
+0, 32400, 152064, 0x88f63791
+0, 36000, 152064, 0x7500b606
+0, 39600, 152064, 0xebebd6e6
+0, 43200, 152064, 0x3ed7c35e
+0, 46800, 152064, 0xc95826d6
+0, 50400, 152064, 0x0989ab63
+0, 54000, 152064, 0xddd5d22b
+0, 57600, 152064, 0x11683b8a
+0, 61200, 152064, 0x5ce36d50
+0, 64800, 152064, 0xa5185ccf
+0, 68400, 152064, 0xf47583b5
+0, 72000, 152064, 0xac6e82b6
+0, 75600, 152064, 0xf8dc25c0
+0, 79200, 152064, 0x5a6aba8e
+0, 82800, 152064, 0x43790f6d
+0, 86400, 152064, 0x787c4377
+0, 90000, 152064, 0xe6833159
+0, 93600, 152064, 0xe5c21131
+0, 97200, 152064, 0x16ae69bb
+0, 100800, 152064, 0x754fcc9e
+0, 104400, 152064, 0x71aaf1e1
+0, 108000, 152064, 0xce9de9ee
+0, 111600, 152064, 0x05e6d832
+0, 115200, 152064, 0x5773b413
+0, 118800, 152064, 0xe518881c
+0, 122400, 152064, 0xe248bce9
+0, 126000, 152064, 0x421e8c0d
+0, 129600, 152064, 0x30135143
+0, 133200, 152064, 0xf02347f4
+0, 136800, 152064, 0x3fa71a0e
+0, 140400, 152064, 0x2c14d955
+0, 144000, 152064, 0x18b2d558
+0, 147600, 152064, 0x54cb7fa2
+0, 151200, 152064, 0x90ae2332
+0, 154800, 152064, 0x7957129a
+0, 158400, 152064, 0x6c9b463e
+0, 162000, 152064, 0x8c44e126
+0, 165600, 152064, 0xde3ba475
+0, 169200, 152064, 0x9823e3ed
+0, 172800, 152064, 0x3ce03b21
+0, 176400, 152064, 0x930007a2
+0, 180000, 152064, 0x6f94bf67
+0, 183600, 152064, 0x3e113ce9
+0, 187200, 152064, 0xa31c8828
+0, 190800, 152064, 0xe65260e0
+0, 194400, 152064, 0x4c612620
+0, 198000, 152064, 0xdc41f17f
+0, 201600, 152064, 0x6d3f6a84
+0, 205200, 152064, 0xfb55e9e9
+0, 208800, 152064, 0x21e2c8b5
+0, 212400, 152064, 0x2d0939a9
+0, 216000, 152064, 0xe1f422d2
+0, 219600, 152064, 0xab0ad4a3
+0, 223200, 152064, 0x948f46df
+0, 226800, 152064, 0x61f50c16
+0, 230400, 152064, 0x7f5edb05
+0, 234000, 152064, 0x8d8c4782
+0, 237600, 152064, 0xe8644529
+0, 241200, 152064, 0x1e7ce779
+0, 244800, 152064, 0x22f355a9
+0, 248400, 152064, 0x4dd736d4
+0, 252000, 152064, 0x3d968c63
+0, 255600, 152064, 0xa629c711
+0, 259200, 152064, 0xae87c4c6
+0, 262800, 152064, 0xcd482dd2
+0, 266400, 152064, 0x6bbbbd25
+0, 270000, 152064, 0x4f0ad3d2
+0, 273600, 152064, 0x66052e88
+0, 277200, 152064, 0xa09dff03
+0, 280800, 152064, 0xb3837263
+0, 284400, 152064, 0x3c91fdde
+0, 288000, 152064, 0x4d9309a9
+0, 291600, 152064, 0x6b624164
+0, 295200, 152064, 0xaa425ecb
+0, 298800, 152064, 0x37aec7c9
+0, 302400, 152064, 0xf4b3d359
+0, 306000, 152064, 0x85d3af2b
+0, 309600, 152064, 0xe5c1f190
+0, 313200, 152064, 0x8cb00e09
+0, 316800, 152064, 0x59406ebc
+0, 320400, 152064, 0xd7ac351f
+0, 324000, 152064, 0x998238b6
+0, 327600, 152064, 0x8e89d064
+0, 331200, 152064, 0x644223c5
+0, 334800, 152064, 0x90ad366f
+0, 338400, 152064, 0x40a12122
+0, 342000, 152064, 0x3045024c
+0, 345600, 152064, 0x58673cfb
+0, 349200, 152064, 0x567cf1fe
+0, 352800, 152064, 0x2d236e41
+0, 356400, 152064, 0xc493577d
diff --git a/tests/ref/fate/h264-conformance-frext-freh6 b/tests/ref/fate/h264-conformance-frext-freh6
new file mode 100644
index 0000000000..4dd3afde99
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-freh6
@@ -0,0 +1,100 @@
+0, 0, 152064, 0x3b21d6cd
+0, 3600, 152064, 0xc32088c6
+0, 7200, 152064, 0x65a64cee
+0, 10800, 152064, 0x0bd45a5b
+0, 14400, 152064, 0xb2210d4d
+0, 18000, 152064, 0xf5b15527
+0, 21600, 152064, 0x806572ad
+0, 25200, 152064, 0x6ecb1fc8
+0, 28800, 152064, 0xc25e96d5
+0, 32400, 152064, 0x5593b825
+0, 36000, 152064, 0xf3be1cff
+0, 39600, 152064, 0xa9155072
+0, 43200, 152064, 0xd5552e26
+0, 46800, 152064, 0x7bf0dbee
+0, 50400, 152064, 0x998b4911
+0, 54000, 152064, 0xcc71bbe0
+0, 57600, 152064, 0x602415b8
+0, 61200, 152064, 0xcfff37cf
+0, 64800, 152064, 0x7cf824a8
+0, 68400, 152064, 0x34816ee5
+0, 72000, 152064, 0x1480540c
+0, 75600, 152064, 0xc2351aaf
+0, 79200, 152064, 0x3b8eac9f
+0, 82800, 152064, 0x92a8faf8
+0, 86400, 152064, 0x7b6121c8
+0, 90000, 152064, 0xe73a3bac
+0, 93600, 152064, 0xcd6e1e36
+0, 97200, 152064, 0xb24660b1
+0, 100800, 152064, 0xa290ec25
+0, 104400, 152064, 0x308915ff
+0, 108000, 152064, 0x1e8dd4db
+0, 111600, 152064, 0x1372f2e0
+0, 115200, 152064, 0xa07cc1d0
+0, 118800, 152064, 0x34bb872c
+0, 122400, 152064, 0x59e6a565
+0, 126000, 152064, 0x9a097932
+0, 129600, 152064, 0x938f2e20
+0, 133200, 152064, 0x59a8157d
+0, 136800, 152064, 0x5cacd404
+0, 140400, 152064, 0xdad068f5
+0, 144000, 152064, 0x7ba67d47
+0, 147600, 152064, 0xc2a11e2d
+0, 151200, 152064, 0xd37fdef7
+0, 154800, 152064, 0x19a3f80a
+0, 158400, 152064, 0x7ec7426a
+0, 162000, 152064, 0x8ffedb61
+0, 165600, 152064, 0x82aebdd0
+0, 169200, 152064, 0xdfc920cc
+0, 172800, 152064, 0x2a467698
+0, 176400, 152064, 0xd08a37d5
+0, 180000, 152064, 0xe606e66a
+0, 183600, 152064, 0x0e7b8bd8
+0, 187200, 152064, 0xf983c732
+0, 190800, 152064, 0x9b82c2e7
+0, 194400, 152064, 0xa990a47e
+0, 198000, 152064, 0x2d5679f1
+0, 201600, 152064, 0x7f1c0201
+0, 205200, 152064, 0xc38b709d
+0, 208800, 152064, 0x040246d8
+0, 212400, 152064, 0xbc856021
+0, 216000, 152064, 0x81e01a78
+0, 219600, 152064, 0xaff1e7f1
+0, 223200, 152064, 0x1fee7715
+0, 226800, 152064, 0x65053711
+0, 230400, 152064, 0x238a0118
+0, 234000, 152064, 0x563491b4
+0, 237600, 152064, 0x5974a6cc
+0, 241200, 152064, 0xd8682c35
+0, 244800, 152064, 0x85c49e96
+0, 248400, 152064, 0x29486faa
+0, 252000, 152064, 0x1a4f0579
+0, 255600, 152064, 0x6ab86c2f
+0, 259200, 152064, 0x36a36d2b
+0, 262800, 152064, 0x3bd77543
+0, 266400, 152064, 0x8fbddc41
+0, 270000, 152064, 0xccc6e0a5
+0, 273600, 152064, 0x00a9539e
+0, 277200, 152064, 0x07ba0714
+0, 280800, 152064, 0xbab2735d
+0, 284400, 152064, 0x79cb5ba0
+0, 288000, 152064, 0xdbcc1c92
+0, 291600, 152064, 0xffec952c
+0, 295200, 152064, 0xc31ac68e
+0, 298800, 152064, 0x24293eb9
+0, 302400, 152064, 0x7b9b2cb4
+0, 306000, 152064, 0x9dd4fe95
+0, 309600, 152064, 0xb62e8baf
+0, 313200, 152064, 0x9fefc174
+0, 316800, 152064, 0xe027c24e
+0, 320400, 152064, 0xe38adc70
+0, 324000, 152064, 0xc7bf536f
+0, 327600, 152064, 0x4448f330
+0, 331200, 152064, 0x4dad5339
+0, 334800, 152064, 0x48fbab15
+0, 338400, 152064, 0xe6c97b2c
+0, 342000, 152064, 0x3c3829ee
+0, 345600, 152064, 0x927772c0
+0, 349200, 152064, 0xbb0f0ef4
+0, 352800, 152064, 0xe65780a7
+0, 356400, 152064, 0xaf8f6d72
diff --git a/tests/ref/fate/h264-conformance-frext-freh7_b b/tests/ref/fate/h264-conformance-frext-freh7_b
new file mode 100644
index 0000000000..8c397f2dd5
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-freh7_b
@@ -0,0 +1,100 @@
+0, 0, 152064, 0x89f2e8d5
+0, 3600, 152064, 0x35b99397
+0, 7200, 152064, 0x6ef46744
+0, 10800, 152064, 0xec4d6c1c
+0, 14400, 152064, 0xad6e0c70
+0, 18000, 152064, 0x2db534b3
+0, 21600, 152064, 0xcbd25ddd
+0, 25200, 152064, 0xd90708b4
+0, 28800, 152064, 0xc2aa52df
+0, 32400, 152064, 0xbcfc84dc
+0, 36000, 152064, 0xa5a6d269
+0, 39600, 152064, 0x27220ce9
+0, 43200, 152064, 0xf075ee6d
+0, 46800, 152064, 0x9fd3c2ac
+0, 50400, 152064, 0xcba24c2d
+0, 54000, 152064, 0x41cd9441
+0, 57600, 152064, 0x0126efa3
+0, 61200, 152064, 0xf62112af
+0, 64800, 152064, 0x35aff50f
+0, 68400, 152064, 0xcb0b276f
+0, 72000, 152064, 0xc7ef0214
+0, 75600, 152064, 0x7f78d387
+0, 79200, 152064, 0x266c673d
+0, 82800, 152064, 0x1d39c073
+0, 86400, 152064, 0x6a3ae455
+0, 90000, 152064, 0xe4ce0230
+0, 93600, 152064, 0x7f95e87b
+0, 97200, 152064, 0x7c552236
+0, 100800, 152064, 0x24c799b9
+0, 104400, 152064, 0x5042d974
+0, 108000, 152064, 0xe934a5b8
+0, 111600, 152064, 0x6d59c884
+0, 115200, 152064, 0xd00f7fdb
+0, 118800, 152064, 0x62ac3ebd
+0, 122400, 152064, 0xb40a6c25
+0, 126000, 152064, 0x8706188c
+0, 129600, 152064, 0x7682e339
+0, 133200, 152064, 0x1061d943
+0, 136800, 152064, 0x50fa684a
+0, 140400, 152064, 0xab4b1975
+0, 144000, 152064, 0x2d043acb
+0, 147600, 152064, 0xe3c2ec0a
+0, 151200, 152064, 0xb9bc99dc
+0, 154800, 152064, 0x051fb857
+0, 158400, 152064, 0x71d1fe52
+0, 162000, 152064, 0x4230c694
+0, 165600, 152064, 0xb412a137
+0, 169200, 152064, 0x2f50f90d
+0, 172800, 152064, 0x68a1466f
+0, 176400, 152064, 0x77e3f47b
+0, 180000, 152064, 0x4d08de2b
+0, 183600, 152064, 0x1fc663be
+0, 187200, 152064, 0x2c8ba712
+0, 190800, 152064, 0xd50d85b9
+0, 194400, 152064, 0xe8483437
+0, 198000, 152064, 0x4e331e4c
+0, 201600, 152064, 0x0f64a7a0
+0, 205200, 152064, 0x797b0b8c
+0, 208800, 152064, 0x1b91e6d8
+0, 212400, 152064, 0xf3a1f3b6
+0, 216000, 152064, 0x2b94bd52
+0, 219600, 152064, 0x1f30962e
+0, 223200, 152064, 0x853321cf
+0, 226800, 152064, 0x8266c0ac
+0, 230400, 152064, 0x25498be0
+0, 234000, 152064, 0x0f653af9
+0, 237600, 152064, 0x0a025f7e
+0, 241200, 152064, 0x1cfbae04
+0, 244800, 152064, 0x3a874757
+0, 248400, 152064, 0x2c67006e
+0, 252000, 152064, 0x1d409bce
+0, 255600, 152064, 0xfe43121f
+0, 259200, 152064, 0x43411830
+0, 262800, 152064, 0x536d26ca
+0, 266400, 152064, 0x9eb873ea
+0, 270000, 152064, 0x093f93ec
+0, 273600, 152064, 0xdf6f0381
+0, 277200, 152064, 0xa9f4b5e5
+0, 280800, 152064, 0x08f71ef8
+0, 284400, 152064, 0x7a68f820
+0, 288000, 152064, 0xae0c73e7
+0, 291600, 152064, 0x886ae6c7
+0, 295200, 152064, 0x9357f433
+0, 298800, 152064, 0xcc335068
+0, 302400, 152064, 0x2ea108ab
+0, 306000, 152064, 0x06d7dcb0
+0, 309600, 152064, 0x81dc81bc
+0, 313200, 152064, 0xfb32b626
+0, 316800, 152064, 0x2787d1c7
+0, 320400, 152064, 0x69e51118
+0, 324000, 152064, 0xba15d94d
+0, 327600, 152064, 0xc41c09cf
+0, 331200, 152064, 0x7e50e12f
+0, 334800, 152064, 0x0763ddbe
+0, 338400, 152064, 0x8a09bb88
+0, 342000, 152064, 0x530752b7
+0, 345600, 152064, 0x9b159923
+0, 349200, 152064, 0xcbb83ed3
+0, 352800, 152064, 0xdeb5ac0e
+0, 356400, 152064, 0x189299d4
diff --git a/tests/ref/fate/h264-conformance-frext-frext01_jvc_d b/tests/ref/fate/h264-conformance-frext-frext01_jvc_d
new file mode 100644
index 0000000000..ae71a63488
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-frext01_jvc_d
@@ -0,0 +1,16 @@
+0, 0, 152064, 0x31bc935e
+0, 3600, 152064, 0x501ea92a
+0, 7200, 152064, 0x8b2f6ead
+0, 10800, 152064, 0xa86277e3
+0, 14400, 152064, 0xe5936250
+0, 18000, 152064, 0x497794cb
+0, 21600, 152064, 0xcb34c39a
+0, 25200, 152064, 0xa739994d
+0, 28800, 152064, 0x01e804b7
+0, 32400, 152064, 0xfcf00627
+0, 36000, 152064, 0xcd747bda
+0, 39600, 152064, 0x1d979394
+0, 43200, 152064, 0xd5d52a6a
+0, 46800, 152064, 0xd7fb147b
+0, 50400, 152064, 0x5d7cb44a
+0, 54000, 152064, 0x9b87803b
diff --git a/tests/ref/fate/h264-conformance-frext-frext02_jvc_c b/tests/ref/fate/h264-conformance-frext-frext02_jvc_c
new file mode 100644
index 0000000000..ae71a63488
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-frext02_jvc_c
@@ -0,0 +1,16 @@
+0, 0, 152064, 0x31bc935e
+0, 3600, 152064, 0x501ea92a
+0, 7200, 152064, 0x8b2f6ead
+0, 10800, 152064, 0xa86277e3
+0, 14400, 152064, 0xe5936250
+0, 18000, 152064, 0x497794cb
+0, 21600, 152064, 0xcb34c39a
+0, 25200, 152064, 0xa739994d
+0, 28800, 152064, 0x01e804b7
+0, 32400, 152064, 0xfcf00627
+0, 36000, 152064, 0xcd747bda
+0, 39600, 152064, 0x1d979394
+0, 43200, 152064, 0xd5d52a6a
+0, 46800, 152064, 0xd7fb147b
+0, 50400, 152064, 0x5d7cb44a
+0, 54000, 152064, 0x9b87803b
diff --git a/tests/ref/fate/h264-conformance-frext-frext1_panasonic_c b/tests/ref/fate/h264-conformance-frext-frext1_panasonic_c
new file mode 100644
index 0000000000..ec01250de4
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-frext1_panasonic_c
@@ -0,0 +1,8 @@
+0, 0, 152064, 0xf9c30518
+0, 3600, 152064, 0x509dd18f
+0, 7200, 152064, 0x7f5c8f07
+0, 10800, 152064, 0x8ce42210
+0, 14400, 152064, 0x59fd527a
+0, 18000, 152064, 0xd987ceea
+0, 21600, 152064, 0xc53167fa
+0, 25200, 152064, 0xb3179926
diff --git a/tests/ref/fate/h264-conformance-frext-frext2_panasonic_b b/tests/ref/fate/h264-conformance-frext-frext2_panasonic_b
new file mode 100644
index 0000000000..a980a9dcc5
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-frext2_panasonic_b
@@ -0,0 +1,15 @@
+0, 0, 152064, 0x0147a2a9
+0, 3600, 152064, 0xe2365351
+0, 7200, 152064, 0xb5f9daee
+0, 10800, 152064, 0xd60818b2
+0, 14400, 152064, 0x21b528e5
+0, 18000, 152064, 0x9c9dda18
+0, 21600, 152064, 0x387fe7de
+0, 25200, 152064, 0x8f0c5a1e
+0, 28800, 152064, 0x02409694
+0, 32400, 152064, 0x2b36a7a7
+0, 36000, 152064, 0x3c6d3863
+0, 39600, 152064, 0xaa7835e1
+0, 43200, 152064, 0x6d105fe7
+0, 46800, 152064, 0x9a348732
+0, 50400, 152064, 0x96a3af13
diff --git a/tests/ref/fate/h264-conformance-frext-frext3_panasonic_d b/tests/ref/fate/h264-conformance-frext-frext3_panasonic_d
new file mode 100644
index 0000000000..94590b3fb5
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-frext3_panasonic_d
@@ -0,0 +1,11 @@
+0, 0, 152064, 0xdd346292
+0, 3600, 152064, 0xb07e6efd
+0, 7200, 152064, 0x81b4d540
+0, 10800, 152064, 0xc50066cf
+0, 14400, 152064, 0x30a49588
+0, 18000, 152064, 0x57520bfa
+0, 21600, 152064, 0xc0409dd9
+0, 25200, 152064, 0x8e6453e9
+0, 28800, 152064, 0x7ca86d86
+0, 32400, 152064, 0xf937b3b5
+0, 36000, 152064, 0x6c1f4604
diff --git a/tests/ref/fate/h264-conformance-frext-frext4_panasonic_a b/tests/ref/fate/h264-conformance-frext-frext4_panasonic_a
new file mode 100644
index 0000000000..3cf454ce8b
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-frext4_panasonic_a
@@ -0,0 +1,10 @@
+0, 0, 152064, 0xd604d440
+0, 3600, 152064, 0x08ef262c
+0, 7200, 152064, 0x992fca8e
+0, 10800, 152064, 0x5a02ee15
+0, 14400, 152064, 0xf15d5c66
+0, 18000, 152064, 0x360dda12
+0, 21600, 152064, 0x18b54985
+0, 25200, 152064, 0xf12b6cde
+0, 28800, 152064, 0x3b2e63f7
+0, 32400, 152064, 0x140abcfd
diff --git a/tests/ref/fate/h264-conformance-frext-frext_mmco4_sony_b b/tests/ref/fate/h264-conformance-frext-frext_mmco4_sony_b
new file mode 100644
index 0000000000..117b48b582
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-frext_mmco4_sony_b
@@ -0,0 +1,60 @@
+0, 0, 152064, 0x24846654
+0, 3600, 152064, 0xd33945be
+0, 7200, 152064, 0x961cbbfb
+0, 10800, 152064, 0x91eb854d
+0, 14400, 152064, 0x998351b4
+0, 18000, 152064, 0xe7515c67
+0, 21600, 152064, 0xd32058ae
+0, 25200, 152064, 0x99cb5695
+0, 28800, 152064, 0x281de175
+0, 32400, 152064, 0xf4146f55
+0, 36000, 152064, 0x63abbb61
+0, 39600, 152064, 0xf44550c5
+0, 43200, 152064, 0x5797a5c2
+0, 46800, 152064, 0x13b15c60
+0, 50400, 152064, 0x6521e682
+0, 54000, 152064, 0x780c32a4
+0, 57600, 152064, 0x6289f37c
+0, 61200, 152064, 0x96d64d81
+0, 64800, 152064, 0x12ac80ef
+0, 68400, 152064, 0x470956e4
+0, 72000, 152064, 0x3954f944
+0, 75600, 152064, 0x2147f0db
+0, 79200, 152064, 0xca7c9a39
+0, 82800, 152064, 0x727e7772
+0, 86400, 152064, 0xb3b0f8c8
+0, 90000, 152064, 0x6d6eb7ba
+0, 93600, 152064, 0x1eaf5734
+0, 97200, 152064, 0xd7938056
+0, 100800, 152064, 0xcae1ead3
+0, 104400, 152064, 0x6411b82c
+0, 108000, 152064, 0x6f001718
+0, 111600, 152064, 0x3724d9b8
+0, 115200, 152064, 0x04501fec
+0, 118800, 152064, 0x3f4d13bb
+0, 122400, 152064, 0x38f2510a
+0, 126000, 152064, 0x5bb71106
+0, 129600, 152064, 0xe888b09d
+0, 133200, 152064, 0xca6f5f6a
+0, 136800, 152064, 0x01c7d329
+0, 140400, 152064, 0x4e670932
+0, 144000, 152064, 0x651b4984
+0, 147600, 152064, 0x76371fa3
+0, 151200, 152064, 0x60574af0
+0, 154800, 152064, 0xcc1f2080
+0, 158400, 152064, 0xdbf29eb6
+0, 162000, 152064, 0x8ff870be
+0, 165600, 152064, 0x5d39ea56
+0, 169200, 152064, 0xabb7c0a5
+0, 172800, 152064, 0xecb15771
+0, 176400, 152064, 0x571ab1ae
+0, 180000, 152064, 0xc0f22bad
+0, 183600, 152064, 0x22e7593f
+0, 187200, 152064, 0x3c3dee75
+0, 190800, 152064, 0x1c80b995
+0, 194400, 152064, 0x5ba442fa
+0, 198000, 152064, 0xe2291c05
+0, 201600, 152064, 0xa780b11e
+0, 205200, 152064, 0x15bf83fa
+0, 208800, 152064, 0x60fb7c11
+0, 212400, 152064, 0x3fb8cee5
diff --git a/tests/ref/fate/h264-conformance-frext-hcaff1_hhi_b b/tests/ref/fate/h264-conformance-frext-hcaff1_hhi_b
new file mode 100644
index 0000000000..5e366b44ef
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hcaff1_hhi_b
@@ -0,0 +1,10 @@
+0, 0, 152064, 0xb055a9bd
+0, 3600, 152064, 0x9e1eadb6
+0, 7200, 152064, 0x48f117d2
+0, 10800, 152064, 0x3e3ff049
+0, 14400, 152064, 0x2ff80943
+0, 18000, 152064, 0xc5ee16a6
+0, 21600, 152064, 0x38c33f28
+0, 25200, 152064, 0x3e8444c7
+0, 28800, 152064, 0x14ca4ab2
+0, 32400, 152064, 0xe20e78f7
diff --git a/tests/ref/fate/h264-conformance-frext-hcafr1_hhi_c b/tests/ref/fate/h264-conformance-frext-hcafr1_hhi_c
new file mode 100644
index 0000000000..102fe89407
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hcafr1_hhi_c
@@ -0,0 +1,10 @@
+0, 0, 152064, 0xd48c87b3
+0, 3600, 152064, 0xb7a67f8f
+0, 7200, 152064, 0x3c3f3c11
+0, 10800, 152064, 0xc411af54
+0, 14400, 152064, 0xde2efb95
+0, 18000, 152064, 0xa4787125
+0, 21600, 152064, 0x3c17085a
+0, 25200, 152064, 0xee217266
+0, 28800, 152064, 0xa23a8e9d
+0, 32400, 152064, 0x70a06d90
diff --git a/tests/ref/fate/h264-conformance-frext-hcafr2_hhi_a b/tests/ref/fate/h264-conformance-frext-hcafr2_hhi_a
new file mode 100644
index 0000000000..516b39dede
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hcafr2_hhi_a
@@ -0,0 +1,10 @@
+0, 0, 152064, 0xd5448f0e
+0, 3600, 152064, 0x93d022ba
+0, 7200, 152064, 0x1eaed76e
+0, 10800, 152064, 0xbbd54f09
+0, 14400, 152064, 0x175d6316
+0, 18000, 152064, 0x15ede384
+0, 21600, 152064, 0xb785e9ac
+0, 25200, 152064, 0xdbbb4ee6
+0, 28800, 152064, 0xaf27c827
+0, 32400, 152064, 0xbf3eeed4
diff --git a/tests/ref/fate/h264-conformance-frext-hcafr3_hhi_a b/tests/ref/fate/h264-conformance-frext-hcafr3_hhi_a
new file mode 100644
index 0000000000..da60e6388c
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hcafr3_hhi_a
@@ -0,0 +1,10 @@
+0, 0, 152064, 0xd5448f0e
+0, 3600, 152064, 0x665e33b5
+0, 7200, 152064, 0x6648e99d
+0, 10800, 152064, 0xbbd54f09
+0, 14400, 152064, 0x3dac7644
+0, 18000, 152064, 0xe980f078
+0, 21600, 152064, 0xb785e9ac
+0, 25200, 152064, 0xa500630e
+0, 28800, 152064, 0x6dade9b0
+0, 32400, 152064, 0xbf3eeed4
diff --git a/tests/ref/fate/h264-conformance-frext-hcafr4_hhi_a b/tests/ref/fate/h264-conformance-frext-hcafr4_hhi_a
new file mode 100644
index 0000000000..0dcf5a5912
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hcafr4_hhi_a
@@ -0,0 +1,10 @@
+0, 0, 152064, 0xc7d8832d
+0, 3600, 152064, 0x8d9ffc59
+0, 7200, 152064, 0xaf3ea0d1
+0, 10800, 152064, 0x6805671e
+0, 14400, 152064, 0x49202ab8
+0, 18000, 152064, 0x6b06b1ad
+0, 21600, 152064, 0x909f3e4e
+0, 25200, 152064, 0xa4ce28ec
+0, 28800, 152064, 0xc3c5b8bc
+0, 32400, 152064, 0x78744dac
diff --git a/tests/ref/fate/h264-conformance-frext-hcamff1_hhi_b b/tests/ref/fate/h264-conformance-frext-hcamff1_hhi_b
new file mode 100644
index 0000000000..1dc66a1778
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hcamff1_hhi_b
@@ -0,0 +1,10 @@
+0, 0, 152064, 0x18f494ec
+0, 3600, 152064, 0x7515e6d7
+0, 7200, 152064, 0xaa8ee665
+0, 10800, 152064, 0xa946e180
+0, 14400, 152064, 0xd1467f7e
+0, 18000, 152064, 0xd779f4c2
+0, 21600, 152064, 0xed456fed
+0, 25200, 152064, 0x4ca23a72
+0, 28800, 152064, 0x26381cd2
+0, 32400, 152064, 0x50df40fa
diff --git a/tests/ref/fate/h264-conformance-frext-hpca_brcm_c b/tests/ref/fate/h264-conformance-frext-hpca_brcm_c
new file mode 100644
index 0000000000..cbfc5681ab
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hpca_brcm_c
@@ -0,0 +1,300 @@
+0, 0, 152064, 0x995bb4bd
+0, 3600, 152064, 0xad287357
+0, 7200, 152064, 0x38fa4661
+0, 10800, 152064, 0x8aae73cf
+0, 14400, 152064, 0x4a13eada
+0, 18000, 152064, 0x48b33901
+0, 21600, 152064, 0x011487bc
+0, 25200, 152064, 0xd4ce1925
+0, 28800, 152064, 0x5d679ddd
+0, 32400, 152064, 0x276cd5cf
+0, 36000, 152064, 0x99c625f0
+0, 39600, 152064, 0xb2f756d1
+0, 43200, 152064, 0xb19c2978
+0, 46800, 152064, 0xdac0ff3c
+0, 50400, 152064, 0x3c1c8d63
+0, 54000, 152064, 0x818ea0a8
+0, 57600, 152064, 0xa7c122a5
+0, 61200, 152064, 0x67ad3519
+0, 64800, 152064, 0xc81b2a88
+0, 68400, 152064, 0x8ae6633e
+0, 72000, 152064, 0xed945788
+0, 75600, 152064, 0x4c740bcb
+0, 79200, 152064, 0xd8408d09
+0, 82800, 152064, 0xb710e8b8
+0, 86400, 152064, 0xb8c647b9
+0, 90000, 152064, 0x802b2e23
+0, 93600, 152064, 0x30672529
+0, 97200, 152064, 0x328a72b6
+0, 100800, 152064, 0xeb6dbe94
+0, 104400, 152064, 0x1c19dcc5
+0, 108000, 152064, 0xfdc6b998
+0, 111600, 152064, 0xf9e2cd80
+0, 115200, 152064, 0x025eb15e
+0, 118800, 152064, 0xfd998ad8
+0, 122400, 152064, 0x8fdf736f
+0, 126000, 152064, 0xa5a7554a
+0, 129600, 152064, 0xcea63304
+0, 133200, 152064, 0xcb28ec28
+0, 136800, 152064, 0x92efb591
+0, 140400, 152064, 0x0f2376c3
+0, 144000, 152064, 0xe9cb5ecf
+0, 147600, 152064, 0xcd2d0eba
+0, 151200, 152064, 0xd57fe4fd
+0, 154800, 152064, 0xc486ab8e
+0, 158400, 152064, 0x01a1f709
+0, 162000, 152064, 0x7ac5b13a
+0, 165600, 152064, 0x6f519279
+0, 169200, 152064, 0xfd7cd9a0
+0, 172800, 152064, 0xfae649d2
+0, 176400, 152064, 0x618507ca
+0, 180000, 152064, 0xb177bc15
+0, 183600, 152064, 0x6fa36854
+0, 187200, 152064, 0xc13cb77d
+0, 190800, 152064, 0x6d40cb01
+0, 194400, 152064, 0xa3db96a2
+0, 198000, 152064, 0xe5ba6c99
+0, 201600, 152064, 0xca9ff3ee
+0, 205200, 152064, 0x6c016c65
+0, 208800, 152064, 0xdf93ed80
+0, 212400, 152064, 0x93112ec8
+0, 216000, 152064, 0x8ab3ea14
+0, 219600, 152064, 0x02f5b891
+0, 223200, 152064, 0xdafd562b
+0, 226800, 152064, 0xa96a2bd7
+0, 230400, 152064, 0xdff8bc68
+0, 234000, 152064, 0x8d956b4b
+0, 237600, 152064, 0xb4aeb960
+0, 241200, 152064, 0x391cf0dd
+0, 244800, 152064, 0x03137de9
+0, 248400, 152064, 0x2bfa8c4b
+0, 252000, 152064, 0xfb54d3a5
+0, 255600, 152064, 0x650146e7
+0, 259200, 152064, 0xd3a7765f
+0, 262800, 152064, 0x49d72b90
+0, 266400, 152064, 0xf089b357
+0, 270000, 152064, 0x23a2be41
+0, 273600, 152064, 0x2ea86592
+0, 277200, 152064, 0x99d6f56b
+0, 280800, 152064, 0xc2ca75b9
+0, 284400, 152064, 0x390b7278
+0, 288000, 152064, 0x0f6d1f1e
+0, 291600, 152064, 0x79e2a3f4
+0, 295200, 152064, 0x51d5e1da
+0, 298800, 152064, 0xdb57419a
+0, 302400, 152064, 0xf90a4153
+0, 306000, 152064, 0xd192f6c6
+0, 309600, 152064, 0x8cd3895a
+0, 313200, 152064, 0x0d3ec577
+0, 316800, 152064, 0x146e8492
+0, 320400, 152064, 0xc9939c22
+0, 324000, 152064, 0xf1f4275e
+0, 327600, 152064, 0xb898eb35
+0, 331200, 152064, 0xed315ee9
+0, 334800, 152064, 0x9046b760
+0, 338400, 152064, 0x599a736b
+0, 342000, 152064, 0xaef20726
+0, 345600, 152064, 0x0d136768
+0, 349200, 152064, 0xfe4ed2a8
+0, 352800, 152064, 0x5a85524b
+0, 356400, 152064, 0x6d495dd2
+0, 360000, 152064, 0x04bdb815
+0, 363600, 152064, 0x28aae1c5
+0, 367200, 152064, 0xc20bc8d9
+0, 370800, 152064, 0xa33d9b41
+0, 374400, 152064, 0x6269cb43
+0, 378000, 152064, 0x4f81d636
+0, 381600, 152064, 0xc6062166
+0, 385200, 152064, 0xb027fbcc
+0, 388800, 152064, 0x73a7a584
+0, 392400, 152064, 0xf67e520a
+0, 396000, 152064, 0x94eff023
+0, 399600, 152064, 0xef1da8e5
+0, 403200, 152064, 0x2d9ab411
+0, 406800, 152064, 0xf0c39b5d
+0, 410400, 152064, 0xb2374724
+0, 414000, 152064, 0x939a5243
+0, 417600, 152064, 0xee3438db
+0, 421200, 152064, 0x7da04012
+0, 424800, 152064, 0xac611668
+0, 428400, 152064, 0xdce3062e
+0, 432000, 152064, 0xb57cc00e
+0, 435600, 152064, 0xaf96b59e
+0, 439200, 152064, 0x56789c13
+0, 442800, 152064, 0xb1f678b5
+0, 446400, 152064, 0xb340b8c4
+0, 450000, 152064, 0x86e6e304
+0, 453600, 152064, 0xa056e037
+0, 457200, 152064, 0x16885d27
+0, 460800, 152064, 0x9c5ac065
+0, 464400, 152064, 0x563d5335
+0, 468000, 152064, 0x3ca71c1e
+0, 471600, 152064, 0xad34e16c
+0, 475200, 152064, 0x6d074b27
+0, 478800, 152064, 0x9b1c4909
+0, 482400, 152064, 0xdbced198
+0, 486000, 152064, 0x8a0ded00
+0, 489600, 152064, 0x5ffc209b
+0, 493200, 152064, 0x47cfd269
+0, 496800, 152064, 0xe3c0137e
+0, 500400, 152064, 0xcb6a5e53
+0, 504000, 152064, 0x87cec05f
+0, 507600, 152064, 0x92721dd2
+0, 511200, 152064, 0x3f7d7b3b
+0, 514800, 152064, 0xd63ef417
+0, 518400, 152064, 0xf8e4b05a
+0, 522000, 152064, 0xb5dcb421
+0, 525600, 152064, 0x53c96f6a
+0, 529200, 152064, 0x24ae98a3
+0, 532800, 152064, 0x2e9b5fff
+0, 536400, 152064, 0x7795bf12
+0, 540000, 152064, 0x499d37ca
+0, 543600, 152064, 0xfe478487
+0, 547200, 152064, 0xcd661afb
+0, 550800, 152064, 0x44f8bf00
+0, 554400, 152064, 0x90b67809
+0, 558000, 152064, 0x8f5726d1
+0, 561600, 152064, 0x2e3c39d5
+0, 565200, 152064, 0x4b67c4e6
+0, 568800, 152064, 0x9fecb7cf
+0, 572400, 152064, 0x207766ea
+0, 576000, 152064, 0x5846bf7b
+0, 579600, 152064, 0x4237fba1
+0, 583200, 152064, 0x983e0cbd
+0, 586800, 152064, 0x6be100d1
+0, 590400, 152064, 0x9d0beb8f
+0, 594000, 152064, 0x234b82e7
+0, 597600, 152064, 0x83fb5ef1
+0, 601200, 152064, 0xf503dcb2
+0, 604800, 152064, 0x031a27f2
+0, 608400, 152064, 0x2f1abf24
+0, 612000, 152064, 0x54d77010
+0, 615600, 152064, 0x049fc0fc
+0, 619200, 152064, 0x20f2f7e7
+0, 622800, 152064, 0xc0d57467
+0, 626400, 152064, 0xbe464eef
+0, 630000, 152064, 0x035c9052
+0, 633600, 152064, 0x91cba4fb
+0, 637200, 152064, 0x11cdbbfb
+0, 640800, 152064, 0xe61116d5
+0, 644400, 152064, 0x16db46b8
+0, 648000, 152064, 0x54f30d9f
+0, 651600, 152064, 0x211a8d2d
+0, 655200, 152064, 0x5a74a56b
+0, 658800, 152064, 0x0ff4ba72
+0, 662400, 152064, 0x4c398ad6
+0, 666000, 152064, 0x830814f0
+0, 669600, 152064, 0xa51f4bab
+0, 673200, 152064, 0xf3460de6
+0, 676800, 152064, 0x7e1979a1
+0, 680400, 152064, 0x4b3ebb3a
+0, 684000, 152064, 0x83d1f4f8
+0, 687600, 152064, 0xfbf08683
+0, 691200, 152064, 0x901c07ec
+0, 694800, 152064, 0xbc2dc1c7
+0, 698400, 152064, 0x6e646b3b
+0, 702000, 152064, 0x51a25aab
+0, 705600, 152064, 0xa042ab78
+0, 709200, 152064, 0xb972af58
+0, 712800, 152064, 0xcdca9568
+0, 716400, 152064, 0x17b69d1c
+0, 720000, 152064, 0x41c43ea2
+0, 723600, 152064, 0x195fc7a0
+0, 727200, 152064, 0xf4cec580
+0, 730800, 152064, 0xb3b10936
+0, 734400, 152064, 0x102bc2ec
+0, 738000, 152064, 0xc99d4767
+0, 741600, 152064, 0x60c745b0
+0, 745200, 152064, 0x8176e0cf
+0, 748800, 152064, 0xd47e69b5
+0, 752400, 152064, 0xacce674c
+0, 756000, 152064, 0x031b51f8
+0, 759600, 152064, 0x0eb681ef
+0, 763200, 152064, 0x0b69334b
+0, 766800, 152064, 0xda819c1f
+0, 770400, 152064, 0xa93f62d2
+0, 774000, 152064, 0x51374db5
+0, 777600, 152064, 0x885dccff
+0, 781200, 152064, 0xd0780444
+0, 784800, 152064, 0xa31733ca
+0, 788400, 152064, 0x3f3de84e
+0, 792000, 152064, 0x2af2b2c3
+0, 795600, 152064, 0xa62dceae
+0, 799200, 152064, 0xca1cffd1
+0, 802800, 152064, 0x3c7d561b
+0, 806400, 152064, 0xbc04130a
+0, 810000, 152064, 0xbd2829ae
+0, 813600, 152064, 0xdbbb9820
+0, 817200, 152064, 0xfc3ef628
+0, 820800, 152064, 0xd5da3ec3
+0, 824400, 152064, 0x62d5fcc1
+0, 828000, 152064, 0x455a8dae
+0, 831600, 152064, 0x421c9147
+0, 835200, 152064, 0x6a168484
+0, 838800, 152064, 0x7ba15d32
+0, 842400, 152064, 0xd089ed27
+0, 846000, 152064, 0x8fc4d894
+0, 849600, 152064, 0x99e47125
+0, 853200, 152064, 0xf55dda68
+0, 856800, 152064, 0x6bf06cf1
+0, 860400, 152064, 0x7dc41a9d
+0, 864000, 152064, 0x78b84019
+0, 867600, 152064, 0x85ae8973
+0, 871200, 152064, 0x7b7aeabe
+0, 874800, 152064, 0xf9a8f6bf
+0, 878400, 152064, 0xe195ddcd
+0, 882000, 152064, 0x83edffe9
+0, 885600, 152064, 0x59cce97a
+0, 889200, 152064, 0x15268af1
+0, 892800, 152064, 0x270cca95
+0, 896400, 152064, 0x8bced1f9
+0, 900000, 152064, 0x08ee5cec
+0, 903600, 152064, 0x01e74f95
+0, 907200, 152064, 0x7e19238f
+0, 910800, 152064, 0x6bcb2b9d
+0, 914400, 152064, 0x58111385
+0, 918000, 152064, 0x6c7aa1f7
+0, 921600, 152064, 0xb713a822
+0, 925200, 152064, 0x1d645cee
+0, 928800, 152064, 0x9c592969
+0, 932400, 152064, 0x2472769e
+0, 936000, 152064, 0x71b7a5ad
+0, 939600, 152064, 0xc6bba1c6
+0, 943200, 152064, 0x7351f305
+0, 946800, 152064, 0x579edbba
+0, 950400, 152064, 0x90eda919
+0, 954000, 152064, 0x2833b10d
+0, 957600, 152064, 0x4b967d65
+0, 961200, 152064, 0x6e7d1702
+0, 964800, 152064, 0x59dbcf5b
+0, 968400, 152064, 0xa138847b
+0, 972000, 152064, 0xb2414e8d
+0, 975600, 152064, 0xb90497f6
+0, 979200, 152064, 0xcd728159
+0, 982800, 152064, 0x005d5bdd
+0, 986400, 152064, 0x27c88fb6
+0, 990000, 152064, 0x3ccb8a93
+0, 993600, 152064, 0xc50256dd
+0, 997200, 152064, 0x111e7dee
+0, 1000800, 152064, 0x259d4a5d
+0, 1004400, 152064, 0x9385148b
+0, 1008000, 152064, 0x74002ab0
+0, 1011600, 152064, 0xd2c74adc
+0, 1015200, 152064, 0x72854b2a
+0, 1018800, 152064, 0x638e5c08
+0, 1022400, 152064, 0x9626bbb3
+0, 1026000, 152064, 0xc107c18f
+0, 1029600, 152064, 0x8bd04578
+0, 1033200, 152064, 0xbcdb6db6
+0, 1036800, 152064, 0x9d0c81be
+0, 1040400, 152064, 0xf25106b6
+0, 1044000, 152064, 0x54c25254
+0, 1047600, 152064, 0x4bf74663
+0, 1051200, 152064, 0x0051b054
+0, 1054800, 152064, 0x5193d3d4
+0, 1058400, 152064, 0xb5d0d045
+0, 1062000, 152064, 0x350a31ca
+0, 1065600, 152064, 0xb8fb7264
+0, 1069200, 152064, 0x7fb97645
+0, 1072800, 152064, 0xcd948c41
+0, 1076400, 152064, 0x38c7570a
diff --git a/tests/ref/fate/h264-conformance-frext-hpcadq_brcm_b b/tests/ref/fate/h264-conformance-frext-hpcadq_brcm_b
new file mode 100644
index 0000000000..b5778dd378
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hpcadq_brcm_b
@@ -0,0 +1,300 @@
+0, 0, 152064, 0xf3c68dea
+0, 3600, 152064, 0xf52d483f
+0, 7200, 152064, 0x612f1792
+0, 10800, 152064, 0x4df34726
+0, 14400, 152064, 0xfed7c058
+0, 18000, 152064, 0x2d48025c
+0, 21600, 152064, 0x03544ab9
+0, 25200, 152064, 0x20cadfc5
+0, 28800, 152064, 0x7cd3672e
+0, 32400, 152064, 0x5f2b9ede
+0, 36000, 152064, 0xc0bbdf75
+0, 39600, 152064, 0x95571e7c
+0, 43200, 152064, 0x0d1afc5b
+0, 46800, 152064, 0x9c91c11f
+0, 50400, 152064, 0x73e667e4
+0, 54000, 152064, 0xfb7f8892
+0, 57600, 152064, 0x5707f566
+0, 61200, 152064, 0x21032449
+0, 64800, 152064, 0x199e20b7
+0, 68400, 152064, 0x23213179
+0, 72000, 152064, 0x29812daa
+0, 75600, 152064, 0x04e3eb6b
+0, 79200, 152064, 0xab206165
+0, 82800, 152064, 0x392fbf7b
+0, 86400, 152064, 0x137a1c6a
+0, 90000, 152064, 0x9caff265
+0, 93600, 152064, 0x6becf046
+0, 97200, 152064, 0xfc2c3ba6
+0, 100800, 152064, 0xcf4b9b4c
+0, 104400, 152064, 0x4e2ebd37
+0, 108000, 152064, 0xcd419daa
+0, 111600, 152064, 0xe12294b0
+0, 115200, 152064, 0x6bda7493
+0, 118800, 152064, 0xefbf5d0b
+0, 122400, 152064, 0x9500458a
+0, 126000, 152064, 0x6b5d212e
+0, 129600, 152064, 0xb928fc31
+0, 133200, 152064, 0x64f2bb2f
+0, 136800, 152064, 0xf93a724d
+0, 140400, 152064, 0xdd0d32c0
+0, 144000, 152064, 0xe1b51d95
+0, 147600, 152064, 0xbb43d295
+0, 151200, 152064, 0x6dcea069
+0, 154800, 152064, 0x89d79805
+0, 158400, 152064, 0x50b5dd43
+0, 162000, 152064, 0xe3099e3f
+0, 165600, 152064, 0x003b6ace
+0, 169200, 152064, 0x2213b672
+0, 172800, 152064, 0x5b273093
+0, 176400, 152064, 0xdbfbd9bf
+0, 180000, 152064, 0xf26b89d0
+0, 183600, 152064, 0x1470527e
+0, 187200, 152064, 0x0e668970
+0, 190800, 152064, 0x00218692
+0, 194400, 152064, 0xaabf79a8
+0, 198000, 152064, 0xf68b4663
+0, 201600, 152064, 0x4c08d01f
+0, 205200, 152064, 0x48e75380
+0, 208800, 152064, 0x4b8be58f
+0, 212400, 152064, 0x8a6c1365
+0, 216000, 152064, 0x9439ca02
+0, 219600, 152064, 0x831d9855
+0, 223200, 152064, 0xff031ffd
+0, 226800, 152064, 0x3680f4bc
+0, 230400, 152064, 0x794c95a4
+0, 234000, 152064, 0x23e53349
+0, 237600, 152064, 0x85307117
+0, 241200, 152064, 0x0bc0bf5a
+0, 244800, 152064, 0xc79f46c8
+0, 248400, 152064, 0x48be4e21
+0, 252000, 152064, 0x2ad89b4f
+0, 255600, 152064, 0xd454f9a9
+0, 259200, 152064, 0x64852f6d
+0, 262800, 152064, 0xcb7b0c05
+0, 266400, 152064, 0x4e108ced
+0, 270000, 152064, 0xf5e5a37b
+0, 273600, 152064, 0x224e29c7
+0, 277200, 152064, 0xad90d3c2
+0, 280800, 152064, 0x5ddb5d05
+0, 284400, 152064, 0x4ebf4337
+0, 288000, 152064, 0x7e2bfeed
+0, 291600, 152064, 0x00e884c7
+0, 295200, 152064, 0xa4f6a534
+0, 298800, 152064, 0x622f1511
+0, 302400, 152064, 0x8d99233d
+0, 306000, 152064, 0x5910d02c
+0, 309600, 152064, 0x20d6706c
+0, 313200, 152064, 0x8e30a417
+0, 316800, 152064, 0x180d745a
+0, 320400, 152064, 0xc25189b9
+0, 324000, 152064, 0x909101ad
+0, 327600, 152064, 0x9967be1c
+0, 331200, 152064, 0x72ff3206
+0, 334800, 152064, 0x48d07f48
+0, 338400, 152064, 0x7f8244b7
+0, 342000, 152064, 0xf871e21e
+0, 345600, 152064, 0xd4743610
+0, 349200, 152064, 0xc2c7a7b1
+0, 352800, 152064, 0x95be1a75
+0, 356400, 152064, 0x44972b2e
+0, 360000, 152064, 0xa6036c4f
+0, 363600, 152064, 0xecdd8dd6
+0, 367200, 152064, 0xbb7e8551
+0, 370800, 152064, 0x42916e6c
+0, 374400, 152064, 0x972db010
+0, 378000, 152064, 0x80dab6a0
+0, 381600, 152064, 0xc753ecdb
+0, 385200, 152064, 0x0823bffa
+0, 388800, 152064, 0x80876b2d
+0, 392400, 152064, 0x4a8b2118
+0, 396000, 152064, 0x0be2c13d
+0, 399600, 152064, 0xa6966e4f
+0, 403200, 152064, 0xf6a57650
+0, 406800, 152064, 0x49d66fd4
+0, 410400, 152064, 0x21d92047
+0, 414000, 152064, 0x155f20a8
+0, 417600, 152064, 0x5ab90c1d
+0, 421200, 152064, 0xa0c31337
+0, 424800, 152064, 0xd20de1d6
+0, 428400, 152064, 0x300ad916
+0, 432000, 152064, 0xbcb89eb5
+0, 435600, 152064, 0x08759342
+0, 439200, 152064, 0xa5d06e72
+0, 442800, 152064, 0x3b4c537f
+0, 446400, 152064, 0x7f48912b
+0, 450000, 152064, 0x200dbd1f
+0, 453600, 152064, 0x918abfde
+0, 457200, 152064, 0xd8072cdf
+0, 460800, 152064, 0x89d2902b
+0, 464400, 152064, 0xcd2e2e3c
+0, 468000, 152064, 0xf343e4a2
+0, 471600, 152064, 0xc424acad
+0, 475200, 152064, 0xf71e3031
+0, 478800, 152064, 0xf1bc1179
+0, 482400, 152064, 0x9af58d24
+0, 486000, 152064, 0x48a4d01e
+0, 489600, 152064, 0xcf24f721
+0, 493200, 152064, 0x5bc7b4f3
+0, 496800, 152064, 0x8763fc59
+0, 500400, 152064, 0xb6954051
+0, 504000, 152064, 0x044ba446
+0, 507600, 152064, 0xdaaaee7e
+0, 511200, 152064, 0x8eac550d
+0, 514800, 152064, 0x5191d08c
+0, 518400, 152064, 0x3cd76d43
+0, 522000, 152064, 0xf01f8fa9
+0, 525600, 152064, 0x0e283e9b
+0, 529200, 152064, 0x7cef69ee
+0, 532800, 152064, 0xc8e332bc
+0, 536400, 152064, 0x5b1aa484
+0, 540000, 152064, 0x3975234f
+0, 543600, 152064, 0x52b8661e
+0, 547200, 152064, 0xb4b8fed8
+0, 550800, 152064, 0x5aff9f70
+0, 554400, 152064, 0x7b575735
+0, 558000, 152064, 0x77d51523
+0, 561600, 152064, 0xf5131eba
+0, 565200, 152064, 0x4bd2b1ad
+0, 568800, 152064, 0xccfc8dca
+0, 572400, 152064, 0xcf245472
+0, 576000, 152064, 0xe055adf5
+0, 579600, 152064, 0x2a90e171
+0, 583200, 152064, 0x1bd8ea64
+0, 586800, 152064, 0x32f1d794
+0, 590400, 152064, 0xc938c42a
+0, 594000, 152064, 0x12b5644f
+0, 597600, 152064, 0x99003711
+0, 601200, 152064, 0xaecfad1c
+0, 604800, 152064, 0x94b00ae1
+0, 608400, 152064, 0xbb4f982f
+0, 612000, 152064, 0x6f7f5dc1
+0, 615600, 152064, 0x7be7c2cb
+0, 619200, 152064, 0x3b2ee4d3
+0, 622800, 152064, 0xc75f5666
+0, 626400, 152064, 0xff7a3ede
+0, 630000, 152064, 0x55866b59
+0, 633600, 152064, 0x408b8455
+0, 637200, 152064, 0x96c4ab66
+0, 640800, 152064, 0x1d87f575
+0, 644400, 152064, 0x3a3b17ac
+0, 648000, 152064, 0x9c99e591
+0, 651600, 152064, 0xc1fc663d
+0, 655200, 152064, 0x17b982dd
+0, 658800, 152064, 0x24fe9dad
+0, 662400, 152064, 0xea8760ee
+0, 666000, 152064, 0x23dcefad
+0, 669600, 152064, 0xee6d23f0
+0, 673200, 152064, 0xfddc1962
+0, 676800, 152064, 0xb23190df
+0, 680400, 152064, 0xf066a595
+0, 684000, 152064, 0x2200fef8
+0, 687600, 152064, 0x5491ab2f
+0, 691200, 152064, 0xea93fa58
+0, 694800, 152064, 0x3e13d4f4
+0, 698400, 152064, 0x3dda841d
+0, 702000, 152064, 0xfc243577
+0, 705600, 152064, 0xca4a9127
+0, 709200, 152064, 0x41908ec0
+0, 712800, 152064, 0x10a758bd
+0, 716400, 152064, 0x6a849e5b
+0, 720000, 152064, 0xb55a1f2b
+0, 723600, 152064, 0x2bfe9627
+0, 727200, 152064, 0x2bfca28c
+0, 730800, 152064, 0xd166f336
+0, 734400, 152064, 0x9facb32b
+0, 738000, 152064, 0x6a672475
+0, 741600, 152064, 0xc7b219cf
+0, 745200, 152064, 0x2b43ca53
+0, 748800, 152064, 0x43b542c4
+0, 752400, 152064, 0xdc654337
+0, 756000, 152064, 0x68003d7c
+0, 759600, 152064, 0x3cb85724
+0, 763200, 152064, 0x422701c2
+0, 766800, 152064, 0x1c667870
+0, 770400, 152064, 0x75ef3230
+0, 774000, 152064, 0x0ac82643
+0, 777600, 152064, 0x3eb3a0be
+0, 781200, 152064, 0x482bd77e
+0, 784800, 152064, 0xd3ce1171
+0, 788400, 152064, 0xeaefc7e4
+0, 792000, 152064, 0xa9c67939
+0, 795600, 152064, 0x0af0a25b
+0, 799200, 152064, 0xd094d95a
+0, 802800, 152064, 0xfda42fc6
+0, 806400, 152064, 0x4669f952
+0, 810000, 152064, 0x52d40e98
+0, 813600, 152064, 0x27c36cd1
+0, 817200, 152064, 0xa103b6ce
+0, 820800, 152064, 0x2be9026d
+0, 824400, 152064, 0x2f4ecc59
+0, 828000, 152064, 0x53144cef
+0, 831600, 152064, 0x15d54fc9
+0, 835200, 152064, 0x7e302db7
+0, 838800, 152064, 0x82521901
+0, 842400, 152064, 0x1123cdb6
+0, 846000, 152064, 0x3185878a
+0, 849600, 152064, 0xbb294983
+0, 853200, 152064, 0x83d9fe66
+0, 856800, 152064, 0xede9fb08
+0, 860400, 152064, 0xa543b551
+0, 864000, 152064, 0x39e82734
+0, 867600, 152064, 0xd0447fb5
+0, 871200, 152064, 0x8cc6f502
+0, 874800, 152064, 0xda8d1da8
+0, 878400, 152064, 0xcafdccca
+0, 882000, 152064, 0xbf0e04f4
+0, 885600, 152064, 0x0c6eefec
+0, 889200, 152064, 0xb9026d39
+0, 892800, 152064, 0x0121a7a8
+0, 896400, 152064, 0x453ebbc6
+0, 900000, 152064, 0x14ae15e3
+0, 903600, 152064, 0x51d618e1
+0, 907200, 152064, 0x2254f452
+0, 910800, 152064, 0x8c360633
+0, 914400, 152064, 0x8704d9bc
+0, 918000, 152064, 0xe5d48301
+0, 921600, 152064, 0xf25b7b3f
+0, 925200, 152064, 0xd2ad3b73
+0, 928800, 152064, 0x53db0387
+0, 932400, 152064, 0x2486341c
+0, 936000, 152064, 0x4a24570b
+0, 939600, 152064, 0x0694620a
+0, 943200, 152064, 0xbbc2a302
+0, 946800, 152064, 0x08ad9c02
+0, 950400, 152064, 0x601a63ab
+0, 954000, 152064, 0xe4234a48
+0, 957600, 152064, 0x07702235
+0, 961200, 152064, 0x719dbecf
+0, 964800, 152064, 0xf301a7ad
+0, 968400, 152064, 0xf15c70c3
+0, 972000, 152064, 0x0ab93386
+0, 975600, 152064, 0x99c05adb
+0, 979200, 152064, 0x9ed43530
+0, 982800, 152064, 0xa2f62122
+0, 986400, 152064, 0xf16f4525
+0, 990000, 152064, 0xa3403b4a
+0, 993600, 152064, 0x95521096
+0, 997200, 152064, 0x0d412988
+0, 1000800, 152064, 0x829e080a
+0, 1004400, 152064, 0x0805c1b5
+0, 1008000, 152064, 0xa136be48
+0, 1011600, 152064, 0x0f8de228
+0, 1015200, 152064, 0x272cf2d3
+0, 1018800, 152064, 0xa1df2a5e
+0, 1022400, 152064, 0xf9db8350
+0, 1026000, 152064, 0x5536997d
+0, 1029600, 152064, 0xab83e81e
+0, 1033200, 152064, 0xec791b49
+0, 1036800, 152064, 0x04d03e19
+0, 1040400, 152064, 0xd6a2bd21
+0, 1044000, 152064, 0x2d35f0aa
+0, 1047600, 152064, 0x137bf715
+0, 1051200, 152064, 0x56ef5ae1
+0, 1054800, 152064, 0x9bb5821e
+0, 1058400, 152064, 0x533c7fff
+0, 1062000, 152064, 0x469ad380
+0, 1065600, 152064, 0x75710e84
+0, 1069200, 152064, 0xbbd72551
+0, 1072800, 152064, 0xf1137026
+0, 1076400, 152064, 0x6238412b
diff --git a/tests/ref/fate/h264-conformance-frext-hpcafl_bcrm_c b/tests/ref/fate/h264-conformance-frext-hpcafl_bcrm_c
new file mode 100644
index 0000000000..a67b4baea6
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hpcafl_bcrm_c
@@ -0,0 +1,300 @@
+0, 0, 152064, 0x502ec077
+0, 3600, 152064, 0x84807243
+0, 7200, 152064, 0xd7474a6e
+0, 10800, 152064, 0x793469bb
+0, 14400, 152064, 0xb7a0faf7
+0, 18000, 152064, 0x1d3d3cba
+0, 21600, 152064, 0xb62583de
+0, 25200, 152064, 0xc8422fb1
+0, 28800, 152064, 0x321dc699
+0, 32400, 152064, 0x7a34d350
+0, 36000, 152064, 0xaa4c302d
+0, 39600, 152064, 0x45fa7ab0
+0, 43200, 152064, 0xc7262e41
+0, 46800, 152064, 0x3550000c
+0, 50400, 152064, 0xf4bab54b
+0, 54000, 152064, 0xaccf9c1a
+0, 57600, 152064, 0x9bee20e9
+0, 61200, 152064, 0x47fb7720
+0, 64800, 152064, 0x12c63ffb
+0, 68400, 152064, 0xfa2b8b4d
+0, 72000, 152064, 0x279964bd
+0, 75600, 152064, 0xb8b01c7e
+0, 79200, 152064, 0x816fa010
+0, 82800, 152064, 0x59fe1c8c
+0, 86400, 152064, 0x13393fad
+0, 90000, 152064, 0x991a50a4
+0, 93600, 152064, 0x57df3eb7
+0, 97200, 152064, 0x744371df
+0, 100800, 152064, 0xe9f6d3ff
+0, 104400, 152064, 0xc506fba0
+0, 108000, 152064, 0x6295b90e
+0, 111600, 152064, 0xa19cee2d
+0, 115200, 152064, 0xf8c1b3ca
+0, 118800, 152064, 0x69f68ce0
+0, 122400, 152064, 0x80558bb6
+0, 126000, 152064, 0x27824fa5
+0, 129600, 152064, 0x27c929a1
+0, 133200, 152064, 0xc0fe06d1
+0, 136800, 152064, 0xc52bc58c
+0, 140400, 152064, 0x0a5363c7
+0, 144000, 152064, 0xd0f45a0d
+0, 147600, 152064, 0x274710f9
+0, 151200, 152064, 0x89d2d390
+0, 154800, 152064, 0x12a9bfb0
+0, 158400, 152064, 0x04501a93
+0, 162000, 152064, 0xf92cbbf4
+0, 165600, 152064, 0xf6d1b27d
+0, 169200, 152064, 0xe3e904c3
+0, 172800, 152064, 0x58f8516d
+0, 176400, 152064, 0x70370c2b
+0, 180000, 152064, 0xfeebc88c
+0, 183600, 152064, 0x974c6ed6
+0, 187200, 152064, 0x401bdcf2
+0, 190800, 152064, 0xfe61e278
+0, 194400, 152064, 0x96ba8bb9
+0, 198000, 152064, 0x988492fd
+0, 201600, 152064, 0xd1d913a9
+0, 205200, 152064, 0x6bc46f0e
+0, 208800, 152064, 0x695ef706
+0, 212400, 152064, 0x142045c9
+0, 216000, 152064, 0xb390ed87
+0, 219600, 152064, 0xb9e6d2e5
+0, 223200, 152064, 0xe348797f
+0, 226800, 152064, 0x1cbd29d6
+0, 230400, 152064, 0xbd7dd694
+0, 234000, 152064, 0x516873c3
+0, 237600, 152064, 0x27bba182
+0, 241200, 152064, 0x7541f920
+0, 244800, 152064, 0xfdf67042
+0, 248400, 152064, 0x6c3c7896
+0, 252000, 152064, 0xed86c467
+0, 255600, 152064, 0x4ea83ca2
+0, 259200, 152064, 0xa3e6725b
+0, 262800, 152064, 0x917f5f16
+0, 266400, 152064, 0x8cf2d2e1
+0, 270000, 152064, 0x57a8d116
+0, 273600, 152064, 0x0db267d4
+0, 277200, 152064, 0xce782ac5
+0, 280800, 152064, 0x1c9d8518
+0, 284400, 152064, 0x47598ac7
+0, 288000, 152064, 0xc5033d97
+0, 291600, 152064, 0xd7aaa3a4
+0, 295200, 152064, 0x078afc96
+0, 298800, 152064, 0xc9fe673d
+0, 302400, 152064, 0xe9284066
+0, 306000, 152064, 0xbc570982
+0, 309600, 152064, 0x0aac8574
+0, 313200, 152064, 0x098cbeee
+0, 316800, 152064, 0x19c36a9d
+0, 320400, 152064, 0x8fe4a893
+0, 324000, 152064, 0x0b652f17
+0, 327600, 152064, 0x10f2e6bf
+0, 331200, 152064, 0x7ce5634e
+0, 334800, 152064, 0x8fe4ac6c
+0, 338400, 152064, 0xcaba749e
+0, 342000, 152064, 0x5f8a0d5c
+0, 345600, 152064, 0xcaa66bbc
+0, 349200, 152064, 0xc87ae617
+0, 352800, 152064, 0xe8ef4dd7
+0, 356400, 152064, 0xdfca5a07
+0, 360000, 152064, 0x5f7eab7d
+0, 363600, 152064, 0x8a65ebbb
+0, 367200, 152064, 0x4beab4a0
+0, 370800, 152064, 0xb5e6ab30
+0, 374400, 152064, 0x8fe4f4d4
+0, 378000, 152064, 0x95bde1ca
+0, 381600, 152064, 0xcc5e3a53
+0, 385200, 152064, 0xf09f1dd7
+0, 388800, 152064, 0x10179672
+0, 392400, 152064, 0x4ad16184
+0, 396000, 152064, 0x9efa0e23
+0, 399600, 152064, 0x22f59522
+0, 403200, 152064, 0x4d38f09d
+0, 406800, 152064, 0x4c5ebf56
+0, 410400, 152064, 0xb19d5077
+0, 414000, 152064, 0xa98576b9
+0, 417600, 152064, 0x65324239
+0, 421200, 152064, 0x709e4031
+0, 424800, 152064, 0xf8e81681
+0, 428400, 152064, 0x058514e5
+0, 432000, 152064, 0xd1d1c806
+0, 435600, 152064, 0x0e4dde57
+0, 439200, 152064, 0x49e9c2bb
+0, 442800, 152064, 0x01417ce6
+0, 446400, 152064, 0xda7ebbf1
+0, 450000, 152064, 0xa22906b7
+0, 453600, 152064, 0x32e2df87
+0, 457200, 152064, 0x69917c8f
+0, 460800, 152064, 0xea8ed2cc
+0, 464400, 152064, 0x0b8d57f1
+0, 468000, 152064, 0x5f683bcd
+0, 471600, 152064, 0x5162fe2f
+0, 475200, 152064, 0x49c052f8
+0, 478800, 152064, 0x990b69ba
+0, 482400, 152064, 0xa6d4f99f
+0, 486000, 152064, 0xe79ef4da
+0, 489600, 152064, 0x5e8a3847
+0, 493200, 152064, 0x38b1e75f
+0, 496800, 152064, 0xf5c91bed
+0, 500400, 152064, 0xd59a6d26
+0, 504000, 152064, 0xc361de06
+0, 507600, 152064, 0x63ed2229
+0, 511200, 152064, 0xb8229205
+0, 514800, 152064, 0x7c6619af
+0, 518400, 152064, 0x4126b02f
+0, 522000, 152064, 0x9250b99b
+0, 525600, 152064, 0x589778f9
+0, 529200, 152064, 0xed1fa45b
+0, 532800, 152064, 0x700b6f32
+0, 536400, 152064, 0x0590df55
+0, 540000, 152064, 0x3e9c4018
+0, 543600, 152064, 0x957b8860
+0, 547200, 152064, 0x56161560
+0, 550800, 152064, 0xbc43bc3b
+0, 554400, 152064, 0x508d8632
+0, 558000, 152064, 0xbc5736d8
+0, 561600, 152064, 0xed7d3aef
+0, 565200, 152064, 0x1dcdda9f
+0, 568800, 152064, 0x8ef6d5c9
+0, 572400, 152064, 0x15466acc
+0, 576000, 152064, 0x45d4cf67
+0, 579600, 152064, 0x8c900b9d
+0, 583200, 152064, 0x747006e0
+0, 586800, 152064, 0xac920a0c
+0, 590400, 152064, 0xb8210c27
+0, 594000, 152064, 0x7dbb873a
+0, 597600, 152064, 0x0d4d7584
+0, 601200, 152064, 0xefb3fe60
+0, 604800, 152064, 0x905e2644
+0, 608400, 152064, 0x7c04e534
+0, 612000, 152064, 0x8889972a
+0, 615600, 152064, 0x21c7d8ad
+0, 619200, 152064, 0x1c641176
+0, 622800, 152064, 0xf71489a4
+0, 626400, 152064, 0xd7ac5555
+0, 630000, 152064, 0xb4609c6d
+0, 633600, 152064, 0xf5b2bd5e
+0, 637200, 152064, 0x9f43ce57
+0, 640800, 152064, 0x77642dd3
+0, 644400, 152064, 0x3e79565c
+0, 648000, 152064, 0x95f40b8e
+0, 651600, 152064, 0x3c8ca4d4
+0, 655200, 152064, 0xa02ac497
+0, 658800, 152064, 0x4c93b377
+0, 662400, 152064, 0x55f5ac68
+0, 666000, 152064, 0xf8652eca
+0, 669600, 152064, 0x56e94574
+0, 673200, 152064, 0x6d8302e1
+0, 676800, 152064, 0x29a57061
+0, 680400, 152064, 0x24e4cfdc
+0, 684000, 152064, 0xf5a5d62a
+0, 687600, 152064, 0x998870c1
+0, 691200, 152064, 0xa15b1f4e
+0, 694800, 152064, 0xb0ccb51f
+0, 698400, 152064, 0xeaaf59ab
+0, 702000, 152064, 0x7e2b4fe6
+0, 705600, 152064, 0x72299fea
+0, 709200, 152064, 0x769da8b2
+0, 712800, 152064, 0xefad7ef8
+0, 716400, 152064, 0x24819983
+0, 720000, 152064, 0x2aad32ab
+0, 723600, 152064, 0xc80cac79
+0, 727200, 152064, 0x1659d628
+0, 730800, 152064, 0xef941f66
+0, 734400, 152064, 0x0d7fcdb5
+0, 738000, 152064, 0x7c1853fa
+0, 741600, 152064, 0xb94c4d3c
+0, 745200, 152064, 0xc47adfc2
+0, 748800, 152064, 0x366a6729
+0, 752400, 152064, 0x7eb37b70
+0, 756000, 152064, 0xafd54c27
+0, 759600, 152064, 0x67b18636
+0, 763200, 152064, 0x93b22dcf
+0, 766800, 152064, 0xa64991f1
+0, 770400, 152064, 0xd32a7102
+0, 774000, 152064, 0xff665d1c
+0, 777600, 152064, 0xf107cc31
+0, 781200, 152064, 0xf5b25652
+0, 784800, 152064, 0x8caf783d
+0, 788400, 152064, 0x72f3eb00
+0, 792000, 152064, 0xb5aea5f8
+0, 795600, 152064, 0xee70e870
+0, 799200, 152064, 0x7c3a0156
+0, 802800, 152064, 0x871b6383
+0, 806400, 152064, 0x48d831ff
+0, 810000, 152064, 0xca233913
+0, 813600, 152064, 0xe14bc5eb
+0, 817200, 152064, 0x9b1d27e7
+0, 820800, 152064, 0xfb9637f7
+0, 824400, 152064, 0x0c022157
+0, 828000, 152064, 0x16d35fc9
+0, 831600, 152064, 0x6d935f71
+0, 835200, 152064, 0xae4066fa
+0, 838800, 152064, 0xcef94fdc
+0, 842400, 152064, 0xc234edb9
+0, 846000, 152064, 0x26a4f2e2
+0, 849600, 152064, 0xd29ac23e
+0, 853200, 152064, 0xb7604395
+0, 856800, 152064, 0x408084f6
+0, 860400, 152064, 0x0a02026c
+0, 864000, 152064, 0x78b33c7c
+0, 867600, 152064, 0xcb02b874
+0, 871200, 152064, 0xf566513b
+0, 874800, 152064, 0xb34e52b1
+0, 878400, 152064, 0xf55ff493
+0, 882000, 152064, 0xb0e8282a
+0, 885600, 152064, 0xe9510bbe
+0, 889200, 152064, 0x292e8c5a
+0, 892800, 152064, 0x62b9d2b0
+0, 896400, 152064, 0x3a8cc827
+0, 900000, 152064, 0x25cc465e
+0, 903600, 152064, 0xf2bc32e2
+0, 907200, 152064, 0x6141f914
+0, 910800, 152064, 0x1171256f
+0, 914400, 152064, 0x13cb2ded
+0, 918000, 152064, 0x3d4ca557
+0, 921600, 152064, 0xf2b9e72e
+0, 925200, 152064, 0x03f7547a
+0, 928800, 152064, 0xc7302955
+0, 932400, 152064, 0xe78a46d3
+0, 936000, 152064, 0x3726a270
+0, 939600, 152064, 0x2f65722a
+0, 943200, 152064, 0x55acce40
+0, 946800, 152064, 0xf6fa9db2
+0, 950400, 152064, 0x70a36937
+0, 954000, 152064, 0x9313742d
+0, 957600, 152064, 0x2eb14e53
+0, 961200, 152064, 0x3d47c9c3
+0, 964800, 152064, 0xd0a90348
+0, 968400, 152064, 0x6ad48088
+0, 972000, 152064, 0x68e64738
+0, 975600, 152064, 0x04c3735a
+0, 979200, 152064, 0x51d0593f
+0, 982800, 152064, 0x42cf2b48
+0, 986400, 152064, 0xa5496a0c
+0, 990000, 152064, 0x84c25549
+0, 993600, 152064, 0x96691600
+0, 997200, 152064, 0x423135db
+0, 1000800, 152064, 0x8d2e08b6
+0, 1004400, 152064, 0xaeb4c840
+0, 1008000, 152064, 0xf3e71780
+0, 1011600, 152064, 0x8858228b
+0, 1015200, 152064, 0xf28613f8
+0, 1018800, 152064, 0xb5327882
+0, 1022400, 152064, 0xbb60bb85
+0, 1026000, 152064, 0x345ab1c9
+0, 1029600, 152064, 0x8aac2cba
+0, 1033200, 152064, 0x7ce15b4c
+0, 1036800, 152064, 0xc09c55c0
+0, 1040400, 152064, 0x8482ddd6
+0, 1044000, 152064, 0xab222a13
+0, 1047600, 152064, 0xd39b0dea
+0, 1051200, 152064, 0x6dab6e06
+0, 1054800, 152064, 0xec0891bd
+0, 1058400, 152064, 0x88bd9701
+0, 1062000, 152064, 0xdf13072a
+0, 1065600, 152064, 0x23b33081
+0, 1069200, 152064, 0x63943137
+0, 1072800, 152064, 0xab6a9052
+0, 1076400, 152064, 0x05485494
diff --git a/tests/ref/fate/h264-conformance-frext-hpcaflnl_bcrm_c b/tests/ref/fate/h264-conformance-frext-hpcaflnl_bcrm_c
new file mode 100644
index 0000000000..97d7677085
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hpcaflnl_bcrm_c
@@ -0,0 +1,300 @@
+0, 0, 152064, 0x3e39c08b
+0, 3600, 152064, 0xabc67990
+0, 7200, 152064, 0x19614e74
+0, 10800, 152064, 0xa3776beb
+0, 14400, 152064, 0xcce6ffdf
+0, 18000, 152064, 0xb0e94746
+0, 21600, 152064, 0xdb1a84ef
+0, 25200, 152064, 0xb2624509
+0, 28800, 152064, 0x32e2d826
+0, 32400, 152064, 0xb3bddf0b
+0, 36000, 152064, 0x2e273ce3
+0, 39600, 152064, 0x67af7e4d
+0, 43200, 152064, 0x505c3261
+0, 46800, 152064, 0xa43d015e
+0, 50400, 152064, 0xad41c1f6
+0, 54000, 152064, 0x633ba55f
+0, 57600, 152064, 0xe80634f0
+0, 61200, 152064, 0x80a07dc9
+0, 64800, 152064, 0x0e7a3bbf
+0, 68400, 152064, 0xcb099196
+0, 72000, 152064, 0x57c96db5
+0, 75600, 152064, 0xccd422fa
+0, 79200, 152064, 0x0850b7a7
+0, 82800, 152064, 0x30e33156
+0, 86400, 152064, 0x34e13f9a
+0, 90000, 152064, 0x03d36000
+0, 93600, 152064, 0xbf7d49da
+0, 97200, 152064, 0x77336d09
+0, 100800, 152064, 0xca8be5a9
+0, 104400, 152064, 0xe57c0b08
+0, 108000, 152064, 0xbe77c093
+0, 111600, 152064, 0x6bf1ff05
+0, 115200, 152064, 0x9142babf
+0, 118800, 152064, 0x08db8e67
+0, 122400, 152064, 0x69ac8cb6
+0, 126000, 152064, 0xaa3b5c88
+0, 129600, 152064, 0x9bd32638
+0, 133200, 152064, 0x7972115a
+0, 136800, 152064, 0x5c1dd47b
+0, 140400, 152064, 0x8a196e02
+0, 144000, 152064, 0xa89672bc
+0, 147600, 152064, 0x27b220e4
+0, 151200, 152064, 0xfa38dc4a
+0, 154800, 152064, 0x4784c639
+0, 158400, 152064, 0xa5e4229a
+0, 162000, 152064, 0xa986bdfc
+0, 165600, 152064, 0x2951b47b
+0, 169200, 152064, 0x4df404a6
+0, 172800, 152064, 0xc75155e8
+0, 176400, 152064, 0xfc05248c
+0, 180000, 152064, 0x5d53da10
+0, 183600, 152064, 0x284376ec
+0, 187200, 152064, 0x19fce380
+0, 190800, 152064, 0x876be6c9
+0, 194400, 152064, 0x39eb8ff9
+0, 198000, 152064, 0x289c9543
+0, 201600, 152064, 0x24dd2356
+0, 205200, 152064, 0x1dc17d3c
+0, 208800, 152064, 0xd17c00ac
+0, 212400, 152064, 0xc2ad54de
+0, 216000, 152064, 0xbe11ee2f
+0, 219600, 152064, 0x3db9dc89
+0, 223200, 152064, 0xac0d7bc2
+0, 226800, 152064, 0x8dab2dde
+0, 230400, 152064, 0x566ad225
+0, 234000, 152064, 0x587c7853
+0, 237600, 152064, 0x601c9c80
+0, 241200, 152064, 0x2afaf751
+0, 244800, 152064, 0x1c9f7e3a
+0, 248400, 152064, 0x899475bf
+0, 252000, 152064, 0x0d65c7d9
+0, 255600, 152064, 0xafd63d12
+0, 259200, 152064, 0x162e62b9
+0, 262800, 152064, 0x5c9554be
+0, 266400, 152064, 0x35fbdaa2
+0, 270000, 152064, 0x6438cbd8
+0, 273600, 152064, 0xde0772c9
+0, 277200, 152064, 0x79f82854
+0, 280800, 152064, 0x86957840
+0, 284400, 152064, 0xd9468cbf
+0, 288000, 152064, 0x23e74609
+0, 291600, 152064, 0x3919a146
+0, 295200, 152064, 0xd641078b
+0, 298800, 152064, 0x24397220
+0, 302400, 152064, 0xe7fc3a7c
+0, 306000, 152064, 0x3997154a
+0, 309600, 152064, 0x2af3952c
+0, 313200, 152064, 0x274ac07a
+0, 316800, 152064, 0x288f7b09
+0, 320400, 152064, 0xe6f9b022
+0, 324000, 152064, 0xf09e2fbb
+0, 327600, 152064, 0x7244e477
+0, 331200, 152064, 0x0dfc72eb
+0, 334800, 152064, 0x0322b21f
+0, 338400, 152064, 0x18b08205
+0, 342000, 152064, 0x6606153e
+0, 345600, 152064, 0x85186272
+0, 349200, 152064, 0x3369f064
+0, 352800, 152064, 0xbe0d5a44
+0, 356400, 152064, 0x320258bb
+0, 360000, 152064, 0x4d6fb091
+0, 363600, 152064, 0xc9bbf5e7
+0, 367200, 152064, 0x0aa1b69b
+0, 370800, 152064, 0x85b9ac11
+0, 374400, 152064, 0xb25ff818
+0, 378000, 152064, 0xa155dc25
+0, 381600, 152064, 0xa8e03bfd
+0, 385200, 152064, 0x0a862956
+0, 388800, 152064, 0x11b49264
+0, 392400, 152064, 0xa94e664e
+0, 396000, 152064, 0x330e0fa2
+0, 399600, 152064, 0xaf3d9518
+0, 403200, 152064, 0x0836f2e8
+0, 406800, 152064, 0xbf6dc578
+0, 410400, 152064, 0x7b524d20
+0, 414000, 152064, 0x9ef7677f
+0, 417600, 152064, 0xeacf3f34
+0, 421200, 152064, 0xfb4e3dbe
+0, 424800, 152064, 0xb46e25cb
+0, 428400, 152064, 0x363c1603
+0, 432000, 152064, 0x263fc542
+0, 435600, 152064, 0xf106e548
+0, 439200, 152064, 0xde43c56a
+0, 442800, 152064, 0xc2c4770a
+0, 446400, 152064, 0x122fce19
+0, 450000, 152064, 0x3ba01434
+0, 453600, 152064, 0x0e8ce5ee
+0, 457200, 152064, 0x6ceb82e1
+0, 460800, 152064, 0xa23ee21c
+0, 464400, 152064, 0xc6d960f9
+0, 468000, 152064, 0x0de15258
+0, 471600, 152064, 0x187b0333
+0, 475200, 152064, 0x92e6582f
+0, 478800, 152064, 0xb9586ce0
+0, 482400, 152064, 0xefd803b5
+0, 486000, 152064, 0x24eafb29
+0, 489600, 152064, 0x20c73b14
+0, 493200, 152064, 0xbd7ceaaa
+0, 496800, 152064, 0x775216c8
+0, 500400, 152064, 0xa08971c7
+0, 504000, 152064, 0xef0ee865
+0, 507600, 152064, 0x9ac61c2f
+0, 511200, 152064, 0x52ae8ea9
+0, 514800, 152064, 0x06571c14
+0, 518400, 152064, 0x6e78ad33
+0, 522000, 152064, 0xad01c627
+0, 525600, 152064, 0xbfe074d3
+0, 529200, 152064, 0x9357a183
+0, 532800, 152064, 0x8de7767f
+0, 536400, 152064, 0xa5e6e76e
+0, 540000, 152064, 0xa6f646fe
+0, 543600, 152064, 0x132e99f8
+0, 547200, 152064, 0xb79f27de
+0, 550800, 152064, 0x36d3cdcf
+0, 554400, 152064, 0xdc938336
+0, 558000, 152064, 0xacaa3a7f
+0, 561600, 152064, 0xc61a37fd
+0, 565200, 152064, 0x4fe1ddf0
+0, 568800, 152064, 0xc0f7d660
+0, 572400, 152064, 0xd72458ea
+0, 576000, 152064, 0x6978d123
+0, 579600, 152064, 0x64e60ccf
+0, 583200, 152064, 0xaa07004c
+0, 586800, 152064, 0x07cd1064
+0, 590400, 152064, 0xa82320e5
+0, 594000, 152064, 0xaedd8d30
+0, 597600, 152064, 0x79b082ea
+0, 601200, 152064, 0x9ed800ab
+0, 604800, 152064, 0xde592bb4
+0, 608400, 152064, 0xd966df88
+0, 612000, 152064, 0xf921988a
+0, 615600, 152064, 0x557ad9ae
+0, 619200, 152064, 0xc3f31a9a
+0, 622800, 152064, 0x65248561
+0, 626400, 152064, 0x63df4aa6
+0, 630000, 152064, 0x618da0a9
+0, 633600, 152064, 0xe6f1c435
+0, 637200, 152064, 0x9f90c38f
+0, 640800, 152064, 0xd2853e14
+0, 644400, 152064, 0x6e0268a9
+0, 648000, 152064, 0x393712d1
+0, 651600, 152064, 0x470da25f
+0, 655200, 152064, 0xaf55cb3d
+0, 658800, 152064, 0x6935b8b9
+0, 662400, 152064, 0x5409a15f
+0, 666000, 152064, 0x09073fee
+0, 669600, 152064, 0xfb274e82
+0, 673200, 152064, 0x1a770581
+0, 676800, 152064, 0x17277d0d
+0, 680400, 152064, 0xd4dcd982
+0, 684000, 152064, 0x6b04eaf3
+0, 687600, 152064, 0x8a3d822e
+0, 691200, 152064, 0x1b971ec9
+0, 694800, 152064, 0x14e0c0f6
+0, 698400, 152064, 0x00667450
+0, 702000, 152064, 0xd2385902
+0, 705600, 152064, 0x905da6ab
+0, 709200, 152064, 0xa3ffb18b
+0, 712800, 152064, 0x10d48b19
+0, 716400, 152064, 0xb2c7a3bd
+0, 720000, 152064, 0x45593e96
+0, 723600, 152064, 0x47a0b60c
+0, 727200, 152064, 0x68c6d1b9
+0, 730800, 152064, 0xbc881fcc
+0, 734400, 152064, 0x422cc6f2
+0, 738000, 152064, 0x9b686410
+0, 741600, 152064, 0x35dc5e86
+0, 745200, 152064, 0x247bedaa
+0, 748800, 152064, 0x22b76fd1
+0, 752400, 152064, 0x67cc7a75
+0, 756000, 152064, 0xa197521e
+0, 759600, 152064, 0x428c8662
+0, 763200, 152064, 0x33dc2c73
+0, 766800, 152064, 0x5b538903
+0, 770400, 152064, 0x3c4176b6
+0, 774000, 152064, 0x774364ba
+0, 777600, 152064, 0xf237d03e
+0, 781200, 152064, 0xac8746fb
+0, 784800, 152064, 0x6b306a84
+0, 788400, 152064, 0xa2ace513
+0, 792000, 152064, 0x709c9be7
+0, 795600, 152064, 0x2403f373
+0, 799200, 152064, 0x147bf717
+0, 802800, 152064, 0xe58964c8
+0, 806400, 152064, 0xa0da36fc
+0, 810000, 152064, 0x1ac1355c
+0, 813600, 152064, 0x8a31c9f2
+0, 817200, 152064, 0x42ba205c
+0, 820800, 152064, 0xa11b3575
+0, 824400, 152064, 0xcb35207c
+0, 828000, 152064, 0x528f6189
+0, 831600, 152064, 0x34f05bd7
+0, 835200, 152064, 0x72317356
+0, 838800, 152064, 0xaabd5028
+0, 842400, 152064, 0x13dbeb7b
+0, 846000, 152064, 0x62f1e8a8
+0, 849600, 152064, 0x1723bfcd
+0, 853200, 152064, 0x5c083c00
+0, 856800, 152064, 0x52137894
+0, 860400, 152064, 0xef1e082c
+0, 864000, 152064, 0x664b3d53
+0, 867600, 152064, 0x2eb9b296
+0, 871200, 152064, 0xd0ca511e
+0, 874800, 152064, 0x012d4724
+0, 878400, 152064, 0xa847f5af
+0, 882000, 152064, 0x483a2fde
+0, 885600, 152064, 0xd1ab0257
+0, 889200, 152064, 0x414692c7
+0, 892800, 152064, 0x0b79df88
+0, 896400, 152064, 0xdaa2c4a3
+0, 900000, 152064, 0xd1b44500
+0, 903600, 152064, 0xfd3d2cf3
+0, 907200, 152064, 0xfdc0f748
+0, 910800, 152064, 0xce762a2a
+0, 914400, 152064, 0x08b63572
+0, 918000, 152064, 0x5a46a38d
+0, 921600, 152064, 0x03cee9c0
+0, 925200, 152064, 0x9ee45473
+0, 928800, 152064, 0x5a432386
+0, 932400, 152064, 0x54c83d87
+0, 936000, 152064, 0xc9caa1de
+0, 939600, 152064, 0xa28367f1
+0, 943200, 152064, 0x2607cdf1
+0, 946800, 152064, 0x06baa8de
+0, 950400, 152064, 0xf5346e32
+0, 954000, 152064, 0x6d3e732b
+0, 957600, 152064, 0x798c584b
+0, 961200, 152064, 0x4076c948
+0, 964800, 152064, 0x868cf63a
+0, 968400, 152064, 0x23107ac5
+0, 972000, 152064, 0x306f3fe2
+0, 975600, 152064, 0xbd1d71d6
+0, 979200, 152064, 0x1429545f
+0, 982800, 152064, 0xaded29aa
+0, 986400, 152064, 0x9b455a94
+0, 990000, 152064, 0xb3774ce7
+0, 993600, 152064, 0x92580986
+0, 997200, 152064, 0x0eae2f95
+0, 1000800, 152064, 0x599208b2
+0, 1004400, 152064, 0x4804c04c
+0, 1008000, 152064, 0x5f730e8f
+0, 1011600, 152064, 0x3e501d1e
+0, 1015200, 152064, 0x32100740
+0, 1018800, 152064, 0x62226ff8
+0, 1022400, 152064, 0x7683b622
+0, 1026000, 152064, 0xc3e0aec1
+0, 1029600, 152064, 0xfac12608
+0, 1033200, 152064, 0xb21a5781
+0, 1036800, 152064, 0x8f1e4964
+0, 1040400, 152064, 0x0f62dd6e
+0, 1044000, 152064, 0xac062ac4
+0, 1047600, 152064, 0x1b320f7a
+0, 1051200, 152064, 0x346e7211
+0, 1054800, 152064, 0xe47592f3
+0, 1058400, 152064, 0xa3a7919c
+0, 1062000, 152064, 0xa3580fa6
+0, 1065600, 152064, 0xc73430c1
+0, 1069200, 152064, 0x994a2c18
+0, 1072800, 152064, 0x0b5d8d45
+0, 1076400, 152064, 0x9eed5109
diff --git a/tests/ref/fate/h264-conformance-frext-hpcalq_brcm_b b/tests/ref/fate/h264-conformance-frext-hpcalq_brcm_b
new file mode 100644
index 0000000000..b5778dd378
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hpcalq_brcm_b
@@ -0,0 +1,300 @@
+0, 0, 152064, 0xf3c68dea
+0, 3600, 152064, 0xf52d483f
+0, 7200, 152064, 0x612f1792
+0, 10800, 152064, 0x4df34726
+0, 14400, 152064, 0xfed7c058
+0, 18000, 152064, 0x2d48025c
+0, 21600, 152064, 0x03544ab9
+0, 25200, 152064, 0x20cadfc5
+0, 28800, 152064, 0x7cd3672e
+0, 32400, 152064, 0x5f2b9ede
+0, 36000, 152064, 0xc0bbdf75
+0, 39600, 152064, 0x95571e7c
+0, 43200, 152064, 0x0d1afc5b
+0, 46800, 152064, 0x9c91c11f
+0, 50400, 152064, 0x73e667e4
+0, 54000, 152064, 0xfb7f8892
+0, 57600, 152064, 0x5707f566
+0, 61200, 152064, 0x21032449
+0, 64800, 152064, 0x199e20b7
+0, 68400, 152064, 0x23213179
+0, 72000, 152064, 0x29812daa
+0, 75600, 152064, 0x04e3eb6b
+0, 79200, 152064, 0xab206165
+0, 82800, 152064, 0x392fbf7b
+0, 86400, 152064, 0x137a1c6a
+0, 90000, 152064, 0x9caff265
+0, 93600, 152064, 0x6becf046
+0, 97200, 152064, 0xfc2c3ba6
+0, 100800, 152064, 0xcf4b9b4c
+0, 104400, 152064, 0x4e2ebd37
+0, 108000, 152064, 0xcd419daa
+0, 111600, 152064, 0xe12294b0
+0, 115200, 152064, 0x6bda7493
+0, 118800, 152064, 0xefbf5d0b
+0, 122400, 152064, 0x9500458a
+0, 126000, 152064, 0x6b5d212e
+0, 129600, 152064, 0xb928fc31
+0, 133200, 152064, 0x64f2bb2f
+0, 136800, 152064, 0xf93a724d
+0, 140400, 152064, 0xdd0d32c0
+0, 144000, 152064, 0xe1b51d95
+0, 147600, 152064, 0xbb43d295
+0, 151200, 152064, 0x6dcea069
+0, 154800, 152064, 0x89d79805
+0, 158400, 152064, 0x50b5dd43
+0, 162000, 152064, 0xe3099e3f
+0, 165600, 152064, 0x003b6ace
+0, 169200, 152064, 0x2213b672
+0, 172800, 152064, 0x5b273093
+0, 176400, 152064, 0xdbfbd9bf
+0, 180000, 152064, 0xf26b89d0
+0, 183600, 152064, 0x1470527e
+0, 187200, 152064, 0x0e668970
+0, 190800, 152064, 0x00218692
+0, 194400, 152064, 0xaabf79a8
+0, 198000, 152064, 0xf68b4663
+0, 201600, 152064, 0x4c08d01f
+0, 205200, 152064, 0x48e75380
+0, 208800, 152064, 0x4b8be58f
+0, 212400, 152064, 0x8a6c1365
+0, 216000, 152064, 0x9439ca02
+0, 219600, 152064, 0x831d9855
+0, 223200, 152064, 0xff031ffd
+0, 226800, 152064, 0x3680f4bc
+0, 230400, 152064, 0x794c95a4
+0, 234000, 152064, 0x23e53349
+0, 237600, 152064, 0x85307117
+0, 241200, 152064, 0x0bc0bf5a
+0, 244800, 152064, 0xc79f46c8
+0, 248400, 152064, 0x48be4e21
+0, 252000, 152064, 0x2ad89b4f
+0, 255600, 152064, 0xd454f9a9
+0, 259200, 152064, 0x64852f6d
+0, 262800, 152064, 0xcb7b0c05
+0, 266400, 152064, 0x4e108ced
+0, 270000, 152064, 0xf5e5a37b
+0, 273600, 152064, 0x224e29c7
+0, 277200, 152064, 0xad90d3c2
+0, 280800, 152064, 0x5ddb5d05
+0, 284400, 152064, 0x4ebf4337
+0, 288000, 152064, 0x7e2bfeed
+0, 291600, 152064, 0x00e884c7
+0, 295200, 152064, 0xa4f6a534
+0, 298800, 152064, 0x622f1511
+0, 302400, 152064, 0x8d99233d
+0, 306000, 152064, 0x5910d02c
+0, 309600, 152064, 0x20d6706c
+0, 313200, 152064, 0x8e30a417
+0, 316800, 152064, 0x180d745a
+0, 320400, 152064, 0xc25189b9
+0, 324000, 152064, 0x909101ad
+0, 327600, 152064, 0x9967be1c
+0, 331200, 152064, 0x72ff3206
+0, 334800, 152064, 0x48d07f48
+0, 338400, 152064, 0x7f8244b7
+0, 342000, 152064, 0xf871e21e
+0, 345600, 152064, 0xd4743610
+0, 349200, 152064, 0xc2c7a7b1
+0, 352800, 152064, 0x95be1a75
+0, 356400, 152064, 0x44972b2e
+0, 360000, 152064, 0xa6036c4f
+0, 363600, 152064, 0xecdd8dd6
+0, 367200, 152064, 0xbb7e8551
+0, 370800, 152064, 0x42916e6c
+0, 374400, 152064, 0x972db010
+0, 378000, 152064, 0x80dab6a0
+0, 381600, 152064, 0xc753ecdb
+0, 385200, 152064, 0x0823bffa
+0, 388800, 152064, 0x80876b2d
+0, 392400, 152064, 0x4a8b2118
+0, 396000, 152064, 0x0be2c13d
+0, 399600, 152064, 0xa6966e4f
+0, 403200, 152064, 0xf6a57650
+0, 406800, 152064, 0x49d66fd4
+0, 410400, 152064, 0x21d92047
+0, 414000, 152064, 0x155f20a8
+0, 417600, 152064, 0x5ab90c1d
+0, 421200, 152064, 0xa0c31337
+0, 424800, 152064, 0xd20de1d6
+0, 428400, 152064, 0x300ad916
+0, 432000, 152064, 0xbcb89eb5
+0, 435600, 152064, 0x08759342
+0, 439200, 152064, 0xa5d06e72
+0, 442800, 152064, 0x3b4c537f
+0, 446400, 152064, 0x7f48912b
+0, 450000, 152064, 0x200dbd1f
+0, 453600, 152064, 0x918abfde
+0, 457200, 152064, 0xd8072cdf
+0, 460800, 152064, 0x89d2902b
+0, 464400, 152064, 0xcd2e2e3c
+0, 468000, 152064, 0xf343e4a2
+0, 471600, 152064, 0xc424acad
+0, 475200, 152064, 0xf71e3031
+0, 478800, 152064, 0xf1bc1179
+0, 482400, 152064, 0x9af58d24
+0, 486000, 152064, 0x48a4d01e
+0, 489600, 152064, 0xcf24f721
+0, 493200, 152064, 0x5bc7b4f3
+0, 496800, 152064, 0x8763fc59
+0, 500400, 152064, 0xb6954051
+0, 504000, 152064, 0x044ba446
+0, 507600, 152064, 0xdaaaee7e
+0, 511200, 152064, 0x8eac550d
+0, 514800, 152064, 0x5191d08c
+0, 518400, 152064, 0x3cd76d43
+0, 522000, 152064, 0xf01f8fa9
+0, 525600, 152064, 0x0e283e9b
+0, 529200, 152064, 0x7cef69ee
+0, 532800, 152064, 0xc8e332bc
+0, 536400, 152064, 0x5b1aa484
+0, 540000, 152064, 0x3975234f
+0, 543600, 152064, 0x52b8661e
+0, 547200, 152064, 0xb4b8fed8
+0, 550800, 152064, 0x5aff9f70
+0, 554400, 152064, 0x7b575735
+0, 558000, 152064, 0x77d51523
+0, 561600, 152064, 0xf5131eba
+0, 565200, 152064, 0x4bd2b1ad
+0, 568800, 152064, 0xccfc8dca
+0, 572400, 152064, 0xcf245472
+0, 576000, 152064, 0xe055adf5
+0, 579600, 152064, 0x2a90e171
+0, 583200, 152064, 0x1bd8ea64
+0, 586800, 152064, 0x32f1d794
+0, 590400, 152064, 0xc938c42a
+0, 594000, 152064, 0x12b5644f
+0, 597600, 152064, 0x99003711
+0, 601200, 152064, 0xaecfad1c
+0, 604800, 152064, 0x94b00ae1
+0, 608400, 152064, 0xbb4f982f
+0, 612000, 152064, 0x6f7f5dc1
+0, 615600, 152064, 0x7be7c2cb
+0, 619200, 152064, 0x3b2ee4d3
+0, 622800, 152064, 0xc75f5666
+0, 626400, 152064, 0xff7a3ede
+0, 630000, 152064, 0x55866b59
+0, 633600, 152064, 0x408b8455
+0, 637200, 152064, 0x96c4ab66
+0, 640800, 152064, 0x1d87f575
+0, 644400, 152064, 0x3a3b17ac
+0, 648000, 152064, 0x9c99e591
+0, 651600, 152064, 0xc1fc663d
+0, 655200, 152064, 0x17b982dd
+0, 658800, 152064, 0x24fe9dad
+0, 662400, 152064, 0xea8760ee
+0, 666000, 152064, 0x23dcefad
+0, 669600, 152064, 0xee6d23f0
+0, 673200, 152064, 0xfddc1962
+0, 676800, 152064, 0xb23190df
+0, 680400, 152064, 0xf066a595
+0, 684000, 152064, 0x2200fef8
+0, 687600, 152064, 0x5491ab2f
+0, 691200, 152064, 0xea93fa58
+0, 694800, 152064, 0x3e13d4f4
+0, 698400, 152064, 0x3dda841d
+0, 702000, 152064, 0xfc243577
+0, 705600, 152064, 0xca4a9127
+0, 709200, 152064, 0x41908ec0
+0, 712800, 152064, 0x10a758bd
+0, 716400, 152064, 0x6a849e5b
+0, 720000, 152064, 0xb55a1f2b
+0, 723600, 152064, 0x2bfe9627
+0, 727200, 152064, 0x2bfca28c
+0, 730800, 152064, 0xd166f336
+0, 734400, 152064, 0x9facb32b
+0, 738000, 152064, 0x6a672475
+0, 741600, 152064, 0xc7b219cf
+0, 745200, 152064, 0x2b43ca53
+0, 748800, 152064, 0x43b542c4
+0, 752400, 152064, 0xdc654337
+0, 756000, 152064, 0x68003d7c
+0, 759600, 152064, 0x3cb85724
+0, 763200, 152064, 0x422701c2
+0, 766800, 152064, 0x1c667870
+0, 770400, 152064, 0x75ef3230
+0, 774000, 152064, 0x0ac82643
+0, 777600, 152064, 0x3eb3a0be
+0, 781200, 152064, 0x482bd77e
+0, 784800, 152064, 0xd3ce1171
+0, 788400, 152064, 0xeaefc7e4
+0, 792000, 152064, 0xa9c67939
+0, 795600, 152064, 0x0af0a25b
+0, 799200, 152064, 0xd094d95a
+0, 802800, 152064, 0xfda42fc6
+0, 806400, 152064, 0x4669f952
+0, 810000, 152064, 0x52d40e98
+0, 813600, 152064, 0x27c36cd1
+0, 817200, 152064, 0xa103b6ce
+0, 820800, 152064, 0x2be9026d
+0, 824400, 152064, 0x2f4ecc59
+0, 828000, 152064, 0x53144cef
+0, 831600, 152064, 0x15d54fc9
+0, 835200, 152064, 0x7e302db7
+0, 838800, 152064, 0x82521901
+0, 842400, 152064, 0x1123cdb6
+0, 846000, 152064, 0x3185878a
+0, 849600, 152064, 0xbb294983
+0, 853200, 152064, 0x83d9fe66
+0, 856800, 152064, 0xede9fb08
+0, 860400, 152064, 0xa543b551
+0, 864000, 152064, 0x39e82734
+0, 867600, 152064, 0xd0447fb5
+0, 871200, 152064, 0x8cc6f502
+0, 874800, 152064, 0xda8d1da8
+0, 878400, 152064, 0xcafdccca
+0, 882000, 152064, 0xbf0e04f4
+0, 885600, 152064, 0x0c6eefec
+0, 889200, 152064, 0xb9026d39
+0, 892800, 152064, 0x0121a7a8
+0, 896400, 152064, 0x453ebbc6
+0, 900000, 152064, 0x14ae15e3
+0, 903600, 152064, 0x51d618e1
+0, 907200, 152064, 0x2254f452
+0, 910800, 152064, 0x8c360633
+0, 914400, 152064, 0x8704d9bc
+0, 918000, 152064, 0xe5d48301
+0, 921600, 152064, 0xf25b7b3f
+0, 925200, 152064, 0xd2ad3b73
+0, 928800, 152064, 0x53db0387
+0, 932400, 152064, 0x2486341c
+0, 936000, 152064, 0x4a24570b
+0, 939600, 152064, 0x0694620a
+0, 943200, 152064, 0xbbc2a302
+0, 946800, 152064, 0x08ad9c02
+0, 950400, 152064, 0x601a63ab
+0, 954000, 152064, 0xe4234a48
+0, 957600, 152064, 0x07702235
+0, 961200, 152064, 0x719dbecf
+0, 964800, 152064, 0xf301a7ad
+0, 968400, 152064, 0xf15c70c3
+0, 972000, 152064, 0x0ab93386
+0, 975600, 152064, 0x99c05adb
+0, 979200, 152064, 0x9ed43530
+0, 982800, 152064, 0xa2f62122
+0, 986400, 152064, 0xf16f4525
+0, 990000, 152064, 0xa3403b4a
+0, 993600, 152064, 0x95521096
+0, 997200, 152064, 0x0d412988
+0, 1000800, 152064, 0x829e080a
+0, 1004400, 152064, 0x0805c1b5
+0, 1008000, 152064, 0xa136be48
+0, 1011600, 152064, 0x0f8de228
+0, 1015200, 152064, 0x272cf2d3
+0, 1018800, 152064, 0xa1df2a5e
+0, 1022400, 152064, 0xf9db8350
+0, 1026000, 152064, 0x5536997d
+0, 1029600, 152064, 0xab83e81e
+0, 1033200, 152064, 0xec791b49
+0, 1036800, 152064, 0x04d03e19
+0, 1040400, 152064, 0xd6a2bd21
+0, 1044000, 152064, 0x2d35f0aa
+0, 1047600, 152064, 0x137bf715
+0, 1051200, 152064, 0x56ef5ae1
+0, 1054800, 152064, 0x9bb5821e
+0, 1058400, 152064, 0x533c7fff
+0, 1062000, 152064, 0x469ad380
+0, 1065600, 152064, 0x75710e84
+0, 1069200, 152064, 0xbbd72551
+0, 1072800, 152064, 0xf1137026
+0, 1076400, 152064, 0x6238412b
diff --git a/tests/ref/fate/h264-conformance-frext-hpcamapalq_bcrm_b b/tests/ref/fate/h264-conformance-frext-hpcamapalq_bcrm_b
new file mode 100644
index 0000000000..4f6f2baaf1
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hpcamapalq_bcrm_b
@@ -0,0 +1,300 @@
+0, 0, 152064, 0xf8248ceb
+0, 3600, 152064, 0xb6204c81
+0, 7200, 152064, 0x22fb1737
+0, 10800, 152064, 0xce8c3fd7
+0, 14400, 152064, 0xee88cedc
+0, 18000, 152064, 0x1d4209ca
+0, 21600, 152064, 0x6fb15238
+0, 25200, 152064, 0x505200c2
+0, 28800, 152064, 0xb73574ba
+0, 32400, 152064, 0x0586a097
+0, 36000, 152064, 0xed50fe02
+0, 39600, 152064, 0x222221ab
+0, 43200, 152064, 0x8afefd46
+0, 46800, 152064, 0x6832c5cc
+0, 50400, 152064, 0xba4c8110
+0, 54000, 152064, 0x95c07e1e
+0, 57600, 152064, 0xc5d6fde9
+0, 61200, 152064, 0xe75a4921
+0, 64800, 152064, 0x53b61688
+0, 68400, 152064, 0x0335424b
+0, 72000, 152064, 0x621742c7
+0, 75600, 152064, 0x4f69f41b
+0, 79200, 152064, 0x6b3f65d7
+0, 82800, 152064, 0x8dfde04f
+0, 86400, 152064, 0x30750ff5
+0, 90000, 152064, 0xe3d70f3c
+0, 93600, 152064, 0x0c1af825
+0, 97200, 152064, 0x58a53935
+0, 100800, 152064, 0xc63d9e98
+0, 104400, 152064, 0xa85fdc48
+0, 108000, 152064, 0x01bb9784
+0, 111600, 152064, 0xdd5cb509
+0, 115200, 152064, 0x29ae7d2b
+0, 118800, 152064, 0xdb08593e
+0, 122400, 152064, 0x372d5d4e
+0, 126000, 152064, 0x31522664
+0, 129600, 152064, 0x3f13f335
+0, 133200, 152064, 0xfd10c19a
+0, 136800, 152064, 0xef728975
+0, 140400, 152064, 0x8e79234d
+0, 144000, 152064, 0x47022791
+0, 147600, 152064, 0x1ef9d297
+0, 151200, 152064, 0x77bf9738
+0, 154800, 152064, 0xd6bc8f03
+0, 158400, 152064, 0x283ded4a
+0, 162000, 152064, 0xd87098d1
+0, 165600, 152064, 0x300077a2
+0, 169200, 152064, 0x30ffbea4
+0, 172800, 152064, 0x5dc5356b
+0, 176400, 152064, 0x31cce185
+0, 180000, 152064, 0x47fc9148
+0, 183600, 152064, 0x1641491e
+0, 187200, 152064, 0x2184937d
+0, 190800, 152064, 0x126eb74a
+0, 194400, 152064, 0x25c07593
+0, 198000, 152064, 0xb1294e7e
+0, 201600, 152064, 0x8b35f45d
+0, 205200, 152064, 0x54765025
+0, 208800, 152064, 0x1d17e901
+0, 212400, 152064, 0xaeab358d
+0, 216000, 152064, 0xf682c91f
+0, 219600, 152064, 0x0b4c9b06
+0, 223200, 152064, 0x45f326dc
+0, 226800, 152064, 0x132eeda3
+0, 230400, 152064, 0x3c9b8e16
+0, 234000, 152064, 0x1be133c1
+0, 237600, 152064, 0xfa876720
+0, 241200, 152064, 0x1666cdb8
+0, 244800, 152064, 0x362f418f
+0, 248400, 152064, 0x926b4a96
+0, 252000, 152064, 0xee3da1df
+0, 255600, 152064, 0xc11f025d
+0, 259200, 152064, 0x9ba62c19
+0, 262800, 152064, 0x0d66194f
+0, 266400, 152064, 0x2fd09340
+0, 270000, 152064, 0x3dfb9e4d
+0, 273600, 152064, 0xa3192ce6
+0, 277200, 152064, 0x6bfce0e1
+0, 280800, 152064, 0x3b7c5286
+0, 284400, 152064, 0xb52f4bf5
+0, 288000, 152064, 0x30870027
+0, 291600, 152064, 0x6f8e71c3
+0, 295200, 152064, 0x8d41b09a
+0, 298800, 152064, 0xc1ff1d05
+0, 302400, 152064, 0xca54125c
+0, 306000, 152064, 0x3342d823
+0, 309600, 152064, 0xcc4a7542
+0, 313200, 152064, 0x21fc9a9d
+0, 316800, 152064, 0x91587574
+0, 320400, 152064, 0x30929cc2
+0, 324000, 152064, 0xf07606b7
+0, 327600, 152064, 0x0476b876
+0, 331200, 152064, 0x213333dc
+0, 334800, 152064, 0x87c67597
+0, 338400, 152064, 0x05434641
+0, 342000, 152064, 0x959eeffc
+0, 345600, 152064, 0x92a130b4
+0, 349200, 152064, 0x53d0b544
+0, 352800, 152064, 0xaf8c233e
+0, 356400, 152064, 0xd3d4259a
+0, 360000, 152064, 0xa0287753
+0, 363600, 152064, 0xfa23972a
+0, 367200, 152064, 0xacae756d
+0, 370800, 152064, 0xd8b58b5c
+0, 374400, 152064, 0x7db2c755
+0, 378000, 152064, 0x31e7b79a
+0, 381600, 152064, 0xd8660d98
+0, 385200, 152064, 0xdcf0d10d
+0, 388800, 152064, 0x3e6567e6
+0, 392400, 152064, 0xec3530fd
+0, 396000, 152064, 0xf686c61a
+0, 399600, 152064, 0x6e706804
+0, 403200, 152064, 0x5fd4a1a3
+0, 406800, 152064, 0xbb3384f7
+0, 410400, 152064, 0x8ffb14dd
+0, 414000, 152064, 0x01253a73
+0, 417600, 152064, 0xf89c15df
+0, 421200, 152064, 0xda2b0b4c
+0, 424800, 152064, 0xfc9dfcc1
+0, 428400, 152064, 0xfef4f0fa
+0, 432000, 152064, 0x91669bea
+0, 435600, 152064, 0x3664a565
+0, 439200, 152064, 0x32dd7923
+0, 442800, 152064, 0x26825231
+0, 446400, 152064, 0x5f81896e
+0, 450000, 152064, 0x0c64ca2f
+0, 453600, 152064, 0x488bb665
+0, 457200, 152064, 0x4d183a0f
+0, 460800, 152064, 0xed169321
+0, 464400, 152064, 0xcec22917
+0, 468000, 152064, 0xbe04ea6c
+0, 471600, 152064, 0x32b8bf9f
+0, 475200, 152064, 0x9c7c2e13
+0, 478800, 152064, 0x232e3016
+0, 482400, 152064, 0x1b76c08e
+0, 486000, 152064, 0x7425d821
+0, 489600, 152064, 0x0818ff3c
+0, 493200, 152064, 0xb4f2c42b
+0, 496800, 152064, 0xe029f979
+0, 500400, 152064, 0x97c54c2f
+0, 504000, 152064, 0xd101c3b5
+0, 507600, 152064, 0x5ed1f5d4
+0, 511200, 152064, 0xc28264d1
+0, 514800, 152064, 0xa162dd31
+0, 518400, 152064, 0x2ee872ce
+0, 522000, 152064, 0x809a8fce
+0, 525600, 152064, 0xcfcc3ef9
+0, 529200, 152064, 0xa5be6ce3
+0, 532800, 152064, 0xd75930a0
+0, 536400, 152064, 0x28acb80f
+0, 540000, 152064, 0x223f2152
+0, 543600, 152064, 0x0cf070cb
+0, 547200, 152064, 0xcc7d011e
+0, 550800, 152064, 0xb2c2a63c
+0, 554400, 152064, 0x15514caa
+0, 558000, 152064, 0x0c6d18ee
+0, 561600, 152064, 0x33b4265d
+0, 565200, 152064, 0xb4abaaaf
+0, 568800, 152064, 0x26a7a856
+0, 572400, 152064, 0xc75249cc
+0, 576000, 152064, 0x59ccb0e1
+0, 579600, 152064, 0xc613f202
+0, 583200, 152064, 0xd1c0e171
+0, 586800, 152064, 0xa195da2b
+0, 590400, 152064, 0xbc7ed475
+0, 594000, 152064, 0x99206e2c
+0, 597600, 152064, 0x0ef04e03
+0, 601200, 152064, 0x68cbc6a1
+0, 604800, 152064, 0x2a5304b1
+0, 608400, 152064, 0xf017978b
+0, 612000, 152064, 0x94f5641a
+0, 615600, 152064, 0xd681bd8f
+0, 619200, 152064, 0x16e1e3a3
+0, 622800, 152064, 0xe4486c7e
+0, 626400, 152064, 0xa1bd394e
+0, 630000, 152064, 0x49ad5959
+0, 633600, 152064, 0x82219b70
+0, 637200, 152064, 0x64e2abcf
+0, 640800, 152064, 0x6d7d05d8
+0, 644400, 152064, 0xd9ac2251
+0, 648000, 152064, 0xf477eee5
+0, 651600, 152064, 0xb9826a78
+0, 655200, 152064, 0x97828a37
+0, 658800, 152064, 0x12099b1f
+0, 662400, 152064, 0x1ec45fa7
+0, 666000, 152064, 0xfd5501c9
+0, 669600, 152064, 0x6a8b26a3
+0, 673200, 152064, 0xae58ff40
+0, 676800, 152064, 0xc0f47aa1
+0, 680400, 152064, 0x08bfa548
+0, 684000, 152064, 0x7f2ff5ef
+0, 687600, 152064, 0x5efa94a3
+0, 691200, 152064, 0xf786f970
+0, 694800, 152064, 0xab6bc712
+0, 698400, 152064, 0x25647bee
+0, 702000, 152064, 0x54333ad5
+0, 705600, 152064, 0xb3a99413
+0, 709200, 152064, 0xe7a78a0d
+0, 712800, 152064, 0xa5054abc
+0, 716400, 152064, 0xb94896ea
+0, 720000, 152064, 0x9f641bca
+0, 723600, 152064, 0x7363901c
+0, 727200, 152064, 0xd340a000
+0, 730800, 152064, 0x0217f413
+0, 734400, 152064, 0xbbdba6e6
+0, 738000, 152064, 0xabc42617
+0, 741600, 152064, 0xa3442925
+0, 745200, 152064, 0x7d06c7e9
+0, 748800, 152064, 0xa45e32df
+0, 752400, 152064, 0xf5ed407f
+0, 756000, 152064, 0x5ec235d5
+0, 759600, 152064, 0xa5706635
+0, 763200, 152064, 0xa44a209b
+0, 766800, 152064, 0xf2137e37
+0, 770400, 152064, 0x5220508f
+0, 774000, 152064, 0xae6b37da
+0, 777600, 152064, 0xdf09b6cd
+0, 781200, 152064, 0x2d39e1c0
+0, 784800, 152064, 0xc8284a76
+0, 788400, 152064, 0x7d7bbe76
+0, 792000, 152064, 0xcfed7416
+0, 795600, 152064, 0x81caaedd
+0, 799200, 152064, 0x9dcdd771
+0, 802800, 152064, 0x46c1331b
+0, 806400, 152064, 0xace60efa
+0, 810000, 152064, 0x9e0909f7
+0, 813600, 152064, 0x72f5a321
+0, 817200, 152064, 0x68f8cdcc
+0, 820800, 152064, 0xcc59fdd9
+0, 824400, 152064, 0xc0a700c6
+0, 828000, 152064, 0xf4254dcf
+0, 831600, 152064, 0xc59b46d1
+0, 835200, 152064, 0x2e5b2524
+0, 838800, 152064, 0x46051293
+0, 842400, 152064, 0x3cbcd1cd
+0, 846000, 152064, 0x9f308587
+0, 849600, 152064, 0x6b91633f
+0, 853200, 152064, 0xb7191012
+0, 856800, 152064, 0xd2fd030f
+0, 860400, 152064, 0x15a0ae2e
+0, 864000, 152064, 0xac3920d0
+0, 867600, 152064, 0x0eef80aa
+0, 871200, 152064, 0x319008f1
+0, 874800, 152064, 0x7734450c
+0, 878400, 152064, 0xf112df62
+0, 882000, 152064, 0x1dd8ffae
+0, 885600, 152064, 0x655ef429
+0, 889200, 152064, 0x27026213
+0, 892800, 152064, 0x5c14b015
+0, 896400, 152064, 0x9512abeb
+0, 900000, 152064, 0x961812b2
+0, 903600, 152064, 0xb8890aea
+0, 907200, 152064, 0x4519db9a
+0, 910800, 152064, 0xf358034a
+0, 914400, 152064, 0x45d9f2ab
+0, 918000, 152064, 0xebd47e7d
+0, 921600, 152064, 0x15578be9
+0, 925200, 152064, 0x1b373b2d
+0, 928800, 152064, 0xbbe707e5
+0, 932400, 152064, 0x5bf62385
+0, 936000, 152064, 0x832e6ef5
+0, 939600, 152064, 0x761e5968
+0, 943200, 152064, 0x251f984d
+0, 946800, 152064, 0xbda48899
+0, 950400, 152064, 0x3fd843b9
+0, 954000, 152064, 0x00485425
+0, 957600, 152064, 0x4e282b39
+0, 961200, 152064, 0x2630a8ea
+0, 964800, 152064, 0x5ea5c973
+0, 968400, 152064, 0xfc436d21
+0, 972000, 152064, 0x69852ef5
+0, 975600, 152064, 0x44cb5589
+0, 979200, 152064, 0x32f32725
+0, 982800, 152064, 0x54d50aca
+0, 986400, 152064, 0xe7a639bb
+0, 990000, 152064, 0x01be2ad5
+0, 993600, 152064, 0x5c63eca4
+0, 997200, 152064, 0x94e91116
+0, 1000800, 152064, 0x9a8be637
+0, 1004400, 152064, 0x165d9a12
+0, 1008000, 152064, 0x8c25ca0a
+0, 1011600, 152064, 0x4ee2ed32
+0, 1015200, 152064, 0x4b2fe0c6
+0, 1018800, 152064, 0x521e434e
+0, 1022400, 152064, 0x97679d7e
+0, 1026000, 152064, 0x886b9506
+0, 1029600, 152064, 0x4283eda8
+0, 1033200, 152064, 0xef793c49
+0, 1036800, 152064, 0x68ac2afe
+0, 1040400, 152064, 0x3d1ab510
+0, 1044000, 152064, 0x98d3ec95
+0, 1047600, 152064, 0x09f7e512
+0, 1051200, 152064, 0x801355dd
+0, 1054800, 152064, 0xf2e87a11
+0, 1058400, 152064, 0x16757601
+0, 1062000, 152064, 0x3074d74a
+0, 1065600, 152064, 0xec8c1290
+0, 1069200, 152064, 0x46fb1877
+0, 1072800, 152064, 0xf0b662c4
+0, 1076400, 152064, 0xf8683940
diff --git a/tests/ref/fate/h264-conformance-frext-hpcamolq_brcm_b b/tests/ref/fate/h264-conformance-frext-hpcamolq_brcm_b
new file mode 100644
index 0000000000..6d2e27a663
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hpcamolq_brcm_b
@@ -0,0 +1,100 @@
+0, 0, 152064, 0xac83f54f
+0, 3600, 152064, 0x4d673b43
+0, 7200, 152064, 0x9050731f
+0, 10800, 152064, 0x4a0741f3
+0, 14400, 152064, 0xb2371c28
+0, 18000, 152064, 0x42210524
+0, 21600, 152064, 0x385f4be5
+0, 25200, 152064, 0xe44ec27a
+0, 28800, 152064, 0xfc668399
+0, 32400, 152064, 0x903fe200
+0, 36000, 152064, 0x4da1deaa
+0, 39600, 152064, 0x68c956ab
+0, 43200, 152064, 0x9cfad799
+0, 46800, 152064, 0x841ed3cd
+0, 50400, 152064, 0x99e66b48
+0, 54000, 152064, 0xcfa28482
+0, 57600, 152064, 0x72f2c717
+0, 61200, 152064, 0xd1d92c80
+0, 64800, 152064, 0x595063eb
+0, 68400, 152064, 0x87373979
+0, 72000, 152064, 0xfa0e75ac
+0, 75600, 152064, 0x0cef3592
+0, 79200, 152064, 0xecfc9c9a
+0, 82800, 152064, 0x5776ff23
+0, 86400, 152064, 0x83419e37
+0, 90000, 152064, 0x4bb31524
+0, 93600, 152064, 0xad8e1bdc
+0, 97200, 152064, 0x7243b6cb
+0, 100800, 152064, 0xf016cda0
+0, 104400, 152064, 0xa2c1d730
+0, 108000, 152064, 0x7999d704
+0, 111600, 152064, 0x86ad0baf
+0, 115200, 152064, 0x35dafe62
+0, 118800, 152064, 0xcb2f5de2
+0, 122400, 152064, 0x3542eb82
+0, 126000, 152064, 0xa704dd92
+0, 129600, 152064, 0x3e50ed92
+0, 133200, 152064, 0x2fe5428a
+0, 136800, 152064, 0xf05dab9d
+0, 140400, 152064, 0xef40c2a3
+0, 144000, 152064, 0x2df8983f
+0, 147600, 152064, 0x0a205c93
+0, 151200, 152064, 0x505562ea
+0, 154800, 152064, 0x24114860
+0, 158400, 152064, 0x2eecccc1
+0, 162000, 152064, 0xc809105f
+0, 165600, 152064, 0x394ab285
+0, 169200, 152064, 0xfda68f17
+0, 172800, 152064, 0x2fd66a51
+0, 176400, 152064, 0x3abb891a
+0, 180000, 152064, 0x62266682
+0, 183600, 152064, 0x68fb38e9
+0, 187200, 152064, 0xae4b9d9b
+0, 190800, 152064, 0xdaf8e150
+0, 194400, 152064, 0x2fd8bf74
+0, 198000, 152064, 0xd2ad6c38
+0, 201600, 152064, 0x76290574
+0, 205200, 152064, 0xaea6b9be
+0, 208800, 152064, 0xd0d797d7
+0, 212400, 152064, 0x87ad00b2
+0, 216000, 152064, 0xe57d11d0
+0, 219600, 152064, 0x25a5c567
+0, 223200, 152064, 0x477e2202
+0, 226800, 152064, 0xaa0618ca
+0, 230400, 152064, 0xb5d2262b
+0, 234000, 152064, 0xae7c135d
+0, 237600, 152064, 0xddb86a7c
+0, 241200, 152064, 0x59bad3ba
+0, 244800, 152064, 0x0b155178
+0, 248400, 152064, 0xc2f265d9
+0, 252000, 152064, 0xb550e8a8
+0, 255600, 152064, 0x1fef6cbc
+0, 259200, 152064, 0xd3d4e578
+0, 262800, 152064, 0x70d20c0d
+0, 266400, 152064, 0xbb8e95a9
+0, 270000, 152064, 0x2a92cda3
+0, 273600, 152064, 0xc0a5e7e0
+0, 277200, 152064, 0x15b99dab
+0, 280800, 152064, 0x536d44e8
+0, 284400, 152064, 0xe43fb4fa
+0, 288000, 152064, 0xdb0873b0
+0, 291600, 152064, 0xc7901e9b
+0, 295200, 152064, 0x36b69923
+0, 298800, 152064, 0xc6a8ac8d
+0, 302400, 152064, 0xd7e4c595
+0, 306000, 152064, 0x2d64cf38
+0, 309600, 152064, 0x007878b1
+0, 313200, 152064, 0xc9c997d4
+0, 316800, 152064, 0xf9de12de
+0, 320400, 152064, 0x25982d54
+0, 324000, 152064, 0xea5eef7c
+0, 327600, 152064, 0x108aceb2
+0, 331200, 152064, 0x3cbac8c8
+0, 334800, 152064, 0x581ec9e1
+0, 338400, 152064, 0xc898bd7d
+0, 342000, 152064, 0x142a0235
+0, 345600, 152064, 0xf9d0aa7e
+0, 349200, 152064, 0xb9fe0bc4
+0, 352800, 152064, 0x21889912
+0, 356400, 152064, 0x3fb2ab18
diff --git a/tests/ref/fate/h264-conformance-frext-hpcanl_brcm_c b/tests/ref/fate/h264-conformance-frext-hpcanl_brcm_c
new file mode 100644
index 0000000000..fe474650e5
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hpcanl_brcm_c
@@ -0,0 +1,300 @@
+0, 0, 152064, 0x2744afa1
+0, 3600, 152064, 0x17246583
+0, 7200, 152064, 0x501836ed
+0, 10800, 152064, 0xe90d6961
+0, 14400, 152064, 0x27abe1ad
+0, 18000, 152064, 0xcfc730e4
+0, 21600, 152064, 0xeaaa83ee
+0, 25200, 152064, 0xb5d80ebd
+0, 28800, 152064, 0x1e1b9d03
+0, 32400, 152064, 0x60e7cf33
+0, 36000, 152064, 0xc44616b1
+0, 39600, 152064, 0x0a2a5906
+0, 43200, 152064, 0xf101309c
+0, 46800, 152064, 0x0b57f348
+0, 50400, 152064, 0x4f018c05
+0, 54000, 152064, 0x22359c60
+0, 57600, 152064, 0x020f1cc3
+0, 61200, 152064, 0x15be3892
+0, 64800, 152064, 0x834a2e23
+0, 68400, 152064, 0x1176586c
+0, 72000, 152064, 0x9cf25641
+0, 75600, 152064, 0xc1c4051d
+0, 79200, 152064, 0x790d8bfa
+0, 82800, 152064, 0x4dcbe7d7
+0, 86400, 152064, 0xe81d3b7b
+0, 90000, 152064, 0xe9e21309
+0, 93600, 152064, 0x22021dbc
+0, 97200, 152064, 0x430c5ecb
+0, 100800, 152064, 0xf524be8b
+0, 104400, 152064, 0xa437dadc
+0, 108000, 152064, 0xff00b440
+0, 111600, 152064, 0x4bd1bf15
+0, 115200, 152064, 0x1f46a3ea
+0, 118800, 152064, 0x60b47c5e
+0, 122400, 152064, 0x45117ac6
+0, 126000, 152064, 0x43894fca
+0, 129600, 152064, 0x21572b55
+0, 133200, 152064, 0xe96def09
+0, 136800, 152064, 0x4d2ab41f
+0, 140400, 152064, 0x072d6b06
+0, 144000, 152064, 0x81865687
+0, 147600, 152064, 0x8d9a0ea6
+0, 151200, 152064, 0x1484d3cd
+0, 154800, 152064, 0xbdabae6b
+0, 158400, 152064, 0x4211edbe
+0, 162000, 152064, 0xd84dad6d
+0, 165600, 152064, 0xe4e79344
+0, 169200, 152064, 0x9c1addd7
+0, 172800, 152064, 0xdcf94283
+0, 176400, 152064, 0x6bd005b2
+0, 180000, 152064, 0x9679bd10
+0, 183600, 152064, 0x052064ab
+0, 187200, 152064, 0x915db3f3
+0, 190800, 152064, 0xec2fbd58
+0, 194400, 152064, 0x26728258
+0, 198000, 152064, 0x2b2b617f
+0, 201600, 152064, 0x2339eb3d
+0, 205200, 152064, 0xcf6e6773
+0, 208800, 152064, 0xb993efe4
+0, 212400, 152064, 0x4054253d
+0, 216000, 152064, 0x4befe5b5
+0, 219600, 152064, 0x0678c0fa
+0, 223200, 152064, 0xe3c54a03
+0, 226800, 152064, 0xffa3210c
+0, 230400, 152064, 0xed04b823
+0, 234000, 152064, 0x00926457
+0, 237600, 152064, 0xd56aaaf0
+0, 241200, 152064, 0x6047ef6e
+0, 244800, 152064, 0x44316d07
+0, 248400, 152064, 0xe8a879b7
+0, 252000, 152064, 0x1856cd86
+0, 255600, 152064, 0x6528349a
+0, 259200, 152064, 0xdeff676e
+0, 262800, 152064, 0xda412e47
+0, 266400, 152064, 0xa2c2a96f
+0, 270000, 152064, 0xc703b8cd
+0, 273600, 152064, 0x20b0650b
+0, 277200, 152064, 0x8c14faa5
+0, 280800, 152064, 0xa442706c
+0, 284400, 152064, 0x6e456137
+0, 288000, 152064, 0x6dde11c6
+0, 291600, 152064, 0xb017978a
+0, 295200, 152064, 0xc0bad34b
+0, 298800, 152064, 0x8bd439ee
+0, 302400, 152064, 0xa92735e4
+0, 306000, 152064, 0x1623f501
+0, 309600, 152064, 0x5be980b2
+0, 313200, 152064, 0x4306b9bf
+0, 316800, 152064, 0xb4f18976
+0, 320400, 152064, 0x4ffb9b46
+0, 324000, 152064, 0x23082275
+0, 327600, 152064, 0xc7f0e087
+0, 331200, 152064, 0x68b95327
+0, 334800, 152064, 0xd030a8e4
+0, 338400, 152064, 0xf8f9615c
+0, 342000, 152064, 0x1b26fe3e
+0, 345600, 152064, 0x3381608d
+0, 349200, 152064, 0x9939d49d
+0, 352800, 152064, 0x575f4f94
+0, 356400, 152064, 0x436c581c
+0, 360000, 152064, 0x8f47aa58
+0, 363600, 152064, 0xd251d95a
+0, 367200, 152064, 0x3c33b32c
+0, 370800, 152064, 0xa1e19413
+0, 374400, 152064, 0x8d95cbad
+0, 378000, 152064, 0x98cbd35e
+0, 381600, 152064, 0xceb81a0f
+0, 385200, 152064, 0x5490fab1
+0, 388800, 152064, 0x8e57a38c
+0, 392400, 152064, 0xc379517a
+0, 396000, 152064, 0xafc4f747
+0, 399600, 152064, 0xbc9c9be4
+0, 403200, 152064, 0xd602b2f5
+0, 406800, 152064, 0x8d85a450
+0, 410400, 152064, 0x48183c74
+0, 414000, 152064, 0xd1725590
+0, 417600, 152064, 0x5ef42ed7
+0, 421200, 152064, 0xad3a3883
+0, 424800, 152064, 0x7a3e0ddd
+0, 428400, 152064, 0x59bdfd38
+0, 432000, 152064, 0x5ac3ba9f
+0, 435600, 152064, 0x266cbd00
+0, 439200, 152064, 0x97d29e00
+0, 442800, 152064, 0x620774c2
+0, 446400, 152064, 0xaae8b96f
+0, 450000, 152064, 0x5f6bdfb6
+0, 453600, 152064, 0xb239da53
+0, 457200, 152064, 0x654b5680
+0, 460800, 152064, 0xd796b723
+0, 464400, 152064, 0xd5c84a81
+0, 468000, 152064, 0x2a761652
+0, 471600, 152064, 0x1137e145
+0, 475200, 152064, 0x1a9a451b
+0, 478800, 152064, 0x5ca751c4
+0, 482400, 152064, 0x074acec7
+0, 486000, 152064, 0x9ddfe77d
+0, 489600, 152064, 0xfb211c29
+0, 493200, 152064, 0x681ad4dd
+0, 496800, 152064, 0x702c12cc
+0, 500400, 152064, 0x556c5101
+0, 504000, 152064, 0x39d4bb54
+0, 507600, 152064, 0xa3a118d6
+0, 511200, 152064, 0xb78b7db1
+0, 514800, 152064, 0x4e20eed5
+0, 518400, 152064, 0x6555a9df
+0, 522000, 152064, 0xb607a9a4
+0, 525600, 152064, 0x3cf96a94
+0, 529200, 152064, 0xb2679007
+0, 532800, 152064, 0xf09d5b85
+0, 536400, 152064, 0x3961ba07
+0, 540000, 152064, 0x0c28363a
+0, 543600, 152064, 0x0a017c2d
+0, 547200, 152064, 0x3a661de3
+0, 550800, 152064, 0xf8d1bdee
+0, 554400, 152064, 0x6f47791b
+0, 558000, 152064, 0xe05b22c6
+0, 561600, 152064, 0x7cc93bb0
+0, 565200, 152064, 0xeb90c3d8
+0, 568800, 152064, 0x1a1eac98
+0, 572400, 152064, 0x92985671
+0, 576000, 152064, 0x2fe3ce53
+0, 579600, 152064, 0x61def691
+0, 583200, 152064, 0x90820730
+0, 586800, 152064, 0x17630372
+0, 590400, 152064, 0xaf6cea12
+0, 594000, 152064, 0xfe3b7ecc
+0, 597600, 152064, 0x904a5b2e
+0, 601200, 152064, 0x0d88d5f2
+0, 604800, 152064, 0x498d22b1
+0, 608400, 152064, 0x56baba83
+0, 612000, 152064, 0xda4d6dfa
+0, 615600, 152064, 0xaa38cbdd
+0, 619200, 152064, 0x4077f15d
+0, 622800, 152064, 0x7e006ec2
+0, 626400, 152064, 0x59964a89
+0, 630000, 152064, 0x04c078e3
+0, 633600, 152064, 0x7a5faf97
+0, 637200, 152064, 0xc517b3e9
+0, 640800, 152064, 0xfcc81af5
+0, 644400, 152064, 0xdcb44f62
+0, 648000, 152064, 0x2a080b72
+0, 651600, 152064, 0x91f88c67
+0, 655200, 152064, 0xd39caf81
+0, 658800, 152064, 0x0764ae31
+0, 662400, 152064, 0x0ddb82ed
+0, 666000, 152064, 0xed6d17e4
+0, 669600, 152064, 0xb4f74712
+0, 673200, 152064, 0x23a20787
+0, 676800, 152064, 0x853e7b33
+0, 680400, 152064, 0xc6bac173
+0, 684000, 152064, 0xb590ec15
+0, 687600, 152064, 0xfdd2943c
+0, 691200, 152064, 0xba5d1160
+0, 694800, 152064, 0xe732c5a7
+0, 698400, 152064, 0x279f6ce9
+0, 702000, 152064, 0xb3835829
+0, 705600, 152064, 0x0901b2a1
+0, 709200, 152064, 0x3df2b8f8
+0, 712800, 152064, 0x374496a4
+0, 716400, 152064, 0x1bc6a4ae
+0, 720000, 152064, 0xdb4b372e
+0, 723600, 152064, 0x8c11c214
+0, 727200, 152064, 0xd2d5c093
+0, 730800, 152064, 0x8dda094e
+0, 734400, 152064, 0x9b2cc401
+0, 738000, 152064, 0x1a3b49d5
+0, 741600, 152064, 0xaf5342ff
+0, 745200, 152064, 0x74c0de83
+0, 748800, 152064, 0xcf486137
+0, 752400, 152064, 0xcf005b3b
+0, 756000, 152064, 0x86a64c55
+0, 759600, 152064, 0xdd3f7ae9
+0, 763200, 152064, 0xb0d01e53
+0, 766800, 152064, 0x83219065
+0, 770400, 152064, 0x17a35d27
+0, 774000, 152064, 0xf92645b5
+0, 777600, 152064, 0x8322bdbf
+0, 781200, 152064, 0xd589f6a2
+0, 784800, 152064, 0x80a62d9e
+0, 788400, 152064, 0x05b3e0d1
+0, 792000, 152064, 0xd657aa0b
+0, 795600, 152064, 0xec5ac2dd
+0, 799200, 152064, 0xbf0ff969
+0, 802800, 152064, 0xc34a5140
+0, 806400, 152064, 0x814705c4
+0, 810000, 152064, 0xe9592008
+0, 813600, 152064, 0xf12c933c
+0, 817200, 152064, 0x2daee178
+0, 820800, 152064, 0xa2573028
+0, 824400, 152064, 0x6109f58d
+0, 828000, 152064, 0x64ab8ce4
+0, 831600, 152064, 0x13a88b6e
+0, 835200, 152064, 0x8f0181a9
+0, 838800, 152064, 0xd5295fd4
+0, 842400, 152064, 0xfdbeeb0d
+0, 846000, 152064, 0x05ecd231
+0, 849600, 152064, 0x48d164cd
+0, 853200, 152064, 0xc279cf63
+0, 856800, 152064, 0x1d5e6a03
+0, 860400, 152064, 0xd9dc1807
+0, 864000, 152064, 0xbcc83676
+0, 867600, 152064, 0x65a9811e
+0, 871200, 152064, 0x3ccfe5a8
+0, 874800, 152064, 0x2f2ff051
+0, 878400, 152064, 0x9193e093
+0, 882000, 152064, 0x9a30fdc6
+0, 885600, 152064, 0x90b7ea10
+0, 889200, 152064, 0x3291910c
+0, 892800, 152064, 0x2335d186
+0, 896400, 152064, 0x2890cf1d
+0, 900000, 152064, 0x8c8b6245
+0, 903600, 152064, 0x24b84eda
+0, 907200, 152064, 0x04a12446
+0, 910800, 152064, 0xd9d91d51
+0, 914400, 152064, 0xbf450adf
+0, 918000, 152064, 0xa19a9a41
+0, 921600, 152064, 0x2211ab01
+0, 925200, 152064, 0x8fe85430
+0, 928800, 152064, 0x5a152861
+0, 932400, 152064, 0x7fe76995
+0, 936000, 152064, 0x508b99cd
+0, 939600, 152064, 0x92e79437
+0, 943200, 152064, 0x8572eac9
+0, 946800, 152064, 0x42e3d513
+0, 950400, 152064, 0x6bee9e38
+0, 954000, 152064, 0x2858ad4b
+0, 957600, 152064, 0x96d87d00
+0, 961200, 152064, 0x749f1032
+0, 964800, 152064, 0x668fca6c
+0, 968400, 152064, 0x11d278d9
+0, 972000, 152064, 0x10fd46ea
+0, 975600, 152064, 0xc8b193c8
+0, 979200, 152064, 0x035e7d02
+0, 982800, 152064, 0x067f583c
+0, 986400, 152064, 0xd9648a1e
+0, 990000, 152064, 0x92487b7e
+0, 993600, 152064, 0xc7b35421
+0, 997200, 152064, 0x2ed57c1c
+0, 1000800, 152064, 0xefe24c5f
+0, 1004400, 152064, 0x8df0118b
+0, 1008000, 152064, 0x18f0278d
+0, 1011600, 152064, 0x63ac45ad
+0, 1015200, 152064, 0xd79849f0
+0, 1018800, 152064, 0x1f1d4dab
+0, 1022400, 152064, 0x736fb5b8
+0, 1026000, 152064, 0xc24eb80c
+0, 1029600, 152064, 0x64ca3b11
+0, 1033200, 152064, 0x35d8674c
+0, 1036800, 152064, 0x3c5a7b51
+0, 1040400, 152064, 0x97550b81
+0, 1044000, 152064, 0x731454b5
+0, 1047600, 152064, 0x01de43bc
+0, 1051200, 152064, 0xbda7afae
+0, 1054800, 152064, 0xeb34d714
+0, 1058400, 152064, 0x1260cc98
+0, 1062000, 152064, 0x7e592c36
+0, 1065600, 152064, 0x40b3676e
+0, 1069200, 152064, 0x8c9d6b94
+0, 1072800, 152064, 0xc7988665
+0, 1076400, 152064, 0xf2994d52
diff --git a/tests/ref/fate/h264-conformance-frext-hpcaq2lq_brcm_b b/tests/ref/fate/h264-conformance-frext-hpcaq2lq_brcm_b
new file mode 100644
index 0000000000..bc41f24e29
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hpcaq2lq_brcm_b
@@ -0,0 +1,100 @@
+0, 0, 152064, 0x712a2ad3
+0, 3600, 152064, 0x83420c9d
+0, 7200, 152064, 0xf3d77f46
+0, 10800, 152064, 0x67eab1a2
+0, 14400, 152064, 0x41df4534
+0, 18000, 152064, 0x68f268ce
+0, 21600, 152064, 0x288debdf
+0, 25200, 152064, 0x46ae56a7
+0, 28800, 152064, 0x1720f327
+0, 32400, 152064, 0x64752592
+0, 36000, 152064, 0x43e17a27
+0, 39600, 152064, 0x39f7cc52
+0, 43200, 152064, 0xc19a785c
+0, 46800, 152064, 0x562df0d4
+0, 50400, 152064, 0x50c96da0
+0, 54000, 152064, 0x1da8bdb5
+0, 57600, 152064, 0x02ddfb59
+0, 61200, 152064, 0x4d0c3e0e
+0, 64800, 152064, 0x1605371b
+0, 68400, 152064, 0x9772464d
+0, 72000, 152064, 0xc603441c
+0, 75600, 152064, 0xf9581917
+0, 79200, 152064, 0x4dbf74af
+0, 82800, 152064, 0x04b8b820
+0, 86400, 152064, 0x75061cdf
+0, 90000, 152064, 0x760bea90
+0, 93600, 152064, 0x7114cab3
+0, 97200, 152064, 0x89e14328
+0, 100800, 152064, 0x402ba116
+0, 104400, 152064, 0x8af2ccc6
+0, 108000, 152064, 0x1294333a
+0, 111600, 152064, 0xe466aa9f
+0, 115200, 152064, 0x7ce28426
+0, 118800, 152064, 0x21c16487
+0, 122400, 152064, 0xde3d5fc9
+0, 126000, 152064, 0x58cb2906
+0, 129600, 152064, 0x1df514ec
+0, 133200, 152064, 0x7e45bfb6
+0, 136800, 152064, 0xcdaaafc0
+0, 140400, 152064, 0x70a58eac
+0, 144000, 152064, 0xca7263b0
+0, 147600, 152064, 0x022621e0
+0, 151200, 152064, 0x938901c2
+0, 154800, 152064, 0x8c099e47
+0, 158400, 152064, 0xebfecda0
+0, 162000, 152064, 0x5a3aff71
+0, 165600, 152064, 0xb47c6692
+0, 169200, 152064, 0xde04b626
+0, 172800, 152064, 0xb1c61c94
+0, 176400, 152064, 0xbcc7eb35
+0, 180000, 152064, 0x801b958d
+0, 183600, 152064, 0xf5254f5d
+0, 187200, 152064, 0x4336da49
+0, 190800, 152064, 0x3139bcaf
+0, 194400, 152064, 0xb8359026
+0, 198000, 152064, 0xb6d39756
+0, 201600, 152064, 0xdf5c1c14
+0, 205200, 152064, 0x3f587336
+0, 208800, 152064, 0x105eeb74
+0, 212400, 152064, 0xffe23c19
+0, 216000, 152064, 0xfb1a1c5e
+0, 219600, 152064, 0xb8edb942
+0, 223200, 152064, 0x7ca92b27
+0, 226800, 152064, 0xd2fe1e24
+0, 230400, 152064, 0xd6b8939a
+0, 234000, 152064, 0xd59743da
+0, 237600, 152064, 0x005d9e7a
+0, 241200, 152064, 0x4c5cb03e
+0, 244800, 152064, 0x4a7c363a
+0, 248400, 152064, 0x627c88a8
+0, 252000, 152064, 0x3fcd8650
+0, 255600, 152064, 0x75b7f0b3
+0, 259200, 152064, 0xcbb95a00
+0, 262800, 152064, 0xc9871783
+0, 266400, 152064, 0xe9c2b471
+0, 270000, 152064, 0x513f0eb3
+0, 273600, 152064, 0x5a5c4fdc
+0, 277200, 152064, 0xdc8cbab6
+0, 280800, 152064, 0x86fe75d2
+0, 284400, 152064, 0xa6d52ce2
+0, 288000, 152064, 0xde74a975
+0, 291600, 152064, 0xc1bf3ef2
+0, 295200, 152064, 0xa1a1b832
+0, 298800, 152064, 0x0b23f718
+0, 302400, 152064, 0x842eed85
+0, 306000, 152064, 0xda96923b
+0, 309600, 152064, 0x7d011f83
+0, 313200, 152064, 0x26a25528
+0, 316800, 152064, 0x117b7971
+0, 320400, 152064, 0x3f17b29d
+0, 324000, 152064, 0x428654c0
+0, 327600, 152064, 0xc2343316
+0, 331200, 152064, 0x284371fe
+0, 334800, 152064, 0x388ef972
+0, 338400, 152064, 0x5f046560
+0, 342000, 152064, 0x6e9ac7e9
+0, 345600, 152064, 0x0cd6277c
+0, 349200, 152064, 0xfc7ba0b1
+0, 352800, 152064, 0x4d840475
+0, 356400, 152064, 0xd4cb26a6
diff --git a/tests/ref/fate/h264-conformance-frext-hpcv_brcm_a b/tests/ref/fate/h264-conformance-frext-hpcv_brcm_a
new file mode 100644
index 0000000000..cbfc5681ab
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hpcv_brcm_a
@@ -0,0 +1,300 @@
+0, 0, 152064, 0x995bb4bd
+0, 3600, 152064, 0xad287357
+0, 7200, 152064, 0x38fa4661
+0, 10800, 152064, 0x8aae73cf
+0, 14400, 152064, 0x4a13eada
+0, 18000, 152064, 0x48b33901
+0, 21600, 152064, 0x011487bc
+0, 25200, 152064, 0xd4ce1925
+0, 28800, 152064, 0x5d679ddd
+0, 32400, 152064, 0x276cd5cf
+0, 36000, 152064, 0x99c625f0
+0, 39600, 152064, 0xb2f756d1
+0, 43200, 152064, 0xb19c2978
+0, 46800, 152064, 0xdac0ff3c
+0, 50400, 152064, 0x3c1c8d63
+0, 54000, 152064, 0x818ea0a8
+0, 57600, 152064, 0xa7c122a5
+0, 61200, 152064, 0x67ad3519
+0, 64800, 152064, 0xc81b2a88
+0, 68400, 152064, 0x8ae6633e
+0, 72000, 152064, 0xed945788
+0, 75600, 152064, 0x4c740bcb
+0, 79200, 152064, 0xd8408d09
+0, 82800, 152064, 0xb710e8b8
+0, 86400, 152064, 0xb8c647b9
+0, 90000, 152064, 0x802b2e23
+0, 93600, 152064, 0x30672529
+0, 97200, 152064, 0x328a72b6
+0, 100800, 152064, 0xeb6dbe94
+0, 104400, 152064, 0x1c19dcc5
+0, 108000, 152064, 0xfdc6b998
+0, 111600, 152064, 0xf9e2cd80
+0, 115200, 152064, 0x025eb15e
+0, 118800, 152064, 0xfd998ad8
+0, 122400, 152064, 0x8fdf736f
+0, 126000, 152064, 0xa5a7554a
+0, 129600, 152064, 0xcea63304
+0, 133200, 152064, 0xcb28ec28
+0, 136800, 152064, 0x92efb591
+0, 140400, 152064, 0x0f2376c3
+0, 144000, 152064, 0xe9cb5ecf
+0, 147600, 152064, 0xcd2d0eba
+0, 151200, 152064, 0xd57fe4fd
+0, 154800, 152064, 0xc486ab8e
+0, 158400, 152064, 0x01a1f709
+0, 162000, 152064, 0x7ac5b13a
+0, 165600, 152064, 0x6f519279
+0, 169200, 152064, 0xfd7cd9a0
+0, 172800, 152064, 0xfae649d2
+0, 176400, 152064, 0x618507ca
+0, 180000, 152064, 0xb177bc15
+0, 183600, 152064, 0x6fa36854
+0, 187200, 152064, 0xc13cb77d
+0, 190800, 152064, 0x6d40cb01
+0, 194400, 152064, 0xa3db96a2
+0, 198000, 152064, 0xe5ba6c99
+0, 201600, 152064, 0xca9ff3ee
+0, 205200, 152064, 0x6c016c65
+0, 208800, 152064, 0xdf93ed80
+0, 212400, 152064, 0x93112ec8
+0, 216000, 152064, 0x8ab3ea14
+0, 219600, 152064, 0x02f5b891
+0, 223200, 152064, 0xdafd562b
+0, 226800, 152064, 0xa96a2bd7
+0, 230400, 152064, 0xdff8bc68
+0, 234000, 152064, 0x8d956b4b
+0, 237600, 152064, 0xb4aeb960
+0, 241200, 152064, 0x391cf0dd
+0, 244800, 152064, 0x03137de9
+0, 248400, 152064, 0x2bfa8c4b
+0, 252000, 152064, 0xfb54d3a5
+0, 255600, 152064, 0x650146e7
+0, 259200, 152064, 0xd3a7765f
+0, 262800, 152064, 0x49d72b90
+0, 266400, 152064, 0xf089b357
+0, 270000, 152064, 0x23a2be41
+0, 273600, 152064, 0x2ea86592
+0, 277200, 152064, 0x99d6f56b
+0, 280800, 152064, 0xc2ca75b9
+0, 284400, 152064, 0x390b7278
+0, 288000, 152064, 0x0f6d1f1e
+0, 291600, 152064, 0x79e2a3f4
+0, 295200, 152064, 0x51d5e1da
+0, 298800, 152064, 0xdb57419a
+0, 302400, 152064, 0xf90a4153
+0, 306000, 152064, 0xd192f6c6
+0, 309600, 152064, 0x8cd3895a
+0, 313200, 152064, 0x0d3ec577
+0, 316800, 152064, 0x146e8492
+0, 320400, 152064, 0xc9939c22
+0, 324000, 152064, 0xf1f4275e
+0, 327600, 152064, 0xb898eb35
+0, 331200, 152064, 0xed315ee9
+0, 334800, 152064, 0x9046b760
+0, 338400, 152064, 0x599a736b
+0, 342000, 152064, 0xaef20726
+0, 345600, 152064, 0x0d136768
+0, 349200, 152064, 0xfe4ed2a8
+0, 352800, 152064, 0x5a85524b
+0, 356400, 152064, 0x6d495dd2
+0, 360000, 152064, 0x04bdb815
+0, 363600, 152064, 0x28aae1c5
+0, 367200, 152064, 0xc20bc8d9
+0, 370800, 152064, 0xa33d9b41
+0, 374400, 152064, 0x6269cb43
+0, 378000, 152064, 0x4f81d636
+0, 381600, 152064, 0xc6062166
+0, 385200, 152064, 0xb027fbcc
+0, 388800, 152064, 0x73a7a584
+0, 392400, 152064, 0xf67e520a
+0, 396000, 152064, 0x94eff023
+0, 399600, 152064, 0xef1da8e5
+0, 403200, 152064, 0x2d9ab411
+0, 406800, 152064, 0xf0c39b5d
+0, 410400, 152064, 0xb2374724
+0, 414000, 152064, 0x939a5243
+0, 417600, 152064, 0xee3438db
+0, 421200, 152064, 0x7da04012
+0, 424800, 152064, 0xac611668
+0, 428400, 152064, 0xdce3062e
+0, 432000, 152064, 0xb57cc00e
+0, 435600, 152064, 0xaf96b59e
+0, 439200, 152064, 0x56789c13
+0, 442800, 152064, 0xb1f678b5
+0, 446400, 152064, 0xb340b8c4
+0, 450000, 152064, 0x86e6e304
+0, 453600, 152064, 0xa056e037
+0, 457200, 152064, 0x16885d27
+0, 460800, 152064, 0x9c5ac065
+0, 464400, 152064, 0x563d5335
+0, 468000, 152064, 0x3ca71c1e
+0, 471600, 152064, 0xad34e16c
+0, 475200, 152064, 0x6d074b27
+0, 478800, 152064, 0x9b1c4909
+0, 482400, 152064, 0xdbced198
+0, 486000, 152064, 0x8a0ded00
+0, 489600, 152064, 0x5ffc209b
+0, 493200, 152064, 0x47cfd269
+0, 496800, 152064, 0xe3c0137e
+0, 500400, 152064, 0xcb6a5e53
+0, 504000, 152064, 0x87cec05f
+0, 507600, 152064, 0x92721dd2
+0, 511200, 152064, 0x3f7d7b3b
+0, 514800, 152064, 0xd63ef417
+0, 518400, 152064, 0xf8e4b05a
+0, 522000, 152064, 0xb5dcb421
+0, 525600, 152064, 0x53c96f6a
+0, 529200, 152064, 0x24ae98a3
+0, 532800, 152064, 0x2e9b5fff
+0, 536400, 152064, 0x7795bf12
+0, 540000, 152064, 0x499d37ca
+0, 543600, 152064, 0xfe478487
+0, 547200, 152064, 0xcd661afb
+0, 550800, 152064, 0x44f8bf00
+0, 554400, 152064, 0x90b67809
+0, 558000, 152064, 0x8f5726d1
+0, 561600, 152064, 0x2e3c39d5
+0, 565200, 152064, 0x4b67c4e6
+0, 568800, 152064, 0x9fecb7cf
+0, 572400, 152064, 0x207766ea
+0, 576000, 152064, 0x5846bf7b
+0, 579600, 152064, 0x4237fba1
+0, 583200, 152064, 0x983e0cbd
+0, 586800, 152064, 0x6be100d1
+0, 590400, 152064, 0x9d0beb8f
+0, 594000, 152064, 0x234b82e7
+0, 597600, 152064, 0x83fb5ef1
+0, 601200, 152064, 0xf503dcb2
+0, 604800, 152064, 0x031a27f2
+0, 608400, 152064, 0x2f1abf24
+0, 612000, 152064, 0x54d77010
+0, 615600, 152064, 0x049fc0fc
+0, 619200, 152064, 0x20f2f7e7
+0, 622800, 152064, 0xc0d57467
+0, 626400, 152064, 0xbe464eef
+0, 630000, 152064, 0x035c9052
+0, 633600, 152064, 0x91cba4fb
+0, 637200, 152064, 0x11cdbbfb
+0, 640800, 152064, 0xe61116d5
+0, 644400, 152064, 0x16db46b8
+0, 648000, 152064, 0x54f30d9f
+0, 651600, 152064, 0x211a8d2d
+0, 655200, 152064, 0x5a74a56b
+0, 658800, 152064, 0x0ff4ba72
+0, 662400, 152064, 0x4c398ad6
+0, 666000, 152064, 0x830814f0
+0, 669600, 152064, 0xa51f4bab
+0, 673200, 152064, 0xf3460de6
+0, 676800, 152064, 0x7e1979a1
+0, 680400, 152064, 0x4b3ebb3a
+0, 684000, 152064, 0x83d1f4f8
+0, 687600, 152064, 0xfbf08683
+0, 691200, 152064, 0x901c07ec
+0, 694800, 152064, 0xbc2dc1c7
+0, 698400, 152064, 0x6e646b3b
+0, 702000, 152064, 0x51a25aab
+0, 705600, 152064, 0xa042ab78
+0, 709200, 152064, 0xb972af58
+0, 712800, 152064, 0xcdca9568
+0, 716400, 152064, 0x17b69d1c
+0, 720000, 152064, 0x41c43ea2
+0, 723600, 152064, 0x195fc7a0
+0, 727200, 152064, 0xf4cec580
+0, 730800, 152064, 0xb3b10936
+0, 734400, 152064, 0x102bc2ec
+0, 738000, 152064, 0xc99d4767
+0, 741600, 152064, 0x60c745b0
+0, 745200, 152064, 0x8176e0cf
+0, 748800, 152064, 0xd47e69b5
+0, 752400, 152064, 0xacce674c
+0, 756000, 152064, 0x031b51f8
+0, 759600, 152064, 0x0eb681ef
+0, 763200, 152064, 0x0b69334b
+0, 766800, 152064, 0xda819c1f
+0, 770400, 152064, 0xa93f62d2
+0, 774000, 152064, 0x51374db5
+0, 777600, 152064, 0x885dccff
+0, 781200, 152064, 0xd0780444
+0, 784800, 152064, 0xa31733ca
+0, 788400, 152064, 0x3f3de84e
+0, 792000, 152064, 0x2af2b2c3
+0, 795600, 152064, 0xa62dceae
+0, 799200, 152064, 0xca1cffd1
+0, 802800, 152064, 0x3c7d561b
+0, 806400, 152064, 0xbc04130a
+0, 810000, 152064, 0xbd2829ae
+0, 813600, 152064, 0xdbbb9820
+0, 817200, 152064, 0xfc3ef628
+0, 820800, 152064, 0xd5da3ec3
+0, 824400, 152064, 0x62d5fcc1
+0, 828000, 152064, 0x455a8dae
+0, 831600, 152064, 0x421c9147
+0, 835200, 152064, 0x6a168484
+0, 838800, 152064, 0x7ba15d32
+0, 842400, 152064, 0xd089ed27
+0, 846000, 152064, 0x8fc4d894
+0, 849600, 152064, 0x99e47125
+0, 853200, 152064, 0xf55dda68
+0, 856800, 152064, 0x6bf06cf1
+0, 860400, 152064, 0x7dc41a9d
+0, 864000, 152064, 0x78b84019
+0, 867600, 152064, 0x85ae8973
+0, 871200, 152064, 0x7b7aeabe
+0, 874800, 152064, 0xf9a8f6bf
+0, 878400, 152064, 0xe195ddcd
+0, 882000, 152064, 0x83edffe9
+0, 885600, 152064, 0x59cce97a
+0, 889200, 152064, 0x15268af1
+0, 892800, 152064, 0x270cca95
+0, 896400, 152064, 0x8bced1f9
+0, 900000, 152064, 0x08ee5cec
+0, 903600, 152064, 0x01e74f95
+0, 907200, 152064, 0x7e19238f
+0, 910800, 152064, 0x6bcb2b9d
+0, 914400, 152064, 0x58111385
+0, 918000, 152064, 0x6c7aa1f7
+0, 921600, 152064, 0xb713a822
+0, 925200, 152064, 0x1d645cee
+0, 928800, 152064, 0x9c592969
+0, 932400, 152064, 0x2472769e
+0, 936000, 152064, 0x71b7a5ad
+0, 939600, 152064, 0xc6bba1c6
+0, 943200, 152064, 0x7351f305
+0, 946800, 152064, 0x579edbba
+0, 950400, 152064, 0x90eda919
+0, 954000, 152064, 0x2833b10d
+0, 957600, 152064, 0x4b967d65
+0, 961200, 152064, 0x6e7d1702
+0, 964800, 152064, 0x59dbcf5b
+0, 968400, 152064, 0xa138847b
+0, 972000, 152064, 0xb2414e8d
+0, 975600, 152064, 0xb90497f6
+0, 979200, 152064, 0xcd728159
+0, 982800, 152064, 0x005d5bdd
+0, 986400, 152064, 0x27c88fb6
+0, 990000, 152064, 0x3ccb8a93
+0, 993600, 152064, 0xc50256dd
+0, 997200, 152064, 0x111e7dee
+0, 1000800, 152064, 0x259d4a5d
+0, 1004400, 152064, 0x9385148b
+0, 1008000, 152064, 0x74002ab0
+0, 1011600, 152064, 0xd2c74adc
+0, 1015200, 152064, 0x72854b2a
+0, 1018800, 152064, 0x638e5c08
+0, 1022400, 152064, 0x9626bbb3
+0, 1026000, 152064, 0xc107c18f
+0, 1029600, 152064, 0x8bd04578
+0, 1033200, 152064, 0xbcdb6db6
+0, 1036800, 152064, 0x9d0c81be
+0, 1040400, 152064, 0xf25106b6
+0, 1044000, 152064, 0x54c25254
+0, 1047600, 152064, 0x4bf74663
+0, 1051200, 152064, 0x0051b054
+0, 1054800, 152064, 0x5193d3d4
+0, 1058400, 152064, 0xb5d0d045
+0, 1062000, 152064, 0x350a31ca
+0, 1065600, 152064, 0xb8fb7264
+0, 1069200, 152064, 0x7fb97645
+0, 1072800, 152064, 0xcd948c41
+0, 1076400, 152064, 0x38c7570a
diff --git a/tests/ref/fate/h264-conformance-frext-hpcvfl_bcrm_a b/tests/ref/fate/h264-conformance-frext-hpcvfl_bcrm_a
new file mode 100644
index 0000000000..a67b4baea6
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hpcvfl_bcrm_a
@@ -0,0 +1,300 @@
+0, 0, 152064, 0x502ec077
+0, 3600, 152064, 0x84807243
+0, 7200, 152064, 0xd7474a6e
+0, 10800, 152064, 0x793469bb
+0, 14400, 152064, 0xb7a0faf7
+0, 18000, 152064, 0x1d3d3cba
+0, 21600, 152064, 0xb62583de
+0, 25200, 152064, 0xc8422fb1
+0, 28800, 152064, 0x321dc699
+0, 32400, 152064, 0x7a34d350
+0, 36000, 152064, 0xaa4c302d
+0, 39600, 152064, 0x45fa7ab0
+0, 43200, 152064, 0xc7262e41
+0, 46800, 152064, 0x3550000c
+0, 50400, 152064, 0xf4bab54b
+0, 54000, 152064, 0xaccf9c1a
+0, 57600, 152064, 0x9bee20e9
+0, 61200, 152064, 0x47fb7720
+0, 64800, 152064, 0x12c63ffb
+0, 68400, 152064, 0xfa2b8b4d
+0, 72000, 152064, 0x279964bd
+0, 75600, 152064, 0xb8b01c7e
+0, 79200, 152064, 0x816fa010
+0, 82800, 152064, 0x59fe1c8c
+0, 86400, 152064, 0x13393fad
+0, 90000, 152064, 0x991a50a4
+0, 93600, 152064, 0x57df3eb7
+0, 97200, 152064, 0x744371df
+0, 100800, 152064, 0xe9f6d3ff
+0, 104400, 152064, 0xc506fba0
+0, 108000, 152064, 0x6295b90e
+0, 111600, 152064, 0xa19cee2d
+0, 115200, 152064, 0xf8c1b3ca
+0, 118800, 152064, 0x69f68ce0
+0, 122400, 152064, 0x80558bb6
+0, 126000, 152064, 0x27824fa5
+0, 129600, 152064, 0x27c929a1
+0, 133200, 152064, 0xc0fe06d1
+0, 136800, 152064, 0xc52bc58c
+0, 140400, 152064, 0x0a5363c7
+0, 144000, 152064, 0xd0f45a0d
+0, 147600, 152064, 0x274710f9
+0, 151200, 152064, 0x89d2d390
+0, 154800, 152064, 0x12a9bfb0
+0, 158400, 152064, 0x04501a93
+0, 162000, 152064, 0xf92cbbf4
+0, 165600, 152064, 0xf6d1b27d
+0, 169200, 152064, 0xe3e904c3
+0, 172800, 152064, 0x58f8516d
+0, 176400, 152064, 0x70370c2b
+0, 180000, 152064, 0xfeebc88c
+0, 183600, 152064, 0x974c6ed6
+0, 187200, 152064, 0x401bdcf2
+0, 190800, 152064, 0xfe61e278
+0, 194400, 152064, 0x96ba8bb9
+0, 198000, 152064, 0x988492fd
+0, 201600, 152064, 0xd1d913a9
+0, 205200, 152064, 0x6bc46f0e
+0, 208800, 152064, 0x695ef706
+0, 212400, 152064, 0x142045c9
+0, 216000, 152064, 0xb390ed87
+0, 219600, 152064, 0xb9e6d2e5
+0, 223200, 152064, 0xe348797f
+0, 226800, 152064, 0x1cbd29d6
+0, 230400, 152064, 0xbd7dd694
+0, 234000, 152064, 0x516873c3
+0, 237600, 152064, 0x27bba182
+0, 241200, 152064, 0x7541f920
+0, 244800, 152064, 0xfdf67042
+0, 248400, 152064, 0x6c3c7896
+0, 252000, 152064, 0xed86c467
+0, 255600, 152064, 0x4ea83ca2
+0, 259200, 152064, 0xa3e6725b
+0, 262800, 152064, 0x917f5f16
+0, 266400, 152064, 0x8cf2d2e1
+0, 270000, 152064, 0x57a8d116
+0, 273600, 152064, 0x0db267d4
+0, 277200, 152064, 0xce782ac5
+0, 280800, 152064, 0x1c9d8518
+0, 284400, 152064, 0x47598ac7
+0, 288000, 152064, 0xc5033d97
+0, 291600, 152064, 0xd7aaa3a4
+0, 295200, 152064, 0x078afc96
+0, 298800, 152064, 0xc9fe673d
+0, 302400, 152064, 0xe9284066
+0, 306000, 152064, 0xbc570982
+0, 309600, 152064, 0x0aac8574
+0, 313200, 152064, 0x098cbeee
+0, 316800, 152064, 0x19c36a9d
+0, 320400, 152064, 0x8fe4a893
+0, 324000, 152064, 0x0b652f17
+0, 327600, 152064, 0x10f2e6bf
+0, 331200, 152064, 0x7ce5634e
+0, 334800, 152064, 0x8fe4ac6c
+0, 338400, 152064, 0xcaba749e
+0, 342000, 152064, 0x5f8a0d5c
+0, 345600, 152064, 0xcaa66bbc
+0, 349200, 152064, 0xc87ae617
+0, 352800, 152064, 0xe8ef4dd7
+0, 356400, 152064, 0xdfca5a07
+0, 360000, 152064, 0x5f7eab7d
+0, 363600, 152064, 0x8a65ebbb
+0, 367200, 152064, 0x4beab4a0
+0, 370800, 152064, 0xb5e6ab30
+0, 374400, 152064, 0x8fe4f4d4
+0, 378000, 152064, 0x95bde1ca
+0, 381600, 152064, 0xcc5e3a53
+0, 385200, 152064, 0xf09f1dd7
+0, 388800, 152064, 0x10179672
+0, 392400, 152064, 0x4ad16184
+0, 396000, 152064, 0x9efa0e23
+0, 399600, 152064, 0x22f59522
+0, 403200, 152064, 0x4d38f09d
+0, 406800, 152064, 0x4c5ebf56
+0, 410400, 152064, 0xb19d5077
+0, 414000, 152064, 0xa98576b9
+0, 417600, 152064, 0x65324239
+0, 421200, 152064, 0x709e4031
+0, 424800, 152064, 0xf8e81681
+0, 428400, 152064, 0x058514e5
+0, 432000, 152064, 0xd1d1c806
+0, 435600, 152064, 0x0e4dde57
+0, 439200, 152064, 0x49e9c2bb
+0, 442800, 152064, 0x01417ce6
+0, 446400, 152064, 0xda7ebbf1
+0, 450000, 152064, 0xa22906b7
+0, 453600, 152064, 0x32e2df87
+0, 457200, 152064, 0x69917c8f
+0, 460800, 152064, 0xea8ed2cc
+0, 464400, 152064, 0x0b8d57f1
+0, 468000, 152064, 0x5f683bcd
+0, 471600, 152064, 0x5162fe2f
+0, 475200, 152064, 0x49c052f8
+0, 478800, 152064, 0x990b69ba
+0, 482400, 152064, 0xa6d4f99f
+0, 486000, 152064, 0xe79ef4da
+0, 489600, 152064, 0x5e8a3847
+0, 493200, 152064, 0x38b1e75f
+0, 496800, 152064, 0xf5c91bed
+0, 500400, 152064, 0xd59a6d26
+0, 504000, 152064, 0xc361de06
+0, 507600, 152064, 0x63ed2229
+0, 511200, 152064, 0xb8229205
+0, 514800, 152064, 0x7c6619af
+0, 518400, 152064, 0x4126b02f
+0, 522000, 152064, 0x9250b99b
+0, 525600, 152064, 0x589778f9
+0, 529200, 152064, 0xed1fa45b
+0, 532800, 152064, 0x700b6f32
+0, 536400, 152064, 0x0590df55
+0, 540000, 152064, 0x3e9c4018
+0, 543600, 152064, 0x957b8860
+0, 547200, 152064, 0x56161560
+0, 550800, 152064, 0xbc43bc3b
+0, 554400, 152064, 0x508d8632
+0, 558000, 152064, 0xbc5736d8
+0, 561600, 152064, 0xed7d3aef
+0, 565200, 152064, 0x1dcdda9f
+0, 568800, 152064, 0x8ef6d5c9
+0, 572400, 152064, 0x15466acc
+0, 576000, 152064, 0x45d4cf67
+0, 579600, 152064, 0x8c900b9d
+0, 583200, 152064, 0x747006e0
+0, 586800, 152064, 0xac920a0c
+0, 590400, 152064, 0xb8210c27
+0, 594000, 152064, 0x7dbb873a
+0, 597600, 152064, 0x0d4d7584
+0, 601200, 152064, 0xefb3fe60
+0, 604800, 152064, 0x905e2644
+0, 608400, 152064, 0x7c04e534
+0, 612000, 152064, 0x8889972a
+0, 615600, 152064, 0x21c7d8ad
+0, 619200, 152064, 0x1c641176
+0, 622800, 152064, 0xf71489a4
+0, 626400, 152064, 0xd7ac5555
+0, 630000, 152064, 0xb4609c6d
+0, 633600, 152064, 0xf5b2bd5e
+0, 637200, 152064, 0x9f43ce57
+0, 640800, 152064, 0x77642dd3
+0, 644400, 152064, 0x3e79565c
+0, 648000, 152064, 0x95f40b8e
+0, 651600, 152064, 0x3c8ca4d4
+0, 655200, 152064, 0xa02ac497
+0, 658800, 152064, 0x4c93b377
+0, 662400, 152064, 0x55f5ac68
+0, 666000, 152064, 0xf8652eca
+0, 669600, 152064, 0x56e94574
+0, 673200, 152064, 0x6d8302e1
+0, 676800, 152064, 0x29a57061
+0, 680400, 152064, 0x24e4cfdc
+0, 684000, 152064, 0xf5a5d62a
+0, 687600, 152064, 0x998870c1
+0, 691200, 152064, 0xa15b1f4e
+0, 694800, 152064, 0xb0ccb51f
+0, 698400, 152064, 0xeaaf59ab
+0, 702000, 152064, 0x7e2b4fe6
+0, 705600, 152064, 0x72299fea
+0, 709200, 152064, 0x769da8b2
+0, 712800, 152064, 0xefad7ef8
+0, 716400, 152064, 0x24819983
+0, 720000, 152064, 0x2aad32ab
+0, 723600, 152064, 0xc80cac79
+0, 727200, 152064, 0x1659d628
+0, 730800, 152064, 0xef941f66
+0, 734400, 152064, 0x0d7fcdb5
+0, 738000, 152064, 0x7c1853fa
+0, 741600, 152064, 0xb94c4d3c
+0, 745200, 152064, 0xc47adfc2
+0, 748800, 152064, 0x366a6729
+0, 752400, 152064, 0x7eb37b70
+0, 756000, 152064, 0xafd54c27
+0, 759600, 152064, 0x67b18636
+0, 763200, 152064, 0x93b22dcf
+0, 766800, 152064, 0xa64991f1
+0, 770400, 152064, 0xd32a7102
+0, 774000, 152064, 0xff665d1c
+0, 777600, 152064, 0xf107cc31
+0, 781200, 152064, 0xf5b25652
+0, 784800, 152064, 0x8caf783d
+0, 788400, 152064, 0x72f3eb00
+0, 792000, 152064, 0xb5aea5f8
+0, 795600, 152064, 0xee70e870
+0, 799200, 152064, 0x7c3a0156
+0, 802800, 152064, 0x871b6383
+0, 806400, 152064, 0x48d831ff
+0, 810000, 152064, 0xca233913
+0, 813600, 152064, 0xe14bc5eb
+0, 817200, 152064, 0x9b1d27e7
+0, 820800, 152064, 0xfb9637f7
+0, 824400, 152064, 0x0c022157
+0, 828000, 152064, 0x16d35fc9
+0, 831600, 152064, 0x6d935f71
+0, 835200, 152064, 0xae4066fa
+0, 838800, 152064, 0xcef94fdc
+0, 842400, 152064, 0xc234edb9
+0, 846000, 152064, 0x26a4f2e2
+0, 849600, 152064, 0xd29ac23e
+0, 853200, 152064, 0xb7604395
+0, 856800, 152064, 0x408084f6
+0, 860400, 152064, 0x0a02026c
+0, 864000, 152064, 0x78b33c7c
+0, 867600, 152064, 0xcb02b874
+0, 871200, 152064, 0xf566513b
+0, 874800, 152064, 0xb34e52b1
+0, 878400, 152064, 0xf55ff493
+0, 882000, 152064, 0xb0e8282a
+0, 885600, 152064, 0xe9510bbe
+0, 889200, 152064, 0x292e8c5a
+0, 892800, 152064, 0x62b9d2b0
+0, 896400, 152064, 0x3a8cc827
+0, 900000, 152064, 0x25cc465e
+0, 903600, 152064, 0xf2bc32e2
+0, 907200, 152064, 0x6141f914
+0, 910800, 152064, 0x1171256f
+0, 914400, 152064, 0x13cb2ded
+0, 918000, 152064, 0x3d4ca557
+0, 921600, 152064, 0xf2b9e72e
+0, 925200, 152064, 0x03f7547a
+0, 928800, 152064, 0xc7302955
+0, 932400, 152064, 0xe78a46d3
+0, 936000, 152064, 0x3726a270
+0, 939600, 152064, 0x2f65722a
+0, 943200, 152064, 0x55acce40
+0, 946800, 152064, 0xf6fa9db2
+0, 950400, 152064, 0x70a36937
+0, 954000, 152064, 0x9313742d
+0, 957600, 152064, 0x2eb14e53
+0, 961200, 152064, 0x3d47c9c3
+0, 964800, 152064, 0xd0a90348
+0, 968400, 152064, 0x6ad48088
+0, 972000, 152064, 0x68e64738
+0, 975600, 152064, 0x04c3735a
+0, 979200, 152064, 0x51d0593f
+0, 982800, 152064, 0x42cf2b48
+0, 986400, 152064, 0xa5496a0c
+0, 990000, 152064, 0x84c25549
+0, 993600, 152064, 0x96691600
+0, 997200, 152064, 0x423135db
+0, 1000800, 152064, 0x8d2e08b6
+0, 1004400, 152064, 0xaeb4c840
+0, 1008000, 152064, 0xf3e71780
+0, 1011600, 152064, 0x8858228b
+0, 1015200, 152064, 0xf28613f8
+0, 1018800, 152064, 0xb5327882
+0, 1022400, 152064, 0xbb60bb85
+0, 1026000, 152064, 0x345ab1c9
+0, 1029600, 152064, 0x8aac2cba
+0, 1033200, 152064, 0x7ce15b4c
+0, 1036800, 152064, 0xc09c55c0
+0, 1040400, 152064, 0x8482ddd6
+0, 1044000, 152064, 0xab222a13
+0, 1047600, 152064, 0xd39b0dea
+0, 1051200, 152064, 0x6dab6e06
+0, 1054800, 152064, 0xec0891bd
+0, 1058400, 152064, 0x88bd9701
+0, 1062000, 152064, 0xdf13072a
+0, 1065600, 152064, 0x23b33081
+0, 1069200, 152064, 0x63943137
+0, 1072800, 152064, 0xab6a9052
+0, 1076400, 152064, 0x05485494
diff --git a/tests/ref/fate/h264-conformance-frext-hpcvflnl_bcrm_a b/tests/ref/fate/h264-conformance-frext-hpcvflnl_bcrm_a
new file mode 100644
index 0000000000..97d7677085
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hpcvflnl_bcrm_a
@@ -0,0 +1,300 @@
+0, 0, 152064, 0x3e39c08b
+0, 3600, 152064, 0xabc67990
+0, 7200, 152064, 0x19614e74
+0, 10800, 152064, 0xa3776beb
+0, 14400, 152064, 0xcce6ffdf
+0, 18000, 152064, 0xb0e94746
+0, 21600, 152064, 0xdb1a84ef
+0, 25200, 152064, 0xb2624509
+0, 28800, 152064, 0x32e2d826
+0, 32400, 152064, 0xb3bddf0b
+0, 36000, 152064, 0x2e273ce3
+0, 39600, 152064, 0x67af7e4d
+0, 43200, 152064, 0x505c3261
+0, 46800, 152064, 0xa43d015e
+0, 50400, 152064, 0xad41c1f6
+0, 54000, 152064, 0x633ba55f
+0, 57600, 152064, 0xe80634f0
+0, 61200, 152064, 0x80a07dc9
+0, 64800, 152064, 0x0e7a3bbf
+0, 68400, 152064, 0xcb099196
+0, 72000, 152064, 0x57c96db5
+0, 75600, 152064, 0xccd422fa
+0, 79200, 152064, 0x0850b7a7
+0, 82800, 152064, 0x30e33156
+0, 86400, 152064, 0x34e13f9a
+0, 90000, 152064, 0x03d36000
+0, 93600, 152064, 0xbf7d49da
+0, 97200, 152064, 0x77336d09
+0, 100800, 152064, 0xca8be5a9
+0, 104400, 152064, 0xe57c0b08
+0, 108000, 152064, 0xbe77c093
+0, 111600, 152064, 0x6bf1ff05
+0, 115200, 152064, 0x9142babf
+0, 118800, 152064, 0x08db8e67
+0, 122400, 152064, 0x69ac8cb6
+0, 126000, 152064, 0xaa3b5c88
+0, 129600, 152064, 0x9bd32638
+0, 133200, 152064, 0x7972115a
+0, 136800, 152064, 0x5c1dd47b
+0, 140400, 152064, 0x8a196e02
+0, 144000, 152064, 0xa89672bc
+0, 147600, 152064, 0x27b220e4
+0, 151200, 152064, 0xfa38dc4a
+0, 154800, 152064, 0x4784c639
+0, 158400, 152064, 0xa5e4229a
+0, 162000, 152064, 0xa986bdfc
+0, 165600, 152064, 0x2951b47b
+0, 169200, 152064, 0x4df404a6
+0, 172800, 152064, 0xc75155e8
+0, 176400, 152064, 0xfc05248c
+0, 180000, 152064, 0x5d53da10
+0, 183600, 152064, 0x284376ec
+0, 187200, 152064, 0x19fce380
+0, 190800, 152064, 0x876be6c9
+0, 194400, 152064, 0x39eb8ff9
+0, 198000, 152064, 0x289c9543
+0, 201600, 152064, 0x24dd2356
+0, 205200, 152064, 0x1dc17d3c
+0, 208800, 152064, 0xd17c00ac
+0, 212400, 152064, 0xc2ad54de
+0, 216000, 152064, 0xbe11ee2f
+0, 219600, 152064, 0x3db9dc89
+0, 223200, 152064, 0xac0d7bc2
+0, 226800, 152064, 0x8dab2dde
+0, 230400, 152064, 0x566ad225
+0, 234000, 152064, 0x587c7853
+0, 237600, 152064, 0x601c9c80
+0, 241200, 152064, 0x2afaf751
+0, 244800, 152064, 0x1c9f7e3a
+0, 248400, 152064, 0x899475bf
+0, 252000, 152064, 0x0d65c7d9
+0, 255600, 152064, 0xafd63d12
+0, 259200, 152064, 0x162e62b9
+0, 262800, 152064, 0x5c9554be
+0, 266400, 152064, 0x35fbdaa2
+0, 270000, 152064, 0x6438cbd8
+0, 273600, 152064, 0xde0772c9
+0, 277200, 152064, 0x79f82854
+0, 280800, 152064, 0x86957840
+0, 284400, 152064, 0xd9468cbf
+0, 288000, 152064, 0x23e74609
+0, 291600, 152064, 0x3919a146
+0, 295200, 152064, 0xd641078b
+0, 298800, 152064, 0x24397220
+0, 302400, 152064, 0xe7fc3a7c
+0, 306000, 152064, 0x3997154a
+0, 309600, 152064, 0x2af3952c
+0, 313200, 152064, 0x274ac07a
+0, 316800, 152064, 0x288f7b09
+0, 320400, 152064, 0xe6f9b022
+0, 324000, 152064, 0xf09e2fbb
+0, 327600, 152064, 0x7244e477
+0, 331200, 152064, 0x0dfc72eb
+0, 334800, 152064, 0x0322b21f
+0, 338400, 152064, 0x18b08205
+0, 342000, 152064, 0x6606153e
+0, 345600, 152064, 0x85186272
+0, 349200, 152064, 0x3369f064
+0, 352800, 152064, 0xbe0d5a44
+0, 356400, 152064, 0x320258bb
+0, 360000, 152064, 0x4d6fb091
+0, 363600, 152064, 0xc9bbf5e7
+0, 367200, 152064, 0x0aa1b69b
+0, 370800, 152064, 0x85b9ac11
+0, 374400, 152064, 0xb25ff818
+0, 378000, 152064, 0xa155dc25
+0, 381600, 152064, 0xa8e03bfd
+0, 385200, 152064, 0x0a862956
+0, 388800, 152064, 0x11b49264
+0, 392400, 152064, 0xa94e664e
+0, 396000, 152064, 0x330e0fa2
+0, 399600, 152064, 0xaf3d9518
+0, 403200, 152064, 0x0836f2e8
+0, 406800, 152064, 0xbf6dc578
+0, 410400, 152064, 0x7b524d20
+0, 414000, 152064, 0x9ef7677f
+0, 417600, 152064, 0xeacf3f34
+0, 421200, 152064, 0xfb4e3dbe
+0, 424800, 152064, 0xb46e25cb
+0, 428400, 152064, 0x363c1603
+0, 432000, 152064, 0x263fc542
+0, 435600, 152064, 0xf106e548
+0, 439200, 152064, 0xde43c56a
+0, 442800, 152064, 0xc2c4770a
+0, 446400, 152064, 0x122fce19
+0, 450000, 152064, 0x3ba01434
+0, 453600, 152064, 0x0e8ce5ee
+0, 457200, 152064, 0x6ceb82e1
+0, 460800, 152064, 0xa23ee21c
+0, 464400, 152064, 0xc6d960f9
+0, 468000, 152064, 0x0de15258
+0, 471600, 152064, 0x187b0333
+0, 475200, 152064, 0x92e6582f
+0, 478800, 152064, 0xb9586ce0
+0, 482400, 152064, 0xefd803b5
+0, 486000, 152064, 0x24eafb29
+0, 489600, 152064, 0x20c73b14
+0, 493200, 152064, 0xbd7ceaaa
+0, 496800, 152064, 0x775216c8
+0, 500400, 152064, 0xa08971c7
+0, 504000, 152064, 0xef0ee865
+0, 507600, 152064, 0x9ac61c2f
+0, 511200, 152064, 0x52ae8ea9
+0, 514800, 152064, 0x06571c14
+0, 518400, 152064, 0x6e78ad33
+0, 522000, 152064, 0xad01c627
+0, 525600, 152064, 0xbfe074d3
+0, 529200, 152064, 0x9357a183
+0, 532800, 152064, 0x8de7767f
+0, 536400, 152064, 0xa5e6e76e
+0, 540000, 152064, 0xa6f646fe
+0, 543600, 152064, 0x132e99f8
+0, 547200, 152064, 0xb79f27de
+0, 550800, 152064, 0x36d3cdcf
+0, 554400, 152064, 0xdc938336
+0, 558000, 152064, 0xacaa3a7f
+0, 561600, 152064, 0xc61a37fd
+0, 565200, 152064, 0x4fe1ddf0
+0, 568800, 152064, 0xc0f7d660
+0, 572400, 152064, 0xd72458ea
+0, 576000, 152064, 0x6978d123
+0, 579600, 152064, 0x64e60ccf
+0, 583200, 152064, 0xaa07004c
+0, 586800, 152064, 0x07cd1064
+0, 590400, 152064, 0xa82320e5
+0, 594000, 152064, 0xaedd8d30
+0, 597600, 152064, 0x79b082ea
+0, 601200, 152064, 0x9ed800ab
+0, 604800, 152064, 0xde592bb4
+0, 608400, 152064, 0xd966df88
+0, 612000, 152064, 0xf921988a
+0, 615600, 152064, 0x557ad9ae
+0, 619200, 152064, 0xc3f31a9a
+0, 622800, 152064, 0x65248561
+0, 626400, 152064, 0x63df4aa6
+0, 630000, 152064, 0x618da0a9
+0, 633600, 152064, 0xe6f1c435
+0, 637200, 152064, 0x9f90c38f
+0, 640800, 152064, 0xd2853e14
+0, 644400, 152064, 0x6e0268a9
+0, 648000, 152064, 0x393712d1
+0, 651600, 152064, 0x470da25f
+0, 655200, 152064, 0xaf55cb3d
+0, 658800, 152064, 0x6935b8b9
+0, 662400, 152064, 0x5409a15f
+0, 666000, 152064, 0x09073fee
+0, 669600, 152064, 0xfb274e82
+0, 673200, 152064, 0x1a770581
+0, 676800, 152064, 0x17277d0d
+0, 680400, 152064, 0xd4dcd982
+0, 684000, 152064, 0x6b04eaf3
+0, 687600, 152064, 0x8a3d822e
+0, 691200, 152064, 0x1b971ec9
+0, 694800, 152064, 0x14e0c0f6
+0, 698400, 152064, 0x00667450
+0, 702000, 152064, 0xd2385902
+0, 705600, 152064, 0x905da6ab
+0, 709200, 152064, 0xa3ffb18b
+0, 712800, 152064, 0x10d48b19
+0, 716400, 152064, 0xb2c7a3bd
+0, 720000, 152064, 0x45593e96
+0, 723600, 152064, 0x47a0b60c
+0, 727200, 152064, 0x68c6d1b9
+0, 730800, 152064, 0xbc881fcc
+0, 734400, 152064, 0x422cc6f2
+0, 738000, 152064, 0x9b686410
+0, 741600, 152064, 0x35dc5e86
+0, 745200, 152064, 0x247bedaa
+0, 748800, 152064, 0x22b76fd1
+0, 752400, 152064, 0x67cc7a75
+0, 756000, 152064, 0xa197521e
+0, 759600, 152064, 0x428c8662
+0, 763200, 152064, 0x33dc2c73
+0, 766800, 152064, 0x5b538903
+0, 770400, 152064, 0x3c4176b6
+0, 774000, 152064, 0x774364ba
+0, 777600, 152064, 0xf237d03e
+0, 781200, 152064, 0xac8746fb
+0, 784800, 152064, 0x6b306a84
+0, 788400, 152064, 0xa2ace513
+0, 792000, 152064, 0x709c9be7
+0, 795600, 152064, 0x2403f373
+0, 799200, 152064, 0x147bf717
+0, 802800, 152064, 0xe58964c8
+0, 806400, 152064, 0xa0da36fc
+0, 810000, 152064, 0x1ac1355c
+0, 813600, 152064, 0x8a31c9f2
+0, 817200, 152064, 0x42ba205c
+0, 820800, 152064, 0xa11b3575
+0, 824400, 152064, 0xcb35207c
+0, 828000, 152064, 0x528f6189
+0, 831600, 152064, 0x34f05bd7
+0, 835200, 152064, 0x72317356
+0, 838800, 152064, 0xaabd5028
+0, 842400, 152064, 0x13dbeb7b
+0, 846000, 152064, 0x62f1e8a8
+0, 849600, 152064, 0x1723bfcd
+0, 853200, 152064, 0x5c083c00
+0, 856800, 152064, 0x52137894
+0, 860400, 152064, 0xef1e082c
+0, 864000, 152064, 0x664b3d53
+0, 867600, 152064, 0x2eb9b296
+0, 871200, 152064, 0xd0ca511e
+0, 874800, 152064, 0x012d4724
+0, 878400, 152064, 0xa847f5af
+0, 882000, 152064, 0x483a2fde
+0, 885600, 152064, 0xd1ab0257
+0, 889200, 152064, 0x414692c7
+0, 892800, 152064, 0x0b79df88
+0, 896400, 152064, 0xdaa2c4a3
+0, 900000, 152064, 0xd1b44500
+0, 903600, 152064, 0xfd3d2cf3
+0, 907200, 152064, 0xfdc0f748
+0, 910800, 152064, 0xce762a2a
+0, 914400, 152064, 0x08b63572
+0, 918000, 152064, 0x5a46a38d
+0, 921600, 152064, 0x03cee9c0
+0, 925200, 152064, 0x9ee45473
+0, 928800, 152064, 0x5a432386
+0, 932400, 152064, 0x54c83d87
+0, 936000, 152064, 0xc9caa1de
+0, 939600, 152064, 0xa28367f1
+0, 943200, 152064, 0x2607cdf1
+0, 946800, 152064, 0x06baa8de
+0, 950400, 152064, 0xf5346e32
+0, 954000, 152064, 0x6d3e732b
+0, 957600, 152064, 0x798c584b
+0, 961200, 152064, 0x4076c948
+0, 964800, 152064, 0x868cf63a
+0, 968400, 152064, 0x23107ac5
+0, 972000, 152064, 0x306f3fe2
+0, 975600, 152064, 0xbd1d71d6
+0, 979200, 152064, 0x1429545f
+0, 982800, 152064, 0xaded29aa
+0, 986400, 152064, 0x9b455a94
+0, 990000, 152064, 0xb3774ce7
+0, 993600, 152064, 0x92580986
+0, 997200, 152064, 0x0eae2f95
+0, 1000800, 152064, 0x599208b2
+0, 1004400, 152064, 0x4804c04c
+0, 1008000, 152064, 0x5f730e8f
+0, 1011600, 152064, 0x3e501d1e
+0, 1015200, 152064, 0x32100740
+0, 1018800, 152064, 0x62226ff8
+0, 1022400, 152064, 0x7683b622
+0, 1026000, 152064, 0xc3e0aec1
+0, 1029600, 152064, 0xfac12608
+0, 1033200, 152064, 0xb21a5781
+0, 1036800, 152064, 0x8f1e4964
+0, 1040400, 152064, 0x0f62dd6e
+0, 1044000, 152064, 0xac062ac4
+0, 1047600, 152064, 0x1b320f7a
+0, 1051200, 152064, 0x346e7211
+0, 1054800, 152064, 0xe47592f3
+0, 1058400, 152064, 0xa3a7919c
+0, 1062000, 152064, 0xa3580fa6
+0, 1065600, 152064, 0xc73430c1
+0, 1069200, 152064, 0x994a2c18
+0, 1072800, 152064, 0x0b5d8d45
+0, 1076400, 152064, 0x9eed5109
diff --git a/tests/ref/fate/h264-conformance-frext-hpcvmolq_brcm_b b/tests/ref/fate/h264-conformance-frext-hpcvmolq_brcm_b
new file mode 100644
index 0000000000..9db3fe5989
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hpcvmolq_brcm_b
@@ -0,0 +1,100 @@
+0, 0, 152064, 0xa18cfb97
+0, 3600, 152064, 0x509b54d2
+0, 7200, 152064, 0x1ba0fb8e
+0, 10800, 152064, 0x43e7721f
+0, 14400, 152064, 0xed196624
+0, 18000, 152064, 0x4277f1e8
+0, 21600, 152064, 0x88015cd6
+0, 25200, 152064, 0x0f230af3
+0, 28800, 152064, 0x91bbd664
+0, 32400, 152064, 0x117c65dd
+0, 36000, 152064, 0x8eebe5e8
+0, 39600, 152064, 0xd205cc10
+0, 43200, 152064, 0x4084a356
+0, 46800, 152064, 0x37385081
+0, 50400, 152064, 0xb7d34d8a
+0, 54000, 152064, 0x96648874
+0, 57600, 152064, 0x0623e65b
+0, 61200, 152064, 0x7d5b0173
+0, 64800, 152064, 0x0b6428e4
+0, 68400, 152064, 0xf3ca22a8
+0, 72000, 152064, 0x092e322c
+0, 75600, 152064, 0xe82c2971
+0, 79200, 152064, 0x29bf6111
+0, 82800, 152064, 0x84f1ea0d
+0, 86400, 152064, 0x45f822eb
+0, 90000, 152064, 0x9672b2a7
+0, 93600, 152064, 0xdb98e020
+0, 97200, 152064, 0x729879eb
+0, 100800, 152064, 0x3f629eae
+0, 104400, 152064, 0x02e0ddb7
+0, 108000, 152064, 0xbb1a0bb1
+0, 111600, 152064, 0x9b85b55b
+0, 115200, 152064, 0x2bae448b
+0, 118800, 152064, 0xa8f28bfa
+0, 122400, 152064, 0x687479da
+0, 126000, 152064, 0xe1ec3111
+0, 129600, 152064, 0x8afa37f1
+0, 133200, 152064, 0x4af89faf
+0, 136800, 152064, 0x1d9da53a
+0, 140400, 152064, 0xdc599bcd
+0, 144000, 152064, 0x01fb2e11
+0, 147600, 152064, 0x2a33498e
+0, 151200, 152064, 0x87874877
+0, 154800, 152064, 0xdcd095c6
+0, 158400, 152064, 0x4f14e6fb
+0, 162000, 152064, 0x65fd165e
+0, 165600, 152064, 0x4c267122
+0, 169200, 152064, 0x18adf3aa
+0, 172800, 152064, 0x74044daa
+0, 176400, 152064, 0xa03bca1e
+0, 180000, 152064, 0x7c1463fe
+0, 183600, 152064, 0x688a14e3
+0, 187200, 152064, 0x35c91c4e
+0, 190800, 152064, 0xeaf51d07
+0, 194400, 152064, 0xee61b9b1
+0, 198000, 152064, 0xbab75db3
+0, 201600, 152064, 0x199af472
+0, 205200, 152064, 0x3bcf96db
+0, 208800, 152064, 0x3fecdb09
+0, 212400, 152064, 0x07be2431
+0, 216000, 152064, 0x61432984
+0, 219600, 152064, 0xdb12a3b9
+0, 223200, 152064, 0xc2b8403e
+0, 226800, 152064, 0x34c60bde
+0, 230400, 152064, 0x08639859
+0, 234000, 152064, 0xfc0fc556
+0, 237600, 152064, 0x9cc27272
+0, 241200, 152064, 0x3ef7dbb0
+0, 244800, 152064, 0xbb74d9a3
+0, 248400, 152064, 0x4007fc6e
+0, 252000, 152064, 0x3d902f9b
+0, 255600, 152064, 0xfbd0a76a
+0, 259200, 152064, 0x4f1a4631
+0, 262800, 152064, 0x4f58ee25
+0, 266400, 152064, 0xd2c39501
+0, 270000, 152064, 0x23de68d5
+0, 273600, 152064, 0x4bf7d4ce
+0, 277200, 152064, 0x2bdccc79
+0, 280800, 152064, 0xc26b8f81
+0, 284400, 152064, 0xe77fa90a
+0, 288000, 152064, 0x48528308
+0, 291600, 152064, 0xab19b66b
+0, 295200, 152064, 0x04db5b4a
+0, 298800, 152064, 0x9fade901
+0, 302400, 152064, 0x1b7274ba
+0, 306000, 152064, 0x387a0191
+0, 309600, 152064, 0x2b3a8128
+0, 313200, 152064, 0x2a0dab30
+0, 316800, 152064, 0x5f5fc2da
+0, 320400, 152064, 0x5a5c8150
+0, 324000, 152064, 0xe0f5095e
+0, 327600, 152064, 0xb87c8072
+0, 331200, 152064, 0x08155daf
+0, 334800, 152064, 0xc308353f
+0, 338400, 152064, 0x2a04e8e4
+0, 342000, 152064, 0xabe75987
+0, 345600, 152064, 0x8733fb98
+0, 349200, 152064, 0x810f53a0
+0, 352800, 152064, 0xb3e4ea37
+0, 356400, 152064, 0xb7a70980
diff --git a/tests/ref/fate/h264-conformance-frext-hpcvnl_brcm_a b/tests/ref/fate/h264-conformance-frext-hpcvnl_brcm_a
new file mode 100644
index 0000000000..fe474650e5
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-frext-hpcvnl_brcm_a
@@ -0,0 +1,300 @@
+0, 0, 152064, 0x2744afa1
+0, 3600, 152064, 0x17246583
+0, 7200, 152064, 0x501836ed
+0, 10800, 152064, 0xe90d6961
+0, 14400, 152064, 0x27abe1ad
+0, 18000, 152064, 0xcfc730e4
+0, 21600, 152064, 0xeaaa83ee
+0, 25200, 152064, 0xb5d80ebd
+0, 28800, 152064, 0x1e1b9d03
+0, 32400, 152064, 0x60e7cf33
+0, 36000, 152064, 0xc44616b1
+0, 39600, 152064, 0x0a2a5906
+0, 43200, 152064, 0xf101309c
+0, 46800, 152064, 0x0b57f348
+0, 50400, 152064, 0x4f018c05
+0, 54000, 152064, 0x22359c60
+0, 57600, 152064, 0x020f1cc3
+0, 61200, 152064, 0x15be3892
+0, 64800, 152064, 0x834a2e23
+0, 68400, 152064, 0x1176586c
+0, 72000, 152064, 0x9cf25641
+0, 75600, 152064, 0xc1c4051d
+0, 79200, 152064, 0x790d8bfa
+0, 82800, 152064, 0x4dcbe7d7
+0, 86400, 152064, 0xe81d3b7b
+0, 90000, 152064, 0xe9e21309
+0, 93600, 152064, 0x22021dbc
+0, 97200, 152064, 0x430c5ecb
+0, 100800, 152064, 0xf524be8b
+0, 104400, 152064, 0xa437dadc
+0, 108000, 152064, 0xff00b440
+0, 111600, 152064, 0x4bd1bf15
+0, 115200, 152064, 0x1f46a3ea
+0, 118800, 152064, 0x60b47c5e
+0, 122400, 152064, 0x45117ac6
+0, 126000, 152064, 0x43894fca
+0, 129600, 152064, 0x21572b55
+0, 133200, 152064, 0xe96def09
+0, 136800, 152064, 0x4d2ab41f
+0, 140400, 152064, 0x072d6b06
+0, 144000, 152064, 0x81865687
+0, 147600, 152064, 0x8d9a0ea6
+0, 151200, 152064, 0x1484d3cd
+0, 154800, 152064, 0xbdabae6b
+0, 158400, 152064, 0x4211edbe
+0, 162000, 152064, 0xd84dad6d
+0, 165600, 152064, 0xe4e79344
+0, 169200, 152064, 0x9c1addd7
+0, 172800, 152064, 0xdcf94283
+0, 176400, 152064, 0x6bd005b2
+0, 180000, 152064, 0x9679bd10
+0, 183600, 152064, 0x052064ab
+0, 187200, 152064, 0x915db3f3
+0, 190800, 152064, 0xec2fbd58
+0, 194400, 152064, 0x26728258
+0, 198000, 152064, 0x2b2b617f
+0, 201600, 152064, 0x2339eb3d
+0, 205200, 152064, 0xcf6e6773
+0, 208800, 152064, 0xb993efe4
+0, 212400, 152064, 0x4054253d
+0, 216000, 152064, 0x4befe5b5
+0, 219600, 152064, 0x0678c0fa
+0, 223200, 152064, 0xe3c54a03
+0, 226800, 152064, 0xffa3210c
+0, 230400, 152064, 0xed04b823
+0, 234000, 152064, 0x00926457
+0, 237600, 152064, 0xd56aaaf0
+0, 241200, 152064, 0x6047ef6e
+0, 244800, 152064, 0x44316d07
+0, 248400, 152064, 0xe8a879b7
+0, 252000, 152064, 0x1856cd86
+0, 255600, 152064, 0x6528349a
+0, 259200, 152064, 0xdeff676e
+0, 262800, 152064, 0xda412e47
+0, 266400, 152064, 0xa2c2a96f
+0, 270000, 152064, 0xc703b8cd
+0, 273600, 152064, 0x20b0650b
+0, 277200, 152064, 0x8c14faa5
+0, 280800, 152064, 0xa442706c
+0, 284400, 152064, 0x6e456137
+0, 288000, 152064, 0x6dde11c6
+0, 291600, 152064, 0xb017978a
+0, 295200, 152064, 0xc0bad34b
+0, 298800, 152064, 0x8bd439ee
+0, 302400, 152064, 0xa92735e4
+0, 306000, 152064, 0x1623f501
+0, 309600, 152064, 0x5be980b2
+0, 313200, 152064, 0x4306b9bf
+0, 316800, 152064, 0xb4f18976
+0, 320400, 152064, 0x4ffb9b46
+0, 324000, 152064, 0x23082275
+0, 327600, 152064, 0xc7f0e087
+0, 331200, 152064, 0x68b95327
+0, 334800, 152064, 0xd030a8e4
+0, 338400, 152064, 0xf8f9615c
+0, 342000, 152064, 0x1b26fe3e
+0, 345600, 152064, 0x3381608d
+0, 349200, 152064, 0x9939d49d
+0, 352800, 152064, 0x575f4f94
+0, 356400, 152064, 0x436c581c
+0, 360000, 152064, 0x8f47aa58
+0, 363600, 152064, 0xd251d95a
+0, 367200, 152064, 0x3c33b32c
+0, 370800, 152064, 0xa1e19413
+0, 374400, 152064, 0x8d95cbad
+0, 378000, 152064, 0x98cbd35e
+0, 381600, 152064, 0xceb81a0f
+0, 385200, 152064, 0x5490fab1
+0, 388800, 152064, 0x8e57a38c
+0, 392400, 152064, 0xc379517a
+0, 396000, 152064, 0xafc4f747
+0, 399600, 152064, 0xbc9c9be4
+0, 403200, 152064, 0xd602b2f5
+0, 406800, 152064, 0x8d85a450
+0, 410400, 152064, 0x48183c74
+0, 414000, 152064, 0xd1725590
+0, 417600, 152064, 0x5ef42ed7
+0, 421200, 152064, 0xad3a3883
+0, 424800, 152064, 0x7a3e0ddd
+0, 428400, 152064, 0x59bdfd38
+0, 432000, 152064, 0x5ac3ba9f
+0, 435600, 152064, 0x266cbd00
+0, 439200, 152064, 0x97d29e00
+0, 442800, 152064, 0x620774c2
+0, 446400, 152064, 0xaae8b96f
+0, 450000, 152064, 0x5f6bdfb6
+0, 453600, 152064, 0xb239da53
+0, 457200, 152064, 0x654b5680
+0, 460800, 152064, 0xd796b723
+0, 464400, 152064, 0xd5c84a81
+0, 468000, 152064, 0x2a761652
+0, 471600, 152064, 0x1137e145
+0, 475200, 152064, 0x1a9a451b
+0, 478800, 152064, 0x5ca751c4
+0, 482400, 152064, 0x074acec7
+0, 486000, 152064, 0x9ddfe77d
+0, 489600, 152064, 0xfb211c29
+0, 493200, 152064, 0x681ad4dd
+0, 496800, 152064, 0x702c12cc
+0, 500400, 152064, 0x556c5101
+0, 504000, 152064, 0x39d4bb54
+0, 507600, 152064, 0xa3a118d6
+0, 511200, 152064, 0xb78b7db1
+0, 514800, 152064, 0x4e20eed5
+0, 518400, 152064, 0x6555a9df
+0, 522000, 152064, 0xb607a9a4
+0, 525600, 152064, 0x3cf96a94
+0, 529200, 152064, 0xb2679007
+0, 532800, 152064, 0xf09d5b85
+0, 536400, 152064, 0x3961ba07
+0, 540000, 152064, 0x0c28363a
+0, 543600, 152064, 0x0a017c2d
+0, 547200, 152064, 0x3a661de3
+0, 550800, 152064, 0xf8d1bdee
+0, 554400, 152064, 0x6f47791b
+0, 558000, 152064, 0xe05b22c6
+0, 561600, 152064, 0x7cc93bb0
+0, 565200, 152064, 0xeb90c3d8
+0, 568800, 152064, 0x1a1eac98
+0, 572400, 152064, 0x92985671
+0, 576000, 152064, 0x2fe3ce53
+0, 579600, 152064, 0x61def691
+0, 583200, 152064, 0x90820730
+0, 586800, 152064, 0x17630372
+0, 590400, 152064, 0xaf6cea12
+0, 594000, 152064, 0xfe3b7ecc
+0, 597600, 152064, 0x904a5b2e
+0, 601200, 152064, 0x0d88d5f2
+0, 604800, 152064, 0x498d22b1
+0, 608400, 152064, 0x56baba83
+0, 612000, 152064, 0xda4d6dfa
+0, 615600, 152064, 0xaa38cbdd
+0, 619200, 152064, 0x4077f15d
+0, 622800, 152064, 0x7e006ec2
+0, 626400, 152064, 0x59964a89
+0, 630000, 152064, 0x04c078e3
+0, 633600, 152064, 0x7a5faf97
+0, 637200, 152064, 0xc517b3e9
+0, 640800, 152064, 0xfcc81af5
+0, 644400, 152064, 0xdcb44f62
+0, 648000, 152064, 0x2a080b72
+0, 651600, 152064, 0x91f88c67
+0, 655200, 152064, 0xd39caf81
+0, 658800, 152064, 0x0764ae31
+0, 662400, 152064, 0x0ddb82ed
+0, 666000, 152064, 0xed6d17e4
+0, 669600, 152064, 0xb4f74712
+0, 673200, 152064, 0x23a20787
+0, 676800, 152064, 0x853e7b33
+0, 680400, 152064, 0xc6bac173
+0, 684000, 152064, 0xb590ec15
+0, 687600, 152064, 0xfdd2943c
+0, 691200, 152064, 0xba5d1160
+0, 694800, 152064, 0xe732c5a7
+0, 698400, 152064, 0x279f6ce9
+0, 702000, 152064, 0xb3835829
+0, 705600, 152064, 0x0901b2a1
+0, 709200, 152064, 0x3df2b8f8
+0, 712800, 152064, 0x374496a4
+0, 716400, 152064, 0x1bc6a4ae
+0, 720000, 152064, 0xdb4b372e
+0, 723600, 152064, 0x8c11c214
+0, 727200, 152064, 0xd2d5c093
+0, 730800, 152064, 0x8dda094e
+0, 734400, 152064, 0x9b2cc401
+0, 738000, 152064, 0x1a3b49d5
+0, 741600, 152064, 0xaf5342ff
+0, 745200, 152064, 0x74c0de83
+0, 748800, 152064, 0xcf486137
+0, 752400, 152064, 0xcf005b3b
+0, 756000, 152064, 0x86a64c55
+0, 759600, 152064, 0xdd3f7ae9
+0, 763200, 152064, 0xb0d01e53
+0, 766800, 152064, 0x83219065
+0, 770400, 152064, 0x17a35d27
+0, 774000, 152064, 0xf92645b5
+0, 777600, 152064, 0x8322bdbf
+0, 781200, 152064, 0xd589f6a2
+0, 784800, 152064, 0x80a62d9e
+0, 788400, 152064, 0x05b3e0d1
+0, 792000, 152064, 0xd657aa0b
+0, 795600, 152064, 0xec5ac2dd
+0, 799200, 152064, 0xbf0ff969
+0, 802800, 152064, 0xc34a5140
+0, 806400, 152064, 0x814705c4
+0, 810000, 152064, 0xe9592008
+0, 813600, 152064, 0xf12c933c
+0, 817200, 152064, 0x2daee178
+0, 820800, 152064, 0xa2573028
+0, 824400, 152064, 0x6109f58d
+0, 828000, 152064, 0x64ab8ce4
+0, 831600, 152064, 0x13a88b6e
+0, 835200, 152064, 0x8f0181a9
+0, 838800, 152064, 0xd5295fd4
+0, 842400, 152064, 0xfdbeeb0d
+0, 846000, 152064, 0x05ecd231
+0, 849600, 152064, 0x48d164cd
+0, 853200, 152064, 0xc279cf63
+0, 856800, 152064, 0x1d5e6a03
+0, 860400, 152064, 0xd9dc1807
+0, 864000, 152064, 0xbcc83676
+0, 867600, 152064, 0x65a9811e
+0, 871200, 152064, 0x3ccfe5a8
+0, 874800, 152064, 0x2f2ff051
+0, 878400, 152064, 0x9193e093
+0, 882000, 152064, 0x9a30fdc6
+0, 885600, 152064, 0x90b7ea10
+0, 889200, 152064, 0x3291910c
+0, 892800, 152064, 0x2335d186
+0, 896400, 152064, 0x2890cf1d
+0, 900000, 152064, 0x8c8b6245
+0, 903600, 152064, 0x24b84eda
+0, 907200, 152064, 0x04a12446
+0, 910800, 152064, 0xd9d91d51
+0, 914400, 152064, 0xbf450adf
+0, 918000, 152064, 0xa19a9a41
+0, 921600, 152064, 0x2211ab01
+0, 925200, 152064, 0x8fe85430
+0, 928800, 152064, 0x5a152861
+0, 932400, 152064, 0x7fe76995
+0, 936000, 152064, 0x508b99cd
+0, 939600, 152064, 0x92e79437
+0, 943200, 152064, 0x8572eac9
+0, 946800, 152064, 0x42e3d513
+0, 950400, 152064, 0x6bee9e38
+0, 954000, 152064, 0x2858ad4b
+0, 957600, 152064, 0x96d87d00
+0, 961200, 152064, 0x749f1032
+0, 964800, 152064, 0x668fca6c
+0, 968400, 152064, 0x11d278d9
+0, 972000, 152064, 0x10fd46ea
+0, 975600, 152064, 0xc8b193c8
+0, 979200, 152064, 0x035e7d02
+0, 982800, 152064, 0x067f583c
+0, 986400, 152064, 0xd9648a1e
+0, 990000, 152064, 0x92487b7e
+0, 993600, 152064, 0xc7b35421
+0, 997200, 152064, 0x2ed57c1c
+0, 1000800, 152064, 0xefe24c5f
+0, 1004400, 152064, 0x8df0118b
+0, 1008000, 152064, 0x18f0278d
+0, 1011600, 152064, 0x63ac45ad
+0, 1015200, 152064, 0xd79849f0
+0, 1018800, 152064, 0x1f1d4dab
+0, 1022400, 152064, 0x736fb5b8
+0, 1026000, 152064, 0xc24eb80c
+0, 1029600, 152064, 0x64ca3b11
+0, 1033200, 152064, 0x35d8674c
+0, 1036800, 152064, 0x3c5a7b51
+0, 1040400, 152064, 0x97550b81
+0, 1044000, 152064, 0x731454b5
+0, 1047600, 152064, 0x01de43bc
+0, 1051200, 152064, 0xbda7afae
+0, 1054800, 152064, 0xeb34d714
+0, 1058400, 152064, 0x1260cc98
+0, 1062000, 152064, 0x7e592c36
+0, 1065600, 152064, 0x40b3676e
+0, 1069200, 152064, 0x8c9d6b94
+0, 1072800, 152064, 0xc7988665
+0, 1076400, 152064, 0xf2994d52
diff --git a/tests/ref/fate/h264-conformance-hcbp2_hhi_a b/tests/ref/fate/h264-conformance-hcbp2_hhi_a
new file mode 100644
index 0000000000..87a9db1a58
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-hcbp2_hhi_a
@@ -0,0 +1,250 @@
+0, 0, 152064, 0xf9deb95a
+0, 3600, 152064, 0xdce9c541
+0, 7200, 152064, 0xc45a8a77
+0, 10800, 152064, 0x5132a470
+0, 14400, 152064, 0x65542c98
+0, 18000, 152064, 0x2df95883
+0, 21600, 152064, 0x9f4f1280
+0, 25200, 152064, 0x11c9f32c
+0, 28800, 152064, 0x66535f0c
+0, 32400, 152064, 0x5b13770c
+0, 36000, 152064, 0xadcd3278
+0, 39600, 152064, 0x06e00e91
+0, 43200, 152064, 0x1fa1886f
+0, 46800, 152064, 0xd524b6a3
+0, 50400, 152064, 0x45f82b73
+0, 54000, 152064, 0x0fd301aa
+0, 57600, 152064, 0x2983acdd
+0, 61200, 152064, 0xe74004c6
+0, 64800, 152064, 0xe279328a
+0, 68400, 152064, 0x85be8f85
+0, 72000, 152064, 0xec503b6b
+0, 75600, 152064, 0x3d4495db
+0, 79200, 152064, 0x3a9774d2
+0, 82800, 152064, 0x80a07a42
+0, 86400, 152064, 0x484427ce
+0, 90000, 152064, 0x9e6b773f
+0, 93600, 152064, 0xd3be5f07
+0, 97200, 152064, 0x69a76c5e
+0, 100800, 152064, 0xd448fde2
+0, 104400, 152064, 0x04a34635
+0, 108000, 152064, 0xd4e3e0e1
+0, 111600, 152064, 0x2564cf13
+0, 115200, 152064, 0x98bc5167
+0, 118800, 152064, 0xcf06991f
+0, 122400, 152064, 0x3edf621f
+0, 126000, 152064, 0x47039967
+0, 129600, 152064, 0x299636b5
+0, 133200, 152064, 0x2bc0849d
+0, 136800, 152064, 0xe94946a6
+0, 140400, 152064, 0x5a5768ac
+0, 144000, 152064, 0xfe4ce9cd
+0, 147600, 152064, 0xbeb34b2e
+0, 151200, 152064, 0xa26020e3
+0, 154800, 152064, 0xb2514c55
+0, 158400, 152064, 0x723be4b1
+0, 162000, 152064, 0xeef4434e
+0, 165600, 152064, 0x1237e1db
+0, 169200, 152064, 0x4814c1fb
+0, 172800, 152064, 0xe7544446
+0, 176400, 152064, 0xd93a53d9
+0, 180000, 152064, 0x90e029c6
+0, 183600, 152064, 0xfa493dfc
+0, 187200, 152064, 0x081fa2d9
+0, 190800, 152064, 0x9782ef8c
+0, 194400, 152064, 0x1daf911c
+0, 198000, 152064, 0xc9058a57
+0, 201600, 152064, 0x68a90f04
+0, 205200, 152064, 0xc7115091
+0, 208800, 152064, 0xe9731898
+0, 212400, 152064, 0xd7bc206e
+0, 216000, 152064, 0xf760baac
+0, 219600, 152064, 0x6f9700e3
+0, 223200, 152064, 0xec54b42d
+0, 226800, 152064, 0x0dc5bf77
+0, 230400, 152064, 0x196e33c3
+0, 234000, 152064, 0x090cae46
+0, 237600, 152064, 0x06897499
+0, 241200, 152064, 0xf54cd959
+0, 244800, 152064, 0x24167906
+0, 248400, 152064, 0xea06e67b
+0, 252000, 152064, 0xa97ed69c
+0, 255600, 152064, 0x03c4ce82
+0, 259200, 152064, 0xca864ddd
+0, 262800, 152064, 0x1bc9956f
+0, 266400, 152064, 0x7864908c
+0, 270000, 152064, 0x52f3be55
+0, 273600, 152064, 0x78b469b5
+0, 277200, 152064, 0x8b3bb23e
+0, 280800, 152064, 0x5bed7f47
+0, 284400, 152064, 0x401b7e9c
+0, 288000, 152064, 0x4cbc3193
+0, 291600, 152064, 0xa00b7ed2
+0, 295200, 152064, 0xda548927
+0, 298800, 152064, 0x30a5cffb
+0, 302400, 152064, 0x9536bdf0
+0, 306000, 152064, 0x927e3cf4
+0, 309600, 152064, 0x95533148
+0, 313200, 152064, 0x763c553a
+0, 316800, 152064, 0x7010f280
+0, 320400, 152064, 0xa537667c
+0, 324000, 152064, 0xe599927a
+0, 327600, 152064, 0x72dde2ab
+0, 331200, 152064, 0x02089d51
+0, 334800, 152064, 0x4ca8231a
+0, 338400, 152064, 0x90b126aa
+0, 342000, 152064, 0x65a9260f
+0, 345600, 152064, 0xf37cf34a
+0, 349200, 152064, 0xf21f63f6
+0, 352800, 152064, 0x95209e85
+0, 356400, 152064, 0x0df00a65
+0, 360000, 152064, 0x0ce71e2b
+0, 363600, 152064, 0x6cbf8843
+0, 367200, 152064, 0x17f29296
+0, 370800, 152064, 0x88278aa9
+0, 374400, 152064, 0x84ad74d0
+0, 378000, 152064, 0xda48eea1
+0, 381600, 152064, 0xcaf33b25
+0, 385200, 152064, 0x9b288538
+0, 388800, 152064, 0xd1b7561f
+0, 392400, 152064, 0x4bfcbdac
+0, 396000, 152064, 0x1dd5b920
+0, 399600, 152064, 0xde50ceeb
+0, 403200, 152064, 0xa552963b
+0, 406800, 152064, 0xb2f5ef15
+0, 410400, 152064, 0x5abf061c
+0, 414000, 152064, 0x9b4c45f6
+0, 417600, 152064, 0xe61d1b02
+0, 421200, 152064, 0xe5728c4e
+0, 424800, 152064, 0xcb944655
+0, 428400, 152064, 0x648b951a
+0, 432000, 152064, 0xc3671a38
+0, 435600, 152064, 0x7d3fbcf3
+0, 439200, 152064, 0x3c0ba1c5
+0, 442800, 152064, 0xf5ac0d3a
+0, 446400, 152064, 0x87faf534
+0, 450000, 152064, 0xb3f05d11
+0, 453600, 152064, 0x825e3423
+0, 457200, 152064, 0xade45431
+0, 460800, 152064, 0x7715d496
+0, 464400, 152064, 0x983c45fa
+0, 468000, 152064, 0xe8d621d8
+0, 471600, 152064, 0x71ec7553
+0, 475200, 152064, 0xb20d5556
+0, 478800, 152064, 0xfa6bd00b
+0, 482400, 152064, 0x2a18acf1
+0, 486000, 152064, 0xa241c342
+0, 489600, 152064, 0xa3597426
+0, 493200, 152064, 0x6f72ff61
+0, 496800, 152064, 0xceffe8af
+0, 500400, 152064, 0x76853b09
+0, 504000, 152064, 0x3f58cc0c
+0, 507600, 152064, 0x16080a6d
+0, 511200, 152064, 0x752ae0aa
+0, 514800, 152064, 0x7dadf81b
+0, 518400, 152064, 0x9828aa7c
+0, 522000, 152064, 0x05a51e04
+0, 525600, 152064, 0xf9a92ae6
+0, 529200, 152064, 0xce0169f9
+0, 532800, 152064, 0x784d405b
+0, 536400, 152064, 0x531b9869
+0, 540000, 152064, 0xdf6a6129
+0, 543600, 152064, 0x5cdf5aac
+0, 547200, 152064, 0x28dd0050
+0, 550800, 152064, 0x76bd5ea7
+0, 554400, 152064, 0xcf3036bf
+0, 558000, 152064, 0x20365c0d
+0, 561600, 152064, 0x171ad303
+0, 565200, 152064, 0x1388416d
+0, 568800, 152064, 0x9b92f171
+0, 572400, 152064, 0xe2bc377a
+0, 576000, 152064, 0x90639e6c
+0, 579600, 152064, 0x1b50e759
+0, 583200, 152064, 0x43a9b680
+0, 586800, 152064, 0xb1780015
+0, 590400, 152064, 0x9a6783a6
+0, 594000, 152064, 0x1471e2e4
+0, 597600, 152064, 0xb1899be2
+0, 601200, 152064, 0x2facd37c
+0, 604800, 152064, 0x197361fc
+0, 608400, 152064, 0x823ffce1
+0, 612000, 152064, 0x9ce3cb14
+0, 615600, 152064, 0x16620232
+0, 619200, 152064, 0x4fedb29e
+0, 622800, 152064, 0xb45cd8b4
+0, 626400, 152064, 0x84387e9d
+0, 630000, 152064, 0xd5017ca0
+0, 633600, 152064, 0x106002a5
+0, 637200, 152064, 0x20c44a82
+0, 640800, 152064, 0x0694fbb2
+0, 644400, 152064, 0x849cfdf3
+0, 648000, 152064, 0xef827c85
+0, 651600, 152064, 0xc04ecde3
+0, 655200, 152064, 0x2f81bee2
+0, 658800, 152064, 0x86dbe8cc
+0, 662400, 152064, 0x9ee67bcd
+0, 666000, 152064, 0xa2618f39
+0, 669600, 152064, 0x35a40f36
+0, 673200, 152064, 0x9f6b0b54
+0, 676800, 152064, 0xcee2c0b5
+0, 680400, 152064, 0x3c3cb8f3
+0, 684000, 152064, 0xf3ab2e21
+0, 687600, 152064, 0xc51afcbc
+0, 691200, 152064, 0x272bbb4d
+0, 694800, 152064, 0x1448f2cc
+0, 698400, 152064, 0xd286e217
+0, 702000, 152064, 0xd6abf89e
+0, 705600, 152064, 0xf908bb8a
+0, 709200, 152064, 0x8a17ddd6
+0, 712800, 152064, 0xc30d9039
+0, 716400, 152064, 0xb8c6a557
+0, 720000, 152064, 0xf1675620
+0, 723600, 152064, 0xbb41b898
+0, 727200, 152064, 0x662298b2
+0, 730800, 152064, 0x0f8271aa
+0, 734400, 152064, 0x34d90197
+0, 738000, 152064, 0x15254eb2
+0, 741600, 152064, 0x4d942235
+0, 745200, 152064, 0xa2cefa6a
+0, 748800, 152064, 0x909a7050
+0, 752400, 152064, 0x219abae7
+0, 756000, 152064, 0x0166bc37
+0, 759600, 152064, 0x8b960965
+0, 763200, 152064, 0x71f6af2a
+0, 766800, 152064, 0x8d69f377
+0, 770400, 152064, 0x27b1a17d
+0, 774000, 152064, 0x6b09b049
+0, 777600, 152064, 0x733472e7
+0, 781200, 152064, 0x986efe32
+0, 784800, 152064, 0x99a37cc5
+0, 788400, 152064, 0x82433283
+0, 792000, 152064, 0x4698c0bd
+0, 795600, 152064, 0x1f6ce7f9
+0, 799200, 152064, 0x6e398d44
+0, 802800, 152064, 0x14ae5d85
+0, 806400, 152064, 0xef2f1e28
+0, 810000, 152064, 0x9dfe46ae
+0, 813600, 152064, 0x91997a8f
+0, 817200, 152064, 0x6c828dda
+0, 820800, 152064, 0x723f3f5c
+0, 824400, 152064, 0xcb86883d
+0, 828000, 152064, 0x1c25cbed
+0, 831600, 152064, 0x3cad814a
+0, 835200, 152064, 0xe0d8f5e7
+0, 838800, 152064, 0xaefb35cc
+0, 842400, 152064, 0x5dfc2181
+0, 846000, 152064, 0x13f26603
+0, 849600, 152064, 0x97a3dd0d
+0, 853200, 152064, 0xbecff890
+0, 856800, 152064, 0xd226badc
+0, 860400, 152064, 0x7f4adbd1
+0, 864000, 152064, 0x5da1565a
+0, 867600, 152064, 0x35cbac9c
+0, 871200, 152064, 0xf1b26f8a
+0, 874800, 152064, 0xc8d08d07
+0, 878400, 152064, 0xa9f643c2
+0, 882000, 152064, 0xc420b0ba
+0, 885600, 152064, 0x8871a4f5
+0, 889200, 152064, 0x4e7647b4
+0, 892800, 152064, 0xb4dad812
+0, 896400, 152064, 0x6a3d00d5
diff --git a/tests/ref/fate/h264-conformance-hcmp1_hhi_a b/tests/ref/fate/h264-conformance-hcmp1_hhi_a
new file mode 100644
index 0000000000..88b758d808
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-hcmp1_hhi_a
@@ -0,0 +1,250 @@
+0, 0, 152064, 0xda244f3f
+0, 3600, 152064, 0x35a1cb02
+0, 7200, 152064, 0xa729d9ca
+0, 10800, 152064, 0x69d90602
+0, 14400, 152064, 0x4ccdae72
+0, 18000, 152064, 0x06f9d8b9
+0, 21600, 152064, 0x0a14a736
+0, 25200, 152064, 0xc344b167
+0, 28800, 152064, 0xf3303e92
+0, 32400, 152064, 0xbe28813f
+0, 36000, 152064, 0x971f4980
+0, 39600, 152064, 0x69124d31
+0, 43200, 152064, 0x6d93e7f2
+0, 46800, 152064, 0x5c1315e4
+0, 50400, 152064, 0xb011cfe4
+0, 54000, 152064, 0x65a0d147
+0, 57600, 152064, 0x463d8c39
+0, 61200, 152064, 0x15f2a757
+0, 64800, 152064, 0xc2418f1f
+0, 68400, 152064, 0x7a48b94c
+0, 72000, 152064, 0x1c079ec9
+0, 75600, 152064, 0x348ced32
+0, 79200, 152064, 0x6014d525
+0, 82800, 152064, 0x146ed41f
+0, 86400, 152064, 0x543177e6
+0, 90000, 152064, 0x79a4b44e
+0, 93600, 152064, 0x4401a7ae
+0, 97200, 152064, 0xc0aec3c1
+0, 100800, 152064, 0x92348852
+0, 104400, 152064, 0x90eece70
+0, 108000, 152064, 0x19efd00f
+0, 111600, 152064, 0x608912ac
+0, 115200, 152064, 0xa707bdb1
+0, 118800, 152064, 0x926e1ffe
+0, 122400, 152064, 0x56863ca8
+0, 126000, 152064, 0xe18e81b4
+0, 129600, 152064, 0xf17466f2
+0, 133200, 152064, 0x2281feef
+0, 136800, 152064, 0x33603b66
+0, 140400, 152064, 0xe30fad28
+0, 144000, 152064, 0x66efb21e
+0, 147600, 152064, 0x405f32d6
+0, 151200, 152064, 0xe90f262b
+0, 154800, 152064, 0xf85144b0
+0, 158400, 152064, 0xcff4feab
+0, 162000, 152064, 0x02b63e49
+0, 165600, 152064, 0x91d9ff77
+0, 169200, 152064, 0x2c6c0d2a
+0, 172800, 152064, 0xacad9e66
+0, 176400, 152064, 0x83951353
+0, 180000, 152064, 0x549c16e4
+0, 183600, 152064, 0xcad9610c
+0, 187200, 152064, 0x264e4b57
+0, 190800, 152064, 0x9758afe8
+0, 194400, 152064, 0x0273a81d
+0, 198000, 152064, 0x31c6f1a0
+0, 201600, 152064, 0x80d1c9cf
+0, 205200, 152064, 0x41b861f7
+0, 208800, 152064, 0xad416fe7
+0, 212400, 152064, 0xdde59bf0
+0, 216000, 152064, 0x886c491c
+0, 219600, 152064, 0x4bf4a21f
+0, 223200, 152064, 0x2581a06e
+0, 226800, 152064, 0x8188cf9b
+0, 230400, 152064, 0xbfaf82ce
+0, 234000, 152064, 0xed9ef8b1
+0, 237600, 152064, 0xf5f4e0c0
+0, 241200, 152064, 0xa24421ac
+0, 244800, 152064, 0xf0cdde38
+0, 248400, 152064, 0x7f211f2c
+0, 252000, 152064, 0x241ff38b
+0, 255600, 152064, 0x19bc25a6
+0, 259200, 152064, 0xd9d5ede9
+0, 262800, 152064, 0x88f98579
+0, 266400, 152064, 0x630da1aa
+0, 270000, 152064, 0x19abf44f
+0, 273600, 152064, 0x3a95d341
+0, 277200, 152064, 0xdeb9333e
+0, 280800, 152064, 0x0c994783
+0, 284400, 152064, 0xb58b7d26
+0, 288000, 152064, 0x6e392b24
+0, 291600, 152064, 0x1f7e2d63
+0, 295200, 152064, 0x732342d3
+0, 298800, 152064, 0xbda4a761
+0, 302400, 152064, 0xdc387777
+0, 306000, 152064, 0xd5d00469
+0, 309600, 152064, 0xc840cf6d
+0, 313200, 152064, 0x3dfef3d9
+0, 316800, 152064, 0xf731594f
+0, 320400, 152064, 0x126fef41
+0, 324000, 152064, 0x5705b1e3
+0, 327600, 152064, 0xa8ecbe94
+0, 331200, 152064, 0xcbcd0e48
+0, 334800, 152064, 0x3da860da
+0, 338400, 152064, 0x97882d5f
+0, 342000, 152064, 0x19803d16
+0, 345600, 152064, 0xa639b969
+0, 349200, 152064, 0xc0a00bc3
+0, 352800, 152064, 0xb12f0617
+0, 356400, 152064, 0x0e53481c
+0, 360000, 152064, 0x1fa0e47d
+0, 363600, 152064, 0x818119fa
+0, 367200, 152064, 0xc28ffc3e
+0, 370800, 152064, 0x8abdfb3c
+0, 374400, 152064, 0x670cb951
+0, 378000, 152064, 0x172808bd
+0, 381600, 152064, 0x6be1ea7f
+0, 385200, 152064, 0x05dbfadc
+0, 388800, 152064, 0xcfcfbcec
+0, 392400, 152064, 0x9306e1d2
+0, 396000, 152064, 0xcf3ccc54
+0, 399600, 152064, 0xf36ad41a
+0, 403200, 152064, 0x751b835b
+0, 406800, 152064, 0x7ebed47b
+0, 410400, 152064, 0x9659d022
+0, 414000, 152064, 0xef7701ae
+0, 417600, 152064, 0x5cdee3b0
+0, 421200, 152064, 0xf6c3ed42
+0, 424800, 152064, 0x412ee2fb
+0, 428400, 152064, 0x309cd2bd
+0, 432000, 152064, 0x50f09af5
+0, 435600, 152064, 0x4a05087a
+0, 439200, 152064, 0xaedc2125
+0, 442800, 152064, 0x54e2692a
+0, 446400, 152064, 0x0403590c
+0, 450000, 152064, 0x8a4c9833
+0, 453600, 152064, 0x36b6893e
+0, 457200, 152064, 0x21fd9204
+0, 460800, 152064, 0xa1cd3bc7
+0, 464400, 152064, 0x3cfa3d18
+0, 468000, 152064, 0xb5f7fefd
+0, 471600, 152064, 0x133cf831
+0, 475200, 152064, 0xcaabdd54
+0, 478800, 152064, 0xcab45366
+0, 482400, 152064, 0x8b6f4c90
+0, 486000, 152064, 0x4de74903
+0, 489600, 152064, 0x2dde0c4f
+0, 493200, 152064, 0x09364c1d
+0, 496800, 152064, 0x610318b9
+0, 500400, 152064, 0xd85109d5
+0, 504000, 152064, 0x27a1eac7
+0, 507600, 152064, 0xafd50e70
+0, 511200, 152064, 0x96ac088c
+0, 514800, 152064, 0x1332091c
+0, 518400, 152064, 0x9d38ce90
+0, 522000, 152064, 0xeff10d8e
+0, 525600, 152064, 0x6c320de3
+0, 529200, 152064, 0xeb683437
+0, 532800, 152064, 0xe8a73715
+0, 536400, 152064, 0x53a27669
+0, 540000, 152064, 0xd5665cdc
+0, 543600, 152064, 0x76bc4f86
+0, 547200, 152064, 0xb5282913
+0, 550800, 152064, 0xf788398b
+0, 554400, 152064, 0xa2a74268
+0, 558000, 152064, 0x1e8c57c4
+0, 561600, 152064, 0x12c0542f
+0, 565200, 152064, 0x8dbe9945
+0, 568800, 152064, 0x0f7583cd
+0, 572400, 152064, 0x814e9e0b
+0, 576000, 152064, 0x39575c04
+0, 579600, 152064, 0x75a07f38
+0, 583200, 152064, 0x8a6247c1
+0, 586800, 152064, 0x0f8d606e
+0, 590400, 152064, 0x7dcc4169
+0, 594000, 152064, 0x039d6df2
+0, 597600, 152064, 0x16b779c4
+0, 601200, 152064, 0x8b3a9767
+0, 604800, 152064, 0x281e6d83
+0, 608400, 152064, 0x7d22a528
+0, 612000, 152064, 0x93778828
+0, 615600, 152064, 0xd54c95fc
+0, 619200, 152064, 0xf4e76d9a
+0, 622800, 152064, 0xaa7ba3fd
+0, 626400, 152064, 0x94d88d91
+0, 630000, 152064, 0xa46b9c34
+0, 633600, 152064, 0x9dcb4d0c
+0, 637200, 152064, 0x347d0983
+0, 640800, 152064, 0x870ecd2b
+0, 644400, 152064, 0x5dafe6d6
+0, 648000, 152064, 0x10d77857
+0, 651600, 152064, 0xddc1d127
+0, 655200, 152064, 0x2732a13c
+0, 658800, 152064, 0x3d81bac9
+0, 662400, 152064, 0x619d3dd3
+0, 666000, 152064, 0x2db3e1ac
+0, 669600, 152064, 0x63a7e7e5
+0, 673200, 152064, 0x902a4c92
+0, 676800, 152064, 0x9c38e0f6
+0, 680400, 152064, 0x8ceb3a46
+0, 684000, 152064, 0x73cbb6bd
+0, 687600, 152064, 0x5f6fa7d6
+0, 691200, 152064, 0x8cdad086
+0, 694800, 152064, 0xe7cf083f
+0, 698400, 152064, 0x18c0f6b9
+0, 702000, 152064, 0xfe582ddf
+0, 705600, 152064, 0x5fca4740
+0, 709200, 152064, 0x072981ab
+0, 712800, 152064, 0xcb874172
+0, 716400, 152064, 0xfa153e05
+0, 720000, 152064, 0x259ae495
+0, 723600, 152064, 0x1714beb4
+0, 727200, 152064, 0xa051721e
+0, 730800, 152064, 0x52d17b85
+0, 734400, 152064, 0x9cbf5da3
+0, 738000, 152064, 0x28d69092
+0, 741600, 152064, 0xbdb942e7
+0, 745200, 152064, 0xeefe2253
+0, 748800, 152064, 0xbef2af4d
+0, 752400, 152064, 0x622dee36
+0, 756000, 152064, 0x61decf4e
+0, 759600, 152064, 0x8dfefdbe
+0, 763200, 152064, 0x78d67e90
+0, 766800, 152064, 0x9cddaa58
+0, 770400, 152064, 0x8d487f4d
+0, 774000, 152064, 0x67f58715
+0, 777600, 152064, 0xc9203f22
+0, 781200, 152064, 0x0fec8343
+0, 784800, 152064, 0xb57e7b6a
+0, 788400, 152064, 0xa2ed7700
+0, 792000, 152064, 0x34722cad
+0, 795600, 152064, 0x02c83b2a
+0, 799200, 152064, 0x91b11583
+0, 802800, 152064, 0x7676166d
+0, 806400, 152064, 0x76a9d5fc
+0, 810000, 152064, 0x4fcd1750
+0, 813600, 152064, 0xaa6ff7bf
+0, 817200, 152064, 0x5e2bfab6
+0, 820800, 152064, 0x3abec811
+0, 824400, 152064, 0x0711eb85
+0, 828000, 152064, 0xb10ebf41
+0, 831600, 152064, 0x32d8cb56
+0, 835200, 152064, 0x9b1ca411
+0, 838800, 152064, 0x771f0768
+0, 842400, 152064, 0x69e1258e
+0, 846000, 152064, 0xe8b352e2
+0, 849600, 152064, 0x3ee638d8
+0, 853200, 152064, 0x0bc48414
+0, 856800, 152064, 0xc1df5925
+0, 860400, 152064, 0xb30f705e
+0, 864000, 152064, 0x90654127
+0, 867600, 152064, 0x000e5f43
+0, 871200, 152064, 0x1f5e5e15
+0, 874800, 152064, 0x4aa48433
+0, 878400, 152064, 0xb74a56a3
+0, 882000, 152064, 0x94347a06
+0, 885600, 152064, 0xd14e58d4
+0, 889200, 152064, 0x60116d97
+0, 892800, 152064, 0xf2962979
+0, 896400, 152064, 0x7f176514
diff --git a/tests/ref/fate/h264-conformance-ls_sva_d b/tests/ref/fate/h264-conformance-ls_sva_d
new file mode 100644
index 0000000000..d4586418a0
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-ls_sva_d
@@ -0,0 +1,1700 @@
+0, 0, 38016, 0x85d20fc6
+0, 3600, 38016, 0xc0432c21
+0, 7200, 38016, 0x1450168f
+0, 10800, 38016, 0xeddb1833
+0, 14400, 38016, 0x631216d4
+0, 18000, 38016, 0xfcd1138b
+0, 21600, 38016, 0x181f17d5
+0, 25200, 38016, 0x3dc91855
+0, 28800, 38016, 0x92b71924
+0, 32400, 38016, 0xfcb6228d
+0, 36000, 38016, 0x11d04b4a
+0, 39600, 38016, 0x743a6a06
+0, 43200, 38016, 0xac511cc3
+0, 46800, 38016, 0x66bc1e2d
+0, 50400, 38016, 0x6c761ef3
+0, 54000, 38016, 0xa08a1ef5
+0, 57600, 38016, 0x777270da
+0, 61200, 38016, 0x9a738d9f
+0, 64800, 38016, 0x31a8afa2
+0, 68400, 38016, 0x1148cc11
+0, 72000, 38016, 0xf5fa1f26
+0, 75600, 38016, 0xc0481fbc
+0, 79200, 38016, 0x461b2228
+0, 82800, 38016, 0x27bb209d
+0, 86400, 38016, 0xbe921f04
+0, 90000, 38016, 0xabdbd493
+0, 93600, 38016, 0x4f6ad36e
+0, 97200, 38016, 0xe2f8d0ca
+0, 100800, 38016, 0xd82aaea2
+0, 104400, 38016, 0xb208854b
+0, 108000, 38016, 0xfe632920
+0, 111600, 38016, 0x1a8128ce
+0, 115200, 38016, 0xd9ea2be9
+0, 118800, 38016, 0x258b2ab0
+0, 122400, 38016, 0xb5812bef
+0, 126000, 38016, 0x00c92cdf
+0, 129600, 38016, 0x4a6b9f6f
+0, 133200, 38016, 0xb589b0a1
+0, 136800, 38016, 0xf2d0bbca
+0, 140400, 38016, 0xe614cce3
+0, 144000, 38016, 0x6d81d01c
+0, 147600, 38016, 0x7f32d175
+0, 151200, 38016, 0x6abc2f40
+0, 154800, 38016, 0x767d2f6a
+0, 158400, 38016, 0xd64b30cf
+0, 162000, 38016, 0xf83d3000
+0, 165600, 38016, 0x5f3230d5
+0, 169200, 38016, 0x80b330a0
+0, 172800, 38016, 0x42c4326e
+0, 176400, 38016, 0x7cb8d069
+0, 180000, 38016, 0xb7bb9d2f
+0, 183600, 38016, 0xf4f47c47
+0, 187200, 38016, 0xe3455aa0
+0, 190800, 38016, 0x3b074630
+0, 194400, 38016, 0x1fd44e63
+0, 198000, 38016, 0x5ecb6a07
+0, 201600, 38016, 0xe3a130c9
+0, 205200, 38016, 0x307f311a
+0, 208800, 38016, 0x4e2d3202
+0, 212400, 38016, 0x06ac31c1
+0, 216000, 38016, 0x767931ab
+0, 219600, 38016, 0xcb6433aa
+0, 223200, 38016, 0xc88e3597
+0, 226800, 38016, 0xfe06371f
+0, 230400, 38016, 0x9e3c8a14
+0, 234000, 38016, 0xba819e5b
+0, 237600, 38016, 0x0017a693
+0, 241200, 38016, 0x25aca2dd
+0, 244800, 38016, 0x3bf5980d
+0, 248400, 38016, 0x2a0ba2ae
+0, 252000, 38016, 0x99e19853
+0, 255600, 38016, 0x5e7a9699
+0, 259200, 38016, 0x11983c1a
+0, 262800, 38016, 0x5ab53cbf
+0, 266400, 38016, 0x49803f12
+0, 270000, 38016, 0xf1633fdc
+0, 273600, 38016, 0x91de3ff3
+0, 277200, 38016, 0x418942a1
+0, 280800, 38016, 0x670c4277
+0, 284400, 38016, 0xc04e403e
+0, 288000, 38016, 0xa33e40ad
+0, 291600, 38016, 0x7f959a9c
+0, 295200, 38016, 0x096696ae
+0, 298800, 38016, 0xdb41933c
+0, 302400, 38016, 0xb26086b4
+0, 306000, 38016, 0x80c97e07
+0, 309600, 38016, 0xa7416837
+0, 313200, 38016, 0xa82f6342
+0, 316800, 38016, 0x8da16527
+0, 320400, 38016, 0x1c1965a9
+0, 324000, 38016, 0x09ad470c
+0, 327600, 38016, 0x3f694725
+0, 331200, 38016, 0xa7034699
+0, 334800, 38016, 0x38104981
+0, 338400, 38016, 0x216048b7
+0, 342000, 38016, 0x24e04c22
+0, 345600, 38016, 0xbb7e4871
+0, 349200, 38016, 0x8c074b97
+0, 352800, 38016, 0x92aa4b79
+0, 356400, 38016, 0x073c4d97
+0, 360000, 38016, 0xe225f953
+0, 363600, 38016, 0xcaccf96b
+0, 367200, 38016, 0xc395cd82
+0, 370800, 38016, 0x8c61ad55
+0, 374400, 38016, 0x6fb988f2
+0, 378000, 38016, 0x99fe7aea
+0, 381600, 38016, 0xab3c73bf
+0, 385200, 38016, 0xcdb06bc4
+0, 388800, 38016, 0x65a1540a
+0, 392400, 38016, 0xc22f4fb0
+0, 396000, 38016, 0xe5ca4830
+0, 399600, 38016, 0x06b346f9
+0, 403200, 38016, 0x02154629
+0, 406800, 38016, 0x3d5e4467
+0, 410400, 38016, 0x6aa4460c
+0, 414000, 38016, 0x05bc47c4
+0, 417600, 38016, 0xc46e4666
+0, 421200, 38016, 0xc28145f5
+0, 424800, 38016, 0xf57f4811
+0, 428400, 38016, 0x1bbc49f8
+0, 432000, 38016, 0x34e14c2c
+0, 435600, 38016, 0x7e7d7740
+0, 439200, 38016, 0x97d798f3
+0, 442800, 38016, 0x7d71ca3b
+0, 446400, 38016, 0xc6bc0776
+0, 450000, 38016, 0xda052645
+0, 453600, 38016, 0xf0b32de9
+0, 457200, 38016, 0x996f23cf
+0, 460800, 38016, 0x22ea1a43
+0, 464400, 38016, 0xbde61021
+0, 468000, 38016, 0x8180079d
+0, 471600, 38016, 0x3ac6f314
+0, 475200, 38016, 0x93604f67
+0, 478800, 38016, 0xb9a55213
+0, 482400, 38016, 0x89c8523c
+0, 486000, 38016, 0x670a511b
+0, 489600, 38016, 0x62395128
+0, 493200, 38016, 0x01605431
+0, 496800, 38016, 0x677253cd
+0, 500400, 38016, 0xc57f56b1
+0, 504000, 38016, 0x767f5679
+0, 507600, 38016, 0x4abc5717
+0, 511200, 38016, 0x838657dc
+0, 514800, 38016, 0x63bf56ad
+0, 518400, 38016, 0x7019c8ad
+0, 522000, 38016, 0xebbaa7bf
+0, 525600, 38016, 0xebbc8ddb
+0, 529200, 38016, 0xea609f00
+0, 532800, 38016, 0x88e6b1e4
+0, 536400, 38016, 0x7f9edd6b
+0, 540000, 38016, 0xeaf354a6
+0, 543600, 38016, 0xf30274c9
+0, 547200, 38016, 0x05a756da
+0, 550800, 38016, 0xacea1ca6
+0, 554400, 38016, 0x1520d86d
+0, 558000, 38016, 0xb0f7afa4
+0, 561600, 38016, 0xe33c5802
+0, 565200, 38016, 0xce2a58cd
+0, 568800, 38016, 0xd3ad5a30
+0, 572400, 38016, 0x29aa5955
+0, 576000, 38016, 0x59015aef
+0, 579600, 38016, 0x247c5a72
+0, 583200, 38016, 0x79a85b27
+0, 586800, 38016, 0x6cf858fe
+0, 590400, 38016, 0x78ec5b20
+0, 594000, 38016, 0x7cb158c5
+0, 597600, 38016, 0xc52c581f
+0, 601200, 38016, 0x125c58bd
+0, 604800, 38016, 0xf8b257c9
+0, 608400, 38016, 0x20329756
+0, 612000, 38016, 0x60a07c12
+0, 615600, 38016, 0xa2c26ad1
+0, 619200, 38016, 0xcbbc681b
+0, 622800, 38016, 0x2c0562ad
+0, 626400, 38016, 0x8a72640d
+0, 630000, 38016, 0xe6e7756a
+0, 633600, 38016, 0x64608a48
+0, 637200, 38016, 0xe9bea9fa
+0, 640800, 38016, 0x24bac776
+0, 644400, 38016, 0x6aa9d01b
+0, 648000, 38016, 0xf41ebb02
+0, 651600, 38016, 0x28017154
+0, 655200, 38016, 0x3fc55eb4
+0, 658800, 38016, 0xe7bc5f22
+0, 662400, 38016, 0xe6706162
+0, 666000, 38016, 0xee385fe2
+0, 669600, 38016, 0x79c0600b
+0, 673200, 38016, 0x735a603f
+0, 676800, 38016, 0xe7916199
+0, 680400, 38016, 0x542d601d
+0, 684000, 38016, 0xbfaa611a
+0, 687600, 38016, 0xb7504e05
+0, 691200, 38016, 0xd1964339
+0, 694800, 38016, 0x4213278a
+0, 698400, 38016, 0xb503229f
+0, 702000, 38016, 0x166a091c
+0, 705600, 38016, 0x37176bbc
+0, 709200, 38016, 0x95977cc3
+0, 712800, 38016, 0x5bab93f4
+0, 716400, 38016, 0x71d5d142
+0, 720000, 38016, 0x97d1cfa6
+0, 723600, 38016, 0xac82ff20
+0, 727200, 38016, 0x489a1fa1
+0, 730800, 38016, 0x32944930
+0, 734400, 38016, 0x72a2647c
+0, 738000, 38016, 0x95b685d6
+0, 741600, 38016, 0xb7e19840
+0, 745200, 38016, 0x85569129
+0, 748800, 38016, 0x6bc6a197
+0, 752400, 38016, 0x55ccace8
+0, 756000, 38016, 0x9bbdc9c2
+0, 759600, 38016, 0xbce4ade3
+0, 763200, 38016, 0x39c7c48a
+0, 766800, 38016, 0x498ac4aa
+0, 770400, 38016, 0xeda3b715
+0, 774000, 38016, 0x700db089
+0, 777600, 38016, 0xf6b6bf36
+0, 781200, 38016, 0x6abebf1c
+0, 784800, 38016, 0x8855c17c
+0, 788400, 38016, 0xfba09dd5
+0, 792000, 38016, 0xd5868240
+0, 795600, 38016, 0x438074a2
+0, 799200, 38016, 0xc8b2c501
+0, 802800, 38016, 0xd48ec1ef
+0, 806400, 38016, 0xa715c4be
+0, 810000, 38016, 0xd758c281
+0, 813600, 38016, 0x07c25900
+0, 817200, 38016, 0xee7950e6
+0, 820800, 38016, 0x3e154be9
+0, 824400, 38016, 0xa8f33bb7
+0, 828000, 38016, 0xf493bc3c
+0, 831600, 38016, 0x9d69bccb
+0, 835200, 38016, 0xbf9fbafa
+0, 838800, 38016, 0x2e62b9a8
+0, 842400, 38016, 0x2f41bae1
+0, 846000, 38016, 0xd820355d
+0, 849600, 38016, 0xf3623118
+0, 853200, 38016, 0x659b4459
+0, 856800, 38016, 0xdcd74654
+0, 860400, 38016, 0x73f33f73
+0, 864000, 38016, 0xbf96b5ec
+0, 867600, 38016, 0xe9ebb550
+0, 871200, 38016, 0xfe12b5dd
+0, 874800, 38016, 0x9908b6d5
+0, 878400, 38016, 0xe805b8cf
+0, 882000, 38016, 0x1a8eb68a
+0, 885600, 38016, 0x6aed288d
+0, 889200, 38016, 0x162f167f
+0, 892800, 38016, 0x49110ae5
+0, 896400, 38016, 0xab060059
+0, 900000, 38016, 0x0fb8a0a8
+0, 903600, 38016, 0xf3b0b384
+0, 907200, 38016, 0x6f32bb1b
+0, 910800, 38016, 0x7278bb3a
+0, 914400, 38016, 0xdeb1bdcf
+0, 918000, 38016, 0x90efbc5c
+0, 921600, 38016, 0xd2f6bb28
+0, 925200, 38016, 0xba4dba32
+0, 928800, 38016, 0x0751ba19
+0, 932400, 38016, 0xc3f7b9db
+0, 936000, 38016, 0xca22c433
+0, 939600, 38016, 0x82a7e336
+0, 943200, 38016, 0x45e90a19
+0, 946800, 38016, 0x82cd2c11
+0, 950400, 38016, 0x4e2e56cc
+0, 954000, 38016, 0x0ad281c6
+0, 957600, 38016, 0x8685b8b7
+0, 961200, 38016, 0xe502b7b3
+0, 964800, 38016, 0x4898b696
+0, 968400, 38016, 0xe0fcb729
+0, 972000, 38016, 0xe5e0b822
+0, 975600, 38016, 0x9030b82c
+0, 979200, 38016, 0x7dc6b93c
+0, 982800, 38016, 0x727cb981
+0, 986400, 38016, 0xb08999c9
+0, 990000, 38016, 0x3e54b6d7
+0, 993600, 38016, 0x5d15c1e2
+0, 997200, 38016, 0x5840d8d7
+0, 1000800, 38016, 0x1109d730
+0, 1004400, 38016, 0xb898c47e
+0, 1008000, 38016, 0xbde196c6
+0, 1011600, 38016, 0x75999430
+0, 1015200, 38016, 0xa17db11e
+0, 1018800, 38016, 0xb428b220
+0, 1022400, 38016, 0x1537b1ed
+0, 1026000, 38016, 0x102ab213
+0, 1029600, 38016, 0xee38af9e
+0, 1033200, 38016, 0xc9c5b34e
+0, 1036800, 38016, 0x8618af6d
+0, 1040400, 38016, 0x97f3af7a
+0, 1044000, 38016, 0x222eb095
+0, 1047600, 38016, 0xb1508324
+0, 1051200, 38016, 0x2149ad09
+0, 1054800, 38016, 0x67261443
+0, 1058400, 38016, 0x90918df5
+0, 1062000, 38016, 0x5d43e726
+0, 1065600, 38016, 0x1d77dfa3
+0, 1069200, 38016, 0xa60b941c
+0, 1072800, 38016, 0x48813a99
+0, 1076400, 38016, 0x2324b77a
+0, 1080000, 38016, 0xdfd99d0d
+0, 1083600, 38016, 0x44129be1
+0, 1087200, 38016, 0x1137a099
+0, 1090800, 38016, 0xbd24a0a1
+0, 1094400, 38016, 0x3883a310
+0, 1098000, 38016, 0x0680a358
+0, 1101600, 38016, 0xf333a501
+0, 1105200, 38016, 0x3945a6ac
+0, 1108800, 38016, 0x79eea741
+0, 1112400, 38016, 0x8c7aa6b0
+0, 1116000, 38016, 0x0342642f
+0, 1119600, 38016, 0x83632b63
+0, 1123200, 38016, 0x1503ff51
+0, 1126800, 38016, 0xa4bcea0f
+0, 1130400, 38016, 0x37dcd11b
+0, 1134000, 38016, 0x9aa7287a
+0, 1137600, 38016, 0x34deae76
+0, 1141200, 38016, 0x51710057
+0, 1144800, 38016, 0x9ee6fc0a
+0, 1148400, 38016, 0xa419ea79
+0, 1152000, 38016, 0x49388f7e
+0, 1155600, 38016, 0x08498b2d
+0, 1159200, 38016, 0x104f8c4d
+0, 1162800, 38016, 0xdb998d74
+0, 1166400, 38016, 0xd54e8c95
+0, 1170000, 38016, 0x54a48e5e
+0, 1173600, 38016, 0xbe6f8cd0
+0, 1177200, 38016, 0x2a7f8ec2
+0, 1180800, 38016, 0x23848f19
+0, 1184400, 38016, 0x9b168ee3
+0, 1188000, 38016, 0xc2628fb6
+0, 1191600, 38016, 0xe2bdfd4e
+0, 1195200, 38016, 0xfdae1546
+0, 1198800, 38016, 0xb1fe20db
+0, 1202400, 38016, 0x5ebf23f0
+0, 1206000, 38016, 0xecbc1fcb
+0, 1209600, 38016, 0xe72e141c
+0, 1213200, 38016, 0xbad7f54d
+0, 1216800, 38016, 0x95ead3c6
+0, 1220400, 38016, 0xf5c6b948
+0, 1224000, 38016, 0x2f8b80ab
+0, 1227600, 38016, 0x0aed47a7
+0, 1231200, 38016, 0xdcb278e3
+0, 1234800, 38016, 0x2a677958
+0, 1238400, 38016, 0x45427ae8
+0, 1242000, 38016, 0xebce78de
+0, 1245600, 38016, 0xaf007bb1
+0, 1249200, 38016, 0xb4677cdb
+0, 1252800, 38016, 0xbf6d8024
+0, 1256400, 38016, 0xb67180de
+0, 1260000, 38016, 0xb1581358
+0, 1263600, 38016, 0x258f140d
+0, 1267200, 38016, 0x753d17e6
+0, 1270800, 38016, 0xf33816b4
+0, 1274400, 38016, 0x0d011c76
+0, 1278000, 38016, 0x48cfd85d
+0, 1281600, 38016, 0x13ce822d
+0, 1285200, 38016, 0x221a4468
+0, 1288800, 38016, 0x11364be7
+0, 1292400, 38016, 0xafc047b0
+0, 1296000, 38016, 0xeafd4217
+0, 1299600, 38016, 0x930b8a41
+0, 1303200, 38016, 0x2dda0bd2
+0, 1306800, 38016, 0x461cc3f2
+0, 1310400, 38016, 0xa99e962a
+0, 1314000, 38016, 0xc1d954ba
+0, 1317600, 38016, 0x0ce91a87
+0, 1321200, 38016, 0x10701e2d
+0, 1324800, 38016, 0x98c22205
+0, 1328400, 38016, 0xb76622f1
+0, 1332000, 38016, 0x6d1a22d4
+0, 1335600, 38016, 0x00ee23c5
+0, 1339200, 38016, 0xc38125e6
+0, 1342800, 38016, 0x8de52597
+0, 1346400, 38016, 0xec282293
+0, 1350000, 38016, 0xb50f2238
+0, 1353600, 38016, 0xbdcf1f9f
+0, 1357200, 38016, 0x5c6c1780
+0, 1360800, 38016, 0x41941237
+0, 1364400, 38016, 0x95ee1e69
+0, 1368000, 38016, 0x84b65009
+0, 1371600, 38016, 0x27bbf0ab
+0, 1375200, 38016, 0xdd86f4fb
+0, 1378800, 38016, 0x97733086
+0, 1382400, 38016, 0x3241472f
+0, 1386000, 38016, 0x5d050c50
+0, 1389600, 38016, 0x8378aa9b
+0, 1393200, 38016, 0x94f174cd
+0, 1396800, 38016, 0x5825df16
+0, 1400400, 38016, 0x5f362875
+0, 1404000, 38016, 0x30704cd6
+0, 1407600, 38016, 0xc74e3614
+0, 1411200, 38016, 0xe033eb04
+0, 1414800, 38016, 0x665be967
+0, 1418400, 38016, 0x95d5ed67
+0, 1422000, 38016, 0x37dfefc1
+0, 1425600, 38016, 0x1908ee8e
+0, 1429200, 38016, 0xf0cfee38
+0, 1432800, 38016, 0x871df078
+0, 1436400, 38016, 0xb2f2f0f9
+0, 1440000, 38016, 0xf955621f
+0, 1443600, 38016, 0xbd2365a5
+0, 1447200, 38016, 0xe70d6bb0
+0, 1450800, 38016, 0x857e6d00
+0, 1454400, 38016, 0x000d6ee5
+0, 1458000, 38016, 0x9a2f7244
+0, 1461600, 38016, 0xe8c2f83c
+0, 1465200, 38016, 0x23eb0377
+0, 1468800, 38016, 0xe0802a7f
+0, 1472400, 38016, 0x5dbc4d69
+0, 1476000, 38016, 0xa3031f36
+0, 1479600, 38016, 0x27fbb378
+0, 1483200, 38016, 0xeee9a313
+0, 1486800, 38016, 0x189b1e68
+0, 1490400, 38016, 0x9a90678a
+0, 1494000, 38016, 0x1a65ed20
+0, 1497600, 38016, 0x2f51beb7
+0, 1501200, 38016, 0x671ada9d
+0, 1504800, 38016, 0x30af355a
+0, 1508400, 38016, 0x1804d4f9
+0, 1512000, 38016, 0xee227951
+0, 1515600, 38016, 0x20dc3900
+0, 1519200, 38016, 0x334f82dc
+0, 1522800, 38016, 0xb1728506
+0, 1526400, 38016, 0x2236fc10
+0, 1530000, 38016, 0x80d2964d
+0, 1533600, 38016, 0x5e368712
+0, 1537200, 38016, 0x10408765
+0, 1540800, 38016, 0x4b3084c5
+0, 1544400, 38016, 0x975c473f
+0, 1548000, 38016, 0x6f16efa3
+0, 1551600, 38016, 0xe73aac5e
+0, 1555200, 38016, 0x996b6e24
+0, 1558800, 38016, 0x424f6f55
+0, 1562400, 38016, 0x33786d10
+0, 1566000, 38016, 0x8a0f6870
+0, 1569600, 38016, 0x5e8556d4
+0, 1573200, 38016, 0x863b2366
+0, 1576800, 38016, 0x3fa74842
+0, 1580400, 38016, 0x70208948
+0, 1584000, 38016, 0xcf005140
+0, 1587600, 38016, 0xa7585013
+0, 1591200, 38016, 0x61145096
+0, 1594800, 38016, 0x92b952a5
+0, 1598400, 38016, 0x35575235
+0, 1602000, 38016, 0x3e47ec63
+0, 1605600, 38016, 0xfce57b69
+0, 1609200, 38016, 0xf03815e6
+0, 1612800, 38016, 0xb5b6af64
+0, 1616400, 38016, 0x5e3f1b08
+0, 1620000, 38016, 0xd3f9ee61
+0, 1623600, 38016, 0xb8e2ee66
+0, 1627200, 38016, 0x86f8f4b5
+0, 1630800, 38016, 0x23c8f499
+0, 1634400, 38016, 0x634df498
+0, 1638000, 38016, 0xd2b3f570
+0, 1641600, 38016, 0x053e67d3
+0, 1645200, 38016, 0x8d2cbeb3
+0, 1648800, 38016, 0xba0b1e1c
+0, 1652400, 38016, 0x0f5c7d73
+0, 1656000, 38016, 0x46b2118a
+0, 1659600, 38016, 0x818ebae5
+0, 1663200, 38016, 0x4a7af8a9
+0, 1666800, 38016, 0x0c22f937
+0, 1670400, 38016, 0x967ef9b3
+0, 1674000, 38016, 0x530afd34
+0, 1677600, 38016, 0x2a00fdb6
+0, 1681200, 38016, 0xca14f913
+0, 1684800, 38016, 0x82b6f7bc
+0, 1688400, 38016, 0xd32879ec
+0, 1692000, 38016, 0x242b6920
+0, 1695600, 38016, 0x44fd66e4
+0, 1699200, 38016, 0x69d3479c
+0, 1702800, 38016, 0x41a63899
+0, 1706400, 38016, 0xfb370720
+0, 1710000, 38016, 0x5cf0f42d
+0, 1713600, 38016, 0x74e8ca33
+0, 1717200, 38016, 0x1f09cb30
+0, 1720800, 38016, 0xc5e8c1d8
+0, 1724400, 38016, 0x3a82bd74
+0, 1728000, 38016, 0xada0bd71
+0, 1731600, 38016, 0xe695bcc9
+0, 1735200, 38016, 0xc255bb45
+0, 1738800, 38016, 0x6deebbcd
+0, 1742400, 38016, 0x6bf5cef2
+0, 1746000, 38016, 0x8eaed078
+0, 1749600, 38016, 0x3a8addb0
+0, 1753200, 38016, 0x0f2bfe11
+0, 1756800, 38016, 0xe13d2e3b
+0, 1760400, 38016, 0x9bb7606f
+0, 1764000, 38016, 0x9fcc8899
+0, 1767600, 38016, 0xfa22a313
+0, 1771200, 38016, 0xc599b318
+0, 1774800, 38016, 0x33ecb361
+0, 1778400, 38016, 0x2ba8b2df
+0, 1782000, 38016, 0x0debb343
+0, 1785600, 38016, 0x8bbcb7cd
+0, 1789200, 38016, 0x093fbb20
+0, 1792800, 38016, 0x4340c0d2
+0, 1796400, 38016, 0xd765bcb8
+0, 1800000, 38016, 0xe9ea3103
+0, 1803600, 38016, 0x24d7a1ae
+0, 1807200, 38016, 0x9b9ac80f
+0, 1810800, 38016, 0x81b7da0c
+0, 1814400, 38016, 0xb7c5f017
+0, 1818000, 38016, 0xa0e9f9c1
+0, 1821600, 38016, 0x932111a9
+0, 1825200, 38016, 0x15fc17ba
+0, 1828800, 38016, 0x3c7710bd
+0, 1832400, 38016, 0xae1b0ba8
+0, 1836000, 38016, 0x7dc24093
+0, 1839600, 38016, 0x8b9042ad
+0, 1843200, 38016, 0x257f4c1c
+0, 1846800, 38016, 0xaa0442d8
+0, 1850400, 38016, 0xbedd462c
+0, 1854000, 38016, 0xa9bd4905
+0, 1857600, 38016, 0x69d74f50
+0, 1861200, 38016, 0x18143c0d
+0, 1864800, 38016, 0xd2eb5820
+0, 1868400, 38016, 0x94fb5e93
+0, 1872000, 38016, 0x3072f80d
+0, 1875600, 38016, 0xd838f186
+0, 1879200, 38016, 0x3e41e695
+0, 1882800, 38016, 0x66eef2cd
+0, 1886400, 38016, 0x3854ec56
+0, 1890000, 38016, 0x05d3f9c2
+0, 1893600, 38016, 0x53820cc3
+0, 1897200, 38016, 0x09d413ea
+0, 1900800, 38016, 0x82f217f2
+0, 1904400, 38016, 0x07b21d50
+0, 1908000, 38016, 0xd72155c2
+0, 1911600, 38016, 0x20b04c74
+0, 1915200, 38016, 0x5b8962f6
+0, 1918800, 38016, 0xfb8b72c9
+0, 1922400, 38016, 0x6d0f56a7
+0, 1926000, 38016, 0x97876300
+0, 1929600, 38016, 0xfd7f655f
+0, 1933200, 38016, 0x3e405ff6
+0, 1936800, 38016, 0x5ad27a20
+0, 1940400, 38016, 0x46125305
+0, 1944000, 38016, 0x91017b86
+0, 1947600, 38016, 0x5c150c66
+0, 1951200, 38016, 0xc3430969
+0, 1954800, 38016, 0x5f400689
+0, 1958400, 38016, 0x21ddf969
+0, 1962000, 38016, 0x5feff594
+0, 1965600, 38016, 0xb304f3c1
+0, 1969200, 38016, 0xa9c3f70e
+0, 1972800, 38016, 0x6014fa8e
+0, 1976400, 38016, 0x7198f22e
+0, 1980000, 38016, 0xe338e495
+0, 1983600, 38016, 0x9a69ea32
+0, 1987200, 38016, 0xc0cc5d05
+0, 1990800, 38016, 0xefa16044
+0, 1994400, 38016, 0x3e3c6120
+0, 1998000, 38016, 0x06ef63e1
+0, 2001600, 38016, 0x25d5631f
+0, 2005200, 38016, 0xbc8963ee
+0, 2008800, 38016, 0xc2336218
+0, 2012400, 38016, 0xb23965fd
+0, 2016000, 38016, 0x84c9651f
+0, 2019600, 38016, 0x41f6647a
+0, 2023200, 38016, 0xddbe6572
+0, 2026800, 38016, 0x113f65f2
+0, 2030400, 38016, 0x89beec24
+0, 2034000, 38016, 0x6490f37b
+0, 2037600, 38016, 0x15ecf84d
+0, 2041200, 38016, 0xa439f491
+0, 2044800, 38016, 0xda8bf5c4
+0, 2048400, 38016, 0x6bc2f96a
+0, 2052000, 38016, 0x243d0bac
+0, 2055600, 38016, 0xb7c611a2
+0, 2059200, 38016, 0x99243328
+0, 2062800, 38016, 0xa9534571
+0, 2066400, 38016, 0xa5a657bd
+0, 2070000, 38016, 0xd8d06892
+0, 2073600, 38016, 0xb4eb6c8d
+0, 2077200, 38016, 0xa3d36ca8
+0, 2080800, 38016, 0x153a6e9e
+0, 2084400, 38016, 0xf2607081
+0, 2088000, 38016, 0x799d7081
+0, 2091600, 38016, 0x377570cd
+0, 2095200, 38016, 0x90496e54
+0, 2098800, 38016, 0x1d4c746c
+0, 2102400, 38016, 0xbe5e72bb
+0, 2106000, 38016, 0x3c6a760d
+0, 2109600, 38016, 0xd4097614
+0, 2113200, 38016, 0xf45a7a28
+0, 2116800, 38016, 0x8fe37bb8
+0, 2120400, 38016, 0x966295dc
+0, 2124000, 38016, 0xb40da3df
+0, 2127600, 38016, 0x9714b2ac
+0, 2131200, 38016, 0xbdb3c61d
+0, 2134800, 38016, 0x12fcd320
+0, 2138400, 38016, 0x1ee8d858
+0, 2142000, 38016, 0x49e5e217
+0, 2145600, 38016, 0x92aef38e
+0, 2149200, 38016, 0xc26c0476
+0, 2152800, 38016, 0x8eed0e04
+0, 2156400, 38016, 0xe4e3118d
+0, 2160000, 38016, 0x282ce796
+0, 2163600, 38016, 0xbec801e1
+0, 2167200, 38016, 0x864afaf2
+0, 2170800, 38016, 0xe0860383
+0, 2174400, 38016, 0x4261001d
+0, 2178000, 38016, 0x976c0005
+0, 2181600, 38016, 0x69c40af3
+0, 2185200, 38016, 0xb3c00e18
+0, 2188800, 38016, 0x28300c2c
+0, 2192400, 38016, 0xf2d9ff9d
+0, 2196000, 38016, 0xcaeaf979
+0, 2199600, 38016, 0x6733f58e
+0, 2203200, 38016, 0x2bb80869
+0, 2206800, 38016, 0x3c370085
+0, 2210400, 38016, 0x11a2fa2a
+0, 2214000, 38016, 0x828ff770
+0, 2217600, 38016, 0x79bcf490
+0, 2221200, 38016, 0x31d5ee87
+0, 2224800, 38016, 0x6336f00d
+0, 2228400, 38016, 0x058af9d1
+0, 2232000, 38016, 0xff29eb2f
+0, 2235600, 38016, 0x3c3be1f4
+0, 2239200, 38016, 0xfbf5ddc2
+0, 2242800, 38016, 0x22a4d324
+0, 2246400, 38016, 0xb2d4d1d4
+0, 2250000, 38016, 0xa159171f
+0, 2253600, 38016, 0x61a80251
+0, 2257200, 38016, 0xe0429283
+0, 2260800, 38016, 0x5c255bd4
+0, 2264400, 38016, 0xdb0f57ac
+0, 2268000, 38016, 0x3c8bcbf0
+0, 2271600, 38016, 0x2be3d2ef
+0, 2275200, 38016, 0xcd2dc8cc
+0, 2278800, 38016, 0x6905c4cf
+0, 2282400, 38016, 0xd9c9c590
+0, 2286000, 38016, 0xa945cb51
+0, 2289600, 38016, 0x5c8458d3
+0, 2293200, 38016, 0xa1624b6e
+0, 2296800, 38016, 0xb167532e
+0, 2300400, 38016, 0x149d6413
+0, 2304000, 38016, 0x85d97340
+0, 2307600, 38016, 0x8f478203
+0, 2311200, 38016, 0x1902cc8e
+0, 2314800, 38016, 0x1521c5e5
+0, 2318400, 38016, 0xf2d6c7d8
+0, 2322000, 38016, 0x7150c510
+0, 2325600, 38016, 0xfc0ec330
+0, 2329200, 38016, 0x91c4c933
+0, 2332800, 38016, 0x5ec6cbc8
+0, 2336400, 38016, 0x23c0955c
+0, 2340000, 38016, 0x76fb7c27
+0, 2343600, 38016, 0x33c07597
+0, 2347200, 38016, 0x797b6acd
+0, 2350800, 38016, 0xc4945313
+0, 2354400, 38016, 0xa50f25da
+0, 2358000, 38016, 0x7bb6096c
+0, 2361600, 38016, 0x8a1acc48
+0, 2365200, 38016, 0x19a1c9b4
+0, 2368800, 38016, 0x4436cd03
+0, 2372400, 38016, 0xfd73d6fe
+0, 2376000, 38016, 0x25d3d4f0
+0, 2379600, 38016, 0x3acfcd98
+0, 2383200, 38016, 0x2ed3d071
+0, 2386800, 38016, 0x246fd4bd
+0, 2390400, 38016, 0x3e410c62
+0, 2394000, 38016, 0x29da1177
+0, 2397600, 38016, 0x039f1e46
+0, 2401200, 38016, 0x178d1e1a
+0, 2404800, 38016, 0x75561d47
+0, 2408400, 38016, 0x7d65193c
+0, 2412000, 38016, 0xd38d19a8
+0, 2415600, 38016, 0x39c92b20
+0, 2419200, 38016, 0x6c8aebc3
+0, 2422800, 38016, 0xd8d4f9be
+0, 2426400, 38016, 0x7e730a4a
+0, 2430000, 38016, 0xbfae1fee
+0, 2433600, 38016, 0x398f3484
+0, 2437200, 38016, 0xd8e84019
+0, 2440800, 38016, 0x2cf64db3
+0, 2444400, 38016, 0x7e074f09
+0, 2448000, 38016, 0xac384b5a
+0, 2451600, 38016, 0xd28b3a83
+0, 2455200, 38016, 0xa5ce5610
+0, 2458800, 38016, 0xde8565f7
+0, 2462400, 38016, 0x01397a1a
+0, 2466000, 38016, 0xdbdf7fb7
+0, 2469600, 38016, 0x8c1f8ba6
+0, 2473200, 38016, 0xab2a943c
+0, 2476800, 38016, 0x4f8b8421
+0, 2480400, 38016, 0x36f57b3a
+0, 2484000, 38016, 0x565c4dd9
+0, 2487600, 38016, 0x53c34715
+0, 2491200, 38016, 0x38fd4aaa
+0, 2494800, 38016, 0x4dca43eb
+0, 2498400, 38016, 0x1afe40f3
+0, 2502000, 38016, 0xc3dc43cc
+0, 2505600, 38016, 0x1d92431d
+0, 2509200, 38016, 0x3f794765
+0, 2512800, 38016, 0x1c5d4a71
+0, 2516400, 38016, 0xb601531e
+0, 2520000, 38016, 0x4d925d7c
+0, 2523600, 38016, 0x1c605f1e
+0, 2527200, 38016, 0x50ff5608
+0, 2530800, 38016, 0x8da14815
+0, 2534400, 38016, 0x53cc3007
+0, 2538000, 38016, 0x5ce82198
+0, 2541600, 38016, 0x074e15bc
+0, 2545200, 38016, 0x59fb13c9
+0, 2548800, 38016, 0xe28e13a6
+0, 2552400, 38016, 0xcb4f3fa8
+0, 2556000, 38016, 0x7fad560c
+0, 2559600, 38016, 0x7dbc614a
+0, 2563200, 38016, 0xe96f6d9c
+0, 2566800, 38016, 0xf3c47a74
+0, 2570400, 38016, 0xd2af8027
+0, 2574000, 38016, 0x504779d1
+0, 2577600, 38016, 0x876e7f5f
+0, 2581200, 38016, 0x959f8c3d
+0, 2584800, 38016, 0x64d690be
+0, 2588400, 38016, 0xdb899760
+0, 2592000, 38016, 0xbd229ba1
+0, 2595600, 38016, 0xdace575b
+0, 2599200, 38016, 0xfda46324
+0, 2602800, 38016, 0x57b75dbd
+0, 2606400, 38016, 0x264a59cf
+0, 2610000, 38016, 0xfde95cc8
+0, 2613600, 38016, 0x5116601b
+0, 2617200, 38016, 0x72e67205
+0, 2620800, 38016, 0xf1057674
+0, 2624400, 38016, 0x7e917eb9
+0, 2628000, 38016, 0x50ed8b28
+0, 2631600, 38016, 0x357a826c
+0, 2635200, 38016, 0xd68fa449
+0, 2638800, 38016, 0x3a839e39
+0, 2642400, 38016, 0x79469a1b
+0, 2646000, 38016, 0xa9ca9590
+0, 2649600, 38016, 0xbf399686
+0, 2653200, 38016, 0x40499eaf
+0, 2656800, 38016, 0x9972a76d
+0, 2660400, 38016, 0xa3d0aff4
+0, 2664000, 38016, 0xdf27b647
+0, 2667600, 38016, 0x4147c66e
+0, 2671200, 38016, 0x1378d1db
+0, 2674800, 38016, 0x1ca3d444
+0, 2678400, 38016, 0x464d9538
+0, 2682000, 38016, 0xaed28de9
+0, 2685600, 38016, 0xc77a9f86
+0, 2689200, 38016, 0x0882aa10
+0, 2692800, 38016, 0x206ac330
+0, 2696400, 38016, 0x63efd763
+0, 2700000, 38016, 0xbfe2e663
+0, 2703600, 38016, 0xfe6ff1ad
+0, 2707200, 38016, 0x60f9f47e
+0, 2710800, 38016, 0xba1cf0c0
+0, 2714400, 38016, 0x1880eb3d
+0, 2718000, 38016, 0xf0fdd350
+0, 2721600, 38016, 0xb678eedb
+0, 2725200, 38016, 0xa17cf5e4
+0, 2728800, 38016, 0x567fff2a
+0, 2732400, 38016, 0x52ab043b
+0, 2736000, 38016, 0x8e8b0bd9
+0, 2739600, 38016, 0x0f131a7e
+0, 2743200, 38016, 0x26aa2303
+0, 2746800, 38016, 0x70c12bab
+0, 2750400, 38016, 0xa8a93858
+0, 2754000, 38016, 0x289f3b94
+0, 2757600, 38016, 0x3d883605
+0, 2761200, 38016, 0xe171329e
+0, 2764800, 38016, 0x75292865
+0, 2768400, 38016, 0x1d2ac8dc
+0, 2772000, 38016, 0xa336aa94
+0, 2775600, 38016, 0xcede9906
+0, 2779200, 38016, 0x1c9a8b52
+0, 2782800, 38016, 0x2a9c8a78
+0, 2786400, 38016, 0x920a8583
+0, 2790000, 38016, 0xb3ee7e2d
+0, 2793600, 38016, 0x96be75fc
+0, 2797200, 38016, 0x2a8a68d2
+0, 2800800, 38016, 0xdf8e6baf
+0, 2804400, 38016, 0xd46570d1
+0, 2808000, 38016, 0x765b71af
+0, 2811600, 38016, 0x25fe71df
+0, 2815200, 38016, 0x9ca124e3
+0, 2818800, 38016, 0x77c51bab
+0, 2822400, 38016, 0x0b380db9
+0, 2826000, 38016, 0xb0be108b
+0, 2829600, 38016, 0x5c4808b8
+0, 2833200, 38016, 0x73331227
+0, 2836800, 38016, 0xce790cf2
+0, 2840400, 38016, 0x46ac0dfc
+0, 2844000, 38016, 0xdc310caf
+0, 2847600, 38016, 0x909c0606
+0, 2851200, 38016, 0x0756fb3e
+0, 2854800, 38016, 0x4eb0fb0d
+0, 2858400, 38016, 0x6276f6e2
+0, 2862000, 38016, 0x92e0f070
+0, 2865600, 38016, 0x6f2d793f
+0, 2869200, 38016, 0x215f704b
+0, 2872800, 38016, 0xf9b7765e
+0, 2876400, 38016, 0xdb6176bf
+0, 2880000, 38016, 0x2b5165eb
+0, 2883600, 38016, 0xf1145c06
+0, 2887200, 38016, 0x343f698d
+0, 2890800, 38016, 0xcb96713f
+0, 2894400, 38016, 0xc50f775a
+0, 2898000, 38016, 0xbb927e81
+0, 2901600, 38016, 0xa2497bd4
+0, 2905200, 38016, 0xe52b80fa
+0, 2908800, 38016, 0x900f7ac7
+0, 2912400, 38016, 0x77e77d0e
+0, 2916000, 38016, 0xdb33f302
+0, 2919600, 38016, 0xf0519288
+0, 2923200, 38016, 0x4552f487
+0, 2926800, 38016, 0xe7b5f34c
+0, 2930400, 38016, 0x0db18be6
+0, 2934000, 38016, 0xb9ba87c2
+0, 2937600, 38016, 0x1dc2f805
+0, 2941200, 38016, 0x4986f535
+0, 2944800, 38016, 0xc099f301
+0, 2948400, 38016, 0x3d8c6787
+0, 2952000, 38016, 0xd3a4796f
+0, 2955600, 38016, 0xfe01635f
+0, 2959200, 38016, 0xba8df082
+0, 2962800, 38016, 0x55f3f017
+0, 2966400, 38016, 0xf2d7f36a
+0, 2970000, 38016, 0x8bd8f7a1
+0, 2973600, 38016, 0xabcd638b
+0, 2977200, 38016, 0x69ae59ea
+0, 2980800, 38016, 0x5bf43408
+0, 2984400, 38016, 0x6466fd67
+0, 2988000, 38016, 0xc90effb4
+0, 2991600, 38016, 0x82110480
+0, 2995200, 38016, 0xb364f74b
+0, 2998800, 38016, 0x7f1efd76
+0, 3002400, 38016, 0x1a20f30f
+0, 3006000, 38016, 0x4b0fe377
+0, 3009600, 38016, 0x57b4c896
+0, 3013200, 38016, 0x92b1ab52
+0, 3016800, 38016, 0x10ceaf82
+0, 3020400, 38016, 0xc4d3b0b8
+0, 3024000, 38016, 0x68b9f314
+0, 3027600, 38016, 0xc627fd70
+0, 3031200, 38016, 0x5fc108dc
+0, 3034800, 38016, 0x0f1f12d7
+0, 3038400, 38016, 0x6edc208e
+0, 3042000, 38016, 0x91f824eb
+0, 3045600, 38016, 0x1464b836
+0, 3049200, 38016, 0x84c7c412
+0, 3052800, 38016, 0x3e8dd049
+0, 3056400, 38016, 0x493dd1a7
+0, 3060000, 38016, 0x25dfbd00
+0, 3063600, 38016, 0x140bbd33
+0, 3067200, 38016, 0x488e2db6
+0, 3070800, 38016, 0x9e4f2c0a
+0, 3074400, 38016, 0xd60928d3
+0, 3078000, 38016, 0x38b61e0b
+0, 3081600, 38016, 0xb6331660
+0, 3085200, 38016, 0x0a3a0e4c
+0, 3088800, 38016, 0x6ad9105b
+0, 3092400, 38016, 0x29a8cd6b
+0, 3096000, 38016, 0x35e1da7d
+0, 3099600, 38016, 0x824de492
+0, 3103200, 38016, 0x1c76d83c
+0, 3106800, 38016, 0xbe25d98d
+0, 3110400, 38016, 0x5efaf222
+0, 3114000, 38016, 0x17370266
+0, 3117600, 38016, 0x417a2375
+0, 3121200, 38016, 0xb7e423d3
+0, 3124800, 38016, 0x224020fe
+0, 3128400, 38016, 0x4bbe1ee9
+0, 3132000, 38016, 0x72aa1f21
+0, 3135600, 38016, 0xc810126d
+0, 3139200, 38016, 0x42730cd4
+0, 3142800, 38016, 0xfd510c5d
+0, 3146400, 38016, 0x7c6f1313
+0, 3150000, 38016, 0xc1b31b89
+0, 3153600, 38016, 0x57772339
+0, 3157200, 38016, 0x20922349
+0, 3160800, 38016, 0xea4f1a45
+0, 3164400, 38016, 0x79e214d2
+0, 3168000, 38016, 0x77521b5d
+0, 3171600, 38016, 0x5929276c
+0, 3175200, 38016, 0x40b3130d
+0, 3178800, 38016, 0x040a157e
+0, 3182400, 38016, 0x0de31983
+0, 3186000, 38016, 0xdb0a1852
+0, 3189600, 38016, 0x73111b91
+0, 3193200, 38016, 0xf7a61765
+0, 3196800, 38016, 0xc5dd2557
+0, 3200400, 38016, 0xabc32e16
+0, 3204000, 38016, 0x5f093823
+0, 3207600, 38016, 0x9f462f1e
+0, 3211200, 38016, 0x29822c19
+0, 3214800, 38016, 0x259a2697
+0, 3218400, 38016, 0x7ad61867
+0, 3222000, 38016, 0x32fe111f
+0, 3225600, 38016, 0xf65c1142
+0, 3229200, 38016, 0xc5b91a6d
+0, 3232800, 38016, 0x4461191e
+0, 3236400, 38016, 0x0458193a
+0, 3240000, 38016, 0x3ed084a9
+0, 3243600, 38016, 0x4dd28047
+0, 3247200, 38016, 0x18dd8523
+0, 3250800, 38016, 0x4ab87d32
+0, 3254400, 38016, 0xecd0824c
+0, 3258000, 38016, 0xae567d36
+0, 3261600, 38016, 0xfa2e82d0
+0, 3265200, 38016, 0xbce08c2e
+0, 3268800, 38016, 0x125094c4
+0, 3272400, 38016, 0x475e9b1d
+0, 3276000, 38016, 0x9b921150
+0, 3279600, 38016, 0x6f7b1124
+0, 3283200, 38016, 0xa1fe0d8b
+0, 3286800, 38016, 0x12930955
+0, 3290400, 38016, 0x3d981105
+0, 3294000, 38016, 0x92d92e3b
+0, 3297600, 38016, 0x29a33ed5
+0, 3301200, 38016, 0x8d0b578e
+0, 3304800, 38016, 0xda5571ba
+0, 3308400, 38016, 0xbc638172
+0, 3312000, 38016, 0x73fd9abb
+0, 3315600, 38016, 0x53df952b
+0, 3319200, 38016, 0xe1758a4c
+0, 3322800, 38016, 0x064f8812
+0, 3326400, 38016, 0xd9b08971
+0, 3330000, 38016, 0xfe6688a9
+0, 3333600, 38016, 0x3b50938b
+0, 3337200, 38016, 0x4e1a9c13
+0, 3340800, 38016, 0x63599bf0
+0, 3344400, 38016, 0x97e0957f
+0, 3348000, 38016, 0x5a6e98d7
+0, 3351600, 38016, 0xa4be8cf2
+0, 3355200, 38016, 0x53bb901e
+0, 3358800, 38016, 0x15f0994e
+0, 3362400, 38016, 0x71499a4b
+0, 3366000, 38016, 0xf41a87a5
+0, 3369600, 38016, 0x3e237999
+0, 3373200, 38016, 0xf77f5dd2
+0, 3376800, 38016, 0x89874799
+0, 3380400, 38016, 0x02d82294
+0, 3384000, 38016, 0xc5920154
+0, 3387600, 38016, 0x6e61f375
+0, 3391200, 38016, 0x41a6940c
+0, 3394800, 38016, 0x130b97f7
+0, 3398400, 38016, 0xdff09b51
+0, 3402000, 38016, 0xb2999bd6
+0, 3405600, 38016, 0x0bb99d20
+0, 3409200, 38016, 0x9f819633
+0, 3412800, 38016, 0x5bda9640
+0, 3416400, 38016, 0xdcf29321
+0, 3420000, 38016, 0xa6838a63
+0, 3423600, 38016, 0x820a825e
+0, 3427200, 38016, 0x69bb7859
+0, 3430800, 38016, 0x4a8c79c2
+0, 3434400, 38016, 0x1e97e67d
+0, 3438000, 38016, 0x1ad4de1b
+0, 3441600, 38016, 0xe8abeb33
+0, 3445200, 38016, 0xf3a51523
+0, 3448800, 38016, 0xb997399c
+0, 3452400, 38016, 0x9fee8105
+0, 3456000, 38016, 0xf2b6ada3
+0, 3459600, 38016, 0xe6f5bbb3
+0, 3463200, 38016, 0x8ed7ca9f
+0, 3466800, 38016, 0x711abc1a
+0, 3470400, 38016, 0x707ab544
+0, 3474000, 38016, 0x03b8af51
+0, 3477600, 38016, 0x50497b2c
+0, 3481200, 38016, 0x72b57a30
+0, 3484800, 38016, 0xfb6d8164
+0, 3488400, 38016, 0x88618e82
+0, 3492000, 38016, 0xb7369e49
+0, 3495600, 38016, 0x2502a3ca
+0, 3499200, 38016, 0x793aa276
+0, 3502800, 38016, 0x883a8ec6
+0, 3506400, 38016, 0x5f7784e5
+0, 3510000, 38016, 0xddfa7e94
+0, 3513600, 38016, 0xdb877fb8
+0, 3517200, 38016, 0x07e07f39
+0, 3520800, 38016, 0x412590fb
+0, 3524400, 38016, 0x1bd1b527
+0, 3528000, 38016, 0xbb6098c3
+0, 3531600, 38016, 0x5f1b8788
+0, 3535200, 38016, 0x42f068e8
+0, 3538800, 38016, 0x316b53bb
+0, 3542400, 38016, 0xbdbb3fa0
+0, 3546000, 38016, 0xa68f506c
+0, 3549600, 38016, 0xca355d03
+0, 3553200, 38016, 0xfafc6b88
+0, 3556800, 38016, 0x0f106535
+0, 3560400, 38016, 0xa4ae4e63
+0, 3564000, 38016, 0xb206400f
+0, 3567600, 38016, 0x3a5946d1
+0, 3571200, 38016, 0xca739868
+0, 3574800, 38016, 0xe6939d41
+0, 3578400, 38016, 0x2ec19a76
+0, 3582000, 38016, 0x614e96a4
+0, 3585600, 38016, 0x2c2b9348
+0, 3589200, 38016, 0xa00c7f1f
+0, 3592800, 38016, 0x95cb6eca
+0, 3596400, 38016, 0x069d6c4c
+0, 3600000, 38016, 0xe17e03e3
+0, 3603600, 38016, 0xa7491870
+0, 3607200, 38016, 0xacc91e48
+0, 3610800, 38016, 0x99eb1e2a
+0, 3614400, 38016, 0xb2eb1279
+0, 3618000, 38016, 0xa5020c77
+0, 3621600, 38016, 0xde966613
+0, 3625200, 38016, 0xac7f6e1e
+0, 3628800, 38016, 0x1c378a7a
+0, 3632400, 38016, 0x32e6d8a4
+0, 3636000, 38016, 0xecb8d286
+0, 3639600, 38016, 0xa497d941
+0, 3643200, 38016, 0x8ad7d36e
+0, 3646800, 38016, 0xdbd8a91a
+0, 3650400, 38016, 0x718f61d7
+0, 3654000, 38016, 0x862619cf
+0, 3657600, 38016, 0xaa049781
+0, 3661200, 38016, 0xd3986887
+0, 3664800, 38016, 0x9e9f5782
+0, 3668400, 38016, 0x2a9d4f70
+0, 3672000, 38016, 0x62b91421
+0, 3675600, 38016, 0x32313eaa
+0, 3679200, 38016, 0xf9bf1879
+0, 3682800, 38016, 0xc33c0811
+0, 3686400, 38016, 0xe9c21227
+0, 3690000, 38016, 0xf2922db6
+0, 3693600, 38016, 0x669d0627
+0, 3697200, 38016, 0x64c1048a
+0, 3700800, 38016, 0xdd28fa70
+0, 3704400, 38016, 0xd88e8b77
+0, 3708000, 38016, 0x3716bdb8
+0, 3711600, 38016, 0x1834ef57
+0, 3715200, 38016, 0xddb800b7
+0, 3718800, 38016, 0x140302cc
+0, 3722400, 38016, 0x7fa60568
+0, 3726000, 38016, 0x7cc6fd4b
+0, 3729600, 38016, 0xf14c2568
+0, 3733200, 38016, 0x2ee88bbc
+0, 3736800, 38016, 0x915cd143
+0, 3740400, 38016, 0x13ede5fa
+0, 3744000, 38016, 0x6615f63b
+0, 3747600, 38016, 0x8814f54f
+0, 3751200, 38016, 0xb53ef24a
+0, 3754800, 38016, 0xc6a8ee80
+0, 3758400, 38016, 0x9473ee09
+0, 3762000, 38016, 0x9b77d932
+0, 3765600, 38016, 0x142fc69a
+0, 3769200, 38016, 0xb238c6a2
+0, 3772800, 38016, 0x4364d302
+0, 3776400, 38016, 0xde39d174
+0, 3780000, 38016, 0x7fca7fa6
+0, 3783600, 38016, 0x77678d42
+0, 3787200, 38016, 0xaa7e8b68
+0, 3790800, 38016, 0xeecb8c89
+0, 3794400, 38016, 0x6e5e8980
+0, 3798000, 38016, 0x4f4a80de
+0, 3801600, 38016, 0xb3b5cee6
+0, 3805200, 38016, 0x0c72cf1c
+0, 3808800, 38016, 0xd83fd12d
+0, 3812400, 38016, 0x8deeda59
+0, 3816000, 38016, 0xe7fae46e
+0, 3819600, 38016, 0x8233ecd5
+0, 3823200, 38016, 0x0c32808c
+0, 3826800, 38016, 0xf43f8571
+0, 3830400, 38016, 0xae898f01
+0, 3834000, 38016, 0x5a4a99e9
+0, 3837600, 38016, 0x589f9b80
+0, 3841200, 38016, 0x6ca5a33b
+0, 3844800, 38016, 0x3811af0a
+0, 3848400, 38016, 0x8272eda7
+0, 3852000, 38016, 0xa807f046
+0, 3855600, 38016, 0x5b4fec80
+0, 3859200, 38016, 0xb6e6e7fa
+0, 3862800, 38016, 0x250cdb5c
+0, 3866400, 38016, 0x3f38e876
+0, 3870000, 38016, 0x8110e94a
+0, 3873600, 38016, 0x0f19abd7
+0, 3877200, 38016, 0x9e1ca9bd
+0, 3880800, 38016, 0x1f33abae
+0, 3884400, 38016, 0xff18ad65
+0, 3888000, 38016, 0x3d02b300
+0, 3891600, 38016, 0xb7a9b4b2
+0, 3895200, 38016, 0xd8cab454
+0, 3898800, 38016, 0xb48ab772
+0, 3902400, 38016, 0x7f98fe59
+0, 3906000, 38016, 0x786c1795
+0, 3909600, 38016, 0x013437ff
+0, 3913200, 38016, 0xba28622a
+0, 3916800, 38016, 0xf48486e1
+0, 3920400, 38016, 0xc13695c4
+0, 3924000, 38016, 0x1fc5a4d2
+0, 3927600, 38016, 0x016caefd
+0, 3931200, 38016, 0x76b8bc54
+0, 3934800, 38016, 0xcf63bdbc
+0, 3938400, 38016, 0xeb02c0e2
+0, 3942000, 38016, 0xb57dc067
+0, 3945600, 38016, 0x8ec8c058
+0, 3949200, 38016, 0xcb04be49
+0, 3952800, 38016, 0xceccbfac
+0, 3956400, 38016, 0x3408c0c3
+0, 3960000, 38016, 0xee526afa
+0, 3963600, 38016, 0xd7529aad
+0, 3967200, 38016, 0x98bd9221
+0, 3970800, 38016, 0x2fbd7e5a
+0, 3974400, 38016, 0x0fb8a8fc
+0, 3978000, 38016, 0xfd28af91
+0, 3981600, 38016, 0x81db9907
+0, 3985200, 38016, 0x1f0a8ae7
+0, 3988800, 38016, 0xd91e93e3
+0, 3992400, 38016, 0x5fe6b043
+0, 3996000, 38016, 0x2a618a48
+0, 3999600, 38016, 0xef1c8cc2
+0, 4003200, 38016, 0x928595ce
+0, 4006800, 38016, 0xf2a59a43
+0, 4010400, 38016, 0x61bf92d0
+0, 4014000, 38016, 0x584d840f
+0, 4017600, 38016, 0x42177cb1
+0, 4021200, 38016, 0x08867c3b
+0, 4024800, 38016, 0x5a89813b
+0, 4028400, 38016, 0xba558022
+0, 4032000, 38016, 0x3d58878a
+0, 4035600, 38016, 0x8d215911
+0, 4039200, 38016, 0xea27370c
+0, 4042800, 38016, 0x7e2a1a9c
+0, 4046400, 38016, 0xbb86f763
+0, 4050000, 38016, 0xf03fd3c7
+0, 4053600, 38016, 0x1eaac263
+0, 4057200, 38016, 0x8a4bd0e1
+0, 4060800, 38016, 0x5adcf66d
+0, 4064400, 38016, 0xa0320a89
+0, 4068000, 38016, 0x77338f96
+0, 4071600, 38016, 0xf3498f6a
+0, 4075200, 38016, 0x7e248dcf
+0, 4078800, 38016, 0xf7f68dcc
+0, 4082400, 38016, 0x5da597c9
+0, 4086000, 38016, 0x63db9d00
+0, 4089600, 38016, 0xd1f09e52
+0, 4093200, 38016, 0xfc7ba2e1
+0, 4096800, 38016, 0x8c26ab25
+0, 4100400, 38016, 0x6a45add3
+0, 4104000, 38016, 0x0dd7b2a2
+0, 4107600, 38016, 0x70c00c4f
+0, 4111200, 38016, 0x437e255e
+0, 4114800, 38016, 0x63dd455b
+0, 4118400, 38016, 0x01453a2e
+0, 4122000, 38016, 0x08c120af
+0, 4125600, 38016, 0xf3111451
+0, 4129200, 38016, 0xf3f10603
+0, 4132800, 38016, 0xb154fa41
+0, 4136400, 38016, 0x4734ee73
+0, 4140000, 38016, 0x28ca7926
+0, 4143600, 38016, 0xbb628234
+0, 4147200, 38016, 0x0ca1b42f
+0, 4150800, 38016, 0x8397b202
+0, 4154400, 38016, 0x9d92b832
+0, 4158000, 38016, 0x8fbeb4b2
+0, 4161600, 38016, 0x056aa904
+0, 4165200, 38016, 0x4e78a55c
+0, 4168800, 38016, 0xe8a8a265
+0, 4172400, 38016, 0xb703a17b
+0, 4176000, 38016, 0xe79e9d71
+0, 4179600, 38016, 0xbd769f5d
+0, 4183200, 38016, 0x602ea70f
+0, 4186800, 38016, 0x034caf76
+0, 4190400, 38016, 0x28dd9702
+0, 4194000, 38016, 0xc8879c85
+0, 4197600, 38016, 0x15b098f2
+0, 4201200, 38016, 0xf34b9ce5
+0, 4204800, 38016, 0x6d159fbf
+0, 4208400, 38016, 0x22eb9cac
+0, 4212000, 38016, 0xae42a220
+0, 4215600, 38016, 0x1275a131
+0, 4219200, 38016, 0x8188a057
+0, 4222800, 38016, 0x65dea0d1
+0, 4226400, 38016, 0x5bd19be2
+0, 4230000, 38016, 0xfbd99219
+0, 4233600, 38016, 0xad19b3a2
+0, 4237200, 38016, 0xa897bb92
+0, 4240800, 38016, 0x5b1fbf2e
+0, 4244400, 38016, 0x02a5cb24
+0, 4248000, 38016, 0xd6ead6fe
+0, 4251600, 38016, 0x3083de8a
+0, 4255200, 38016, 0xbf1decb4
+0, 4258800, 38016, 0xd92af986
+0, 4262400, 38016, 0x4c520154
+0, 4266000, 38016, 0xd45805a1
+0, 4269600, 38016, 0x25e2084d
+0, 4273200, 38016, 0x4e3d0960
+0, 4276800, 38016, 0x5b449ef2
+0, 4280400, 38016, 0xda15abcc
+0, 4284000, 38016, 0x1b3ba622
+0, 4287600, 38016, 0xaf61a32a
+0, 4291200, 38016, 0xcfa39e3d
+0, 4294800, 38016, 0x8865a56c
+0, 4298400, 38016, 0x3bc9af9b
+0, 4302000, 38016, 0x0a83c081
+0, 4305600, 38016, 0x5ccec976
+0, 4309200, 38016, 0x1f1fc906
+0, 4312800, 38016, 0x1ef6cc46
+0, 4316400, 38016, 0x7776c39e
+0, 4320000, 38016, 0x5860a212
+0, 4323600, 38016, 0x2d9092a3
+0, 4327200, 38016, 0x964d9f81
+0, 4330800, 38016, 0xc35c9691
+0, 4334400, 38016, 0x5e0dc673
+0, 4338000, 38016, 0xada3b7d6
+0, 4341600, 38016, 0x4f3a8d03
+0, 4345200, 38016, 0xfcb4861a
+0, 4348800, 38016, 0xfa908149
+0, 4352400, 38016, 0x6994c514
+0, 4356000, 38016, 0x37c5aaa9
+0, 4359600, 38016, 0x207abcfe
+0, 4363200, 38016, 0x778d7a2d
+0, 4366800, 38016, 0x60b773ff
+0, 4370400, 38016, 0x41cd67d5
+0, 4374000, 38016, 0x3c595a99
+0, 4377600, 38016, 0xd672b14c
+0, 4381200, 38016, 0x7db2c0fd
+0, 4384800, 38016, 0x3d21cf34
+0, 4388400, 38016, 0xdd1cf044
+0, 4392000, 38016, 0xc4594bcb
+0, 4395600, 38016, 0x595e4356
+0, 4399200, 38016, 0x9cc53c0d
+0, 4402800, 38016, 0x78fc325f
+0, 4406400, 38016, 0xc632324f
+0, 4410000, 38016, 0x18b1f5c1
+0, 4413600, 38016, 0x63aff55e
+0, 4417200, 38016, 0x8a50fb04
+0, 4420800, 38016, 0x7d5e20f6
+0, 4424400, 38016, 0xc31114bb
+0, 4428000, 38016, 0xf4852e6e
+0, 4431600, 38016, 0x9b6927ba
+0, 4435200, 38016, 0x024836c2
+0, 4438800, 38016, 0x20843b21
+0, 4442400, 38016, 0x19134055
+0, 4446000, 38016, 0x1cd843f7
+0, 4449600, 38016, 0x122705b1
+0, 4453200, 38016, 0x1880fc3d
+0, 4456800, 38016, 0x78dbfeaf
+0, 4460400, 38016, 0x212c273d
+0, 4464000, 38016, 0xff2eb7be
+0, 4467600, 38016, 0xe0bd752d
+0, 4471200, 38016, 0x277b478a
+0, 4474800, 38016, 0x59e84ab2
+0, 4478400, 38016, 0x338a50e4
+0, 4482000, 38016, 0xaf715a99
+0, 4485600, 38016, 0xd1e459a8
+0, 4489200, 38016, 0x70da4ac9
+0, 4492800, 38016, 0xa695540d
+0, 4496400, 38016, 0x9385320b
+0, 4500000, 38016, 0x9a8703cd
+0, 4503600, 38016, 0xbeda239e
+0, 4507200, 38016, 0x5bf262c1
+0, 4510800, 38016, 0x9b216899
+0, 4514400, 38016, 0x52f24135
+0, 4518000, 38016, 0x75a23955
+0, 4521600, 38016, 0xb92f4ea2
+0, 4525200, 38016, 0xdac95333
+0, 4528800, 38016, 0x1a2d4ed4
+0, 4532400, 38016, 0xfce25650
+0, 4536000, 38016, 0x1e264fdd
+0, 4539600, 38016, 0xe77349b8
+0, 4543200, 38016, 0x7d2046b0
+0, 4546800, 38016, 0x65373899
+0, 4550400, 38016, 0x3b3569ae
+0, 4554000, 38016, 0x346485d0
+0, 4557600, 38016, 0x80b93e57
+0, 4561200, 38016, 0xeb724ba5
+0, 4564800, 38016, 0x533d7459
+0, 4568400, 38016, 0x60f957a7
+0, 4572000, 38016, 0x900281b2
+0, 4575600, 38016, 0xf4489e06
+0, 4579200, 38016, 0xe77730c9
+0, 4582800, 38016, 0x41b23060
+0, 4586400, 38016, 0x4e8c3012
+0, 4590000, 38016, 0x651f2cff
+0, 4593600, 38016, 0x787b2e99
+0, 4597200, 38016, 0x541e2d10
+0, 4600800, 38016, 0x27a824a3
+0, 4604400, 38016, 0xe1e72121
+0, 4608000, 38016, 0xffb52626
+0, 4611600, 38016, 0x7677c8c9
+0, 4615200, 38016, 0xa501d38f
+0, 4618800, 38016, 0xa6d2c5dc
+0, 4622400, 38016, 0xba94d1c1
+0, 4626000, 38016, 0x137dac4d
+0, 4629600, 38016, 0x65c1bd6e
+0, 4633200, 38016, 0x7a32cd65
+0, 4636800, 38016, 0x518adf61
+0, 4640400, 38016, 0x8baaee58
+0, 4644000, 38016, 0xe7642712
+0, 4647600, 38016, 0xba191b45
+0, 4651200, 38016, 0x93dd16b1
+0, 4654800, 38016, 0x22831478
+0, 4658400, 38016, 0xe48c103a
+0, 4662000, 38016, 0x7c2709e7
+0, 4665600, 38016, 0xd7d8f454
+0, 4669200, 38016, 0xc504f31a
+0, 4672800, 38016, 0x2510e4ae
+0, 4676400, 38016, 0x0b56d119
+0, 4680000, 38016, 0x6c248150
+0, 4683600, 38016, 0xbac4be42
+0, 4687200, 38016, 0x5787c4a8
+0, 4690800, 38016, 0x65b3d0bd
+0, 4694400, 38016, 0xdcc4efbd
+0, 4698000, 38016, 0xfe92f78b
+0, 4701600, 38016, 0xfda60c1c
+0, 4705200, 38016, 0x4997238e
+0, 4708800, 38016, 0xfaca43ca
+0, 4712400, 38016, 0x81fe533c
+0, 4716000, 38016, 0x350bcb11
+0, 4719600, 38016, 0xacfdcde4
+0, 4723200, 38016, 0xb039c663
+0, 4726800, 38016, 0x3402c942
+0, 4730400, 38016, 0x388bc3d0
+0, 4734000, 38016, 0x85dec11a
+0, 4737600, 38016, 0xdfc2be86
+0, 4741200, 38016, 0x515cc1a9
+0, 4744800, 38016, 0xc7ddb990
+0, 4748400, 38016, 0x043fb332
+0, 4752000, 38016, 0x5b05b3a7
+0, 4755600, 38016, 0xacdf9836
+0, 4759200, 38016, 0x55079a49
+0, 4762800, 38016, 0x5de2d90d
+0, 4766400, 38016, 0x7f9deb52
+0, 4770000, 38016, 0x83ddc6d9
+0, 4773600, 38016, 0x77ecdc93
+0, 4777200, 38016, 0x745fe832
+0, 4780800, 38016, 0x920bf8e7
+0, 4784400, 38016, 0xd9fc1803
+0, 4788000, 38016, 0x06c13052
+0, 4791600, 38016, 0x4a962b49
+0, 4795200, 38016, 0xd4a7b571
+0, 4798800, 38016, 0xdb76bd1e
+0, 4802400, 38016, 0x11a4be41
+0, 4806000, 38016, 0x575eb740
+0, 4809600, 38016, 0x7f11bb5c
+0, 4813200, 38016, 0x0f97b9b5
+0, 4816800, 38016, 0xa421bc1e
+0, 4820400, 38016, 0x2510bda8
+0, 4824000, 38016, 0x5ec1c3c2
+0, 4827600, 38016, 0xab02c212
+0, 4831200, 38016, 0x7862c24a
+0, 4834800, 38016, 0x3654c47c
+0, 4838400, 38016, 0x6e4f3fd5
+0, 4842000, 38016, 0x77b54c6f
+0, 4845600, 38016, 0x51016691
+0, 4849200, 38016, 0x5c2e7a7a
+0, 4852800, 38016, 0x29aea461
+0, 4856400, 38016, 0x8f4397b1
+0, 4860000, 38016, 0x8af41dba
+0, 4863600, 38016, 0x4c1154ca
+0, 4867200, 38016, 0xe23e6e91
+0, 4870800, 38016, 0xd0617571
+0, 4874400, 38016, 0x2ab88348
+0, 4878000, 38016, 0x8bf1a109
+0, 4881600, 38016, 0xfdd4c390
+0, 4885200, 38016, 0x17b8c6bf
+0, 4888800, 38016, 0xa012bd5d
+0, 4892400, 38016, 0x4c16cee2
+0, 4896000, 38016, 0x739fcfae
+0, 4899600, 38016, 0x3edae498
+0, 4903200, 38016, 0x0d38e4ad
+0, 4906800, 38016, 0x896cea10
+0, 4910400, 38016, 0x13a0f1a9
+0, 4914000, 38016, 0xfe70eeb4
+0, 4917600, 38016, 0x540bf40e
+0, 4921200, 38016, 0xee20f65e
+0, 4924800, 38016, 0x8404fdf7
+0, 4928400, 38016, 0x1c71b182
+0, 4932000, 38016, 0x96e4c5cc
+0, 4935600, 38016, 0x6aa1dcf1
+0, 4939200, 38016, 0x4549ed9b
+0, 4942800, 38016, 0xd50bffba
+0, 4946400, 38016, 0x22701379
+0, 4950000, 38016, 0x19462a6b
+0, 4953600, 38016, 0x4f6b41e0
+0, 4957200, 38016, 0x9d344fcc
+0, 4960800, 38016, 0x60625fa9
+0, 4964400, 38016, 0xeb377eae
+0, 4968000, 38016, 0x0d9f945d
+0, 4971600, 38016, 0x4d0fb1dc
+0, 4975200, 38016, 0x0b580421
+0, 4978800, 38016, 0x30f3191a
+0, 4982400, 38016, 0xc5f7295c
+0, 4986000, 38016, 0xc4ad35e9
+0, 4989600, 38016, 0x25964387
+0, 4993200, 38016, 0x3a805820
+0, 4996800, 38016, 0x67e26985
+0, 5000400, 38016, 0x518f7941
+0, 5004000, 38016, 0x2a7982e1
+0, 5007600, 38016, 0x54aa84f0
+0, 5011200, 38016, 0x3d808f45
+0, 5014800, 38016, 0x5dae923c
+0, 5018400, 38016, 0xa2a99ccf
+0, 5022000, 38016, 0xefdd9a77
+0, 5025600, 38016, 0x246fcfa5
+0, 5029200, 38016, 0xe315cbcd
+0, 5032800, 38016, 0x4825df58
+0, 5036400, 38016, 0x0e241554
+0, 5040000, 38016, 0x968d8433
+0, 5043600, 38016, 0x97eec628
+0, 5047200, 38016, 0x7c4cb603
+0, 5050800, 38016, 0x6d11e7bf
+0, 5054400, 38016, 0xae041b61
+0, 5058000, 38016, 0x385e040c
+0, 5061600, 38016, 0x449e357a
+0, 5065200, 38016, 0x997f4aac
+0, 5068800, 38016, 0xd68c4f8b
+0, 5072400, 38016, 0xb3b962eb
+0, 5076000, 38016, 0x4685adc2
+0, 5079600, 38016, 0xed0d7473
+0, 5083200, 38016, 0xd069c0bb
+0, 5086800, 38016, 0x76abcd8e
+0, 5090400, 38016, 0xd6c096da
+0, 5094000, 38016, 0x76c2bab5
+0, 5097600, 38016, 0x1461dfb3
+0, 5101200, 38016, 0xf979f59f
+0, 5104800, 38016, 0x0554f985
+0, 5108400, 38016, 0x11c6d2a3
+0, 5112000, 38016, 0xe6e3faee
+0, 5115600, 38016, 0x6ceafbcc
+0, 5119200, 38016, 0x429b02e1
+0, 5122800, 38016, 0x97bd03f1
+0, 5126400, 38016, 0x78330c48
+0, 5130000, 38016, 0xb2720325
+0, 5133600, 38016, 0x26d412ab
+0, 5137200, 38016, 0xb6fb1b5c
+0, 5140800, 38016, 0xde8d300a
+0, 5144400, 38016, 0x7d28450e
+0, 5148000, 38016, 0xb3c5fbef
+0, 5151600, 38016, 0x2222f726
+0, 5155200, 38016, 0x66f7f42f
+0, 5158800, 38016, 0xef8af722
+0, 5162400, 38016, 0x4ac0f8d7
+0, 5166000, 38016, 0x5bfe5c81
+0, 5169600, 38016, 0x4afb6df9
+0, 5173200, 38016, 0xa8128a37
+0, 5176800, 38016, 0x1fc79ed0
+0, 5180400, 38016, 0x9967a997
+0, 5184000, 38016, 0x7bb5f6e1
+0, 5187600, 38016, 0xdda90122
+0, 5191200, 38016, 0x81700c1a
+0, 5194800, 38016, 0x9e121e77
+0, 5198400, 38016, 0xf58926a3
+0, 5202000, 38016, 0x4d1431a4
+0, 5205600, 38016, 0x0de6e741
+0, 5209200, 38016, 0x3ae9f601
+0, 5212800, 38016, 0xbed2e950
+0, 5216400, 38016, 0x619f100d
+0, 5220000, 38016, 0x6fa4a4e2
+0, 5223600, 38016, 0x316cddcd
+0, 5227200, 38016, 0x03132791
+0, 5230800, 38016, 0x10122784
+0, 5234400, 38016, 0x0e732980
+0, 5238000, 38016, 0x382d26f9
+0, 5241600, 38016, 0x651028fd
+0, 5245200, 38016, 0x61732850
+0, 5248800, 38016, 0x47912dde
+0, 5252400, 38016, 0xe3a12fdc
+0, 5256000, 38016, 0x8bc332ff
+0, 5259600, 38016, 0xcc3a3cdc
+0, 5263200, 38016, 0x190e2fec
+0, 5266800, 38016, 0x236c3291
+0, 5270400, 38016, 0xc0e55dd3
+0, 5274000, 38016, 0x06c85411
+0, 5277600, 38016, 0x0c0b3091
+0, 5281200, 38016, 0x8c1333cd
+0, 5284800, 38016, 0x51b339a5
+0, 5288400, 38016, 0x2d5b33ef
+0, 5292000, 38016, 0x73f0395b
+0, 5295600, 38016, 0x505b42d3
+0, 5299200, 38016, 0x56e44c7f
+0, 5302800, 38016, 0x26465781
+0, 5306400, 38016, 0x1d14800d
+0, 5310000, 38016, 0x752cb297
+0, 5313600, 38016, 0x0c3ab720
+0, 5317200, 38016, 0x21c2f136
+0, 5320800, 38016, 0xbae8b293
+0, 5324400, 38016, 0xe4b2fe9b
+0, 5328000, 38016, 0xfaaf0394
+0, 5331600, 38016, 0xa6f61d4b
+0, 5335200, 38016, 0x0e205192
+0, 5338800, 38016, 0x9b3c5c1f
+0, 5342400, 38016, 0x3b93552f
+0, 5346000, 38016, 0xe56e5b54
+0, 5349600, 38016, 0xa1c26095
+0, 5353200, 38016, 0x1eb66e41
+0, 5356800, 38016, 0x83eb6e83
+0, 5360400, 38016, 0xc8a979d3
+0, 5364000, 38016, 0x81fb7b32
+0, 5367600, 38016, 0xe07928b7
+0, 5371200, 38016, 0x38591267
+0, 5374800, 38016, 0xce563165
+0, 5378400, 38016, 0x5fec3563
+0, 5382000, 38016, 0xd7402c7c
+0, 5385600, 38016, 0xf2a93af4
+0, 5389200, 38016, 0x78f22fe7
+0, 5392800, 38016, 0x25554875
+0, 5396400, 38016, 0x79546ca2
+0, 5400000, 38016, 0xdae2814a
+0, 5403600, 38016, 0xf1ef9a9e
+0, 5407200, 38016, 0xb76d8b83
+0, 5410800, 38016, 0x1abf8fa8
+0, 5414400, 38016, 0x8f098fa4
+0, 5418000, 38016, 0xb098843c
+0, 5421600, 38016, 0x1d5186d3
+0, 5425200, 38016, 0x93f4923c
+0, 5428800, 38016, 0x496094e2
+0, 5432400, 38016, 0x7aea93f1
+0, 5436000, 38016, 0x556c6675
+0, 5439600, 38016, 0x90566aca
+0, 5443200, 38016, 0x14899a93
+0, 5446800, 38016, 0xd269e0e7
+0, 5450400, 38016, 0x1261d2cc
+0, 5454000, 38016, 0x299c9301
+0, 5457600, 38016, 0xee9c9ba5
+0, 5461200, 38016, 0xb48ab676
+0, 5464800, 38016, 0x4ef9b1c5
+0, 5468400, 38016, 0x8aae9912
+0, 5472000, 38016, 0x1bc09f53
+0, 5475600, 38016, 0x2e089c6b
+0, 5479200, 38016, 0x67598f8d
+0, 5482800, 38016, 0xacd394e1
+0, 5486400, 38016, 0xe2979b75
+0, 5490000, 38016, 0xb9749ff9
+0, 5493600, 38016, 0x02bda2f0
+0, 5497200, 38016, 0xe6caa499
+0, 5500800, 38016, 0xc6d9a547
+0, 5504400, 38016, 0x1c89aa34
+0, 5508000, 38016, 0x61feb4fc
+0, 5511600, 38016, 0x2a40b1f4
+0, 5515200, 38016, 0x4ad3ac08
+0, 5518800, 38016, 0xf5e8b06d
+0, 5522400, 38016, 0xb0eea800
+0, 5526000, 38016, 0x430cc535
+0, 5529600, 38016, 0x8e66b9cf
+0, 5533200, 38016, 0x5c68b4c4
+0, 5536800, 38016, 0x9381c64b
+0, 5540400, 38016, 0x4234bed7
+0, 5544000, 38016, 0xce72bf02
+0, 5547600, 38016, 0xb8cfbcd7
+0, 5551200, 38016, 0x75a5b1bd
+0, 5554800, 38016, 0xc27fb9eb
+0, 5558400, 38016, 0xa1b1bc62
+0, 5562000, 38016, 0x1cdeb0a3
+0, 5565600, 38016, 0xaea6a799
+0, 5569200, 38016, 0x8152ac4f
+0, 5572800, 38016, 0x59c1a66d
+0, 5576400, 38016, 0x6bd99f24
+0, 5580000, 38016, 0x96a73236
+0, 5583600, 38016, 0xb27e4856
+0, 5587200, 38016, 0x8b57447a
+0, 5590800, 38016, 0xcef84a21
+0, 5594400, 38016, 0x5babc7cc
+0, 5598000, 38016, 0x6ed2cec3
+0, 5601600, 38016, 0xa2efdc17
+0, 5605200, 38016, 0x47bad971
+0, 5608800, 38016, 0x150dffd4
+0, 5612400, 38016, 0x3ecef2ad
+0, 5616000, 38016, 0x355cdade
+0, 5619600, 38016, 0x3b15e809
+0, 5623200, 38016, 0x37fcf890
+0, 5626800, 38016, 0x8ca606d1
+0, 5630400, 38016, 0x51cafefe
+0, 5634000, 38016, 0x736be64a
+0, 5637600, 38016, 0x4f2052c1
+0, 5641200, 38016, 0xc6715e93
+0, 5644800, 38016, 0x765c5a58
+0, 5648400, 38016, 0x5abe5617
+0, 5652000, 38016, 0xb1ac540a
+0, 5655600, 38016, 0xd9f75c21
+0, 5659200, 38016, 0x0c1946c0
+0, 5662800, 38016, 0x93363a34
+0, 5666400, 38016, 0x2c9f2fe4
+0, 5670000, 38016, 0x023c321a
+0, 5673600, 38016, 0x1931314b
+0, 5677200, 38016, 0x16782d59
+0, 5680800, 38016, 0x29aa289f
+0, 5684400, 38016, 0xea0ddb85
+0, 5688000, 38016, 0xe09ae656
+0, 5691600, 38016, 0x682ff29f
+0, 5695200, 38016, 0xf3ac29ca
+0, 5698800, 38016, 0x95160cad
+0, 5702400, 38016, 0x9afa093c
+0, 5706000, 38016, 0x2ad30958
+0, 5709600, 38016, 0x4b600e3a
+0, 5713200, 38016, 0x5b0e099b
+0, 5716800, 38016, 0x2d2aff9b
+0, 5720400, 38016, 0x8bb10aa6
+0, 5724000, 38016, 0xfebe1f1d
+0, 5727600, 38016, 0xa4431abd
+0, 5731200, 38016, 0xef7729a6
+0, 5734800, 38016, 0x7b5b1f78
+0, 5738400, 38016, 0x903b203e
+0, 5742000, 38016, 0xbcc716a2
+0, 5745600, 38016, 0xee6c1f4c
+0, 5749200, 38016, 0xc78c2ab8
+0, 5752800, 38016, 0xa77a255a
+0, 5756400, 38016, 0x9d5815fc
+0, 5760000, 38016, 0x7d5e7d79
+0, 5763600, 38016, 0xf7989072
+0, 5767200, 38016, 0x45499feb
+0, 5770800, 38016, 0xc58aae7b
+0, 5774400, 38016, 0x882aa1cb
+0, 5778000, 38016, 0x56cd97bf
+0, 5781600, 38016, 0x2d6af920
+0, 5785200, 38016, 0x43c312eb
+0, 5788800, 38016, 0x12872b9f
+0, 5792400, 38016, 0x3c623ffe
+0, 5796000, 38016, 0x120e302d
+0, 5799600, 38016, 0x9cb43964
+0, 5803200, 38016, 0xb371311c
+0, 5806800, 38016, 0x28b523d4
+0, 5810400, 38016, 0x58031bff
+0, 5814000, 38016, 0xe6691818
+0, 5817600, 38016, 0x6a9b29c3
+0, 5821200, 38016, 0x794b25ce
+0, 5824800, 38016, 0xfc273119
+0, 5828400, 38016, 0x82ad2a3a
+0, 5832000, 38016, 0x9d2da281
+0, 5835600, 38016, 0x11271ba1
+0, 5839200, 38016, 0x1558b618
+0, 5842800, 38016, 0xf5d8c22f
+0, 5846400, 38016, 0xf20214f9
+0, 5850000, 38016, 0x15b01f3a
+0, 5853600, 38016, 0x68f2b533
+0, 5857200, 38016, 0x9686a827
+0, 5860800, 38016, 0xf214a2dc
+0, 5864400, 38016, 0x3d421eb0
+0, 5868000, 38016, 0x78251e60
+0, 5871600, 38016, 0xab092856
+0, 5875200, 38016, 0x5eaba7bc
+0, 5878800, 38016, 0x612fb699
+0, 5882400, 38016, 0x8a83a3fd
+0, 5886000, 38016, 0xbcd9919b
+0, 5889600, 38016, 0xb9063049
+0, 5893200, 38016, 0x5cb22fde
+0, 5896800, 38016, 0x7db92390
+0, 5900400, 38016, 0x801b241b
+0, 5904000, 38016, 0x6eeb8e1b
+0, 5907600, 38016, 0x660b9568
+0, 5911200, 38016, 0x2a5b8b3d
+0, 5914800, 38016, 0x15098b9a
+0, 5918400, 38016, 0xd29284f5
+0, 5922000, 38016, 0x839323c6
+0, 5925600, 38016, 0xd6a4212c
+0, 5929200, 38016, 0x1c1c2259
+0, 5932800, 38016, 0x0b1d2ef2
+0, 5936400, 38016, 0xecd52cfc
+0, 5940000, 38016, 0x419326cb
+0, 5943600, 38016, 0xea813e68
+0, 5947200, 38016, 0xba9a33ba
+0, 5950800, 38016, 0x703b3b25
+0, 5954400, 38016, 0x391c3cce
+0, 5958000, 38016, 0xd1533fe3
+0, 5961600, 38016, 0xb9361f10
+0, 5965200, 38016, 0x8d652ea6
+0, 5968800, 38016, 0x22dc15ae
+0, 5972400, 38016, 0x2e5e0ee7
+0, 5976000, 38016, 0xd6bd15cf
+0, 5979600, 38016, 0xb16f198a
+0, 5983200, 38016, 0xd9653e95
+0, 5986800, 38016, 0x39da2e3a
+0, 5990400, 38016, 0x01b12526
+0, 5994000, 38016, 0x94a52dde
+0, 5997600, 38016, 0xda0c32d8
+0, 6001200, 38016, 0x89af2566
+0, 6004800, 38016, 0x71961a43
+0, 6008400, 38016, 0x5fb91337
+0, 6012000, 38016, 0x6e430a84
+0, 6015600, 38016, 0x1defffb2
+0, 6019200, 38016, 0xcc93023f
+0, 6022800, 38016, 0xfcd60168
+0, 6026400, 38016, 0x8a3201d4
+0, 6030000, 38016, 0x5235fef3
+0, 6033600, 38016, 0x989121b9
+0, 6037200, 38016, 0x067a1d36
+0, 6040800, 38016, 0xa168242b
+0, 6044400, 38016, 0x425f2475
+0, 6048000, 38016, 0x298f14d9
+0, 6051600, 38016, 0x3a7c1838
+0, 6055200, 38016, 0xd173155a
+0, 6058800, 38016, 0x210113ec
+0, 6062400, 38016, 0xa0c2f88f
+0, 6066000, 38016, 0x4fa1f4e2
+0, 6069600, 38016, 0x812df750
+0, 6073200, 38016, 0xfd5cea45
+0, 6076800, 38016, 0xb823ee4a
+0, 6080400, 38016, 0x3555d6bf
+0, 6084000, 38016, 0x6dabf021
+0, 6087600, 38016, 0x7ae0f191
+0, 6091200, 38016, 0xabdc1546
+0, 6094800, 38016, 0x36dd0dbb
+0, 6098400, 38016, 0x008ffe5f
+0, 6102000, 38016, 0xe956f9c0
+0, 6105600, 38016, 0x9823ee03
+0, 6109200, 38016, 0xf63fedde
+0, 6112800, 38016, 0x67530afb
+0, 6116400, 38016, 0x2da5e470
diff --git a/tests/ref/fate/h264-conformance-midr_mw_d b/tests/ref/fate/h264-conformance-midr_mw_d
new file mode 100644
index 0000000000..afffdc85ad
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-midr_mw_d
@@ -0,0 +1,100 @@
+0, 0, 38016, 0x3ae838ee
+0, 3600, 38016, 0x9ed7e141
+0, 7200, 38016, 0x393097f9
+0, 10800, 38016, 0x8fb56676
+0, 14400, 38016, 0x39d64fd2
+0, 18000, 38016, 0x7fad729a
+0, 21600, 38016, 0x7e25955f
+0, 25200, 38016, 0xc4d9a359
+0, 28800, 38016, 0x30afaca4
+0, 32400, 38016, 0x9ee195ea
+0, 36000, 38016, 0x09f65805
+0, 39600, 38016, 0x58d126ab
+0, 43200, 38016, 0x4f29282c
+0, 46800, 38016, 0x8af235a1
+0, 50400, 38016, 0x6dfe525a
+0, 54000, 38016, 0xd51c793f
+0, 57600, 38016, 0x4e90abba
+0, 61200, 38016, 0xe706c5b7
+0, 64800, 38016, 0x35fab7ef
+0, 68400, 38016, 0xed78b8fc
+0, 72000, 38016, 0x2907bb4e
+0, 75600, 38016, 0x1749bb47
+0, 79200, 38016, 0x284ec688
+0, 82800, 38016, 0x534abc24
+0, 86400, 38016, 0xcd01bd13
+0, 90000, 38016, 0xe97bbd51
+0, 93600, 38016, 0xac1cb9e9
+0, 97200, 38016, 0xd861c0a3
+0, 100800, 38016, 0xf0f1ced4
+0, 104400, 38016, 0xa9e8d2bf
+0, 108000, 38016, 0x4c6aa7c5
+0, 111600, 38016, 0xb20079ac
+0, 115200, 38016, 0xbfc3563b
+0, 118800, 38016, 0x48259358
+0, 122400, 38016, 0x1bce0434
+0, 126000, 38016, 0xa0ac59db
+0, 129600, 38016, 0x87bdb608
+0, 133200, 38016, 0x318037eb
+0, 136800, 38016, 0x0f7d8496
+0, 140400, 38016, 0x9e65bc1e
+0, 144000, 38016, 0xc56be1ea
+0, 147600, 38016, 0xc31fefb7
+0, 151200, 38016, 0xcbcee4e4
+0, 154800, 38016, 0xcf03f238
+0, 158400, 38016, 0xc6a903a1
+0, 162000, 38016, 0xfdabee4f
+0, 165600, 38016, 0x9054bb39
+0, 169200, 38016, 0xe9bf8cd8
+0, 172800, 38016, 0x943d9e0a
+0, 176400, 38016, 0x404cc87d
+0, 180000, 38016, 0x3cd9dd49
+0, 183600, 38016, 0x5eabbdf1
+0, 187200, 38016, 0xd206d9ef
+0, 190800, 38016, 0x75e310ad
+0, 194400, 38016, 0x01893e25
+0, 198000, 38016, 0xda5360e6
+0, 201600, 38016, 0x80656a39
+0, 205200, 38016, 0x85452c84
+0, 208800, 38016, 0x48d92ef7
+0, 212400, 38016, 0x0edc45b2
+0, 216000, 38016, 0xeb8a3531
+0, 219600, 38016, 0x7b5914b5
+0, 223200, 38016, 0xf1b6c7fa
+0, 226800, 38016, 0x68fca853
+0, 230400, 38016, 0x68ebcc02
+0, 234000, 38016, 0x793edc8e
+0, 237600, 38016, 0x9c86d139
+0, 241200, 38016, 0x2aeed2f9
+0, 244800, 38016, 0xb8cfc89d
+0, 248400, 38016, 0x22d2b5c4
+0, 252000, 38016, 0x01ae9d2d
+0, 255600, 38016, 0x4e9b7c84
+0, 259200, 38016, 0xa52c8553
+0, 262800, 38016, 0x50df78d0
+0, 266400, 38016, 0x4dc31f1c
+0, 270000, 38016, 0xf24ee29a
+0, 273600, 38016, 0xced0d363
+0, 277200, 38016, 0x2263bfdc
+0, 280800, 38016, 0x1363f580
+0, 284400, 38016, 0xfc7f3a50
+0, 288000, 38016, 0x38427007
+0, 291600, 38016, 0xfc5757eb
+0, 295200, 38016, 0xf20f4d0b
+0, 298800, 38016, 0x64871ca3
+0, 302400, 38016, 0xcb66cd99
+0, 306000, 38016, 0xaacdda1f
+0, 309600, 38016, 0xd52206c8
+0, 313200, 38016, 0xcb461142
+0, 316800, 38016, 0x9e36a3b3
+0, 320400, 38016, 0xf3b44a7c
+0, 324000, 38016, 0x1722db32
+0, 327600, 38016, 0xa943d602
+0, 331200, 38016, 0xc899e7bf
+0, 334800, 38016, 0xacd10bdc
+0, 338400, 38016, 0x703b3802
+0, 342000, 38016, 0xe246efb4
+0, 345600, 38016, 0x1ebfccb2
+0, 349200, 38016, 0x57380778
+0, 352800, 38016, 0xb70e7313
+0, 356400, 38016, 0x0cd4af3d
diff --git a/tests/ref/fate/h264-conformance-mps_mw_a b/tests/ref/fate/h264-conformance-mps_mw_a
new file mode 100644
index 0000000000..47e7feb36a
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-mps_mw_a
@@ -0,0 +1,150 @@
+0, 0, 38016, 0x06150e88
+0, 3600, 38016, 0x32d90103
+0, 7200, 38016, 0x5b5f2fae
+0, 10800, 38016, 0xba6e6302
+0, 14400, 38016, 0x6c4b8e95
+0, 18000, 38016, 0x6d51ab43
+0, 21600, 38016, 0x5582a7c5
+0, 25200, 38016, 0xf48e6545
+0, 28800, 38016, 0x083a8481
+0, 32400, 38016, 0x0576a254
+0, 36000, 38016, 0x07429a61
+0, 39600, 38016, 0xd1e26eb1
+0, 43200, 38016, 0x94032564
+0, 46800, 38016, 0xc9d217c0
+0, 50400, 38016, 0xf0ee3f46
+0, 54000, 38016, 0xe8fc4d97
+0, 57600, 38016, 0xd3b0488d
+0, 61200, 38016, 0xc4243d99
+0, 64800, 38016, 0xa65b36ed
+0, 68400, 38016, 0x84ca1844
+0, 72000, 38016, 0xcd6706bf
+0, 75600, 38016, 0x1c03ec0a
+0, 79200, 38016, 0xf1380127
+0, 82800, 38016, 0xa499e0a5
+0, 86400, 38016, 0x5fca87ce
+0, 90000, 38016, 0x0b385064
+0, 93600, 38016, 0x6a4f49c4
+0, 97200, 38016, 0x97e0464b
+0, 100800, 38016, 0xcbf98750
+0, 104400, 38016, 0xa9efe0cd
+0, 108000, 38016, 0x9ea7d82e
+0, 111600, 38016, 0x28cec5ce
+0, 115200, 38016, 0xaec6ac1e
+0, 118800, 38016, 0x8cba69b3
+0, 122400, 38016, 0x727720c1
+0, 126000, 38016, 0xee4f4822
+0, 129600, 38016, 0x9d456e11
+0, 133200, 38016, 0x14123f91
+0, 136800, 38016, 0xf5e1d1a3
+0, 140400, 38016, 0xaadd9435
+0, 144000, 38016, 0x94df6e5e
+0, 147600, 38016, 0x18805412
+0, 151200, 38016, 0x0ba26c8c
+0, 154800, 38016, 0x4548a5c1
+0, 158400, 38016, 0x9217cb5f
+0, 162000, 38016, 0x2ea74a9e
+0, 165600, 38016, 0xeb0c57b6
+0, 169200, 38016, 0xf968a4a5
+0, 172800, 38016, 0xa410ef43
+0, 176400, 38016, 0x55813001
+0, 180000, 38016, 0x9cea4512
+0, 183600, 38016, 0x27754fa6
+0, 187200, 38016, 0x9824548a
+0, 190800, 38016, 0x7f1047eb
+0, 194400, 38016, 0x75fb2e10
+0, 198000, 38016, 0xe50df970
+0, 201600, 38016, 0x6ed6dfb4
+0, 205200, 38016, 0x8e97ccee
+0, 208800, 38016, 0x7f96c5f0
+0, 212400, 38016, 0x0940c200
+0, 216000, 38016, 0x86b98701
+0, 219600, 38016, 0x977d759a
+0, 223200, 38016, 0xf2b17bff
+0, 226800, 38016, 0xee1496d7
+0, 230400, 38016, 0x6cb1c1b5
+0, 234000, 38016, 0xa6bc0db9
+0, 237600, 38016, 0x902f660d
+0, 241200, 38016, 0x7bf7a434
+0, 244800, 38016, 0x97f9c2a6
+0, 248400, 38016, 0xf8bf9241
+0, 252000, 38016, 0x8639502b
+0, 255600, 38016, 0x82c2537f
+0, 259200, 38016, 0x1141243a
+0, 262800, 38016, 0xcaef5ae5
+0, 266400, 38016, 0xe2c4d308
+0, 270000, 38016, 0x35530a2c
+0, 273600, 38016, 0x22a3b317
+0, 277200, 38016, 0xda988427
+0, 280800, 38016, 0x54616f11
+0, 284400, 38016, 0xc38fc57c
+0, 288000, 38016, 0x7039d019
+0, 291600, 38016, 0x0fd6e6d9
+0, 295200, 38016, 0xc213e48e
+0, 298800, 38016, 0xf469b8e1
+0, 302400, 38016, 0x1f5c706c
+0, 306000, 38016, 0x69652db3
+0, 309600, 38016, 0xe1b9d46d
+0, 313200, 38016, 0x4e7522aa
+0, 316800, 38016, 0x8f4025a4
+0, 320400, 38016, 0xbc0483f6
+0, 324000, 38016, 0xae91d342
+0, 327600, 38016, 0xb1435578
+0, 331200, 38016, 0xf7535863
+0, 334800, 38016, 0xc16ff613
+0, 338400, 38016, 0x55bc394f
+0, 342000, 38016, 0xc7b76458
+0, 345600, 38016, 0xd3fd69ae
+0, 349200, 38016, 0x4b44d724
+0, 352800, 38016, 0x740b99c5
+0, 356400, 38016, 0x40c7c625
+0, 360000, 38016, 0x1691a7ef
+0, 363600, 38016, 0x6ea9392e
+0, 367200, 38016, 0xf958200f
+0, 370800, 38016, 0x916d75eb
+0, 374400, 38016, 0x6b4bee69
+0, 378000, 38016, 0x87adf9de
+0, 381600, 38016, 0x92dc586e
+0, 385200, 38016, 0x3c5aa531
+0, 388800, 38016, 0x00f81488
+0, 392400, 38016, 0x981aeb9f
+0, 396000, 38016, 0x49cf8e5f
+0, 399600, 38016, 0xfd56b231
+0, 403200, 38016, 0x419aaa2e
+0, 406800, 38016, 0xae155602
+0, 410400, 38016, 0x1e530aa1
+0, 414000, 38016, 0x60ca2c1b
+0, 417600, 38016, 0x0e7bdec7
+0, 421200, 38016, 0xe858b864
+0, 424800, 38016, 0x47378c1d
+0, 428400, 38016, 0x90008a4d
+0, 432000, 38016, 0xa1293af0
+0, 435600, 38016, 0x596964a8
+0, 439200, 38016, 0xb25d9ccf
+0, 442800, 38016, 0xccdbb7a0
+0, 446400, 38016, 0x3becf25a
+0, 450000, 38016, 0x918d1816
+0, 453600, 38016, 0x71d02564
+0, 457200, 38016, 0x643015fd
+0, 460800, 38016, 0x3af5f577
+0, 464400, 38016, 0x77b5ecea
+0, 468000, 38016, 0x7f940014
+0, 471600, 38016, 0x726f0bf3
+0, 475200, 38016, 0xb728078f
+0, 478800, 38016, 0x46e1f70a
+0, 482400, 38016, 0x79ccdd3e
+0, 486000, 38016, 0x80d2ca75
+0, 489600, 38016, 0xc87dc034
+0, 493200, 38016, 0x7535c12a
+0, 496800, 38016, 0x2d32bd77
+0, 500400, 38016, 0x2fceb360
+0, 504000, 38016, 0x8d0aa592
+0, 507600, 38016, 0xc9b9bb80
+0, 511200, 38016, 0xa667dd9c
+0, 514800, 38016, 0x7b5df35b
+0, 518400, 38016, 0x5feb1125
+0, 522000, 38016, 0x222a306f
+0, 525600, 38016, 0x64c84c75
+0, 529200, 38016, 0x5e605c79
+0, 532800, 38016, 0x2d2f78f3
+0, 536400, 38016, 0x7b72973d
diff --git a/tests/ref/fate/h264-conformance-mr1_bt_a b/tests/ref/fate/h264-conformance-mr1_bt_a
new file mode 100644
index 0000000000..b077cd4370
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-mr1_bt_a
@@ -0,0 +1,62 @@
+0, 0, 38016, 0xc6658719
+0, 3600, 38016, 0x8a7c7423
+0, 7200, 38016, 0x97e99b66
+0, 10800, 38016, 0x73c4c4f7
+0, 14400, 38016, 0xb45bfb44
+0, 18000, 38016, 0x1bc3249c
+0, 21600, 38016, 0xd98a3121
+0, 25200, 38016, 0x6f0aefc1
+0, 28800, 38016, 0x6287f651
+0, 32400, 38016, 0x2a4a1630
+0, 36000, 38016, 0x5e7b5a35
+0, 39600, 38016, 0x58847533
+0, 43200, 38016, 0x2bad942b
+0, 46800, 38016, 0x17d75cb1
+0, 50400, 38016, 0x6d8e818d
+0, 54000, 38016, 0xfa3165db
+0, 57600, 38016, 0x6a6e249f
+0, 61200, 38016, 0x2d232ece
+0, 64800, 38016, 0xfba6616e
+0, 68400, 38016, 0xa9e7533f
+0, 72000, 38016, 0x7c4827e6
+0, 75600, 38016, 0xf570f8ca
+0, 79200, 38016, 0x0dac953f
+0, 82800, 38016, 0x74cb5f30
+0, 86400, 38016, 0x038ce61b
+0, 90000, 38016, 0x291f8ecb
+0, 93600, 38016, 0x768a6539
+0, 97200, 38016, 0x27a960e6
+0, 100800, 38016, 0x4d8ab279
+0, 104400, 38016, 0x7da78115
+0, 108000, 38016, 0x27beadcf
+0, 111600, 38016, 0x98c43180
+0, 115200, 38016, 0x566d55db
+0, 118800, 38016, 0xddc19fda
+0, 122400, 38016, 0xe353c891
+0, 126000, 38016, 0x17e2e3ab
+0, 129600, 38016, 0x8759e7c3
+0, 133200, 38016, 0x9d93bca9
+0, 136800, 38016, 0x8b77af4e
+0, 140400, 38016, 0x9b799dac
+0, 144000, 38016, 0xcb8bc504
+0, 147600, 38016, 0x58e989c8
+0, 151200, 38016, 0x4e4dbb7f
+0, 154800, 38016, 0xdfa6934e
+0, 158400, 38016, 0x14947459
+0, 162000, 38016, 0x7a31ff6a
+0, 165600, 38016, 0xc044fbc3
+0, 169200, 38016, 0xcaa723d1
+0, 172800, 38016, 0x325c1dca
+0, 176400, 38016, 0x62fb027d
+0, 180000, 38016, 0x710f3ae9
+0, 183600, 38016, 0xdbbf1804
+0, 187200, 38016, 0x1487f491
+0, 190800, 38016, 0x6a722d73
+0, 194400, 38016, 0xeb7258dd
+0, 198000, 38016, 0x685e8a68
+0, 201600, 38016, 0x1627800e
+0, 205200, 38016, 0xa88a9a31
+0, 208800, 38016, 0x4d5eaf56
+0, 212400, 38016, 0xe3a9af0a
+0, 216000, 38016, 0x3c38b8b2
+0, 219600, 38016, 0x991fc29e
diff --git a/tests/ref/fate/h264-conformance-mr1_mw_a b/tests/ref/fate/h264-conformance-mr1_mw_a
new file mode 100644
index 0000000000..98f112cc81
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-mr1_mw_a
@@ -0,0 +1,150 @@
+0, 0, 38016, 0xc8981780
+0, 3600, 38016, 0xf089d880
+0, 7200, 38016, 0x5eee0731
+0, 10800, 38016, 0x79604e7c
+0, 14400, 38016, 0xb92186a9
+0, 18000, 38016, 0xe18ea8d9
+0, 21600, 38016, 0xedb599dd
+0, 25200, 38016, 0xc2665a04
+0, 28800, 38016, 0x88387c78
+0, 32400, 38016, 0x70b09638
+0, 36000, 38016, 0xb5629ba8
+0, 39600, 38016, 0xc8ee696b
+0, 43200, 38016, 0x9af12088
+0, 46800, 38016, 0x044f1510
+0, 50400, 38016, 0x04153fcc
+0, 54000, 38016, 0x6a433225
+0, 57600, 38016, 0x8fb43d81
+0, 61200, 38016, 0x708c5884
+0, 64800, 38016, 0xb2fa310d
+0, 68400, 38016, 0xa54f23bf
+0, 72000, 38016, 0x875d12a9
+0, 75600, 38016, 0xa7c2f3e5
+0, 79200, 38016, 0xba120362
+0, 82800, 38016, 0xf922ead0
+0, 86400, 38016, 0x23c38ae4
+0, 90000, 38016, 0x8e705ad0
+0, 93600, 38016, 0x60854be9
+0, 97200, 38016, 0x63163fd9
+0, 100800, 38016, 0x6d5886bd
+0, 104400, 38016, 0xd66fdaaa
+0, 108000, 38016, 0xcda78bc1
+0, 111600, 38016, 0x7e11aa47
+0, 115200, 38016, 0x4ac4ceba
+0, 118800, 38016, 0x80a45b77
+0, 122400, 38016, 0x6d1a19f9
+0, 126000, 38016, 0xd2b93d81
+0, 129600, 38016, 0x4532dc5a
+0, 133200, 38016, 0x874c3d28
+0, 136800, 38016, 0xbeb4552c
+0, 140400, 38016, 0xd85e8b6d
+0, 144000, 38016, 0x4c3a6953
+0, 147600, 38016, 0xf8615235
+0, 151200, 38016, 0x9b3e613a
+0, 154800, 38016, 0xfbba9dd5
+0, 158400, 38016, 0x435fbc73
+0, 162000, 38016, 0x15746d9d
+0, 165600, 38016, 0xfc6c2960
+0, 169200, 38016, 0x80c41d21
+0, 172800, 38016, 0xa621c891
+0, 176400, 38016, 0x24ce0e8b
+0, 180000, 38016, 0x15552d28
+0, 183600, 38016, 0xbc0b3703
+0, 187200, 38016, 0x81643dee
+0, 190800, 38016, 0x479c42ea
+0, 194400, 38016, 0x63d426db
+0, 198000, 38016, 0x5830f8e4
+0, 201600, 38016, 0xce24d921
+0, 205200, 38016, 0x0224c7b9
+0, 208800, 38016, 0x8f44bf31
+0, 212400, 38016, 0xc3d5c00f
+0, 216000, 38016, 0x13268498
+0, 219600, 38016, 0x83b99095
+0, 223200, 38016, 0xbb66a4b3
+0, 226800, 38016, 0x9b849565
+0, 230400, 38016, 0x81edbe5a
+0, 234000, 38016, 0x43781090
+0, 237600, 38016, 0x449c6974
+0, 241200, 38016, 0xbe61a0e0
+0, 244800, 38016, 0x5128c18e
+0, 248400, 38016, 0x2bf68f94
+0, 252000, 38016, 0x0fea4bbb
+0, 255600, 38016, 0x7dd650d2
+0, 259200, 38016, 0xc4332d1d
+0, 262800, 38016, 0xc7946d1c
+0, 266400, 38016, 0x6856e33f
+0, 270000, 38016, 0x567f7cc2
+0, 273600, 38016, 0x378bafed
+0, 277200, 38016, 0x3f710f7c
+0, 280800, 38016, 0x5d866a75
+0, 284400, 38016, 0xe264bdc7
+0, 288000, 38016, 0x48b2cbe9
+0, 291600, 38016, 0x0a4be700
+0, 295200, 38016, 0xcc4ed40d
+0, 298800, 38016, 0x93acaf5a
+0, 302400, 38016, 0xdd7465f2
+0, 306000, 38016, 0x4d492419
+0, 309600, 38016, 0xc2c2ca96
+0, 313200, 38016, 0x190324d8
+0, 316800, 38016, 0xd8962520
+0, 320400, 38016, 0x8d917eea
+0, 324000, 38016, 0x08ec794f
+0, 327600, 38016, 0x7ab598a6
+0, 331200, 38016, 0xaaec0ef7
+0, 334800, 38016, 0x7f6ffbe3
+0, 338400, 38016, 0x116d37cb
+0, 342000, 38016, 0x7b3a59fd
+0, 345600, 38016, 0xed5361cb
+0, 349200, 38016, 0x9c558a98
+0, 352800, 38016, 0x292e84ea
+0, 356400, 38016, 0x0d35bf44
+0, 360000, 38016, 0xaad7bedd
+0, 363600, 38016, 0xa6111b87
+0, 367200, 38016, 0x3c8bfc27
+0, 370800, 38016, 0x65ce6703
+0, 374400, 38016, 0x60ece2ec
+0, 378000, 38016, 0x8abbb25f
+0, 381600, 38016, 0x41108b27
+0, 385200, 38016, 0xac26284e
+0, 388800, 38016, 0x5f4c0db0
+0, 392400, 38016, 0xcccbee91
+0, 396000, 38016, 0x34238dc1
+0, 399600, 38016, 0x7479b326
+0, 403200, 38016, 0xaaf8a957
+0, 406800, 38016, 0xc49b55cb
+0, 410400, 38016, 0x338b129f
+0, 414000, 38016, 0xf0ed3328
+0, 417600, 38016, 0x39f8dcb3
+0, 421200, 38016, 0x7aecb808
+0, 424800, 38016, 0x35e8827a
+0, 428400, 38016, 0x16ac8b9d
+0, 432000, 38016, 0x3abdcb78
+0, 435600, 38016, 0xdfbfba7f
+0, 439200, 38016, 0x692a964e
+0, 442800, 38016, 0x11a5ebdb
+0, 446400, 38016, 0x46bc156d
+0, 450000, 38016, 0x1b153144
+0, 453600, 38016, 0xdd23349a
+0, 457200, 38016, 0xbad02161
+0, 460800, 38016, 0xc5030168
+0, 464400, 38016, 0x3e4ff28d
+0, 468000, 38016, 0x17faffe2
+0, 471600, 38016, 0xba04122f
+0, 475200, 38016, 0x8a8e0e1e
+0, 478800, 38016, 0xe5d6fc7d
+0, 482400, 38016, 0x22e3e630
+0, 486000, 38016, 0x7eb1a935
+0, 489600, 38016, 0xde46bead
+0, 493200, 38016, 0x34abc542
+0, 496800, 38016, 0x10ceaea3
+0, 500400, 38016, 0xb86fa676
+0, 504000, 38016, 0xbd9d9d3c
+0, 507600, 38016, 0x355fb37f
+0, 511200, 38016, 0xfb6fd3b0
+0, 514800, 38016, 0x3062edf4
+0, 518400, 38016, 0xf6940b60
+0, 522000, 38016, 0x78bd2f4e
+0, 525600, 38016, 0x51fc444f
+0, 529200, 38016, 0x118957cc
+0, 532800, 38016, 0x53777a50
+0, 536400, 38016, 0xeeaa9761
diff --git a/tests/ref/fate/h264-conformance-mr2_mw_a b/tests/ref/fate/h264-conformance-mr2_mw_a
new file mode 100644
index 0000000000..e1728498b6
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-mr2_mw_a
@@ -0,0 +1,300 @@
+0, 0, 38016, 0x06150e88
+0, 3600, 38016, 0x32d90103
+0, 7200, 38016, 0xb32d338f
+0, 10800, 38016, 0x653c5fc3
+0, 14400, 38016, 0x69ec8bce
+0, 18000, 38016, 0x354fa53a
+0, 21600, 38016, 0x2ee79c2c
+0, 25200, 38016, 0x2c50666c
+0, 28800, 38016, 0x65ea824d
+0, 32400, 38016, 0x7419948b
+0, 36000, 38016, 0x19b298a0
+0, 39600, 38016, 0x29087291
+0, 43200, 38016, 0x92be1e95
+0, 46800, 38016, 0x9699119a
+0, 50400, 38016, 0xa4863bff
+0, 54000, 38016, 0x7dfc4f6b
+0, 57600, 38016, 0x946e5cfa
+0, 61200, 38016, 0x57287bdc
+0, 64800, 38016, 0xe7ae8bbe
+0, 68400, 38016, 0x21d367c7
+0, 72000, 38016, 0x9d0551c2
+0, 75600, 38016, 0xecc980b5
+0, 79200, 38016, 0x0ac4a749
+0, 82800, 38016, 0x9162262f
+0, 86400, 38016, 0x4a071c14
+0, 90000, 38016, 0x8571fae8
+0, 93600, 38016, 0xc0843707
+0, 97200, 38016, 0x7b4a63b0
+0, 100800, 38016, 0x5faf5d86
+0, 104400, 38016, 0x64623f6b
+0, 108000, 38016, 0xa97b523a
+0, 111600, 38016, 0x4048459a
+0, 115200, 38016, 0x56ba3d73
+0, 118800, 38016, 0x5394355a
+0, 122400, 38016, 0xb6c0176e
+0, 126000, 38016, 0x668c0772
+0, 129600, 38016, 0x86feeae8
+0, 133200, 38016, 0x9e75f9af
+0, 136800, 38016, 0xd72de054
+0, 140400, 38016, 0x39eb8743
+0, 144000, 38016, 0xd07b4d8e
+0, 147600, 38016, 0x89c045a9
+0, 151200, 38016, 0x209542e6
+0, 154800, 38016, 0xc43886ed
+0, 158400, 38016, 0xe091e433
+0, 162000, 38016, 0x176b1f65
+0, 165600, 38016, 0xd7730c3e
+0, 169200, 38016, 0x2bb90778
+0, 172800, 38016, 0x9b4540a8
+0, 176400, 38016, 0xd34c50db
+0, 180000, 38016, 0xf8007af9
+0, 183600, 38016, 0x54748466
+0, 187200, 38016, 0x20ab88a5
+0, 190800, 38016, 0x6aca8887
+0, 194400, 38016, 0xa1bf899f
+0, 198000, 38016, 0x8145966d
+0, 201600, 38016, 0x98f5a29c
+0, 205200, 38016, 0x4ed1b4d1
+0, 208800, 38016, 0x3177b95c
+0, 212400, 38016, 0x2b2cc4b2
+0, 216000, 38016, 0xf389db1e
+0, 219600, 38016, 0xfc6fca35
+0, 223200, 38016, 0x5f06af41
+0, 226800, 38016, 0x93a368d6
+0, 230400, 38016, 0x3de421f3
+0, 234000, 38016, 0x1e3f4b8d
+0, 237600, 38016, 0x6c3e6d4a
+0, 241200, 38016, 0x96ab4569
+0, 244800, 38016, 0x0de2d417
+0, 248400, 38016, 0x1a8a8d91
+0, 252000, 38016, 0xffb96503
+0, 255600, 38016, 0x1e1b4959
+0, 259200, 38016, 0x6aa267cd
+0, 262800, 38016, 0xcb87a00c
+0, 266400, 38016, 0x3b8ac17c
+0, 270000, 38016, 0x1348bf7b
+0, 273600, 38016, 0x1807b42d
+0, 277200, 38016, 0x22dfa6cb
+0, 280800, 38016, 0x3d23a622
+0, 284400, 38016, 0x662cb1e0
+0, 288000, 38016, 0x6ecfafaf
+0, 291600, 38016, 0xbffcaa71
+0, 295200, 38016, 0xf75ab93f
+0, 298800, 38016, 0xaea796bf
+0, 302400, 38016, 0x4a547fe8
+0, 306000, 38016, 0x2f1a800f
+0, 309600, 38016, 0xc7788261
+0, 313200, 38016, 0x8be17fd3
+0, 316800, 38016, 0xe830830c
+0, 320400, 38016, 0x62345ab7
+0, 324000, 38016, 0x70f926c6
+0, 327600, 38016, 0x37e94bf0
+0, 331200, 38016, 0xb1509312
+0, 334800, 38016, 0xc70fea7a
+0, 338400, 38016, 0x8062243b
+0, 342000, 38016, 0xe64a48b1
+0, 345600, 38016, 0x6f0c4dd7
+0, 349200, 38016, 0x5f9c53b4
+0, 352800, 38016, 0x4c5e506c
+0, 356400, 38016, 0xb7c631ef
+0, 360000, 38016, 0x30f302a9
+0, 363600, 38016, 0x4f28ebf0
+0, 367200, 38016, 0x3145d3d3
+0, 370800, 38016, 0x69b6c92f
+0, 374400, 38016, 0xa3b2c646
+0, 378000, 38016, 0x5ee00dec
+0, 381600, 38016, 0x313ee3ea
+0, 385200, 38016, 0x4002070e
+0, 388800, 38016, 0x5e0106b1
+0, 392400, 38016, 0xd03b2c4d
+0, 396000, 38016, 0xdd085316
+0, 399600, 38016, 0xb47a5f86
+0, 403200, 38016, 0xc25d5750
+0, 406800, 38016, 0x16ad52b3
+0, 410400, 38016, 0xa4fe2754
+0, 414000, 38016, 0xac5dfb18
+0, 417600, 38016, 0xe36ee83b
+0, 421200, 38016, 0xc708e54e
+0, 424800, 38016, 0x6c4beb85
+0, 428400, 38016, 0xf19fd825
+0, 432000, 38016, 0x94e7bb13
+0, 435600, 38016, 0x026e9ddf
+0, 439200, 38016, 0xdc71a591
+0, 442800, 38016, 0xb46eb169
+0, 446400, 38016, 0x25f5d5f4
+0, 450000, 38016, 0x27da203d
+0, 453600, 38016, 0xed217513
+0, 457200, 38016, 0x78d7bb08
+0, 460800, 38016, 0x623dd66d
+0, 464400, 38016, 0xd68c9f82
+0, 468000, 38016, 0x88b059e2
+0, 471600, 38016, 0x623159aa
+0, 475200, 38016, 0x1782245b
+0, 478800, 38016, 0x64f55b4a
+0, 482400, 38016, 0x83c7d154
+0, 486000, 38016, 0x43461c7c
+0, 489600, 38016, 0xc3e38c36
+0, 493200, 38016, 0x763394b4
+0, 496800, 38016, 0xff99749d
+0, 500400, 38016, 0x76ca13d0
+0, 504000, 38016, 0x29510aea
+0, 507600, 38016, 0x385f4309
+0, 511200, 38016, 0x142f5339
+0, 514800, 38016, 0x980ca66e
+0, 518400, 38016, 0xc330c0db
+0, 522000, 38016, 0xa7dbca0f
+0, 525600, 38016, 0x4261c683
+0, 529200, 38016, 0x6d467d81
+0, 532800, 38016, 0x1a107d17
+0, 536400, 38016, 0xd91e765a
+0, 540000, 38016, 0x789cfb94
+0, 543600, 38016, 0xc9bc9ee1
+0, 547200, 38016, 0x32f8754c
+0, 550800, 38016, 0xad906454
+0, 554400, 38016, 0xe5d6b78d
+0, 558000, 38016, 0x307bc291
+0, 561600, 38016, 0x629bdec9
+0, 565200, 38016, 0xf23ccd36
+0, 568800, 38016, 0x6105aa1b
+0, 572400, 38016, 0x3da66383
+0, 576000, 38016, 0x48ce2141
+0, 579600, 38016, 0x09fac5fd
+0, 583200, 38016, 0xa0bc208d
+0, 586800, 38016, 0x49892a74
+0, 590400, 38016, 0xfcb48093
+0, 594000, 38016, 0x850e7e4c
+0, 597600, 38016, 0x7cf24f55
+0, 601200, 38016, 0x654845f4
+0, 604800, 38016, 0x35ac5d63
+0, 608400, 38016, 0x795ea726
+0, 612000, 38016, 0xf387a03d
+0, 615600, 38016, 0x29279e19
+0, 619200, 38016, 0x48e3b03d
+0, 622800, 38016, 0xbcfb8192
+0, 626400, 38016, 0x3fe2749a
+0, 630000, 38016, 0xe0a04bbd
+0, 633600, 38016, 0x9a912cd7
+0, 637200, 38016, 0x39781e59
+0, 640800, 38016, 0x90e5131a
+0, 644400, 38016, 0x8bd90b4b
+0, 648000, 38016, 0x410dda61
+0, 651600, 38016, 0x33eb60fd
+0, 655200, 38016, 0x08e8632b
+0, 658800, 38016, 0x6163fd94
+0, 662400, 38016, 0x60af34e1
+0, 666000, 38016, 0x00016227
+0, 669600, 38016, 0xe6bd71bd
+0, 673200, 38016, 0xb40cdf28
+0, 676800, 38016, 0x3cdeb88e
+0, 680400, 38016, 0xb9ffe0d6
+0, 684000, 38016, 0xd630ce53
+0, 687600, 38016, 0x120056c2
+0, 691200, 38016, 0x0940399e
+0, 694800, 38016, 0x3d337fd0
+0, 698400, 38016, 0x6ef1f4b9
+0, 702000, 38016, 0x7e20f462
+0, 705600, 38016, 0xe397f30a
+0, 709200, 38016, 0x6eadf916
+0, 712800, 38016, 0x850e07b9
+0, 716400, 38016, 0x131b10db
+0, 720000, 38016, 0x17961d0e
+0, 723600, 38016, 0x447557da
+0, 727200, 38016, 0x93da7c0e
+0, 730800, 38016, 0xd6259239
+0, 734400, 38016, 0x2db99d95
+0, 738000, 38016, 0x648ea2bd
+0, 741600, 38016, 0xf8f46ef6
+0, 745200, 38016, 0xb85a7405
+0, 748800, 38016, 0x55dc7bbd
+0, 752400, 38016, 0xf38d76f8
+0, 756000, 38016, 0x9e860b96
+0, 759600, 38016, 0x7c5a5da7
+0, 763200, 38016, 0xdf36a619
+0, 766800, 38016, 0x327d1144
+0, 770400, 38016, 0x4a01eabd
+0, 774000, 38016, 0xee8b8717
+0, 777600, 38016, 0x874eaf23
+0, 781200, 38016, 0xddaaaf38
+0, 784800, 38016, 0xcab85271
+0, 788400, 38016, 0x970f0d3f
+0, 792000, 38016, 0x2a042dcc
+0, 795600, 38016, 0xa240e0e7
+0, 799200, 38016, 0x9564c081
+0, 802800, 38016, 0x894d82b4
+0, 806400, 38016, 0xb0748d24
+0, 810000, 38016, 0xafa56340
+0, 813600, 38016, 0x614287c6
+0, 817200, 38016, 0x4dfcaaac
+0, 820800, 38016, 0x58dab168
+0, 824400, 38016, 0x19fbb779
+0, 828000, 38016, 0x25adb4c9
+0, 831600, 38016, 0x5fc1bdae
+0, 835200, 38016, 0x6581a5d0
+0, 838800, 38016, 0x81d57061
+0, 842400, 38016, 0x43445964
+0, 846000, 38016, 0x68224a19
+0, 849600, 38016, 0xa85d390a
+0, 853200, 38016, 0xb571344d
+0, 856800, 38016, 0xd3632bfd
+0, 860400, 38016, 0x5af52535
+0, 864000, 38016, 0x21b93882
+0, 867600, 38016, 0x8da56743
+0, 871200, 38016, 0x9e7b9da2
+0, 874800, 38016, 0xc1a6bbd9
+0, 878400, 38016, 0xd77be9aa
+0, 882000, 38016, 0x2715100f
+0, 885600, 38016, 0xac8c1e30
+0, 889200, 38016, 0x110c14b9
+0, 892800, 38016, 0x5a8ff5c4
+0, 896400, 38016, 0x25d4ef19
+0, 900000, 38016, 0x080ffe7f
+0, 903600, 38016, 0x7f5b15ef
+0, 907200, 38016, 0xf97f10e1
+0, 910800, 38016, 0xdd80f7e5
+0, 914400, 38016, 0xb177df60
+0, 918000, 38016, 0x406023f6
+0, 921600, 38016, 0xf396220f
+0, 925200, 38016, 0x50fc2e7a
+0, 928800, 38016, 0x959b42da
+0, 932400, 38016, 0x61c7484a
+0, 936000, 38016, 0x09825cd1
+0, 939600, 38016, 0x0e7b6bd9
+0, 943200, 38016, 0x4a386b9e
+0, 946800, 38016, 0x817b5e14
+0, 950400, 38016, 0x51696069
+0, 954000, 38016, 0x84a35f51
+0, 957600, 38016, 0xf7758da3
+0, 961200, 38016, 0x787b6659
+0, 964800, 38016, 0xedb95942
+0, 968400, 38016, 0x4d4d8eb5
+0, 972000, 38016, 0x716cb36a
+0, 975600, 38016, 0x6556b912
+0, 979200, 38016, 0xbdd8c0b6
+0, 982800, 38016, 0xd9ffbba5
+0, 986400, 38016, 0xb5d7b4a7
+0, 990000, 38016, 0x4690a4ed
+0, 993600, 38016, 0x6fc8bdc4
+0, 997200, 38016, 0x827de512
+0, 1000800, 38016, 0x897bfc43
+0, 1004400, 38016, 0x41f8144a
+0, 1008000, 38016, 0xff7d369e
+0, 1011600, 38016, 0x526f48fa
+0, 1015200, 38016, 0x53245921
+0, 1018800, 38016, 0x69a3791e
+0, 1022400, 38016, 0x3de095df
+0, 1026000, 38016, 0x9ae2a0f2
+0, 1029600, 38016, 0xd1668593
+0, 1033200, 38016, 0x322c4f5b
+0, 1036800, 38016, 0x15882875
+0, 1040400, 38016, 0xa8886b9a
+0, 1044000, 38016, 0xc6f07ac1
+0, 1047600, 38016, 0xf9446d58
+0, 1051200, 38016, 0x98ef5ffc
+0, 1054800, 38016, 0x23434b21
+0, 1058400, 38016, 0xa1f353d2
+0, 1062000, 38016, 0x6b3d4452
+0, 1065600, 38016, 0xd4ac32bf
+0, 1069200, 38016, 0xc577065d
+0, 1072800, 38016, 0x2d01111d
+0, 1076400, 38016, 0xf51721d4
diff --git a/tests/ref/fate/h264-conformance-mr2_tandberg_e b/tests/ref/fate/h264-conformance-mr2_tandberg_e
new file mode 100644
index 0000000000..f47730f4dd
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-mr2_tandberg_e
@@ -0,0 +1,300 @@
+0, 0, 38016, 0xb96f1feb
+0, 3600, 38016, 0xca461abd
+0, 7200, 38016, 0x578a0c87
+0, 10800, 38016, 0xb3cc1ecb
+0, 14400, 38016, 0xd2c84463
+0, 18000, 38016, 0x815d6363
+0, 21600, 38016, 0x7cc17319
+0, 25200, 38016, 0x0f7e8cab
+0, 28800, 38016, 0x1876abee
+0, 32400, 38016, 0x8f25bccd
+0, 36000, 38016, 0xc1c7bb9c
+0, 39600, 38016, 0xf861bdb5
+0, 43200, 38016, 0xae1ac352
+0, 46800, 38016, 0x9b6f990b
+0, 50400, 38016, 0xa5217121
+0, 54000, 38016, 0x12ac8367
+0, 57600, 38016, 0x687f8526
+0, 61200, 38016, 0x9b009a01
+0, 64800, 38016, 0x9c629e04
+0, 68400, 38016, 0xfee5a366
+0, 72000, 38016, 0x264e9b00
+0, 75600, 38016, 0xf89f9508
+0, 79200, 38016, 0x19247145
+0, 82800, 38016, 0xc4cd41bd
+0, 86400, 38016, 0x035c2696
+0, 90000, 38016, 0x22310e7f
+0, 93600, 38016, 0xdd771898
+0, 97200, 38016, 0x61522adf
+0, 100800, 38016, 0x5eee412f
+0, 104400, 38016, 0x03f05077
+0, 108000, 38016, 0x69625001
+0, 111600, 38016, 0x8e025073
+0, 115200, 38016, 0x37374607
+0, 118800, 38016, 0xc90547ea
+0, 122400, 38016, 0xe9eb4193
+0, 126000, 38016, 0xf7214070
+0, 129600, 38016, 0xc3ce38de
+0, 133200, 38016, 0xb99933cb
+0, 136800, 38016, 0x5ee12b39
+0, 140400, 38016, 0x13c921be
+0, 144000, 38016, 0x66341136
+0, 147600, 38016, 0x97710eef
+0, 151200, 38016, 0xe5910c52
+0, 154800, 38016, 0xbf9d0fbb
+0, 158400, 38016, 0x0405177d
+0, 162000, 38016, 0x25ec13da
+0, 165600, 38016, 0xda29f457
+0, 169200, 38016, 0x8e7dbe67
+0, 172800, 38016, 0x64809802
+0, 176400, 38016, 0xbd45731d
+0, 180000, 38016, 0xf9e75c5b
+0, 183600, 38016, 0x4509551e
+0, 187200, 38016, 0xd73b54c9
+0, 190800, 38016, 0x434d430e
+0, 194400, 38016, 0xfbd940fe
+0, 198000, 38016, 0xddb1612a
+0, 201600, 38016, 0xffec797a
+0, 205200, 38016, 0x4355aa0c
+0, 208800, 38016, 0x1776d3e0
+0, 212400, 38016, 0x7a64dd7f
+0, 216000, 38016, 0xe619e56c
+0, 219600, 38016, 0x43b0d8e7
+0, 223200, 38016, 0x2103caf1
+0, 226800, 38016, 0x808fbb8d
+0, 230400, 38016, 0x0654ae1e
+0, 234000, 38016, 0x8b6da03f
+0, 237600, 38016, 0x15ee6b73
+0, 241200, 38016, 0x8ab049c4
+0, 244800, 38016, 0x7c6d351c
+0, 248400, 38016, 0xe3fa3794
+0, 252000, 38016, 0x5b3c581c
+0, 255600, 38016, 0xf07a70e8
+0, 259200, 38016, 0xcc378cb4
+0, 262800, 38016, 0x15f49788
+0, 266400, 38016, 0x23de74b4
+0, 270000, 38016, 0x2e842db6
+0, 273600, 38016, 0xd23cf2b9
+0, 277200, 38016, 0xfbb7cea3
+0, 280800, 38016, 0x05039bf0
+0, 284400, 38016, 0x854d8c6c
+0, 288000, 38016, 0x7d2770d7
+0, 291600, 38016, 0x7e5f6374
+0, 295200, 38016, 0x204753ee
+0, 298800, 38016, 0x66906f4d
+0, 302400, 38016, 0xf6ae700b
+0, 306000, 38016, 0x64438aba
+0, 309600, 38016, 0xc93aa41f
+0, 313200, 38016, 0x27bdbdb7
+0, 316800, 38016, 0x7aceb0a3
+0, 320400, 38016, 0x751d81bd
+0, 324000, 38016, 0xa86e3940
+0, 327600, 38016, 0x9d022dd6
+0, 331200, 38016, 0x0a484d7c
+0, 334800, 38016, 0x6d555adb
+0, 338400, 38016, 0xfe9799e0
+0, 342000, 38016, 0x245ad49b
+0, 345600, 38016, 0x6d22e3e3
+0, 349200, 38016, 0xdffc00df
+0, 352800, 38016, 0x34ec1984
+0, 356400, 38016, 0x15172b1a
+0, 360000, 38016, 0x05d742d8
+0, 363600, 38016, 0xc94350fc
+0, 367200, 38016, 0x3af65a84
+0, 370800, 38016, 0xfbf96492
+0, 374400, 38016, 0x1c8f6e2e
+0, 378000, 38016, 0xe41677dc
+0, 381600, 38016, 0xd36284e1
+0, 385200, 38016, 0xa5f57f14
+0, 388800, 38016, 0x6a7d70f4
+0, 392400, 38016, 0x4c1a584f
+0, 396000, 38016, 0x4f093dd3
+0, 399600, 38016, 0x5a1634b3
+0, 403200, 38016, 0xdd1a29b5
+0, 406800, 38016, 0x28c81aa3
+0, 410400, 38016, 0x681a0e29
+0, 414000, 38016, 0x74110802
+0, 417600, 38016, 0x468afe8a
+0, 421200, 38016, 0xfbb609e0
+0, 424800, 38016, 0x79d60da0
+0, 428400, 38016, 0x0774036d
+0, 432000, 38016, 0x904bf22d
+0, 435600, 38016, 0xddeaedb5
+0, 439200, 38016, 0x5de1d5af
+0, 442800, 38016, 0xb9bad4cf
+0, 446400, 38016, 0x452bcf0e
+0, 450000, 38016, 0x9ab9cca8
+0, 453600, 38016, 0x9b77d6ba
+0, 457200, 38016, 0xb9f5dfaf
+0, 460800, 38016, 0x7b33fac4
+0, 464400, 38016, 0x25e41c67
+0, 468000, 38016, 0x6af749b5
+0, 471600, 38016, 0xe6576d07
+0, 475200, 38016, 0x55a49498
+0, 478800, 38016, 0x3bf4bd93
+0, 482400, 38016, 0xba65cabb
+0, 486000, 38016, 0x0c02de64
+0, 489600, 38016, 0xdb86e742
+0, 493200, 38016, 0x37acdf69
+0, 496800, 38016, 0x8c1ea6be
+0, 500400, 38016, 0x5295739e
+0, 504000, 38016, 0xb2f85eb7
+0, 507600, 38016, 0x17394375
+0, 511200, 38016, 0x8a7f7528
+0, 514800, 38016, 0x17c3e7a5
+0, 518400, 38016, 0xbe1763ef
+0, 522000, 38016, 0x236eab70
+0, 525600, 38016, 0x4b3e9bbb
+0, 529200, 38016, 0xc1d664f9
+0, 532800, 38016, 0xc2300411
+0, 536400, 38016, 0x1cf2903c
+0, 540000, 38016, 0xd8783451
+0, 543600, 38016, 0xf3c8ff31
+0, 547200, 38016, 0xf6dfd324
+0, 550800, 38016, 0x7b93b5d0
+0, 554400, 38016, 0xf246a0f4
+0, 558000, 38016, 0x5e970b10
+0, 561600, 38016, 0xcb98878e
+0, 565200, 38016, 0xc804f169
+0, 568800, 38016, 0x801fec84
+0, 572400, 38016, 0xb242ee41
+0, 576000, 38016, 0xb8a7f3c1
+0, 579600, 38016, 0x24b10420
+0, 583200, 38016, 0x4b7601ab
+0, 586800, 38016, 0x4c30f75a
+0, 590400, 38016, 0x8e8cf5ae
+0, 594000, 38016, 0xd94fefd2
+0, 597600, 38016, 0x31c9c604
+0, 601200, 38016, 0x09d29f6f
+0, 604800, 38016, 0xa55e8075
+0, 608400, 38016, 0x482d53da
+0, 612000, 38016, 0x957e36f1
+0, 615600, 38016, 0xcd261153
+0, 619200, 38016, 0xbf08d284
+0, 622800, 38016, 0x42957a37
+0, 626400, 38016, 0x28b73287
+0, 630000, 38016, 0xe6e33893
+0, 633600, 38016, 0x7f0e3db5
+0, 637200, 38016, 0xb80b46a3
+0, 640800, 38016, 0x1ccca614
+0, 644400, 38016, 0x531e2dfa
+0, 648000, 38016, 0x0d95ef09
+0, 651600, 38016, 0xb631a635
+0, 655200, 38016, 0x4ed86a94
+0, 658800, 38016, 0x919832ab
+0, 662400, 38016, 0x724b60d5
+0, 666000, 38016, 0x9965f58f
+0, 669600, 38016, 0x7b04f567
+0, 673200, 38016, 0x774740d6
+0, 676800, 38016, 0xf8204134
+0, 680400, 38016, 0xcbadfa7a
+0, 684000, 38016, 0x9748728a
+0, 687600, 38016, 0x973047e7
+0, 691200, 38016, 0xcc52aa4d
+0, 694800, 38016, 0x3fa7d81f
+0, 698400, 38016, 0x7a33eddd
+0, 702000, 38016, 0xe51ed885
+0, 705600, 38016, 0xcc93b1a2
+0, 709200, 38016, 0xf70cab47
+0, 712800, 38016, 0x983eb17e
+0, 716400, 38016, 0xdb02d6bb
+0, 720000, 38016, 0xad99c4f9
+0, 723600, 38016, 0xd0e5618c
+0, 727200, 38016, 0x5eb05134
+0, 730800, 38016, 0x4ce0cf23
+0, 734400, 38016, 0x70de3edb
+0, 738000, 38016, 0x3519c858
+0, 741600, 38016, 0x1a4e785f
+0, 745200, 38016, 0x8d09b6ee
+0, 748800, 38016, 0x79b2fd7e
+0, 752400, 38016, 0xcd5aa9a4
+0, 756000, 38016, 0x1e1effd2
+0, 759600, 38016, 0xa1d1b497
+0, 763200, 38016, 0x5c036e34
+0, 766800, 38016, 0x937f152b
+0, 770400, 38016, 0xe434bed9
+0, 774000, 38016, 0x09eb8913
+0, 777600, 38016, 0x4d671935
+0, 781200, 38016, 0x9c62f30c
+0, 784800, 38016, 0x4d080e9c
+0, 788400, 38016, 0x7fe23bb4
+0, 792000, 38016, 0x95399638
+0, 795600, 38016, 0x6aa41ac2
+0, 799200, 38016, 0xe748bc32
+0, 802800, 38016, 0x5fab449b
+0, 806400, 38016, 0x8798bb84
+0, 810000, 38016, 0x4e700879
+0, 813600, 38016, 0x6d794fa4
+0, 817200, 38016, 0xf40c9e13
+0, 820800, 38016, 0x92330fdb
+0, 824400, 38016, 0x558b899a
+0, 828000, 38016, 0xec2320ed
+0, 831600, 38016, 0x3179f275
+0, 835200, 38016, 0x86cfd19d
+0, 838800, 38016, 0x2c88c48a
+0, 842400, 38016, 0x0c84b86f
+0, 846000, 38016, 0x95069c90
+0, 849600, 38016, 0x82da8061
+0, 853200, 38016, 0x847f7634
+0, 856800, 38016, 0x48d46d89
+0, 860400, 38016, 0x220d81f3
+0, 864000, 38016, 0x5cbe9a7e
+0, 867600, 38016, 0xc0e9d5b9
+0, 871200, 38016, 0xcc26ff97
+0, 874800, 38016, 0x01332392
+0, 878400, 38016, 0x44e44439
+0, 882000, 38016, 0xfe8751ee
+0, 885600, 38016, 0x010d74a1
+0, 889200, 38016, 0xbf4a7c2d
+0, 892800, 38016, 0x77869402
+0, 896400, 38016, 0x1ae8b176
+0, 900000, 38016, 0x917cc0b8
+0, 903600, 38016, 0x3eb6d02a
+0, 907200, 38016, 0x815ed568
+0, 910800, 38016, 0xcd6bcd54
+0, 914400, 38016, 0xd3e5bfcd
+0, 918000, 38016, 0x95e2bd36
+0, 921600, 38016, 0x102ca664
+0, 925200, 38016, 0x95c59672
+0, 928800, 38016, 0x1d5b8845
+0, 932400, 38016, 0x3d988a4d
+0, 936000, 38016, 0x4139a121
+0, 939600, 38016, 0x9eeca508
+0, 943200, 38016, 0xf9f2a9cc
+0, 946800, 38016, 0x9420b177
+0, 950400, 38016, 0x13edadd7
+0, 954000, 38016, 0x3d18a416
+0, 957600, 38016, 0x88b09166
+0, 961200, 38016, 0x2e1c939c
+0, 964800, 38016, 0x4f8381c3
+0, 968400, 38016, 0x36647382
+0, 972000, 38016, 0x26a272c1
+0, 975600, 38016, 0x9a5a7cc8
+0, 979200, 38016, 0xc2fc7734
+0, 982800, 38016, 0xd21b7e6c
+0, 986400, 38016, 0x948c77a0
+0, 990000, 38016, 0x179e7d1a
+0, 993600, 38016, 0xbfd17561
+0, 997200, 38016, 0x30f97511
+0, 1000800, 38016, 0x893e6f54
+0, 1004400, 38016, 0x76036ecb
+0, 1008000, 38016, 0x3f0e6966
+0, 1011600, 38016, 0xed946afe
+0, 1015200, 38016, 0x2c2676de
+0, 1018800, 38016, 0x7b348c94
+0, 1022400, 38016, 0x77f5afc8
+0, 1026000, 38016, 0xdb54cea0
+0, 1029600, 38016, 0xc9fed974
+0, 1033200, 38016, 0x04bbe454
+0, 1036800, 38016, 0x7320ffb9
+0, 1040400, 38016, 0x841b199a
+0, 1044000, 38016, 0x7d792ee3
+0, 1047600, 38016, 0x5ce33607
+0, 1051200, 38016, 0xec52432e
+0, 1054800, 38016, 0xe6a04efe
+0, 1058400, 38016, 0xc7b45cef
+0, 1062000, 38016, 0xdbe76bf9
+0, 1065600, 38016, 0xd57f7e18
+0, 1069200, 38016, 0x8e03915d
+0, 1072800, 38016, 0x30779ec6
+0, 1076400, 38016, 0x89b1aa42
diff --git a/tests/ref/fate/h264-conformance-mr3_tandberg_b b/tests/ref/fate/h264-conformance-mr3_tandberg_b
new file mode 100644
index 0000000000..ce9813e51a
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-mr3_tandberg_b
@@ -0,0 +1,300 @@
+0, 0, 38016, 0xb96f1feb
+0, 3600, 38016, 0xca461abd
+0, 7200, 38016, 0x578a0c87
+0, 10800, 38016, 0xb3cc1ecb
+0, 14400, 38016, 0xd2c84463
+0, 18000, 38016, 0x815d6363
+0, 21600, 38016, 0x7cc17319
+0, 25200, 38016, 0x0f7e8cab
+0, 28800, 38016, 0x1876abee
+0, 32400, 38016, 0xda748c2f
+0, 36000, 38016, 0x7b4dbff0
+0, 39600, 38016, 0xd4a1b24a
+0, 43200, 38016, 0x714cb4cc
+0, 46800, 38016, 0x2c6d80f0
+0, 50400, 38016, 0x92266151
+0, 54000, 38016, 0x6b766a23
+0, 57600, 38016, 0xb24f7efe
+0, 61200, 38016, 0x8410838e
+0, 64800, 38016, 0x67fe872a
+0, 68400, 38016, 0x55b49d36
+0, 72000, 38016, 0x7a1c9c41
+0, 75600, 38016, 0xb4818e0e
+0, 79200, 38016, 0x25f6683c
+0, 82800, 38016, 0xe4d141a4
+0, 86400, 38016, 0x808216ad
+0, 90000, 38016, 0x2acf0baf
+0, 93600, 38016, 0xf3de13c4
+0, 97200, 38016, 0x5f412187
+0, 100800, 38016, 0xb31a340a
+0, 104400, 38016, 0x019d42d1
+0, 108000, 38016, 0xeeb94b9b
+0, 111600, 38016, 0xef55472e
+0, 115200, 38016, 0xdb5e3697
+0, 118800, 38016, 0x8565303e
+0, 122400, 38016, 0x5f9c2c1b
+0, 126000, 38016, 0xeb3d27f4
+0, 129600, 38016, 0x9a43282d
+0, 133200, 38016, 0xe04720c6
+0, 136800, 38016, 0x19cc0eba
+0, 140400, 38016, 0x218efeb6
+0, 144000, 38016, 0x7733f491
+0, 147600, 38016, 0x7f3bede9
+0, 151200, 38016, 0x49c5ec0d
+0, 154800, 38016, 0x803cf19e
+0, 158400, 38016, 0x31de0d3f
+0, 162000, 38016, 0xa7e30426
+0, 165600, 38016, 0xba37f068
+0, 169200, 38016, 0x2842bdf8
+0, 172800, 38016, 0x76df97dc
+0, 176400, 38016, 0xf3246d26
+0, 180000, 38016, 0x0a384d72
+0, 183600, 38016, 0x40964f41
+0, 187200, 38016, 0x46364324
+0, 190800, 38016, 0x7cbf3db4
+0, 194400, 38016, 0x7a223bec
+0, 198000, 38016, 0x458651c1
+0, 201600, 38016, 0xb82d7e3c
+0, 205200, 38016, 0x0f50a55d
+0, 208800, 38016, 0xc306cae4
+0, 212400, 38016, 0x9d6ddfcb
+0, 216000, 38016, 0xb602e8e9
+0, 219600, 38016, 0xbf0ae386
+0, 223200, 38016, 0x0a8bd46e
+0, 226800, 38016, 0xd437c5c1
+0, 230400, 38016, 0xd61d9959
+0, 234000, 38016, 0x70639b56
+0, 237600, 38016, 0x36fd407b
+0, 241200, 38016, 0x58ce3ddd
+0, 244800, 38016, 0x86cc1d8c
+0, 248400, 38016, 0xee422dc2
+0, 252000, 38016, 0xab475639
+0, 255600, 38016, 0xc1327ad8
+0, 259200, 38016, 0x63d196d4
+0, 262800, 38016, 0x1aba8ebd
+0, 266400, 38016, 0x74a269ac
+0, 270000, 38016, 0x267f3563
+0, 273600, 38016, 0xa18ff180
+0, 277200, 38016, 0x70c9c9fd
+0, 280800, 38016, 0xa6c59f9c
+0, 284400, 38016, 0xd7cd8927
+0, 288000, 38016, 0xd30b7345
+0, 291600, 38016, 0x679a4dda
+0, 295200, 38016, 0xeb0562de
+0, 298800, 38016, 0xdd7d6cdb
+0, 302400, 38016, 0xd6e26b73
+0, 306000, 38016, 0xa65a860f
+0, 309600, 38016, 0xae95c71e
+0, 313200, 38016, 0x1a89ca86
+0, 316800, 38016, 0xa33ecee6
+0, 320400, 38016, 0x821da6cb
+0, 324000, 38016, 0xf0e1612f
+0, 327600, 38016, 0x67b8516b
+0, 331200, 38016, 0x62f965bc
+0, 334800, 38016, 0xd1917aa6
+0, 338400, 38016, 0xe72db54d
+0, 342000, 38016, 0x9b64e721
+0, 345600, 38016, 0xa819efda
+0, 349200, 38016, 0xeacfdacb
+0, 352800, 38016, 0x52f235e1
+0, 356400, 38016, 0x2b512cb8
+0, 360000, 38016, 0xaac73fb3
+0, 363600, 38016, 0x7d2d504f
+0, 367200, 38016, 0x396d503a
+0, 370800, 38016, 0x97905235
+0, 374400, 38016, 0xf0056693
+0, 378000, 38016, 0x728a6a9e
+0, 381600, 38016, 0x0eed7824
+0, 385200, 38016, 0x59506237
+0, 388800, 38016, 0xd4304c93
+0, 392400, 38016, 0x7e663ee8
+0, 396000, 38016, 0x0ebc2d11
+0, 399600, 38016, 0x52db2112
+0, 403200, 38016, 0x74aa1815
+0, 406800, 38016, 0x57a60dc6
+0, 410400, 38016, 0x86e9fa32
+0, 414000, 38016, 0x67e8ff09
+0, 417600, 38016, 0x26e8f7ea
+0, 421200, 38016, 0x183dff56
+0, 424800, 38016, 0xa470af8d
+0, 428400, 38016, 0xe017d594
+0, 432000, 38016, 0xb899d48b
+0, 435600, 38016, 0x0d3bc5f7
+0, 439200, 38016, 0xd68bbb0d
+0, 442800, 38016, 0x8bf5b4cb
+0, 446400, 38016, 0x6bfcaa47
+0, 450000, 38016, 0x29a9b01b
+0, 453600, 38016, 0xcdedbdb7
+0, 457200, 38016, 0xdb5ad9c3
+0, 460800, 38016, 0x468aeef6
+0, 464400, 38016, 0xdc2b143e
+0, 468000, 38016, 0x6776277c
+0, 471600, 38016, 0xb78d5294
+0, 475200, 38016, 0x1dfb63ab
+0, 478800, 38016, 0xbd1f99bc
+0, 482400, 38016, 0xde16b89a
+0, 486000, 38016, 0xbf46edca
+0, 489600, 38016, 0x6306e8c4
+0, 493200, 38016, 0x7b09d224
+0, 496800, 38016, 0xfea1aff6
+0, 500400, 38016, 0x183686b0
+0, 504000, 38016, 0x665a61ff
+0, 507600, 38016, 0xc8af42d1
+0, 511200, 38016, 0xe2326bc1
+0, 514800, 38016, 0x56dbde82
+0, 518400, 38016, 0xa0254f97
+0, 522000, 38016, 0x3b74a0b4
+0, 525600, 38016, 0x9aee9b7f
+0, 529200, 38016, 0xd94b6133
+0, 532800, 38016, 0x5819f795
+0, 536400, 38016, 0xc45a8c02
+0, 540000, 38016, 0x2f9204a0
+0, 543600, 38016, 0xbe09e051
+0, 547200, 38016, 0xb542badd
+0, 550800, 38016, 0x23bd9e00
+0, 554400, 38016, 0x4f338d3d
+0, 558000, 38016, 0x8c91e8f3
+0, 561600, 38016, 0xa7347d57
+0, 565200, 38016, 0x6d91de4d
+0, 568800, 38016, 0x3443d936
+0, 572400, 38016, 0x9d25b4e2
+0, 576000, 38016, 0xd93cd4b3
+0, 579600, 38016, 0xa1c9e9a0
+0, 583200, 38016, 0x1482f220
+0, 586800, 38016, 0x1295f270
+0, 590400, 38016, 0x399ae9da
+0, 594000, 38016, 0x85dcdf28
+0, 597600, 38016, 0x4207b9e5
+0, 601200, 38016, 0xad1c9d75
+0, 604800, 38016, 0x4a266c14
+0, 608400, 38016, 0x3afc4508
+0, 612000, 38016, 0x2b1b2385
+0, 615600, 38016, 0x738f005f
+0, 619200, 38016, 0xfec3d833
+0, 622800, 38016, 0x3f7f6ae9
+0, 626400, 38016, 0xd8551823
+0, 630000, 38016, 0x6df03570
+0, 633600, 38016, 0x767c3054
+0, 637200, 38016, 0x89bd342c
+0, 640800, 38016, 0x77ba806c
+0, 644400, 38016, 0x1c98005c
+0, 648000, 38016, 0xa13ce2a3
+0, 651600, 38016, 0x1be59915
+0, 655200, 38016, 0x279c6027
+0, 658800, 38016, 0x96ac11a2
+0, 662400, 38016, 0x3ae95131
+0, 666000, 38016, 0xae19f7fe
+0, 669600, 38016, 0xcde4efe6
+0, 673200, 38016, 0x5ecc3f7a
+0, 676800, 38016, 0x79645152
+0, 680400, 38016, 0x1ee2e89f
+0, 684000, 38016, 0x91d34bb4
+0, 687600, 38016, 0xf019d464
+0, 691200, 38016, 0x8eb07205
+0, 694800, 38016, 0x5399bb5b
+0, 698400, 38016, 0x61f0c77a
+0, 702000, 38016, 0xb2bd8726
+0, 705600, 38016, 0x47b89243
+0, 709200, 38016, 0xebfe4d76
+0, 712800, 38016, 0xe8f87d91
+0, 716400, 38016, 0x5e9fb239
+0, 720000, 38016, 0x357ca1f8
+0, 723600, 38016, 0x757d2e02
+0, 727200, 38016, 0x40672e7c
+0, 730800, 38016, 0xd966abca
+0, 734400, 38016, 0xe98d0d47
+0, 738000, 38016, 0x341babf5
+0, 741600, 38016, 0xd12d5a0c
+0, 745200, 38016, 0xea2f99ab
+0, 748800, 38016, 0x14bce88e
+0, 752400, 38016, 0xe4bda9e8
+0, 756000, 38016, 0x2c57ec89
+0, 759600, 38016, 0x28bbb83e
+0, 763200, 38016, 0xf8444b54
+0, 766800, 38016, 0x3aba03cd
+0, 770400, 38016, 0x373daa20
+0, 774000, 38016, 0x69586597
+0, 777600, 38016, 0xc0c70d53
+0, 781200, 38016, 0x76a5df5a
+0, 784800, 38016, 0x1afde8f0
+0, 788400, 38016, 0x9638285a
+0, 792000, 38016, 0x9f0686c0
+0, 795600, 38016, 0xc65b2238
+0, 799200, 38016, 0x0d61b610
+0, 802800, 38016, 0x78e14e1f
+0, 806400, 38016, 0xcf80ac4a
+0, 810000, 38016, 0xe094083d
+0, 813600, 38016, 0xee5e612e
+0, 817200, 38016, 0x51cdad9d
+0, 820800, 38016, 0xae41100e
+0, 824400, 38016, 0x77558f58
+0, 828000, 38016, 0xb9503b95
+0, 831600, 38016, 0xb71dffeb
+0, 835200, 38016, 0x1872e3e6
+0, 838800, 38016, 0x29c3d252
+0, 842400, 38016, 0x1c77c6ec
+0, 846000, 38016, 0x26feb194
+0, 849600, 38016, 0x3307c3c4
+0, 853200, 38016, 0x8e5a8080
+0, 856800, 38016, 0x933472f7
+0, 860400, 38016, 0xd4768d84
+0, 864000, 38016, 0x3324485f
+0, 867600, 38016, 0xd50af078
+0, 871200, 38016, 0x53820752
+0, 874800, 38016, 0xbe7f1c47
+0, 878400, 38016, 0xe43d3a34
+0, 882000, 38016, 0x57194b82
+0, 885600, 38016, 0x68a052ed
+0, 889200, 38016, 0x5c898052
+0, 892800, 38016, 0x7104a6ad
+0, 896400, 38016, 0x1676b5e8
+0, 900000, 38016, 0xe1cfd375
+0, 903600, 38016, 0x16fede04
+0, 907200, 38016, 0xca49dd4a
+0, 910800, 38016, 0x7b98d9d1
+0, 914400, 38016, 0x4020d210
+0, 918000, 38016, 0x62c5d1e4
+0, 921600, 38016, 0x756abdb4
+0, 925200, 38016, 0x558fb00f
+0, 928800, 38016, 0x4ab0b1f1
+0, 932400, 38016, 0x7c9fb0c2
+0, 936000, 38016, 0xcecfbdd0
+0, 939600, 38016, 0x70e6d174
+0, 943200, 38016, 0x83d7ddde
+0, 946800, 38016, 0xbbcde2d9
+0, 950400, 38016, 0xc89eeaef
+0, 954000, 38016, 0x8565e15c
+0, 957600, 38016, 0x28e0db24
+0, 961200, 38016, 0x1d9dd334
+0, 964800, 38016, 0xce02c452
+0, 968400, 38016, 0xe29dbd0c
+0, 972000, 38016, 0x4aa3b638
+0, 975600, 38016, 0x5533c135
+0, 979200, 38016, 0x6c57b65f
+0, 982800, 38016, 0x23d3b851
+0, 986400, 38016, 0xd8cbb960
+0, 990000, 38016, 0x02edb916
+0, 993600, 38016, 0xa622bd42
+0, 997200, 38016, 0x4ba5be1c
+0, 1000800, 38016, 0xe69bb625
+0, 1004400, 38016, 0xbca5b292
+0, 1008000, 38016, 0xde38b1c8
+0, 1011600, 38016, 0xe9e3b617
+0, 1015200, 38016, 0x216cc574
+0, 1018800, 38016, 0x3780c5ad
+0, 1022400, 38016, 0x5531e3f9
+0, 1026000, 38016, 0xe2c5f5d4
+0, 1029600, 38016, 0x24cefc6e
+0, 1033200, 38016, 0xa3ce003d
+0, 1036800, 38016, 0x42d01c9e
+0, 1040400, 38016, 0xbfc13689
+0, 1044000, 38016, 0x122647a9
+0, 1047600, 38016, 0xe45254da
+0, 1051200, 38016, 0xad955b0c
+0, 1054800, 38016, 0x4b086abb
+0, 1058400, 38016, 0xd4857b8c
+0, 1062000, 38016, 0xa71594ce
+0, 1065600, 38016, 0x04e4a73d
+0, 1069200, 38016, 0x295abf63
+0, 1072800, 38016, 0xbe4ed5dd
+0, 1076400, 38016, 0x087bcf64
diff --git a/tests/ref/fate/h264-conformance-mr4_tandberg_c b/tests/ref/fate/h264-conformance-mr4_tandberg_c
new file mode 100644
index 0000000000..5aceda2c23
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-mr4_tandberg_c
@@ -0,0 +1,300 @@
+0, 0, 38016, 0xb96f1feb
+0, 3600, 38016, 0x0ff111f0
+0, 7200, 38016, 0xbac70271
+0, 10800, 38016, 0x8c361866
+0, 14400, 38016, 0x9d9640be
+0, 18000, 38016, 0xd36b563b
+0, 21600, 38016, 0xe5966f5f
+0, 25200, 38016, 0xb8b28ab0
+0, 28800, 38016, 0xf817a3e6
+0, 32400, 38016, 0xba26acd8
+0, 36000, 38016, 0x453dba2f
+0, 39600, 38016, 0xe50bd16e
+0, 43200, 38016, 0x95c2c1f7
+0, 46800, 38016, 0xc6a59679
+0, 50400, 38016, 0x9f468726
+0, 54000, 38016, 0x371091eb
+0, 57600, 38016, 0xd499d26b
+0, 61200, 38016, 0x172fd389
+0, 64800, 38016, 0x3c04de2a
+0, 68400, 38016, 0xa461aed2
+0, 72000, 38016, 0x098cdef2
+0, 75600, 38016, 0x5d8d9c7d
+0, 79200, 38016, 0x087db718
+0, 82800, 38016, 0x064191ef
+0, 86400, 38016, 0x2f842ef5
+0, 90000, 38016, 0x2b5b0e77
+0, 93600, 38016, 0xcc671b7f
+0, 97200, 38016, 0x859f4f75
+0, 100800, 38016, 0x132a7a48
+0, 104400, 38016, 0x6e8987ab
+0, 108000, 38016, 0x02db8591
+0, 111600, 38016, 0x30567d9b
+0, 115200, 38016, 0x92ea3b53
+0, 118800, 38016, 0xae807c6e
+0, 122400, 38016, 0xbfbc7458
+0, 126000, 38016, 0x66294d04
+0, 129600, 38016, 0xdb2a5f10
+0, 133200, 38016, 0xb19112fe
+0, 136800, 38016, 0xdd26490e
+0, 140400, 38016, 0x51cd31de
+0, 144000, 38016, 0xf6cc2dad
+0, 147600, 38016, 0x0c302dfd
+0, 151200, 38016, 0xb846245d
+0, 154800, 38016, 0xd61c2e88
+0, 158400, 38016, 0xf8264117
+0, 162000, 38016, 0x13862a3d
+0, 165600, 38016, 0xfb481750
+0, 169200, 38016, 0x6377e4af
+0, 172800, 38016, 0x1759c1b4
+0, 176400, 38016, 0xca03942b
+0, 180000, 38016, 0x0126810b
+0, 183600, 38016, 0x3c8c820b
+0, 187200, 38016, 0x863379ec
+0, 190800, 38016, 0xaf9b6d52
+0, 194400, 38016, 0x9ba86946
+0, 198000, 38016, 0xf97980fb
+0, 201600, 38016, 0x9cf4785c
+0, 205200, 38016, 0x51cdcdc7
+0, 208800, 38016, 0x923de162
+0, 212400, 38016, 0xdcd3c3cb
+0, 216000, 38016, 0x6f9fea31
+0, 219600, 38016, 0x7ab7b133
+0, 223200, 38016, 0xb8a2c99f
+0, 226800, 38016, 0x040a99c6
+0, 230400, 38016, 0xa8c4b28f
+0, 234000, 38016, 0x4c577509
+0, 237600, 38016, 0xb30f7277
+0, 241200, 38016, 0xb5f73b46
+0, 244800, 38016, 0x723f3ccc
+0, 248400, 38016, 0x3e4a0cca
+0, 252000, 38016, 0xe0df386e
+0, 255600, 38016, 0xc4832c7b
+0, 259200, 38016, 0x014a2d9f
+0, 262800, 38016, 0xae4272d9
+0, 266400, 38016, 0xcde25e0f
+0, 270000, 38016, 0xdecb13d6
+0, 273600, 38016, 0x9d8ae5d9
+0, 277200, 38016, 0x280abccf
+0, 280800, 38016, 0x885a9fcc
+0, 284400, 38016, 0x9b328b6f
+0, 288000, 38016, 0x8fb7663c
+0, 291600, 38016, 0x35fd4c32
+0, 295200, 38016, 0xdd484efb
+0, 298800, 38016, 0xb8f576b1
+0, 302400, 38016, 0xe8016312
+0, 306000, 38016, 0x65a88d55
+0, 309600, 38016, 0x83dca3a9
+0, 313200, 38016, 0xfc3ba542
+0, 316800, 38016, 0x3d55ac26
+0, 320400, 38016, 0xb91f6bbe
+0, 324000, 38016, 0x67bd2f75
+0, 327600, 38016, 0x0af12875
+0, 331200, 38016, 0xc18a2d55
+0, 334800, 38016, 0x22fd4e01
+0, 338400, 38016, 0x466b8dcd
+0, 342000, 38016, 0xfe93c2d9
+0, 345600, 38016, 0x2cc0e638
+0, 349200, 38016, 0xbe550d40
+0, 352800, 38016, 0x65900ffc
+0, 356400, 38016, 0xcc61228c
+0, 360000, 38016, 0x8ae34904
+0, 363600, 38016, 0x74b8411a
+0, 367200, 38016, 0xae36408d
+0, 370800, 38016, 0x251429ad
+0, 374400, 38016, 0x4d8e6dc6
+0, 378000, 38016, 0x9e07801e
+0, 381600, 38016, 0x8fdd83ef
+0, 385200, 38016, 0x976084a1
+0, 388800, 38016, 0x69f7609f
+0, 392400, 38016, 0x48971b09
+0, 396000, 38016, 0x78e63ff4
+0, 399600, 38016, 0x0852365b
+0, 403200, 38016, 0x8044232c
+0, 406800, 38016, 0x9ec3178d
+0, 410400, 38016, 0x6f260955
+0, 414000, 38016, 0x903cfe23
+0, 417600, 38016, 0x441afbe4
+0, 421200, 38016, 0xe4420313
+0, 424800, 38016, 0xf86d0c34
+0, 428400, 38016, 0xafe5f3c3
+0, 432000, 38016, 0x9f61e43b
+0, 435600, 38016, 0x9330e186
+0, 439200, 38016, 0xc900ce86
+0, 442800, 38016, 0xffd6c4a6
+0, 446400, 38016, 0xd7b3cd79
+0, 450000, 38016, 0x8015c914
+0, 453600, 38016, 0x36d3c884
+0, 457200, 38016, 0x2981db44
+0, 460800, 38016, 0x94f40162
+0, 464400, 38016, 0x091022c5
+0, 468000, 38016, 0xd554203f
+0, 471600, 38016, 0xdcf26c7e
+0, 475200, 38016, 0xdc398ff4
+0, 478800, 38016, 0xeb5ca01c
+0, 482400, 38016, 0x4931c311
+0, 486000, 38016, 0x0ddabf2a
+0, 489600, 38016, 0x2432a265
+0, 493200, 38016, 0x65409b4f
+0, 496800, 38016, 0x466e6957
+0, 500400, 38016, 0x82a08bb4
+0, 504000, 38016, 0xdb6a35c4
+0, 507600, 38016, 0xda5b0d28
+0, 511200, 38016, 0x2be76f6d
+0, 514800, 38016, 0x7587a456
+0, 518400, 38016, 0x69994004
+0, 522000, 38016, 0xaefd46ec
+0, 525600, 38016, 0x88094d53
+0, 529200, 38016, 0xfcb82a4c
+0, 532800, 38016, 0x2877c850
+0, 536400, 38016, 0x327f5e88
+0, 540000, 38016, 0xaa1c4a3f
+0, 543600, 38016, 0x1950dfbd
+0, 547200, 38016, 0x8580b472
+0, 550800, 38016, 0xb5ef90c0
+0, 554400, 38016, 0x0906b3e7
+0, 558000, 38016, 0x026b12fa
+0, 561600, 38016, 0xe8ef556a
+0, 565200, 38016, 0x2e1afe7f
+0, 568800, 38016, 0xef2ad28a
+0, 572400, 38016, 0xe6d7d947
+0, 576000, 38016, 0x25ebd549
+0, 579600, 38016, 0xc443f3cf
+0, 583200, 38016, 0x9dc7dcad
+0, 586800, 38016, 0x8b7ce835
+0, 590400, 38016, 0x27a3e48b
+0, 594000, 38016, 0x0b6bc8a9
+0, 597600, 38016, 0xdb98d21e
+0, 601200, 38016, 0x4cb89812
+0, 604800, 38016, 0x41f35c5e
+0, 608400, 38016, 0xfd764d91
+0, 612000, 38016, 0xb7cc313f
+0, 615600, 38016, 0x51ba22d1
+0, 619200, 38016, 0x00d8deee
+0, 622800, 38016, 0x50db806a
+0, 626400, 38016, 0xbf022623
+0, 630000, 38016, 0xf2fe22ba
+0, 633600, 38016, 0x7055191b
+0, 637200, 38016, 0xbefb8590
+0, 640800, 38016, 0x90e59103
+0, 644400, 38016, 0x61d443da
+0, 648000, 38016, 0x6ad0e637
+0, 651600, 38016, 0xda39f9c1
+0, 655200, 38016, 0x03408181
+0, 658800, 38016, 0xee973480
+0, 662400, 38016, 0x9674d65d
+0, 666000, 38016, 0x1fdd5529
+0, 669600, 38016, 0x51a219bb
+0, 673200, 38016, 0x9cd9747e
+0, 676800, 38016, 0xa58a3c33
+0, 680400, 38016, 0xdf1905a9
+0, 684000, 38016, 0x44a52c69
+0, 687600, 38016, 0x0cf6e56b
+0, 691200, 38016, 0xe2115e06
+0, 694800, 38016, 0x15efa840
+0, 698400, 38016, 0x0811bad8
+0, 702000, 38016, 0x8240a91d
+0, 705600, 38016, 0xdfe46b7d
+0, 709200, 38016, 0xcead819a
+0, 712800, 38016, 0xe8f87d91
+0, 716400, 38016, 0x951ebd82
+0, 720000, 38016, 0x37d98ecb
+0, 723600, 38016, 0x54fb54da
+0, 727200, 38016, 0xb306302e
+0, 730800, 38016, 0xa8acd0dc
+0, 734400, 38016, 0x68e43757
+0, 738000, 38016, 0x7018cd48
+0, 741600, 38016, 0x1c34824e
+0, 745200, 38016, 0x22e7e478
+0, 748800, 38016, 0x534a0470
+0, 752400, 38016, 0x1a65bc45
+0, 756000, 38016, 0x5e78223b
+0, 759600, 38016, 0xc3c9c912
+0, 763200, 38016, 0x52557c74
+0, 766800, 38016, 0xf5ff1f9a
+0, 770400, 38016, 0x56afe047
+0, 774000, 38016, 0x50259235
+0, 777600, 38016, 0xca19311d
+0, 781200, 38016, 0xd96eeb53
+0, 784800, 38016, 0x21a218b7
+0, 788400, 38016, 0x24162395
+0, 792000, 38016, 0xadf9b983
+0, 795600, 38016, 0x68443df2
+0, 799200, 38016, 0xa970df8a
+0, 802800, 38016, 0x8381bbee
+0, 806400, 38016, 0x36fe1d22
+0, 810000, 38016, 0xa0326ddf
+0, 813600, 38016, 0x01dc7ca7
+0, 817200, 38016, 0xf485d505
+0, 820800, 38016, 0xb5a8fe68
+0, 824400, 38016, 0x6385f303
+0, 828000, 38016, 0x4d099ef1
+0, 831600, 38016, 0xeaa54d25
+0, 835200, 38016, 0x5c32c503
+0, 838800, 38016, 0xd52538b3
+0, 842400, 38016, 0x1ca2e4c2
+0, 846000, 38016, 0xe3a95b82
+0, 849600, 38016, 0x14393895
+0, 853200, 38016, 0xd77cef50
+0, 856800, 38016, 0x47b901b8
+0, 860400, 38016, 0x14d70226
+0, 864000, 38016, 0xab32b360
+0, 867600, 38016, 0xb92d3090
+0, 871200, 38016, 0xbd50ae43
+0, 874800, 38016, 0x5ea8d59a
+0, 878400, 38016, 0xb6d7fe63
+0, 882000, 38016, 0xe228050d
+0, 885600, 38016, 0x09e251ed
+0, 889200, 38016, 0xcea332d0
+0, 892800, 38016, 0x048838af
+0, 896400, 38016, 0x0a625a93
+0, 900000, 38016, 0x018aa719
+0, 903600, 38016, 0x630e70a8
+0, 907200, 38016, 0x93cb4c39
+0, 910800, 38016, 0x3cdb7cf8
+0, 914400, 38016, 0x48491fb4
+0, 918000, 38016, 0x06aa4101
+0, 921600, 38016, 0x4b402d3e
+0, 925200, 38016, 0x13cbf927
+0, 928800, 38016, 0xdc7528b6
+0, 932400, 38016, 0x652d0576
+0, 936000, 38016, 0xa3a504d6
+0, 939600, 38016, 0x5bd33fe4
+0, 943200, 38016, 0xae11267b
+0, 946800, 38016, 0xb58b5613
+0, 950400, 38016, 0x50160d80
+0, 954000, 38016, 0x4a643ed0
+0, 957600, 38016, 0xe3983ed6
+0, 961200, 38016, 0xa1fb3338
+0, 964800, 38016, 0x48d0286d
+0, 968400, 38016, 0x67043801
+0, 972000, 38016, 0x00bafaad
+0, 975600, 38016, 0xf07de35a
+0, 979200, 38016, 0x493e4579
+0, 982800, 38016, 0xa917532b
+0, 986400, 38016, 0x463fcc89
+0, 990000, 38016, 0xd47c1b1b
+0, 993600, 38016, 0x3543c596
+0, 997200, 38016, 0x65d6cd5b
+0, 1000800, 38016, 0x22cbd5ef
+0, 1004400, 38016, 0x08e0f250
+0, 1008000, 38016, 0x4e4aeb0a
+0, 1011600, 38016, 0x7895e0bd
+0, 1015200, 38016, 0xc11cea95
+0, 1018800, 38016, 0x13b3bcf8
+0, 1022400, 38016, 0xcb312186
+0, 1026000, 38016, 0x791007ca
+0, 1029600, 38016, 0xaa77354f
+0, 1033200, 38016, 0x1dbc2a67
+0, 1036800, 38016, 0x00646a65
+0, 1040400, 38016, 0x19db488d
+0, 1044000, 38016, 0x16c155e5
+0, 1047600, 38016, 0xb760898e
+0, 1051200, 38016, 0xbd6691e8
+0, 1054800, 38016, 0x06829781
+0, 1058400, 38016, 0xcebab8ad
+0, 1062000, 38016, 0xe2f38e79
+0, 1065600, 38016, 0x1e00c08e
+0, 1069200, 38016, 0x86d6c935
+0, 1072800, 38016, 0xaa88dfdc
+0, 1076400, 38016, 0xa9029b45
diff --git a/tests/ref/fate/h264-conformance-mr5_tandberg_c b/tests/ref/fate/h264-conformance-mr5_tandberg_c
new file mode 100644
index 0000000000..5aceda2c23
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-mr5_tandberg_c
@@ -0,0 +1,300 @@
+0, 0, 38016, 0xb96f1feb
+0, 3600, 38016, 0x0ff111f0
+0, 7200, 38016, 0xbac70271
+0, 10800, 38016, 0x8c361866
+0, 14400, 38016, 0x9d9640be
+0, 18000, 38016, 0xd36b563b
+0, 21600, 38016, 0xe5966f5f
+0, 25200, 38016, 0xb8b28ab0
+0, 28800, 38016, 0xf817a3e6
+0, 32400, 38016, 0xba26acd8
+0, 36000, 38016, 0x453dba2f
+0, 39600, 38016, 0xe50bd16e
+0, 43200, 38016, 0x95c2c1f7
+0, 46800, 38016, 0xc6a59679
+0, 50400, 38016, 0x9f468726
+0, 54000, 38016, 0x371091eb
+0, 57600, 38016, 0xd499d26b
+0, 61200, 38016, 0x172fd389
+0, 64800, 38016, 0x3c04de2a
+0, 68400, 38016, 0xa461aed2
+0, 72000, 38016, 0x098cdef2
+0, 75600, 38016, 0x5d8d9c7d
+0, 79200, 38016, 0x087db718
+0, 82800, 38016, 0x064191ef
+0, 86400, 38016, 0x2f842ef5
+0, 90000, 38016, 0x2b5b0e77
+0, 93600, 38016, 0xcc671b7f
+0, 97200, 38016, 0x859f4f75
+0, 100800, 38016, 0x132a7a48
+0, 104400, 38016, 0x6e8987ab
+0, 108000, 38016, 0x02db8591
+0, 111600, 38016, 0x30567d9b
+0, 115200, 38016, 0x92ea3b53
+0, 118800, 38016, 0xae807c6e
+0, 122400, 38016, 0xbfbc7458
+0, 126000, 38016, 0x66294d04
+0, 129600, 38016, 0xdb2a5f10
+0, 133200, 38016, 0xb19112fe
+0, 136800, 38016, 0xdd26490e
+0, 140400, 38016, 0x51cd31de
+0, 144000, 38016, 0xf6cc2dad
+0, 147600, 38016, 0x0c302dfd
+0, 151200, 38016, 0xb846245d
+0, 154800, 38016, 0xd61c2e88
+0, 158400, 38016, 0xf8264117
+0, 162000, 38016, 0x13862a3d
+0, 165600, 38016, 0xfb481750
+0, 169200, 38016, 0x6377e4af
+0, 172800, 38016, 0x1759c1b4
+0, 176400, 38016, 0xca03942b
+0, 180000, 38016, 0x0126810b
+0, 183600, 38016, 0x3c8c820b
+0, 187200, 38016, 0x863379ec
+0, 190800, 38016, 0xaf9b6d52
+0, 194400, 38016, 0x9ba86946
+0, 198000, 38016, 0xf97980fb
+0, 201600, 38016, 0x9cf4785c
+0, 205200, 38016, 0x51cdcdc7
+0, 208800, 38016, 0x923de162
+0, 212400, 38016, 0xdcd3c3cb
+0, 216000, 38016, 0x6f9fea31
+0, 219600, 38016, 0x7ab7b133
+0, 223200, 38016, 0xb8a2c99f
+0, 226800, 38016, 0x040a99c6
+0, 230400, 38016, 0xa8c4b28f
+0, 234000, 38016, 0x4c577509
+0, 237600, 38016, 0xb30f7277
+0, 241200, 38016, 0xb5f73b46
+0, 244800, 38016, 0x723f3ccc
+0, 248400, 38016, 0x3e4a0cca
+0, 252000, 38016, 0xe0df386e
+0, 255600, 38016, 0xc4832c7b
+0, 259200, 38016, 0x014a2d9f
+0, 262800, 38016, 0xae4272d9
+0, 266400, 38016, 0xcde25e0f
+0, 270000, 38016, 0xdecb13d6
+0, 273600, 38016, 0x9d8ae5d9
+0, 277200, 38016, 0x280abccf
+0, 280800, 38016, 0x885a9fcc
+0, 284400, 38016, 0x9b328b6f
+0, 288000, 38016, 0x8fb7663c
+0, 291600, 38016, 0x35fd4c32
+0, 295200, 38016, 0xdd484efb
+0, 298800, 38016, 0xb8f576b1
+0, 302400, 38016, 0xe8016312
+0, 306000, 38016, 0x65a88d55
+0, 309600, 38016, 0x83dca3a9
+0, 313200, 38016, 0xfc3ba542
+0, 316800, 38016, 0x3d55ac26
+0, 320400, 38016, 0xb91f6bbe
+0, 324000, 38016, 0x67bd2f75
+0, 327600, 38016, 0x0af12875
+0, 331200, 38016, 0xc18a2d55
+0, 334800, 38016, 0x22fd4e01
+0, 338400, 38016, 0x466b8dcd
+0, 342000, 38016, 0xfe93c2d9
+0, 345600, 38016, 0x2cc0e638
+0, 349200, 38016, 0xbe550d40
+0, 352800, 38016, 0x65900ffc
+0, 356400, 38016, 0xcc61228c
+0, 360000, 38016, 0x8ae34904
+0, 363600, 38016, 0x74b8411a
+0, 367200, 38016, 0xae36408d
+0, 370800, 38016, 0x251429ad
+0, 374400, 38016, 0x4d8e6dc6
+0, 378000, 38016, 0x9e07801e
+0, 381600, 38016, 0x8fdd83ef
+0, 385200, 38016, 0x976084a1
+0, 388800, 38016, 0x69f7609f
+0, 392400, 38016, 0x48971b09
+0, 396000, 38016, 0x78e63ff4
+0, 399600, 38016, 0x0852365b
+0, 403200, 38016, 0x8044232c
+0, 406800, 38016, 0x9ec3178d
+0, 410400, 38016, 0x6f260955
+0, 414000, 38016, 0x903cfe23
+0, 417600, 38016, 0x441afbe4
+0, 421200, 38016, 0xe4420313
+0, 424800, 38016, 0xf86d0c34
+0, 428400, 38016, 0xafe5f3c3
+0, 432000, 38016, 0x9f61e43b
+0, 435600, 38016, 0x9330e186
+0, 439200, 38016, 0xc900ce86
+0, 442800, 38016, 0xffd6c4a6
+0, 446400, 38016, 0xd7b3cd79
+0, 450000, 38016, 0x8015c914
+0, 453600, 38016, 0x36d3c884
+0, 457200, 38016, 0x2981db44
+0, 460800, 38016, 0x94f40162
+0, 464400, 38016, 0x091022c5
+0, 468000, 38016, 0xd554203f
+0, 471600, 38016, 0xdcf26c7e
+0, 475200, 38016, 0xdc398ff4
+0, 478800, 38016, 0xeb5ca01c
+0, 482400, 38016, 0x4931c311
+0, 486000, 38016, 0x0ddabf2a
+0, 489600, 38016, 0x2432a265
+0, 493200, 38016, 0x65409b4f
+0, 496800, 38016, 0x466e6957
+0, 500400, 38016, 0x82a08bb4
+0, 504000, 38016, 0xdb6a35c4
+0, 507600, 38016, 0xda5b0d28
+0, 511200, 38016, 0x2be76f6d
+0, 514800, 38016, 0x7587a456
+0, 518400, 38016, 0x69994004
+0, 522000, 38016, 0xaefd46ec
+0, 525600, 38016, 0x88094d53
+0, 529200, 38016, 0xfcb82a4c
+0, 532800, 38016, 0x2877c850
+0, 536400, 38016, 0x327f5e88
+0, 540000, 38016, 0xaa1c4a3f
+0, 543600, 38016, 0x1950dfbd
+0, 547200, 38016, 0x8580b472
+0, 550800, 38016, 0xb5ef90c0
+0, 554400, 38016, 0x0906b3e7
+0, 558000, 38016, 0x026b12fa
+0, 561600, 38016, 0xe8ef556a
+0, 565200, 38016, 0x2e1afe7f
+0, 568800, 38016, 0xef2ad28a
+0, 572400, 38016, 0xe6d7d947
+0, 576000, 38016, 0x25ebd549
+0, 579600, 38016, 0xc443f3cf
+0, 583200, 38016, 0x9dc7dcad
+0, 586800, 38016, 0x8b7ce835
+0, 590400, 38016, 0x27a3e48b
+0, 594000, 38016, 0x0b6bc8a9
+0, 597600, 38016, 0xdb98d21e
+0, 601200, 38016, 0x4cb89812
+0, 604800, 38016, 0x41f35c5e
+0, 608400, 38016, 0xfd764d91
+0, 612000, 38016, 0xb7cc313f
+0, 615600, 38016, 0x51ba22d1
+0, 619200, 38016, 0x00d8deee
+0, 622800, 38016, 0x50db806a
+0, 626400, 38016, 0xbf022623
+0, 630000, 38016, 0xf2fe22ba
+0, 633600, 38016, 0x7055191b
+0, 637200, 38016, 0xbefb8590
+0, 640800, 38016, 0x90e59103
+0, 644400, 38016, 0x61d443da
+0, 648000, 38016, 0x6ad0e637
+0, 651600, 38016, 0xda39f9c1
+0, 655200, 38016, 0x03408181
+0, 658800, 38016, 0xee973480
+0, 662400, 38016, 0x9674d65d
+0, 666000, 38016, 0x1fdd5529
+0, 669600, 38016, 0x51a219bb
+0, 673200, 38016, 0x9cd9747e
+0, 676800, 38016, 0xa58a3c33
+0, 680400, 38016, 0xdf1905a9
+0, 684000, 38016, 0x44a52c69
+0, 687600, 38016, 0x0cf6e56b
+0, 691200, 38016, 0xe2115e06
+0, 694800, 38016, 0x15efa840
+0, 698400, 38016, 0x0811bad8
+0, 702000, 38016, 0x8240a91d
+0, 705600, 38016, 0xdfe46b7d
+0, 709200, 38016, 0xcead819a
+0, 712800, 38016, 0xe8f87d91
+0, 716400, 38016, 0x951ebd82
+0, 720000, 38016, 0x37d98ecb
+0, 723600, 38016, 0x54fb54da
+0, 727200, 38016, 0xb306302e
+0, 730800, 38016, 0xa8acd0dc
+0, 734400, 38016, 0x68e43757
+0, 738000, 38016, 0x7018cd48
+0, 741600, 38016, 0x1c34824e
+0, 745200, 38016, 0x22e7e478
+0, 748800, 38016, 0x534a0470
+0, 752400, 38016, 0x1a65bc45
+0, 756000, 38016, 0x5e78223b
+0, 759600, 38016, 0xc3c9c912
+0, 763200, 38016, 0x52557c74
+0, 766800, 38016, 0xf5ff1f9a
+0, 770400, 38016, 0x56afe047
+0, 774000, 38016, 0x50259235
+0, 777600, 38016, 0xca19311d
+0, 781200, 38016, 0xd96eeb53
+0, 784800, 38016, 0x21a218b7
+0, 788400, 38016, 0x24162395
+0, 792000, 38016, 0xadf9b983
+0, 795600, 38016, 0x68443df2
+0, 799200, 38016, 0xa970df8a
+0, 802800, 38016, 0x8381bbee
+0, 806400, 38016, 0x36fe1d22
+0, 810000, 38016, 0xa0326ddf
+0, 813600, 38016, 0x01dc7ca7
+0, 817200, 38016, 0xf485d505
+0, 820800, 38016, 0xb5a8fe68
+0, 824400, 38016, 0x6385f303
+0, 828000, 38016, 0x4d099ef1
+0, 831600, 38016, 0xeaa54d25
+0, 835200, 38016, 0x5c32c503
+0, 838800, 38016, 0xd52538b3
+0, 842400, 38016, 0x1ca2e4c2
+0, 846000, 38016, 0xe3a95b82
+0, 849600, 38016, 0x14393895
+0, 853200, 38016, 0xd77cef50
+0, 856800, 38016, 0x47b901b8
+0, 860400, 38016, 0x14d70226
+0, 864000, 38016, 0xab32b360
+0, 867600, 38016, 0xb92d3090
+0, 871200, 38016, 0xbd50ae43
+0, 874800, 38016, 0x5ea8d59a
+0, 878400, 38016, 0xb6d7fe63
+0, 882000, 38016, 0xe228050d
+0, 885600, 38016, 0x09e251ed
+0, 889200, 38016, 0xcea332d0
+0, 892800, 38016, 0x048838af
+0, 896400, 38016, 0x0a625a93
+0, 900000, 38016, 0x018aa719
+0, 903600, 38016, 0x630e70a8
+0, 907200, 38016, 0x93cb4c39
+0, 910800, 38016, 0x3cdb7cf8
+0, 914400, 38016, 0x48491fb4
+0, 918000, 38016, 0x06aa4101
+0, 921600, 38016, 0x4b402d3e
+0, 925200, 38016, 0x13cbf927
+0, 928800, 38016, 0xdc7528b6
+0, 932400, 38016, 0x652d0576
+0, 936000, 38016, 0xa3a504d6
+0, 939600, 38016, 0x5bd33fe4
+0, 943200, 38016, 0xae11267b
+0, 946800, 38016, 0xb58b5613
+0, 950400, 38016, 0x50160d80
+0, 954000, 38016, 0x4a643ed0
+0, 957600, 38016, 0xe3983ed6
+0, 961200, 38016, 0xa1fb3338
+0, 964800, 38016, 0x48d0286d
+0, 968400, 38016, 0x67043801
+0, 972000, 38016, 0x00bafaad
+0, 975600, 38016, 0xf07de35a
+0, 979200, 38016, 0x493e4579
+0, 982800, 38016, 0xa917532b
+0, 986400, 38016, 0x463fcc89
+0, 990000, 38016, 0xd47c1b1b
+0, 993600, 38016, 0x3543c596
+0, 997200, 38016, 0x65d6cd5b
+0, 1000800, 38016, 0x22cbd5ef
+0, 1004400, 38016, 0x08e0f250
+0, 1008000, 38016, 0x4e4aeb0a
+0, 1011600, 38016, 0x7895e0bd
+0, 1015200, 38016, 0xc11cea95
+0, 1018800, 38016, 0x13b3bcf8
+0, 1022400, 38016, 0xcb312186
+0, 1026000, 38016, 0x791007ca
+0, 1029600, 38016, 0xaa77354f
+0, 1033200, 38016, 0x1dbc2a67
+0, 1036800, 38016, 0x00646a65
+0, 1040400, 38016, 0x19db488d
+0, 1044000, 38016, 0x16c155e5
+0, 1047600, 38016, 0xb760898e
+0, 1051200, 38016, 0xbd6691e8
+0, 1054800, 38016, 0x06829781
+0, 1058400, 38016, 0xcebab8ad
+0, 1062000, 38016, 0xe2f38e79
+0, 1065600, 38016, 0x1e00c08e
+0, 1069200, 38016, 0x86d6c935
+0, 1072800, 38016, 0xaa88dfdc
+0, 1076400, 38016, 0xa9029b45
diff --git a/tests/ref/fate/h264-conformance-mr6_bt_b b/tests/ref/fate/h264-conformance-mr6_bt_b
new file mode 100644
index 0000000000..8deff75527
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-mr6_bt_b
@@ -0,0 +1,60 @@
+0, 0, 36864, 0x954464be
+0, 3600, 36864, 0xace1d90b
+0, 7200, 36864, 0x8f149f03
+0, 10800, 36864, 0xea9b21eb
+0, 14400, 36864, 0xb51d9fe3
+0, 18000, 36864, 0x61bd11d7
+0, 21600, 36864, 0x9d36980f
+0, 25200, 36864, 0xa4192c5e
+0, 28800, 36864, 0x11006433
+0, 32400, 36864, 0x4a243e46
+0, 36000, 36864, 0x1807b5e8
+0, 39600, 36864, 0xbe37743c
+0, 43200, 36864, 0x82491319
+0, 46800, 36864, 0x006e9914
+0, 50400, 36864, 0xa5261884
+0, 54000, 36864, 0x2030c9d6
+0, 57600, 36864, 0xc80eb1ce
+0, 61200, 36864, 0x4d559791
+0, 64800, 36864, 0xf5f900ee
+0, 68400, 36864, 0x2cc9c0d7
+0, 72000, 36864, 0x5ba14186
+0, 75600, 36864, 0x47a46865
+0, 79200, 36864, 0x5ba180b7
+0, 82800, 36864, 0xc67c4876
+0, 86400, 36864, 0x4311d75d
+0, 90000, 36864, 0x56edb851
+0, 93600, 36864, 0x7e5aa3e0
+0, 97200, 36864, 0x8df8283a
+0, 100800, 36864, 0xb8583ddf
+0, 104400, 36864, 0xf33fb779
+0, 108000, 36864, 0xe9942ddc
+0, 111600, 36864, 0x2bc5f7fa
+0, 115200, 36864, 0xc7b66c65
+0, 118800, 36864, 0x1a524319
+0, 122400, 36864, 0xf60c6141
+0, 126000, 36864, 0x113f41f2
+0, 129600, 36864, 0xad191a31
+0, 133200, 36864, 0x3898264a
+0, 136800, 36864, 0x3c2f34a4
+0, 140400, 36864, 0xd0fc76aa
+0, 144000, 36864, 0x2870b546
+0, 147600, 36864, 0x7d326fb4
+0, 151200, 36864, 0xd7ed14e1
+0, 154800, 36864, 0x205174aa
+0, 158400, 36864, 0xa3a88be9
+0, 162000, 36864, 0xd6f01751
+0, 165600, 36864, 0x5420bb80
+0, 169200, 36864, 0xe14518f9
+0, 172800, 36864, 0x931db61e
+0, 176400, 36864, 0x052ecfae
+0, 180000, 36864, 0x29b1b0f5
+0, 183600, 36864, 0xa3057117
+0, 187200, 36864, 0x954464be
+0, 190800, 36864, 0xace1d90b
+0, 194400, 36864, 0x8f149f03
+0, 198000, 36864, 0x485722c5
+0, 201600, 36864, 0x534b18f9
+0, 205200, 36864, 0xc893a0a6
+0, 208800, 36864, 0x8b04e1dd
+0, 212400, 36864, 0xaf536964
diff --git a/tests/ref/fate/h264-conformance-mr7_bt_b b/tests/ref/fate/h264-conformance-mr7_bt_b
new file mode 100644
index 0000000000..3d40bde01c
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-mr7_bt_b
@@ -0,0 +1,60 @@
+0, 0, 36864, 0x579e6274
+0, 3600, 36864, 0x8650c61c
+0, 7200, 36864, 0xbc359647
+0, 10800, 36864, 0x08d91c13
+0, 14400, 36864, 0xe8b79043
+0, 18000, 36864, 0x2f16085a
+0, 21600, 36864, 0x81e89739
+0, 25200, 36864, 0xf2f324dd
+0, 28800, 36864, 0x592b5a01
+0, 32400, 36864, 0x4c2f2d91
+0, 36000, 36864, 0x8baeb610
+0, 39600, 36864, 0x86d47617
+0, 43200, 36864, 0xf11011cc
+0, 46800, 36864, 0xe56a9daa
+0, 50400, 36864, 0xd57119d6
+0, 54000, 36864, 0xe28fcde7
+0, 57600, 36864, 0x9aeeba86
+0, 61200, 36864, 0xa518a7c5
+0, 64800, 36864, 0x9af410be
+0, 68400, 36864, 0x1fedd12f
+0, 72000, 36864, 0xa8032e03
+0, 75600, 36864, 0x579e6274
+0, 79200, 36864, 0x99846ef6
+0, 82800, 36864, 0xb5ad3ca7
+0, 86400, 36864, 0x7845cb90
+0, 90000, 36864, 0x569fae24
+0, 93600, 36864, 0x8a3c9f98
+0, 97200, 36864, 0x0b7722af
+0, 100800, 36864, 0x699c2dd8
+0, 104400, 36864, 0xd477af13
+0, 108000, 36864, 0x17b62d7c
+0, 111600, 36864, 0xb1ecf6a7
+0, 115200, 36864, 0xf9c17e4c
+0, 118800, 36864, 0xe7c44618
+0, 122400, 36864, 0x7e23654e
+0, 126000, 36864, 0xd8a0457c
+0, 129600, 36864, 0x57e11df1
+0, 133200, 36864, 0xd54d2a43
+0, 136800, 36864, 0xc6f03950
+0, 140400, 36864, 0x687e750e
+0, 144000, 36864, 0x2870b546
+0, 147600, 36864, 0xda0370d0
+0, 151200, 36864, 0x5a2e0bff
+0, 154800, 36864, 0xe1f07533
+0, 158400, 36864, 0x3de892b9
+0, 162000, 36864, 0xe5c31505
+0, 165600, 36864, 0x96b8c082
+0, 169200, 36864, 0x55391423
+0, 172800, 36864, 0xc285bd71
+0, 176400, 36864, 0xf702d9f3
+0, 180000, 36864, 0x7afbadf8
+0, 183600, 36864, 0xd9b568f7
+0, 187200, 36864, 0x579e6274
+0, 190800, 36864, 0x8650c61c
+0, 194400, 36864, 0xbc359647
+0, 198000, 36864, 0x5522328c
+0, 201600, 36864, 0x02821fd6
+0, 205200, 36864, 0xb4ee9562
+0, 208800, 36864, 0xcefedb68
+0, 212400, 36864, 0xd959782e
diff --git a/tests/ref/fate/h264-conformance-mr8_bt_b b/tests/ref/fate/h264-conformance-mr8_bt_b
new file mode 100644
index 0000000000..ab35869bfd
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-mr8_bt_b
@@ -0,0 +1,58 @@
+0, 0, 36864, 0x36df68f4
+0, 3600, 36864, 0x52d4c6d9
+0, 7200, 36864, 0xad16b0be
+0, 10800, 36864, 0xf8c72556
+0, 14400, 36864, 0x70aaad30
+0, 18000, 36864, 0x53cffd5e
+0, 21600, 36864, 0xb3fa8abc
+0, 25200, 36864, 0x9c894009
+0, 28800, 36864, 0xfbc08050
+0, 32400, 36864, 0x9d5b2d65
+0, 36000, 36864, 0x3bd8bb5d
+0, 39600, 36864, 0x8d976ecf
+0, 43200, 36864, 0x25010368
+0, 46800, 36864, 0xb6e6a11c
+0, 50400, 36864, 0x595a3967
+0, 54000, 36864, 0x4fbcb9a8
+0, 57600, 36864, 0xc7c5c16b
+0, 61200, 36864, 0x661ae1eb
+0, 64800, 36864, 0x169f04a7
+0, 68400, 36864, 0xd124c93a
+0, 72000, 36864, 0x3f642dba
+0, 75600, 36864, 0xe7ad6956
+0, 79200, 36864, 0x47dc76d3
+0, 82800, 36864, 0x496a3917
+0, 86400, 36864, 0xa976d5f3
+0, 90000, 36864, 0x507bb685
+0, 93600, 36864, 0x2f61ac12
+0, 97200, 36864, 0x527818d8
+0, 100800, 36864, 0xa4983396
+0, 104400, 36864, 0x3ec9b07b
+0, 108000, 36864, 0x7db52d99
+0, 111600, 36864, 0xe974fd00
+0, 115200, 36864, 0x9c677a4f
+0, 118800, 36864, 0x108f3a05
+0, 122400, 36864, 0x23a56ba2
+0, 126000, 36864, 0x4c8d47e8
+0, 129600, 36864, 0x9e0b0f09
+0, 133200, 36864, 0x4d262b16
+0, 136800, 36864, 0x6122402e
+0, 140400, 36864, 0xed037036
+0, 144000, 36864, 0x62b3ba08
+0, 147600, 36864, 0x7f876930
+0, 151200, 36864, 0x4a6c0983
+0, 154800, 36864, 0xf9787086
+0, 158400, 36864, 0x01d1b1b5
+0, 162000, 36864, 0xc1622655
+0, 165600, 36864, 0x27e8e0f7
+0, 169200, 36864, 0xc1622655
+0, 172800, 36864, 0x12c2b7e9
+0, 176400, 36864, 0xd752d2ef
+0, 180000, 36864, 0xcbb1c3a7
+0, 183600, 36864, 0x18c56fba
+0, 187200, 36864, 0xb1b3771c
+0, 190800, 36864, 0x284ef3c4
+0, 194400, 36864, 0xda6eb5a0
+0, 198000, 36864, 0x17ad337c
+0, 201600, 36864, 0xe2801e4f
+0, 205200, 36864, 0x6c33bd17
diff --git a/tests/ref/fate/h264-conformance-mr9_bt_b b/tests/ref/fate/h264-conformance-mr9_bt_b
new file mode 100644
index 0000000000..dcf0b420a4
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-mr9_bt_b
@@ -0,0 +1,58 @@
+0, 0, 36864, 0xb4c5642e
+0, 3600, 36864, 0x929fd05f
+0, 7200, 36864, 0x447c9b69
+0, 10800, 36864, 0xab0712da
+0, 14400, 36864, 0xd9f69216
+0, 18000, 36864, 0xec04f6dc
+0, 21600, 36864, 0x5ffa86cc
+0, 25200, 36864, 0x75122807
+0, 28800, 36864, 0x27036a2b
+0, 32400, 36864, 0x00072654
+0, 36000, 36864, 0x49fab4fd
+0, 39600, 36864, 0x975a7545
+0, 43200, 36864, 0x9b080a2f
+0, 46800, 36864, 0x78db960e
+0, 50400, 36864, 0xd7a928d4
+0, 54000, 36864, 0x0a83ba1b
+0, 57600, 36864, 0xad6bb30c
+0, 61200, 36864, 0xf6addb0d
+0, 64800, 36864, 0x00540a0a
+0, 68400, 36864, 0x049cc748
+0, 72000, 36864, 0x5b1e2291
+0, 75600, 36864, 0x2367706e
+0, 79200, 36864, 0x88ef6b11
+0, 82800, 36864, 0x85b73230
+0, 86400, 36864, 0xe46cd522
+0, 90000, 36864, 0x98489c05
+0, 93600, 36864, 0x7e439564
+0, 97200, 36864, 0x71330799
+0, 100800, 36864, 0x81a6239e
+0, 104400, 36864, 0x8005a302
+0, 108000, 36864, 0xdf132e3f
+0, 111600, 36864, 0x2a1d00de
+0, 115200, 36864, 0x7bb57e14
+0, 118800, 36864, 0xf2a637cf
+0, 122400, 36864, 0xae6f6916
+0, 126000, 36864, 0x2f1d4763
+0, 129600, 36864, 0xa4e1145e
+0, 133200, 36864, 0xc1644392
+0, 136800, 36864, 0x21853537
+0, 140400, 36864, 0x0bc45bac
+0, 144000, 36864, 0x84ccb8ee
+0, 147600, 36864, 0x65de651c
+0, 151200, 36864, 0x33ff027e
+0, 154800, 36864, 0xefe47056
+0, 158400, 36864, 0x8952b47c
+0, 162000, 36864, 0x78730fcf
+0, 165600, 36864, 0x14bae79f
+0, 169200, 36864, 0x53230fbe
+0, 172800, 36864, 0x15b0b245
+0, 176400, 36864, 0x45fbd155
+0, 180000, 36864, 0x41cfbac4
+0, 183600, 36864, 0x0d635d61
+0, 187200, 36864, 0x55aa8d3c
+0, 190800, 36864, 0x8f02fbaf
+0, 194400, 36864, 0xb17fac3f
+0, 198000, 36864, 0xc12627f9
+0, 201600, 36864, 0xa5971e4a
+0, 205200, 36864, 0x3677abfe
diff --git a/tests/ref/fate/h264-conformance-mv1_brcm_d b/tests/ref/fate/h264-conformance-mv1_brcm_d
new file mode 100644
index 0000000000..f7ce1d663e
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-mv1_brcm_d
@@ -0,0 +1,257 @@
+0, 0, 518400, 0x230d7aa6
+0, 3600, 518400, 0x9fc976e0
+0, 7200, 518400, 0x51052db9
+0, 10800, 518400, 0xad82d599
+0, 14400, 518400, 0xa122c6a7
+0, 18000, 518400, 0x0c3a81a0
+0, 21600, 518400, 0x6235364e
+0, 25200, 518400, 0x4d5104f8
+0, 28800, 518400, 0x09cc49b1
+0, 32400, 518400, 0xcdb05c19
+0, 36000, 518400, 0x894be6de
+0, 39600, 518400, 0x53a41fc3
+0, 43200, 518400, 0x7568ccee
+0, 46800, 518400, 0x2b5ae37b
+0, 50400, 518400, 0xd0b994bb
+0, 54000, 518400, 0x1b161358
+0, 57600, 518400, 0xc5434edc
+0, 61200, 518400, 0xc4709590
+0, 64800, 518400, 0x60c6803a
+0, 68400, 518400, 0xdff3edcd
+0, 72000, 518400, 0x8a02b8b4
+0, 75600, 518400, 0x478cf791
+0, 79200, 518400, 0x7c42fed0
+0, 82800, 518400, 0x12b1336d
+0, 86400, 518400, 0xe16e765e
+0, 90000, 518400, 0x002c291e
+0, 93600, 518400, 0x50810b53
+0, 97200, 518400, 0xda7e2453
+0, 100800, 518400, 0x6e330093
+0, 104400, 518400, 0xf30740b3
+0, 108000, 518400, 0xc27ae19d
+0, 111600, 518400, 0xe49da8c2
+0, 115200, 518400, 0xa739372c
+0, 118800, 518400, 0x4b44788c
+0, 122400, 518400, 0xfdf9e6cf
+0, 126000, 518400, 0xee205413
+0, 129600, 518400, 0x8792dc0e
+0, 133200, 518400, 0x6820d611
+0, 136800, 518400, 0x106cbc2c
+0, 140400, 518400, 0x7d8e3e92
+0, 144000, 518400, 0xbfe48709
+0, 147600, 518400, 0xc5d5a55d
+0, 151200, 518400, 0x7c234886
+0, 154800, 518400, 0x852372b0
+0, 158400, 518400, 0x43d697f9
+0, 162000, 518400, 0xc3460806
+0, 165600, 518400, 0x0600abea
+0, 169200, 518400, 0xf6e3ab0e
+0, 172800, 518400, 0x651f9a46
+0, 176400, 518400, 0xed467ba0
+0, 180000, 518400, 0x62312c3f
+0, 183600, 518400, 0xb121898d
+0, 187200, 518400, 0xb1f96406
+0, 190800, 518400, 0x78003318
+0, 194400, 518400, 0x1032b15b
+0, 198000, 518400, 0x72683d37
+0, 201600, 518400, 0xd1349f12
+0, 205200, 518400, 0x4162f707
+0, 208800, 518400, 0x894711c9
+0, 212400, 518400, 0xca37429b
+0, 216000, 518400, 0xb8e91eb5
+0, 219600, 518400, 0xe5eb3103
+0, 223200, 518400, 0x56a33cea
+0, 226800, 518400, 0x79ef0227
+0, 230400, 518400, 0x7ceaab75
+0, 234000, 518400, 0x3f4787b2
+0, 237600, 518400, 0x9e6d2abb
+0, 241200, 518400, 0xedb0cf82
+0, 244800, 518400, 0x19c8723f
+0, 248400, 518400, 0x35d8399b
+0, 252000, 518400, 0xe0224dc8
+0, 255600, 518400, 0xc95467bf
+0, 259200, 518400, 0x99662844
+0, 262800, 518400, 0x10a322c9
+0, 266400, 518400, 0xe6313d98
+0, 270000, 518400, 0x2e2a63d1
+0, 273600, 518400, 0x2c9d0715
+0, 277200, 518400, 0xf31d9e19
+0, 280800, 518400, 0xcea1f9f8
+0, 284400, 518400, 0xece1cd92
+0, 288000, 518400, 0xa8d35347
+0, 291600, 518400, 0xd8cd2228
+0, 295200, 518400, 0xe040993a
+0, 298800, 518400, 0xebc2b387
+0, 302400, 518400, 0xc3e81e85
+0, 306000, 518400, 0xcc507bc9
+0, 309600, 518400, 0xb98c4902
+0, 313200, 518400, 0x454a2a50
+0, 316800, 518400, 0x1460c5dd
+0, 320400, 518400, 0x37d7a99d
+0, 324000, 518400, 0x1de7a047
+0, 327600, 518400, 0xc7b83c21
+0, 331200, 518400, 0xe06d1c9b
+0, 334800, 518400, 0xfd8259b5
+0, 338400, 518400, 0xc3df7e1a
+0, 342000, 518400, 0x60c9ccec
+0, 345600, 518400, 0x7d163c04
+0, 349200, 518400, 0x8fc61e9d
+0, 352800, 518400, 0xa5f520e6
+0, 356400, 518400, 0x8d709ec1
+0, 360000, 518400, 0xca2b6287
+0, 363600, 518400, 0x8531bb18
+0, 367200, 518400, 0x830f9187
+0, 370800, 518400, 0x67c5d413
+0, 374400, 518400, 0x428aeecd
+0, 378000, 518400, 0xbf8e3448
+0, 381600, 518400, 0x847389f0
+0, 385200, 518400, 0x18d0b3ba
+0, 388800, 518400, 0xbee957ea
+0, 392400, 518400, 0x34941f3e
+0, 396000, 518400, 0x850e0126
+0, 399600, 518400, 0xab992409
+0, 403200, 518400, 0xb7d8d01f
+0, 406800, 518400, 0xe602576c
+0, 410400, 518400, 0x22388048
+0, 414000, 518400, 0x81ab9f4a
+0, 417600, 518400, 0xc5977820
+0, 421200, 518400, 0xc43f98bd
+0, 424800, 518400, 0xfd5e6d12
+0, 428400, 518400, 0xb9f12c73
+0, 432000, 518400, 0x44be16b9
+0, 435600, 518400, 0x32f0d9b9
+0, 439200, 518400, 0x6e9c3113
+0, 442800, 518400, 0x00618755
+0, 446400, 518400, 0x080c9955
+0, 450000, 518400, 0xb21d6096
+0, 453600, 518400, 0x51502f54
+0, 457200, 518400, 0xf062e38b
+0, 460800, 518400, 0x66f05988
+0, 464400, 518400, 0x37d569f1
+0, 468000, 518400, 0xba78ae5e
+0, 471600, 518400, 0x634a2d25
+0, 475200, 518400, 0x283e5e4a
+0, 478800, 518400, 0x9344d41c
+0, 482400, 518400, 0x1fdb5c18
+0, 486000, 518400, 0xd8139683
+0, 489600, 518400, 0xd27f555e
+0, 493200, 518400, 0x34ed517f
+0, 496800, 518400, 0x1f55ad2d
+0, 500400, 518400, 0x9a8bd368
+0, 504000, 518400, 0x9726e3bf
+0, 507600, 518400, 0xaf8945ee
+0, 511200, 518400, 0x28c20699
+0, 514800, 518400, 0x43e180c9
+0, 518400, 518400, 0x0c88e592
+0, 522000, 518400, 0xdcb8825e
+0, 525600, 518400, 0x1ec09a5e
+0, 529200, 518400, 0x149768b2
+0, 532800, 518400, 0x1eeab153
+0, 536400, 518400, 0x25666d6f
+0, 540000, 518400, 0x691cad89
+0, 543600, 518400, 0x2d9f8ced
+0, 547200, 518400, 0xd80b768d
+0, 550800, 518400, 0xe4f23a79
+0, 554400, 518400, 0xd51d0150
+0, 558000, 518400, 0x060156f4
+0, 561600, 518400, 0x800720fb
+0, 565200, 518400, 0x2a433b28
+0, 568800, 518400, 0xffc79782
+0, 572400, 518400, 0x31ba693b
+0, 576000, 518400, 0xd13c8395
+0, 579600, 518400, 0x07d9f752
+0, 583200, 518400, 0xabb81043
+0, 586800, 518400, 0xba0ee926
+0, 590400, 518400, 0xa17e7ea9
+0, 594000, 518400, 0x9d709e52
+0, 597600, 518400, 0x7fa02633
+0, 601200, 518400, 0x5cdc5217
+0, 604800, 518400, 0x888be0b0
+0, 608400, 518400, 0xe1bac436
+0, 612000, 518400, 0xa479b1b8
+0, 615600, 518400, 0xb61feb17
+0, 619200, 518400, 0xa0745cd4
+0, 622800, 518400, 0x871cffe5
+0, 626400, 518400, 0x01f7deea
+0, 630000, 518400, 0xdaf6f9f5
+0, 633600, 518400, 0xfee4849c
+0, 637200, 518400, 0xc3b9b428
+0, 640800, 518400, 0x50b4b47f
+0, 644400, 518400, 0xe8e58b82
+0, 648000, 518400, 0x7c6f94e0
+0, 651600, 518400, 0x0cfe7c08
+0, 655200, 518400, 0xb2975466
+0, 658800, 518400, 0xa1245de1
+0, 662400, 518400, 0x46ae79b7
+0, 666000, 518400, 0x8344a9b2
+0, 669600, 518400, 0x1e805013
+0, 673200, 518400, 0x19b61baf
+0, 676800, 518400, 0xd018383b
+0, 680400, 518400, 0xc9248d31
+0, 684000, 518400, 0x838ad8ec
+0, 687600, 518400, 0xa848824a
+0, 691200, 518400, 0xc6a46ebd
+0, 694800, 518400, 0x2a7c489c
+0, 698400, 518400, 0xb1db6cef
+0, 702000, 518400, 0xd24a999f
+0, 705600, 518400, 0xce47efcd
+0, 709200, 518400, 0xf3e058cb
+0, 712800, 518400, 0x25d7f6e3
+0, 716400, 518400, 0xe3daa12d
+0, 720000, 518400, 0xb3de8475
+0, 723600, 518400, 0x13efffdc
+0, 727200, 518400, 0xfb37e048
+0, 730800, 518400, 0x599a6daf
+0, 734400, 518400, 0x84bf6814
+0, 738000, 518400, 0x83c03a3f
+0, 741600, 518400, 0x3a319ae9
+0, 745200, 518400, 0x0af252c3
+0, 748800, 518400, 0xeb8f2f43
+0, 752400, 518400, 0x3bdcd421
+0, 756000, 518400, 0x9107e0f2
+0, 759600, 518400, 0x5f4fe3cf
+0, 763200, 518400, 0x38f1e8ef
+0, 766800, 518400, 0xb0359a0b
+0, 770400, 518400, 0xdddd4645
+0, 774000, 518400, 0xe14ffb0b
+0, 777600, 518400, 0x34a31c96
+0, 781200, 518400, 0x1f4406de
+0, 784800, 518400, 0x042b82b6
+0, 788400, 518400, 0x6af16a4d
+0, 792000, 518400, 0x3cfba41a
+0, 795600, 518400, 0xa054b6e8
+0, 799200, 518400, 0x2d55721b
+0, 802800, 518400, 0x55391f75
+0, 806400, 518400, 0xc2d46fa6
+0, 810000, 518400, 0x3a2576d9
+0, 813600, 518400, 0xea9ea26d
+0, 817200, 518400, 0xe2ec8962
+0, 820800, 518400, 0x47568769
+0, 824400, 518400, 0xc55e0186
+0, 828000, 518400, 0x73a44453
+0, 831600, 518400, 0xe36b1c77
+0, 835200, 518400, 0x414db365
+0, 838800, 518400, 0xfb25f7f6
+0, 842400, 518400, 0x5b4847a7
+0, 846000, 518400, 0xe96babf4
+0, 849600, 518400, 0x15edbf63
+0, 853200, 518400, 0x08a984c6
+0, 856800, 518400, 0x47ec41af
+0, 860400, 518400, 0x1912eaca
+0, 864000, 518400, 0xe058b0cc
+0, 867600, 518400, 0x03e9660b
+0, 871200, 518400, 0x85fea285
+0, 874800, 518400, 0xdf02bdd6
+0, 878400, 518400, 0xad3e6849
+0, 882000, 518400, 0x0ad866b6
+0, 885600, 518400, 0x1b994f78
+0, 889200, 518400, 0xc5916af5
+0, 892800, 518400, 0x5f66adeb
+0, 896400, 518400, 0x1c9f96a1
+0, 900000, 518400, 0xfc390832
+0, 903600, 518400, 0x0352ff56
+0, 907200, 518400, 0x6803c8f4
+0, 910800, 518400, 0x0f0b8686
+0, 914400, 518400, 0xdc3a5bce
+0, 918000, 518400, 0x96dd28d1
+0, 921600, 518400, 0x51d56824
diff --git a/tests/ref/fate/h264-conformance-nl1_sony_d b/tests/ref/fate/h264-conformance-nl1_sony_d
new file mode 100644
index 0000000000..5528f9ec23
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-nl1_sony_d
@@ -0,0 +1,17 @@
+0, 0, 38016, 0xc805351d
+0, 3600, 38016, 0x3809fec3
+0, 7200, 38016, 0xf698ce3c
+0, 10800, 38016, 0x7e3da603
+0, 14400, 38016, 0x68b07d81
+0, 18000, 38016, 0xd91f717a
+0, 21600, 38016, 0x48885dd6
+0, 25200, 38016, 0x27e64e8e
+0, 28800, 38016, 0x955835ce
+0, 32400, 38016, 0xf19940a0
+0, 36000, 38016, 0x9a1c51e4
+0, 39600, 38016, 0xf59373af
+0, 43200, 38016, 0x5d6c7d06
+0, 46800, 38016, 0x32fca533
+0, 50400, 38016, 0x37e69987
+0, 54000, 38016, 0x96929e05
+0, 57600, 38016, 0xee37a1f9
diff --git a/tests/ref/fate/h264-conformance-nl2_sony_h b/tests/ref/fate/h264-conformance-nl2_sony_h
new file mode 100644
index 0000000000..41d811fe8d
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-nl2_sony_h
@@ -0,0 +1,300 @@
+0, 0, 38016, 0xc805351d
+0, 3600, 38016, 0x320510a8
+0, 7200, 38016, 0x3ef6e4c6
+0, 10800, 38016, 0x3b94c5e0
+0, 14400, 38016, 0x4be4a689
+0, 18000, 38016, 0x70919210
+0, 21600, 38016, 0x78a07b5a
+0, 25200, 38016, 0x8bd86efc
+0, 28800, 38016, 0xe3976cab
+0, 32400, 38016, 0x77fa735e
+0, 36000, 38016, 0x62488adb
+0, 39600, 38016, 0x5b07a6a4
+0, 43200, 38016, 0x7058b15f
+0, 46800, 38016, 0xa22dc9e2
+0, 50400, 38016, 0xc9d5cae3
+0, 54000, 38016, 0x16cbd6e1
+0, 57600, 38016, 0x4b23d9e9
+0, 61200, 38016, 0x96f7d798
+0, 64800, 38016, 0xdbcdcfdd
+0, 68400, 38016, 0x9314b847
+0, 72000, 38016, 0x0a209c28
+0, 75600, 38016, 0x6c757322
+0, 79200, 38016, 0x3d1a6376
+0, 82800, 38016, 0x155f5df7
+0, 86400, 38016, 0xd4446441
+0, 90000, 38016, 0xe1006713
+0, 93600, 38016, 0x5d226a3e
+0, 97200, 38016, 0xe839790c
+0, 100800, 38016, 0xa28c8b9a
+0, 104400, 38016, 0xde469f7a
+0, 108000, 38016, 0xf800b7ad
+0, 111600, 38016, 0xf2f9ccac
+0, 115200, 38016, 0x60feeb52
+0, 118800, 38016, 0xad39fd4f
+0, 122400, 38016, 0x4075fce6
+0, 126000, 38016, 0x5f2f036e
+0, 129600, 38016, 0x3e180450
+0, 133200, 38016, 0xd806fc04
+0, 136800, 38016, 0x3f15fbc6
+0, 140400, 38016, 0xb881faa4
+0, 144000, 38016, 0xf1cafdc8
+0, 147600, 38016, 0xd881f881
+0, 151200, 38016, 0x6314fdc8
+0, 154800, 38016, 0x8fa6f0d3
+0, 158400, 38016, 0x90d0f40d
+0, 162000, 38016, 0x1d30ee93
+0, 165600, 38016, 0x87f6ecca
+0, 169200, 38016, 0xca9ae712
+0, 172800, 38016, 0x02c6eb47
+0, 176400, 38016, 0xc263f492
+0, 180000, 38016, 0x717def51
+0, 183600, 38016, 0x0d3af240
+0, 187200, 38016, 0xc232ea7d
+0, 190800, 38016, 0x3c41f195
+0, 194400, 38016, 0x5d77f7fb
+0, 198000, 38016, 0x2901fb90
+0, 201600, 38016, 0x3b35033e
+0, 205200, 38016, 0xca4d034f
+0, 208800, 38016, 0x1e730e22
+0, 212400, 38016, 0x69b60d52
+0, 216000, 38016, 0xe50107bc
+0, 219600, 38016, 0x44b6f25f
+0, 223200, 38016, 0x222ebc66
+0, 226800, 38016, 0x165b7bca
+0, 230400, 38016, 0x12a37e44
+0, 234000, 38016, 0xcce9a1dc
+0, 237600, 38016, 0x273dd1a9
+0, 241200, 38016, 0x72b00e90
+0, 244800, 38016, 0x449a4fa6
+0, 248400, 38016, 0x203d8582
+0, 252000, 38016, 0x3fa7aaeb
+0, 255600, 38016, 0x0b47d491
+0, 259200, 38016, 0x1fa70639
+0, 262800, 38016, 0xf9fe391e
+0, 266400, 38016, 0x91c6786c
+0, 270000, 38016, 0x7ab99bb2
+0, 273600, 38016, 0x73f2c0f5
+0, 277200, 38016, 0xcffad748
+0, 280800, 38016, 0xe2b0ee34
+0, 284400, 38016, 0x6025f6d6
+0, 288000, 38016, 0xd722017c
+0, 291600, 38016, 0x321f0c24
+0, 295200, 38016, 0x336f0e81
+0, 298800, 38016, 0x783a012f
+0, 302400, 38016, 0x134cf484
+0, 306000, 38016, 0xec4bf2db
+0, 309600, 38016, 0xb481012e
+0, 313200, 38016, 0x76ff026c
+0, 316800, 38016, 0xaf3b102a
+0, 320400, 38016, 0x2eaf0bd6
+0, 324000, 38016, 0x39b8f833
+0, 327600, 38016, 0xe928d7ea
+0, 331200, 38016, 0xbe7ac2f8
+0, 334800, 38016, 0x3683b5c4
+0, 338400, 38016, 0xb3559d1c
+0, 342000, 38016, 0x73fb9f71
+0, 345600, 38016, 0x3e97b5aa
+0, 349200, 38016, 0x0c9dc525
+0, 352800, 38016, 0xecead941
+0, 356400, 38016, 0x4999e247
+0, 360000, 38016, 0x11ddea7c
+0, 363600, 38016, 0x4882cf24
+0, 367200, 38016, 0xae9ac0c6
+0, 370800, 38016, 0x4f88b589
+0, 374400, 38016, 0xc677d43f
+0, 378000, 38016, 0x5f46f219
+0, 381600, 38016, 0x5c1ffa13
+0, 385200, 38016, 0x162e11a3
+0, 388800, 38016, 0xd0b631d4
+0, 392400, 38016, 0x7133441a
+0, 396000, 38016, 0xbb085604
+0, 399600, 38016, 0x54a960d2
+0, 403200, 38016, 0xc0b468e7
+0, 406800, 38016, 0xe1ef485a
+0, 410400, 38016, 0x025f27e6
+0, 414000, 38016, 0x14da215e
+0, 417600, 38016, 0xe8f2394a
+0, 421200, 38016, 0x7c7a44e8
+0, 424800, 38016, 0xdb2e54c3
+0, 428400, 38016, 0xae5c5eee
+0, 432000, 38016, 0x74ae643f
+0, 435600, 38016, 0x70146b61
+0, 439200, 38016, 0x545c5265
+0, 442800, 38016, 0xe5a92556
+0, 446400, 38016, 0xf19e04e8
+0, 450000, 38016, 0xda51e574
+0, 453600, 38016, 0x4c17ded9
+0, 457200, 38016, 0x51fce958
+0, 460800, 38016, 0xae96fd16
+0, 464400, 38016, 0x7a610e32
+0, 468000, 38016, 0x06f31a06
+0, 471600, 38016, 0x658a1998
+0, 475200, 38016, 0xda370e80
+0, 478800, 38016, 0xe7a00dca
+0, 482400, 38016, 0xb07a0810
+0, 486000, 38016, 0x193c01a3
+0, 489600, 38016, 0xa700fd8f
+0, 493200, 38016, 0x8c14ed46
+0, 496800, 38016, 0xcd81dc72
+0, 500400, 38016, 0x67acd3bb
+0, 504000, 38016, 0x662cc586
+0, 507600, 38016, 0xa09ac106
+0, 511200, 38016, 0xf1abab73
+0, 514800, 38016, 0xfd9ba674
+0, 518400, 38016, 0x7686ae41
+0, 522000, 38016, 0x7185a2e9
+0, 525600, 38016, 0x2b5898da
+0, 529200, 38016, 0x3cdd6c42
+0, 532800, 38016, 0x0299414d
+0, 536400, 38016, 0x2b851a52
+0, 540000, 38016, 0x01c8ff7b
+0, 543600, 38016, 0x55d3f715
+0, 547200, 38016, 0xbe5ff38e
+0, 550800, 38016, 0xc31fe232
+0, 554400, 38016, 0x3201dc26
+0, 558000, 38016, 0xf8feed84
+0, 561600, 38016, 0x0a471009
+0, 565200, 38016, 0xef0d351d
+0, 568800, 38016, 0x79de6f09
+0, 572400, 38016, 0xa5039be4
+0, 576000, 38016, 0x4e1cafa6
+0, 579600, 38016, 0x2a71aea1
+0, 583200, 38016, 0xa99e9d08
+0, 586800, 38016, 0x80aa8a6a
+0, 590400, 38016, 0x9f287bb9
+0, 594000, 38016, 0x2ddc5ef7
+0, 597600, 38016, 0x31843470
+0, 601200, 38016, 0x08f3074e
+0, 604800, 38016, 0xa639e58d
+0, 608400, 38016, 0xcf31d61f
+0, 612000, 38016, 0x1ac7e986
+0, 615600, 38016, 0x9bbbfe98
+0, 619200, 38016, 0x3e0d0ce1
+0, 622800, 38016, 0x53240e4c
+0, 626400, 38016, 0xda6bf0d5
+0, 630000, 38016, 0x1701c355
+0, 633600, 38016, 0x572c8b1d
+0, 637200, 38016, 0x1f4f5a14
+0, 640800, 38016, 0x0fea3e61
+0, 644400, 38016, 0xa71c29ed
+0, 648000, 38016, 0xd3b218fb
+0, 651600, 38016, 0x228e05f8
+0, 655200, 38016, 0x4b8bfa9e
+0, 658800, 38016, 0x13d505ab
+0, 662400, 38016, 0xa58808b3
+0, 666000, 38016, 0x4b2a1329
+0, 669600, 38016, 0x13c63567
+0, 673200, 38016, 0x4ece56f8
+0, 676800, 38016, 0x934f67c3
+0, 680400, 38016, 0x2b606f56
+0, 684000, 38016, 0xba481841
+0, 687600, 38016, 0x1488ea11
+0, 691200, 38016, 0x066cefeb
+0, 694800, 38016, 0xb23105b7
+0, 698400, 38016, 0x64312267
+0, 702000, 38016, 0xd0cf6a37
+0, 705600, 38016, 0xb5a482c5
+0, 709200, 38016, 0x61289957
+0, 712800, 38016, 0x26a6ba47
+0, 716400, 38016, 0xb771d25e
+0, 720000, 38016, 0xedb5de8d
+0, 723600, 38016, 0x4fd2e829
+0, 727200, 38016, 0xbef3ef1f
+0, 730800, 38016, 0x5e0ef333
+0, 734400, 38016, 0x5081f460
+0, 738000, 38016, 0x6798fe84
+0, 741600, 38016, 0x28ce0078
+0, 745200, 38016, 0x9fb4f6a1
+0, 748800, 38016, 0x0a02e822
+0, 752400, 38016, 0x5615d41e
+0, 756000, 38016, 0x1a3bc214
+0, 759600, 38016, 0x5333b48a
+0, 763200, 38016, 0x646da3c9
+0, 766800, 38016, 0x024fa1b1
+0, 770400, 38016, 0x7b4892de
+0, 774000, 38016, 0x10ab8953
+0, 777600, 38016, 0x8aa28410
+0, 781200, 38016, 0xcbd185be
+0, 784800, 38016, 0xfa49818a
+0, 788400, 38016, 0x0f7a82d5
+0, 792000, 38016, 0xb86f716d
+0, 795600, 38016, 0xd22a6050
+0, 799200, 38016, 0x89a4520e
+0, 802800, 38016, 0x8a1147cf
+0, 806400, 38016, 0xa02a4196
+0, 810000, 38016, 0xece240f7
+0, 813600, 38016, 0xa5b940ff
+0, 817200, 38016, 0x9b274ce8
+0, 820800, 38016, 0xba0b68c7
+0, 824400, 38016, 0x39f28a91
+0, 828000, 38016, 0xc070af11
+0, 831600, 38016, 0x2a26d309
+0, 835200, 38016, 0xfa9afe77
+0, 838800, 38016, 0xe2f22ebf
+0, 842400, 38016, 0xf8ee4a45
+0, 846000, 38016, 0x14186047
+0, 849600, 38016, 0xe3407152
+0, 853200, 38016, 0xcef578b8
+0, 856800, 38016, 0x3fc06964
+0, 860400, 38016, 0xa7da3ade
+0, 864000, 38016, 0xa46d1b2b
+0, 867600, 38016, 0x14abfac5
+0, 871200, 38016, 0xbffbf269
+0, 874800, 38016, 0x1d9c3ade
+0, 878400, 38016, 0xc9c39c46
+0, 882000, 38016, 0x824afa80
+0, 885600, 38016, 0xc76611b8
+0, 889200, 38016, 0x31fce0d6
+0, 892800, 38016, 0x6740a03f
+0, 896400, 38016, 0x91d63134
+0, 900000, 38016, 0xb0f6cc86
+0, 903600, 38016, 0x3d878a14
+0, 907200, 38016, 0x1d008063
+0, 910800, 38016, 0xe47cd260
+0, 914400, 38016, 0x56503400
+0, 918000, 38016, 0xb201dc61
+0, 921600, 38016, 0xba42de1b
+0, 925200, 38016, 0x9c115ccb
+0, 928800, 38016, 0xe9be47d9
+0, 932400, 38016, 0xa7684b02
+0, 936000, 38016, 0xb4d74f42
+0, 939600, 38016, 0xbe006415
+0, 943200, 38016, 0xa30c7858
+0, 946800, 38016, 0x838f7f47
+0, 950400, 38016, 0xc1c28346
+0, 954000, 38016, 0xc7737219
+0, 957600, 38016, 0xa19a5fd5
+0, 961200, 38016, 0x56a64b00
+0, 964800, 38016, 0x6b672497
+0, 968400, 38016, 0x4cfafbe2
+0, 972000, 38016, 0xbe53d51b
+0, 975600, 38016, 0x4a86acc7
+0, 979200, 38016, 0x297288b0
+0, 982800, 38016, 0xd4bd2ec9
+0, 986400, 38016, 0x3697e2f6
+0, 990000, 38016, 0xa493d289
+0, 993600, 38016, 0xb2b9e324
+0, 997200, 38016, 0x998de275
+0, 1000800, 38016, 0x422a10cb
+0, 1004400, 38016, 0x845383b4
+0, 1008000, 38016, 0xb4a72107
+0, 1011600, 38016, 0x0e0eef6b
+0, 1015200, 38016, 0xbd8bbd01
+0, 1018800, 38016, 0x2f217c45
+0, 1022400, 38016, 0xb3515be7
+0, 1026000, 38016, 0xb633a542
+0, 1029600, 38016, 0x7e7a7086
+0, 1033200, 38016, 0xef64a834
+0, 1036800, 38016, 0x7b81bdad
+0, 1040400, 38016, 0x0fc7a7d2
+0, 1044000, 38016, 0x9111351d
+0, 1047600, 38016, 0x161c43dc
+0, 1051200, 38016, 0x945fce2a
+0, 1054800, 38016, 0x48780c38
+0, 1058400, 38016, 0x28904d31
+0, 1062000, 38016, 0x140d47d5
+0, 1065600, 38016, 0x1f5e257c
+0, 1069200, 38016, 0xb36a159c
+0, 1072800, 38016, 0x85ad2465
+0, 1076400, 38016, 0x973649e0
diff --git a/tests/ref/fate/h264-conformance-nl3_sva_e b/tests/ref/fate/h264-conformance-nl3_sva_e
new file mode 100644
index 0000000000..4664afbfcb
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-nl3_sva_e
@@ -0,0 +1,33 @@
+0, 0, 38016, 0x2fad15e2
+0, 3600, 38016, 0x7e391566
+0, 7200, 38016, 0x954001d4
+0, 10800, 38016, 0xe5ae2057
+0, 14400, 38016, 0xface3d5e
+0, 18000, 38016, 0x2b2361cd
+0, 21600, 38016, 0x5e906b5a
+0, 25200, 38016, 0xa46398e5
+0, 28800, 38016, 0x2a3ea141
+0, 32400, 38016, 0xa2a0beac
+0, 36000, 38016, 0x4830ab90
+0, 39600, 38016, 0xdd53d0fc
+0, 43200, 38016, 0x4d71ae7d
+0, 46800, 38016, 0x2290a25e
+0, 50400, 38016, 0x8baa6cca
+0, 54000, 38016, 0xc3e99458
+0, 57600, 38016, 0x5c608374
+0, 61200, 38016, 0x6443aa6c
+0, 64800, 38016, 0x1ef7991c
+0, 68400, 38016, 0xd246b49b
+0, 72000, 38016, 0xe181a026
+0, 75600, 38016, 0x878db497
+0, 79200, 38016, 0x071079c2
+0, 82800, 38016, 0xa94a62fa
+0, 86400, 38016, 0xa9da278f
+0, 90000, 38016, 0x247b3195
+0, 93600, 38016, 0xd7f81a90
+0, 97200, 38016, 0x9c303cdc
+0, 100800, 38016, 0x646e42a1
+0, 104400, 38016, 0x474a613d
+0, 108000, 38016, 0x63255932
+0, 111600, 38016, 0x2f0569e4
+0, 115200, 38016, 0x1f525192
diff --git a/tests/ref/fate/h264-conformance-nlmq1_jvc_c b/tests/ref/fate/h264-conformance-nlmq1_jvc_c
new file mode 100644
index 0000000000..e9fca86164
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-nlmq1_jvc_c
@@ -0,0 +1,30 @@
+0, 0, 38016, 0xde1a2194
+0, 3600, 38016, 0x2957f3e5
+0, 7200, 38016, 0x9df4c6cf
+0, 10800, 38016, 0xf3db9f2d
+0, 14400, 38016, 0xd97474db
+0, 18000, 38016, 0x8e3065fa
+0, 21600, 38016, 0xc0be49b1
+0, 25200, 38016, 0xa69c3f06
+0, 28800, 38016, 0x96bb2e92
+0, 32400, 38016, 0x1ca232c1
+0, 36000, 38016, 0x3a06409d
+0, 39600, 38016, 0xcdce66e5
+0, 43200, 38016, 0x96387681
+0, 46800, 38016, 0xd0309561
+0, 50400, 38016, 0xb7b08c49
+0, 54000, 38016, 0xf5709355
+0, 57600, 38016, 0x3c1594ea
+0, 61200, 38016, 0x9be48a2c
+0, 64800, 38016, 0xdf7279c3
+0, 68400, 38016, 0xe3b660f3
+0, 72000, 38016, 0xd72a3cbe
+0, 75600, 38016, 0x06a117d1
+0, 79200, 38016, 0x8f5501b7
+0, 82800, 38016, 0x8f5afd81
+0, 86400, 38016, 0x98ecfd2b
+0, 90000, 38016, 0xd0b103bf
+0, 93600, 38016, 0xb9a7035c
+0, 97200, 38016, 0x866c12c7
+0, 100800, 38016, 0x3a0329f3
+0, 104400, 38016, 0x725141c1
diff --git a/tests/ref/fate/h264-conformance-nlmq2_jvc_c b/tests/ref/fate/h264-conformance-nlmq2_jvc_c
new file mode 100644
index 0000000000..a2c7c5a753
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-nlmq2_jvc_c
@@ -0,0 +1,30 @@
+0, 0, 38016, 0xde1a2194
+0, 3600, 38016, 0x8b6cf842
+0, 7200, 38016, 0x6dc7c88b
+0, 10800, 38016, 0xdaefa55d
+0, 14400, 38016, 0x61b77631
+0, 18000, 38016, 0xfd096789
+0, 21600, 38016, 0x69204c43
+0, 25200, 38016, 0x2c8e40c0
+0, 28800, 38016, 0xa4f33298
+0, 32400, 38016, 0x67193923
+0, 36000, 38016, 0x0b634893
+0, 39600, 38016, 0x7ced69e1
+0, 43200, 38016, 0xc20179dc
+0, 46800, 38016, 0x9d4d94b9
+0, 50400, 38016, 0xf4158e1a
+0, 54000, 38016, 0xf24b986a
+0, 57600, 38016, 0x3fd39baf
+0, 61200, 38016, 0xc0f991b9
+0, 64800, 38016, 0xe3a98216
+0, 68400, 38016, 0x37246882
+0, 72000, 38016, 0xad5745b0
+0, 75600, 38016, 0x42831ea7
+0, 79200, 38016, 0x14530a1b
+0, 82800, 38016, 0x1a9f03a8
+0, 86400, 38016, 0x34f905f3
+0, 90000, 38016, 0x94300e93
+0, 93600, 38016, 0xcda00be5
+0, 97200, 38016, 0x607516d6
+0, 100800, 38016, 0xabb02c3b
+0, 104400, 38016, 0xcf3746bf
diff --git a/tests/ref/fate/h264-conformance-nrf_mw_e b/tests/ref/fate/h264-conformance-nrf_mw_e
new file mode 100644
index 0000000000..425ee75df4
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-nrf_mw_e
@@ -0,0 +1,100 @@
+0, 0, 38016, 0x3ae838ee
+0, 3600, 38016, 0x9ed7e141
+0, 7200, 38016, 0x354e83ed
+0, 10800, 38016, 0x96754ff4
+0, 14400, 38016, 0x2a013a3c
+0, 18000, 38016, 0x57ab4cf2
+0, 21600, 38016, 0x55037493
+0, 25200, 38016, 0x910b8920
+0, 28800, 38016, 0x457785a1
+0, 32400, 38016, 0x9d6864ad
+0, 36000, 38016, 0xe80131ce
+0, 39600, 38016, 0x4cd7f487
+0, 43200, 38016, 0x030df59a
+0, 46800, 38016, 0x6ea60426
+0, 50400, 38016, 0x35311f71
+0, 54000, 38016, 0x731450d8
+0, 57600, 38016, 0x29368c47
+0, 61200, 38016, 0x006292b0
+0, 64800, 38016, 0x961493b1
+0, 68400, 38016, 0xb2e99a07
+0, 72000, 38016, 0xa52f98be
+0, 75600, 38016, 0x8c0a8f70
+0, 79200, 38016, 0xdc5b992c
+0, 82800, 38016, 0xa4a49787
+0, 86400, 38016, 0x7a959608
+0, 90000, 38016, 0xc9619c0a
+0, 93600, 38016, 0xb5519a7e
+0, 97200, 38016, 0x05ea9d9b
+0, 100800, 38016, 0xf73fac90
+0, 104400, 38016, 0x0cd4b3d8
+0, 108000, 38016, 0xb3119df6
+0, 111600, 38016, 0xb8db5d78
+0, 115200, 38016, 0xfb633ee0
+0, 118800, 38016, 0xed1c8935
+0, 122400, 38016, 0x421fedd1
+0, 126000, 38016, 0xa4b84473
+0, 129600, 38016, 0x25598f81
+0, 133200, 38016, 0x92de1dd7
+0, 136800, 38016, 0x776b68c5
+0, 140400, 38016, 0x07b49a7a
+0, 144000, 38016, 0x883ccd79
+0, 147600, 38016, 0xb351e0fc
+0, 151200, 38016, 0x5577d53b
+0, 154800, 38016, 0xffd9ef7d
+0, 158400, 38016, 0x38c1fc8b
+0, 162000, 38016, 0xb9abf3e6
+0, 165600, 38016, 0x2191b0d6
+0, 169200, 38016, 0x313397a3
+0, 172800, 38016, 0x96bca02a
+0, 176400, 38016, 0xd39ac859
+0, 180000, 38016, 0xfb31e18f
+0, 183600, 38016, 0xe182b468
+0, 187200, 38016, 0x8af7dfd6
+0, 190800, 38016, 0x7c19fd4f
+0, 194400, 38016, 0xa8373bae
+0, 198000, 38016, 0x91055016
+0, 201600, 38016, 0x432b5d52
+0, 205200, 38016, 0x81301b3f
+0, 208800, 38016, 0x0d6c2367
+0, 212400, 38016, 0xf0023ac2
+0, 216000, 38016, 0xb9f33791
+0, 219600, 38016, 0xdab62201
+0, 223200, 38016, 0xfab7cfdd
+0, 226800, 38016, 0xfbb2a78f
+0, 230400, 38016, 0xe317c687
+0, 234000, 38016, 0xe4f5d939
+0, 237600, 38016, 0x022dda5b
+0, 241200, 38016, 0x8b5cdf2c
+0, 244800, 38016, 0x3dfec699
+0, 248400, 38016, 0x9484a75c
+0, 252000, 38016, 0x763a911b
+0, 255600, 38016, 0xb1fb7cc8
+0, 259200, 38016, 0x56bf7f7b
+0, 262800, 38016, 0x87567e3e
+0, 266400, 38016, 0x1aa1209e
+0, 270000, 38016, 0xe2b0da25
+0, 273600, 38016, 0xd250c706
+0, 277200, 38016, 0xbea1be9d
+0, 280800, 38016, 0x02f0e6fb
+0, 284400, 38016, 0xd18d382b
+0, 288000, 38016, 0xd0fa57f3
+0, 291600, 38016, 0x873b43e3
+0, 295200, 38016, 0x75b33855
+0, 298800, 38016, 0xcabbe932
+0, 302400, 38016, 0xeded9c0f
+0, 306000, 38016, 0x86b0b9ec
+0, 309600, 38016, 0xb461e10d
+0, 313200, 38016, 0x6702dbbe
+0, 316800, 38016, 0xb3e47c8c
+0, 320400, 38016, 0xd71333ee
+0, 324000, 38016, 0x15c3f15d
+0, 327600, 38016, 0xa7e6bb4e
+0, 331200, 38016, 0x5d5bd15b
+0, 334800, 38016, 0x2476f6b0
+0, 338400, 38016, 0xbee21b05
+0, 342000, 38016, 0x8172d7b9
+0, 345600, 38016, 0x4893b4b2
+0, 349200, 38016, 0xfda7ed23
+0, 352800, 38016, 0xc1ff4cb4
+0, 356400, 38016, 0x9fdc8cc4
diff --git a/tests/ref/fate/h264-conformance-sharp_mp_field_1_b b/tests/ref/fate/h264-conformance-sharp_mp_field_1_b
new file mode 100644
index 0000000000..7fc503edcb
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-sharp_mp_field_1_b
@@ -0,0 +1,15 @@
+0, 0, 518400, 0xc93c7c47
+0, 3600, 518400, 0xa3f2e502
+0, 7200, 518400, 0xb98920a4
+0, 10800, 518400, 0xad098ec1
+0, 14400, 518400, 0x3009b7aa
+0, 18000, 518400, 0xcf514018
+0, 21600, 518400, 0xd869038d
+0, 25200, 518400, 0x3ce5e188
+0, 28800, 518400, 0x029b4c14
+0, 32400, 518400, 0xd2224afc
+0, 36000, 518400, 0xbbca027c
+0, 39600, 518400, 0x1f3fa0ac
+0, 43200, 518400, 0x823b0125
+0, 46800, 518400, 0xaaa27cfb
+0, 50400, 518400, 0x5e926a4a
diff --git a/tests/ref/fate/h264-conformance-sharp_mp_field_2_b b/tests/ref/fate/h264-conformance-sharp_mp_field_2_b
new file mode 100644
index 0000000000..ec278fa3c6
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-sharp_mp_field_2_b
@@ -0,0 +1,15 @@
+0, 0, 518400, 0xc93c7c47
+0, 3600, 518400, 0xf0c4b44a
+0, 7200, 518400, 0x3f5dc91c
+0, 10800, 518400, 0x03dc8453
+0, 14400, 518400, 0x5e5227af
+0, 18000, 518400, 0x9e7136af
+0, 21600, 518400, 0x963a2e3a
+0, 25200, 518400, 0xa544be6c
+0, 28800, 518400, 0xefa1f63a
+0, 32400, 518400, 0x62155ff1
+0, 36000, 518400, 0x253eb857
+0, 39600, 518400, 0x73530327
+0, 43200, 518400, 0x8920c9a3
+0, 46800, 518400, 0x4bdd038c
+0, 50400, 518400, 0xea6016dd
diff --git a/tests/ref/fate/h264-conformance-sharp_mp_field_3_b b/tests/ref/fate/h264-conformance-sharp_mp_field_3_b
new file mode 100644
index 0000000000..efdd491a5f
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-sharp_mp_field_3_b
@@ -0,0 +1,15 @@
+0, 0, 518400, 0xc93c7c47
+0, 3600, 518400, 0x7112ac25
+0, 7200, 518400, 0x28bc28d2
+0, 10800, 518400, 0x6fc36875
+0, 14400, 518400, 0x3de99be0
+0, 18000, 518400, 0x97125499
+0, 21600, 518400, 0xb96fca3a
+0, 25200, 518400, 0x1ec56c0f
+0, 28800, 518400, 0xc65901d0
+0, 32400, 518400, 0x2baa1bfa
+0, 36000, 518400, 0x244fc6b7
+0, 39600, 518400, 0xc3536383
+0, 43200, 518400, 0xbcf40d5a
+0, 46800, 518400, 0x955f4734
+0, 50400, 518400, 0xe1b0275e
diff --git a/tests/ref/fate/h264-conformance-sharp_mp_paff_1r2 b/tests/ref/fate/h264-conformance-sharp_mp_paff_1r2
new file mode 100644
index 0000000000..08241321f6
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-sharp_mp_paff_1r2
@@ -0,0 +1,15 @@
+0, 0, 518400, 0xc93c7c47
+0, 3600, 518400, 0xfb452a9c
+0, 7200, 518400, 0x2f7a35bd
+0, 10800, 518400, 0xe63e30b9
+0, 14400, 518400, 0x39628205
+0, 18000, 518400, 0x17fa1ea4
+0, 21600, 518400, 0xd5ee83e2
+0, 25200, 518400, 0x611ee98d
+0, 28800, 518400, 0x07c1eeb8
+0, 32400, 518400, 0x9dff3418
+0, 36000, 518400, 0x87cd2f56
+0, 39600, 518400, 0x88675628
+0, 43200, 518400, 0x9bb8c9a0
+0, 46800, 518400, 0xe6c1df00
+0, 50400, 518400, 0xfcaab7a7
diff --git a/tests/ref/fate/h264-conformance-sharp_mp_paff_2r b/tests/ref/fate/h264-conformance-sharp_mp_paff_2r
new file mode 100644
index 0000000000..b41a131109
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-sharp_mp_paff_2r
@@ -0,0 +1,15 @@
+0, 0, 518400, 0xc93c7c47
+0, 3600, 518400, 0xfb452a9c
+0, 7200, 518400, 0x2f7a35bd
+0, 10800, 518400, 0xe63e30b9
+0, 14400, 518400, 0x39628205
+0, 18000, 518400, 0x17fa1ea4
+0, 21600, 518400, 0xd5ee83e2
+0, 25200, 518400, 0x4fd6d5c9
+0, 28800, 518400, 0x8703c999
+0, 32400, 518400, 0x1a87e2d3
+0, 36000, 518400, 0xa27fc4d0
+0, 39600, 518400, 0x6effab5d
+0, 43200, 518400, 0x51ea02c9
+0, 46800, 518400, 0xbcf84c88
+0, 50400, 518400, 0x1d41076b
diff --git a/tests/ref/fate/h264-conformance-sl1_sva_b b/tests/ref/fate/h264-conformance-sl1_sva_b
new file mode 100644
index 0000000000..b218a5882a
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-sl1_sva_b
@@ -0,0 +1,33 @@
+0, 0, 38016, 0x666c110c
+0, 3600, 38016, 0xc87421f6
+0, 7200, 38016, 0x1b74033d
+0, 10800, 38016, 0x21fe21c7
+0, 14400, 38016, 0x8f03321e
+0, 18000, 38016, 0xdbd46290
+0, 21600, 38016, 0x316a57d4
+0, 25200, 38016, 0x0a688f29
+0, 28800, 38016, 0x8bb890d5
+0, 32400, 38016, 0x4210c0a4
+0, 36000, 38016, 0x45f6b0e7
+0, 39600, 38016, 0x5feed346
+0, 43200, 38016, 0x22aea97e
+0, 46800, 38016, 0x8d96a049
+0, 50400, 38016, 0xe623654c
+0, 54000, 38016, 0xccd17c75
+0, 57600, 38016, 0x32ca7712
+0, 61200, 38016, 0x2fe49df2
+0, 64800, 38016, 0x6ee49068
+0, 68400, 38016, 0x74a0ba36
+0, 72000, 38016, 0x5079a13c
+0, 75600, 38016, 0xfd20a991
+0, 79200, 38016, 0xfc987386
+0, 82800, 38016, 0xa1f66a0b
+0, 86400, 38016, 0xd7112683
+0, 90000, 38016, 0xb60b3784
+0, 93600, 38016, 0x9e621ca3
+0, 97200, 38016, 0xd9264308
+0, 100800, 38016, 0x00db43fb
+0, 104400, 38016, 0x665a5b34
+0, 108000, 38016, 0x582050ce
+0, 111600, 38016, 0x52b95de5
+0, 115200, 38016, 0x95d8445e
diff --git a/tests/ref/fate/h264-conformance-sva_ba1_b b/tests/ref/fate/h264-conformance-sva_ba1_b
new file mode 100644
index 0000000000..0cb825aa37
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-sva_ba1_b
@@ -0,0 +1,17 @@
+0, 0, 38016, 0x359316a1
+0, 3600, 38016, 0xd5fafa54
+0, 7200, 38016, 0xea99e9be
+0, 10800, 38016, 0xd680f3db
+0, 14400, 38016, 0x8b771545
+0, 18000, 38016, 0xff8c3073
+0, 21600, 38016, 0x543d403a
+0, 25200, 38016, 0xd2136010
+0, 28800, 38016, 0x11d17cd3
+0, 32400, 38016, 0xd8c69527
+0, 36000, 38016, 0x070d9a08
+0, 39600, 38016, 0xc8e3b21d
+0, 43200, 38016, 0xe903b09e
+0, 46800, 38016, 0x30ba9ece
+0, 50400, 38016, 0xb32482a4
+0, 54000, 38016, 0x56cf8ea3
+0, 57600, 38016, 0x0b41abd0
diff --git a/tests/ref/fate/h264-conformance-sva_ba2_d b/tests/ref/fate/h264-conformance-sva_ba2_d
new file mode 100644
index 0000000000..90337a2e41
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-sva_ba2_d
@@ -0,0 +1,17 @@
+0, 0, 38016, 0x359316a1
+0, 3600, 38016, 0xd7bb1285
+0, 7200, 38016, 0x3c36059f
+0, 10800, 38016, 0x983d195f
+0, 14400, 38016, 0xba323cc5
+0, 18000, 38016, 0xc9db4f32
+0, 21600, 38016, 0xc2a06817
+0, 25200, 38016, 0x18018392
+0, 28800, 38016, 0x8b4da14c
+0, 32400, 38016, 0x5a33b0f5
+0, 36000, 38016, 0x5b48b808
+0, 39600, 38016, 0xfc13c523
+0, 43200, 38016, 0xb915c169
+0, 46800, 38016, 0xfaab94ed
+0, 50400, 38016, 0xe455786f
+0, 54000, 38016, 0x529182a8
+0, 57600, 38016, 0xfb6893a9
diff --git a/tests/ref/fate/h264-conformance-sva_base_b b/tests/ref/fate/h264-conformance-sva_base_b
new file mode 100644
index 0000000000..56cc9c635b
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-sva_base_b
@@ -0,0 +1,17 @@
+0, 0, 38016, 0x1c131302
+0, 3600, 38016, 0xbbca0c4f
+0, 7200, 38016, 0x81f5fd7b
+0, 10800, 38016, 0xc8990c96
+0, 14400, 38016, 0xd4c337ce
+0, 18000, 38016, 0xc4544ee1
+0, 21600, 38016, 0x5de26832
+0, 25200, 38016, 0xc1fc7ba9
+0, 28800, 38016, 0x5fea9c67
+0, 32400, 38016, 0xfa0aaf63
+0, 36000, 38016, 0xa7f6c07d
+0, 39600, 38016, 0x11a0c6ff
+0, 43200, 38016, 0xfdefc3a0
+0, 46800, 38016, 0xdb729a49
+0, 50400, 38016, 0x9b5e7f0b
+0, 54000, 38016, 0x6a047ea9
+0, 57600, 38016, 0xd8c29302
diff --git a/tests/ref/fate/h264-conformance-sva_cl1_e b/tests/ref/fate/h264-conformance-sva_cl1_e
new file mode 100644
index 0000000000..af1dbab55d
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-sva_cl1_e
@@ -0,0 +1,50 @@
+0, 0, 38016, 0x6811161f
+0, 3600, 38016, 0x243a0d4e
+0, 7200, 38016, 0x0bc700de
+0, 10800, 38016, 0x30db1659
+0, 14400, 38016, 0xf88d3f1a
+0, 18000, 38016, 0xb37d5bd2
+0, 21600, 38016, 0x93f46c04
+0, 25200, 38016, 0xdb9878d0
+0, 28800, 38016, 0x92509f3a
+0, 32400, 38016, 0xd63badea
+0, 36000, 38016, 0xb942b664
+0, 39600, 38016, 0x703bc4ee
+0, 43200, 38016, 0xa78abfcd
+0, 46800, 38016, 0x4e1b96d8
+0, 50400, 38016, 0xaed371ac
+0, 54000, 38016, 0x2c917f89
+0, 57600, 38016, 0x57c29c96
+0, 61200, 38016, 0xaf1fb16a
+0, 64800, 38016, 0x257eb325
+0, 68400, 38016, 0x7701b0f9
+0, 72000, 38016, 0x7074c151
+0, 75600, 38016, 0x9778b1fe
+0, 79200, 38016, 0x9c2e8c0c
+0, 82800, 38016, 0x394276e9
+0, 86400, 38016, 0x2f5157bc
+0, 90000, 38016, 0xfb313ee7
+0, 93600, 38016, 0xbc6349c3
+0, 97200, 38016, 0xdca95a0c
+0, 100800, 38016, 0x53c46d45
+0, 104400, 38016, 0x62867764
+0, 108000, 38016, 0x87847fa3
+0, 111600, 38016, 0x74527d90
+0, 115200, 38016, 0x5c7a7779
+0, 118800, 38016, 0xeafd7e73
+0, 122400, 38016, 0x63aa7d06
+0, 126000, 38016, 0x2bc06fd2
+0, 129600, 38016, 0x058a7eae
+0, 133200, 38016, 0xc51a6f85
+0, 136800, 38016, 0xb49e6b0b
+0, 140400, 38016, 0x881a5997
+0, 144000, 38016, 0x5e4956b7
+0, 147600, 38016, 0x835441a0
+0, 151200, 38016, 0x212933cd
+0, 154800, 38016, 0x914031bd
+0, 158400, 38016, 0x29b63d29
+0, 162000, 38016, 0x03a03b60
+0, 165600, 38016, 0x282e1a0f
+0, 169200, 38016, 0x8964f214
+0, 172800, 38016, 0x23a9c5f9
+0, 176400, 38016, 0x04f9a780
diff --git a/tests/ref/fate/h264-conformance-sva_fm1_e b/tests/ref/fate/h264-conformance-sva_fm1_e
new file mode 100644
index 0000000000..f83a51b6b0
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-sva_fm1_e
@@ -0,0 +1,17 @@
+0, 0, 38016, 0x1c131302
+0, 3600, 38016, 0x89dd0c15
+0, 7200, 38016, 0xaf7700bd
+0, 10800, 38016, 0x220d1115
+0, 14400, 38016, 0x76d0354e
+0, 18000, 38016, 0x9e514b93
+0, 21600, 38016, 0x20ff5e7c
+0, 25200, 38016, 0xd9cb7e01
+0, 28800, 38016, 0x26b7992d
+0, 32400, 38016, 0xa29dac84
+0, 36000, 38016, 0x407cb6e8
+0, 39600, 38016, 0xe82cc064
+0, 43200, 38016, 0x63ddb80f
+0, 46800, 38016, 0xec6f93a1
+0, 50400, 38016, 0x5f217759
+0, 54000, 38016, 0x341982ba
+0, 57600, 38016, 0x3f48980c
diff --git a/tests/ref/fate/h264-conformance-sva_nl1_b b/tests/ref/fate/h264-conformance-sva_nl1_b
new file mode 100644
index 0000000000..074e656bc7
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-sva_nl1_b
@@ -0,0 +1,17 @@
+0, 0, 38016, 0xb9ac19bd
+0, 3600, 38016, 0x3898fc35
+0, 7200, 38016, 0xf6f4ed19
+0, 10800, 38016, 0xc31af64b
+0, 14400, 38016, 0x42161687
+0, 18000, 38016, 0xe88133a3
+0, 21600, 38016, 0xebb5415a
+0, 25200, 38016, 0x643c62ac
+0, 28800, 38016, 0x7ad68041
+0, 32400, 38016, 0x2625981b
+0, 36000, 38016, 0x1a839bbf
+0, 39600, 38016, 0xe41db3a9
+0, 43200, 38016, 0x894eb2dd
+0, 46800, 38016, 0x4633a2a2
+0, 50400, 38016, 0xeb848787
+0, 54000, 38016, 0x23c590b0
+0, 57600, 38016, 0xc7cbaf63
diff --git a/tests/ref/fate/h264-conformance-sva_nl2_e b/tests/ref/fate/h264-conformance-sva_nl2_e
new file mode 100644
index 0000000000..6c0a40ede2
--- /dev/null
+++ b/tests/ref/fate/h264-conformance-sva_nl2_e
@@ -0,0 +1,17 @@
+0, 0, 38016, 0xb9ac19bd
+0, 3600, 38016, 0x53c91566
+0, 7200, 38016, 0xb5bd089f
+0, 10800, 38016, 0xb81320bb
+0, 14400, 38016, 0x7c793dce
+0, 18000, 38016, 0x3d605b31
+0, 21600, 38016, 0x40216830
+0, 25200, 38016, 0x11c48f52
+0, 28800, 38016, 0x0f37a013
+0, 32400, 38016, 0xb06cb753
+0, 36000, 38016, 0x6233ca83
+0, 39600, 38016, 0x02b6d5a1
+0, 43200, 38016, 0xf76cc409
+0, 46800, 38016, 0xd19fa5c3
+0, 50400, 38016, 0x8d1c8a02
+0, 54000, 38016, 0x6802966d
+0, 57600, 38016, 0x107fb055
diff --git a/tests/ref/fate/id-cin-video b/tests/ref/fate/id-cin-video
new file mode 100644
index 0000000000..174cef87d8
--- /dev/null
+++ b/tests/ref/fate/id-cin-video
@@ -0,0 +1,105 @@
+0, 0, 230400, 0x00000000
+1, 0, 6300, 0xdd759df8
+0, 6429, 230400, 0x3a3486b4
+1, 6429, 6300, 0x43aa398c
+0, 12857, 230400, 0xb6a9b772
+1, 12857, 6300, 0x61a7b9fd
+0, 19286, 230400, 0x8e2d4c03
+1, 19286, 6300, 0xfc8adbc8
+0, 25714, 230400, 0x5df342a9
+1, 25714, 6300, 0x84c4dffc
+0, 32143, 230400, 0x00f95cc9
+1, 32143, 6300, 0x3044ede1
+0, 38571, 230400, 0x72ee1c4c
+1, 38571, 6300, 0x6de5b64c
+0, 45000, 230400, 0x2bd991e8
+1, 45000, 6300, 0x1d9df1b0
+0, 51429, 230400, 0x84cf471e
+1, 51429, 6300, 0xb5864b86
+0, 57857, 230400, 0x75253428
+1, 57857, 6300, 0xf2f7fbc2
+0, 64286, 230400, 0x57246d42
+1, 64286, 6300, 0xe61307a8
+0, 70714, 230400, 0x57246d42
+1, 70714, 6300, 0x07fcd607
+0, 77143, 230400, 0x57246d42
+1, 77143, 6300, 0xb8dfbdf6
+0, 83571, 230400, 0x7072be1b
+1, 83571, 6300, 0xf308e40c
+0, 90000, 230400, 0x2e9ffcf2
+1, 90000, 6300, 0xa6163aa8
+0, 96429, 230400, 0x2e9ffcf2
+1, 96429, 6300, 0x3f74c286
+0, 102857, 230400, 0x1a5cb24d
+1, 102857, 6300, 0xcece754c
+0, 109286, 230400, 0x1a06c797
+1, 109286, 6300, 0x7c5b47b9
+0, 115714, 230400, 0x9e51b953
+1, 115714, 6300, 0x3a7baf37
+0, 122143, 230400, 0x9e51b953
+1, 122143, 6300, 0x56fd368e
+0, 128571, 230400, 0x9e51b953
+1, 128571, 6300, 0x68db250e
+0, 135000, 230400, 0x9e51b953
+1, 135000, 6300, 0x37d2d710
+0, 141429, 230400, 0x9e51b953
+1, 141429, 6300, 0xf458b88e
+0, 147857, 230400, 0xccd7c68d
+1, 147857, 6300, 0xed38430f
+0, 154286, 230400, 0x776da8bc
+1, 154286, 6300, 0xd5982d28
+0, 160714, 230400, 0x495bec1c
+1, 160714, 6300, 0x17465fb3
+0, 167143, 230400, 0x495bec1c
+1, 167143, 6300, 0xe4591d73
+0, 173571, 230400, 0x495bec1c
+1, 173571, 6300, 0x4cbbf957
+0, 180000, 230400, 0x495bec1c
+1, 180000, 6300, 0x4f031f50
+0, 186429, 230400, 0x495bec1c
+1, 186429, 6300, 0xc03f8ca1
+0, 192857, 230400, 0x495bec1c
+1, 192857, 6300, 0x1f0d133c
+0, 199286, 230400, 0x495bec1c
+1, 199286, 6300, 0x18dbbeb4
+0, 205714, 230400, 0xa1cae3f3
+1, 205714, 6300, 0xef3fa45f
+0, 212143, 230400, 0x5cd567eb
+1, 212143, 6300, 0x7880f935
+0, 218571, 230400, 0x57bbfe30
+1, 218571, 6300, 0x5eeca5d5
+0, 225000, 230400, 0xc7763926
+1, 225000, 6300, 0xda99accc
+0, 231429, 230400, 0xc7763926
+1, 231429, 6300, 0x90aea270
+0, 237857, 230400, 0xc7763926
+1, 237857, 6300, 0x7fc9da4e
+0, 244286, 230400, 0xc7763926
+1, 244286, 6300, 0xb64d34d4
+0, 250714, 230400, 0xc7763926
+1, 250714, 6300, 0x385ed9e7
+0, 257143, 230400, 0xc7763926
+1, 257143, 6300, 0xd2f5be45
+0, 263571, 230400, 0xc7763926
+1, 263571, 6300, 0x763fa974
+0, 270000, 230400, 0x0e68cb2f
+1, 270000, 6300, 0x5a785ec4
+0, 276429, 230400, 0x1a5d96ba
+1, 276429, 6300, 0x2877c5a5
+0, 282857, 230400, 0xff3554f4
+1, 282857, 6300, 0x667e81a5
+0, 289286, 230400, 0x74438207
+1, 289286, 6300, 0xdcfeffeb
+0, 295714, 230400, 0x488de02d
+1, 295714, 6300, 0x1aae1606
+0, 302143, 230400, 0x488de02d
+1, 302143, 6300, 0x37e0550f
+0, 308571, 230400, 0x488de02d
+1, 308571, 6300, 0x018202e9
+0, 315000, 230400, 0x488de02d
+1, 315000, 6300, 0x2b13de85
+0, 321429, 230400, 0x488de02d
+1, 321429, 6300, 0xe3bfa403
+0, 327857, 230400, 0x488de02d
+1, 327857, 6300, 0x2c5bd9c9
+0, 334286, 230400, 0x488de02d
diff --git a/tests/ref/fate/idroq-video-dpcm b/tests/ref/fate/idroq-video-dpcm
new file mode 100644
index 0000000000..cad87fe324
--- /dev/null
+++ b/tests/ref/fate/idroq-video-dpcm
@@ -0,0 +1,377 @@
+1, 0, 29824, 0x77e265b7
+0, 0, 393216, 0x56995aac
+0, 3000, 393216, 0xf9ed5d6c
+0, 6000, 393216, 0xd3285d75
+0, 9000, 393216, 0x82d15d62
+0, 12000, 393216, 0x893e5d6f
+0, 15000, 393216, 0x82d15d62
+0, 18000, 393216, 0x893e5d6f
+0, 21000, 393216, 0x82d15d62
+0, 24000, 393216, 0x893e5d6f
+0, 27000, 393216, 0x82d15d62
+0, 30000, 393216, 0x893e5d6f
+1, 30433, 2944, 0x8dcdf50b
+0, 33000, 393216, 0x82d15d62
+1, 33437, 2944, 0xb135cd2a
+0, 36000, 393216, 0x893e5d6f
+1, 36441, 2944, 0x54a6e73f
+0, 39000, 393216, 0x82d15d62
+1, 39445, 2944, 0x050ccd4e
+0, 42000, 393216, 0x893e5d6f
+1, 42449, 2944, 0x6b68db44
+0, 45000, 393216, 0x82d15d62
+1, 45453, 2944, 0x55d1f308
+0, 48000, 393216, 0x2ae39eca
+1, 48457, 2944, 0x7e92f50b
+0, 51000, 393216, 0x9254be70
+1, 51461, 2944, 0xe9e91eed
+0, 54000, 393216, 0x4b2ed384
+1, 54465, 2944, 0x80af2ce0
+0, 57000, 393216, 0xbbd9d8f7
+1, 57469, 2944, 0xc67ffb07
+0, 60000, 393216, 0x1f2be0c3
+1, 60473, 2944, 0x7aaded27
+0, 63000, 393216, 0x2434eb25
+1, 63478, 2944, 0x14a024fd
+0, 66000, 393216, 0xa6cced4e
+1, 66482, 2944, 0x26e8df1f
+0, 69000, 393216, 0xd116f38b
+1, 69486, 2944, 0x2688df44
+0, 72000, 393216, 0x6b86f380
+1, 72490, 2944, 0x4b9cdd33
+0, 75000, 393216, 0xc1b3f8e9
+1, 75494, 2944, 0x10c2f11c
+0, 78000, 393216, 0x2993fd5d
+1, 78498, 2944, 0xc4e3ad6d
+0, 81000, 393216, 0xf489fe18
+1, 81502, 2944, 0xbeb1a78e
+0, 84000, 393216, 0x9ef10501
+1, 84506, 2944, 0x283d4e7f
+0, 87000, 393216, 0x8faf0512
+1, 87510, 2944, 0x4acf65e0
+0, 90000, 393216, 0xa54d0736
+1, 90514, 2944, 0x0ca29b8c
+0, 93000, 393216, 0xf4ef01e0
+1, 93518, 2944, 0x003fae34
+0, 96000, 393216, 0xe241ef51
+1, 96522, 2944, 0x2acfec7e
+0, 99000, 393216, 0xcc38e51f
+1, 99527, 2944, 0xea6fc6fe
+0, 102000, 393216, 0xb1345876
+1, 102531, 2944, 0xf5daec2f
+0, 105000, 393216, 0xf9b0968b
+1, 105535, 2944, 0x8d33ed7a
+0, 108000, 393216, 0x6bb1523f
+1, 108539, 2944, 0xc328f984
+0, 111000, 393216, 0x83469a05
+1, 111543, 2944, 0x6e0b58d3
+0, 114000, 393216, 0x73e30882
+1, 114547, 2944, 0xe282dc3f
+0, 117000, 393216, 0x8673da66
+1, 117551, 2944, 0xbf9bf3e6
+0, 120000, 393216, 0xb67596d3
+1, 120555, 2944, 0xd7b7d7e3
+0, 123000, 393216, 0xf7638710
+1, 123559, 2944, 0x4e87b6ab
+0, 126000, 393216, 0x813a8f47
+1, 126563, 2944, 0x7b8ce8d6
+0, 129000, 393216, 0xb3526555
+1, 129567, 2944, 0xd42991a5
+0, 132000, 393216, 0x1b167be3
+1, 132571, 2944, 0x452c98ca
+0, 135000, 393216, 0x99114562
+1, 135576, 2944, 0x6d27832d
+0, 138000, 393216, 0xfafb0693
+1, 138580, 2944, 0xa558720e
+0, 141000, 393216, 0x121d96c8
+1, 141584, 2944, 0x0a31bec0
+0, 144000, 393216, 0xb3c68c5d
+1, 144588, 2944, 0x28431384
+0, 147000, 393216, 0x2035b97f
+1, 147592, 2944, 0xd5e9fb3d
+0, 150000, 393216, 0xfbcaeb62
+1, 150596, 2944, 0x34f0e9f8
+0, 153000, 393216, 0xfd5aea5d
+1, 153600, 2944, 0x979432df
+0, 156000, 393216, 0x66efbddd
+1, 156604, 2944, 0xb00acd4d
+0, 159000, 393216, 0xf1e17862
+1, 159608, 2944, 0x726bffd6
+0, 162000, 393216, 0x27fa584d
+1, 162612, 2944, 0xa1f39a6d
+0, 165000, 393216, 0xe644ec5f
+1, 165616, 2944, 0xf6a8e30e
+0, 168000, 393216, 0x7e3067ba
+1, 168620, 2944, 0x608e9e06
+0, 171000, 393216, 0x1b6ba6fd
+1, 171624, 2944, 0x4ec58bc3
+0, 174000, 393216, 0x55bdba34
+1, 174629, 2944, 0x6d5c8458
+0, 177000, 393216, 0xc67db2e4
+1, 177633, 2944, 0x76a0abbd
+0, 180000, 393216, 0x359de8a2
+1, 180637, 2944, 0xf830e8a6
+0, 183000, 393216, 0x7b7a32ef
+1, 183641, 2944, 0x1bdd7bec
+0, 186000, 393216, 0xbe512a66
+1, 186645, 2944, 0x3c1bd187
+0, 189000, 393216, 0x681d82bf
+1, 189649, 2944, 0xf52cf697
+0, 192000, 393216, 0xa2320ec5
+1, 192653, 2944, 0x8f65b773
+0, 195000, 393216, 0xcfbd9954
+1, 195657, 2944, 0xf8b5b598
+0, 198000, 393216, 0x7fee9854
+1, 198661, 2944, 0xcd87d5ed
+0, 201000, 393216, 0x70eec155
+1, 201665, 2944, 0x672ac02a
+0, 204000, 393216, 0x114f684e
+1, 204669, 2944, 0x1d5d13ed
+0, 207000, 393216, 0xe27f034f
+1, 207673, 2944, 0xe298e3d4
+0, 210000, 393216, 0xfbbd89b4
+1, 210678, 2944, 0x3d2e9c32
+0, 213000, 393216, 0xcef4c58a
+1, 213682, 2944, 0xf3a39259
+0, 216000, 393216, 0x9eea88e9
+1, 216686, 2944, 0x930ae8f8
+0, 219000, 393216, 0x911cea42
+1, 219690, 2944, 0x8562aff7
+0, 222000, 393216, 0xec5727ea
+1, 222694, 2944, 0x9cd6c6a7
+0, 225000, 393216, 0xda998c33
+1, 225698, 2944, 0x2709dc5c
+0, 228000, 393216, 0xc82140ed
+1, 228702, 2944, 0xcbe31816
+0, 231000, 393216, 0x4caa8591
+1, 231706, 2944, 0xd7876ec4
+0, 234000, 393216, 0x4944206c
+1, 234710, 2944, 0xc2468b6a
+0, 237000, 393216, 0xd4676a94
+1, 237714, 2944, 0x76043e84
+0, 240000, 393216, 0x9e0340b3
+1, 240718, 2944, 0xd2c35bf0
+0, 243000, 393216, 0xbdef7f94
+1, 243722, 2944, 0x63de6061
+0, 246000, 393216, 0xfac05cb0
+1, 246727, 2944, 0xd8f6ed1d
+0, 249000, 393216, 0xfef5a369
+1, 249731, 2944, 0xe034928a
+0, 252000, 393216, 0x9fcb3711
+1, 252735, 2944, 0xa044da74
+0, 255000, 393216, 0x6d93f761
+1, 255739, 2944, 0xee410dba
+0, 258000, 393216, 0xe95dc1ae
+1, 258743, 2944, 0x8e020c7c
+0, 261000, 393216, 0x3e561557
+1, 261747, 2944, 0x73057ddb
+0, 264000, 393216, 0x0fa7a049
+1, 264751, 2944, 0xdee5cc18
+0, 267000, 393216, 0xf16afb95
+1, 267755, 2944, 0xf4d31dec
+0, 270000, 393216, 0xe53a2064
+1, 270759, 2944, 0xe8131e1c
+0, 273000, 393216, 0x57f046a4
+1, 273763, 2944, 0x8ae69c95
+0, 276000, 393216, 0xf6f16a0c
+1, 276767, 2944, 0x791c0bf4
+0, 279000, 393216, 0xcba0c8b0
+1, 279771, 2944, 0xd45a10db
+0, 282000, 393216, 0x5bdbe522
+1, 282776, 2944, 0x3a72b010
+0, 285000, 393216, 0x0fed0151
+1, 285780, 2944, 0x6a4a0411
+0, 288000, 393216, 0xbf86faf8
+1, 288784, 2944, 0xd77ab7f5
+0, 291000, 393216, 0x39854c5f
+1, 291788, 2944, 0xe3bf4fe5
+0, 294000, 393216, 0xd9b7760a
+1, 294792, 2944, 0x12db1be8
+0, 297000, 393216, 0x8edcc1d9
+1, 297796, 2944, 0x345210b0
+0, 300000, 393216, 0x44ae1435
+1, 300800, 2944, 0xcfc1f892
+0, 303000, 393216, 0xbc3d6d73
+1, 303804, 2944, 0x5b0a80bb
+0, 306000, 393216, 0xedd82647
+1, 306808, 2944, 0x31ab1168
+0, 309000, 393216, 0x1c2e5ce3
+1, 309812, 2944, 0xd4a4bb0a
+0, 312000, 393216, 0x04e29afe
+1, 312816, 2944, 0x8e211c8f
+0, 315000, 393216, 0xb191578e
+1, 315820, 2944, 0xcf464d50
+0, 318000, 393216, 0x31d75a06
+1, 318824, 2944, 0xe74ff3d6
+0, 321000, 393216, 0xfdb6c56e
+1, 321829, 2944, 0x6274635f
+0, 324000, 393216, 0xf528f484
+1, 324833, 2944, 0xc34c9f64
+0, 327000, 393216, 0x87af758e
+1, 327837, 2944, 0xbb997537
+0, 330000, 393216, 0xc8bdafb7
+1, 330841, 2944, 0x3600da72
+0, 333000, 393216, 0x573afe93
+1, 333845, 2944, 0x343e15f4
+0, 336000, 393216, 0xb03cb8f5
+1, 336849, 2944, 0x17bc58a8
+0, 339000, 393216, 0x6e03ac71
+1, 339853, 2944, 0x3dcbd3ff
+0, 342000, 393216, 0xf919164e
+1, 342857, 2944, 0x1d422371
+0, 345000, 393216, 0x80059f3c
+1, 345861, 2944, 0xe2b83d9d
+0, 348000, 393216, 0xf4ea0b1a
+1, 348865, 2944, 0x65388409
+0, 351000, 393216, 0xe7720ffb
+1, 351869, 2944, 0xafbca269
+0, 354000, 393216, 0x1ec0cd56
+1, 354873, 2944, 0x2d00c0fb
+0, 357000, 393216, 0x2bc8cf18
+1, 357878, 2944, 0xbac9c503
+0, 360000, 393216, 0xe0bf17b5
+1, 360882, 2944, 0x9990768d
+0, 363000, 393216, 0x660247e1
+1, 363886, 2944, 0x8ba978be
+0, 366000, 393216, 0xcf66f2a9
+1, 366890, 2944, 0x5a44a2f5
+0, 369000, 393216, 0x5494d5ab
+1, 369894, 2944, 0xa4b6f3b8
+0, 372000, 393216, 0x2c02f2c4
+1, 372898, 2944, 0x631b6b9f
+0, 375000, 393216, 0x93fa3783
+1, 375902, 2944, 0x4c840923
+0, 378000, 393216, 0x4cc50633
+1, 378906, 2944, 0x7c105df3
+0, 381000, 393216, 0x3f179386
+1, 381910, 2944, 0x01bcb213
+0, 384000, 393216, 0x2bca9e1b
+1, 384914, 2944, 0x95cffbf7
+0, 387000, 393216, 0x3e4af867
+1, 387918, 2944, 0x170a9c3a
+0, 390000, 393216, 0x7e7df93c
+1, 390922, 2944, 0x59e09d61
+0, 393000, 393216, 0x577e4fb0
+1, 393927, 2944, 0x3ea0f205
+0, 396000, 393216, 0x34487f0a
+1, 396931, 2944, 0xd9ea1a3a
+0, 399000, 393216, 0x0937bcfc
+1, 399935, 2944, 0xaf32d704
+0, 402000, 393216, 0xa9e75a5e
+1, 402939, 2944, 0x2d473392
+0, 405000, 393216, 0xf7bc0c89
+1, 405943, 2944, 0x2a8ec544
+0, 408000, 393216, 0x06dacca6
+1, 408947, 2944, 0x883c8838
+0, 411000, 393216, 0x7baaa4bd
+1, 411951, 2944, 0xfaf4d789
+0, 414000, 393216, 0x95477f5f
+1, 414955, 2944, 0xcb315b65
+0, 417000, 393216, 0x51117526
+1, 417959, 2944, 0x980c93b0
+0, 420000, 393216, 0x69656d03
+1, 420963, 2944, 0x0819583b
+0, 423000, 393216, 0xcbd061bb
+1, 423967, 2944, 0xf126e5b5
+0, 426000, 393216, 0x8d1d5be2
+1, 426971, 2944, 0x88836255
+0, 429000, 393216, 0x43e55930
+1, 429976, 2944, 0xc8ae8ca8
+0, 432000, 393216, 0xb56f5872
+1, 432980, 2944, 0xf0750551
+0, 435000, 393216, 0x09a255e9
+1, 435984, 2944, 0x3dfe13a3
+0, 438000, 393216, 0xcaaa5456
+1, 438988, 2944, 0xf2aa957b
+0, 441000, 393216, 0xd267501f
+1, 441992, 2944, 0xa77b79a3
+0, 444000, 393216, 0x7bef4eca
+1, 444996, 2944, 0xb1038284
+0, 447000, 393216, 0x9aa94af3
+1, 448000, 2944, 0xf96be3ba
+0, 450000, 393216, 0xd39d4a29
+1, 451004, 2944, 0x1ae6e293
+0, 453000, 393216, 0x7a754960
+1, 454008, 2944, 0x2059d020
+0, 456000, 393216, 0x3f004921
+1, 457012, 2944, 0x7e6c9996
+0, 459000, 393216, 0x0f784ca8
+1, 460016, 2944, 0x3108b540
+0, 462000, 393216, 0x2a062c70
+1, 463020, 2944, 0x75133155
+0, 465000, 393216, 0x114ef770
+1, 466024, 2944, 0x59a19226
+0, 468000, 393216, 0xfb7673bf
+1, 469029, 2944, 0x3140c138
+0, 471000, 393216, 0xbaea88f7
+1, 472033, 2944, 0x7570d3be
+0, 474000, 393216, 0x6fdfe2ec
+1, 475037, 2944, 0x54fd4ff6
+0, 477000, 393216, 0xb7b2b398
+1, 478041, 2944, 0x23bcf6dc
+0, 480000, 393216, 0x14ba127e
+1, 481045, 2944, 0x2d26489b
+0, 483000, 393216, 0x660b3041
+1, 484049, 2944, 0x4b37bf13
+0, 486000, 393216, 0xe3f3302a
+1, 487053, 2944, 0x12812ec9
+0, 489000, 393216, 0x34c7f1c9
+1, 490057, 2944, 0xc4a609dd
+0, 492000, 393216, 0xa8257bf4
+1, 493061, 2944, 0x5a8c5b20
+0, 495000, 393216, 0xd63fc649
+1, 496065, 2944, 0xd05d110f
+0, 498000, 393216, 0xf8e5b79c
+1, 499069, 2944, 0xceea6f1f
+0, 501000, 393216, 0xa67b52ab
+1, 502073, 2944, 0x4033b0a5
+0, 504000, 393216, 0xef8f9c74
+1, 505078, 2944, 0x101895ce
+0, 507000, 393216, 0x6d3aa6b6
+1, 508082, 2944, 0xd6c6809f
+0, 510000, 393216, 0x8c174ee6
+1, 511086, 2944, 0x197bda7e
+0, 513000, 393216, 0x2dfbc524
+1, 514090, 2944, 0x96fb3e4b
+0, 516000, 393216, 0x7d0808b6
+1, 517094, 2944, 0x12a6e3de
+0, 519000, 393216, 0x6cbdf6f5
+1, 520098, 2944, 0xfb80e466
+0, 522000, 393216, 0xfe39bc53
+1, 523102, 2944, 0xedb8c2fc
+0, 525000, 393216, 0xa3d869b0
+1, 526106, 1016, 0x30e56ca5
+0, 528000, 393216, 0x09f00057
+0, 531000, 393216, 0x6ba56343
+0, 534000, 393216, 0xb696ca3e
+0, 537000, 393216, 0x4eba0225
+0, 540000, 393216, 0xdd45464b
+0, 543000, 393216, 0x2909a9ea
+0, 546000, 393216, 0x12aa3f85
+0, 549000, 393216, 0x59421352
+0, 552000, 393216, 0x57ea0313
+0, 555000, 393216, 0x4e5f3a38
+0, 558000, 393216, 0x55bc932d
+0, 561000, 393216, 0x666ee55d
+0, 564000, 393216, 0xb0f84a69
+0, 567000, 393216, 0xad3ae63f
+0, 570000, 393216, 0x970fd47d
+0, 573000, 393216, 0x86c418e0
+0, 576000, 393216, 0x52c9ce50
+0, 579000, 393216, 0xd54c98c8
+0, 582000, 393216, 0xb40e5fea
+0, 585000, 393216, 0x2aa74875
+0, 588000, 393216, 0x305b251e
+0, 591000, 393216, 0xab8c0780
+0, 594000, 393216, 0x0101dd0e
+0, 597000, 393216, 0x23739cab
+0, 600000, 393216, 0xf05196a0
+0, 603000, 393216, 0x932d1e00
+0, 606000, 393216, 0x932d1e00
+0, 609000, 393216, 0x932d1e00
+0, 612000, 393216, 0x932d1e00
+0, 615000, 393216, 0x932d1e00
+0, 618000, 393216, 0x932d1e00
+0, 621000, 393216, 0x932d1e00
+0, 624000, 393216, 0x932d1e00
+0, 627000, 393216, 0x932d1e00
diff --git a/tests/ref/fate/idroq-video-encode b/tests/ref/fate/idroq-video-encode
new file mode 100644
index 0000000000..4c89de8b63
--- /dev/null
+++ b/tests/ref/fate/idroq-video-encode
@@ -0,0 +1 @@
+75df9ce475c1b185fc3dbc219596edd3
diff --git a/tests/ref/fate/iff-byterun1 b/tests/ref/fate/iff-byterun1
new file mode 100644
index 0000000000..8620c8637b
--- /dev/null
+++ b/tests/ref/fate/iff-byterun1
@@ -0,0 +1 @@
+0, 0, 230400, 0x35e51c62
diff --git a/tests/ref/fate/iff-fibonacci b/tests/ref/fate/iff-fibonacci
new file mode 100644
index 0000000000..e452f31e6c
--- /dev/null
+++ b/tests/ref/fate/iff-fibonacci
@@ -0,0 +1 @@
+e968a853779bb6438339e3b8d69d8d24
diff --git a/tests/ref/fate/iff-ilbm b/tests/ref/fate/iff-ilbm
new file mode 100644
index 0000000000..eb253a0a9e
--- /dev/null
+++ b/tests/ref/fate/iff-ilbm
@@ -0,0 +1 @@
+0, 0, 230400, 0x0929e342
diff --git a/tests/ref/fate/iff-pcm b/tests/ref/fate/iff-pcm
new file mode 100644
index 0000000000..cffcc57dfe
--- /dev/null
+++ b/tests/ref/fate/iff-pcm
@@ -0,0 +1 @@
+6dc1329541393525a60fd6b9782573f5
diff --git a/tests/ref/fate/indeo2 b/tests/ref/fate/indeo2
new file mode 100644
index 0000000000..49fabb4590
--- /dev/null
+++ b/tests/ref/fate/indeo2
@@ -0,0 +1,130 @@
+0, 0, 21600, 0x57a2ba42
+0, 6000, 21600, 0x61e09615
+0, 12000, 21600, 0x826e4e63
+0, 18000, 21600, 0x107716ec
+0, 24000, 21600, 0xb35ce1f4
+0, 30000, 21600, 0x12cab085
+0, 36000, 21600, 0x2f917f69
+0, 42000, 21600, 0x25aa3d6e
+0, 48000, 21600, 0xab1bfbed
+0, 54000, 21600, 0x9936dff9
+0, 60000, 21600, 0xc23cd8e5
+0, 66000, 21600, 0xa7ebbcaa
+0, 72000, 21600, 0xd4dda045
+0, 78000, 21600, 0xcbce6d7d
+0, 84000, 21600, 0x3cf35baf
+0, 90000, 21600, 0x16de6008
+0, 96000, 21600, 0x49d41acf
+0, 102001, 21600, 0x8c630034
+0, 108001, 21600, 0x0b310296
+0, 114001, 21600, 0x4887067d
+0, 120001, 21600, 0x1219f29e
+0, 126001, 21600, 0x3f3fc0c8
+0, 132001, 21600, 0x1bd1d0fc
+0, 138001, 21600, 0x913f9d4c
+0, 144001, 21600, 0x69e9a6b4
+0, 150001, 21600, 0xcc2e917f
+0, 156001, 21600, 0xf6967e30
+0, 162001, 21600, 0xdf816593
+0, 168001, 21600, 0xfd945b75
+0, 174001, 21600, 0x7d7e0224
+0, 180001, 21600, 0x7246f584
+0, 186001, 21600, 0x07b7ce82
+0, 192001, 21600, 0xee16c291
+0, 198001, 21600, 0xf4efb53a
+0, 204001, 21600, 0x2e73a208
+0, 210001, 21600, 0x1c2b6068
+0, 216001, 21600, 0x004250de
+0, 222001, 21600, 0x61d957d9
+0, 228001, 21600, 0x8b5d2cb0
+0, 234001, 21600, 0xc0a91fbc
+0, 240001, 21600, 0xa38108fc
+0, 246001, 21600, 0x551f03b9
+0, 252001, 21600, 0x93def5ca
+0, 258001, 21600, 0xe8ecf8bb
+0, 264001, 21600, 0x4c04fbb0
+0, 270001, 21600, 0x0e41dae4
+0, 276001, 21600, 0xca9fb0df
+0, 282001, 21600, 0xb123af19
+0, 288001, 21600, 0xfd59be7a
+0, 294001, 21600, 0x2c88b7a6
+0, 300002, 21600, 0x64cc9a1f
+0, 306002, 21600, 0x73d6a9ba
+0, 312002, 21600, 0x79198a11
+0, 318002, 21600, 0x0d4a8610
+0, 324002, 21600, 0x352e71bc
+0, 330002, 21600, 0x08aa627e
+0, 336002, 21600, 0xbee36e45
+0, 342002, 21600, 0x30de5c1b
+0, 348002, 21600, 0x21d75484
+0, 354002, 21600, 0xe0e91d52
+0, 360002, 21600, 0x678c2ebb
+0, 366002, 21600, 0x2080397b
+0, 372002, 21600, 0x7dbc1333
+0, 378002, 21600, 0x9c730ad0
+0, 384002, 21600, 0x4da50f55
+0, 390002, 21600, 0xdde5eaa7
+0, 396002, 21600, 0x949ed4fa
+0, 402002, 21600, 0x5d63bc54
+0, 408002, 21600, 0xc5dcba4f
+0, 414002, 21600, 0xd68caee1
+0, 420002, 21600, 0xf7409fc9
+0, 426002, 21600, 0x6b0ca3e5
+0, 432002, 21600, 0xd133a108
+0, 438002, 21600, 0xf2687b81
+0, 444002, 21600, 0x6e94645d
+0, 450002, 21600, 0xff7e7524
+0, 456002, 21600, 0x8c7255dd
+0, 462002, 21600, 0x84e979cf
+0, 468002, 21600, 0xaa4e7127
+0, 474002, 21600, 0x0b56708c
+0, 480002, 21600, 0x38f086c4
+0, 486002, 21600, 0x6a7086f6
+0, 492002, 21600, 0x57a3619d
+0, 498002, 21600, 0xee27639a
+0, 504003, 21600, 0x754b7ec6
+0, 510003, 21600, 0x2f7b428c
+0, 516003, 21600, 0x0dc94603
+0, 522003, 21600, 0xeede54d8
+0, 528003, 21600, 0x587b4725
+0, 534003, 21600, 0xe7c72c7a
+0, 540003, 21600, 0x523949cb
+0, 546003, 21600, 0xeade5385
+0, 552003, 21600, 0x1a8f45c8
+0, 558003, 21600, 0x814a393c
+0, 564003, 21600, 0xe7b34887
+0, 570003, 21600, 0x8eef3f5f
+0, 576003, 21600, 0x56f12f08
+0, 582003, 21600, 0xb2d02448
+0, 588003, 21600, 0xb7d936db
+0, 594003, 21600, 0x45f726ab
+0, 600003, 21600, 0x6012404d
+0, 606003, 21600, 0x273c254e
+0, 612003, 21600, 0x38e82c19
+0, 618003, 21600, 0x73653274
+0, 624003, 21600, 0x2ff63b0c
+0, 630003, 21600, 0x96d03611
+0, 636003, 21600, 0xee8c29d7
+0, 642003, 21600, 0xac043199
+0, 648003, 21600, 0xd2c741a7
+0, 654003, 21600, 0xdc7b2b81
+0, 660003, 21600, 0x376f438f
+0, 666003, 21600, 0x55442ff7
+0, 672003, 21600, 0x653b1472
+0, 678003, 21600, 0xc4293779
+0, 684003, 21600, 0xc6553740
+0, 690003, 21600, 0xcf441053
+0, 696003, 21600, 0xb1531bce
+0, 702004, 21600, 0x145323b3
+0, 708004, 21600, 0x916c2e9e
+0, 714004, 21600, 0xb89bfecc
+0, 720004, 21600, 0x8e2415b9
+0, 726004, 21600, 0x5af23021
+0, 732004, 21600, 0x53e81c10
+0, 738004, 21600, 0xf7f82a6f
+0, 744004, 21600, 0x851121a2
+0, 750004, 21600, 0xa8432bd2
+0, 756004, 21600, 0x1a381799
+0, 762004, 21600, 0xbb761384
+0, 768004, 21600, 0xc8f328d5
+0, 774004, 21600, 0xb3742e8a
diff --git a/tests/ref/fate/indeo3 b/tests/ref/fate/indeo3
new file mode 100644
index 0000000000..ee34b278c9
--- /dev/null
+++ b/tests/ref/fate/indeo3
@@ -0,0 +1,40 @@
+0, 0, 21600, 0x845098fc
+0, 9000, 21600, 0xc28e8bf0
+0, 18000, 21600, 0x2f418fb4
+0, 27000, 21600, 0x051d7a0e
+0, 36000, 21600, 0x1b36aa7c
+0, 45000, 21600, 0xb9e2ad38
+0, 54000, 21600, 0x8dc99b60
+0, 63000, 21600, 0xa3fa789a
+0, 72000, 21600, 0x1fdbade2
+0, 81000, 21600, 0x4f4ac164
+0, 90000, 21600, 0x0ea5cb50
+0, 99000, 21600, 0xfb659528
+0, 108000, 21600, 0xac5790f8
+0, 117000, 21600, 0x9762beb4
+0, 126000, 21600, 0x29b0da0a
+0, 135000, 21600, 0x6d88b0da
+0, 144000, 21600, 0x687b8efa
+0, 153000, 21600, 0xcd726220
+0, 162000, 21600, 0xa1766598
+0, 171000, 21600, 0xff4b8074
+0, 180000, 21600, 0x845098fc
+0, 189000, 21600, 0xdb259e08
+0, 198000, 21600, 0xb6bda5a0
+0, 207000, 21600, 0xbb998962
+0, 216000, 21600, 0x28aa7b7c
+0, 225000, 21600, 0x1ad1a15c
+0, 234000, 21600, 0xb535a128
+0, 243000, 21600, 0x4dbf968a
+0, 252000, 21600, 0xfe90a8d6
+0, 261000, 21600, 0xf63fabf0
+0, 270000, 21600, 0xd6fabe58
+0, 279000, 21600, 0x172eb09c
+0, 288000, 21600, 0x44f8a8fe
+0, 297000, 21600, 0x29429a06
+0, 306000, 21600, 0xb12f8cc4
+0, 315000, 21600, 0xd0c78cb4
+0, 324000, 21600, 0x97e17e0c
+0, 333000, 21600, 0xf8ac6700
+0, 342000, 21600, 0xf9c17c94
+0, 351000, 21600, 0xb10e8c54
diff --git a/tests/ref/fate/indeo5 b/tests/ref/fate/indeo5
new file mode 100644
index 0000000000..73fe74cf34
--- /dev/null
+++ b/tests/ref/fate/indeo5
@@ -0,0 +1,134 @@
+0, 0, 48600, 0x72d4193b
+0, 6000, 48600, 0x72d4193b
+0, 12000, 48600, 0x36abd6f3
+0, 18000, 48600, 0x99e582f7
+0, 24000, 48600, 0xa4cb6fb7
+0, 30000, 48600, 0xf9b5657b
+0, 36000, 48600, 0xb7d666a4
+0, 42000, 48600, 0xb7345308
+0, 48000, 48600, 0x4f5339b9
+0, 54000, 48600, 0x1a9a02c7
+0, 60000, 48600, 0x4ed40866
+0, 66000, 48600, 0x635bf2af
+0, 72000, 48600, 0x12c02f49
+0, 78000, 48600, 0xc548a36d
+0, 84000, 48600, 0x9d9ffbf0
+0, 90000, 48600, 0x4f9dba66
+0, 96000, 48600, 0x2332b0e4
+0, 102000, 48600, 0x6c64342d
+0, 108000, 48600, 0x81156d54
+0, 114000, 48600, 0x8bfb9f04
+0, 120000, 48600, 0xd6bc38db
+0, 126000, 48600, 0x64de39d7
+0, 132000, 48600, 0xbddb3c37
+0, 138000, 48600, 0x15b75a31
+0, 144000, 48600, 0xa2dd7bdf
+0, 150000, 48600, 0xe4fb9b25
+0, 156000, 48600, 0xf2788234
+0, 162000, 48600, 0xa481a3d0
+0, 168000, 48600, 0x6087c790
+0, 174000, 48600, 0xf1dacfa1
+0, 180000, 48600, 0xe29e2e78
+0, 186000, 48600, 0x505b2db1
+0, 192000, 48600, 0x7bc56b02
+0, 198000, 48600, 0x3f7640de
+0, 204000, 48600, 0xd21a3f0b
+0, 210000, 48600, 0x92dc9b72
+0, 216000, 48600, 0x26e6804e
+0, 222000, 48600, 0xc3867fdc
+0, 228000, 48600, 0xe135c689
+0, 234000, 48600, 0xf0fda68b
+0, 240000, 48600, 0x7e07a430
+0, 246000, 48600, 0xb0809c56
+0, 252000, 48600, 0xd3f3d4b0
+0, 258000, 48600, 0x068ce7b9
+0, 264000, 48600, 0x3ae5ebb7
+0, 270000, 48600, 0x2274d1d8
+0, 276000, 48600, 0x9a2b95b7
+0, 282000, 48600, 0xe864dc3d
+0, 288000, 48600, 0xdf39d4db
+0, 294000, 48600, 0x5155c707
+0, 300000, 48600, 0xa26e9879
+0, 306000, 48600, 0x91b5747c
+0, 312000, 48600, 0xe7925589
+0, 318000, 48600, 0x582f1cb2
+0, 324000, 48600, 0x13180bdb
+0, 330000, 48600, 0x1623d914
+0, 336000, 48600, 0xfeeea068
+0, 342000, 48600, 0x61f8679c
+0, 348000, 48600, 0xcb678447
+0, 354000, 48600, 0xd0028749
+0, 360000, 48600, 0xec116a9c
+0, 366000, 48600, 0x16926417
+0, 372000, 48600, 0x342c6014
+0, 378000, 48600, 0xb81a3ec3
+0, 384000, 48600, 0xfd0d4654
+0, 390000, 48600, 0x741cc27a
+0, 396000, 48600, 0x2c53a9fe
+0, 402000, 48600, 0x795dc493
+0, 408000, 48600, 0x46eebc82
+0, 414000, 48600, 0xa2b7b84b
+0, 420000, 48600, 0x2274c95e
+0, 426000, 48600, 0x0ba5ac69
+0, 432000, 48600, 0x8335eb20
+0, 438000, 48600, 0xca80ef55
+0, 444000, 48600, 0xbb7cec8a
+0, 450000, 48600, 0x775bdde2
+0, 456000, 48600, 0x68a5a673
+0, 462000, 48600, 0x091ccca2
+0, 468000, 48600, 0xced6d065
+0, 474000, 48600, 0xed7fca50
+0, 480000, 48600, 0x5c77be3f
+0, 486000, 48600, 0x84719fe6
+0, 492000, 48600, 0x571cc076
+0, 498000, 48600, 0xa3b5be2a
+0, 504000, 48600, 0x0218bc6f
+0, 510000, 48600, 0x5ec1fa4c
+0, 516000, 48600, 0xcd3035fa
+0, 522000, 48600, 0xb8d2a741
+0, 528000, 48600, 0x6d39847c
+0, 534000, 48600, 0x0ffefc73
+0, 540000, 48600, 0x2bb74b68
+0, 546000, 48600, 0xf541d49f
+0, 552000, 48600, 0x6f7c9066
+0, 558000, 48600, 0x70d58548
+0, 564000, 48600, 0x92d38b55
+0, 570000, 48600, 0x5f4bdaa6
+0, 576000, 48600, 0x43868008
+0, 582000, 48600, 0xddb8e551
+0, 588000, 48600, 0xcd0cbd5f
+0, 594000, 48600, 0xf97e6bbd
+0, 600000, 48600, 0x5f1b31eb
+0, 606000, 48600, 0x10ff924d
+0, 612000, 48600, 0xcc31ca3f
+0, 618000, 48600, 0x5f27f9ff
+0, 624000, 48600, 0xd6fe4b71
+0, 630000, 48600, 0xa7d3b2c4
+0, 636000, 48600, 0x9992d6c7
+0, 642000, 48600, 0xd283089b
+0, 648000, 48600, 0x6ab52ede
+0, 654000, 48600, 0x495b1bad
+0, 660000, 48600, 0x3a4d1b72
+0, 666000, 48600, 0xdb421ba3
+0, 672000, 48600, 0x8ad11baa
+0, 678000, 48600, 0x17701bcc
+0, 684000, 48600, 0x4b771b6a
+0, 690000, 48600, 0x5345067e
+0, 696000, 48600, 0x2cd403a7
+0, 702000, 48600, 0x2cc5fd60
+0, 708000, 48600, 0xfa9cf1d4
+0, 714000, 48600, 0x8498e2d6
+0, 720000, 48600, 0x93dcc863
+0, 726000, 48600, 0xd46ac5d5
+0, 732000, 48600, 0x34e8c01b
+0, 738000, 48600, 0x4ad3b246
+0, 744000, 48600, 0x9848a6ca
+0, 750000, 48600, 0x7b7e8bee
+0, 756000, 48600, 0xaee0896b
+0, 762000, 48600, 0x263a812c
+0, 768000, 48600, 0x5d7b7782
+0, 774000, 48600, 0x3a2b6ad2
+0, 780000, 48600, 0xcf2a4ef3
+0, 786000, 48600, 0xc0134c9b
+0, 792000, 48600, 0x93c342d2
+0, 798000, 48600, 0x8d90393c
diff --git a/tests/ref/fate/interplay-mve-16bit b/tests/ref/fate/interplay-mve-16bit
new file mode 100644
index 0000000000..2d22cca68c
--- /dev/null
+++ b/tests/ref/fate/interplay-mve-16bit
@@ -0,0 +1,129 @@
+1, 0, 5788, 0x916d2db8
+0, 0, 614400, 0x00000000
+1, 2953, 5888, 0xc65cb069
+0, 3002, 614400, 0x00000000
+1, 5957, 5888, 0xd8ec1acc
+0, 6005, 614400, 0xa17ea4ec
+1, 8961, 5888, 0xb22af0d6
+0, 9007, 614400, 0x4fd207fb
+1, 11965, 5888, 0x86bb50d9
+0, 12010, 614400, 0xd7a510fb
+1, 14969, 5888, 0x7674d923
+0, 15012, 614400, 0xe901e2f4
+1, 17973, 5888, 0xb97c5500
+0, 18014, 614400, 0x4ac5d3c4
+1, 20978, 5888, 0xecea1249
+0, 21017, 614400, 0x32e3e99c
+1, 23982, 5888, 0x0f4fea81
+0, 24019, 614400, 0x7a2ff20c
+1, 26986, 5888, 0x997914d8
+0, 27022, 614400, 0x59941193
+1, 29990, 5888, 0xd012f03a
+0, 30024, 614400, 0x92773a2b
+1, 32994, 5888, 0x03fd5248
+0, 33026, 614400, 0x4cd14313
+1, 35998, 5888, 0x3041a288
+0, 36029, 614400, 0x2a093fa3
+1, 39002, 5888, 0xe6105de1
+0, 39031, 614400, 0xf68b8463
+1, 42006, 5888, 0xaa38c7bd
+0, 42034, 614400, 0xa9e1969b
+1, 45010, 5888, 0xbfff702c
+0, 45036, 614400, 0x461996bb
+1, 48014, 5888, 0xbe4319a3
+0, 48038, 614400, 0xae58d053
+1, 51018, 5888, 0x2e89d262
+0, 51041, 614400, 0x7693015a
+1, 54022, 5888, 0x10992b9c
+0, 54043, 614400, 0x0b3507fa
+1, 57027, 5888, 0x972904bf
+0, 57046, 614400, 0xff5c2492
+1, 60031, 5888, 0x0093501c
+0, 60048, 614400, 0x636e3e32
+1, 63035, 5888, 0x8994ad0e
+0, 63050, 614400, 0x1acd6d0a
+1, 66039, 5888, 0x9db37d21
+0, 66053, 614400, 0x67039232
+1, 69043, 5888, 0xa8c7300f
+0, 69055, 614400, 0x8ab9c75a
+1, 72047, 5888, 0x1b7073b5
+0, 72058, 614400, 0xe824bbe2
+1, 75051, 5888, 0x56ad7f7b
+0, 75060, 614400, 0x5133e9ea
+1, 78055, 5888, 0x9706a8fb
+0, 78062, 614400, 0xcecf1249
+1, 81059, 5888, 0x16c9420e
+0, 81065, 614400, 0xe6d928c1
+1, 84063, 5888, 0x3e11be0a
+0, 84067, 614400, 0x8da46ff1
+1, 87067, 5888, 0x3e534a32
+0, 87070, 614400, 0x1c778319
+1, 90071, 5788, 0x0ffae5f4
+0, 90072, 614400, 0x35a19451
+1, 93024, 5888, 0xc2018f82
+0, 93074, 614400, 0x5145d1b9
+1, 96029, 5888, 0x2a11f529
+0, 96077, 614400, 0x146ee231
+1, 99033, 5888, 0xec282167
+0, 99079, 614400, 0xd9b33380
+1, 102037, 5888, 0xd61b5a05
+0, 102082, 614400, 0x8b112ef8
+1, 105041, 5888, 0x61de2741
+0, 105084, 614400, 0xb9e79ab0
+1, 108045, 5888, 0x17aaff8c
+0, 108086, 614400, 0x62d3a498
+1, 111049, 5888, 0xd40cd7a6
+0, 111089, 614400, 0xaeaaaa58
+1, 114053, 5888, 0x840840d4
+0, 114091, 614400, 0x8922c440
+1, 117057, 5888, 0x7c97ddcf
+0, 117094, 614400, 0xd62ef758
+1, 120061, 5888, 0xed9150f7
+0, 120096, 614400, 0x2a53149f
+1, 123065, 5888, 0xbccf973e
+0, 123098, 614400, 0x13da47df
+1, 126069, 5888, 0x74bda5ea
+0, 126101, 614400, 0x27c05c3f
+1, 129073, 5888, 0xd083892a
+0, 129103, 614400, 0x41ff7ca7
+1, 132078, 5888, 0x16e444b2
+0, 132106, 614400, 0x6b0e8a07
+1, 135082, 5888, 0x68a9cedb
+0, 135108, 614400, 0xa200ad9f
+1, 138086, 5888, 0x80849f36
+0, 138110, 614400, 0x9da7cc77
+1, 141090, 5888, 0x63cb7df9
+0, 141113, 614400, 0x2f5703be
+1, 144094, 5888, 0xf90f754d
+0, 144115, 614400, 0x91c720f6
+1, 147098, 5888, 0x9c2c867d
+0, 147118, 614400, 0x927a882e
+1, 150102, 5888, 0x337994a4
+1, 153106, 5888, 0xf354a28d
+1, 156110, 5888, 0x70933738
+1, 159114, 5888, 0x3c019219
+1, 162118, 5888, 0xe0c21295
+1, 165122, 5888, 0x21869515
+1, 168127, 5888, 0xe9b1ec7d
+1, 171131, 5888, 0x57825497
+1, 174135, 5888, 0xae02ebeb
+1, 177139, 5888, 0x0c62e14f
+1, 180143, 5788, 0x8a255f8f
+1, 183096, 5888, 0x38993359
+1, 186100, 5888, 0x390baf95
+1, 189104, 5888, 0xb72c72ea
+1, 192108, 5888, 0xbbd3c6fe
+1, 195112, 5888, 0xefb26f0a
+1, 198116, 5888, 0xcc404dd0
+1, 201120, 5888, 0xffa23082
+1, 204124, 5888, 0xd0c43567
+1, 207129, 5888, 0x4d3b7958
+1, 210133, 5888, 0x47125aa1
+1, 213137, 5888, 0x99286cf3
+1, 216141, 5888, 0x478d61e2
+1, 219145, 5888, 0xac65b47e
+1, 222149, 5888, 0x333c1d1a
+1, 225153, 5888, 0x8f960ecf
+1, 228157, 5888, 0x58f76aec
+1, 231161, 5888, 0xb5e0dded
+1, 234165, 5888, 0xaf1a8f9a
diff --git a/tests/ref/fate/interplay-mve-8bit b/tests/ref/fate/interplay-mve-8bit
new file mode 100644
index 0000000000..0b41f352ea
--- /dev/null
+++ b/tests/ref/fate/interplay-mve-8bit
@@ -0,0 +1,234 @@
+1, 0, 5848, 0xea04292b
+0, 0, 414720, 0xa5cd50ca
+1, 5967, 5888, 0x0e59e942
+0, 6006, 414720, 0x3facd321
+1, 11976, 5888, 0x56d480f6
+0, 12011, 414720, 0x849e6d4b
+1, 17984, 5888, 0xcb560b22
+0, 18017, 414720, 0xe649363f
+1, 23992, 5888, 0xca26865b
+0, 24022, 414720, 0x5bbd7b14
+1, 30000, 5888, 0xa434392f
+0, 30028, 414720, 0xe246ab51
+1, 36008, 5888, 0xa0615fe4
+0, 36033, 414720, 0x5721b22e
+1, 42016, 5888, 0x85b241cd
+0, 42039, 414720, 0xe391e107
+1, 48024, 5888, 0x2c417a43
+0, 48044, 414720, 0x04d851ff
+1, 54033, 5888, 0x2d5ed665
+0, 54050, 414720, 0x8d80d580
+1, 60041, 5888, 0x37267a2d
+0, 60055, 414720, 0x5a24b0bc
+1, 66049, 5888, 0x1f803c67
+0, 66061, 414720, 0x06cd6960
+1, 72057, 5888, 0xfb7940ef
+0, 72066, 414720, 0xf5ca48b4
+1, 78065, 5888, 0x1a5371e8
+0, 78072, 414720, 0x24700f94
+1, 84073, 5888, 0x37e29b21
+0, 84077, 414720, 0xb0bfe451
+1, 90082, 5848, 0x70065769
+0, 90083, 414720, 0x00e9f3d1
+1, 96049, 5888, 0xaf624f3d
+0, 96088, 414720, 0x0efbffd1
+1, 102057, 5888, 0x8f5e5b57
+0, 102094, 414720, 0x2ecdfc8d
+1, 108065, 5888, 0x93545968
+0, 108099, 414720, 0x94b531fc
+1, 114073, 5888, 0x915f268f
+0, 114105, 414720, 0x2c2579f8
+1, 120082, 5888, 0x9cd48ac4
+0, 120110, 414720, 0x6c7ecfb8
+1, 126090, 5888, 0x812c8e13
+0, 126116, 414720, 0x08982527
+1, 132098, 5888, 0xe794a2a7
+0, 132121, 414720, 0x5c0161b3
+1, 138106, 5888, 0x4a056e4b
+0, 138127, 414720, 0x453ce413
+1, 144114, 5888, 0xa3589992
+0, 144132, 414720, 0x634e36b2
+1, 150122, 5888, 0x19ea7ec5
+0, 150138, 414720, 0x401a683a
+1, 156131, 5888, 0x422d5097
+0, 156144, 414720, 0x3c5f442e
+1, 162139, 5888, 0xc9fd963f
+0, 162149, 414720, 0x075ef787
+1, 168147, 5888, 0xc556a5ea
+0, 168155, 414720, 0x8501a04f
+1, 174155, 5888, 0x51557e0f
+0, 174160, 414720, 0x3620093b
+1, 180163, 5848, 0x4903ad21
+0, 180166, 414720, 0xa42d9480
+1, 186131, 5888, 0xb1c85e85
+0, 186171, 414720, 0x09b150b4
+1, 192139, 5888, 0x68963d65
+0, 192177, 414720, 0xcad407f0
+1, 198147, 5888, 0x62a3124e
+0, 198182, 414720, 0x69e5eecd
+1, 204155, 5888, 0x4ff1878f
+0, 204188, 414720, 0xb92ad2d9
+1, 210163, 5888, 0x8b09ac18
+0, 210193, 414720, 0xc78eaf29
+1, 216171, 5888, 0x67d85338
+0, 216199, 414720, 0x47c3fa91
+1, 222180, 5888, 0x82eca0a6
+0, 222204, 414720, 0x8847b7b8
+1, 228188, 5888, 0x81a17eb8
+0, 228210, 414720, 0x864cab2f
+1, 234196, 5888, 0x7108478c
+0, 234215, 414720, 0x78d653e2
+1, 240204, 5888, 0xbfc18b09
+0, 240221, 414720, 0xda15cbd2
+1, 246212, 5888, 0xad93711f
+0, 246226, 414720, 0xdf9ce28a
+1, 252220, 5888, 0xf8d25e39
+0, 252232, 414720, 0xe88c49ca
+1, 258229, 5888, 0x41edd04e
+0, 258237, 414720, 0xd6bcbc07
+1, 264237, 5888, 0xa6557ee2
+0, 264243, 414720, 0xf0b4a7bf
+1, 270245, 5848, 0xc14d5456
+0, 270248, 414720, 0x74f9bfbf
+1, 276212, 5888, 0x20a7821f
+0, 276254, 414720, 0x904ce103
+1, 282220, 5888, 0x9f1a8f9d
+0, 282259, 414720, 0xca877e4a
+1, 288229, 5888, 0x2f3c6cc8
+0, 288265, 414720, 0x588effd6
+1, 294237, 5888, 0x757c894a
+0, 294270, 414720, 0x6dff8b71
+1, 300245, 5888, 0x483e98bb
+0, 300276, 414720, 0xbeaae788
+1, 306253, 5888, 0x84289c75
+0, 306282, 414720, 0x1a4d1242
+1, 312261, 5888, 0xf79d5a91
+0, 312287, 414720, 0x4ae98ea0
+1, 318269, 5888, 0x395b5228
+0, 318293, 414720, 0x41ed6d22
+1, 324278, 5888, 0x9c937a14
+0, 324298, 414720, 0x486e70aa
+1, 330286, 5888, 0x40c169cf
+0, 330304, 414720, 0xfddc103e
+1, 336294, 5888, 0x3e7f99b0
+0, 336309, 414720, 0x8620f03e
+1, 342302, 5888, 0xd4de993e
+0, 342315, 414720, 0x0e4ec273
+1, 348310, 5888, 0xae856b09
+0, 348320, 414720, 0xb2298b3e
+1, 354318, 5888, 0xa2369c95
+0, 354326, 414720, 0xb4f50176
+1, 360327, 5848, 0x992d516b
+0, 360331, 414720, 0xb9c7a495
+1, 366294, 5888, 0xcd785ba9
+0, 366337, 414720, 0xed270702
+1, 372302, 5888, 0x55ea3bce
+0, 372342, 414720, 0x98b72586
+1, 378310, 5888, 0xf06d4bbf
+0, 378348, 414720, 0xd8977cb1
+1, 384318, 5888, 0x2a9d4c1a
+0, 384353, 414720, 0xff3d3851
+1, 390327, 5888, 0xd5e348a3
+0, 390359, 414720, 0x7e4f0424
+1, 396335, 5888, 0x6431a24c
+0, 396364, 414720, 0xa9e75006
+1, 402343, 5888, 0x41f9908c
+0, 402370, 414720, 0x8f98cba9
+1, 408351, 5888, 0x0ed99656
+0, 408375, 414720, 0x25ecd620
+1, 414359, 5888, 0x635a6392
+0, 414381, 414720, 0x78cf5c58
+1, 420367, 5888, 0x690c750c
+0, 420386, 414720, 0x3fb4b81a
+1, 426376, 5888, 0xf9d97b23
+0, 426392, 414720, 0xd7b655fa
+1, 432384, 5888, 0x75e1606b
+0, 432397, 414720, 0xd9158db3
+1, 438392, 5888, 0x1bcb43b0
+0, 438403, 414720, 0x2e651852
+1, 444400, 5888, 0x48c295cb
+0, 444408, 414720, 0x9f9adb64
+1, 450408, 5848, 0xe47f7b5d
+0, 450414, 414720, 0xe9d16e81
+1, 456376, 5888, 0x20be7f3e
+0, 456420, 414720, 0xbe73daf5
+1, 462384, 5888, 0x8c2428c4
+0, 462425, 414720, 0x3d164329
+1, 468392, 5888, 0x851379af
+0, 468431, 414720, 0x1d5a9bc8
+1, 474400, 5888, 0x5916647d
+0, 474436, 414720, 0x8e8debbe
+1, 480408, 5888, 0xef9c6281
+0, 480442, 414720, 0x4e7a2bf0
+1, 486416, 5888, 0x49660d32
+0, 486447, 414720, 0x4a13804d
+1, 492424, 5888, 0x62cf36a1
+0, 492453, 414720, 0x5dd188d8
+1, 498433, 5888, 0x56dff39c
+0, 498458, 414720, 0xbe7f4963
+1, 504441, 5888, 0x4e6b5b02
+0, 504464, 414720, 0xcff3b767
+1, 510449, 5888, 0xb8697067
+0, 510469, 414720, 0xbbd3afa0
+1, 516457, 5888, 0xcb4e2706
+0, 516475, 414720, 0xaf9dec62
+1, 522465, 5888, 0x6eaa9669
+0, 522480, 414720, 0xc74816a1
+1, 528473, 5888, 0xfd9d7dba
+0, 528486, 414720, 0x51488bfc
+1, 534482, 5888, 0xfe137923
+0, 534491, 414720, 0x68c10a2c
+1, 540490, 5848, 0x1931296f
+0, 540497, 414720, 0x10179c4e
+1, 546457, 5888, 0xa09a7c03
+0, 546502, 414720, 0x18d559b7
+1, 552465, 5888, 0xded9802d
+0, 552508, 414720, 0x8257aa55
+1, 558473, 5888, 0x9f6723b7
+0, 558513, 414720, 0x9ea24501
+1, 564482, 5888, 0x3ad02476
+0, 564519, 414720, 0x238605cc
+1, 570490, 5888, 0xa1647e32
+0, 570524, 414720, 0xb552deaa
+1, 576498, 5888, 0x728672da
+0, 576530, 414720, 0x07c3348d
+1, 582506, 5888, 0x9c098090
+0, 582535, 414720, 0x82f4f9b0
+1, 588514, 5888, 0x32a65ea3
+0, 588541, 414720, 0xf5d76bc5
+1, 594522, 5888, 0xdde141d5
+0, 594546, 414720, 0x34b3a1e6
+1, 600531, 5888, 0x816c5fb4
+0, 600552, 414720, 0xda25e11b
+1, 606539, 5888, 0x75e17581
+0, 606558, 414720, 0x2b19936b
+1, 612547, 5888, 0x59035469
+0, 612563, 414720, 0xe91f9f73
+1, 618555, 5888, 0x20d340cd
+0, 618569, 414720, 0x48d09aab
+1, 624563, 5888, 0xa89a8790
+0, 624574, 414720, 0xac42bf83
+1, 630571, 5848, 0x12b74c34
+0, 630580, 414720, 0x2d8ca14e
+1, 636539, 5888, 0xcd3b3bef
+0, 636585, 414720, 0xe65462fd
+1, 642547, 5888, 0xe5c44bf3
+0, 642591, 414720, 0xe5bfc929
+1, 648555, 5888, 0xb82c4fa4
+0, 648596, 414720, 0x66784c58
+1, 654563, 5888, 0x05b2443a
+0, 654602, 414720, 0x70dbeca8
+1, 660571, 5888, 0x78028172
+1, 666580, 5888, 0xdfcac19a
+1, 672588, 5888, 0x0761a0b9
+1, 678596, 5888, 0x77d88607
+1, 684604, 5888, 0xdd7f4d77
+1, 690612, 5888, 0x366bf58a
+1, 696620, 5888, 0x9a3d59b5
+1, 702629, 5888, 0x16cb777f
+1, 708637, 5888, 0x1d4afe64
+1, 714645, 5888, 0xc0fe1e73
+1, 720653, 5848, 0xcceb69c8
+1, 726620, 5888, 0x89449643
+1, 732629, 5888, 0x5fe595b7
+1, 738637, 5888, 0x400a8c77
diff --git a/tests/ref/fate/iv8-demux b/tests/ref/fate/iv8-demux
new file mode 100644
index 0000000000..87217f90df
--- /dev/null
+++ b/tests/ref/fate/iv8-demux
@@ -0,0 +1,25 @@
+0, 0, 20883, 0x347191e2
+0, 0, 20882, 0xe1573905
+0, 3600, 20894, 0xd54f516a
+0, 7200, 20891, 0x1b5c5039
+0, 10800, 20883, 0x8e785b4d
+0, 14400, 20870, 0xd26ca1f6
+0, 18000, 21448, 0x946f5b2b
+0, 21600, 21433, 0xb18687c5
+0, 25200, 20865, 0xc0eb3fce
+0, 28800, 20842, 0x9d0728ba
+0, 32399, 20878, 0xf60f5dee
+0, 35999, 20866, 0x3bde568f
+0, 39600, 20884, 0x22736993
+0, 43200, 20860, 0xf56f2fca
+0, 46800, 20872, 0xf39e3cb3
+0, 50400, 20835, 0xa3c4363b
+0, 53999, 20905, 0x552853d1
+0, 57600, 20874, 0xed0b91ec
+0, 61200, 20877, 0xe1623e01
+0, 64799, 20933, 0x19906564
+0, 68399, 20891, 0x3d064fd3
+0, 72000, 20834, 0xcb774dbc
+0, 75600, 20870, 0xbc536589
+0, 79200, 21421, 0xc99a68e4
+0, 82800, 12869, 0x5684e304
diff --git a/tests/ref/fate/kmvc b/tests/ref/fate/kmvc
new file mode 100644
index 0000000000..eb7bcdac06
--- /dev/null
+++ b/tests/ref/fate/kmvc
@@ -0,0 +1,75 @@
+0, 0, 153600, 0x00000000
+0, 3600, 153600, 0x00000000
+0, 7200, 153600, 0x00000000
+0, 10800, 153600, 0x3ad906f0
+0, 14400, 153600, 0x9f7c2e80
+0, 18000, 153600, 0x548c9e10
+0, 21600, 153600, 0xab4154e7
+0, 25200, 153600, 0x762964be
+0, 28800, 153600, 0xea6beab1
+0, 32400, 153600, 0x00805c23
+0, 36000, 153600, 0x932eebd2
+0, 39600, 153600, 0x73a9a1c4
+0, 43200, 153600, 0x3ecf80a2
+0, 46800, 153600, 0xb7266fcc
+0, 50400, 153600, 0xf9a75e02
+0, 54000, 153600, 0xa4cb4c00
+0, 57600, 153600, 0x8cc653fa
+0, 61200, 153600, 0xf0735df0
+0, 64800, 153600, 0x46945766
+0, 68400, 153600, 0x1cf75120
+0, 72000, 153600, 0x015d4476
+0, 75600, 153600, 0x4ad6419c
+0, 79200, 153600, 0xf97a1292
+0, 82800, 153600, 0x8048c6bd
+0, 86400, 153600, 0x0aa97f7f
+0, 90000, 153600, 0xcd1a0531
+0, 93600, 153600, 0xeb9e72b4
+0, 97200, 153600, 0x5a61d657
+0, 100800, 153600, 0xc4eb1759
+0, 104400, 153600, 0x07b05b0c
+0, 108000, 153600, 0x9c417927
+0, 111600, 153600, 0xa3a28516
+0, 115200, 153600, 0x78e97511
+0, 118800, 153600, 0x05c94e38
+0, 122400, 153600, 0x0003ffa4
+0, 126000, 153600, 0x46489827
+0, 129600, 153600, 0xa6ac0ea6
+0, 133200, 153600, 0xf4ae7e9a
+0, 136800, 153600, 0xe07dd526
+0, 140400, 153600, 0x5c0d0ab9
+0, 144000, 153600, 0xad542525
+0, 147600, 153600, 0xa72a35b1
+0, 151200, 153600, 0x373d3cbd
+0, 154800, 153600, 0x242c3cad
+0, 158400, 153600, 0xbe4f44e5
+0, 162000, 153600, 0x3b883575
+0, 165600, 153600, 0xcd7d2995
+0, 169200, 153600, 0x89a01f99
+0, 172800, 153600, 0x79ac0861
+0, 176400, 153600, 0xefb6ee22
+0, 180000, 153600, 0x4498d6b2
+0, 183600, 153600, 0x99efd0a6
+0, 187200, 153600, 0xd937c282
+0, 190800, 153600, 0xa6c6bbb2
+0, 194400, 153600, 0xf667bf0e
+0, 198000, 153600, 0x83b2c12e
+0, 201600, 153600, 0xcbd6c766
+0, 205200, 153600, 0xc5b3c762
+0, 208800, 153600, 0xe51fc5fa
+0, 212400, 153600, 0x6542c5ee
+0, 216000, 153600, 0x59d2c946
+0, 219600, 153600, 0xccaacdde
+0, 223200, 153600, 0x884ec6aa
+0, 226800, 153600, 0xb3d7c2de
+0, 230400, 153600, 0xd4e8c1a2
+0, 234000, 153600, 0xa416c3ba
+0, 237600, 153600, 0x6905b62e
+0, 241200, 153600, 0xce16b456
+0, 244800, 153600, 0xcbd9a67e
+0, 248400, 153600, 0x6785afd6
+0, 252000, 153600, 0x6fd7b1fa
+0, 255600, 153600, 0x2a65b77e
+0, 259200, 153600, 0xa162aff6
+0, 262800, 153600, 0x227ea802
+0, 266400, 153600, 0x98de79fa
diff --git a/tests/ref/fate/lmlm4-demux b/tests/ref/fate/lmlm4-demux
new file mode 100644
index 0000000000..8ecf4b2db9
--- /dev/null
+++ b/tests/ref/fate/lmlm4-demux
@@ -0,0 +1,547 @@
+1, 0, 768, 0xaebcbebb
+0, 0, 5951, 0xe9118e0d
+1, 2160, 768, 0xaebcbebb
+0, 3003, 1672, 0x4b80d4ca
+1, 4320, 768, 0xaebcbebb
+0, 6006, 1604, 0x99e1b0a7
+1, 6480, 768, 0x866fe37a
+1, 8640, 768, 0x05d76890
+0, 9009, 1204, 0x9559038a
+1, 10800, 768, 0x858f5511
+0, 12012, 1482, 0x60056564
+1, 12960, 768, 0x97cb65ef
+0, 15015, 1105, 0xf508cef4
+1, 15120, 768, 0xe269742c
+1, 17280, 768, 0xa6015f8d
+0, 18018, 1193, 0xc8e0fd36
+1, 19440, 768, 0x759163e0
+0, 21021, 1247, 0x8dd202e5
+1, 21600, 768, 0xb1e16082
+1, 23760, 768, 0x1b616429
+0, 24024, 1367, 0xf59435e5
+1, 25920, 768, 0x7e4364f7
+0, 27027, 1406, 0x68ba4a7e
+1, 28080, 768, 0x59bd64f7
+0, 30030, 1262, 0x82c04123
+1, 30240, 768, 0xc3116fc6
+1, 32400, 768, 0x6a1c6b56
+0, 33033, 1381, 0x02335cf9
+1, 34560, 768, 0x285a64cf
+0, 36036, 1450, 0x7be46fd1
+1, 36720, 768, 0x79b16d65
+1, 38880, 768, 0x09b47635
+0, 39039, 1362, 0x75cc381a
+1, 41040, 768, 0x81597446
+0, 42042, 1409, 0x9ed74f3f
+1, 43200, 768, 0xfeb66eee
+0, 45045, 1253, 0x82400ae1
+1, 45360, 768, 0x78557618
+1, 47520, 768, 0x3af170bf
+0, 48048, 5499, 0xed286805
+1, 49680, 768, 0xefbd6399
+0, 51051, 1403, 0x483c4cbc
+1, 51840, 768, 0xc98e7492
+1, 54000, 768, 0x010d7149
+0, 54054, 1632, 0xa9ebcd6c
+1, 56160, 768, 0xce838b07
+0, 57057, 1207, 0xc8580724
+1, 58320, 768, 0xed18726c
+0, 60060, 1289, 0x61fb2fd2
+1, 60480, 768, 0x017e6712
+1, 62640, 768, 0x7f9268e9
+0, 63063, 1230, 0xf348f53c
+1, 64800, 768, 0xf6f258fc
+0, 66066, 1579, 0xa260b1ac
+1, 66960, 768, 0x9a1a6f31
+0, 69069, 949, 0x91849002
+1, 69120, 768, 0x14b47b23
+1, 71280, 768, 0x9bdc6a50
+0, 72072, 786, 0x3e33576f
+1, 73440, 768, 0x0fc46dab
+0, 75075, 894, 0x9ac36a61
+1, 75600, 768, 0x6c387372
+1, 77760, 768, 0x581e71cd
+0, 78078, 1186, 0x6bfc116e
+1, 79920, 768, 0x00cb785f
+0, 81081, 1187, 0xcfc512ae
+1, 82080, 768, 0x1dda7032
+0, 84084, 1527, 0x5c2c965a
+1, 84240, 768, 0xf57c7103
+1, 86400, 768, 0x2d927183
+0, 87087, 1536, 0x5ba7ac29
+1, 88560, 768, 0xdae86cdf
+0, 90090, 1095, 0xce06eb96
+1, 90720, 768, 0x2a2f6c3c
+1, 92880, 768, 0x44696eba
+0, 93093, 1402, 0x642f6b0d
+1, 95040, 768, 0xf67c71c4
+0, 96096, 5551, 0xf01a9c08
+1, 97200, 768, 0xc1ce7237
+0, 99099, 1211, 0x350206f7
+1, 99360, 768, 0xd9c36ef5
+1, 101520, 768, 0x63b06b03
+0, 102102, 887, 0x08767619
+1, 103680, 768, 0x8de97ebe
+0, 105105, 1042, 0xcc81a9ed
+1, 105840, 768, 0xbf117c32
+1, 108000, 768, 0x82897497
+0, 108108, 1247, 0x6f320614
+1, 110160, 768, 0x7a347abb
+0, 111111, 1459, 0xd28975b5
+1, 112320, 768, 0xc99b691e
+0, 114114, 1116, 0x1ab1e9db
+1, 114480, 768, 0xf4fc6e74
+1, 116640, 768, 0x511d6ec4
+0, 117117, 1110, 0x6411f66a
+1, 118800, 768, 0xb8c06b5f
+0, 120120, 1282, 0xd468375d
+1, 120960, 768, 0xf1776aed
+1, 123120, 768, 0xe6fe7fb4
+0, 123123, 1077, 0x1273c6e3
+1, 125280, 768, 0x36907aff
+0, 126126, 1043, 0x12dbd3ae
+1, 127440, 768, 0xddf666bb
+0, 129129, 1087, 0x3e70d37a
+1, 129600, 768, 0x8e896ebc
+1, 131760, 768, 0x0aa47dfa
+0, 132132, 992, 0x0651a71c
+1, 133920, 768, 0xc1736811
+0, 135135, 1012, 0x6a069f8c
+1, 136080, 768, 0xb3e87009
+0, 138138, 1320, 0x92803d69
+1, 138240, 768, 0xf23e6c00
+1, 140400, 768, 0x993a71d2
+0, 141141, 1080, 0xe0ffbe95
+1, 142560, 768, 0xa53466dd
+0, 144144, 5639, 0x658ca26b
+1, 144720, 768, 0xb43a74b0
+1, 146880, 768, 0x348f615c
+0, 147147, 1385, 0xbcb96241
+1, 149040, 768, 0x298f6e1b
+0, 150150, 1142, 0x8c6df318
+1, 151200, 768, 0x5db469c8
+0, 153153, 1175, 0xcac1faef
+1, 153360, 768, 0x08f16c2c
+1, 155520, 768, 0x4a0474cb
+0, 156156, 1091, 0xa937e32a
+1, 157680, 768, 0x077c760b
+0, 159159, 1174, 0xfa50040d
+1, 159840, 768, 0xa5777c2e
+1, 162000, 768, 0x0d157ea6
+0, 162162, 1293, 0x0c8d2740
+1, 164160, 768, 0x9bc26f86
+0, 165165, 1262, 0x502c0c35
+1, 166320, 768, 0x1a72742d
+0, 168168, 1038, 0x5e98c0cd
+1, 168480, 768, 0xa5bb6bbb
+1, 170640, 768, 0x48496c4c
+0, 171171, 1362, 0x256e43cf
+1, 172800, 768, 0x800d78f0
+0, 174174, 1200, 0x29e6f055
+1, 174960, 768, 0x40db840c
+1, 177120, 768, 0xadc96a6b
+0, 177177, 1495, 0x88e9b973
+1, 179280, 768, 0xff986b03
+0, 180180, 1386, 0x849297d2
+1, 181440, 768, 0x152473d6
+0, 183183, 1572, 0x63b7dc79
+1, 183600, 768, 0x01567323
+1, 185760, 768, 0xe5f26fe5
+0, 186186, 1190, 0x32ccf4cb
+1, 187920, 768, 0xa8fd72cd
+0, 189189, 1395, 0xa6ec4ae9
+1, 190080, 768, 0x8857655b
+0, 192192, 5692, 0x81aed6f3
+1, 192240, 768, 0x84017b13
+1, 194400, 768, 0xe6a968b3
+0, 195195, 1335, 0xe98a5497
+1, 196560, 768, 0xb03a7566
+0, 198198, 1361, 0x8ae15ab5
+1, 198720, 768, 0x8bea5f62
+1, 200880, 768, 0xac7570b0
+0, 201201, 1525, 0xed2bc1e8
+1, 203040, 768, 0x11306fac
+0, 204204, 1570, 0xba70d74b
+1, 205200, 768, 0xf2af5b28
+0, 207207, 1349, 0xd97a687d
+1, 207360, 768, 0x3069681f
+1, 209520, 768, 0x7ff07033
+0, 210210, 1270, 0xca8c3ca8
+1, 211680, 768, 0xd74973f2
+0, 213213, 1016, 0x32d0c81a
+1, 213840, 768, 0xb3627304
+1, 216000, 768, 0x11ff7589
+0, 216216, 983, 0x536faa97
+1, 218160, 768, 0x4a156c63
+0, 219219, 1111, 0x44ade015
+1, 220320, 768, 0xcb036127
+0, 222222, 1314, 0xce7c477d
+1, 222480, 768, 0x0b796bb9
+1, 224640, 768, 0x1d516c35
+0, 225225, 1005, 0x0196b491
+1, 226800, 768, 0xa9146da1
+0, 228228, 1162, 0xb8f6ebe6
+1, 228960, 768, 0x6d176392
+1, 231120, 768, 0x6f966269
+0, 231231, 1440, 0xfca67c72
+1, 233280, 768, 0x7ee17724
+0, 234234, 1437, 0x491181b1
+1, 235440, 768, 0x3f07614a
+0, 237237, 1261, 0xf0cd1898
+1, 237600, 768, 0x49d56945
+1, 239760, 768, 0x68eb660a
+0, 240240, 5638, 0x3a25a9f2
+1, 241920, 768, 0xe7c96677
+0, 243243, 1091, 0x67d9c693
+1, 244080, 768, 0x7dc07a35
+1, 246240, 768, 0x1e9c6397
+0, 246246, 875, 0x52147bb1
+1, 248400, 768, 0x93ef5de4
+0, 249249, 1188, 0x8522000f
+1, 250560, 768, 0x34af6803
+0, 252252, 1360, 0x89b82e7b
+1, 252720, 768, 0x77e068be
+1, 254880, 768, 0x65e274de
+0, 255255, 1378, 0xe8644914
+1, 257040, 768, 0xb7ad6a8a
+0, 258258, 1194, 0x89fef83d
+1, 259200, 768, 0x84b3635f
+0, 261261, 1422, 0x99daa18b
+1, 261360, 768, 0x066b78f2
+1, 263520, 768, 0xda137428
+0, 264264, 1049, 0x72a9cec1
+1, 265680, 768, 0xfd6c7597
+0, 267267, 1327, 0x7d15307c
+1, 267840, 768, 0x8d766d40
+0, 270270, 1225, 0x1b5d0f5f
+0, 273273, 1173, 0x840efed5
+0, 276276, 1215, 0xa8e0035e
+0, 279279, 1295, 0x142918ca
+0, 282282, 1144, 0xf50cef50
+0, 285285, 1527, 0x7d13bd9d
+0, 288288, 5609, 0x1ae1921d
+0, 291291, 1303, 0xabdc264f
+0, 294294, 1419, 0x878169bf
+0, 297297, 972, 0x00c4a257
+0, 300300, 1277, 0x87d520cf
+0, 303303, 1014, 0x5946b4ee
+0, 306306, 1177, 0x124e0e23
+0, 309309, 1402, 0x8e6363cc
+0, 312312, 1171, 0x9bdaeda2
+0, 315315, 1389, 0x2db53b22
+0, 318318, 1056, 0xd1c3de3e
+0, 321321, 1320, 0x1ea142c7
+0, 324324, 1250, 0x33612229
+0, 327327, 1477, 0xb9648b48
+0, 330330, 1522, 0x5352c318
+0, 333333, 1391, 0x5e9157e0
+0, 336336, 5545, 0x569e64c1
+0, 339339, 1354, 0xdb39469e
+0, 342342, 1302, 0x79912b5d
+0, 345345, 1065, 0x4befcdd2
+0, 348348, 1408, 0x7d2f65a2
+0, 351351, 1727, 0x9cac0398
+0, 354354, 1590, 0xa321b563
+0, 357357, 1039, 0xfa35cabf
+0, 360360, 1184, 0xb332fde7
+0, 363363, 669, 0xb10e3783
+0, 366366, 784, 0x57275e09
+0, 369369, 1051, 0xe072cd33
+0, 372372, 1119, 0x635ee9ee
+0, 375375, 1147, 0x3916f981
+0, 378378, 1086, 0x306ef895
+0, 381381, 827, 0x213f7aef
+0, 384384, 5525, 0x19157827
+0, 387387, 1044, 0xb661abc5
+0, 390390, 1143, 0x032e1109
+0, 393393, 1460, 0x5a2f9503
+0, 396396, 1178, 0xd038141f
+0, 399399, 1004, 0x410ec3b2
+0, 402402, 1089, 0xc89af8c9
+0, 405405, 1367, 0x52085e0a
+0, 408408, 1115, 0x8bb2ee7f
+0, 411411, 1325, 0xc2e05647
+0, 414414, 1295, 0x213951c9
+0, 417417, 1054, 0xbb8bdaae
+0, 420420, 1210, 0x431122bd
+0, 423423, 1400, 0x47526fcc
+0, 426426, 1188, 0x19770b07
+0, 429429, 1301, 0x437161c8
+0, 432432, 5281, 0xc0c92b55
+0, 435435, 840, 0x67da7b2f
+0, 438438, 1094, 0x3fd6d944
+0, 441441, 832, 0x0eda74bc
+0, 444444, 1096, 0x3300da7b
+0, 447447, 1018, 0xa208c971
+0, 450450, 1389, 0x1167724c
+0, 453453, 1411, 0xe3be666b
+0, 456456, 1294, 0xa8f35cc6
+0, 459459, 1232, 0xfd0d20fd
+0, 462462, 1252, 0xadd83a26
+0, 465465, 844, 0xcbaf6a55
+0, 468468, 979, 0x78d9b241
+0, 471471, 1057, 0x6743e16c
+0, 474474, 776, 0xfedd6615
+0, 477477, 1158, 0xa39fee34
+0, 480480, 5288, 0x5f26ee02
+0, 483483, 1029, 0xa681bee8
+0, 486486, 1106, 0xa68dea33
+0, 489489, 844, 0x42fd83ec
+0, 492492, 779, 0xb5006759
+0, 495495, 951, 0xec13af4f
+0, 498498, 1011, 0x90e5c86e
+0, 501501, 892, 0x4db48ca4
+0, 504504, 804, 0x59bf73a7
+0, 507507, 1001, 0x10c2b3ff
+0, 510510, 879, 0x65c57eaf
+0, 513513, 1320, 0x80815836
+0, 516516, 1448, 0xaf457b3b
+0, 519519, 1168, 0x65b9f96a
+0, 522522, 1002, 0x053fafb9
+0, 525525, 1101, 0x2d30c3d5
+0, 528528, 5314, 0x87cee383
+0, 531531, 1305, 0xb19035db
+0, 534534, 1240, 0xdc6a0a65
+0, 537537, 1067, 0x9c88ba67
+0, 540540, 823, 0x2f736a43
+0, 543543, 1183, 0x2ef9f3c9
+0, 546546, 899, 0x3fcc8d11
+0, 549549, 886, 0xccec8d49
+0, 552552, 1190, 0x2d020fa1
+0, 555555, 1017, 0x0776b627
+0, 558558, 1202, 0xbdd808d5
+0, 561561, 998, 0x64c7c246
+0, 564564, 1200, 0x9d6e2289
+0, 567567, 895, 0xa8a68d80
+0, 570570, 748, 0xe61a49fb
+0, 573573, 929, 0x30168b50
+0, 576576, 5276, 0xceb2edf2
+0, 579579, 1127, 0xab43ddc3
+0, 582582, 1028, 0xaacfbff5
+0, 585585, 914, 0xb63c8fb0
+0, 588588, 1067, 0xbdacd1ed
+0, 591591, 1109, 0x6792ddec
+0, 594594, 1310, 0x71bc4da2
+0, 597597, 1098, 0xc464de9b
+0, 600600, 1018, 0x6833b875
+0, 603603, 1210, 0x44faf34b
+0, 606606, 1200, 0x9ee816f6
+0, 609609, 1461, 0xc76b7d2b
+0, 612612, 829, 0x006677e6
+0, 615615, 1145, 0xc769fb13
+0, 618618, 1292, 0xb63225f5
+0, 621621, 1252, 0x0e2a2626
+0, 624624, 5257, 0x3877eca1
+0, 627627, 952, 0x7f708d25
+0, 630630, 1125, 0x140cd81b
+0, 633633, 1095, 0x3025dade
+0, 636636, 1388, 0xd7494d4e
+0, 639639, 1124, 0x0c48ee92
+0, 642642, 1556, 0xa0749ee2
+0, 645645, 1461, 0xe5fd7d7f
+0, 648648, 903, 0x07a58303
+0, 651651, 1049, 0x4b6cd03b
+0, 654654, 1044, 0x5f47cb48
+0, 657657, 1253, 0xba281c6a
+0, 660660, 1618, 0xed7cd040
+0, 663663, 981, 0x2926b6f4
+0, 666666, 1560, 0xa0e1ab73
+0, 669669, 1479, 0x41a77e88
+0, 672672, 5222, 0xc2dbd182
+0, 675675, 925, 0x967580dd
+0, 678678, 1284, 0x5b7822e0
+0, 681681, 1512, 0xe84da1e0
+0, 684684, 1514, 0xc38bb09e
+0, 687687, 1224, 0x8752228e
+0, 690690, 1296, 0xcf053c03
+0, 693693, 1117, 0x9a81e659
+0, 696696, 1090, 0x003ed687
+0, 699699, 1196, 0x3a510937
+0, 702702, 1075, 0x05eec8d4
+0, 705705, 1048, 0x3b19cb96
+0, 708708, 944, 0xaad89770
+0, 711711, 960, 0x94649e4c
+0, 714714, 1079, 0x530ddaba
+0, 717717, 1150, 0x0339e696
+0, 720720, 5189, 0xb8dac0bf
+0, 723723, 1129, 0x3b2cd64d
+0, 726726, 962, 0xe9df9a07
+0, 729729, 1113, 0xc6ccddb2
+0, 732732, 1069, 0xf589d4a4
+0, 735735, 889, 0x5f7b8762
+0, 738738, 863, 0xe9c36be4
+0, 741741, 1021, 0xcfb5a737
+0, 744744, 1048, 0x203ac9ff
+0, 747747, 1223, 0x3e30fe35
+0, 750750, 814, 0x59c076fc
+0, 753753, 1157, 0x0dcf0bd0
+0, 756756, 1691, 0xdd030547
+0, 759759, 1700, 0x7641fb7e
+0, 762762, 1791, 0x57ac147b
+0, 765765, 2008, 0x3d4483ca
+0, 768768, 4579, 0x874aa75b
+0, 771771, 1647, 0xeddef621
+0, 774774, 1999, 0x61d4a23a
+0, 777777, 1572, 0x1c3ae6e1
+0, 780780, 1803, 0xb31c3a11
+0, 783783, 1919, 0xccbf64e3
+0, 786786, 1720, 0xa4d010e5
+0, 789789, 1721, 0x87ee0c7b
+0, 792792, 1626, 0x8211f3d0
+0, 795795, 1675, 0xef8a0b3d
+0, 798798, 1609, 0x8731ce06
+0, 801801, 1691, 0xcf24038b
+0, 804804, 1637, 0x21d8e1b2
+0, 807807, 1546, 0xc597a700
+0, 810810, 1518, 0xb944bc11
+0, 813813, 1403, 0x999e59a8
+0, 816816, 2467, 0xe69f2507
+0, 819819, 531, 0x3c7cea7e
+0, 822822, 555, 0xdf20fb22
+0, 825825, 500, 0xebeee00d
+0, 828828, 446, 0x664cc711
+0, 831831, 521, 0xf223df4b
+0, 834834, 559, 0x4dc60028
+0, 837837, 593, 0xec440ba9
+0, 840840, 557, 0xef0100b1
+0, 843843, 602, 0x7b1cfd88
+0, 846846, 566, 0x77700a1d
+0, 849849, 523, 0x3df7eb64
+0, 852852, 482, 0x5da1dba9
+0, 855855, 541, 0x9c8ff3d7
+0, 858858, 572, 0x3e1204b2
+0, 861861, 549, 0x0921fe3d
+0, 864864, 2429, 0xba4fe5a8
+0, 867867, 495, 0xc35ade54
+0, 870870, 453, 0xcc66c9dc
+0, 873873, 421, 0x3aa7ce8f
+0, 876876, 448, 0x56c6d3d7
+0, 879879, 478, 0x4131d467
+0, 882882, 497, 0xac3ce3ca
+0, 885885, 470, 0x41b9d9d3
+0, 888888, 454, 0x44c2d956
+0, 891891, 460, 0x6629db01
+0, 894894, 488, 0x6be2dd68
+0, 897897, 512, 0xda4cf116
+0, 900900, 550, 0x6e990da9
+0, 903903, 561, 0x81180e5e
+0, 906906, 689, 0xe58a5a9a
+0, 909909, 548, 0xfa1417a9
+0, 912912, 2832, 0x942495a5
+0, 915915, 610, 0x6b201ab9
+0, 918918, 1015, 0x5f36b3f9
+0, 921921, 870, 0x14e48f0c
+0, 924924, 716, 0xf4034b52
+0, 927927, 763, 0xcbf4694e
+0, 930930, 778, 0xb9396764
+0, 933933, 831, 0x31999005
+0, 936936, 877, 0xc95e977f
+0, 939939, 836, 0xb56c7d61
+0, 942942, 853, 0x2d5980cf
+0, 945945, 861, 0x25629295
+0, 948948, 897, 0x0ff78a5f
+0, 951951, 1016, 0x4dd8cdfd
+0, 954954, 1117, 0x763f06c4
+0, 957957, 984, 0xcf7bc906
+0, 960960, 2750, 0xd428962d
+0, 963963, 995, 0x5cbdd6a4
+0, 966966, 894, 0xc42b9e25
+0, 969969, 1028, 0xdf8ad906
+0, 972972, 1059, 0x4c49f0cc
+0, 975975, 1122, 0x8880eed8
+0, 978978, 1007, 0xa9b4c243
+0, 981981, 1055, 0x6051dcd6
+0, 984984, 1293, 0xc3b32fa5
+0, 987987, 1101, 0xf986f9af
+0, 990990, 1272, 0x13883127
+0, 993993, 1037, 0xb97cebff
+0, 996996, 980, 0x0931d807
+0, 999999, 928, 0xbc3eb30b
+0, 1003002, 1068, 0x62d9e8de
+0, 1006005, 852, 0x9278a49a
+0, 1009008, 2841, 0x3091d12d
+0, 1012011, 931, 0x60f6c26e
+0, 1015014, 949, 0x31b9c856
+0, 1018017, 835, 0xfe018775
+0, 1021020, 779, 0x85356cd7
+0, 1024023, 748, 0x862756bf
+0, 1027026, 768, 0x0b7d645c
+0, 1030029, 786, 0x7c196f5b
+0, 1033032, 716, 0x4e8252cc
+0, 1036035, 671, 0x0b2d3023
+0, 1039038, 708, 0x3b2b4f25
+0, 1042041, 786, 0x523d670e
+0, 1045044, 680, 0x329142ec
+0, 1048047, 703, 0x841b456c
+0, 1051050, 660, 0x5cf332f1
+0, 1054053, 681, 0xcd7b3915
+0, 1057056, 2445, 0x27660ecb
+0, 1060059, 667, 0xf3d53d2a
+0, 1063062, 652, 0xe2b037b0
+0, 1066065, 695, 0x200248fc
+0, 1069068, 659, 0x7f6434c5
+0, 1072071, 682, 0x8d243afb
+0, 1075074, 701, 0x16e6476f
+0, 1078077, 636, 0x319a3236
+0, 1081080, 679, 0x81fa41f9
+0, 1084083, 740, 0xb32850af
+0, 1087086, 694, 0xe3f832c2
+0, 1090089, 681, 0x8174353f
+0, 1093092, 757, 0xebbe5a1f
+0, 1096095, 683, 0x9b46383c
+0, 1099098, 816, 0xd41e6bdf
+0, 1102101, 1058, 0x6170d2e6
+0, 1105104, 2489, 0x58fb28e1
+0, 1108107, 804, 0xb3037da8
+0, 1111110, 1053, 0x81ffc0a8
+0, 1114113, 868, 0xf73583cb
+0, 1117116, 875, 0xfa5d85bd
+0, 1120119, 723, 0x0714418d
+0, 1123122, 670, 0xd04333a1
+0, 1126125, 854, 0x370e730d
+0, 1129128, 794, 0x3d8a5e3c
+0, 1132131, 836, 0xebe26aa7
+0, 1135134, 871, 0x1da58c5e
+0, 1138137, 827, 0xda1e6ccb
+0, 1141140, 805, 0x10ad6a44
+0, 1144143, 831, 0x826f6fc9
+0, 1147146, 832, 0xb2517364
+0, 1150149, 887, 0x11bf8a3f
+0, 1153152, 2718, 0x26a8a174
+0, 1156155, 805, 0x4d0179f9
+0, 1159158, 699, 0x176c4f45
+0, 1162161, 758, 0xc1fc5b16
+0, 1165164, 707, 0x161b4891
+0, 1168167, 733, 0x99b554c0
+0, 1171170, 671, 0xccee2f89
+0, 1174173, 762, 0xd6416c9d
+0, 1177176, 721, 0x2ad94f0c
+0, 1180179, 727, 0x6280572e
+0, 1183182, 856, 0x0a7b797e
+0, 1186185, 843, 0xc64288aa
+0, 1189188, 877, 0x6d1c945d
+0, 1192191, 780, 0x4ba464e8
+0, 1195194, 808, 0xb3087cca
+0, 1198197, 870, 0x75809930
+0, 1201200, 2919, 0x5a80f685
+0, 1204203, 1027, 0xc98add3d
+0, 1207206, 1003, 0x0d88bd54
+0, 1210209, 1189, 0xb2f91ec7
+0, 1213212, 1320, 0x5acc4db3
+0, 1216215, 1381, 0xbd585feb
+0, 1219218, 1378, 0xe1a656f0
+0, 1222221, 1398, 0x88b57a5e
+0, 1225224, 1449, 0x1c737698
+0, 1228227, 1420, 0x6f0f80cd
+0, 1231230, 1032, 0x2d16d643
+0, 1234233, 1275, 0x38844729
+0, 1237236, 1112, 0x300207ea
+0, 1240239, 1105, 0xa2b700be
+0, 1243242, 1283, 0x08d04bef
+0, 1246245, 1056, 0xf795d994
+0, 1249248, 3202, 0xebf07050
+0, 1252251, 1034, 0x1099dbe5
+0, 1255254, 922, 0x88be9edc
+0, 1258257, 1050, 0xd3d7eb96
+0, 1261260, 979, 0x8de6b302
+0, 1264263, 1053, 0x5de2eca8
diff --git a/tests/ref/fate/loco-rgb b/tests/ref/fate/loco-rgb
new file mode 100644
index 0000000000..4d2790b8c5
--- /dev/null
+++ b/tests/ref/fate/loco-rgb
@@ -0,0 +1,5 @@
+0, 0, 72192, 0x1847500c
+0, 12780, 72192, 0x1b0e2e87
+0, 25560, 72192, 0x293276c8
+0, 38340, 72192, 0x743b9705
+0, 51120, 72192, 0xcc1b2530
diff --git a/tests/ref/fate/loco-yuy2 b/tests/ref/fate/loco-yuy2
new file mode 100644
index 0000000000..d3d68df06d
--- /dev/null
+++ b/tests/ref/fate/loco-yuy2
@@ -0,0 +1,3 @@
+0, 0, 48128, 0x7795782d
+0, 12780, 48128, 0x3d89bcf7
+0, 25560, 48128, 0x170d200a
diff --git a/tests/ref/fate/lossless-appleaudio b/tests/ref/fate/lossless-appleaudio
new file mode 100644
index 0000000000..df27061615
--- /dev/null
+++ b/tests/ref/fate/lossless-appleaudio
@@ -0,0 +1 @@
+d0beb768d860b4776358077dd9fcb1e9
diff --git a/tests/ref/fate/lossless-meridianaudio b/tests/ref/fate/lossless-meridianaudio
new file mode 100644
index 0000000000..7f6f43faec
--- /dev/null
+++ b/tests/ref/fate/lossless-meridianaudio
@@ -0,0 +1 @@
+b3d0c9523c42fae639f7074e60281509
diff --git a/tests/ref/fate/lossless-monkeysaudio b/tests/ref/fate/lossless-monkeysaudio
new file mode 100644
index 0000000000..4b8caa1f00
--- /dev/null
+++ b/tests/ref/fate/lossless-monkeysaudio
@@ -0,0 +1 @@
+a28d4e5f2192057f7d4bece870f40bd0
diff --git a/tests/ref/fate/lossless-shortenaudio b/tests/ref/fate/lossless-shortenaudio
new file mode 100644
index 0000000000..9448052733
--- /dev/null
+++ b/tests/ref/fate/lossless-shortenaudio
@@ -0,0 +1 @@
+9949141c405524f37ef1058b1ef4114b
diff --git a/tests/ref/fate/lossless-tta b/tests/ref/fate/lossless-tta
new file mode 100644
index 0000000000..85b7a59097
--- /dev/null
+++ b/tests/ref/fate/lossless-tta
@@ -0,0 +1 @@
+CRC=0xb2b8b6d9
diff --git a/tests/ref/fate/lossless-wavpackaudio b/tests/ref/fate/lossless-wavpackaudio
new file mode 100644
index 0000000000..6281924c41
--- /dev/null
+++ b/tests/ref/fate/lossless-wavpackaudio
@@ -0,0 +1 @@
+97223f65c91213694a660d52f87f35aa
diff --git a/tests/ref/fate/maxis-xa b/tests/ref/fate/maxis-xa
new file mode 100644
index 0000000000..0dd23db827
--- /dev/null
+++ b/tests/ref/fate/maxis-xa
@@ -0,0 +1 @@
+b4cd52fc080bffefeea94ce7c116046f
diff --git a/tests/ref/fate/mimic b/tests/ref/fate/mimic
new file mode 100644
index 0000000000..8195cdcaba
--- /dev/null
+++ b/tests/ref/fate/mimic
@@ -0,0 +1,76 @@
+0, 0, 115200, 0xa974d407
+0, 90, 115200, 0x72618b84
+0, 180, 115200, 0x87768573
+0, 270, 115200, 0x5d218e3e
+0, 360, 115200, 0x0c0db41c
+0, 450, 115200, 0xb777fd48
+0, 540, 115200, 0x40765de7
+0, 630, 115200, 0x370a3c90
+0, 720, 115200, 0xc605785a
+0, 810, 115200, 0x49468b23
+0, 900, 115200, 0x986b6fd4
+0, 990, 115200, 0x30f22ef8
+0, 1080, 115200, 0xa90bd608
+0, 1170, 115200, 0x9cf36518
+0, 1260, 115200, 0x4ef1a679
+0, 1350, 115200, 0x0df65873
+0, 1440, 115200, 0xfecd4233
+0, 1530, 115200, 0xee2f26cb
+0, 1620, 115200, 0x795f612d
+0, 1710, 115200, 0xbbb90125
+0, 1800, 115200, 0x9230fb6e
+0, 1890, 115200, 0x11869996
+0, 1980, 115200, 0x6b5c892b
+0, 2070, 115200, 0x88bdb9cd
+0, 2160, 115200, 0x364bc5a0
+0, 2250, 115200, 0x6b66d817
+0, 2340, 115200, 0xd3a41252
+0, 2430, 115200, 0x0cf5612f
+0, 2520, 115200, 0x9752d055
+0, 2610, 115200, 0x486e9f6f
+0, 2700, 115200, 0x3eab62f8
+0, 2790, 115200, 0xa7f52762
+0, 2880, 115200, 0xfd4c4bbc
+0, 2970, 115200, 0x194023f6
+0, 3060, 115200, 0xd4668dad
+0, 3150, 115200, 0x6b20d64b
+0, 3240, 115200, 0xf2572aae
+0, 3330, 115200, 0xc3554f25
+0, 3420, 115200, 0xeeb5073a
+0, 3510, 115200, 0xbd46291f
+0, 3600, 115200, 0x0526838d
+0, 3690, 115200, 0x85b2e864
+0, 3780, 115200, 0xcfd894bc
+0, 3870, 115200, 0x644f10fb
+0, 3960, 115200, 0x556e4d88
+0, 4050, 115200, 0x93243614
+0, 4140, 115200, 0x754275c5
+0, 4230, 115200, 0x7f648bf3
+0, 4320, 115200, 0xece18c9b
+0, 4410, 115200, 0x385d52c1
+0, 4500, 115200, 0xafc58e4a
+0, 4590, 115200, 0x50daf750
+0, 4680, 115200, 0xf6bc67d1
+0, 4770, 115200, 0xb64b6e07
+0, 4860, 115200, 0x8751ed15
+0, 4950, 115200, 0x329ce803
+0, 5040, 115200, 0x40b2cb05
+0, 5130, 115200, 0x60f3517d
+0, 5220, 115200, 0xe0d46fdf
+0, 5310, 115200, 0x204529fa
+0, 5400, 115200, 0xd5afaf22
+0, 5490, 115200, 0xd3cb3d4c
+0, 5580, 115200, 0x87973a79
+0, 5670, 115200, 0xe3b2f917
+0, 5760, 115200, 0xf1923238
+0, 5850, 115200, 0x51494d71
+0, 5940, 115200, 0x58bc59bb
+0, 6030, 115200, 0xd0273fdb
+0, 6120, 115200, 0x6cc79700
+0, 6210, 115200, 0xc8172d31
+0, 6300, 115200, 0x8eb037ef
+0, 6390, 115200, 0xc0bc2d76
+0, 6480, 115200, 0x663c467a
+0, 6570, 115200, 0xd085e950
+0, 6660, 115200, 0x7d198d72
+0, 6750, 115200, 0x6ebacda0
diff --git a/tests/ref/fate/motionpixels b/tests/ref/fate/motionpixels
new file mode 100644
index 0000000000..e588ed3e18
--- /dev/null
+++ b/tests/ref/fate/motionpixels
@@ -0,0 +1,112 @@
+0, 0, 230400, 0xee05b509
+0, 6000, 230400, 0x71048964
+0, 12000, 230400, 0x2ebe4ba1
+0, 18000, 230400, 0xeedc45a6
+0, 24000, 230400, 0x218e8656
+0, 30000, 230400, 0x5792b17e
+0, 36000, 230400, 0x51b0a062
+0, 42000, 230400, 0x5dc4fd9c
+0, 48000, 230400, 0x9b0261b1
+0, 54000, 230400, 0x35086ffc
+0, 60000, 230400, 0xcf9352ff
+0, 66000, 230400, 0x0b5139a1
+0, 72000, 230400, 0x22e8a31e
+0, 78000, 230400, 0x82f61a81
+0, 84000, 230400, 0xc5741ab5
+0, 90000, 230400, 0xb5e7b2ff
+0, 96000, 230400, 0x583289ca
+0, 102001, 230400, 0xee52afbb
+0, 108001, 230400, 0xfdb4dc1a
+0, 114001, 230400, 0xf5ce99c0
+0, 120001, 230400, 0xae222255
+0, 126001, 230400, 0xc4f4439d
+0, 132001, 230400, 0x1758f224
+0, 138001, 230400, 0x5f517926
+0, 144001, 230400, 0x73a8bed8
+0, 150001, 230400, 0x7ef8410c
+0, 156001, 230400, 0xfcb693c7
+0, 162001, 230400, 0x5292832e
+0, 168001, 230400, 0x591261d7
+0, 174001, 230400, 0x28cca691
+0, 180001, 230400, 0x22cf40ef
+0, 186001, 230400, 0x517b10f9
+0, 192001, 230400, 0x8197e939
+0, 198001, 230400, 0x9654ffdb
+0, 204001, 230400, 0x803f10dd
+0, 210001, 230400, 0xff9f67af
+0, 216001, 230400, 0x4847244c
+0, 222001, 230400, 0xff31638f
+0, 228001, 230400, 0x9692def5
+0, 234001, 230400, 0x67f0a5fb
+0, 240001, 230400, 0xce192074
+0, 246001, 230400, 0x33d6c4a5
+0, 252001, 230400, 0xaf7b5a03
+0, 258001, 230400, 0xd956b0c0
+0, 264001, 230400, 0x58ff1a65
+0, 270001, 230400, 0x044758a1
+0, 276001, 230400, 0xe8045b65
+0, 282001, 230400, 0xf504c5fb
+0, 288001, 230400, 0x17a9a2b0
+0, 294001, 230400, 0xf68bab8c
+0, 300002, 230400, 0xd06dd0cb
+0, 306002, 230400, 0xc47d2673
+0, 312002, 230400, 0x2112f291
+0, 318002, 230400, 0x4c07c83c
+0, 324002, 230400, 0x22ca0113
+0, 330002, 230400, 0x25b0c8b1
+0, 336002, 230400, 0xb6afc645
+0, 342002, 230400, 0x663b1c09
+0, 348002, 230400, 0x9006ef1f
+0, 354002, 230400, 0x54f81b11
+0, 360002, 230400, 0x456b79f2
+0, 366002, 230400, 0xb08f24d0
+0, 372002, 230400, 0x652ad875
+0, 378002, 230400, 0xc6ecd67f
+0, 384002, 230400, 0x78dad721
+0, 390002, 230400, 0x1d2a4f71
+0, 396002, 230400, 0xc71721d1
+0, 402002, 230400, 0x64e3a7df
+0, 408002, 230400, 0x3bb18e71
+0, 414002, 230400, 0xb571d58c
+0, 420002, 230400, 0xdae6ed5c
+0, 426002, 230400, 0xdd91504b
+0, 432002, 230400, 0xd5a807a5
+0, 438002, 230400, 0x39a67b03
+0, 444002, 230400, 0xe245c8ac
+0, 450002, 230400, 0x5b0d7858
+0, 456002, 230400, 0x501b8097
+0, 462002, 230400, 0xf7b10d48
+0, 468002, 230400, 0x769db0bd
+0, 474002, 230400, 0x600f1086
+0, 480002, 230400, 0x874f5565
+0, 486002, 230400, 0x14322f73
+0, 492002, 230400, 0x0eaa36a5
+0, 498002, 230400, 0x97178d13
+0, 504003, 230400, 0xd4c7a0d1
+0, 510003, 230400, 0x1d424ec8
+0, 516003, 230400, 0x695ad8d9
+0, 522003, 230400, 0xe7cc3ecf
+0, 528003, 230400, 0xfd25fd8c
+0, 534003, 230400, 0xef4bc203
+0, 540003, 230400, 0x2a113bec
+0, 546003, 230400, 0x6e7ad403
+0, 552003, 230400, 0xc6714d2b
+0, 558003, 230400, 0x77df8ba6
+0, 564003, 230400, 0xcd283106
+0, 570003, 230400, 0xcb95676f
+0, 576003, 230400, 0xb0b70393
+0, 582003, 230400, 0x4c40bd63
+0, 588003, 230400, 0x557e8ccf
+0, 594003, 230400, 0x9d5934b2
+0, 600003, 230400, 0x43c1793f
+0, 606003, 230400, 0x0232361e
+0, 612003, 230400, 0x92ed91e4
+0, 618003, 230400, 0x99769789
+0, 624003, 230400, 0xd49c2c5b
+0, 630003, 230400, 0x66b03495
+0, 636003, 230400, 0xb88a4658
+0, 642003, 230400, 0x9c21e4c2
+0, 648003, 230400, 0xb343f372
+0, 654003, 230400, 0xf7f1e588
+0, 660003, 230400, 0x9682bdb2
+0, 666003, 230400, 0x538a3db8
diff --git a/tests/ref/fate/mpc7-demux b/tests/ref/fate/mpc7-demux
new file mode 100644
index 0000000000..f7f2f6e713
--- /dev/null
+++ b/tests/ref/fate/mpc7-demux
@@ -0,0 +1 @@
+CRC=0xdeb152dd
diff --git a/tests/ref/fate/mpc8-demux b/tests/ref/fate/mpc8-demux
new file mode 100644
index 0000000000..85b0aa4574
--- /dev/null
+++ b/tests/ref/fate/mpc8-demux
@@ -0,0 +1 @@
+CRC=0x5cdeaf0c
diff --git a/tests/ref/fate/mpeg4-als-conformance-00 b/tests/ref/fate/mpeg4-als-conformance-00
new file mode 100644
index 0000000000..84a14c43f9
--- /dev/null
+++ b/tests/ref/fate/mpeg4-als-conformance-00
@@ -0,0 +1 @@
+CRC=0x7e67db0b
diff --git a/tests/ref/fate/mpeg4-als-conformance-01 b/tests/ref/fate/mpeg4-als-conformance-01
new file mode 100644
index 0000000000..84a14c43f9
--- /dev/null
+++ b/tests/ref/fate/mpeg4-als-conformance-01
@@ -0,0 +1 @@
+CRC=0x7e67db0b
diff --git a/tests/ref/fate/mpeg4-als-conformance-02 b/tests/ref/fate/mpeg4-als-conformance-02
new file mode 100644
index 0000000000..84a14c43f9
--- /dev/null
+++ b/tests/ref/fate/mpeg4-als-conformance-02
@@ -0,0 +1 @@
+CRC=0x7e67db0b
diff --git a/tests/ref/fate/mpeg4-als-conformance-03 b/tests/ref/fate/mpeg4-als-conformance-03
new file mode 100644
index 0000000000..84a14c43f9
--- /dev/null
+++ b/tests/ref/fate/mpeg4-als-conformance-03
@@ -0,0 +1 @@
+CRC=0x7e67db0b
diff --git a/tests/ref/fate/mpeg4-als-conformance-04 b/tests/ref/fate/mpeg4-als-conformance-04
new file mode 100644
index 0000000000..84a14c43f9
--- /dev/null
+++ b/tests/ref/fate/mpeg4-als-conformance-04
@@ -0,0 +1 @@
+CRC=0x7e67db0b
diff --git a/tests/ref/fate/mpeg4-als-conformance-05 b/tests/ref/fate/mpeg4-als-conformance-05
new file mode 100644
index 0000000000..84a14c43f9
--- /dev/null
+++ b/tests/ref/fate/mpeg4-als-conformance-05
@@ -0,0 +1 @@
+CRC=0x7e67db0b
diff --git a/tests/ref/fate/msrle-8bit b/tests/ref/fate/msrle-8bit
new file mode 100644
index 0000000000..b2374cd21c
--- /dev/null
+++ b/tests/ref/fate/msrle-8bit
@@ -0,0 +1,29 @@
+0, 0, 11520, 0xaf416a66
+0, 15000, 11520, 0x8ab76654
+0, 30000, 11520, 0xd22880c4
+0, 45000, 11520, 0x9d2f612a
+0, 60000, 11520, 0xf538600a
+0, 75000, 11520, 0x371d64e6
+0, 90000, 11520, 0x49043fbf
+0, 105000, 11520, 0x49043fbf
+0, 120000, 11520, 0x12d16528
+0, 134999, 11520, 0x1e0a6109
+0, 149999, 11520, 0x9d2f612a
+0, 164999, 11520, 0x96e083ca
+0, 179999, 11520, 0x8ab76654
+0, 194999, 11520, 0x43ac6de7
+0, 209999, 11520, 0x43ac6de7
+0, 224999, 11520, 0x5c3e6819
+0, 239999, 11520, 0x22758af0
+0, 254999, 11520, 0x88845eba
+0, 269999, 11520, 0x4b38848a
+0, 284999, 11520, 0x4f7495d3
+0, 299999, 11520, 0x736b702c
+0, 314999, 11520, 0x736b702c
+0, 329999, 11520, 0x4f7495d3
+0, 344999, 11520, 0x4b38848a
+0, 359999, 11520, 0x88845eba
+0, 374999, 11520, 0x22758af0
+0, 389998, 11520, 0x5c3e6819
+0, 404998, 11520, 0x43ac6de7
+0, 419998, 11520, 0x43ac6de7
diff --git a/tests/ref/fate/msvideo1-16bit b/tests/ref/fate/msvideo1-16bit
new file mode 100644
index 0000000000..b40331197f
--- /dev/null
+++ b/tests/ref/fate/msvideo1-16bit
@@ -0,0 +1,30 @@
+0, 0, 65712, 0x917e0076
+0, 6006, 65712, 0xfe76fd1f
+0, 12013, 65712, 0xd85820ee
+0, 18019, 65712, 0x1b410f6e
+0, 24026, 65712, 0x53c50436
+0, 30032, 65712, 0xa191044d
+0, 36039, 65712, 0xcf02ff1f
+0, 42045, 65712, 0xc2abf85f
+0, 48051, 65712, 0xe273087e
+0, 54058, 65712, 0x087d0936
+0, 60064, 65712, 0x4e4f2e96
+0, 66071, 65712, 0x91b51896
+0, 72077, 65712, 0x2798450e
+0, 78083, 65712, 0x9fea1d06
+0, 84090, 65712, 0xc64a2506
+0, 90096, 65712, 0x0551fe07
+0, 96103, 65712, 0xc64a042e
+0, 102109, 65712, 0xf3680dc6
+0, 108116, 65712, 0x2ea5356e
+0, 114122, 65712, 0x0315ed3f
+0, 120128, 65712, 0xc1d1f917
+0, 126135, 65712, 0xc0f6e607
+0, 132141, 65712, 0x5b0a092e
+0, 138148, 65712, 0x1551f16f
+0, 144154, 65712, 0x8440ee87
+0, 150161, 65712, 0xf7581ae6
+0, 156167, 65712, 0xee67037e
+0, 162173, 65712, 0x4a212ca6
+0, 168180, 65712, 0x693e0aa6
+0, 174186, 65712, 0x13e31116
diff --git a/tests/ref/fate/msvideo1-8bit b/tests/ref/fate/msvideo1-8bit
new file mode 100644
index 0000000000..e0c70338e4
--- /dev/null
+++ b/tests/ref/fate/msvideo1-8bit
@@ -0,0 +1,31 @@
+0, 0, 57600, 0x8c3c5ee8
+0, 3000, 57600, 0xb79800b1
+0, 6000, 57600, 0x54a221be
+0, 9000, 57600, 0xb377ffb3
+0, 12000, 57600, 0x46efd210
+0, 15000, 57600, 0x46efd210
+0, 18000, 57600, 0x46efd210
+0, 21000, 57600, 0x92751fbc
+0, 24000, 57600, 0xd7287442
+0, 27000, 57600, 0xcf1153ee
+0, 30000, 57600, 0xda5de91a
+0, 33000, 57600, 0xa11cd513
+0, 36000, 57600, 0xa8edac2a
+0, 39000, 57600, 0xefd2a392
+0, 42000, 57600, 0x2d7060cf
+0, 45000, 57600, 0xbda3130d
+0, 48000, 57600, 0xacb8e940
+0, 50999, 57600, 0x93778985
+0, 53999, 57600, 0x25ed4d97
+0, 56999, 57600, 0x5be924bf
+0, 59999, 57600, 0xde5ee1f7
+0, 62999, 57600, 0x39850ab6
+0, 65999, 57600, 0x77da195d
+0, 68999, 57600, 0x6dad13c0
+0, 71999, 57600, 0x69897c48
+0, 74999, 57600, 0xfbe74728
+0, 77999, 57600, 0x908af79d
+0, 80999, 57600, 0x4ec4a868
+0, 83999, 57600, 0x7db370a1
+0, 86999, 57600, 0x2b1e52f6
+0, 89999, 57600, 0x2141467c
diff --git a/tests/ref/fate/mszh b/tests/ref/fate/mszh
new file mode 100644
index 0000000000..ba6221fcf7
--- /dev/null
+++ b/tests/ref/fate/mszh
@@ -0,0 +1 @@
+0, 0, 253440, 0x94af61e5
diff --git a/tests/ref/fate/mtv b/tests/ref/fate/mtv
new file mode 100644
index 0000000000..d7dfa94a4b
--- /dev/null
+++ b/tests/ref/fate/mtv
@@ -0,0 +1,135 @@
+1, 0, 417, 0xae1cc66a
+0, 0, 18432, 0xbd7e0ac8
+1, 2351, 418, 0xdc3ec850
+1, 4702, 418, 0x4e8ed05f
+0, 5625, 18432, 0xbd7e0ac8
+1, 7053, 418, 0xeb43d574
+1, 9404, 418, 0x9357c91d
+0, 11250, 18432, 0x902e0ab4
+1, 11755, 418, 0x5306d16b
+1, 14106, 418, 0x46e0d4da
+1, 16457, 418, 0xac11ce79
+0, 16875, 18432, 0xf1940b28
+1, 18808, 418, 0xffdfc4ad
+1, 21159, 418, 0xf8a8c2ff
+0, 22500, 18432, 0x2c180ac8
+1, 23510, 418, 0x2d66d83f
+1, 25861, 418, 0x65c0da12
+0, 28125, 18432, 0x2eae0b34
+1, 28212, 418, 0x0eafd20f
+1, 30563, 418, 0x8c6dd949
+1, 32914, 418, 0x9094c02d
+0, 33750, 18432, 0x2eae0b34
+1, 35265, 418, 0xb47bd944
+1, 37616, 418, 0x935ccce7
+0, 39375, 18432, 0x2eae0b34
+1, 39967, 418, 0x6e3ed020
+1, 42318, 418, 0x8922cd6c
+1, 44669, 418, 0xe811c8f8
+0, 45000, 18432, 0x2eae0b34
+1, 47020, 418, 0xb84adc72
+1, 49371, 418, 0xa2bbc5f4
+0, 50625, 18432, 0x2eae0b34
+1, 51722, 418, 0xec0cb67d
+1, 54073, 418, 0x89d1d014
+0, 56250, 18432, 0x2eae0b34
+1, 56424, 418, 0xfb5bc872
+1, 58776, 417, 0x8bfcc7a0
+1, 61127, 418, 0xeb4ac61b
+0, 61875, 18432, 0x2eae0b34
+1, 63478, 418, 0xd3cbc3c4
+1, 65829, 418, 0xa272d092
+0, 67500, 18432, 0x2eae0b34
+1, 68180, 418, 0x611ec37e
+1, 70531, 418, 0x70a3d423
+1, 72882, 418, 0xeff9ccf4
+0, 73125, 18432, 0x2eae0b34
+1, 75233, 418, 0x9788c65b
+1, 77584, 418, 0xe9a8cb8c
+0, 78750, 18432, 0x2eae0b34
+1, 79935, 418, 0x5834c300
+1, 82286, 418, 0xa4b8cd3a
+0, 84375, 18432, 0x2eae0b34
+1, 84637, 418, 0x6de2c7f9
+1, 86988, 418, 0x961bbbf3
+1, 89339, 418, 0x53edc13a
+0, 90000, 18432, 0x2c180ac8
+1, 91690, 418, 0x2fedc4b0
+1, 94041, 418, 0xb756c18b
+0, 95625, 18432, 0x2eae0b34
+1, 96392, 418, 0xaf0ed0e4
+1, 98743, 418, 0x019fd3f0
+1, 101094, 418, 0x6e29d83e
+0, 101250, 18432, 0x2c180ac8
+1, 103445, 418, 0x2ddad6bb
+1, 105796, 418, 0xafefca99
+0, 106875, 18432, 0x2eae0b34
+1, 108147, 418, 0x366ed013
+1, 110498, 418, 0x532ac7e0
+0, 112500, 18432, 0x2c180ac8
+1, 112849, 418, 0x1d0cd1ce
+1, 115200, 417, 0x572ad1e3
+1, 117551, 418, 0x858cd91f
+0, 118125, 18432, 0x2eae0b34
+1, 119902, 418, 0x82cacdfd
+1, 122253, 418, 0xf4dcc6ed
+0, 123750, 18432, 0x2c180ac8
+1, 124604, 418, 0x2cf3ca72
+1, 126955, 418, 0x5963c859
+1, 129306, 418, 0xa667c53d
+0, 129375, 18432, 0x2eae0b34
+1, 131657, 418, 0xb2f1d09c
+1, 134008, 418, 0x2ec1c8d3
+0, 135000, 18432, 0x2eae0b34
+1, 136359, 418, 0x5754d2e8
+1, 138710, 418, 0x1956bdba
+0, 140625, 18432, 0x2eae0b34
+1, 141061, 418, 0x3e18bd55
+1, 143412, 418, 0xe4cfc339
+1, 145763, 418, 0xb426c835
+0, 146250, 18432, 0x2eae0b34
+1, 148114, 418, 0xd7b6cbcf
+1, 150465, 418, 0x340ec315
+0, 151875, 18432, 0x2eae0b34
+1, 152816, 418, 0x23a9baec
+1, 155167, 418, 0x9f04cd01
+0, 157500, 18432, 0x2eae0b34
+1, 157518, 418, 0xa80ec223
+1, 159869, 418, 0x23d6bd5d
+1, 162220, 418, 0xcb25cf5b
+0, 163125, 18432, 0x2eae0b34
+1, 164571, 418, 0xccccc217
+1, 166922, 418, 0x757abbfe
+0, 168750, 18432, 0x2eae0b34
+1, 169273, 418, 0xa2e6cc68
+1, 171624, 418, 0xdf77cc05
+1, 173976, 417, 0xe9d2c5d5
+0, 174375, 18432, 0x2eae0b34
+1, 176327, 418, 0x50dec174
+1, 178678, 418, 0xf654b27e
+0, 180000, 18432, 0x2c180ac8
+1, 181029, 418, 0x4d8bc26e
+1, 183380, 418, 0xccd2bf37
+0, 185625, 18432, 0x2eae0b34
+1, 185731, 418, 0x6ce2c18a
+1, 188082, 418, 0xb3cdcf0c
+1, 190433, 418, 0x55eebe9a
+0, 191250, 18432, 0x2c180ac8
+1, 192784, 418, 0x9031c9ec
+1, 195135, 418, 0xb037c49d
+0, 196875, 18432, 0x2eae0b34
+1, 197486, 418, 0x377bcc78
+1, 199837, 418, 0x3762c725
+1, 202188, 418, 0x39afbd4d
+0, 202500, 18432, 0x2c180ac8
+1, 204539, 418, 0x655ed6cd
+1, 206890, 418, 0x09aec202
+0, 208125, 18432, 0x2eae0b34
+1, 209241, 418, 0xf2d2ce55
+1, 211592, 418, 0x254ebf04
+0, 213750, 18432, 0x2c180ac8
+1, 213943, 418, 0xa105cdcc
+1, 216294, 418, 0x1477ba58
+1, 218645, 418, 0x8d0dcdb2
+1, 220996, 418, 0x0d7cbef4
+1, 223347, 294, 0x5e2b87c4
diff --git a/tests/ref/fate/mxf-demux b/tests/ref/fate/mxf-demux
new file mode 100644
index 0000000000..877475319a
--- /dev/null
+++ b/tests/ref/fate/mxf-demux
@@ -0,0 +1,97 @@
+0, 0, 8468, 0xc0855553
+1, 0, 32000, 0x479155e6
+0, 3600, 3814, 0xa10783b4
+0, 7200, 3747, 0xb7bf6973
+0, 10800, 3705, 0x5462a600
+0, 14400, 3704, 0x1e564943
+0, 18000, 3760, 0x10464b9a
+0, 21600, 3799, 0xd41d6dcf
+0, 25200, 3832, 0x5cf6999e
+0, 28800, 3778, 0xe5fc7b9e
+0, 32400, 38193, 0xd34e5dd4
+0, 36000, 8520, 0x2a203e68
+0, 39600, 3832, 0xe4c4b2fe
+0, 43200, 3787, 0x0cf95fee
+0, 46800, 3766, 0x9e019d14
+0, 50400, 3785, 0x0ea9ae75
+0, 54000, 3703, 0x11d349ff
+0, 57600, 3731, 0x5cf358ef
+0, 61200, 3785, 0x01c8962f
+0, 64800, 3741, 0xb2c47d53
+0, 68400, 38150, 0x08fa1f55
+0, 72000, 8487, 0x0c234b9a
+0, 75600, 3791, 0x831192ef
+0, 79200, 3612, 0x598944fb
+0, 82800, 3710, 0xccbb711a
+0, 86400, 3864, 0x4385966e
+0, 90000, 3919, 0x24e2abc3
+0, 93600, 3777, 0x210c6219
+0, 97200, 3811, 0x23bf68c2
+0, 100800, 3802, 0x52688862
+0, 104400, 38027, 0x3d5aa8b9
+0, 108000, 8333, 0x617de950
+0, 111600, 3831, 0x13fad8fc
+0, 115200, 3719, 0xbc317470
+0, 118800, 3761, 0xeac460b6
+0, 122400, 3637, 0x27d64b32
+0, 126000, 3666, 0xf0f700a5
+0, 129600, 3788, 0x1c4662a8
+0, 133200, 3960, 0xef6b9e99
+0, 136800, 3793, 0x3a6ca832
+0, 140400, 38312, 0xce1317cc
+0, 144000, 8548, 0x4ca944d4
+0, 147600, 3866, 0x4e85bf0f
+0, 151200, 3644, 0x030338e5
+0, 154800, 3634, 0xa95f4512
+0, 158400, 3925, 0x7583ba86
+0, 162000, 3675, 0x979f423f
+0, 165600, 3703, 0x11375f7a
+0, 169200, 3705, 0xb7de5d16
+0, 172800, 3688, 0x1db45852
+0, 176400, 38412, 0x2ee26a63
+0, 180000, 8385, 0x0bc20a27
+1, 180000, 32000, 0x8f7e5009
+0, 183600, 3733, 0xa3e2a9a0
+0, 187200, 3773, 0x27769caa
+0, 190800, 3670, 0xc8335e98
+0, 194400, 3596, 0xd6512fb0
+0, 198000, 3579, 0xa621fbc2
+0, 201600, 3641, 0x2f4f46ca
+0, 205200, 3686, 0x0a92385a
+0, 208800, 3672, 0xe65137b9
+0, 212400, 39065, 0xc723bf8b
+0, 216000, 8611, 0x5d177f40
+0, 219600, 3758, 0x33d59966
+0, 223200, 3674, 0x54f37902
+0, 226800, 3615, 0xa0f045fa
+0, 230400, 3719, 0x41cf93ff
+0, 234000, 3757, 0x3a1b7e8f
+0, 237600, 3762, 0xe7f9714d
+0, 241200, 3738, 0x8121805b
+0, 244800, 3733, 0x13e262db
+0, 248400, 38433, 0x3d58c500
+0, 252000, 8410, 0xa4f7fd2e
+0, 255600, 3711, 0x0e112d3c
+0, 259200, 3692, 0xb46574b2
+0, 262800, 3563, 0xad43343d
+0, 266400, 3613, 0x5cd85c4f
+0, 270000, 3653, 0xe15a2853
+0, 273600, 3684, 0x9ddd58cb
+0, 277200, 3256, 0xd7f89f2e
+0, 280800, 3698, 0x2b82624a
+0, 284400, 39520, 0xd3f2b7c5
+0, 288000, 8493, 0x163559be
+0, 291600, 3719, 0x6fa0916f
+0, 295200, 3655, 0xa9233de1
+0, 298800, 3684, 0xa6125737
+0, 302400, 3688, 0xa9da6686
+0, 306000, 3685, 0x674d634e
+0, 309600, 3677, 0x7a85535d
+0, 313200, 3666, 0xce3600a2
+0, 316800, 3837, 0x3a7090e1
+0, 320400, 38696, 0x12c59cd2
+0, 324000, 8022, 0xd343433f
+0, 327600, 5157, 0x440c14e5
+0, 331200, 5003, 0xf8e1daff
+0, 334800, 4954, 0x89866344
+0, 338400, 53664, 0xeb0c4c42
diff --git a/tests/ref/fate/nc-demux b/tests/ref/fate/nc-demux
new file mode 100644
index 0000000000..adc03f0c72
--- /dev/null
+++ b/tests/ref/fate/nc-demux
@@ -0,0 +1,91 @@
+0, 0, 19787, 0x75e463f3
+0, 900, 11913, 0x0f429c34
+0, 1800, 14225, 0xbd3c704c
+0, 2700, 10357, 0xbf232393
+0, 3600, 9595, 0xf565d39e
+0, 4500, 9262, 0x2afd6ce0
+0, 5400, 12214, 0x6ae81d9b
+0, 6300, 13920, 0x31b5b307
+0, 7200, 10164, 0x141eca4e
+0, 8100, 9516, 0xd5f2c42b
+0, 9000, 10006, 0x80850a76
+0, 9900, 11791, 0x10bc2dcd
+0, 10800, 13756, 0xda1fee08
+0, 11700, 10452, 0xbb3d62b0
+0, 12600, 9171, 0x64ae10f6
+0, 13500, 8816, 0x31ad8fcb
+0, 14400, 13168, 0xea1085ac
+0, 15300, 12797, 0x25143d22
+0, 16200, 11324, 0x3a54b38e
+0, 17100, 9173, 0x8b2bf552
+0, 18000, 9247, 0x2e87226b
+0, 18900, 14140, 0x1063786c
+0, 19800, 14437, 0xde123a17
+0, 20700, 11938, 0x3f1168f4
+0, 21600, 11966, 0xdd6786ec
+0, 22500, 13213, 0x8ab27c58
+0, 23400, 11843, 0x90415d8b
+0, 24300, 13345, 0x3c0e1793
+0, 25200, 9977, 0x74fc7f4b
+0, 26100, 9158, 0x0b5426a5
+0, 27000, 12715, 0x0035d569
+0, 27900, 19944, 0xe2887ba8
+0, 28800, 12762, 0xb0f17939
+0, 29700, 10260, 0x182b27aa
+0, 30600, 7405, 0x227fe9bf
+0, 31500, 13317, 0x1a678c62
+0, 32400, 11304, 0x3277af6d
+0, 33300, 13291, 0xe267616a
+0, 34200, 8975, 0xe7eeacea
+0, 35100, 8473, 0x8bb1cbff
+0, 36000, 13878, 0xfd3d55bb
+0, 36900, 11278, 0x61c7c55e
+0, 37800, 13785, 0x2acbf88f
+0, 38700, 9521, 0x99e2d065
+0, 39600, 9340, 0xe5c96510
+0, 40500, 12777, 0x4c3c7844
+0, 41400, 10685, 0x39e0f42e
+0, 42300, 14237, 0x9398d07f
+0, 43200, 9021, 0x3343c7ec
+0, 44100, 9327, 0xad489e86
+0, 45000, 13507, 0xb1344f1c
+0, 45900, 10199, 0x9a8868bf
+0, 46800, 14535, 0xddb13f41
+0, 47700, 8773, 0x3d8b6a79
+0, 48600, 16084, 0x5d915de4
+0, 49500, 9156, 0x5cb08a6a
+0, 50400, 15027, 0xc23b1dc8
+0, 51300, 8240, 0xd6d3526c
+0, 52200, 8720, 0x439c43bf
+0, 53100, 13684, 0x18fc82f0
+0, 54000, 8829, 0xa3ebeb30
+0, 54900, 14650, 0x99e8678c
+0, 55800, 19626, 0x80a7ee5c
+0, 56700, 7762, 0x7c209a12
+0, 57600, 13636, 0xc89c1aa3
+0, 58500, 8337, 0x749bf76a
+0, 59400, 15098, 0xc98bc6dc
+0, 60300, 9070, 0xcd4cf7f1
+0, 61200, 8269, 0x90e95d54
+0, 62100, 12672, 0x034888d0
+0, 63000, 7519, 0x6c089672
+0, 63900, 14439, 0x5d2478b9
+0, 64800, 6928, 0x98fbaa67
+0, 65700, 8735, 0x07643f1e
+0, 66600, 13522, 0x55034cdb
+0, 67500, 7807, 0xf5983103
+0, 68400, 14484, 0xfc9cf260
+0, 69300, 7193, 0x170a0fa1
+0, 70200, 9444, 0x6f9be36f
+0, 71100, 12598, 0x69b7609d
+0, 72000, 7650, 0x1abaec9e
+0, 72900, 15162, 0x2a87f723
+0, 73800, 7752, 0xcca248aa
+0, 74700, 9085, 0x1ca7d7e5
+0, 75600, 13187, 0xababcc64
+0, 76500, 7968, 0x64a28f46
+0, 77400, 15474, 0xf34c587c
+0, 78300, 8615, 0x61301034
+0, 79200, 14129, 0x42c88bea
+0, 80100, 7223, 0x675d7500
+0, 81000, 3072, 0x4cb6254c
diff --git a/tests/ref/fate/nsv-demux b/tests/ref/fate/nsv-demux
new file mode 100644
index 0000000000..98bb8a51db
--- /dev/null
+++ b/tests/ref/fate/nsv-demux
@@ -0,0 +1,171 @@
+0, 0, 12, 0x1396035f
+0, 6006, 24, 0x8ab80ac7
+0, 12012, 208, 0x1de1603e
+1, 12522, 104, 0x8ae85dc9
+1, 17224, 105, 0xb7033847
+0, 18018, 364, 0xffb4b341
+1, 21926, 104, 0x5f853482
+0, 24024, 456, 0x7a4deaeb
+1, 26628, 105, 0xfcb731fd
+0, 30030, 432, 0xf4ddd813
+1, 31330, 104, 0x4f8232bb
+1, 36032, 105, 0x2f543039
+0, 36036, 572, 0xc84c21ff
+1, 40734, 104, 0xe4cc34a1
+0, 42042, 500, 0x0e6bf9f4
+1, 45436, 105, 0xea663711
+0, 48048, 508, 0x2d6efe2a
+1, 50138, 104, 0x3c583098
+0, 54054, 436, 0x7d07d3c5
+1, 54840, 105, 0xbe6c33ff
+1, 59542, 104, 0x56de2d7a
+0, 60060, 620, 0xa9313342
+1, 64244, 105, 0x4e80385d
+0, 66066, 1384, 0x9b97c579
+1, 68946, 104, 0x34eb340d
+0, 72072, 760, 0xd1aa8183
+1, 73648, 105, 0x87e82f74
+0, 78078, 836, 0x261da980
+1, 78350, 104, 0xa546377d
+1, 83052, 105, 0x92bd349d
+0, 84084, 860, 0x52f0afa0
+1, 87754, 104, 0xdba53f3d
+0, 90090, 696, 0x63845855
+1, 92456, 105, 0xd3c3384e
+0, 96096, 460, 0x2916e7be
+1, 97158, 104, 0xdf7d30ce
+1, 101860, 105, 0xae20344e
+0, 102102, 328, 0xab8caaca
+1, 106562, 104, 0xe4cc33b7
+0, 108108, 396, 0xc775bc8e
+1, 111264, 105, 0xda993806
+0, 114114, 344, 0x114ea25a
+1, 115966, 104, 0xd6d12edd
+1, 120668, 105, 0x6b9c2ed5
+1, 125370, 104, 0xce6c3b04
+0, 126126, 532, 0xd5650f54
+1, 130073, 105, 0x31db399e
+1, 134775, 104, 0xd50b347a
+0, 138138, 476, 0x77f1f3a7
+1, 139477, 105, 0xe87734d6
+1, 144179, 104, 0x21873412
+0, 150150, 976, 0x2f7cf7ae
+1, 150420, 105, 0x29c03514
+1, 155122, 104, 0x91a5347a
+1, 159824, 105, 0xdbbf3696
+0, 162162, 104, 0x8fbf2f65
+1, 164526, 104, 0x3b463afc
+1, 169228, 105, 0xddf53845
+1, 173930, 104, 0x94c23d1a
+0, 174174, 652, 0xa9244ac0
+1, 178632, 105, 0xc0fd36c4
+1, 183334, 104, 0x36d535e0
+0, 186186, 152, 0x97804cc1
+1, 188036, 105, 0xe81a35da
+1, 192738, 104, 0x2b4e3699
+1, 197440, 105, 0x3978392c
+0, 198198, 156, 0xca434d31
+1, 202142, 104, 0xca903459
+0, 204204, 196, 0x1ff16161
+1, 206844, 105, 0xedc4374a
+0, 210210, 176, 0x9b455230
+1, 211547, 104, 0x0b3938d2
+0, 216216, 156, 0xbbbf4bf3
+1, 216249, 105, 0xb2653246
+1, 220951, 104, 0x76333479
+0, 222222, 220, 0x77a97152
+1, 225653, 105, 0x779138c4
+0, 228228, 204, 0x667d5ecf
+1, 230355, 104, 0xfe142f55
+0, 234234, 232, 0x3a266ccd
+1, 235057, 105, 0x39aa3410
+1, 239759, 104, 0x520f330d
+0, 240240, 308, 0x844a95b7
+1, 244461, 104, 0x1aad37b0
+0, 246246, 384, 0x71d2c695
+1, 249163, 105, 0x164038eb
+1, 253865, 104, 0x21d434bd
+0, 258258, 520, 0x4f9d012a
+1, 258567, 105, 0x9c1236d4
+1, 263269, 104, 0x6aa933c3
+1, 267971, 105, 0xec5c371e
+0, 270270, 648, 0xabd13b29
+1, 272673, 104, 0xedb33251
+1, 277375, 105, 0x4f953476
+1, 282077, 104, 0x7da13400
+0, 282282, 604, 0x006b328f
+1, 286779, 105, 0x57a83aaa
+1, 291481, 104, 0x8b822f2f
+0, 294294, 492, 0xa150fac1
+1, 296183, 105, 0x3b31341a
+1, 300885, 104, 0x74a4316d
+1, 305587, 105, 0x05013469
+0, 306306, 456, 0xd3e9e52c
+1, 310289, 104, 0xcc8932cb
+1, 314991, 105, 0xd9233422
+0, 318318, 340, 0x7229a1b7
+1, 319693, 104, 0x5c603350
+1, 324396, 105, 0x76e631bc
+1, 329098, 104, 0x657e3b35
+0, 330330, 280, 0x48948b60
+1, 333800, 105, 0x9d283226
+1, 338502, 104, 0x574936ef
+0, 342342, 304, 0x3ae68dcf
+1, 343204, 105, 0x1b923555
+1, 347906, 104, 0x2a9f3583
+1, 352608, 105, 0xb8cd306f
+0, 354354, 324, 0x005da2ab
+1, 357310, 104, 0xa21d3475
+1, 362012, 105, 0x651539ea
+0, 366366, 348, 0x3230a873
+1, 366714, 104, 0x7b7235b8
+1, 371416, 105, 0x2bbb337a
+1, 376118, 104, 0x26c332eb
+0, 378378, 336, 0x8655ad2d
+1, 380820, 105, 0x990838d8
+1, 385522, 104, 0x4dc63ad4
+1, 390224, 105, 0xfb8e3418
+0, 390390, 380, 0x742ebc44
+1, 394926, 104, 0x1882388e
+1, 399628, 105, 0xe6b534cc
+0, 402402, 340, 0xfc1aa74e
+1, 404330, 104, 0x60fe35d0
+1, 409032, 105, 0x5164354a
+1, 413734, 104, 0x92ee3115
+0, 414414, 332, 0x3cfba56c
+1, 418436, 105, 0x9b32327e
+1, 423138, 104, 0x9b9e394a
+0, 426426, 332, 0xc024ad4c
+1, 427840, 105, 0xce3c337f
+1, 432542, 104, 0x7a4e33c5
+0, 438438, 3432, 0xcdfcd1c9
+1, 440868, 105, 0x0e3d34eb
+1, 445570, 104, 0xd23e338e
+1, 450272, 105, 0x4abf340c
+0, 450450, 792, 0xe7df949f
+1, 454974, 104, 0xe7522e15
+1, 459676, 105, 0x995037ba
+0, 462462, 912, 0xbc61d549
+1, 464378, 104, 0x5ef12e9b
+1, 469080, 105, 0x5c3b3166
+1, 473782, 104, 0xfc38314b
+0, 474474, 956, 0x809bdff0
+1, 478484, 104, 0x5e3636e4
+1, 483186, 105, 0xae7b3345
+0, 486486, 652, 0x88d3484f
+1, 487888, 104, 0x635c317a
+1, 492590, 105, 0xa90c361a
+1, 497292, 104, 0x8f563594
+0, 498498, 1284, 0xecc37164
+1, 501468, 105, 0x028e3985
+1, 506170, 104, 0x4fd135f6
+0, 510510, 428, 0x4794e174
+1, 510872, 105, 0xaaf539ac
+1, 515574, 104, 0x668b3265
+1, 520276, 105, 0x74ad3b4b
+0, 522522, 460, 0x7253d94a
+1, 524978, 104, 0xbde5332f
+1, 529680, 105, 0xdc3631e7
+1, 534382, 104, 0x3e363a1e
+0, 534534, 24, 0x664206ba
+1, 539084, 105, 0x48b63926
diff --git a/tests/ref/fate/nuv b/tests/ref/fate/nuv
new file mode 100644
index 0000000000..204a4112e7
--- /dev/null
+++ b/tests/ref/fate/nuv
@@ -0,0 +1,30 @@
+1, 0, 4096, 0x00000000
+0, 0, 460800, 0x54aedafe
+1, 2090, 4096, 0x4dfae7a6
+0, 3003, 460800, 0x54aedafe
+1, 4180, 4096, 0x3fd9f5c6
+0, 6006, 460800, 0x54aedafe
+1, 6269, 4096, 0x7b86e310
+1, 8359, 4096, 0x611cece5
+0, 9009, 460800, 0x54aedafe
+1, 10449, 4096, 0xb7d8e872
+0, 12012, 460800, 0xb7aa8b56
+1, 12539, 4096, 0x072ef72b
+1, 14629, 4096, 0xb3560144
+0, 15015, 460800, 0x283ea3b5
+1, 16718, 4096, 0x0a3d119e
+0, 18018, 460800, 0x283ea3b5
+1, 18808, 4096, 0xbe391aa4
+1, 20898, 4096, 0x28f7c6e5
+0, 21021, 460800, 0x10e577de
+1, 22988, 4096, 0xca9d9df2
+0, 24024, 460800, 0x4e091ee2
+1, 25078, 4096, 0x5c6b95a9
+0, 27027, 460800, 0x2ea88828
+1, 27167, 4096, 0x0bdfc0bf
+1, 29257, 4096, 0xd95a9277
+0, 30030, 460800, 0x4b7f4df0
+1, 31347, 4096, 0xae2bef2c
+0, 33033, 460800, 0xb30eb322
+1, 33437, 4096, 0xbf031e83
+1, 35527, 4096, 0x4c83e2d1
diff --git a/tests/ref/fate/oma-demux b/tests/ref/fate/oma-demux
new file mode 100644
index 0000000000..39fcf5a97a
--- /dev/null
+++ b/tests/ref/fate/oma-demux
@@ -0,0 +1 @@
+CRC=0xdd181a1c
diff --git a/tests/ref/fate/pcm_dvd b/tests/ref/fate/pcm_dvd
new file mode 100644
index 0000000000..475fce416b
--- /dev/null
+++ b/tests/ref/fate/pcm_dvd
@@ -0,0 +1,123 @@
+0, 0, 1336, 0x8e3c0abc
+0, 626, 1336, 0x99c41108
+0, 1253, 1336, 0xd65be322
+0, 1879, 1336, 0x15b575fb
+0, 2505, 1336, 0x366f742a
+0, 3131, 1336, 0xed72ad83
+0, 3758, 1336, 0x73f21c93
+0, 4384, 1336, 0x4be7a770
+0, 5010, 1336, 0x69ecf80c
+0, 5636, 1336, 0x835dc0e5
+0, 6263, 1336, 0x3089458d
+0, 6889, 1336, 0xc73b8cdc
+0, 7515, 1336, 0xc1cdaa8f
+0, 8141, 1336, 0x47a49186
+0, 8768, 1336, 0x2db387e2
+0, 9394, 1336, 0x90da9a97
+0, 10020, 1336, 0xcd34a467
+0, 10646, 1336, 0xdca8bd29
+0, 11273, 1336, 0xa09f9da3
+0, 11899, 1336, 0x47c8acf6
+0, 12525, 1336, 0x94dfa20e
+0, 13151, 1336, 0x2123a5f6
+0, 13778, 1336, 0x2f1badde
+0, 14404, 1336, 0x47579528
+0, 15030, 1336, 0x028daa10
+0, 15656, 1336, 0x5ed7adcd
+0, 16283, 1336, 0xc5ee8f10
+0, 16909, 1336, 0xcfacb489
+0, 17535, 1336, 0x07de937b
+0, 18161, 1336, 0x07bd8f8b
+0, 18788, 1336, 0x4660912e
+0, 19414, 1336, 0x047f97ad
+0, 20040, 1336, 0xe0e8a11f
+0, 20666, 1336, 0xcd9898e6
+0, 21293, 1336, 0xccfda786
+0, 21919, 1336, 0xab1b9e40
+0, 22545, 1336, 0x2ea79ea1
+0, 23171, 1336, 0xade2ad7e
+0, 23798, 1336, 0xe5cf9684
+0, 24424, 1336, 0xb57184cf
+0, 25050, 1336, 0x0668a5ce
+0, 25676, 1336, 0x643a9d96
+0, 26303, 1336, 0x97dc8ecc
+0, 26929, 1336, 0x72c2b174
+0, 27555, 1336, 0xe39d8fc3
+0, 28181, 1336, 0x56fc76d2
+0, 28808, 1336, 0x91a884b3
+0, 29434, 1336, 0x7b039a4e
+0, 30060, 1336, 0x3770a9dd
+0, 30686, 1336, 0x317c9cb8
+0, 31313, 1336, 0xdd97ad48
+0, 31939, 1336, 0x98066c1b
+0, 32565, 1336, 0xecd3a31c
+0, 33191, 1336, 0x0578b329
+0, 33818, 1336, 0x6942881c
+0, 34444, 1336, 0x56b5af29
+0, 35070, 1336, 0xf111a48a
+0, 35696, 1336, 0x1f5a8d45
+0, 36323, 1336, 0x39abdded
+0, 36949, 1336, 0xdb997fe8
+0, 37575, 1336, 0xd7f0d0b2
+0, 38201, 1336, 0xf3219413
+0, 38828, 1336, 0x9d80899d
+0, 39454, 1336, 0x7238bd63
+0, 40080, 1336, 0x7376703e
+0, 40706, 1336, 0x0fd56d02
+0, 41333, 1336, 0xa6c0951e
+0, 41959, 1336, 0xfacb674e
+0, 42585, 1336, 0x805bd289
+0, 43211, 1336, 0xa2a51a12
+0, 43838, 1336, 0x8a75d91b
+0, 44464, 1336, 0x34b1ef80
+0, 45090, 1336, 0x902921e0
+0, 45716, 1336, 0xc2db7895
+0, 46343, 1336, 0x7a0db9e1
+0, 46969, 1336, 0x66a93277
+0, 47595, 1336, 0x30830a83
+0, 48221, 1336, 0x251cf132
+0, 48848, 1336, 0x08dd852c
+0, 49474, 1336, 0x22ea164c
+0, 50100, 1336, 0x3bdd91c4
+0, 50726, 1336, 0xa4c0fbd7
+0, 51353, 1336, 0x83aa81bd
+0, 51979, 1336, 0x8a7b0fdb
+0, 52605, 1336, 0x35c37b01
+0, 53231, 1336, 0xdede811e
+0, 53858, 1336, 0x7473a657
+0, 54484, 1336, 0x5b917e2b
+0, 55110, 1336, 0x1c5a7cfc
+0, 55736, 1336, 0xeb7bab0d
+0, 56363, 1336, 0x7337795c
+0, 56989, 1336, 0x68da9d08
+0, 57615, 1336, 0xe93b87fe
+0, 58241, 1336, 0xd4639f00
+0, 58868, 1336, 0x1070a91d
+0, 59494, 1336, 0x50e3788f
+0, 60120, 1336, 0x1dac6691
+0, 60746, 1336, 0xf62c709d
+0, 61373, 1336, 0x2369648d
+0, 61999, 1336, 0xbfc792e6
+0, 62625, 1336, 0x975eb8e3
+0, 63251, 1336, 0x35c49ba6
+0, 63878, 1336, 0xe6198aa9
+0, 64504, 1336, 0x99f37d9d
+0, 65130, 1336, 0x4815aff1
+0, 65756, 1336, 0x4fd366ca
+0, 66383, 1336, 0x43cf7bb4
+0, 67009, 1336, 0x14a576ac
+0, 67635, 1336, 0xc6986978
+0, 68261, 1336, 0x10f67dc4
+0, 68888, 1336, 0xcca07f7a
+0, 69514, 1336, 0x6d0a5dfe
+0, 70140, 1336, 0x4e0761ef
+0, 70766, 1336, 0x31368e66
+0, 71393, 1336, 0x14b895c1
+0, 72019, 1336, 0x4bb7c111
+0, 72645, 1336, 0x1676a8bb
+0, 73271, 1336, 0xddaaa459
+0, 73898, 1336, 0xc43eabce
+0, 74524, 1336, 0x4d9f8d54
+0, 75150, 1336, 0x0ac292cb
+0, 75776, 1336, 0x2d9c74e4
+0, 76403, 1336, 0xe73da38f
diff --git a/tests/ref/fate/psx-str b/tests/ref/fate/psx-str
new file mode 100644
index 0000000000..c0b990854f
--- /dev/null
+++ b/tests/ref/fate/psx-str
@@ -0,0 +1,200 @@
+1, 0, 8064, 0x02260037
+0, 0, 115200, 0x6b106a56
+1, 4800, 8064, 0x4ee9f4e9
+0, 6000, 115200, 0x53c16930
+1, 9600, 8064, 0xf8fd82aa
+0, 12000, 115200, 0xe2126f03
+1, 14400, 8064, 0xc100792b
+0, 18000, 115200, 0xc3c18ba0
+1, 19200, 8064, 0xf11a5316
+1, 24000, 8064, 0x6937f8c0
+0, 24000, 115200, 0xe281b655
+1, 28800, 8064, 0xed194e42
+0, 30000, 115200, 0x7b1e0536
+1, 33600, 8064, 0x619ce54b
+0, 36000, 115200, 0xbbd868c5
+1, 38400, 8064, 0x544999ec
+0, 42000, 115200, 0xfc67bf8e
+1, 43200, 8064, 0x0ea877b4
+1, 48000, 8064, 0xb764d1c0
+0, 48000, 115200, 0xb463151c
+1, 52800, 8064, 0x7a2fd211
+0, 54000, 115200, 0x6e686846
+1, 57600, 8064, 0xff69f6c5
+0, 60000, 115200, 0xca36b835
+1, 62400, 8064, 0x26c11ec7
+0, 66000, 115200, 0x17b91efc
+1, 67200, 8064, 0xfb4ecc0c
+1, 72000, 8064, 0x111d799b
+0, 72000, 115200, 0xc051a49a
+1, 76800, 8064, 0xc704dc91
+0, 78000, 115200, 0xc68c227b
+1, 81600, 8064, 0xa9f372fb
+0, 84000, 115200, 0x9ba6b521
+1, 86400, 8064, 0xa3f0ad0f
+0, 90000, 115200, 0x09d56ecc
+1, 91200, 8064, 0x958719b9
+1, 96000, 8064, 0x9b011bf7
+0, 96000, 115200, 0xc20e3485
+1, 100800, 8064, 0x466d96fb
+0, 102000, 115200, 0xf07e2c48
+1, 105600, 8064, 0x6ed4eb29
+0, 108000, 115200, 0x551c6da1
+1, 110400, 8064, 0x066966db
+0, 114000, 115200, 0xed65bacd
+1, 115200, 8064, 0xf60fe0bc
+1, 120000, 8064, 0x2c845167
+0, 120000, 115200, 0x51a23a3b
+1, 124800, 8064, 0x7d63894f
+0, 126000, 115200, 0x559ddce1
+1, 129600, 8064, 0x0682ee36
+0, 132000, 115200, 0x1fef6373
+1, 134400, 8064, 0xcaeb7c70
+0, 138000, 115200, 0x11b2dece
+1, 139200, 8064, 0x93948697
+1, 144000, 8064, 0x5805f0d6
+0, 144000, 115200, 0x851b877c
+1, 148800, 8064, 0xcfb641ff
+0, 150000, 115200, 0x5f9a7c99
+1, 153600, 8064, 0xe3499bb1
+0, 156000, 115200, 0x9ffe6153
+1, 158400, 8064, 0x689fe483
+0, 162000, 115200, 0x950b0de8
+1, 163200, 8064, 0x1b8f2f2d
+1, 168000, 8064, 0x23852e71
+0, 168000, 115200, 0x6ec4c89a
+1, 172800, 8064, 0x15e7b298
+0, 174000, 115200, 0xa9234812
+1, 177600, 8064, 0x5345a9a3
+0, 180000, 115200, 0xc834f491
+1, 182400, 8064, 0x257b6ecf
+0, 186000, 115200, 0x2cc1a2aa
+1, 187200, 8064, 0xaf62836c
+1, 192000, 8064, 0xc3a401e3
+0, 192000, 115200, 0x5df53b71
+1, 196800, 8064, 0x2b98fdf1
+0, 198000, 115200, 0xe1d0cb31
+1, 201600, 8064, 0x37168697
+0, 204000, 115200, 0xa0d2f8ab
+1, 206400, 8064, 0x2d876c89
+0, 210000, 115200, 0x9342d739
+1, 211200, 8064, 0xc40a6ada
+1, 216000, 8064, 0xcca6b829
+0, 216000, 115200, 0x586bc658
+1, 220800, 8064, 0x6667550a
+0, 222000, 115200, 0x76902834
+1, 225600, 8064, 0x99c1b5cb
+0, 228000, 115200, 0x91f25616
+1, 230400, 8064, 0xc05d3ed3
+0, 234000, 115200, 0xce8c95fb
+1, 235200, 8064, 0xdd641781
+1, 240000, 8064, 0xa65d49dc
+0, 240000, 115200, 0xdf0d3de6
+1, 244800, 8064, 0x2a0d5df7
+0, 246000, 115200, 0x120db7ae
+1, 249600, 8064, 0xa6348438
+0, 252000, 115200, 0x2143e287
+1, 254400, 8064, 0xf2e1412d
+0, 258000, 115200, 0x2498d3b6
+1, 259200, 8064, 0xc41c6a7a
+1, 264000, 8064, 0x147edc3d
+0, 264000, 115200, 0x99975ff8
+1, 268800, 8064, 0x17e3cfe7
+0, 270000, 115200, 0xbad65f9f
+1, 273600, 8064, 0x01fe3969
+0, 276000, 115200, 0x5066605b
+1, 278400, 8064, 0xc437ac11
+0, 282000, 115200, 0x6f8a61a0
+1, 283200, 8064, 0xbbf747c1
+1, 288000, 8064, 0x2a4b88c0
+0, 288000, 115200, 0x80c96143
+1, 292800, 8064, 0xcd149c80
+0, 294000, 115200, 0x663c6198
+1, 297600, 8064, 0xcf339dfc
+0, 300000, 115200, 0x0354620b
+1, 302400, 8064, 0xc81ff84b
+0, 306000, 115200, 0xfe186346
+1, 307200, 8064, 0x4d978100
+1, 312000, 8064, 0x6da6665b
+0, 312000, 115200, 0x844962f8
+1, 316800, 8064, 0x12fa354f
+0, 318000, 115200, 0x917c672f
+1, 321600, 8064, 0x6baedae6
+0, 324000, 115200, 0x45086647
+1, 326400, 8064, 0xddd77327
+0, 330000, 115200, 0xace06816
+1, 331200, 8064, 0x0a31c118
+1, 336000, 8064, 0x7652ee6e
+0, 336000, 115200, 0x4ef26aa2
+1, 340800, 8064, 0x486a24cc
+0, 342000, 115200, 0xf2046bb3
+1, 345600, 8064, 0xf6cf01ee
+0, 348000, 115200, 0x846b6eb0
+1, 350400, 8064, 0x2a19e830
+0, 354000, 115200, 0x8a17716d
+1, 355200, 8064, 0xde675a31
+1, 360000, 8064, 0xeefcc9af
+0, 360000, 115200, 0x36127568
+1, 364800, 8064, 0xaec4c989
+0, 366000, 115200, 0x3e877b5c
+1, 369600, 8064, 0x16b73de9
+0, 372000, 115200, 0xea5681e8
+1, 374400, 8064, 0x188a582a
+0, 378000, 115200, 0x41bc8a39
+1, 379200, 8064, 0xc092e73d
+1, 384000, 8064, 0xf7ebca97
+0, 384000, 115200, 0x6f839446
+1, 388800, 8064, 0x170ce07a
+0, 390000, 115200, 0xef74a005
+1, 393600, 8064, 0xa0705384
+0, 396000, 115200, 0x4354b2c2
+1, 398400, 8064, 0xd0154a3c
+0, 402000, 115200, 0x4607cf99
+1, 403200, 8064, 0x57c73c6c
+1, 408000, 8064, 0x590c9ddb
+0, 408000, 115200, 0x4c18e8db
+1, 412800, 8064, 0x2cbe552f
+0, 414000, 115200, 0x04d71efb
+1, 417600, 8064, 0x0d286932
+0, 420000, 115200, 0x32f4b9ae
+1, 422400, 8064, 0x5931cea3
+0, 426000, 115200, 0x4dd48d01
+1, 427200, 8064, 0xaf0fb80d
+1, 432000, 8064, 0x7fb61e9b
+0, 432000, 115200, 0x5fa9627f
+1, 436800, 8064, 0xf17134bb
+0, 438000, 115200, 0x7a413f88
+1, 441600, 8064, 0xd647859a
+0, 444000, 115200, 0xf1b7e5b6
+1, 446400, 8064, 0x55a60921
+0, 450000, 115200, 0x3d720e05
+1, 451200, 8064, 0x3811fa58
+1, 456000, 8064, 0xaceeccea
+0, 456000, 115200, 0x49243fd8
+1, 460800, 8064, 0x5fcedf14
+0, 462000, 115200, 0x9834b697
+1, 465600, 8064, 0xd8c64abf
+0, 468000, 115200, 0x4b8bc217
+1, 470400, 8064, 0x79495e8d
+0, 474000, 115200, 0x3eaf5504
+1, 475200, 8064, 0x4b7db039
+1, 480000, 8064, 0x7152f86d
+0, 480000, 115200, 0x057a3701
+1, 484800, 8064, 0xd92cfc1a
+0, 486000, 115200, 0x6e88f21a
+1, 489600, 8064, 0x75c540ef
+0, 492000, 115200, 0x236c5226
+1, 494400, 8064, 0x9c03ef5e
+0, 498000, 115200, 0x92212d84
+1, 499200, 8064, 0x7b2911c8
+1, 504000, 8064, 0x69d9d553
+0, 504000, 115200, 0xf6b0a4ff
+1, 508800, 8064, 0xcb45d7c5
+0, 510000, 115200, 0xb49e9b4e
+1, 513600, 8064, 0x37ec8b0a
+0, 516000, 115200, 0x4a252440
+1, 518400, 8064, 0xe4354221
+0, 522000, 115200, 0x65f3339a
+1, 523200, 8064, 0xc0d91cdb
+1, 528000, 8064, 0xea0be175
+0, 528000, 115200, 0x38e40a20
diff --git a/tests/ref/fate/ptx b/tests/ref/fate/ptx
new file mode 100644
index 0000000000..e1688bb3c4
--- /dev/null
+++ b/tests/ref/fate/ptx
@@ -0,0 +1 @@
+0, 0, 393216, 0xda280efc
diff --git a/tests/ref/fate/pva-demux b/tests/ref/fate/pva-demux
new file mode 100644
index 0000000000..511f652219
--- /dev/null
+++ b/tests/ref/fate/pva-demux
@@ -0,0 +1,25 @@
+1, 0, 384, 0x071abcc8
+1, 0, 384, 0x31c9aee0
+1, 2160, 384, 0xa50eaa94
+1, 4320, 384, 0x9e86ba0e
+1, 8640, 384, 0x2321b800
+1, 10800, 384, 0x2347afa8
+1, 12960, 384, 0x0831b8d3
+1, 15120, 384, 0xd5acafa1
+1, 17280, 384, 0xc975b9d2
+1, 19440, 384, 0x2e10b02a
+1, 21600, 384, 0x501eadd0
+1, 23760, 384, 0x153fc171
+1, 25920, 384, 0xc5f0b3c2
+1, 28080, 384, 0xf731b200
+1, 30240, 384, 0x2e16b713
+1, 32400, 384, 0x61f6bba9
+1, 34560, 384, 0x1b9eb0ff
+1, 36720, 384, 0x2ab4b7bd
+1, 38880, 384, 0xd66eb45c
+1, 41040, 384, 0x145ab426
+1, 43200, 384, 0x297cb370
+1, 45360, 384, 0x287bb6b7
+1, 47520, 384, 0xfddbb7df
+1, 49680, 384, 0xbbb2af0c
+1, 51840, 384, 0x8f03b5fc
diff --git a/tests/ref/fate/qcp-demux b/tests/ref/fate/qcp-demux
new file mode 100644
index 0000000000..cd7157d63b
--- /dev/null
+++ b/tests/ref/fate/qcp-demux
@@ -0,0 +1 @@
+CRC=0x4f9f567a
diff --git a/tests/ref/fate/qpeg b/tests/ref/fate/qpeg
new file mode 100644
index 0000000000..b7d698c009
--- /dev/null
+++ b/tests/ref/fate/qpeg
@@ -0,0 +1,100 @@
+0, 0, 230400, 0x0b712fba
+0, 3600, 230400, 0x30252ac7
+0, 7200, 230400, 0x6d98a787
+0, 10800, 230400, 0x5d1f6ce7
+0, 14400, 230400, 0xccb79136
+0, 18000, 230400, 0x394093e1
+0, 21600, 230400, 0x3e76c5e9
+0, 25200, 230400, 0xd6cdc8f1
+0, 28800, 230400, 0xd355371d
+0, 32400, 230400, 0x2c1519ca
+0, 36000, 230400, 0xd82427e1
+0, 39600, 230400, 0x4202e3b4
+0, 43200, 230400, 0x27c15cda
+0, 46800, 230400, 0x3fd7d5db
+0, 50400, 230400, 0x03838791
+0, 54000, 230400, 0x8253d774
+0, 57600, 230400, 0x833e9c9f
+0, 61200, 230400, 0xe30aba05
+0, 64800, 230400, 0x81056b68
+0, 68400, 230400, 0xe6454d37
+0, 72000, 230400, 0x6bb65f77
+0, 75600, 230400, 0x95b652eb
+0, 79200, 230400, 0x4f585a73
+0, 82800, 230400, 0x9bc2c9d8
+0, 86400, 230400, 0x09f00930
+0, 90000, 230400, 0x6be9d11a
+0, 93600, 230400, 0x5cdd4ea5
+0, 97200, 230400, 0x77508d67
+0, 100800, 230400, 0x76b21fdd
+0, 104400, 230400, 0x39e2dddb
+0, 108000, 230400, 0x8b16d389
+0, 111600, 230400, 0xb2b329fb
+0, 115200, 230400, 0x8e998c17
+0, 118800, 230400, 0x3852049f
+0, 122400, 230400, 0x5a7f6302
+0, 126000, 230400, 0xdd7d9d86
+0, 129600, 230400, 0x337298bd
+0, 133200, 230400, 0x2fa38668
+0, 136800, 230400, 0xfc42afcd
+0, 140400, 230400, 0x20ff7b1d
+0, 144000, 230400, 0xa9190f28
+0, 147600, 230400, 0x2ca26827
+0, 151200, 230400, 0x1106bd55
+0, 154800, 230400, 0xb965748e
+0, 158400, 230400, 0x2c2d2691
+0, 162000, 230400, 0x8096db4d
+0, 165600, 230400, 0x7b223871
+0, 169200, 230400, 0xf9edbca9
+0, 172800, 230400, 0x0e607f74
+0, 176400, 230400, 0x3e64ed79
+0, 180000, 230400, 0x2198f77a
+0, 183600, 230400, 0x3cf4925a
+0, 187200, 230400, 0x2de0ebdb
+0, 190800, 230400, 0x5104c55f
+0, 194400, 230400, 0xebd7f8f7
+0, 198000, 230400, 0xfce8a2ae
+0, 201600, 230400, 0xeb073121
+0, 205200, 230400, 0x8f2ed47d
+0, 208800, 230400, 0xdcb72934
+0, 212400, 230400, 0xf69e75a1
+0, 216000, 230400, 0xc45ab599
+0, 219600, 230400, 0x0d218766
+0, 223200, 230400, 0x4a6aafce
+0, 226800, 230400, 0x642153ca
+0, 230400, 230400, 0x8bd7a2a4
+0, 234000, 230400, 0x04abeeed
+0, 237600, 230400, 0x37bf9f2c
+0, 241200, 230400, 0x1d966ae5
+0, 244800, 230400, 0x3a2ef337
+0, 248400, 230400, 0x9edaf34f
+0, 252000, 230400, 0x7f3c0ff8
+0, 255600, 230400, 0x403cbdee
+0, 259200, 230400, 0x86b340e8
+0, 262800, 230400, 0x5a57c916
+0, 266400, 230400, 0x35763ab3
+0, 270000, 230400, 0xd135a1ba
+0, 273600, 230400, 0x56a7b1db
+0, 277200, 230400, 0x6e8d2910
+0, 280800, 230400, 0xc8d9c4e1
+0, 284400, 230400, 0xb61fd11f
+0, 288000, 230400, 0x8949b165
+0, 291600, 230400, 0x60082f69
+0, 295200, 230400, 0xf9c74a14
+0, 298800, 230400, 0x1f0af3f4
+0, 302400, 230400, 0x1abe4a3b
+0, 306000, 230400, 0xdf762ffb
+0, 309600, 230400, 0x38513b73
+0, 313200, 230400, 0xf3b01fcf
+0, 316800, 230400, 0xea7d486c
+0, 320400, 230400, 0xfabc7a89
+0, 324000, 230400, 0xc72f6977
+0, 327600, 230400, 0x1c9e4590
+0, 331200, 230400, 0x51abf71e
+0, 334800, 230400, 0x39c9d819
+0, 338400, 230400, 0xfc62d8e0
+0, 342000, 230400, 0x40bb8c0d
+0, 345600, 230400, 0xa0bd86d2
+0, 349200, 230400, 0x610dfe19
+0, 352800, 230400, 0x997e1572
+0, 356400, 230400, 0x49919319
diff --git a/tests/ref/fate/qt-alaw-mono b/tests/ref/fate/qt-alaw-mono
new file mode 100644
index 0000000000..fc23d574c9
--- /dev/null
+++ b/tests/ref/fate/qt-alaw-mono
@@ -0,0 +1 @@
+7257c296fbba7eedf688fcb667144f7b
diff --git a/tests/ref/fate/qt-alaw-stereo b/tests/ref/fate/qt-alaw-stereo
new file mode 100644
index 0000000000..1a9af29f5e
--- /dev/null
+++ b/tests/ref/fate/qt-alaw-stereo
@@ -0,0 +1 @@
+011d4aecaee697cc861012b7c25b5d40
diff --git a/tests/ref/fate/qt-ima4-mono b/tests/ref/fate/qt-ima4-mono
new file mode 100644
index 0000000000..66767d5d30
--- /dev/null
+++ b/tests/ref/fate/qt-ima4-mono
@@ -0,0 +1 @@
+721b51fd66c3bb3dc49dd88d404188eb
diff --git a/tests/ref/fate/qt-ima4-stereo b/tests/ref/fate/qt-ima4-stereo
new file mode 100644
index 0000000000..5e6b1237d5
--- /dev/null
+++ b/tests/ref/fate/qt-ima4-stereo
@@ -0,0 +1 @@
+c9e4c21fb62eca34a533f3a9ad2e394a
diff --git a/tests/ref/fate/qt-mac3-mono b/tests/ref/fate/qt-mac3-mono
new file mode 100644
index 0000000000..c320e1817a
--- /dev/null
+++ b/tests/ref/fate/qt-mac3-mono
@@ -0,0 +1 @@
+728d89210e1c90a9185db729b0b6e8c0
diff --git a/tests/ref/fate/qt-mac3-stereo b/tests/ref/fate/qt-mac3-stereo
new file mode 100644
index 0000000000..7b5ce45747
--- /dev/null
+++ b/tests/ref/fate/qt-mac3-stereo
@@ -0,0 +1 @@
+2eef3c68fce3d18ec757bcbc0d369698
diff --git a/tests/ref/fate/qt-mac6-mono b/tests/ref/fate/qt-mac6-mono
new file mode 100644
index 0000000000..d4d5104b20
--- /dev/null
+++ b/tests/ref/fate/qt-mac6-mono
@@ -0,0 +1 @@
+eec238d2737365fba15da813e5a7fbc9
diff --git a/tests/ref/fate/qt-mac6-stereo b/tests/ref/fate/qt-mac6-stereo
new file mode 100644
index 0000000000..d018cb0835
--- /dev/null
+++ b/tests/ref/fate/qt-mac6-stereo
@@ -0,0 +1 @@
+2716d66016d8230bcc0fe90586da97a9
diff --git a/tests/ref/fate/qt-msadpcm-stereo b/tests/ref/fate/qt-msadpcm-stereo
new file mode 100644
index 0000000000..6b131c1f97
--- /dev/null
+++ b/tests/ref/fate/qt-msadpcm-stereo
@@ -0,0 +1 @@
+3b7554e9a186c30adfd2a86bae950f4a
diff --git a/tests/ref/fate/qt-msimaadpcm-stereo b/tests/ref/fate/qt-msimaadpcm-stereo
new file mode 100644
index 0000000000..cb6a481999
--- /dev/null
+++ b/tests/ref/fate/qt-msimaadpcm-stereo
@@ -0,0 +1 @@
+1ee96f1efc09251a732621049dc5b66e
diff --git a/tests/ref/fate/qt-rawpcm-16bit-stereo-signed-be b/tests/ref/fate/qt-rawpcm-16bit-stereo-signed-be
new file mode 100644
index 0000000000..2500ba26f1
--- /dev/null
+++ b/tests/ref/fate/qt-rawpcm-16bit-stereo-signed-be
@@ -0,0 +1 @@
+f0c0fd7615cdef66fa72f5816632ca9b
diff --git a/tests/ref/fate/qt-rawpcm-16bit-stereo-signed-le b/tests/ref/fate/qt-rawpcm-16bit-stereo-signed-le
new file mode 100644
index 0000000000..f0837d1206
--- /dev/null
+++ b/tests/ref/fate/qt-rawpcm-16bit-stereo-signed-le
@@ -0,0 +1 @@
+0262b20b728f5bb95594e64e2173b2f2
diff --git a/tests/ref/fate/qt-rawpcm-8bit-mono-unsigned b/tests/ref/fate/qt-rawpcm-8bit-mono-unsigned
new file mode 100644
index 0000000000..2b46dbc062
--- /dev/null
+++ b/tests/ref/fate/qt-rawpcm-8bit-mono-unsigned
@@ -0,0 +1 @@
+c2dcec9b230dad733b6b877fbed36755
diff --git a/tests/ref/fate/qt-rawpcm-8bit-stereo-unsigned b/tests/ref/fate/qt-rawpcm-8bit-stereo-unsigned
new file mode 100644
index 0000000000..701a515f3c
--- /dev/null
+++ b/tests/ref/fate/qt-rawpcm-8bit-stereo-unsigned
@@ -0,0 +1 @@
+973cf68365c3d58ff60ba652433b3bd2
diff --git a/tests/ref/fate/qt-ulaw-mono b/tests/ref/fate/qt-ulaw-mono
new file mode 100644
index 0000000000..62fbc4e718
--- /dev/null
+++ b/tests/ref/fate/qt-ulaw-mono
@@ -0,0 +1 @@
+63075293c68079826146963e94f45ca6
diff --git a/tests/ref/fate/qt-ulaw-stereo b/tests/ref/fate/qt-ulaw-stereo
new file mode 100644
index 0000000000..642f0cb4ea
--- /dev/null
+++ b/tests/ref/fate/qt-ulaw-stereo
@@ -0,0 +1 @@
+96316117d444b06b2aa20877f7de36fd
diff --git a/tests/ref/fate/qtrle-16bit b/tests/ref/fate/qtrle-16bit
new file mode 100644
index 0000000000..2f0ca48551
--- /dev/null
+++ b/tests/ref/fate/qtrle-16bit
@@ -0,0 +1,83 @@
+0, 0, 57600, 0xe6b0a48c
+0, 6000, 57600, 0xe064d51c
+0, 12000, 57600, 0xbfce6b33
+0, 18000, 57600, 0x371bab02
+0, 24000, 57600, 0x0d2d7456
+0, 30000, 57600, 0x9184eecb
+0, 36000, 57600, 0xb482e8db
+0, 42000, 57600, 0x0f4cd4be
+0, 48000, 57600, 0xe276cccb
+0, 54000, 57600, 0x04c21c62
+0, 60000, 57600, 0x848960a2
+0, 66000, 57600, 0xc4c8cf03
+0, 72000, 57600, 0xb4094866
+0, 78000, 57600, 0xf22da043
+0, 84000, 57600, 0x6517b67b
+0, 90000, 57600, 0x23e39ccb
+0, 96000, 57600, 0x41525ca3
+0, 102000, 57600, 0xc3edc5f3
+0, 108000, 57600, 0x8ce81c7e
+0, 114000, 57600, 0x56829443
+0, 120000, 57600, 0x511ce287
+0, 126000, 57600, 0x8f029a5b
+0, 132000, 57600, 0x2b47cf43
+0, 138000, 57600, 0x8e7ecf4b
+0, 144000, 57600, 0xd620317e
+0, 150000, 57600, 0x5987646e
+0, 156000, 57600, 0xcfedb7df
+0, 162000, 57600, 0x33746e7b
+0, 168000, 57600, 0x1d318573
+0, 174000, 57600, 0xc851848b
+0, 180000, 57600, 0x939db1d7
+0, 186000, 57600, 0x1719aed3
+0, 192000, 57600, 0x1ba3e18c
+0, 198000, 57600, 0x04f355fb
+0, 204000, 57600, 0x6fafd5f4
+0, 210000, 57600, 0x434f800b
+0, 216000, 57600, 0xed42179b
+0, 222000, 57600, 0x3b33118b
+0, 228000, 57600, 0xf81880cb
+0, 234000, 57600, 0xd2c58e1b
+0, 240000, 57600, 0xd96f50eb
+0, 246000, 57600, 0x64ef63fb
+0, 252000, 57600, 0x7b14b6fc
+0, 258000, 57600, 0xeb1c9054
+0, 264000, 57600, 0x3b30c97c
+0, 270000, 57600, 0xc93e9484
+0, 276000, 57600, 0xe012c0cc
+0, 282000, 57600, 0x48e2dda4
+0, 288000, 57600, 0x13eb55fb
+0, 294000, 57600, 0xa5edbedc
+0, 300000, 57600, 0x0123a484
+0, 306000, 57600, 0xc624a7ac
+0, 312000, 57600, 0xd83cf45c
+0, 318000, 57600, 0x8f9bf4b4
+0, 324000, 57600, 0x2d494b8c
+0, 330000, 57600, 0xb246f07c
+0, 336000, 57600, 0x5750e67c
+0, 342000, 57600, 0x6643e9ac
+0, 348000, 57600, 0x8d3b86b3
+0, 354000, 57600, 0x4bb0546b
+0, 360000, 57600, 0xfe439333
+0, 366000, 57600, 0x0cc76233
+0, 372000, 57600, 0xb6fe40ae
+0, 378000, 57600, 0xf79fe0d7
+0, 384000, 57600, 0xdc90dcbb
+0, 390000, 57600, 0x371e7c2b
+0, 396000, 57600, 0x7c4590bb
+0, 402000, 57600, 0x66f5454b
+0, 408000, 57600, 0x1678ae5b
+0, 414000, 57600, 0x1ee8fdec
+0, 420000, 57600, 0x98d2a083
+0, 426000, 57600, 0x86d29e5b
+0, 432000, 57600, 0x23d2bc83
+0, 438000, 57600, 0x3fc729f2
+0, 444000, 57600, 0x821d61da
+0, 450000, 57600, 0xdd549e0e
+0, 456000, 57600, 0x641234e2
+0, 462000, 57600, 0x9a282112
+0, 468000, 57600, 0x6587e2fb
+0, 474000, 57600, 0x043d0cb2
+0, 480000, 57600, 0x90328707
+0, 486000, 57600, 0x5744d313
+0, 492000, 57600, 0x6e1b95cb
diff --git a/tests/ref/fate/qtrle-1bit b/tests/ref/fate/qtrle-1bit
new file mode 100644
index 0000000000..040c9bfe72
--- /dev/null
+++ b/tests/ref/fate/qtrle-1bit
@@ -0,0 +1,107 @@
+0, 0, 9600, 0xc1632102
+1, 0, 2040, 0x0a157db4
+1, 4163, 2040, 0x00c63e08
+0, 7500, 9600, 0x0f6c0521
+1, 8327, 2040, 0xacf2a25b
+1, 12490, 2040, 0xd6189e85
+0, 15000, 9600, 0x04b90b5a
+1, 16653, 2040, 0x8276f843
+1, 20816, 2040, 0xadebae73
+0, 22500, 9600, 0x2ebd4500
+1, 24980, 2040, 0x5da76697
+1, 29143, 2040, 0x469d0ea7
+0, 30000, 9600, 0x726f46f4
+1, 33306, 2040, 0x0d7412e1
+1, 37469, 2040, 0x2f2cc63f
+0, 37500, 9600, 0x37f6968e
+1, 41633, 2040, 0x10106eb7
+0, 45000, 9600, 0x7305872e
+1, 45796, 2040, 0x300124c7
+1, 49959, 2040, 0xa329f8e8
+0, 52500, 9600, 0x222eff5e
+1, 54122, 2040, 0xcea35ca5
+1, 58286, 2040, 0x55105aef
+0, 60000, 9600, 0x9317e227
+1, 62449, 2040, 0x08980ce1
+1, 66612, 2040, 0x367faf24
+0, 67500, 9600, 0x421eee9d
+1, 70776, 2040, 0x75bfef06
+1, 74939, 2040, 0x34f1daf4
+0, 75000, 9600, 0xcbcfaaff
+1, 79102, 2040, 0x97050317
+0, 82500, 9600, 0xe7d43be2
+1, 83265, 2040, 0xd297c536
+1, 87429, 2040, 0xa8abad5a
+0, 90000, 9600, 0x0b71e28c
+1, 91592, 2040, 0x445ce8e0
+1, 95755, 2040, 0xa3f4d940
+0, 97500, 9600, 0xd6a050ca
+1, 99918, 2040, 0x0ebb7b26
+1, 104082, 2040, 0x4372f6f6
+0, 105000, 9600, 0x0ac6dbf5
+1, 108245, 2040, 0xd4365079
+1, 112408, 2040, 0x56f902f7
+0, 112500, 9600, 0x5c036038
+1, 116571, 2040, 0x4153938a
+0, 120000, 9600, 0x6e417ed6
+1, 120735, 2040, 0x14996d86
+1, 124898, 2040, 0x3f99c318
+0, 127500, 9600, 0x8bd0dc22
+1, 129061, 2040, 0x939978a5
+1, 133224, 2040, 0x7086bd44
+0, 135000, 9600, 0xdf3b0877
+1, 137388, 276, 0x25b89d22
+1, 137951, 2040, 0xf3edb106
+1, 142114, 2040, 0x0ca61430
+0, 142500, 9600, 0xae6e7823
+1, 146278, 2040, 0x7229c458
+0, 150000, 9600, 0x8ff0ac32
+1, 150441, 2040, 0xc37edd31
+1, 154604, 2040, 0xa3da98b4
+0, 157500, 9600, 0xa2d9e2ce
+1, 158767, 2040, 0x69704803
+1, 162931, 2040, 0xa79bf334
+0, 165000, 9600, 0x5fd92b65
+1, 167094, 2040, 0x59d8d4c4
+1, 171257, 2040, 0xf9ff0271
+0, 172500, 9600, 0x81c1c824
+1, 175420, 2040, 0xc4ced9d6
+1, 179584, 2040, 0x859f1912
+0, 180000, 9600, 0xb8a2ace4
+1, 183747, 2040, 0xe7955aa6
+0, 187500, 9600, 0x65b70404
+1, 187910, 2040, 0x374624fd
+1, 192073, 2040, 0x52121097
+0, 195000, 9600, 0xc5349eb2
+1, 196237, 2040, 0x660fe645
+1, 200400, 2040, 0xf624176a
+0, 202500, 9600, 0xf60cc2b8
+1, 204563, 2040, 0x1f2246dd
+1, 208727, 2040, 0x940e0a32
+0, 210000, 9600, 0x31474595
+1, 212890, 2040, 0x9c6d338c
+1, 217053, 2040, 0xfce0d30a
+0, 217500, 9600, 0xf602635b
+1, 221216, 2040, 0xd0ec9aa5
+0, 225000, 9600, 0x873cbd87
+1, 225380, 2040, 0x58012141
+1, 229543, 2040, 0xde67fc43
+0, 232500, 9600, 0xb9793ffe
+1, 233706, 2040, 0x6baa0450
+1, 237869, 2040, 0xf4f80252
+0, 240000, 9600, 0x42eb2831
+1, 242033, 2040, 0x0cd47ee3
+1, 246196, 2040, 0x129cbaa7
+0, 247500, 9600, 0x44cc1dab
+1, 250359, 2040, 0x5ef5c0a1
+1, 254522, 2040, 0xf660baa7
+0, 255000, 9600, 0xbdcbbb87
+1, 258686, 2040, 0xe48bc0a1
+0, 262500, 9600, 0x29c22df7
+1, 262849, 2040, 0xdfeabaa7
+1, 267012, 2040, 0xed04c0a1
+0, 270000, 9600, 0xde502ef5
+1, 271176, 2040, 0xd771baa7
+1, 275339, 300, 0x521f24e9
+1, 275951, 1476, 0x9b9394b1
+0, 277500, 9600, 0xaf311aeb
diff --git a/tests/ref/fate/qtrle-24bit b/tests/ref/fate/qtrle-24bit
new file mode 100644
index 0000000000..da8fec4c4a
--- /dev/null
+++ b/tests/ref/fate/qtrle-24bit
@@ -0,0 +1,34 @@
+0, 0, 57600, 0x3718ad00
+0, 9000, 57600, 0x54861558
+0, 18000, 57600, 0xea1d6233
+0, 27000, 57600, 0xf669a2fd
+0, 36000, 57600, 0xc9f76f31
+0, 45000, 57600, 0xe23c6d7b
+0, 54000, 57600, 0xbc9d6167
+0, 63000, 57600, 0x0ca63477
+0, 72000, 57600, 0xc0850d22
+0, 81000, 57600, 0x735d10b2
+0, 90000, 57600, 0x561f3c4a
+0, 99000, 57600, 0x84db9cf1
+0, 108000, 57600, 0x9fb841f4
+0, 117000, 57600, 0xeaf262ab
+0, 126000, 57600, 0x264886b4
+0, 135000, 57600, 0x5edc5518
+0, 144000, 57600, 0xd3e60c72
+0, 153000, 57600, 0x9cabaed7
+0, 162000, 57600, 0x616716cf
+0, 171000, 57600, 0xa43f61aa
+0, 180000, 57600, 0xdba3a0bd
+0, 189000, 57600, 0xa7dd6dfa
+0, 198000, 57600, 0xc3fa6c84
+0, 207000, 57600, 0xb1275fb8
+0, 216000, 57600, 0x2e39331f
+0, 225000, 57600, 0x5b9e0bca
+0, 234000, 57600, 0x0e760f5a
+0, 243000, 57600, 0xc56c3e69
+0, 252000, 57600, 0x51da9fb8
+0, 261000, 57600, 0xe3a1432b
+0, 270000, 57600, 0xe1b360a3
+0, 279000, 57600, 0x30b383cd
+0, 288000, 57600, 0x950c5439
+0, 297000, 57600, 0x8f9d0ca2
diff --git a/tests/ref/fate/qtrle-2bit b/tests/ref/fate/qtrle-2bit
new file mode 100644
index 0000000000..c7e3fe6053
--- /dev/null
+++ b/tests/ref/fate/qtrle-2bit
@@ -0,0 +1,107 @@
+0, 0, 230400, 0xb1ee55dc
+1, 0, 2040, 0x0a157db4
+1, 4163, 2040, 0x00c63e08
+0, 7500, 230400, 0x97c580bf
+1, 8327, 2040, 0xacf2a25b
+1, 12490, 2040, 0xd6189e85
+0, 15000, 230400, 0xd4bd57e8
+1, 16653, 2040, 0x8276f843
+1, 20816, 2040, 0xadebae73
+0, 22500, 230400, 0x412b79aa
+1, 24980, 2040, 0x5da76697
+1, 29143, 2040, 0x469d0ea7
+0, 30000, 230400, 0x928a44d1
+1, 33306, 2040, 0x0d7412e1
+1, 37469, 2040, 0x2f2cc63f
+0, 37500, 230400, 0x6bbdc0e4
+1, 41633, 2040, 0x10106eb7
+0, 45000, 230400, 0x382e960f
+1, 45796, 2040, 0x300124c7
+1, 49959, 2040, 0xa329f8e8
+0, 52500, 230400, 0x62c863ea
+1, 54122, 2040, 0xcea35ca5
+1, 58286, 2040, 0x55105aef
+0, 60000, 230400, 0xbfccd3ce
+1, 62449, 2040, 0x08980ce1
+1, 66612, 2040, 0x367faf24
+0, 67500, 230400, 0x1987cdd4
+1, 70776, 2040, 0x75bfef06
+1, 74939, 2040, 0x34f1daf4
+0, 75000, 230400, 0x40279727
+1, 79102, 2040, 0x97050317
+0, 82500, 230400, 0x9d4f6746
+1, 83265, 2040, 0xd297c536
+1, 87429, 2040, 0xa8abad5a
+0, 90000, 230400, 0x7b8a77ec
+1, 91592, 2040, 0x445ce8e0
+1, 95755, 2040, 0xa3f4d940
+0, 97500, 230400, 0x2ce7a781
+1, 99918, 2040, 0x0ebb7b26
+1, 104082, 2040, 0x4372f6f6
+0, 105000, 230400, 0xb749815e
+1, 108245, 2040, 0xd4365079
+1, 112408, 2040, 0x56f902f7
+0, 112500, 230400, 0x61c88610
+1, 116571, 2040, 0x4153938a
+0, 120000, 230400, 0x8449114d
+1, 120735, 2040, 0x14996d86
+1, 124898, 2040, 0x3f99c318
+0, 127500, 230400, 0x5f73e666
+1, 129061, 2040, 0x939978a5
+1, 133224, 2040, 0x7086bd44
+0, 135000, 230400, 0xbde53ce6
+1, 137388, 276, 0x25b89d22
+1, 137951, 2040, 0xf3edb106
+1, 142114, 2040, 0x0ca61430
+0, 142500, 230400, 0x8c7406fd
+1, 146278, 2040, 0x7229c458
+0, 150000, 230400, 0xf9e9a3ef
+1, 150441, 2040, 0xc37edd31
+1, 154604, 2040, 0xa3da98b4
+0, 157500, 230400, 0x7e0a3077
+1, 158767, 2040, 0x69704803
+1, 162931, 2040, 0xa79bf334
+0, 165000, 230400, 0xd9245c5f
+1, 167094, 2040, 0x59d8d4c4
+1, 171257, 2040, 0xf9ff0271
+0, 172500, 230400, 0x6d077ea2
+1, 175420, 2040, 0xc4ced9d6
+1, 179584, 2040, 0x859f1912
+0, 180000, 230400, 0xf622bb2a
+1, 183747, 2040, 0xe7955aa6
+0, 187500, 230400, 0x35292dc8
+1, 187910, 2040, 0x374624fd
+1, 192073, 2040, 0x52121097
+0, 195000, 230400, 0xc0cea946
+1, 196237, 2040, 0x660fe645
+1, 200400, 2040, 0xf624176a
+0, 202500, 230400, 0x98b27b60
+1, 204563, 2040, 0x1f2246dd
+1, 208727, 2040, 0x940e0a32
+0, 210000, 230400, 0x668ef6bd
+1, 212890, 2040, 0x9c6d338c
+1, 217053, 2040, 0xfce0d30a
+0, 217500, 230400, 0x6c07a31c
+1, 221216, 2040, 0xd0ec9aa5
+0, 225000, 230400, 0x0b4a6ae1
+1, 225380, 2040, 0x58012141
+1, 229543, 2040, 0xde67fc43
+0, 232500, 230400, 0x945b9878
+1, 233706, 2040, 0x6baa0450
+1, 237869, 2040, 0xf4f80252
+0, 240000, 230400, 0xab28031c
+1, 242033, 2040, 0x0cd47ee3
+1, 246196, 2040, 0x129cbaa7
+0, 247500, 230400, 0x977252b0
+1, 250359, 2040, 0x5ef5c0a1
+1, 254522, 2040, 0xf660baa7
+0, 255000, 230400, 0x6c3d9706
+1, 258686, 2040, 0xe48bc0a1
+0, 262500, 230400, 0xe053bc2a
+1, 262849, 2040, 0xdfeabaa7
+1, 267012, 2040, 0xed04c0a1
+0, 270000, 230400, 0x4cf2fc7c
+1, 271176, 2040, 0xd771baa7
+1, 275339, 300, 0x521f24e9
+1, 275951, 1476, 0x9b9394b1
+0, 277500, 230400, 0x610beda7
diff --git a/tests/ref/fate/qtrle-32bit b/tests/ref/fate/qtrle-32bit
new file mode 100644
index 0000000000..a5e9c8a1a0
--- /dev/null
+++ b/tests/ref/fate/qtrle-32bit
@@ -0,0 +1,26 @@
+0, 0, 1036800, 0x2a90d062
+0, 3003, 1036800, 0x6565aded
+0, 6006, 1036800, 0xf0b587d2
+0, 9009, 1036800, 0xf0b4e53f
+0, 12012, 1036800, 0x5ba4b96a
+0, 15015, 1036800, 0x501df9c1
+0, 18018, 1036800, 0xcf45b940
+0, 21021, 1036800, 0xa454df07
+0, 24024, 1036800, 0xc504d152
+0, 27027, 1036800, 0xd90ecac7
+0, 30030, 1036800, 0xe30368df
+0, 33033, 1036800, 0x0ca35522
+0, 36036, 1036800, 0xe76b8d43
+0, 39039, 1036800, 0x7c85a447
+0, 42042, 1036800, 0x3e2d1b5f
+0, 45045, 1036800, 0x230fa5a6
+0, 48048, 1036800, 0x4fad025e
+0, 51051, 1036800, 0x7d3366ae
+0, 54054, 1036800, 0xa83720f7
+0, 57057, 1036800, 0x5dbd13b1
+0, 60060, 1036800, 0xd0ebd56d
+0, 63063, 1036800, 0x4d7c67f3
+0, 66066, 1036800, 0x226baa3f
+0, 69069, 1036800, 0xc0e93acf
+0, 72072, 1036800, 0x5a466c17
+0, 75075, 1036800, 0xfdb7d2ea
diff --git a/tests/ref/fate/qtrle-4bit b/tests/ref/fate/qtrle-4bit
new file mode 100644
index 0000000000..5678096673
--- /dev/null
+++ b/tests/ref/fate/qtrle-4bit
@@ -0,0 +1,38 @@
+0, 0, 230400, 0x0655b3d9
+0, 7500, 230400, 0x9c626fd3
+0, 15000, 230400, 0x5bc95868
+0, 22500, 230400, 0x55a38387
+0, 30000, 230400, 0xd3495b60
+0, 37500, 230400, 0xecdb2d15
+0, 45000, 230400, 0x7f9b373e
+0, 52500, 230400, 0x51caac22
+0, 60000, 230400, 0x0f2ac153
+0, 67500, 230400, 0xe5a6f9e7
+0, 75000, 230400, 0xfc2b2250
+0, 82500, 230400, 0x24e2da1b
+0, 90000, 230400, 0x2723d7dd
+0, 97500, 230400, 0x024a4989
+0, 105000, 230400, 0xdbafb92d
+0, 112500, 230400, 0x6b9b5056
+0, 120000, 230400, 0x010cabb4
+0, 127500, 230400, 0xf75bc1c0
+0, 135000, 230400, 0x6c7fd744
+0, 142500, 230400, 0xabe4371a
+0, 150000, 230400, 0xe41fb781
+0, 157500, 230400, 0x42c5649e
+0, 165000, 230400, 0xf5511deb
+0, 172500, 230400, 0xebf5ab32
+0, 180000, 230400, 0x44398194
+0, 187500, 230400, 0xfd63510c
+0, 195000, 230400, 0xa013975e
+0, 202500, 230400, 0xe0aa028d
+0, 210000, 230400, 0x349f6f3b
+0, 217500, 230400, 0x2446032c
+0, 225000, 230400, 0x648f122c
+0, 232500, 230400, 0xbda221fd
+0, 240000, 230400, 0xf0f97642
+0, 247500, 230400, 0x6a1737de
+0, 255000, 230400, 0x808a8179
+0, 262500, 230400, 0x121641cf
+0, 270000, 230400, 0x275d11ea
+0, 277500, 230400, 0x92adf2cf
diff --git a/tests/ref/fate/qtrle-8bit b/tests/ref/fate/qtrle-8bit
new file mode 100644
index 0000000000..62f748207e
--- /dev/null
+++ b/tests/ref/fate/qtrle-8bit
@@ -0,0 +1,167 @@
+0, 0, 921600, 0x1492e3ed
+0, 6000, 921600, 0x1492e3ed
+0, 12000, 921600, 0x1492e3ed
+0, 18000, 921600, 0x23ef4fc7
+0, 24000, 921600, 0x23ef4fc7
+0, 30000, 921600, 0xe406d4be
+0, 36000, 921600, 0xe406d4be
+0, 42000, 921600, 0xe406d4be
+0, 48000, 921600, 0x62b8b5a1
+0, 54000, 921600, 0x62b8b5a1
+0, 60000, 921600, 0x7d8ba674
+0, 66000, 921600, 0x7d8ba674
+0, 72000, 921600, 0x7d8ba674
+0, 78000, 921600, 0xfe666be7
+0, 84000, 921600, 0xfe666be7
+0, 90000, 921600, 0x721baec0
+0, 96000, 921600, 0x721baec0
+0, 102000, 921600, 0x721baec0
+0, 108000, 921600, 0xc237180a
+0, 114000, 921600, 0xc237180a
+0, 120000, 921600, 0xf03a7482
+0, 126000, 921600, 0xf03a7482
+0, 132000, 921600, 0xf03a7482
+0, 138000, 921600, 0x5612a391
+0, 144000, 921600, 0x5612a391
+0, 150000, 921600, 0x9dbcc46a
+0, 156000, 921600, 0x9dbcc46a
+0, 162000, 921600, 0x9dbcc46a
+0, 168000, 921600, 0xa128a5d5
+0, 174000, 921600, 0xa128a5d5
+0, 180000, 921600, 0x63e0025c
+0, 186000, 921600, 0x63e0025c
+0, 192000, 921600, 0x63e0025c
+0, 198000, 921600, 0x262359ed
+0, 204000, 921600, 0x262359ed
+0, 210000, 921600, 0x343688e8
+0, 216000, 921600, 0x343688e8
+0, 222000, 921600, 0x343688e8
+0, 228000, 921600, 0x343688e8
+0, 234000, 921600, 0x343688e8
+0, 240000, 921600, 0x343688e8
+0, 246000, 921600, 0x343688e8
+0, 252000, 921600, 0x343688e8
+0, 258000, 921600, 0x343688e8
+0, 264000, 921600, 0x343688e8
+0, 270000, 921600, 0xe4b29d57
+0, 276000, 921600, 0xe4b29d57
+0, 282000, 921600, 0xe4b29d57
+0, 288000, 921600, 0x198e8a4a
+0, 294000, 921600, 0x198e8a4a
+0, 300000, 921600, 0x0cad8dc9
+0, 306000, 921600, 0x0cad8dc9
+0, 312000, 921600, 0x0cad8dc9
+0, 318000, 921600, 0x1f74cf3d
+0, 324000, 921600, 0x1f74cf3d
+0, 330000, 921600, 0xec5b5449
+0, 336000, 921600, 0xec5b5449
+0, 342000, 921600, 0xec5b5449
+0, 348000, 921600, 0x39829711
+0, 354000, 921600, 0x39829711
+0, 360000, 921600, 0x6de5b9c6
+0, 366000, 921600, 0x6de5b9c6
+0, 372000, 921600, 0x6de5b9c6
+0, 378000, 921600, 0x47b0e9d4
+0, 384000, 921600, 0x47b0e9d4
+0, 390000, 921600, 0x756452b8
+0, 396000, 921600, 0x756452b8
+0, 402000, 921600, 0x756452b8
+0, 408000, 921600, 0x6fce3478
+0, 414000, 921600, 0x6fce3478
+0, 420000, 921600, 0x372397cd
+0, 426000, 921600, 0x372397cd
+0, 432000, 921600, 0x372397cd
+0, 438000, 921600, 0xe3999ba1
+0, 444000, 921600, 0xe3999ba1
+0, 450000, 921600, 0x6ba26b43
+0, 456000, 921600, 0x6ba26b43
+0, 462000, 921600, 0x6ba26b43
+0, 468000, 921600, 0x4e9ee49e
+0, 474000, 921600, 0x4e9ee49e
+0, 480000, 921600, 0xdb5fd6e7
+0, 486000, 921600, 0xdb5fd6e7
+0, 492000, 921600, 0xdb5fd6e7
+0, 498000, 921600, 0x8f2254a5
+0, 504000, 921600, 0x8f2254a5
+0, 510000, 921600, 0x8f2254a5
+0, 516000, 921600, 0x8f2254a5
+0, 522000, 921600, 0x8f2254a5
+0, 528000, 921600, 0x8f2254a5
+0, 534000, 921600, 0x8f2254a5
+0, 540000, 921600, 0x8f2254a5
+0, 546000, 921600, 0x8f2254a5
+0, 552000, 921600, 0x8f2254a5
+0, 558000, 921600, 0x57e95c32
+0, 564000, 921600, 0x57e95c32
+0, 570000, 921600, 0x41627a9b
+0, 576000, 921600, 0x41627a9b
+0, 582000, 921600, 0x41627a9b
+0, 588000, 921600, 0x7412dcee
+0, 594000, 921600, 0x7412dcee
+0, 600000, 921600, 0xaebe10ed
+0, 606000, 921600, 0xaebe10ed
+0, 612000, 921600, 0xaebe10ed
+0, 618000, 921600, 0x411a91f6
+0, 624000, 921600, 0x411a91f6
+0, 630000, 921600, 0xb059df3f
+0, 636000, 921600, 0xb059df3f
+0, 642000, 921600, 0xb059df3f
+0, 648000, 921600, 0x4d6f5a77
+0, 654000, 921600, 0x4d6f5a77
+0, 660000, 921600, 0xbbf06df4
+0, 666000, 921600, 0xbbf06df4
+0, 672000, 921600, 0xbbf06df4
+0, 678000, 921600, 0xe27f7bf6
+0, 684000, 921600, 0xe27f7bf6
+0, 690000, 921600, 0xd7e8360e
+0, 696000, 921600, 0xd7e8360e
+0, 702000, 921600, 0xd7e8360e
+0, 708000, 921600, 0x1dd4c344
+0, 714000, 921600, 0x1dd4c344
+0, 720000, 921600, 0x7995a7ce
+0, 726000, 921600, 0x7995a7ce
+0, 732000, 921600, 0x7995a7ce
+0, 738000, 921600, 0x2ef3c566
+0, 744000, 921600, 0x2ef3c566
+0, 750000, 921600, 0xf296736e
+0, 756000, 921600, 0xf296736e
+0, 762000, 921600, 0xf296736e
+0, 768000, 921600, 0xf296736e
+0, 774000, 921600, 0xf296736e
+0, 780000, 921600, 0xf296736e
+0, 786000, 921600, 0xf296736e
+0, 792000, 921600, 0xf296736e
+0, 798000, 921600, 0xf296736e
+0, 804000, 921600, 0xf296736e
+0, 810000, 921600, 0x1a488311
+0, 816000, 921600, 0x1a488311
+0, 822000, 921600, 0x1a488311
+0, 828000, 921600, 0x9e28011b
+0, 834000, 921600, 0x9e28011b
+0, 840000, 921600, 0x84d1ea80
+0, 846000, 921600, 0x84d1ea80
+0, 852000, 921600, 0x84d1ea80
+0, 858000, 921600, 0x9ed41052
+0, 864000, 921600, 0x9ed41052
+0, 870000, 921600, 0xd4db7206
+0, 876000, 921600, 0xd4db7206
+0, 882000, 921600, 0xd4db7206
+0, 888000, 921600, 0x55f695a9
+0, 894000, 921600, 0x55f695a9
+0, 900000, 921600, 0x9d8c667f
+0, 906000, 921600, 0x9d8c667f
+0, 912000, 921600, 0x9d8c667f
+0, 918000, 921600, 0x9b6037ec
+0, 924000, 921600, 0x9b6037ec
+0, 930000, 921600, 0x57c5e835
+0, 936000, 921600, 0x57c5e835
+0, 942000, 921600, 0x57c5e835
+0, 948000, 921600, 0x476dad89
+0, 954000, 921600, 0x476dad89
+0, 960000, 921600, 0xcfd6ad2b
+0, 966000, 921600, 0xcfd6ad2b
+0, 972000, 921600, 0xcfd6ad2b
+0, 978000, 921600, 0x3b372379
+0, 984000, 921600, 0x3b372379
+0, 990000, 921600, 0x36f245f5
+0, 996000, 921600, 0x36f245f5
diff --git a/tests/ref/fate/quickdraw b/tests/ref/fate/quickdraw
new file mode 100644
index 0000000000..5d6303b70d
--- /dev/null
+++ b/tests/ref/fate/quickdraw
@@ -0,0 +1,2 @@
+0, 0, 921600, 0xc0e68764
+0, 6000, 921600, 0x01a16629
diff --git a/tests/ref/fate/real-14_4 b/tests/ref/fate/real-14_4
new file mode 100644
index 0000000000..4710566d1a
--- /dev/null
+++ b/tests/ref/fate/real-14_4
@@ -0,0 +1 @@
+2da17ae831ea415592c7e6828e3fb69a
diff --git a/tests/ref/fate/real-rv40 b/tests/ref/fate/real-rv40
new file mode 100644
index 0000000000..2a445d0ccb
--- /dev/null
+++ b/tests/ref/fate/real-rv40
@@ -0,0 +1,121 @@
+0, 0, 276480, 0x5f7a0d4f
+0, 7500, 276480, 0x5f7a0d4f
+0, 15000, 276480, 0x5f7a0d4f
+0, 22500, 276480, 0x5f7a0d4f
+0, 30000, 276480, 0x5f7a0d4f
+0, 37500, 276480, 0x5f7a0d4f
+0, 45000, 276480, 0x5f7a0d4f
+0, 52500, 276480, 0x5f7a0d4f
+0, 60000, 276480, 0x5f7a0d4f
+0, 67500, 276480, 0x5f7a0d4f
+0, 75000, 276480, 0x5f7a0d4f
+0, 82500, 276480, 0x5f7a0d4f
+0, 90000, 276480, 0x5f7a0d4f
+0, 97500, 276480, 0x5f7a0d4f
+0, 105000, 276480, 0x5f7a0d4f
+0, 112500, 276480, 0x5f7a0d4f
+0, 120000, 276480, 0x5f7a0d4f
+0, 127500, 276480, 0x5f7a0d4f
+0, 135000, 276480, 0x2d722f8a
+0, 142500, 276480, 0xebbb3c8f
+0, 150000, 276480, 0x8574c868
+0, 157500, 276480, 0x4ec1e418
+0, 165000, 276480, 0x95f22651
+0, 172500, 276480, 0x071d897e
+0, 180000, 276480, 0x9f7623f9
+0, 187500, 276480, 0x86d4dedf
+0, 195000, 276480, 0xc0a0be22
+0, 202500, 276480, 0xc5902aec
+0, 210000, 276480, 0xe000f066
+0, 217500, 276480, 0x0b2a48d5
+0, 225000, 276480, 0xa1565256
+0, 232500, 276480, 0x8de3ceb3
+0, 240000, 276480, 0x654b564a
+0, 247500, 276480, 0xc9c57884
+0, 255000, 276480, 0x89cdcdd4
+0, 262500, 276480, 0x3594fe61
+0, 270000, 276480, 0x9d082a81
+0, 277500, 276480, 0x4e6cd0c3
+0, 285000, 276480, 0xc129765f
+0, 292500, 276480, 0x92a04c99
+0, 300000, 276480, 0x5ca62953
+0, 307500, 276480, 0xb7e478aa
+0, 315000, 276480, 0x932735d5
+0, 322500, 276480, 0xaaa2d7aa
+0, 330000, 276480, 0xd1329996
+0, 337500, 276480, 0x6de1e34b
+0, 345000, 276480, 0x8c963c9b
+0, 352500, 276480, 0xce6eff29
+0, 360000, 276480, 0x25412f7e
+0, 367500, 276480, 0x11a5ad85
+0, 375000, 276480, 0x26ea3248
+0, 382500, 276480, 0x86c35fa4
+0, 390000, 276480, 0xa98a2d38
+0, 397500, 276480, 0xed827333
+0, 405000, 276480, 0x5d44a824
+0, 412500, 276480, 0x46d54d04
+0, 420000, 276480, 0x413fd26a
+0, 427500, 276480, 0xf0b3b71b
+0, 435000, 276480, 0x459bc06d
+0, 442500, 276480, 0x4199cd45
+0, 450000, 276480, 0xa8d35683
+0, 457500, 276480, 0x9a3e7de0
+0, 465000, 276480, 0x5a30f666
+0, 472500, 276480, 0x40152668
+0, 480000, 276480, 0x90c4d22c
+0, 487500, 276480, 0x5cbaacc9
+0, 495000, 276480, 0x72b658f1
+0, 502500, 276480, 0x0ba3dcc9
+0, 510000, 276480, 0x259ed5c1
+0, 517500, 276480, 0x7fd73a99
+0, 525000, 276480, 0x488980c5
+0, 532500, 276480, 0x1d4c96a5
+0, 540000, 276480, 0x41ced7f2
+0, 547500, 276480, 0xd62d1837
+0, 555000, 276480, 0xf5fd9d20
+0, 562500, 276480, 0x2af91fda
+0, 570000, 276480, 0x38ce229d
+0, 577500, 276480, 0xf3a712c0
+0, 585000, 276480, 0x57b111d2
+0, 592500, 276480, 0x8556b792
+0, 600000, 276480, 0xb32d0896
+0, 607500, 276480, 0x923b9937
+0, 615000, 276480, 0x0da1e7e3
+0, 622500, 276480, 0x7f172382
+0, 630000, 276480, 0x93622b88
+0, 637500, 276480, 0x2599d540
+0, 645000, 276480, 0xed20c105
+0, 652500, 276480, 0x62ce256e
+0, 660000, 276480, 0x286a04bb
+0, 667500, 276480, 0x423f7e7c
+0, 675000, 276480, 0x21fc252a
+0, 682500, 276480, 0xf8a8e8ee
+0, 690000, 276480, 0x770d4a8d
+0, 697500, 276480, 0xaa12b6fd
+0, 705000, 276480, 0xdc7221a8
+0, 712500, 276480, 0x487eeb30
+0, 720000, 276480, 0x1e74f2db
+0, 727500, 276480, 0x40ae2bc3
+0, 735000, 276480, 0x9ca9b930
+0, 742500, 276480, 0x9fb19b0f
+0, 750000, 276480, 0x7bdf836c
+0, 757500, 276480, 0x1e607ba7
+0, 765000, 276480, 0xbd96578b
+0, 772500, 276480, 0x2124bf07
+0, 780000, 276480, 0x4895e27a
+0, 787500, 276480, 0x694d76e3
+0, 795000, 276480, 0xe70df513
+0, 802500, 276480, 0xcacafe6b
+0, 810000, 276480, 0x64087748
+0, 817500, 276480, 0x571fda23
+0, 825000, 276480, 0x8c86cbe9
+0, 832500, 276480, 0xc8ea4671
+0, 840000, 276480, 0xbfb74300
+0, 847500, 276480, 0xbe1e3770
+0, 855000, 276480, 0x757a0232
+0, 862500, 276480, 0xa5f50c84
+0, 870000, 276480, 0x6d95f808
+0, 877500, 276480, 0xf002c5ca
+0, 885000, 276480, 0x1a2abb26
+0, 892500, 276480, 0x6cf69bf2
+0, 900000, 276480, 0x8f316c66
diff --git a/tests/ref/fate/redcode-demux b/tests/ref/fate/redcode-demux
new file mode 100644
index 0000000000..2a4db65ce2
--- /dev/null
+++ b/tests/ref/fate/redcode-demux
@@ -0,0 +1,5 @@
+0, 0, 1626280, 0x5768c7d6
+1, 0, 14816, 0xd185e8c7
+0, 3754, 1626092, 0x070bd882
+1, 6803, 32736, 0x791b737a
+0, 7508, 893932, 0x8c7cd0a6
diff --git a/tests/ref/fate/rl2 b/tests/ref/fate/rl2
new file mode 100644
index 0000000000..7a2146d63e
--- /dev/null
+++ b/tests/ref/fate/rl2
@@ -0,0 +1,108 @@
+0, 0, 192000, 0x7112a667
+0, 9559, 192000, 0x6936abf3
+0, 19118, 192000, 0xb1f08981
+0, 28678, 192000, 0x4ce7fece
+0, 38237, 192000, 0xf04decde
+0, 47796, 192000, 0x47fef74b
+0, 57355, 192000, 0x99b42ac2
+0, 66914, 192000, 0x3c4c419d
+0, 76473, 192000, 0x66bf5588
+0, 86033, 192000, 0xe1de4725
+0, 95592, 192000, 0x348b2af9
+0, 105151, 192000, 0x1ce73e83
+0, 114710, 192000, 0xcdaa6e02
+0, 124269, 192000, 0x370dc2ce
+0, 133829, 192000, 0x1e1e40fe
+0, 143388, 192000, 0x491470a4
+0, 152947, 192000, 0x88c43e9a
+0, 162506, 192000, 0x036f3f44
+0, 172065, 192000, 0xc8be7e25
+0, 181624, 192000, 0xbedb397d
+0, 191184, 192000, 0x97c410f4
+0, 200743, 192000, 0xc2c8225d
+0, 210302, 192000, 0xe396bccb
+0, 219861, 192000, 0x7e89c24c
+0, 229420, 192000, 0xb044954c
+0, 238980, 192000, 0x335890dd
+0, 248539, 192000, 0x58a457c0
+0, 258098, 192000, 0xeb0f4798
+0, 267657, 192000, 0x0bfc39a1
+0, 277216, 192000, 0x06a6905a
+0, 286776, 192000, 0x5300c99b
+0, 296335, 192000, 0x38f3f845
+0, 305894, 192000, 0x6afa3543
+0, 315453, 192000, 0x5106a8e0
+0, 325012, 192000, 0xc76f0dab
+0, 334571, 192000, 0x8efa6939
+0, 344131, 192000, 0x64ea23d7
+0, 353690, 192000, 0x421a2817
+0, 363249, 192000, 0xc854fa18
+0, 372808, 192000, 0x4a10d59c
+0, 382367, 192000, 0x72637829
+0, 391927, 192000, 0xdbbe2796
+0, 401486, 192000, 0xff742e6b
+0, 411045, 192000, 0xf94b9346
+0, 420604, 192000, 0xc90ea53c
+0, 430163, 192000, 0x177483bb
+0, 439722, 192000, 0x3510369c
+0, 449282, 192000, 0x501034bf
+0, 458841, 192000, 0x315c744b
+0, 468400, 192000, 0xdb5048ae
+0, 477959, 192000, 0x09a86221
+0, 487518, 192000, 0xb9c9568a
+0, 497078, 192000, 0x5eee665b
+0, 506637, 192000, 0xdef85517
+0, 516196, 192000, 0x7896b5ad
+0, 525755, 192000, 0x19fbad39
+0, 535314, 192000, 0x63358748
+0, 544873, 192000, 0xca0196a3
+0, 554433, 192000, 0x0b321da3
+0, 563992, 192000, 0xa07af07e
+0, 573551, 192000, 0x21f9310c
+0, 583110, 192000, 0x62d59874
+0, 592669, 192000, 0x021227b4
+0, 602229, 192000, 0x01dac0c2
+0, 611788, 192000, 0xf3c33a74
+0, 621347, 192000, 0xeebe83b7
+0, 630906, 192000, 0x9ec77f97
+0, 640465, 192000, 0xc91c2e37
+0, 650024, 192000, 0x7b58751d
+0, 659584, 192000, 0xb178dfbb
+0, 669143, 192000, 0x2a63b5be
+0, 678702, 192000, 0x44a407ac
+0, 688261, 192000, 0x9a8e17dd
+0, 697820, 192000, 0x5546f4c8
+0, 707380, 192000, 0xeda94586
+0, 716939, 192000, 0x941dfa6b
+0, 726498, 192000, 0x9772301d
+0, 736057, 192000, 0x8be16b16
+0, 745616, 192000, 0x26dd4496
+0, 755176, 192000, 0x27823797
+0, 764735, 192000, 0xacc914f7
+0, 774294, 192000, 0xcbb72c9b
+0, 783853, 192000, 0x4bd3391c
+0, 793412, 192000, 0x4e6adbfe
+0, 802971, 192000, 0x7a791c75
+0, 812531, 192000, 0xc4f59c94
+0, 822090, 192000, 0xc4f59c94
+0, 831649, 192000, 0x984a4a0b
+0, 841208, 192000, 0x3353f31f
+0, 850767, 192000, 0xa9d4dc5a
+0, 860327, 192000, 0xb33425d0
+0, 869886, 192000, 0x546d768a
+0, 879445, 192000, 0xfefbe5c9
+0, 889004, 192000, 0xbd6be61d
+0, 898563, 192000, 0xf5792731
+0, 908122, 192000, 0xccde0582
+0, 917682, 192000, 0x857d58ee
+0, 927241, 192000, 0xe914ce48
+0, 936800, 192000, 0x1f736298
+0, 946359, 192000, 0xec0b4846
+0, 955918, 192000, 0xe1422624
+0, 965478, 192000, 0x56e2b0e0
+0, 975037, 192000, 0xc4190640
+0, 984596, 192000, 0x7c461977
+0, 994155, 192000, 0x34b1d5e8
+0, 1003714, 192000, 0xbdc70f7a
+0, 1013273, 192000, 0xb466cd8d
+0, 1022833, 192000, 0x0e86a04c
diff --git a/tests/ref/fate/rpza b/tests/ref/fate/rpza
new file mode 100644
index 0000000000..32ea1cfb4e
--- /dev/null
+++ b/tests/ref/fate/rpza
@@ -0,0 +1,30 @@
+0, 0, 230400, 0x4aec80a3
+0, 6000, 230400, 0xb6c41452
+0, 12000, 230400, 0xa6c27f12
+0, 18000, 230400, 0x309bd2d2
+0, 24000, 230400, 0x597a7341
+0, 30000, 230400, 0x597a7341
+0, 36000, 230400, 0xd6d6c569
+0, 42000, 230400, 0x31413d89
+0, 48000, 230400, 0x464e42e9
+0, 54000, 230400, 0x502d7c71
+0, 60000, 230400, 0x502d7c71
+0, 66000, 230400, 0xc96f23d1
+0, 72000, 230400, 0xc96f23d1
+0, 78000, 230400, 0x5bfd2bc7
+0, 84000, 230400, 0x821640a7
+0, 90000, 230400, 0x8f001967
+0, 96000, 230400, 0x406ba109
+0, 102000, 230400, 0x85d99b50
+0, 108000, 230400, 0x2fdb4018
+0, 114000, 230400, 0xfa127259
+0, 120000, 230400, 0xe6427b9b
+0, 126000, 230400, 0xe6427b9b
+0, 132000, 230400, 0x3a279000
+0, 138000, 230400, 0x710755ee
+0, 144000, 230400, 0x76549d35
+0, 150000, 230400, 0xf4d0132c
+0, 156000, 230400, 0xf4d0132c
+0, 162000, 230400, 0x19d7ec14
+0, 168000, 230400, 0x19d7ec14
+0, 174000, 230400, 0x5f24b7e1
diff --git a/tests/ref/fate/sierra-audio b/tests/ref/fate/sierra-audio
new file mode 100644
index 0000000000..16f226e89e
--- /dev/null
+++ b/tests/ref/fate/sierra-audio
@@ -0,0 +1 @@
+a99402e1f1a0f137608898251b3f309b
diff --git a/tests/ref/fate/sierra-vmd b/tests/ref/fate/sierra-vmd
new file mode 100644
index 0000000000..4d9e4cdd71
--- /dev/null
+++ b/tests/ref/fate/sierra-vmd
@@ -0,0 +1,303 @@
+0, 0, 230400, 0x0224ab01
+1, 0, 123480, 0xc1059826
+0, 9000, 230400, 0x449e4d81
+0, 18000, 230400, 0x3e15e07a
+0, 27000, 230400, 0xdabe4172
+0, 36000, 230400, 0x0947b7db
+0, 45000, 230400, 0x934e243b
+0, 54000, 230400, 0x6b5c5b6c
+0, 63000, 230400, 0x4bf7bbb5
+0, 72000, 230400, 0x423eec8e
+0, 81000, 230400, 0x63663b5e
+0, 90000, 230400, 0x9c258a67
+0, 99000, 230400, 0x1c92b6e0
+0, 108000, 230400, 0xdd0a0e28
+0, 117000, 230400, 0x51d64af1
+0, 126000, 230400, 0x5776ac12
+0, 135000, 230400, 0x49070132
+0, 144000, 230400, 0xa59635ab
+0, 153000, 230400, 0xb1f99504
+0, 162000, 230400, 0x61fac725
+0, 171000, 230400, 0xc32c28d5
+0, 180000, 230400, 0x2b7a91d6
+0, 189000, 230400, 0x917be717
+0, 198000, 230400, 0xd3c5a2ff
+0, 207000, 230400, 0x0678a707
+0, 216000, 230400, 0x122504e6
+0, 225000, 230400, 0x76aebdae
+0, 234000, 230400, 0x81357545
+0, 243000, 230400, 0x38baeebd
+1, 252000, 4410, 0x261a09c0
+0, 252000, 230400, 0x1c5c44d4
+1, 261000, 4410, 0x68e9489e
+0, 261000, 230400, 0x60e189cc
+1, 270000, 4410, 0xb830827a
+0, 270000, 230400, 0xb1f4381c
+1, 279000, 4410, 0xb053b70c
+0, 279000, 230400, 0xb5048fed
+1, 288000, 4410, 0xd8845d5d
+0, 288000, 230400, 0xc947c30e
+1, 297000, 4410, 0xd741f940
+0, 297000, 230400, 0xe8e31c07
+1, 306000, 4410, 0x4860193c
+0, 306000, 230400, 0x6d49dd02
+1, 315000, 4410, 0x2e70df5f
+0, 315000, 230400, 0x293e15d3
+1, 324000, 4410, 0x4b3e0e54
+0, 324000, 230400, 0x354d792e
+1, 333000, 4410, 0x4afbf661
+0, 333000, 230400, 0x35468780
+1, 342000, 4410, 0x485c3903
+0, 342000, 230400, 0x365d3991
+1, 351000, 4410, 0xc0a1a00c
+0, 351000, 230400, 0xc9debef2
+1, 360000, 4410, 0x0ce2d38e
+0, 360000, 230400, 0x4c4634c2
+1, 369000, 4410, 0x5b52dfa3
+0, 369000, 230400, 0x347c2dca
+1, 378000, 4410, 0x0d6c02ba
+0, 378000, 230400, 0x1efa0aaa
+1, 387000, 4410, 0x55f31fe1
+0, 387000, 230400, 0xa79a0b5a
+1, 396000, 4410, 0x7350b1b2
+0, 396000, 230400, 0xfdb2dcdb
+1, 405000, 4410, 0x2b918eea
+0, 405000, 230400, 0x42dbea33
+1, 414000, 4410, 0x6df6cf92
+0, 414000, 230400, 0x2a207e43
+1, 423000, 4410, 0x2ddd1782
+0, 423000, 230400, 0x86573783
+1, 432000, 4410, 0x12265e8e
+0, 432000, 230400, 0xc3968473
+1, 441000, 4410, 0x00c62139
+0, 441000, 230400, 0x8f62a7b4
+1, 450000, 4410, 0xf2579b6c
+0, 450000, 230400, 0x5a2e3073
+1, 459000, 4410, 0x3bc24a12
+0, 459000, 230400, 0xd24f5e2c
+1, 468000, 4410, 0x0ce25212
+0, 468000, 230400, 0x1df3c67d
+1, 477000, 4410, 0xad70de9a
+0, 477000, 230400, 0xe4fd884d
+1, 486000, 4410, 0x232705e4
+0, 486000, 230400, 0x9a228555
+1, 495000, 4410, 0x5ceba444
+0, 495000, 230400, 0x9eba8ed5
+1, 504000, 4410, 0x17a3660b
+0, 504000, 230400, 0x3d808a3d
+1, 513000, 4410, 0x291bb07e
+0, 513000, 230400, 0xf57e866d
+1, 522000, 4410, 0xc13ccf88
+0, 522000, 230400, 0x85f594f5
+1, 531000, 4410, 0xfb0cd542
+0, 531000, 230400, 0xb09f99dd
+1, 540000, 4410, 0xb6438478
+0, 540000, 230400, 0x2b368475
+1, 549000, 4410, 0x263e9df2
+0, 549000, 230400, 0xa2417afd
+1, 558000, 4410, 0x81621e20
+0, 558000, 230400, 0x590b709d
+1, 567000, 4410, 0xe9a51d77
+0, 567000, 230400, 0x5d617705
+1, 576000, 4410, 0x69a3c758
+0, 576000, 230400, 0xabf981ad
+1, 585000, 4410, 0x725af958
+0, 585000, 230400, 0x5a8590cd
+1, 594000, 4410, 0x09db995d
+0, 594000, 230400, 0x1bff853d
+1, 603000, 4410, 0x42963941
+0, 603000, 230400, 0x71d08055
+1, 612000, 4410, 0x33a29bc4
+0, 612000, 230400, 0x2ebd817d
+1, 621000, 4410, 0x02ee2bd1
+0, 621000, 230400, 0x6e838255
+1, 630000, 4410, 0xda968535
+0, 630000, 230400, 0x043984cd
+1, 639000, 4410, 0x5414a080
+0, 639000, 230400, 0x7ff18495
+1, 648000, 4410, 0x021ac433
+0, 648000, 230400, 0xa43b8385
+1, 657000, 4410, 0x50195048
+0, 657000, 230400, 0x72b5825d
+1, 666000, 4410, 0xc40921c7
+0, 666000, 230400, 0x3a178085
+1, 675000, 4410, 0xdbb622e0
+0, 675000, 230400, 0x67748245
+1, 684000, 4410, 0xc8d07342
+0, 684000, 230400, 0xeddf81d5
+1, 693000, 4410, 0x6ed9b17a
+0, 693000, 230400, 0x8b088665
+1, 702000, 4410, 0x39ac6a03
+0, 702000, 230400, 0x6c408e15
+1, 711000, 4410, 0x119ed51c
+0, 711000, 230400, 0x81f196dd
+1, 720000, 4410, 0xc9a20539
+0, 720000, 230400, 0xab9f953d
+1, 729000, 4410, 0x6db5fdbd
+0, 729000, 230400, 0xa5f69795
+1, 738000, 4410, 0x64c6b468
+0, 738000, 230400, 0xa772950d
+1, 747000, 4410, 0x1286686e
+0, 747000, 230400, 0x6a5596d5
+1, 756000, 4410, 0x76632813
+0, 756000, 230400, 0x1355958d
+1, 765000, 4410, 0x9923669b
+0, 765000, 230400, 0x4134981d
+1, 774000, 4410, 0x1cf31b5c
+0, 774000, 230400, 0x8b929515
+1, 783000, 4410, 0xa9f14389
+0, 783000, 230400, 0x482f95c5
+1, 792000, 4410, 0x9438c5cc
+0, 792000, 230400, 0x7a9795d5
+1, 801000, 4410, 0x48dd0a72
+0, 801000, 230400, 0x21c29abd
+1, 810000, 4410, 0xb0fe24dd
+0, 810000, 230400, 0x9ae6a475
+1, 819000, 4410, 0xdb9d03ac
+0, 819000, 230400, 0x3734aee5
+1, 828000, 4410, 0x487d7ac3
+0, 828000, 230400, 0xa0a1b365
+1, 837000, 4410, 0x2b61d4d5
+0, 837000, 230400, 0x2dcab1c5
+1, 846000, 4410, 0xab934d9c
+0, 846000, 230400, 0x9c8b6c44
+1, 855000, 4410, 0xd2ee6f94
+0, 855000, 230400, 0x5da75feb
+1, 864000, 4410, 0x012c3002
+0, 864000, 230400, 0x4d02f8e3
+1, 873000, 4410, 0xfccbd3cc
+0, 873000, 230400, 0x66824f3a
+1, 882000, 4410, 0xe53230d8
+0, 882000, 230400, 0x0c9257e2
+1, 891000, 4410, 0x2f6a6102
+0, 891000, 230400, 0xb2927092
+1, 900000, 4410, 0x77bb876a
+0, 900000, 230400, 0xb5dc6e9a
+1, 909000, 4410, 0xbcb76718
+0, 909000, 230400, 0x6e567bc6
+1, 918000, 4410, 0x51c00790
+0, 918000, 230400, 0xbf9e0f7a
+1, 927000, 4410, 0x51b8fc5a
+0, 927000, 230400, 0xb16f684a
+1, 936000, 4410, 0x20fe9b42
+0, 936000, 230400, 0xf9e55e81
+1, 945000, 4410, 0x363c5566
+0, 945000, 230400, 0xd8d0bcba
+1, 954000, 4410, 0x3424a84c
+0, 954000, 230400, 0x44720ac0
+1, 963000, 4410, 0x7c3053c0
+0, 963000, 230400, 0x7d4c2058
+1, 972000, 4410, 0x368f2f30
+0, 972000, 230400, 0xb0973eb9
+1, 981000, 4410, 0x0f1e6fd2
+0, 981000, 230400, 0x405a13ce
+1, 990000, 4410, 0x3a1fe07e
+0, 990000, 230400, 0x6422f00a
+1, 999000, 4410, 0x74afd86a
+0, 999000, 230400, 0x924b6c1e
+1, 1008000, 4410, 0xfdf911dd
+0, 1008000, 230400, 0xcf7809c0
+1, 1017000, 4410, 0x1206a561
+0, 1017000, 230400, 0x883a3863
+1, 1026000, 4410, 0x5f0f33d5
+0, 1026000, 230400, 0x6adc9e03
+1, 1035000, 4410, 0xca3d88e0
+0, 1035000, 230400, 0x4f5ab7a8
+1, 1044000, 4410, 0xdf8f19ea
+0, 1044000, 230400, 0xdc0aab94
+1, 1053000, 4410, 0xe3275b9e
+1, 1062000, 4410, 0xee1945c5
+1, 1071000, 4410, 0x0afbd006
+1, 1080000, 4410, 0x90ff8f14
+1, 1089000, 4410, 0xfc0c887a
+1, 1098000, 4410, 0xae9bc232
+1, 1107000, 4410, 0x5f688eb8
+1, 1116000, 4410, 0x9a307469
+1, 1125000, 4410, 0x27f1e324
+1, 1134000, 4410, 0x0c0d4ca2
+1, 1143000, 4410, 0xd7e8ce74
+1, 1152000, 4410, 0x16a4bfd6
+1, 1161000, 4410, 0xbfb02f6d
+1, 1170000, 4410, 0xf4b81a79
+1, 1179000, 4410, 0x05d97288
+1, 1188000, 4410, 0x3a7db4be
+1, 1197000, 4410, 0xc6bea83e
+1, 1206000, 4410, 0x436f62ed
+1, 1215000, 4410, 0x6fabea0c
+1, 1224000, 4410, 0x954878aa
+1, 1233000, 4410, 0x4d10f579
+1, 1242000, 4410, 0xac65932a
+1, 1251000, 4410, 0x6889f957
+1, 1260000, 4410, 0x65cf5830
+1, 1269000, 4410, 0x87a7af71
+1, 1278000, 4410, 0x82378c13
+1, 1287000, 4410, 0x88ab6bd5
+1, 1296000, 4410, 0xf90a3342
+1, 1305000, 4410, 0xd790a1bc
+1, 1314000, 4410, 0x89919d7c
+1, 1323000, 4410, 0x7ffb22bf
+1, 1332000, 4410, 0xfefbcce3
+1, 1341000, 4410, 0x07714e80
+1, 1350000, 4410, 0x73078f53
+1, 1359000, 4410, 0x35c23078
+1, 1368000, 4410, 0x452538bb
+1, 1377000, 4410, 0x61493f33
+1, 1386000, 4410, 0x2137c390
+1, 1395000, 4410, 0x78c9393f
+1, 1404000, 4410, 0x7aeaf8e1
+1, 1413000, 4410, 0x4bb8da1c
+1, 1422000, 4410, 0x5995dfc2
+1, 1431000, 4410, 0xccce8872
+1, 1440000, 4410, 0xca2753a4
+1, 1449000, 4410, 0x4296ff6d
+1, 1458000, 4410, 0xe582d191
+1, 1467000, 4410, 0xc40268da
+1, 1476000, 4410, 0xda1d475e
+1, 1485000, 4410, 0x5e91e4e0
+1, 1494000, 4410, 0xfeb44475
+1, 1503000, 4410, 0x17ff8e38
+1, 1512000, 4410, 0x3bd58bcf
+1, 1521000, 4410, 0x9476e23c
+1, 1530000, 4410, 0x440651ab
+1, 1539000, 4410, 0xb08cdc74
+1, 1548000, 4410, 0x6fc3031f
+1, 1557000, 4410, 0x197ab39a
+1, 1566000, 4410, 0xf92f0e3d
+1, 1575000, 4410, 0xd5f6b678
+1, 1584000, 4410, 0x8af127a6
+1, 1593000, 4410, 0xe22f585e
+1, 1602000, 4410, 0x67515610
+1, 1611000, 4410, 0x21569d7a
+1, 1620000, 4410, 0x114597d8
+1, 1629000, 4410, 0xba213fb6
+1, 1638000, 4410, 0x1aca9fee
+1, 1647000, 4410, 0x48cdd264
+1, 1656000, 4410, 0x533619ec
+1, 1665000, 4410, 0x21466244
+1, 1674000, 4410, 0x26e00e88
+1, 1683000, 4410, 0x8e51d07c
+1, 1692000, 4410, 0xa6c4048a
+1, 1701000, 4410, 0x98ce10e4
+1, 1710000, 4410, 0x379bc8c2
+1, 1719000, 4410, 0x404b09c6
+1, 1728000, 4410, 0xfc89da8a
+1, 1737000, 4410, 0xbdbe6914
+1, 1746000, 4410, 0x2cb09f08
+1, 1755000, 4410, 0x835bf2d9
+1, 1764000, 4410, 0xa4611790
+1, 1773000, 4410, 0x67740896
+1, 1782000, 4410, 0x489f6bd0
+1, 1791000, 4410, 0x072bae9c
+1, 1800000, 4410, 0xadce5a89
+1, 1809000, 4410, 0x209f2c2c
+1, 1818000, 4410, 0xf5706665
+1, 1827000, 4410, 0x631841cb
+1, 1836000, 4410, 0xa1a2c65f
+1, 1845000, 4410, 0x8818b96b
+1, 1854000, 4410, 0x63158025
+1, 1863000, 4410, 0xf6ae79f5
+1, 1872000, 4410, 0xb3dcd214
+1, 1881000, 4410, 0x7a745449
+1, 1890000, 4410, 0x5d2b15f4
+1, 1899000, 4410, 0x48764b7c
+1, 1908000, 4410, 0x1294e119
diff --git a/tests/ref/fate/siff b/tests/ref/fate/siff
new file mode 100644
index 0000000000..2f67254b5d
--- /dev/null
+++ b/tests/ref/fate/siff
@@ -0,0 +1,39 @@
+1, 0, 44100, 0xd0a49e09
+0, 0, 230400, 0x3bd1d731
+0, 7500, 230400, 0x9d0774c3
+0, 15000, 230400, 0xa0faafe2
+0, 22500, 230400, 0x38325309
+0, 30000, 230400, 0xe90a1b1e
+0, 37500, 230400, 0x8efbc904
+0, 45000, 230400, 0x0a8476f3
+0, 52500, 230400, 0x5d94587d
+0, 60000, 230400, 0x280b905d
+0, 67500, 230400, 0x07178dd9
+0, 75000, 230400, 0xf52b8db4
+0, 82500, 230400, 0x2b70c1dc
+1, 90000, 44100, 0xf151af4d
+0, 90000, 230400, 0x8157a6e9
+0, 97500, 230400, 0xd4a3c357
+0, 105000, 230400, 0x703861bb
+0, 112500, 230400, 0xa13cf75e
+0, 120000, 230400, 0x140e487f
+0, 127500, 230400, 0x05cca333
+0, 135000, 230400, 0x0506ee2b
+0, 142500, 230400, 0xe3e13466
+0, 150000, 230400, 0x8a24118c
+0, 157500, 230400, 0x22050962
+0, 165000, 230400, 0x0f5c8a0d
+0, 172500, 230400, 0x3475df44
+1, 180000, 44100, 0xecd3cd08
+0, 180000, 230400, 0x65354e06
+0, 187500, 230400, 0xb9a01978
+0, 195000, 230400, 0x15207ee1
+0, 202500, 230400, 0x3b214f0b
+0, 210000, 230400, 0xf9461bbb
+0, 217500, 230400, 0x1469290f
+0, 225000, 230400, 0x8ddfd514
+0, 232500, 230400, 0x1bffa6a1
+0, 240000, 230400, 0x5a04d712
+0, 247500, 230400, 0xaa8de439
+0, 255000, 230400, 0x610c5439
+0, 262500, 230400, 0xd02d3e7c
diff --git a/tests/ref/fate/smacker b/tests/ref/fate/smacker
new file mode 100644
index 0000000000..85c4a9817c
--- /dev/null
+++ b/tests/ref/fate/smacker
@@ -0,0 +1,186 @@
+0, 0, 192000, 0x8926d7fc
+1, 0, 47240, 0xad778a78
+0, 6390, 192000, 0x2506d384
+0, 12780, 192000, 0x9a8dc93a
+0, 19170, 192000, 0x4badb7f2
+0, 25560, 192000, 0xc1fc9631
+0, 31950, 192000, 0xfc906592
+0, 38340, 192000, 0xeddd28e2
+0, 44730, 192000, 0xeee0dcf5
+0, 51120, 192000, 0x76798c91
+0, 57510, 192000, 0x8a034c1b
+0, 63900, 192000, 0x4df3127c
+0, 70290, 192000, 0x2eefd36f
+0, 76680, 192000, 0x58a2a1d6
+0, 83070, 192000, 0x1a3d7971
+0, 89460, 192000, 0xa1a65bd5
+0, 95850, 192000, 0x344957b9
+1, 96408, 3128, 0x4c1564ae
+0, 102240, 192000, 0xe23b5f4e
+1, 102792, 3128, 0x34553309
+0, 108630, 192000, 0xb5c2710b
+1, 109176, 3136, 0xb474d246
+0, 115020, 192000, 0x7a25938f
+1, 115576, 3128, 0x87b868ea
+0, 121410, 192000, 0x0a84e4c9
+1, 121959, 3136, 0xf1516dc3
+0, 127800, 192000, 0x94209b0d
+1, 128359, 3128, 0x867563cb
+0, 134190, 192000, 0xf940e51f
+1, 134743, 3128, 0x5200728c
+0, 140580, 192000, 0xb9fdec42
+1, 141127, 3136, 0xeda118a0
+0, 146970, 192000, 0x7b04a376
+1, 147527, 3128, 0x03e2c1d6
+0, 153360, 192000, 0x5fe0026b
+1, 153910, 3136, 0xc3e862b6
+0, 159750, 192000, 0x775aca39
+1, 160310, 3128, 0x937a13be
+0, 166140, 192000, 0xae14fb32
+1, 166694, 3128, 0x7b1b9577
+0, 172530, 192000, 0x661106e5
+1, 173078, 3136, 0x042c7113
+0, 178920, 192000, 0xe8658dbf
+1, 179478, 3128, 0xac48f451
+0, 185310, 192000, 0x5359f0f9
+1, 185861, 3128, 0x018fbbe9
+0, 191700, 192000, 0xc1ec80f4
+1, 192245, 3136, 0xc62aa7ce
+0, 198090, 192000, 0xca53806b
+1, 198645, 3128, 0x106e3924
+0, 204480, 192000, 0xf0766b2e
+1, 205029, 3136, 0xfeb82ecc
+0, 210870, 192000, 0x39962da8
+1, 211429, 3128, 0x7e7c005b
+0, 217260, 192000, 0x4171c37f
+1, 217812, 3128, 0x949d3560
+0, 223650, 192000, 0x3abf3b46
+1, 224196, 3136, 0x02bd4aff
+0, 230040, 192000, 0xecc68313
+1, 230596, 3128, 0x4aaf4715
+0, 236430, 192000, 0xea339baf
+1, 236980, 3136, 0x2958825f
+0, 242820, 192000, 0x616b8f16
+1, 243380, 3128, 0x99a5914d
+0, 249210, 192000, 0xf77a8581
+1, 249763, 3128, 0xe67277a4
+0, 255600, 192000, 0xb315678b
+1, 256147, 3136, 0x11296973
+0, 261990, 192000, 0x0a4a5218
+1, 262547, 3128, 0x5cc362f7
+0, 268380, 192000, 0x98802be4
+1, 268931, 3128, 0x0c5e6586
+0, 274770, 192000, 0xa2f0fd94
+1, 275314, 3136, 0xe940b0f9
+0, 281160, 192000, 0x6671c84f
+1, 281714, 3128, 0x2c9292cc
+0, 287550, 192000, 0x38327e31
+1, 288098, 3136, 0xa807c096
+0, 293940, 192000, 0xb85d3e08
+1, 294498, 3128, 0x9d2254d8
+0, 300330, 192000, 0xdc69eba9
+1, 300882, 3128, 0xe68015b0
+0, 306720, 192000, 0x8955a0b3
+1, 307265, 3136, 0x65d58029
+0, 313110, 192000, 0x714a548b
+1, 313665, 3128, 0xcffcc48c
+0, 319500, 192000, 0xc0471de9
+1, 320049, 3136, 0x8c704944
+0, 325890, 192000, 0x2e16e039
+1, 326449, 3128, 0x1459231d
+0, 332280, 192000, 0x9fa4b033
+1, 332833, 3128, 0x7dde4839
+0, 338670, 192000, 0x4a0f9402
+1, 339216, 3136, 0xbb6890e2
+0, 345060, 192000, 0x1f3e6843
+1, 345616, 3128, 0xcd9a8524
+0, 351450, 192000, 0x31774850
+1, 352000, 3128, 0xa244fc31
+0, 357840, 192000, 0x9d5336a2
+1, 358384, 3136, 0x504e2bd9
+0, 364230, 192000, 0xf7de27a2
+1, 364784, 3128, 0x655858d8
+0, 370620, 192000, 0x98c717ce
+1, 371167, 3136, 0x46027610
+0, 377010, 192000, 0x615b10b8
+1, 377567, 3128, 0x4192d5e3
+0, 383400, 192000, 0xd5bc0e7e
+1, 383951, 3128, 0x21d2e7fe
+0, 389790, 192000, 0xd5bc0e7e
+1, 390335, 3136, 0x7c93e329
+0, 396180, 192000, 0xd5bc0e7e
+1, 396735, 3128, 0xa67718c0
+0, 402570, 192000, 0xd5bc0e7e
+1, 403118, 3136, 0x9bb6e8a3
+0, 408960, 192000, 0xd5bc0e7e
+1, 409518, 3128, 0x0933b7a6
+0, 415350, 192000, 0xd5bc0e7e
+1, 415902, 3128, 0x07f1fb57
+0, 421740, 192000, 0xd5bc0e7e
+1, 422286, 3136, 0x8a050cfd
+0, 428130, 192000, 0xd5bc0e7e
+1, 428686, 3128, 0xdb773c0b
+0, 434520, 192000, 0xd5bc0e7e
+1, 435069, 3136, 0xd1281c53
+0, 440910, 192000, 0xd5bc0e7e
+1, 441469, 3128, 0x9f395324
+0, 447300, 192000, 0xd5bc0e7e
+1, 447853, 3128, 0x5f13edec
+0, 453690, 192000, 0xd5bc0e7e
+1, 454237, 3136, 0x871cbecf
+0, 460080, 192000, 0xd5bc0e7e
+1, 460637, 3128, 0x799eff3e
+0, 466470, 192000, 0xd5bc0e7e
+1, 467020, 3128, 0x3f902762
+0, 472860, 192000, 0xd5bc0e7e
+1, 473404, 3136, 0x29f8bb04
+0, 479250, 192000, 0xd5bc0e7e
+1, 479804, 3128, 0xf3523ee9
+0, 485640, 192000, 0xd5bc0e7e
+1, 486188, 3136, 0x4405c435
+0, 492030, 192000, 0xd5bc0e7e
+1, 492588, 3128, 0x892957cb
+0, 498420, 192000, 0xd5bc0e7e
+1, 498971, 3128, 0xdf483dbd
+0, 504810, 192000, 0xd5bc0e7e
+1, 505355, 3136, 0x5e8ab797
+0, 511200, 192000, 0xd5bc0e7e
+1, 511755, 3128, 0x92e13820
+0, 517590, 192000, 0xd5bc0e7e
+1, 518139, 3136, 0xfde719b6
+0, 523980, 192000, 0xd5bc0e7e
+1, 524539, 3128, 0x442f17ae
+0, 530370, 192000, 0xd5bc0e7e
+1, 530922, 3128, 0x011af61f
+0, 536760, 192000, 0xd5bc0e7e
+1, 537306, 3136, 0x4e3e3a6d
+0, 543150, 192000, 0xd5bc0e7e
+1, 543706, 3128, 0xc11242b9
+0, 549540, 192000, 0xd5bc0e7e
+1, 550090, 3128, 0x01415b59
+0, 555930, 192000, 0xd5bc0e7e
+1, 556473, 3136, 0x302e0e55
+0, 562320, 192000, 0xd5bc0e7e
+1, 562873, 3128, 0x20522d04
+0, 568710, 192000, 0xd5bc0e7e
+1, 569257, 3136, 0x316a697d
+0, 575100, 192000, 0xd5bc0e7e
+1, 575657, 3128, 0x6d75ee27
+0, 581490, 192000, 0xd5bc0e7e
+1, 582041, 3128, 0xcb008ae8
+0, 587880, 192000, 0xd5bc0e7e
+1, 588424, 3136, 0xd2664b51
+0, 594270, 192000, 0xd5bc0e7e
+1, 594824, 3128, 0xdfcab728
+0, 600660, 192000, 0xd5bc0e7e
+1, 601208, 3136, 0x00000000
+0, 607050, 192000, 0xd5bc0e7e
+1, 607608, 3128, 0x00000000
+0, 613440, 192000, 0xd5bc0e7e
+1, 613992, 3128, 0x00000000
+0, 619830, 192000, 0xd5bc0e7e
+1, 620376, 3136, 0x00000000
+0, 626220, 192000, 0xd5bc0e7e
+1, 626776, 3128, 0x00000000
+0, 632610, 192000, 0xd5bc0e7e
+1, 633159, 2856, 0x00000000
diff --git a/tests/ref/fate/smc b/tests/ref/fate/smc
new file mode 100644
index 0000000000..08e3d5eb34
--- /dev/null
+++ b/tests/ref/fate/smc
@@ -0,0 +1,120 @@
+0, 0, 230400, 0xf814fc90
+0, 3000, 230400, 0xe1b13137
+0, 6000, 230400, 0xa7f4d408
+0, 9000, 230400, 0x4b86e1d5
+0, 12000, 230400, 0xc663af5a
+0, 15000, 230400, 0x943b5757
+0, 18000, 230400, 0x0d7ee496
+0, 21000, 230400, 0x78792de4
+0, 24000, 230400, 0xd102fb8d
+0, 27000, 230400, 0xf9006139
+0, 30000, 230400, 0x216bd87d
+0, 33000, 230400, 0x1e4c902c
+0, 36000, 230400, 0x5aaa7742
+0, 39000, 230400, 0x48699d93
+0, 42000, 230400, 0xd1e22a5c
+0, 45000, 230400, 0x18929315
+0, 48000, 230400, 0x680dd4d3
+0, 51000, 230400, 0x4cdbcbcb
+0, 54000, 230400, 0x6f810d98
+0, 57000, 230400, 0xb4f68204
+0, 60000, 230400, 0xbd3bb19e
+0, 63000, 230400, 0xab27b424
+0, 66000, 230400, 0xe5dd675d
+0, 69000, 230400, 0x811e45a1
+0, 72000, 230400, 0x951011f7
+0, 75000, 230400, 0x2f1e2b99
+0, 78000, 230400, 0x6657c0d6
+0, 81000, 230400, 0xfd29177d
+0, 84000, 230400, 0x4b4c01d7
+0, 87000, 230400, 0x9af286aa
+0, 90000, 230400, 0xc4e9b193
+0, 93000, 230400, 0x05dc28ec
+0, 96000, 230400, 0x68352119
+0, 99000, 230400, 0x0b87e79c
+0, 102000, 230400, 0x8358b180
+0, 105000, 230400, 0x8debbc9d
+0, 108000, 230400, 0x961c58ce
+0, 111000, 230400, 0xd8a809c8
+0, 114000, 230400, 0x5351789d
+0, 117000, 230400, 0xa7ca598c
+0, 120000, 230400, 0xc5ce1812
+0, 123000, 230400, 0x74496550
+0, 126000, 230400, 0x326e366e
+0, 129000, 230400, 0x27ae9a92
+0, 132000, 230400, 0xadbc8794
+0, 135000, 230400, 0x7f3587d8
+0, 138000, 230400, 0xf0400ca6
+0, 141000, 230400, 0x59a5138e
+0, 144000, 230400, 0x456d62a5
+0, 147000, 230400, 0xf1a5e5f1
+0, 150000, 230400, 0x75c712e4
+0, 153000, 230400, 0xd160780a
+0, 156000, 230400, 0xc6c23cf0
+0, 159000, 230400, 0x0339a2ac
+0, 162000, 230400, 0x0e27a2e2
+0, 165000, 230400, 0x84976300
+0, 168000, 230400, 0xb368f3c4
+0, 171000, 230400, 0xa5231fb8
+0, 174000, 230400, 0x17c036d4
+0, 177000, 230400, 0xfc81a2c0
+0, 180000, 230400, 0x99faa403
+0, 183000, 230400, 0xff59efd3
+0, 186000, 230400, 0xcece1d23
+0, 189000, 230400, 0x56c785d9
+0, 192000, 230400, 0xe5a9f222
+0, 195000, 230400, 0xb80946f8
+0, 198000, 230400, 0xf6b642c6
+0, 201000, 230400, 0x69573aed
+0, 204000, 230400, 0xfb69a1fd
+0, 207000, 230400, 0x100b47f4
+0, 210000, 230400, 0x6edf9543
+0, 213000, 230400, 0x11fdf43c
+0, 216000, 230400, 0xd143bf2a
+0, 219000, 230400, 0x7ca747c4
+0, 222000, 230400, 0xd984bd73
+0, 225000, 230400, 0xc5477e8d
+0, 228000, 230400, 0xf7d58300
+0, 231000, 230400, 0x7a1b9463
+0, 234000, 230400, 0x47a29342
+0, 237000, 230400, 0xdf437f9d
+0, 240000, 230400, 0xf836ef5d
+0, 243000, 230400, 0xc98937af
+0, 246000, 230400, 0x9258695b
+0, 249000, 230400, 0xd4fe179c
+0, 252000, 230400, 0x35d524d3
+0, 255000, 230400, 0xd9ce5484
+0, 258000, 230400, 0xdef776ed
+0, 261000, 230400, 0x154c4057
+0, 264000, 230400, 0xf5c764f1
+0, 267000, 230400, 0x41979b13
+0, 270000, 230400, 0xae4e83db
+0, 273000, 230400, 0x09fc0f83
+0, 276000, 230400, 0x60267fdf
+0, 279000, 230400, 0xeaafc525
+0, 282000, 230400, 0x80cc35e5
+0, 285000, 230400, 0xd82c6164
+0, 288000, 230400, 0xd68b8111
+0, 291000, 230400, 0x96f874a3
+0, 294000, 230400, 0x7fc861c4
+0, 297000, 230400, 0xb911f310
+0, 300000, 230400, 0x35bbf5aa
+0, 303000, 230400, 0xa922b683
+0, 306000, 230400, 0xbf6ae353
+0, 309000, 230400, 0x6bd3984c
+0, 312000, 230400, 0xe51768c0
+0, 315000, 230400, 0xee691624
+0, 318000, 230400, 0xd546fed7
+0, 321000, 230400, 0x98d375e6
+0, 324000, 230400, 0x3b9ca990
+0, 327000, 230400, 0x27128ad1
+0, 330000, 230400, 0x2788e38c
+0, 333000, 230400, 0xb0cf3381
+0, 336000, 230400, 0x4fc86d39
+0, 339000, 230400, 0xf5632fff
+0, 342000, 230400, 0x7fa1e6c2
+0, 345000, 230400, 0xffeef044
+0, 348000, 230400, 0x932af385
+0, 351000, 230400, 0x76738428
+0, 354000, 230400, 0xf6771ba2
+0, 357000, 230400, 0x17e2ff27
diff --git a/tests/ref/fate/sp5x b/tests/ref/fate/sp5x
new file mode 100644
index 0000000000..ed06a771ff
--- /dev/null
+++ b/tests/ref/fate/sp5x
@@ -0,0 +1,19 @@
+0, 0, 115200, 0x8ebcb7f8
+1, 0, 2048, 0x366ee71c
+0, 9234, 115200, 0x1fa8e673
+1, 11520, 2048, 0xc62f0414
+0, 18468, 115200, 0xec07fb6a
+1, 23040, 2048, 0x754e0f19
+0, 27702, 115200, 0x6773a8c3
+1, 34560, 2048, 0x4a44152a
+0, 36936, 115200, 0x0d279643
+1, 46080, 2048, 0x4fd3ff01
+0, 46170, 115200, 0xb33796e4
+0, 55404, 115200, 0xfe11fc79
+1, 57600, 2048, 0x11c3fa1b
+0, 64638, 115200, 0x4ac8e31b
+1, 69120, 2048, 0x9945fa06
+0, 73872, 115200, 0x15317942
+1, 80640, 2048, 0x12e5071a
+0, 83106, 115200, 0x07803f0e
+1, 92160, 44, 0x7ad110e8
diff --git a/tests/ref/fate/sunraster-1bit-raw b/tests/ref/fate/sunraster-1bit-raw
new file mode 100644
index 0000000000..40babe74b2
--- /dev/null
+++ b/tests/ref/fate/sunraster-1bit-raw
@@ -0,0 +1 @@
+0, 0, 32768, 0x6d16e246
diff --git a/tests/ref/fate/sunraster-1bit-rle b/tests/ref/fate/sunraster-1bit-rle
new file mode 100644
index 0000000000..40babe74b2
--- /dev/null
+++ b/tests/ref/fate/sunraster-1bit-rle
@@ -0,0 +1 @@
+0, 0, 32768, 0x6d16e246
diff --git a/tests/ref/fate/sunraster-24bit-raw b/tests/ref/fate/sunraster-24bit-raw
new file mode 100644
index 0000000000..0b0dafc61f
--- /dev/null
+++ b/tests/ref/fate/sunraster-24bit-raw
@@ -0,0 +1 @@
+0, 0, 786432, 0xb4d417bf
diff --git a/tests/ref/fate/sunraster-24bit-rle b/tests/ref/fate/sunraster-24bit-rle
new file mode 100644
index 0000000000..0b0dafc61f
--- /dev/null
+++ b/tests/ref/fate/sunraster-24bit-rle
@@ -0,0 +1 @@
+0, 0, 786432, 0xb4d417bf
diff --git a/tests/ref/fate/sunraster-8bit-raw b/tests/ref/fate/sunraster-8bit-raw
new file mode 100644
index 0000000000..3f22c8f84f
--- /dev/null
+++ b/tests/ref/fate/sunraster-8bit-raw
@@ -0,0 +1 @@
+0, 0, 786432, 0xf4364008
diff --git a/tests/ref/fate/sunraster-8bit-rle b/tests/ref/fate/sunraster-8bit-rle
new file mode 100644
index 0000000000..3f22c8f84f
--- /dev/null
+++ b/tests/ref/fate/sunraster-8bit-rle
@@ -0,0 +1 @@
+0, 0, 786432, 0xf4364008
diff --git a/tests/ref/fate/svq1 b/tests/ref/fate/svq1
new file mode 100644
index 0000000000..b048681944
--- /dev/null
+++ b/tests/ref/fate/svq1
@@ -0,0 +1,150 @@
+0, 0, 21600, 0x7f9389e3
+0, 6000, 21600, 0xcebb8896
+0, 12000, 21600, 0xef51860a
+0, 18000, 21600, 0x88d97e7d
+0, 24000, 21600, 0xc7757c88
+0, 30000, 21600, 0x2f537ade
+0, 36000, 21600, 0xd50a7eff
+0, 42000, 21600, 0xdcfb7fc6
+0, 48000, 21600, 0x0d608299
+0, 54000, 21600, 0x97ca81b4
+0, 60000, 21600, 0x791f80e7
+0, 66000, 21600, 0x96ae7d33
+0, 72000, 21600, 0x4d7474a8
+0, 78000, 21600, 0x2ae76f37
+0, 84000, 21600, 0x7da76265
+0, 90000, 21600, 0x93ae3eb6
+0, 96000, 21600, 0xebfd3868
+0, 102000, 21600, 0x54f82ffa
+0, 108000, 21600, 0x8d5b2ad0
+0, 114000, 21600, 0xe67128e6
+0, 120000, 21600, 0xb7bf613e
+0, 126000, 21600, 0xefd0f51b
+0, 132000, 21600, 0x31b7da59
+0, 138000, 21600, 0x7a84a8f7
+0, 144000, 21600, 0x0351ad27
+0, 150000, 21600, 0xed6f434d
+0, 156000, 21600, 0x0e771127
+0, 162000, 21600, 0x37bf0b95
+0, 168000, 21600, 0x30e10a77
+0, 174000, 21600, 0x1a48288a
+0, 180000, 21600, 0xf43c6770
+0, 186000, 21600, 0x3c43ae68
+0, 192000, 21600, 0x04dc0949
+0, 198000, 21600, 0x7920758d
+0, 204000, 21600, 0x6c12bab5
+0, 210000, 21600, 0x1ac23706
+0, 216000, 21600, 0x7a95cb5f
+0, 222000, 21600, 0xf1bfbb46
+0, 228000, 21600, 0x773d1d0c
+0, 234000, 21600, 0x2e7bea65
+0, 240000, 21600, 0xdb1a086f
+0, 246000, 21600, 0x5b36b78d
+0, 252000, 21600, 0x7b533ca6
+0, 258000, 21600, 0x65d75105
+0, 264000, 21600, 0xfe6f6207
+0, 270000, 21600, 0x44c4ce57
+0, 276000, 21600, 0x220f3dae
+0, 282000, 21600, 0xb4d20ffb
+0, 288000, 21600, 0x8907ad72
+0, 294000, 21600, 0xc6418998
+0, 300000, 21600, 0x395b6670
+0, 306000, 21600, 0x83495b88
+0, 312000, 21600, 0x8920d683
+0, 318000, 21600, 0xd7fc64ea
+0, 324000, 21600, 0x21a3b222
+0, 330000, 21600, 0xc11f2dbd
+0, 336000, 21600, 0xd1d5495d
+0, 342000, 21600, 0x70f2de20
+0, 348000, 21600, 0x10adc9a9
+0, 354000, 21600, 0xf713c0ec
+0, 360000, 21600, 0xa346b3fe
+0, 366000, 21600, 0x7945c29b
+0, 372000, 21600, 0xb07ceb91
+0, 378000, 21600, 0xe1eaf9ef
+0, 384000, 21600, 0x6fa915c7
+0, 390000, 21600, 0x61952055
+0, 396000, 21600, 0x4bca2382
+0, 402000, 21600, 0x36161fe2
+0, 408000, 21600, 0xf93a28f7
+0, 414000, 21600, 0xa02a3d47
+0, 420000, 21600, 0x925b3609
+0, 426000, 21600, 0x5b6941db
+0, 432000, 21600, 0x33154a91
+0, 438000, 21600, 0xb1d75c50
+0, 444000, 21600, 0x1cb369bd
+0, 450000, 21600, 0x3be4eff2
+0, 456000, 21600, 0xbb89c301
+0, 462000, 21600, 0xc7630d85
+0, 468000, 21600, 0xf7441c67
+0, 474000, 21600, 0xc23611ef
+0, 480000, 21600, 0x840efb21
+0, 486000, 21600, 0x7d470a0f
+0, 492000, 21600, 0xfe093210
+0, 498000, 21600, 0x0f3ea098
+0, 504000, 21600, 0xcd72286f
+0, 510000, 21600, 0x826f8030
+0, 516000, 21600, 0xcda3ace8
+0, 522000, 21600, 0x39cb4cd0
+0, 528000, 21600, 0xa86a60ac
+0, 534000, 21600, 0xcd32ed8e
+0, 540000, 21600, 0x769b285d
+0, 546000, 21600, 0x10234cd0
+0, 552000, 21600, 0x951036b8
+0, 558000, 21600, 0xaef248fa
+0, 564000, 21600, 0x74e36e84
+0, 570000, 21600, 0x3908531b
+0, 576000, 21600, 0x342f2a9d
+0, 582000, 21600, 0x291d58f3
+0, 588000, 21600, 0xcf24b1e5
+0, 594000, 21600, 0x3e7c7959
+0, 600000, 21600, 0x6517e573
+0, 606000, 21600, 0x304cc6db
+0, 612000, 21600, 0x272895e4
+0, 618000, 21600, 0x52325837
+0, 624000, 21600, 0xd01344bd
+0, 630000, 21600, 0xd25a370b
+0, 636000, 21600, 0x274e0ae9
+0, 642000, 21600, 0x6f66138f
+0, 648000, 21600, 0xd35a0f60
+0, 654000, 21600, 0xe0610863
+0, 660000, 21600, 0x920b05fb
+0, 666000, 21600, 0x5befe39d
+0, 672000, 21600, 0xd167bd58
+0, 678000, 21600, 0x653ac504
+0, 684000, 21600, 0x8372c6d7
+0, 690000, 21600, 0x0302c276
+0, 696000, 21600, 0xa176b694
+0, 702000, 21600, 0x4c2e935a
+0, 708000, 21600, 0xf7ea844e
+0, 714000, 21600, 0x76d6c07b
+0, 720000, 21600, 0x0a14d610
+0, 726000, 21600, 0x0ec9f3f3
+0, 732000, 21600, 0xdc90f6ea
+0, 738000, 21600, 0xc841f9ef
+0, 744000, 21600, 0x7ab5f9b9
+0, 750000, 21600, 0xda40f3c2
+0, 756000, 21600, 0x0040fb72
+0, 762000, 21600, 0x705b0786
+0, 768000, 21600, 0x26d5198d
+0, 774000, 21600, 0x6f5153ad
+0, 780000, 21600, 0x9f26624b
+0, 786000, 21600, 0x0d3ea7af
+0, 792000, 21600, 0xb957ca79
+0, 798000, 21600, 0x03a60612
+0, 804000, 21600, 0x3ddc4ff1
+0, 810000, 21600, 0x8fe5697f
+0, 816000, 21600, 0x3d199b09
+0, 822000, 21600, 0x97e2b504
+0, 828000, 21600, 0x7563f784
+0, 834000, 21600, 0x9a473879
+0, 840000, 21600, 0x2e2054e5
+0, 846000, 21600, 0x06b3658b
+0, 852000, 21600, 0xa37ee249
+0, 858000, 21600, 0xa527efa1
+0, 864000, 21600, 0x12791532
+0, 870000, 21600, 0xc5350145
+0, 876000, 21600, 0xcd44f1ac
+0, 882000, 21600, 0xe610edfb
+0, 888000, 21600, 0x5642f672
+0, 894000, 21600, 0xf2bc3e5b
diff --git a/tests/ref/fate/svq3 b/tests/ref/fate/svq3
new file mode 100644
index 0000000000..324c363a82
--- /dev/null
+++ b/tests/ref/fate/svq3
@@ -0,0 +1,180 @@
+0, 0, 115200, 0x2c810465
+0, 3000, 115200, 0x010b5765
+0, 6000, 115200, 0x2be11a4e
+0, 9000, 115200, 0x99445d06
+0, 12000, 115200, 0x6b54d83c
+0, 15000, 115200, 0x3832b76a
+0, 18000, 115200, 0x3832b76a
+0, 21000, 115200, 0xe18385db
+0, 24000, 115200, 0x847d4bf0
+0, 27000, 115200, 0x0d650f50
+0, 30000, 115200, 0x4b85c44c
+0, 33000, 115200, 0xce1927a6
+0, 36000, 115200, 0x89353747
+0, 39000, 115200, 0x58da43f2
+0, 42000, 115200, 0xee9a4eef
+0, 45000, 115200, 0xce9453d9
+0, 48000, 115200, 0x804a5eb0
+0, 51000, 115200, 0xb3d46605
+0, 54000, 115200, 0x45b5668e
+0, 57000, 115200, 0xdd0d4c5a
+0, 60000, 115200, 0x99101301
+0, 63000, 115200, 0xf0c3f272
+0, 66000, 115200, 0xea21f8b1
+0, 69000, 115200, 0xd8e7fbb1
+0, 72000, 115200, 0x89d90aa1
+0, 75000, 115200, 0x882e19da
+0, 78000, 115200, 0xfc0f2709
+0, 81000, 115200, 0x9b732f3f
+0, 84000, 115200, 0xec453cda
+0, 87000, 115200, 0xa77e4989
+0, 90000, 115200, 0xad935834
+0, 93000, 115200, 0x3a5a6177
+0, 96000, 115200, 0xd3c07999
+0, 99000, 115200, 0xfad388dd
+0, 102000, 115200, 0xaf6e9520
+0, 105000, 115200, 0xdb64a4b3
+0, 108000, 115200, 0xc6f9b49e
+0, 111000, 115200, 0x4446c315
+0, 114000, 115200, 0x660bd01c
+0, 117000, 115200, 0x963fdd7d
+0, 120000, 115200, 0x8733e7b3
+0, 123000, 115200, 0x41aaf1d5
+0, 126000, 115200, 0xa803fd81
+0, 129000, 115200, 0xe2b4077f
+0, 132000, 115200, 0xfe6707cb
+0, 135000, 115200, 0x027c122d
+0, 138000, 115200, 0xbcb81ea8
+0, 141000, 115200, 0xd2ac2405
+0, 144000, 115200, 0x3d893006
+0, 147000, 115200, 0xbdcc3ba8
+0, 150000, 115200, 0x83ed4c6b
+0, 153000, 115200, 0x69ee5e7c
+0, 156000, 115200, 0xfe317411
+0, 159000, 115200, 0x849e84e6
+0, 162000, 115200, 0x040f945f
+0, 165000, 115200, 0x6481ac89
+0, 168000, 115200, 0x8a48be9e
+0, 171000, 115200, 0xb162ce94
+0, 174000, 115200, 0x178dd69a
+0, 177000, 115200, 0x64fdecaa
+0, 180000, 115200, 0x4b51297e
+0, 183000, 115200, 0x3d39a1ae
+0, 186000, 115200, 0x900fd939
+0, 189000, 115200, 0x7704fb19
+0, 192000, 115200, 0xa426137e
+0, 195000, 115200, 0x9a112706
+0, 198000, 115200, 0x294931f7
+0, 201000, 115200, 0x0d0e4372
+0, 204000, 115200, 0x33bd50e4
+0, 207000, 115200, 0x9c86e3e2
+0, 210000, 115200, 0x714af5d5
+0, 213000, 115200, 0xc5f9fcd0
+0, 216000, 115200, 0x184602bb
+0, 219000, 115200, 0x6958e9e6
+0, 222000, 115200, 0x5a214952
+0, 225000, 115200, 0x706cca0e
+0, 228000, 115200, 0x67689363
+0, 231000, 115200, 0x459f410c
+0, 234000, 115200, 0xa8f4c365
+0, 237000, 115200, 0xf1fc50c5
+0, 240000, 115200, 0xc22af545
+0, 243000, 115200, 0xd39802a2
+0, 246000, 115200, 0xb76c04b6
+0, 249000, 115200, 0x7a548db4
+0, 252000, 115200, 0x79e56765
+0, 255000, 115200, 0x3f273a17
+0, 258000, 115200, 0xe04366db
+0, 261000, 115200, 0x8e10939b
+0, 264000, 115200, 0x49220ea2
+0, 267000, 115200, 0x35361889
+0, 270000, 115200, 0x9b20bdfa
+0, 273000, 115200, 0x5d472eaf
+0, 276000, 115200, 0xeda43081
+0, 279000, 115200, 0x59bae8b4
+0, 282000, 115200, 0xf126d6a4
+0, 285000, 115200, 0x18106464
+0, 288000, 115200, 0x85530c73
+0, 291000, 115200, 0xcef32c78
+0, 294000, 115200, 0xfd6233a0
+0, 297000, 115200, 0xae9d6fc3
+0, 300000, 115200, 0x3d0cce10
+0, 303000, 115200, 0xfce5f124
+0, 306000, 115200, 0x90b10802
+0, 309000, 115200, 0xeea44201
+0, 312000, 115200, 0x1cefb56d
+0, 315000, 115200, 0xd6daa0b1
+0, 318000, 115200, 0xd700cef4
+0, 321000, 115200, 0x36dbf58f
+0, 324000, 115200, 0xdb20d060
+0, 327000, 115200, 0x5ca61fd5
+0, 330000, 115200, 0x4f271361
+0, 333000, 115200, 0xcaf03743
+0, 336000, 115200, 0x520f351a
+0, 339000, 115200, 0x40bc7b89
+0, 342000, 115200, 0xd0af0b08
+0, 345000, 115200, 0x6a45290c
+0, 348000, 115200, 0x57210c14
+0, 351000, 115200, 0xc1e233f9
+0, 354000, 115200, 0x96fdfc54
+0, 357000, 115200, 0x43a8359c
+0, 360000, 115200, 0xd493bfde
+0, 363000, 115200, 0xd5339d13
+0, 366000, 115200, 0x7542baa0
+0, 369000, 115200, 0x268d2cb9
+0, 372000, 115200, 0xaf3888bb
+0, 375000, 115200, 0xb82f520a
+0, 378000, 115200, 0x0feb2981
+0, 381000, 115200, 0x45314b58
+0, 384000, 115200, 0xb26a193a
+0, 387000, 115200, 0xdfdffc38
+0, 390000, 115200, 0xec6a55f5
+0, 393000, 115200, 0xf6e35716
+0, 396000, 115200, 0x5ce8544e
+0, 399000, 115200, 0x3e38ddce
+0, 402000, 115200, 0x964a2006
+0, 405000, 115200, 0xaba138d6
+0, 408000, 115200, 0x2f46949c
+0, 411000, 115200, 0xbdbdb587
+0, 414000, 115200, 0x1bf11e1d
+0, 417000, 115200, 0x2632f558
+0, 420000, 115200, 0x0e58078b
+0, 423000, 115200, 0x2ab2f9be
+0, 426000, 115200, 0x9205f1d8
+0, 429000, 115200, 0x6a4bd949
+0, 432000, 115200, 0xedc1552f
+0, 435000, 115200, 0x0a60974d
+0, 438000, 115200, 0xe1a1400e
+0, 441000, 115200, 0x45f06952
+0, 444000, 115200, 0xc5163125
+0, 447000, 115200, 0x151da156
+0, 450000, 115200, 0x3f34b048
+0, 453000, 115200, 0xcf7c1e5d
+0, 456000, 115200, 0xed9c4e1c
+0, 459000, 115200, 0x47e06453
+0, 462000, 115200, 0xc8ce6f19
+0, 465000, 115200, 0xac619619
+0, 468000, 115200, 0x64711e2d
+0, 471000, 115200, 0x1f502b52
+0, 474000, 115200, 0x39592c9d
+0, 477000, 115200, 0x7dffb901
+0, 480000, 115200, 0xc75fa3ce
+0, 483000, 115200, 0x625bc977
+0, 486000, 115200, 0x15c7fda3
+0, 489000, 115200, 0x6e5d35b5
+0, 492000, 115200, 0xf847cf88
+0, 495000, 115200, 0xc10867fe
+0, 498000, 115200, 0xae07fbfc
+0, 501000, 115200, 0xc1571542
+0, 504000, 115200, 0x4c7d5602
+0, 507000, 115200, 0xbe7045aa
+0, 510000, 115200, 0xc8b4835b
+0, 513000, 115200, 0xf9b7d427
+0, 516000, 115200, 0x7fa7c112
+0, 519000, 115200, 0xe0105feb
+0, 522000, 115200, 0x70784740
+0, 525000, 115200, 0xa6801ef5
+0, 528000, 115200, 0x9cf35921
+0, 531000, 115200, 0x4d956630
+0, 534000, 115200, 0x717a25c1
+0, 537000, 115200, 0x8f5e39de
diff --git a/tests/ref/fate/thp-mjpeg-adpcm b/tests/ref/fate/thp-mjpeg-adpcm
new file mode 100644
index 0000000000..b1046d8df5
--- /dev/null
+++ b/tests/ref/fate/thp-mjpeg-adpcm
@@ -0,0 +1,143 @@
+0, 0, 291840, 0xbd7e0b22
+1, 0, 4312, 0x469714f6
+0, 3003, 291840, 0xf6e12ca5
+1, 3032, 4256, 0xe03dd882
+0, 6006, 291840, 0x528c7049
+1, 6024, 4312, 0x46b901f7
+0, 9009, 291840, 0x93055de9
+1, 9056, 4256, 0x8d4a54e4
+0, 12012, 291840, 0xf95a51c1
+1, 12049, 4256, 0xfd616b67
+0, 15015, 291840, 0x6ad3a65a
+1, 15041, 4312, 0xefe62302
+0, 18018, 291840, 0x494684a7
+1, 18073, 4256, 0xab11684e
+0, 21021, 291840, 0x74c14eb1
+1, 21066, 4256, 0xb4b3feb8
+0, 24024, 291840, 0x149fcb7e
+1, 24058, 4312, 0x71db6461
+0, 27027, 291840, 0x25649761
+1, 27090, 4256, 0x090e5efa
+0, 30030, 291840, 0xbc3f9052
+1, 30083, 4256, 0x36f49c28
+0, 33033, 291840, 0x080edfff
+1, 33075, 4312, 0x0fe3d262
+0, 36036, 291840, 0x6d7ad684
+1, 36107, 4256, 0x199ce269
+0, 39039, 291840, 0x6d53844d
+1, 39099, 4256, 0x98342d05
+0, 42042, 291840, 0xf7ad5385
+1, 42092, 4312, 0xb6fb7ebe
+0, 45045, 291840, 0x0241b56a
+1, 45124, 4256, 0x033dd562
+0, 48048, 291840, 0x120122c8
+1, 48116, 4256, 0xc2cc17e0
+0, 51051, 291840, 0x31b0f32a
+1, 51109, 4312, 0x4bb3ff50
+0, 54054, 291840, 0x14068b98
+1, 54141, 4256, 0x6f2671ef
+0, 57057, 291840, 0xeeec658b
+1, 57133, 4256, 0x5a337bf4
+0, 60060, 291840, 0x9376374c
+1, 60126, 4312, 0xa71f6967
+0, 63063, 291840, 0x091e8c6e
+1, 63158, 4256, 0x48084aa9
+0, 66066, 291840, 0x744ad07f
+1, 66150, 4256, 0x3cce4218
+0, 69069, 291840, 0xf99c554e
+1, 69143, 4312, 0xcbb8f73d
+0, 72072, 291840, 0xc84bd677
+1, 72174, 4256, 0x36825021
+0, 75075, 291840, 0x3898d474
+1, 75167, 4256, 0xeae036c6
+0, 78078, 291840, 0x1e2910c8
+1, 78159, 4312, 0x0d650ac6
+0, 81081, 291840, 0xb11f58bc
+1, 81191, 4256, 0xfba4f58c
+0, 84084, 291840, 0xf89170ee
+1, 84184, 4256, 0x54311f9b
+0, 87087, 291840, 0x8f239dc3
+1, 87176, 4312, 0x286386b3
+0, 90090, 291840, 0x8538c76c
+1, 90208, 4256, 0x871896de
+0, 93093, 291840, 0x162ee66f
+1, 93201, 4256, 0x9ef9f970
+0, 96096, 291840, 0x5f8708a5
+1, 96193, 4312, 0xf9ae97f1
+0, 99099, 291840, 0x95802dfb
+1, 99225, 4256, 0x0ad0d765
+0, 102102, 291840, 0xc424630d
+1, 102218, 4256, 0x8e6aa9b5
+0, 105105, 291840, 0xfb8a8667
+1, 105210, 4312, 0x8362787b
+0, 108108, 291840, 0xbad79af5
+1, 108242, 4256, 0x9b6a5d9c
+0, 111111, 291840, 0xc733b325
+1, 111234, 4256, 0xfb715d8f
+0, 114114, 291840, 0x4bfbcd70
+1, 114227, 4312, 0x02bd8075
+0, 117117, 291840, 0x502cd950
+1, 117259, 4256, 0x428eb932
+0, 120120, 291840, 0x8461ca2c
+1, 120251, 4256, 0x17ea8c94
+0, 123123, 291840, 0x00219b0d
+1, 123244, 4312, 0xb3e761d7
+0, 126126, 291840, 0xa4de45e1
+1, 126276, 4256, 0x0919755a
+0, 129129, 291840, 0xacd3f4df
+1, 129268, 4256, 0x5e520edd
+0, 132132, 291840, 0x2203a369
+1, 132261, 4312, 0x69aa070e
+0, 135135, 291840, 0x0a66effa
+1, 135293, 4256, 0xf8192f7d
+0, 138138, 291840, 0x7ac1fd91
+1, 138285, 4256, 0xaad4475c
+0, 141141, 291840, 0x84970aa7
+1, 141278, 4312, 0x0cabcfcb
+0, 144144, 291840, 0x569d145f
+1, 144309, 4256, 0x952f0f96
+0, 147147, 291840, 0xe51efe1b
+1, 147302, 4256, 0x1b805a0c
+0, 150150, 291840, 0x38e2cd78
+1, 150294, 4312, 0x93043d2a
+0, 153153, 291840, 0x93428ea2
+1, 153326, 4256, 0x38b99e44
+0, 156156, 291840, 0x3d3f5b17
+1, 156319, 4256, 0x60cc52ff
+0, 159159, 291840, 0x9546127d
+1, 159311, 4312, 0x6a875849
+0, 162162, 291840, 0x4178be54
+1, 162343, 4256, 0xd08d6d0e
+0, 165165, 291840, 0x0d0f8036
+1, 165336, 4256, 0x36bfe48e
+0, 168168, 291840, 0xc20557b9
+1, 168328, 4312, 0x795c6134
+0, 171171, 291840, 0x6d4b2d64
+1, 171360, 4256, 0x4fd79583
+0, 174174, 291840, 0xa750125d
+1, 174353, 4256, 0x65e2ab9f
+0, 177177, 291840, 0x04623ce3
+1, 177345, 4312, 0xedeede4a
+0, 180180, 291840, 0xc7f2bbc7
+1, 180377, 4256, 0x097e0d09
+0, 183183, 291840, 0x6e271336
+1, 183369, 4256, 0x58afa133
+0, 186186, 291840, 0xcfbd4246
+1, 186362, 4312, 0x442525b5
+0, 189189, 291840, 0xe1493be9
+1, 189394, 4256, 0x6645c591
+0, 192192, 291840, 0x6c731194
+1, 192386, 4256, 0xb0dd948a
+0, 195195, 291840, 0x0fc30cc2
+1, 195379, 4312, 0x12684e69
+0, 198198, 291840, 0x967427f3
+1, 198411, 4256, 0xb45098e3
+0, 201201, 291840, 0x55ae3b00
+1, 201403, 4256, 0xb6d3c61c
+0, 204204, 291840, 0xbe4f200c
+1, 204396, 4312, 0xb46b5b22
+0, 207207, 291840, 0xc515e443
+1, 207428, 4256, 0x9a556830
+0, 210210, 291840, 0xd738bd69
+1, 210420, 4256, 0x67ca2b35
+0, 213213, 291840, 0xa8e0ab69
diff --git a/tests/ref/fate/tiertex-seq b/tests/ref/fate/tiertex-seq
new file mode 100644
index 0000000000..e4ebf5a207
--- /dev/null
+++ b/tests/ref/fate/tiertex-seq
@@ -0,0 +1,149 @@
+1, 0, 1764, 0x00000000
+0, 0, 98304, 0x2e5db4a4
+1, 3600, 1764, 0x80a253d9
+0, 3600, 98304, 0xb20c19d0
+1, 7200, 1764, 0x95a16721
+0, 7200, 98304, 0xb20c19d0
+1, 10800, 1764, 0x0f0d4cb6
+0, 10800, 98304, 0xb20c19d0
+1, 14400, 1764, 0x75026779
+0, 14400, 98304, 0x6b8538c0
+1, 18000, 1764, 0xb4356e37
+0, 18000, 98304, 0x6b8538c0
+1, 21600, 1764, 0xfafa64cb
+0, 21600, 98304, 0x6b8538c0
+1, 25200, 1764, 0xe8fd7970
+0, 25200, 98304, 0x172207e3
+1, 28800, 1764, 0x666879b7
+0, 28800, 98304, 0x172207e3
+1, 32400, 1764, 0xf2cd7770
+0, 32400, 98304, 0x172207e3
+1, 36000, 1764, 0x54317a1c
+0, 36000, 98304, 0x172207e3
+1, 39600, 1764, 0x9c396930
+0, 39600, 98304, 0x63fb7dc1
+1, 43200, 1764, 0x87115ec4
+0, 43200, 98304, 0x63fb7dc1
+1, 46800, 1764, 0x0c9b69b6
+0, 46800, 98304, 0x63fb7dc1
+1, 50400, 1764, 0x8c3a758a
+0, 50400, 98304, 0x37cf1601
+1, 54000, 1764, 0x605d776a
+0, 54000, 98304, 0x37cf1601
+1, 57600, 1764, 0x0556852d
+0, 57600, 98304, 0x37cf1601
+1, 61200, 1764, 0x7d4363f8
+0, 61200, 98304, 0x37cf1601
+1, 64800, 1764, 0xc5cd75d0
+0, 64800, 98304, 0x82941990
+1, 68400, 1764, 0x3ff3646d
+0, 68400, 98304, 0x82941990
+1, 72000, 1764, 0x10136d25
+0, 72000, 98304, 0x82941990
+1, 75600, 1764, 0xeb1a6cd0
+0, 75600, 98304, 0x82941990
+1, 79200, 1764, 0xef937ed1
+0, 79200, 98304, 0xe0a5309e
+1, 82800, 1764, 0x2d2b6f79
+0, 82800, 98304, 0xe0a5309e
+1, 86400, 1764, 0x6f457231
+0, 86400, 98304, 0xe0a5309e
+1, 90000, 1764, 0x56267c9d
+0, 90000, 98304, 0x164cb67d
+1, 93600, 1764, 0xd49e79c8
+0, 93600, 98304, 0x164cb67d
+1, 97200, 1764, 0xc726703d
+0, 97200, 98304, 0x164cb67d
+1, 100800, 1764, 0x2abf8074
+0, 100800, 98304, 0x164cb67d
+1, 104400, 1764, 0xb50c556d
+0, 104400, 98304, 0xed2189f8
+1, 108000, 1764, 0xc1f2523c
+0, 108000, 98304, 0xed2189f8
+1, 111600, 1764, 0x850a6f93
+0, 111600, 98304, 0xed2189f8
+1, 115200, 1764, 0x8da76c31
+0, 115200, 98304, 0x7215e529
+1, 118800, 1764, 0xfcccdf13
+0, 118800, 98304, 0x7215e529
+1, 122400, 1764, 0x00000000
+0, 122400, 98304, 0x7215e529
+1, 126000, 1764, 0x00000000
+0, 126000, 98304, 0x7215e529
+1, 129600, 1764, 0x00000000
+0, 129600, 98304, 0x170c783b
+1, 133200, 1764, 0x00000000
+0, 133200, 98304, 0x170c783b
+1, 136800, 1764, 0x00000000
+0, 136800, 98304, 0x170c783b
+1, 140400, 1764, 0x00000000
+0, 140400, 98304, 0xf6bd74c7
+1, 144000, 1764, 0x00000000
+0, 144000, 98304, 0xf6bd74c7
+1, 147600, 1764, 0x00000000
+0, 147600, 98304, 0xf6bd74c7
+1, 151200, 1764, 0x00000000
+0, 151200, 98304, 0xf6bd74c7
+1, 154800, 1764, 0x00000000
+0, 154800, 98304, 0x1efd38c4
+1, 158400, 1764, 0x00000000
+0, 158400, 98304, 0x1efd38c4
+1, 162000, 1764, 0x00000000
+0, 162000, 98304, 0x1efd38c4
+1, 165600, 1764, 0x00000000
+0, 165600, 98304, 0x1efd38c4
+1, 169200, 1764, 0x00000000
+0, 169200, 98304, 0x29c26bba
+1, 172800, 1764, 0x00000000
+0, 172800, 98304, 0x29c26bba
+1, 176400, 1764, 0x00000000
+0, 176400, 98304, 0x29c26bba
+1, 180000, 1764, 0x00000000
+0, 180000, 98304, 0x880a6313
+1, 183600, 1764, 0x00000000
+0, 183600, 98304, 0x880a6313
+1, 187200, 1764, 0x00000000
+0, 187200, 98304, 0x880a6313
+1, 190800, 1764, 0x00000000
+0, 190800, 98304, 0x880a6313
+1, 194400, 1764, 0x00000000
+0, 194400, 98304, 0x73f5bb00
+1, 198000, 1764, 0x00000000
+0, 198000, 98304, 0x73f5bb00
+1, 201600, 1764, 0x00000000
+0, 201600, 98304, 0x73f5bb00
+1, 205200, 1764, 0x00000000
+0, 205200, 98304, 0xc85b19ec
+1, 208800, 1764, 0x00000000
+0, 208800, 98304, 0xc85b19ec
+1, 212400, 1764, 0x00000000
+0, 212400, 98304, 0xc85b19ec
+1, 216000, 1764, 0x00000000
+0, 216000, 98304, 0xc85b19ec
+1, 219600, 1764, 0x00000000
+0, 219600, 98304, 0x00000000
+1, 223200, 1764, 0x00000000
+0, 223200, 98304, 0x00000000
+1, 226800, 1764, 0x00000000
+0, 226800, 98304, 0x00000000
+1, 230400, 1764, 0x00000000
+0, 230400, 98304, 0x00000000
+1, 234000, 1764, 0x00000000
+0, 234000, 98304, 0x00000000
+1, 237600, 1764, 0x00000000
+0, 237600, 98304, 0x00000000
+1, 241200, 1764, 0x00000000
+0, 241200, 98304, 0x00000000
+1, 244800, 1764, 0x00000000
+0, 244800, 98304, 0x00000000
+1, 248400, 1764, 0x00000000
+0, 248400, 98304, 0x00000000
+1, 252000, 1764, 0x00000000
+0, 252000, 98304, 0x00000000
+1, 255600, 1764, 0x00000000
+0, 255600, 98304, 0x00000000
+1, 259200, 1764, 0x00000000
+1, 262800, 1764, 0x00000000
+1, 266400, 1764, 0x00000000
+1, 270000, 1764, 0x00000000
+1, 273600, 1764, 0x00000000
diff --git a/tests/ref/fate/tmv b/tests/ref/fate/tmv
new file mode 100644
index 0000000000..feca20e060
--- /dev/null
+++ b/tests/ref/fate/tmv
@@ -0,0 +1,220 @@
+0, 0, 192000, 0xc698297a
+1, 0, 736, 0xf63db497
+0, 1501, 192000, 0x8d5bd6be
+1, 1501, 736, 0xbc42caef
+0, 3003, 192000, 0x21c32083
+1, 3003, 736, 0x5619a45a
+0, 4504, 192000, 0x849cd4c0
+1, 4504, 736, 0x1b8ac0f9
+0, 6006, 192000, 0x8c63a4f0
+1, 6006, 736, 0x55dcac78
+0, 7507, 192000, 0x5dbee9ab
+1, 7507, 736, 0xd9f2a266
+0, 9009, 192000, 0x2b12d9bb
+1, 9009, 736, 0x22f8af51
+0, 10510, 192000, 0x1a737e17
+1, 10510, 736, 0x838bacb8
+0, 12012, 192000, 0x90536c29
+1, 12012, 736, 0x7b29b4f9
+0, 13513, 192000, 0xd7795243
+1, 13513, 736, 0x5a01b505
+0, 15015, 192000, 0x08847e17
+1, 15015, 736, 0xc330abb4
+0, 16516, 192000, 0x47aa5a3b
+1, 16516, 736, 0x84d6c49d
+0, 18018, 192000, 0x9435266f
+1, 18018, 736, 0xd0a1a588
+0, 19519, 192000, 0x87e7ea9c
+1, 19519, 736, 0x9083a382
+0, 21021, 192000, 0x6dc00285
+1, 21021, 736, 0x291eb335
+0, 22522, 192000, 0xf6407ddf
+1, 22522, 736, 0xdda2b452
+0, 24024, 192000, 0x55541c09
+1, 24024, 736, 0x82feab67
+0, 25525, 192000, 0xf1c4f5be
+1, 25525, 736, 0xfca6b943
+0, 27027, 192000, 0xe59ff74c
+1, 27027, 736, 0x2a4ea1fd
+0, 28528, 192000, 0x0fedcf04
+1, 28528, 736, 0xbb4bc783
+0, 30030, 192000, 0x04b893dd
+1, 30030, 736, 0x8c10a799
+0, 31531, 192000, 0xfef47d83
+1, 31531, 736, 0x8751a53b
+0, 33033, 192000, 0x07bde9ed
+1, 33033, 736, 0x4b3c9fc3
+0, 34534, 192000, 0xb8003fd2
+1, 34534, 736, 0x5dad9b46
+0, 36036, 192000, 0x4eb6b3ed
+1, 36036, 736, 0xe106a3e6
+0, 37537, 192000, 0x320b0b34
+1, 37537, 736, 0xa42a9a3b
+0, 39039, 192000, 0x5156e90f
+1, 39039, 736, 0xb5069901
+0, 40540, 192000, 0x34778cde
+1, 40540, 736, 0x3556c3c3
+0, 42042, 192000, 0xd8d96e44
+1, 42042, 736, 0xa870c1ee
+0, 43543, 192000, 0x962ae9f3
+1, 43543, 736, 0xc388b6d8
+0, 45045, 192000, 0x3d29d85a
+1, 45045, 736, 0xe167a2b0
+0, 46546, 192000, 0x838554fa
+1, 46546, 736, 0x15aeb59d
+0, 48048, 192000, 0xd64a3b93
+1, 48048, 736, 0xa576c0bc
+0, 49549, 192000, 0x380ef140
+1, 49549, 736, 0x44f3b827
+0, 51051, 192000, 0x076b38c0
+1, 51051, 736, 0xfa5ecd84
+0, 52552, 192000, 0xd9a67c7c
+1, 52552, 736, 0xb7b996f6
+0, 54054, 192000, 0xc2849a50
+1, 54054, 736, 0xb390c311
+0, 55555, 192000, 0x9b94a347
+1, 55555, 736, 0xc5a9ab0f
+0, 57057, 192000, 0xe3ba9c07
+1, 57057, 736, 0x1a3aa3f6
+0, 58558, 192000, 0xef0011f5
+1, 58558, 736, 0xdaaf9e42
+0, 60060, 192000, 0xa98381e8
+1, 60060, 736, 0xad8fb0ba
+0, 61561, 192000, 0x27e5ce9b
+1, 61561, 736, 0x9cce9e05
+0, 63063, 192000, 0x8568e33f
+1, 63063, 736, 0x70639e6f
+0, 64564, 192000, 0x540633b6
+1, 64564, 736, 0xc5e1ba9b
+0, 66066, 192000, 0xd8fcfbed
+1, 66066, 736, 0x9e6cb422
+0, 67567, 192000, 0x15609e04
+1, 67567, 736, 0x5c559a1e
+0, 69069, 192000, 0x7e4f5c9b
+1, 69069, 736, 0xb071c2da
+0, 70570, 192000, 0xef14950d
+1, 70570, 736, 0xd9bdb9eb
+0, 72072, 192000, 0x9e0b85b9
+1, 72072, 736, 0x5ecab2d5
+0, 73573, 192000, 0xf3b69b95
+1, 73573, 736, 0x0f78a8fe
+0, 75075, 192000, 0x09b6db39
+1, 75075, 736, 0x74ebaccd
+0, 76576, 192000, 0x4dc9a300
+1, 76576, 736, 0x2cfab78e
+0, 78078, 192000, 0x29d9fdde
+1, 78078, 736, 0x32c6c26e
+0, 79579, 192000, 0x22e79283
+1, 79579, 736, 0xbe339d74
+0, 81081, 192000, 0x5f5c95aa
+1, 81081, 736, 0x2c31b687
+0, 82582, 192000, 0x4d76efde
+1, 82582, 736, 0xcbb0b8d5
+0, 84084, 192000, 0xb1d79f6a
+1, 84084, 736, 0x17bcb56a
+0, 85585, 192000, 0xedfe6012
+1, 85585, 736, 0x116fb70c
+0, 87087, 192000, 0x4a56033a
+1, 87087, 736, 0xa22eb34f
+0, 88588, 192000, 0xdbc9f746
+1, 88588, 736, 0x130bc9bb
+0, 90090, 192000, 0xedff8a16
+1, 90090, 736, 0xbb0b77aa
+0, 91591, 192000, 0x46b5f843
+1, 91591, 736, 0xafb5a9f0
+0, 93093, 192000, 0xbd12dbfc
+1, 93093, 736, 0xaf55f1a3
+0, 94594, 192000, 0xacf2a336
+1, 94594, 736, 0x988e9669
+0, 96096, 192000, 0x13843e7f
+1, 96096, 736, 0x4e2cc9ab
+0, 97597, 192000, 0x6fda777f
+1, 97597, 736, 0x34b3b7ea
+0, 99099, 192000, 0x16ffef07
+1, 99099, 736, 0x1252a16b
+0, 100600, 192000, 0xb36c06c6
+1, 100600, 736, 0x04279e74
+0, 102102, 192000, 0xd65746b1
+1, 102102, 736, 0x9c2ecb2e
+0, 103603, 192000, 0x2817079b
+1, 103603, 736, 0x6c16945a
+0, 105105, 192000, 0xadb60837
+1, 105105, 736, 0x2c0cc1f9
+0, 106606, 192000, 0x60cb0d87
+1, 106606, 736, 0x52fba868
+0, 108108, 192000, 0x14e5b02b
+1, 108108, 736, 0xe2a2a5be
+0, 109609, 192000, 0x574fd8f4
+1, 109609, 736, 0x2f56a95b
+0, 111111, 192000, 0xffb9a8fa
+1, 111111, 736, 0x573196a0
+0, 112612, 192000, 0xc2904a3e
+1, 112612, 736, 0xb542c1dc
+0, 114114, 192000, 0x22e77c9b
+1, 114114, 736, 0x7f6a9964
+0, 115615, 192000, 0xd76d81c2
+1, 115615, 736, 0xc39db324
+0, 117117, 192000, 0xf5b0fcc8
+1, 117117, 736, 0xa2dbb058
+0, 118618, 192000, 0xc452ce4d
+1, 118618, 736, 0x8bfac722
+0, 120120, 192000, 0x64a53e4f
+1, 120120, 736, 0x5e679406
+0, 121621, 192000, 0xe6c115da
+1, 121621, 736, 0xd7a8c2aa
+0, 123123, 192000, 0x959d45fe
+1, 123123, 736, 0x5ec6a7a0
+0, 124624, 192000, 0xabb270b6
+1, 124624, 736, 0x9f33c47f
+0, 126126, 192000, 0x451642b8
+1, 126126, 736, 0x4c4998bf
+0, 127627, 192000, 0x028b2202
+1, 127627, 736, 0x2363c344
+0, 129129, 192000, 0xf5d79b86
+1, 129129, 736, 0xecf9a09f
+0, 130630, 192000, 0xebe0623e
+1, 130630, 736, 0x5a069e69
+0, 132132, 192000, 0x7560d1eb
+1, 132132, 736, 0xe2e5b106
+0, 133633, 192000, 0xcbf85785
+1, 133633, 736, 0x7ff4b09e
+0, 135135, 192000, 0x180f6aca
+1, 135135, 736, 0x0157acd2
+0, 136636, 192000, 0xea8ecb95
+1, 136636, 736, 0x64849b5a
+0, 138138, 192000, 0x6a5e3639
+1, 138138, 736, 0x0399b037
+0, 139639, 192000, 0x5aa6c22c
+1, 139639, 736, 0xa57ea80f
+0, 141141, 192000, 0xdbb50948
+1, 141141, 736, 0x233eb2a4
+0, 142642, 192000, 0x0184a90a
+1, 142642, 736, 0x8aa5dfa0
+0, 144144, 192000, 0x0efc1358
+1, 144144, 736, 0x0c9fa877
+0, 145645, 192000, 0x29053255
+1, 145645, 736, 0xbe6faef2
+0, 147147, 192000, 0x3a7e239d
+1, 147147, 736, 0xf800c0f2
+0, 148648, 192000, 0x3bd99ca5
+1, 148648, 736, 0x1d68a964
+0, 150150, 192000, 0xe1b5a4d6
+1, 150150, 736, 0x0e4f8872
+0, 151651, 192000, 0xf487f8bb
+1, 151651, 736, 0x31c6ed1c
+0, 153153, 192000, 0x8b14387c
+1, 153153, 736, 0x7448a8d2
+0, 154654, 192000, 0xdaeb9cb4
+1, 154654, 736, 0x79a2ac09
+0, 156156, 192000, 0xdc1d2f5b
+1, 156156, 736, 0xbdbfa397
+0, 157657, 192000, 0x4dcab167
+1, 157657, 736, 0xa5deb8bb
+0, 159159, 192000, 0x87fcf0d3
+1, 159159, 736, 0x4565d179
+0, 160660, 192000, 0x36d37542
+1, 160660, 736, 0x64d89f91
+0, 162162, 192000, 0x59ba49c5
+1, 162162, 736, 0x32319f68
+0, 163663, 192000, 0xf679b712
+1, 163663, 736, 0x3efdc04f
diff --git a/tests/ref/fate/tscc-15bit b/tests/ref/fate/tscc-15bit
new file mode 100644
index 0000000000..fb4d558e0c
--- /dev/null
+++ b/tests/ref/fate/tscc-15bit
@@ -0,0 +1,240 @@
+1, 0, 22050, 0x1740aaec
+0, 0, 657600, 0xaf456809
+0, 6000, 657600, 0xaf456809
+0, 12000, 657600, 0xaf456809
+0, 18000, 657600, 0x2dbe6889
+0, 24000, 657600, 0x2dbe6889
+0, 30000, 657600, 0x2dbe6889
+0, 36000, 657600, 0x2dbe6889
+0, 42000, 657600, 0x2dbe6889
+0, 48000, 657600, 0x2dbe6889
+0, 54000, 657600, 0x2dbe6889
+0, 60000, 657600, 0x2dbe6889
+0, 66000, 657600, 0x2dbe6889
+0, 72000, 657600, 0x2dbe6889
+0, 78000, 657600, 0x2dbe6889
+0, 84000, 657600, 0x2dbe6889
+1, 90000, 22050, 0x75ed6086
+0, 90000, 657600, 0x2dbe6889
+0, 96000, 657600, 0x2dbe6889
+0, 102000, 657600, 0x2dbe6889
+0, 108000, 657600, 0x2dbe6889
+0, 114000, 657600, 0x2dbe6889
+0, 120000, 657600, 0x2dbe6889
+0, 126000, 657600, 0x92796e59
+0, 132000, 657600, 0x92796e59
+0, 138000, 657600, 0x92796e59
+0, 144000, 657600, 0x64cb6889
+0, 150000, 657600, 0x64cb6889
+0, 156000, 657600, 0x64cb6889
+0, 162000, 657600, 0x64cb6889
+0, 168000, 657600, 0x64cb6889
+0, 174000, 657600, 0x64cb6889
+1, 180000, 22050, 0xca52a4e9
+0, 180000, 657600, 0x42036b71
+0, 186000, 657600, 0x42036b71
+0, 192000, 657600, 0x42036b71
+0, 198000, 657600, 0xc40a6889
+0, 204000, 657600, 0xc40a6889
+0, 210000, 657600, 0xc40a6889
+0, 216000, 657600, 0xaa6f7429
+0, 222000, 657600, 0xaa6f7429
+0, 228000, 657600, 0xaa6f7429
+0, 234000, 657600, 0x854172d9
+0, 240000, 657600, 0x854172d9
+0, 246000, 657600, 0x854172d9
+0, 252000, 657600, 0x22d10de0
+0, 258000, 657600, 0xa75f0d60
+0, 264000, 657600, 0x7a440be0
+1, 270000, 22050, 0xb306d419
+0, 270000, 657600, 0x40095d50
+0, 276000, 657600, 0x40095d50
+0, 282000, 657600, 0x64766320
+0, 288000, 657600, 0x64766320
+0, 294000, 657600, 0x64766320
+0, 300000, 657600, 0x64766320
+0, 306000, 657600, 0x64766320
+0, 312000, 657600, 0x64766320
+0, 318000, 657600, 0x64766320
+0, 324000, 657600, 0x64766320
+0, 330000, 657600, 0x64766320
+0, 336000, 657600, 0x64766320
+0, 342000, 657600, 0xf51adc49
+0, 348000, 657600, 0xf51adc49
+0, 354000, 657600, 0xf51adc49
+1, 360000, 22050, 0x8cbb9625
+0, 360000, 657600, 0xdd47af59
+0, 366000, 657600, 0xdd47af59
+0, 372000, 657600, 0xffa8acf1
+0, 378000, 657600, 0x5994b059
+0, 384000, 657600, 0x5994b059
+0, 390000, 657600, 0x5994b059
+0, 396000, 657600, 0x03ffae71
+0, 402000, 657600, 0x03ffae71
+0, 408000, 657600, 0x03ffae71
+0, 414000, 657600, 0xe33ab89e
+0, 420000, 657600, 0xe33ab89e
+0, 426000, 657600, 0xe33ab89e
+0, 432000, 657600, 0xbe37b549
+0, 438000, 657600, 0xbe37b549
+0, 444000, 657600, 0x1d395bf9
+1, 450000, 22050, 0x34a11f66
+0, 450000, 657600, 0x1d395bf9
+0, 456000, 657600, 0x1d395bf9
+0, 462000, 657600, 0x1d395bf9
+0, 468000, 657600, 0x2ec36f37
+0, 474000, 657600, 0x2ec36f37
+0, 480000, 657600, 0xb04a6eb7
+0, 486000, 657600, 0x66610458
+0, 492000, 657600, 0x66610458
+0, 498000, 657600, 0xaf8901f0
+0, 504000, 657600, 0x3ae41c48
+0, 510000, 657600, 0x5b870b70
+0, 516000, 657600, 0x11490c60
+0, 522000, 657600, 0x70064801
+0, 528000, 657600, 0x80d54519
+0, 534000, 657600, 0xe8c942b1
+1, 540000, 22050, 0x1ae81230
+0, 540000, 657600, 0x830d8c24
+0, 546000, 657600, 0x830d8c24
+0, 552000, 657600, 0x830d8c24
+0, 558000, 657600, 0xf3c4707c
+0, 564000, 657600, 0x6ace707c
+0, 570000, 657600, 0x6ace707c
+0, 576000, 657600, 0x6ace707c
+0, 582000, 657600, 0x6ace707c
+0, 588000, 657600, 0x6ace707c
+0, 594000, 657600, 0x5f461aae
+0, 600000, 657600, 0x5f461aae
+0, 606000, 657600, 0x221ceecf
+0, 612000, 657600, 0x221ceecf
+0, 618000, 657600, 0x221ceecf
+0, 624000, 657600, 0x221ceecf
+1, 630000, 22050, 0x1217eeba
+0, 630000, 657600, 0x221ceecf
+0, 636000, 657600, 0x221ceecf
+0, 642000, 657600, 0x221ceecf
+0, 648000, 657600, 0x3bf6f39f
+0, 654000, 657600, 0x3bf6f39f
+0, 660000, 657600, 0x3bf6f39f
+0, 666000, 657600, 0xc2caeecf
+0, 672000, 657600, 0xc2caeecf
+0, 678000, 657600, 0xc2caeecf
+0, 684000, 657600, 0xc316d63e
+0, 690000, 657600, 0xc316d63e
+0, 696000, 657600, 0xc316d63e
+0, 702000, 657600, 0x41f6218d
+0, 708000, 657600, 0x41f6218d
+0, 714000, 657600, 0x41f6218d
+1, 720000, 22050, 0x50e70baa
+0, 720000, 657600, 0xff43ec36
+0, 726000, 657600, 0x0b10eb16
+0, 732000, 657600, 0x0b10eb16
+0, 738000, 657600, 0xbdf41aa5
+0, 744000, 657600, 0xbdf41aa5
+0, 750000, 657600, 0xbdf41aa5
+0, 756000, 657600, 0xd502ca06
+0, 762000, 657600, 0xd502ca06
+0, 768000, 657600, 0xd502ca06
+0, 774000, 657600, 0x8446f89e
+0, 780000, 657600, 0x8446f89e
+0, 786000, 657600, 0x8446f89e
+0, 792000, 657600, 0x3d4ccf06
+0, 798000, 657600, 0x0897d1de
+0, 804000, 657600, 0x0897d1de
+1, 810000, 22050, 0xb19e89c0
+0, 810000, 657600, 0x3e27e01e
+0, 816000, 657600, 0x3e27e01e
+0, 822000, 657600, 0x3e27e01e
+0, 828000, 657600, 0x3e27e01e
+0, 834000, 657600, 0x3e27e01e
+0, 840000, 657600, 0x3e27e01e
+0, 846000, 657600, 0xe51078a8
+0, 852000, 657600, 0xe51078a8
+0, 858000, 657600, 0xe9967a40
+0, 864000, 657600, 0xe9967a40
+0, 870000, 657600, 0xe9967a40
+0, 876000, 657600, 0xe9967a40
+0, 882000, 657600, 0xe9967a40
+0, 888000, 657600, 0xe9967a40
+0, 894000, 657600, 0xe9967a40
+1, 900000, 22050, 0x78526696
+0, 900000, 657600, 0x726cb6b8
+0, 906000, 657600, 0x2960b6e8
+0, 912000, 657600, 0x2960b6e8
+0, 918000, 657600, 0x1637d6c8
+0, 924000, 657600, 0x6f2fd9b0
+0, 930000, 657600, 0x27a7d6c8
+0, 936000, 657600, 0xe855d6c8
+0, 942000, 657600, 0xe855d6c8
+0, 948000, 657600, 0xe855d6c8
+0, 954000, 657600, 0x1a8ad6c8
+0, 960000, 657600, 0x9c11d648
+0, 966000, 657600, 0x6136d648
+0, 972000, 657600, 0xdfa0d6c8
+0, 978000, 657600, 0xdfa0d6c8
+0, 984000, 657600, 0xdfa0d6c8
+1, 990000, 22050, 0x48e3bb21
+0, 990000, 657600, 0xdfa0d6c8
+0, 996000, 657600, 0xdfa0d6c8
+0, 1002000, 657600, 0xdfa0d6c8
+0, 1008000, 657600, 0xdfa0d6c8
+0, 1014000, 657600, 0xdfa0d6c8
+0, 1020000, 657600, 0xdfa0d6c8
+0, 1026000, 657600, 0x125cd9b0
+0, 1032000, 657600, 0x125cd9b0
+0, 1038000, 657600, 0x8a7ed6c8
+0, 1044000, 657600, 0x09a6d9b0
+0, 1050000, 657600, 0x09a6d9b0
+0, 1056000, 657600, 0x09a6d9b0
+0, 1062000, 657600, 0x85e87a68
+0, 1068000, 657600, 0x85e87a68
+0, 1074000, 657600, 0x85e87a68
+1, 1080000, 22050, 0xbc32204a
+0, 1080000, 657600, 0xb0a141a8
+0, 1086000, 657600, 0xb0a141a8
+0, 1092000, 657600, 0xf3333bd8
+0, 1098000, 657600, 0xea090688
+0, 1104000, 657600, 0xa017fe41
+0, 1110000, 657600, 0xa017fe41
+0, 1116000, 657600, 0x32e93bd8
+0, 1122000, 657600, 0x7fe640c0
+0, 1128000, 657600, 0x7fe640c0
+0, 1134000, 657600, 0xcd8995b2
+0, 1140000, 657600, 0x84278a92
+0, 1146000, 657600, 0x84278a92
+0, 1152000, 657600, 0xf1d2874a
+0, 1158000, 657600, 0xf1d2874a
+0, 1164000, 657600, 0xf1d2874a
+1, 1170000, 22050, 0xdf6f1e46
+0, 1170000, 657600, 0xa58d6742
+0, 1176000, 657600, 0xa58d6742
+0, 1182000, 657600, 0xa58d6742
+0, 1188000, 657600, 0xb0cd11bb
+0, 1194000, 657600, 0xb0cd11bb
+0, 1200000, 657600, 0xc55610bb
+0, 1206000, 657600, 0x4ee1168b
+0, 1212000, 657600, 0x61c513a3
+0, 1218000, 657600, 0xd26410bb
+0, 1224000, 657600, 0xe7c410bb
+0, 1230000, 657600, 0x444a0dd3
+0, 1236000, 657600, 0x444a0dd3
+0, 1242000, 657600, 0x97ac10bb
+0, 1248000, 657600, 0x97ac10bb
+0, 1254000, 657600, 0xe8b30dd3
+1, 1260000, 22050, 0x4c91da9d
+0, 1260000, 657600, 0x3d0c10bb
+0, 1266000, 657600, 0x8d2b0dd3
+0, 1272000, 657600, 0x8d2b0dd3
+0, 1278000, 657600, 0xa5760dd3
+0, 1284000, 657600, 0xa5760dd3
+0, 1290000, 657600, 0xa5760dd3
+0, 1296000, 657600, 0x31a30dd3
+0, 1302000, 657600, 0x31a30dd3
+0, 1308000, 657600, 0x31a30dd3
+0, 1314000, 657600, 0x31a30dd3
+0, 1320000, 657600, 0x31a30dd3
+0, 1326000, 657600, 0x31a30dd3
+0, 1332000, 657600, 0x31a30dd3
+0, 1338000, 657600, 0x31a30dd3
+0, 1344000, 657600, 0x31a30dd3
diff --git a/tests/ref/fate/tscc-32bit b/tests/ref/fate/tscc-32bit
new file mode 100644
index 0000000000..dd888a85f2
--- /dev/null
+++ b/tests/ref/fate/tscc-32bit
@@ -0,0 +1,159 @@
+0, 0, 2359296, 0x76cccaa7
+0, 6000, 2359296, 0x09c52bbf
+0, 12000, 2359296, 0xc8746009
+0, 18000, 2359296, 0xe48ff59b
+0, 24000, 2359296, 0xa2f1fddb
+0, 30000, 2359296, 0xbb0e0026
+0, 36000, 2359296, 0x66a905ab
+0, 42000, 2359296, 0xe990f855
+0, 48000, 2359296, 0xe990f855
+0, 54000, 2359296, 0x3ec2c64e
+0, 60000, 2359296, 0xda3ba3cf
+0, 66000, 2359296, 0xda3ba3cf
+0, 72000, 2359296, 0xda3ba3cf
+0, 78000, 2359296, 0x60a070fd
+0, 84000, 2359296, 0x42e5fedc
+0, 90000, 2359296, 0x42e5fedc
+0, 96000, 2359296, 0x699cf990
+0, 102000, 2359296, 0x699cf990
+0, 108000, 2359296, 0x699cf990
+0, 114000, 2359296, 0x699cf990
+0, 120000, 2359296, 0x699cf990
+0, 126000, 2359296, 0x699cf990
+0, 132000, 2359296, 0x699cf990
+0, 138000, 2359296, 0x1524160c
+0, 144000, 2359296, 0x1524160c
+0, 150000, 2359296, 0x1524160c
+0, 156000, 2359296, 0x1524160c
+0, 162000, 2359296, 0x1524160c
+0, 168000, 2359296, 0x1524160c
+0, 174000, 2359296, 0x1524160c
+0, 180000, 2359296, 0x33df0c8c
+0, 186000, 2359296, 0x33df0c8c
+0, 192000, 2359296, 0x33df0c8c
+0, 198000, 2359296, 0x33df0c8c
+0, 204000, 2359296, 0x33df0c8c
+0, 210000, 2359296, 0x33df0c8c
+0, 216000, 2359296, 0x33df0c8c
+0, 222000, 2359296, 0xfe3d29f8
+0, 228000, 2359296, 0xfe3d29f8
+0, 234000, 2359296, 0xfe3d29f8
+0, 240000, 2359296, 0xfe3d29f8
+0, 246000, 2359296, 0xfe3d29f8
+0, 252000, 2359296, 0xfe3d29f8
+0, 258000, 2359296, 0xfe3d29f8
+0, 264000, 2359296, 0x1b9d197f
+0, 270000, 2359296, 0x1b9d197f
+0, 276000, 2359296, 0x1b9d197f
+0, 282000, 2359296, 0x1b9d197f
+0, 288000, 2359296, 0x1b9d197f
+0, 294000, 2359296, 0x1b9d197f
+0, 300000, 2359296, 0x1b9d197f
+0, 306000, 2359296, 0x48c126fb
+0, 312000, 2359296, 0x48c126fb
+0, 318000, 2359296, 0x48c126fb
+0, 324000, 2359296, 0x48c126fb
+0, 330000, 2359296, 0x48c126fb
+0, 336000, 2359296, 0x48c126fb
+0, 342000, 2359296, 0x48c126fb
+0, 348000, 2359296, 0xcaa31c7c
+0, 354000, 2359296, 0xcaa31c7c
+0, 360000, 2359296, 0xcaa31c7c
+0, 366000, 2359296, 0xcaa31c7c
+0, 372000, 2359296, 0xcaa31c7c
+0, 378000, 2359296, 0xcaa31c7c
+0, 384000, 2359296, 0xcaa31c7c
+0, 390000, 2359296, 0xc6a333ee
+0, 396000, 2359296, 0xc6a333ee
+0, 402000, 2359296, 0xc6a333ee
+0, 408000, 2359296, 0xc6a333ee
+0, 414000, 2359296, 0xc6a333ee
+0, 420000, 2359296, 0xc6a333ee
+0, 426000, 2359296, 0xc6a333ee
+0, 432000, 2359296, 0xb96d1583
+0, 438000, 2359296, 0xb96d1583
+0, 444000, 2359296, 0xb96d1583
+0, 450000, 2359296, 0xb96d1583
+0, 456000, 2359296, 0xb96d1583
+0, 462000, 2359296, 0xb96d1583
+0, 468000, 2359296, 0xb96d1583
+0, 474000, 2359296, 0x878135ec
+0, 480000, 2359296, 0x878135ec
+0, 486000, 2359296, 0x878135ec
+0, 492000, 2359296, 0x878135ec
+0, 498000, 2359296, 0x878135ec
+0, 504000, 2359296, 0x878135ec
+0, 510000, 2359296, 0x878135ec
+0, 516000, 2359296, 0x878135ec
+0, 522000, 2359296, 0x76922870
+0, 528000, 2359296, 0x76922870
+0, 534000, 2359296, 0x76922870
+0, 540000, 2359296, 0x76922870
+0, 546000, 2359296, 0x76922870
+0, 552000, 2359296, 0x76922870
+0, 558000, 2359296, 0x76922870
+0, 564000, 2359296, 0xb0e031f0
+0, 570000, 2359296, 0xb0e031f0
+0, 576000, 2359296, 0xb0e031f0
+0, 582000, 2359296, 0xb0e031f0
+0, 588000, 2359296, 0xb0e031f0
+0, 594000, 2359296, 0xb0e031f0
+0, 600000, 2359296, 0xb0e031f0
+0, 606000, 2359296, 0xb2ef2a6e
+0, 612000, 2359296, 0xb2ef2a6e
+0, 618000, 2359296, 0xb2ef2a6e
+0, 624000, 2359296, 0x083c2474
+0, 630000, 2359296, 0x083c2474
+0, 636000, 2359296, 0x083c2474
+0, 642000, 2359296, 0x083c2474
+0, 648000, 2359296, 0xbdfe2ef3
+0, 654000, 2359296, 0xbdfe2ef3
+0, 660000, 2359296, 0xbdfe2ef3
+0, 666000, 2359296, 0xbdfe2ef3
+0, 672000, 2359296, 0xbdfe2ef3
+0, 678000, 2359296, 0xbdfe2ef3
+0, 684000, 2359296, 0xbdfe2ef3
+0, 690000, 2359296, 0x934b1484
+0, 696000, 2359296, 0x934b1484
+0, 702000, 2359296, 0x934b1484
+0, 708000, 2359296, 0x934b1484
+0, 714000, 2359296, 0x3e0d1a7e
+0, 720000, 2359296, 0x3e0d1a7e
+0, 726000, 2359296, 0x3e0d1a7e
+0, 732000, 2359296, 0x3ce539e8
+0, 738000, 2359296, 0x3ce539e8
+0, 744000, 2359296, 0x3ce539e8
+0, 750000, 2359296, 0x3ce539e8
+0, 756000, 2359296, 0x3ce539e8
+0, 762000, 2359296, 0x3ce539e8
+0, 768000, 2359296, 0x3ce539e8
+0, 774000, 2359296, 0xd46c2f69
+0, 780000, 2359296, 0xd46c2f69
+0, 786000, 2359296, 0xd46c2f69
+0, 792000, 2359296, 0xd46c2f69
+0, 798000, 2359296, 0xd46c2f69
+0, 804000, 2359296, 0xd46c2f69
+0, 810000, 2359296, 0xd46c2f69
+0, 816000, 2359296, 0x8d2933ee
+0, 822000, 2359296, 0x8d2933ee
+0, 828000, 2359296, 0x8d2933ee
+0, 834000, 2359296, 0x8d2933ee
+0, 840000, 2359296, 0x8d2933ee
+0, 846000, 2359296, 0x8d2933ee
+0, 852000, 2359296, 0x8d2933ee
+0, 858000, 2359296, 0xb6092b6d
+0, 864000, 2359296, 0xb6092b6d
+0, 870000, 2359296, 0xb6092b6d
+0, 876000, 2359296, 0xb6092b6d
+0, 882000, 2359296, 0xb6092b6d
+0, 888000, 2359296, 0xb6092b6d
+0, 894000, 2359296, 0xb6092b6d
+0, 900000, 2359296, 0xe4ef27fa
+0, 906000, 2359296, 0xe4ef27fa
+0, 912000, 2359296, 0xe4ef27fa
+0, 918000, 2359296, 0xe4ef27fa
+0, 924000, 2359296, 0xe4ef27fa
+0, 930000, 2359296, 0xe4ef27fa
+0, 936000, 2359296, 0xe4ef27fa
+0, 942000, 2359296, 0x5e5b2672
+0, 948000, 2359296, 0x5e5b2672
diff --git a/tests/ref/fate/ulti b/tests/ref/fate/ulti
new file mode 100644
index 0000000000..820dcfda1c
--- /dev/null
+++ b/tests/ref/fate/ulti
@@ -0,0 +1,62 @@
+0, 0, 86400, 0x5d58253d
+0, 7500, 86400, 0x0626d90d
+0, 15000, 86400, 0x4ecb5048
+0, 22500, 86400, 0xf54ea8f7
+0, 30000, 86400, 0xa777c21b
+0, 37500, 86400, 0x7d71e329
+0, 45000, 86400, 0x2903252a
+0, 52500, 86400, 0xbe7302c1
+0, 60000, 86400, 0x734423a8
+0, 67500, 86400, 0x4f422bab
+0, 75000, 86400, 0x21fbf200
+0, 82500, 86400, 0xabf299a7
+0, 90000, 86400, 0x400b4bf8
+0, 97500, 86400, 0x61d044f9
+0, 105000, 86400, 0x72fb94af
+0, 112500, 86400, 0xf522e717
+0, 120000, 86400, 0xad3e0297
+0, 127500, 86400, 0xbef57a5f
+0, 135000, 86400, 0x450ca6e7
+0, 142500, 86400, 0x76ae56e6
+0, 150000, 86400, 0x7b9b7555
+0, 157500, 86400, 0xb522ce0d
+0, 165000, 86400, 0xaa9b8536
+0, 172500, 86400, 0x019d00c4
+0, 180000, 86400, 0xb0f4dee5
+0, 187500, 86400, 0xa7482e52
+0, 195000, 86400, 0x3c87fc35
+0, 202500, 86400, 0xb6d1dede
+0, 210000, 86400, 0x926ee647
+0, 217500, 86400, 0x8747bfc7
+0, 225000, 86400, 0x61569e9b
+0, 232500, 86400, 0x9209a5f6
+0, 240000, 86400, 0x5f89ef12
+0, 247500, 86400, 0x00bfc18f
+0, 255000, 86400, 0xcc6f2f62
+0, 262500, 86400, 0x3ab9cfbf
+0, 270000, 86400, 0x936f2386
+0, 277500, 86400, 0x2203a76c
+0, 285000, 86400, 0xd3d248a3
+0, 292500, 86400, 0x148af7b8
+0, 300000, 86400, 0x437bffae
+0, 307500, 86400, 0x6876c6d5
+0, 315000, 86400, 0x49fc1429
+0, 322500, 86400, 0x181efd2c
+0, 330000, 86400, 0x26ecd294
+0, 337500, 86400, 0xdcdb609e
+0, 345000, 86400, 0xd3cb0ecb
+0, 352500, 86400, 0x528ffc4b
+0, 360000, 86400, 0xb536c7b4
+0, 367500, 86400, 0xae4ab8c5
+0, 375000, 86400, 0xe14fee77
+0, 382500, 86400, 0xcd3e9e85
+0, 390000, 86400, 0x71cfba54
+0, 397500, 86400, 0x9b309c62
+0, 405000, 86400, 0x91b31881
+0, 412500, 86400, 0xae8bda28
+0, 420000, 86400, 0x8db0f87a
+0, 427500, 86400, 0xcd974e98
+0, 435000, 86400, 0x4405116e
+0, 442500, 86400, 0xfe4cc7b4
+0, 450000, 86400, 0x17d27206
+0, 457500, 86400, 0x11743762
diff --git a/tests/ref/fate/v210 b/tests/ref/fate/v210
new file mode 100644
index 0000000000..8cbf7df787
--- /dev/null
+++ b/tests/ref/fate/v210
@@ -0,0 +1 @@
+0, 0, 3686400, 0x8d5c3847
diff --git a/tests/ref/fate/vc1 b/tests/ref/fate/vc1
new file mode 100644
index 0000000000..737dad0453
--- /dev/null
+++ b/tests/ref/fate/vc1
@@ -0,0 +1,2 @@
+0, 0, 38016, 0xf1b25db5
+0, 0, 38016, 0xf1b25db5
diff --git a/tests/ref/fate/vcr1 b/tests/ref/fate/vcr1
new file mode 100644
index 0000000000..22f817c6a3
--- /dev/null
+++ b/tests/ref/fate/vcr1
@@ -0,0 +1,128 @@
+0, 0, 28512, 0x7165286d
+0, 5949, 28512, 0x2b842acc
+0, 11898, 28512, 0x6d1b8e85
+0, 17847, 28512, 0xc5042fab
+0, 23796, 28512, 0x8b84fa8d
+0, 29745, 28512, 0x2ba34ee5
+0, 35693, 28512, 0x48493c3a
+0, 41642, 28512, 0xbd774ff0
+0, 47591, 28512, 0xf2e2edcd
+0, 53540, 28512, 0x9364c39e
+0, 59489, 28512, 0x7203d4d0
+0, 65438, 28512, 0x3771e23e
+0, 71387, 28512, 0xf332b71e
+0, 77336, 28512, 0x64d9aedb
+0, 83285, 28512, 0xc8f9cdbe
+0, 89234, 28512, 0xf077a6e8
+0, 95183, 28512, 0xa9958897
+0, 101131, 28512, 0x89fb6c6e
+0, 107080, 28512, 0x05b7350c
+0, 113029, 28512, 0x23cf3ec8
+0, 118978, 28512, 0xf9105aa6
+0, 124927, 28512, 0x37ed48cb
+0, 130876, 28512, 0xf4b15ce3
+0, 136825, 28512, 0x64b994b8
+0, 142774, 28512, 0x6731c26b
+0, 148723, 28512, 0x650d110b
+0, 154672, 28512, 0xbbb248ca
+0, 160621, 28512, 0x426ab4ab
+0, 166569, 28512, 0xb7f2e361
+0, 172518, 28512, 0xced16599
+0, 178467, 28512, 0xebf11860
+0, 184416, 28512, 0xefe1df5f
+0, 190365, 28512, 0x2afc432e
+0, 196314, 28512, 0x07bd3eea
+0, 202263, 28512, 0x8b133899
+0, 208212, 28512, 0x0830f148
+0, 214161, 28512, 0x871fc549
+0, 220110, 28512, 0x0082c863
+0, 226059, 28512, 0x6144bdce
+0, 232007, 28512, 0x0af772ea
+0, 237956, 28512, 0x982b8707
+0, 243905, 28512, 0x565a3bfe
+0, 249854, 28512, 0xdf14192e
+0, 255803, 28512, 0x0c5ffcc1
+0, 261752, 28512, 0x87532564
+0, 267701, 28512, 0x0ba1661b
+0, 273650, 28512, 0xd0e7a750
+0, 279599, 28512, 0x5add4281
+0, 285548, 28512, 0x9f45c597
+0, 291497, 28512, 0x921736d0
+0, 297446, 28512, 0xab177a89
+0, 303394, 28512, 0xb83a6f7c
+0, 309343, 28512, 0x9bf6716b
+0, 315292, 28512, 0xc8ca0f4f
+0, 321241, 28512, 0x2ca6c753
+0, 327190, 28512, 0xc2f67d1f
+0, 333139, 28512, 0x9b0e1d7b
+0, 339088, 28512, 0x5257c5d0
+0, 345037, 28512, 0xf256bd2f
+0, 350986, 28512, 0x1b04bd04
+0, 356935, 28512, 0x83deb9e4
+0, 362884, 28512, 0x5f3aa6b4
+0, 368832, 28512, 0x9313c5f3
+0, 374781, 28512, 0x1cfe0c23
+0, 380730, 28512, 0x3e9b37bf
+0, 386679, 28512, 0x1603b386
+0, 392628, 28512, 0x3e70da87
+0, 398577, 28512, 0xa6684712
+0, 404526, 28512, 0x0454bbb7
+0, 410475, 28512, 0x7cf2f717
+0, 416424, 28512, 0xdfbd424c
+0, 422373, 28512, 0x7318a177
+0, 428322, 28512, 0xbffcd503
+0, 434270, 28512, 0x85db177d
+0, 440219, 28512, 0x2a8269d1
+0, 446168, 28512, 0xb5455cd5
+0, 452117, 28512, 0x5fd79a35
+0, 458066, 28512, 0xc1a7c005
+0, 464015, 28512, 0x55230bb0
+0, 469964, 28512, 0x5acf45d9
+0, 475913, 28512, 0xdf1259bf
+0, 481862, 28512, 0xe04e87eb
+0, 487811, 28512, 0xfd25abc0
+0, 493760, 28512, 0x38c4d017
+0, 499708, 28512, 0x7b15d521
+0, 505657, 28512, 0xb156b981
+0, 511606, 28512, 0xcc99cd09
+0, 517555, 28512, 0x633a9cec
+0, 523504, 28512, 0xf00a7c1b
+0, 529453, 28512, 0x426250e9
+0, 535402, 28512, 0xfad02714
+0, 541351, 28512, 0x1ea5d8d2
+0, 547300, 28512, 0x581ea622
+0, 553249, 28512, 0x6b225f61
+0, 559198, 28512, 0x68f337e6
+0, 565146, 28512, 0x85f7060e
+0, 571095, 28512, 0xaa3b1086
+0, 577044, 28512, 0x91fa1371
+0, 582993, 28512, 0x92acd34a
+0, 588942, 28512, 0x0ae8c1e6
+0, 594891, 28512, 0x1335a5b3
+0, 600840, 28512, 0xc364a5e7
+0, 606789, 28512, 0x19b9819a
+0, 612738, 28512, 0xd42d7045
+0, 618687, 28512, 0x4c866a18
+0, 624636, 28512, 0xf0a99685
+0, 630584, 28512, 0x47a4a1bd
+0, 636533, 28512, 0x8dd09006
+0, 642482, 28512, 0x3f0b742d
+0, 648431, 28512, 0x1acf52be
+0, 654380, 28512, 0x9e5d1460
+0, 660329, 28512, 0xd6852de9
+0, 666278, 28512, 0x36e00f16
+0, 672227, 28512, 0xe83dea09
+0, 678176, 28512, 0xbb71daf1
+0, 684125, 28512, 0xaeedf763
+0, 690074, 28512, 0xa793ed91
+0, 696022, 28512, 0x9b0f093f
+0, 701971, 28512, 0xc8504b43
+0, 707920, 28512, 0x08c68319
+0, 713869, 28512, 0x2284b24a
+0, 719818, 28512, 0x5980e906
+0, 725767, 28512, 0x6ffd2c14
+0, 731716, 28512, 0x5c6c3c27
+0, 737665, 28512, 0x20d2efec
+0, 743614, 28512, 0x69ffec11
+0, 749563, 28512, 0x8721f8ab
+0, 755512, 28512, 0xb606e164
diff --git a/tests/ref/fate/video-xl b/tests/ref/fate/video-xl
new file mode 100644
index 0000000000..aca08645a7
--- /dev/null
+++ b/tests/ref/fate/video-xl
@@ -0,0 +1,40 @@
+0, 0, 36096, 0xab1c53c1
+0, 12780, 36096, 0x8b598ff3
+0, 25560, 36096, 0xe9a5f3eb
+0, 38340, 36096, 0x10584b30
+0, 51120, 36096, 0x19d8c5d2
+0, 63900, 36096, 0x43a453b9
+0, 76680, 36096, 0xb32db13b
+0, 89460, 36096, 0xf117e7b3
+0, 102240, 36096, 0x9171fb33
+0, 115020, 36096, 0xdf84081c
+0, 127800, 36096, 0xc9d9527e
+0, 140580, 36096, 0x72fa295e
+0, 153360, 36096, 0xce02060e
+0, 166140, 36096, 0x31f5fdbd
+0, 178920, 36096, 0x4179dc07
+0, 191700, 36096, 0xf250c03f
+0, 204480, 36096, 0xc4aca7c5
+0, 217260, 36096, 0xd9b1837f
+0, 230040, 36096, 0x0af164ef
+0, 242820, 36096, 0x90123fcd
+0, 255600, 36096, 0x60392815
+0, 268380, 36096, 0x7a7b0ac9
+0, 281160, 36096, 0x36c1fe9c
+0, 293940, 36096, 0x50bed8a4
+0, 306720, 36096, 0x10f3b998
+0, 319500, 36096, 0x18e5b516
+0, 332280, 36096, 0x860597dc
+0, 345060, 36096, 0x05488146
+0, 357840, 36096, 0xac577cec
+0, 370620, 36096, 0xc9f95550
+0, 383400, 36096, 0xa0c95270
+0, 396180, 36096, 0x977c5bf2
+0, 408960, 36096, 0xc9f95550
+0, 421740, 36096, 0xa0c95270
+0, 434520, 36096, 0x977c5bf2
+0, 447300, 36096, 0xc9f95550
+0, 460080, 36096, 0xa0c95270
+0, 472860, 36096, 0x977c5bf2
+0, 485640, 36096, 0xc9f95550
+0, 498420, 36096, 0xa0c95270
diff --git a/tests/ref/fate/vmnc-16bit b/tests/ref/fate/vmnc-16bit
new file mode 100644
index 0000000000..a298877bff
--- /dev/null
+++ b/tests/ref/fate/vmnc-16bit
@@ -0,0 +1,192 @@
+0, 0, 864000, 0x9b1cee65
+0, 18000, 864000, 0x82950e3f
+0, 36000, 864000, 0x335f9678
+0, 54000, 864000, 0x6b86b7e7
+0, 72000, 864000, 0x25618cf2
+0, 90000, 864000, 0xed2196c9
+0, 108000, 864000, 0xbeaa31ba
+0, 126000, 864000, 0x14e6c8ab
+0, 144000, 864000, 0x17e5c196
+0, 162000, 864000, 0x4aa15110
+0, 180000, 864000, 0x4aa15110
+0, 198000, 864000, 0x4aa15110
+0, 216000, 864000, 0x3c2d3809
+0, 234000, 864000, 0xd075f4d0
+0, 252000, 864000, 0x0c3f2833
+0, 270000, 864000, 0xe7471872
+0, 288000, 864000, 0x4300b71d
+0, 306000, 864000, 0x6b5844ec
+0, 324000, 864000, 0xb3ebc395
+0, 342000, 864000, 0x39aa8a7d
+0, 360000, 864000, 0x52a3d93d
+0, 378000, 864000, 0x73adbdac
+0, 396000, 864000, 0xa9fd6cdc
+0, 414000, 864000, 0x4a085344
+0, 432000, 864000, 0xc21b943c
+0, 450000, 864000, 0xfaef6ed4
+0, 468000, 864000, 0xa3e9163c
+0, 486000, 864000, 0x917e2be4
+0, 504000, 864000, 0x2d89d534
+0, 522000, 864000, 0x6fe5a9e4
+0, 540000, 864000, 0x71af29ec
+0, 558000, 864000, 0x8f33f6ad
+0, 576000, 864000, 0xe7d46a24
+0, 594000, 864000, 0xb631e044
+0, 612000, 864000, 0x77db01cb
+0, 630000, 864000, 0x9861b6ec
+0, 648000, 864000, 0x973bd263
+0, 666000, 864000, 0xdd4c175b
+0, 684000, 864000, 0xdc28469b
+0, 702000, 864000, 0x67393ebb
+0, 720000, 864000, 0x01a06813
+0, 738000, 864000, 0x63e88f73
+0, 756000, 864000, 0x3ffbdd73
+0, 774000, 864000, 0xd25f790b
+0, 792000, 864000, 0x14e3c5d3
+0, 810000, 864000, 0x0d3d1202
+0, 828000, 864000, 0x69decf03
+0, 846000, 864000, 0x1b20ab93
+0, 864000, 864000, 0xee2f8d4a
+0, 882000, 864000, 0xaac44c52
+0, 900000, 864000, 0x3f874a5a
+0, 918000, 864000, 0x239b2d7a
+0, 936000, 864000, 0xb85db552
+0, 954000, 864000, 0xb12962a2
+0, 972000, 864000, 0xb8270fd9
+0, 990000, 864000, 0x14930601
+0, 1008000, 864000, 0x827a15c1
+0, 1026000, 864000, 0xe31011d1
+0, 1044000, 864000, 0xcd2154c1
+0, 1062000, 864000, 0xad02dbd9
+0, 1080000, 864000, 0x40c17d58
+0, 1098000, 864000, 0x8219e3b9
+0, 1116000, 864000, 0x2d348340
+0, 1134000, 864000, 0x6b61dfc9
+0, 1152000, 864000, 0xc8d95be1
+0, 1170000, 864000, 0x70ba0918
+0, 1188000, 864000, 0xdc728131
+0, 1206000, 864000, 0x9b054a10
+0, 1224000, 864000, 0x3983f751
+0, 1242000, 864000, 0x325fe1a9
+0, 1260000, 864000, 0x7a41eac0
+0, 1278000, 864000, 0x324372a8
+0, 1296000, 864000, 0xc014ea18
+0, 1314000, 864000, 0x1a506a1f
+0, 1332000, 864000, 0x47b59557
+0, 1350000, 864000, 0x5f2e194f
+0, 1368000, 864000, 0x9f6abb68
+0, 1386000, 864000, 0x831d2b97
+0, 1404000, 864000, 0x0635af7f
+0, 1422000, 864000, 0xe54a5626
+0, 1440000, 864000, 0x704dca4f
+0, 1458000, 864000, 0x47de6676
+0, 1476000, 864000, 0x609705fd
+0, 1494000, 864000, 0x8d92e086
+0, 1512000, 864000, 0xdb7dab5e
+0, 1530000, 864000, 0xe6ccb686
+0, 1548000, 864000, 0x0d137f66
+0, 1566000, 864000, 0xd200035d
+0, 1584000, 864000, 0x7dcb959d
+0, 1602000, 864000, 0xee849f75
+0, 1620000, 864000, 0x89d14acd
+0, 1638000, 864000, 0x3738029d
+0, 1656000, 864000, 0x6f4c4395
+0, 1674000, 864000, 0x06334395
+0, 1692000, 864000, 0x238b7c94
+0, 1710000, 864000, 0xfa5d1e14
+0, 1728000, 864000, 0x50b10e54
+0, 1746000, 864000, 0x9ed3b6e4
+0, 1764000, 864000, 0x68da9374
+0, 1782000, 864000, 0xb32a137c
+0, 1800000, 864000, 0x577d5084
+0, 1818000, 864000, 0xd262176b
+0, 1836000, 864000, 0xf58b44b3
+0, 1854000, 864000, 0xd0828edc
+0, 1872000, 864000, 0xc91a7544
+0, 1890000, 864000, 0x18ae7f1c
+0, 1908000, 864000, 0x82623643
+0, 1926000, 864000, 0x9cf82cfb
+0, 1944000, 864000, 0x93ad116b
+0, 1962000, 864000, 0xa669044b
+0, 1980000, 864000, 0x8adf88c3
+0, 1998000, 864000, 0xb83fb413
+0, 2016000, 864000, 0xb9e291f3
+0, 2034000, 864000, 0x5833dcc3
+0, 2052000, 864000, 0x4ab825aa
+0, 2070000, 864000, 0xb52c3b53
+0, 2088000, 864000, 0x0cb0dd53
+0, 2106000, 864000, 0x98b8dd52
+0, 2124000, 864000, 0x989230ba
+0, 2142000, 864000, 0xaed4c073
+0, 2160000, 864000, 0x76a7c83a
+0, 2178000, 864000, 0x02711eea
+0, 2196000, 864000, 0x8de65fe2
+0, 2214000, 864000, 0xc1163689
+0, 2232000, 864000, 0xc04f8b31
+0, 2250000, 864000, 0x69218d2a
+0, 2268000, 864000, 0x7e3abe62
+0, 2286000, 864000, 0x00ebe27a
+0, 2304000, 864000, 0x34803f11
+0, 2322000, 864000, 0x85591cd9
+0, 2340000, 864000, 0x8422fb51
+0, 2358000, 864000, 0x67c759e1
+0, 2376000, 864000, 0x4ac36af1
+0, 2394000, 864000, 0xdf00fca2
+0, 2412000, 864000, 0x74c633d1
+0, 2430000, 864000, 0x00251c31
+0, 2448000, 864000, 0x6d12a499
+0, 2466000, 864000, 0x1b6492e1
+0, 2484000, 864000, 0xdfc9a2a1
+0, 2502000, 864000, 0x33dcac79
+0, 2520000, 864000, 0x2305a499
+0, 2538000, 864000, 0xe1f3ae71
+0, 2556000, 864000, 0xc0cc92e1
+0, 2574000, 864000, 0x53d3b261
+0, 2592000, 864000, 0xf953aa81
+0, 2610000, 864000, 0x4108da69
+0, 2628000, 864000, 0xd6acf9e9
+0, 2646000, 864000, 0xb97ed900
+0, 2664000, 864000, 0x1d8b7a80
+0, 2682000, 864000, 0xd5406cb8
+0, 2700000, 864000, 0x5aa34948
+0, 2718000, 864000, 0x328eee01
+0, 2736000, 864000, 0xac92e621
+0, 2754000, 864000, 0x4fa1f5e1
+0, 2772000, 864000, 0xf7c4e8a8
+0, 2790000, 864000, 0xc358bd58
+0, 2808000, 864000, 0x29ec4b27
+0, 2826000, 864000, 0xf7219c88
+0, 2844000, 864000, 0xe77ff130
+0, 2862000, 864000, 0x73683417
+0, 2880000, 864000, 0x08b6be77
+0, 2898000, 864000, 0x3a7eea6f
+0, 2916000, 864000, 0xb319cce7
+0, 2934000, 864000, 0x9607b13e
+0, 2952000, 864000, 0x30543f0d
+0, 2970000, 864000, 0x56915a9e
+0, 2988000, 864000, 0x79f158a6
+0, 3006000, 864000, 0x498b8bd6
+0, 3024000, 864000, 0xe9ad7046
+0, 3042000, 864000, 0xe9ad7046
+0, 3060000, 864000, 0x10317e0e
+0, 3078000, 864000, 0x10317e0e
+0, 3096000, 864000, 0x10317e0e
+0, 3114000, 864000, 0x99ec7046
+0, 3132000, 864000, 0x924d46ee
+0, 3150000, 864000, 0x98bf333e
+0, 3168000, 864000, 0xb2625c96
+0, 3186000, 864000, 0xb46b3926
+0, 3204000, 864000, 0xeb4e5c96
+0, 3222000, 864000, 0x87154ece
+0, 3240000, 864000, 0x9e4c666e
+0, 3258000, 864000, 0x65b53d16
+0, 3276000, 864000, 0x99e85e8e
+0, 3294000, 864000, 0x650ba17e
+0, 3312000, 864000, 0x1ecb000e
+0, 3330000, 864000, 0xb942327d
+0, 3348000, 864000, 0x1bf20925
+0, 3366000, 864000, 0x61dba6a5
+0, 3384000, 864000, 0x5de16d8d
+0, 3402000, 864000, 0x4eb1f75d
+0, 3420000, 864000, 0x4eb1f75d
+0, 3438000, 864000, 0xd0750144
diff --git a/tests/ref/fate/vmnc-32bit b/tests/ref/fate/vmnc-32bit
new file mode 100644
index 0000000000..fa3d6a07aa
--- /dev/null
+++ b/tests/ref/fate/vmnc-32bit
@@ -0,0 +1,171 @@
+0, 0, 3655644, 0x87973530
+0, 18000, 3655644, 0x87973530
+0, 36000, 3655644, 0x3c3167fd
+0, 54000, 3655644, 0x87973530
+0, 72000, 3655644, 0x87973530
+0, 90000, 3655644, 0x3c3167fd
+0, 108000, 3655644, 0x3c3167fd
+0, 126000, 3655644, 0x87973530
+0, 144000, 3655644, 0x87973530
+0, 162000, 3655644, 0x87973530
+0, 180000, 3655644, 0x87973530
+0, 198000, 3655644, 0x3c3167fd
+0, 216000, 3655644, 0x87973530
+0, 234000, 3655644, 0x87973530
+0, 252000, 3655644, 0x87973530
+0, 270000, 3655644, 0x4f0da763
+0, 288000, 3655644, 0x4f0da763
+0, 306000, 3655644, 0x4f0da763
+0, 324000, 3655644, 0x66a4a763
+0, 342000, 3655644, 0xb20a7496
+0, 360000, 3655644, 0x66a4a763
+0, 378000, 3655644, 0x66a4a763
+0, 396000, 3655644, 0x66a4a763
+0, 414000, 3655644, 0x5600644a
+0, 432000, 3655644, 0xce5880ee
+0, 450000, 3655644, 0xce5880ee
+0, 468000, 3655644, 0xa993ef3d
+0, 486000, 3655644, 0xa993ef3d
+0, 504000, 3655644, 0xa993ef3d
+0, 522000, 3655644, 0xa993ef3d
+0, 540000, 3655644, 0xa993ef3d
+0, 558000, 3655644, 0xa993ef3d
+0, 576000, 3655644, 0xa993ef3d
+0, 594000, 3655644, 0xa993ef3d
+0, 612000, 3655644, 0xa993ef3d
+0, 630000, 3655644, 0xa993ef3d
+0, 648000, 3655644, 0xa993ef3d
+0, 666000, 3655644, 0xa993ef3d
+0, 684000, 3655644, 0xa993ef3d
+0, 702000, 3655644, 0xa993ef3d
+0, 720000, 3655644, 0xa993ef3d
+0, 738000, 3655644, 0xa993ef3d
+0, 756000, 3655644, 0xa993ef3d
+0, 774000, 3655644, 0xa993ef3d
+0, 792000, 3655644, 0xa993ef3d
+0, 810000, 3655644, 0xa993ef3d
+0, 828000, 3655644, 0xa993ef3d
+0, 846000, 3655644, 0xa993ef3d
+0, 864000, 3655644, 0xa993ef3d
+0, 882000, 3655644, 0x73564014
+0, 900000, 3655644, 0x73564014
+0, 918000, 3655644, 0x73564014
+0, 936000, 3655644, 0x73564014
+0, 954000, 3655644, 0x73564014
+0, 972000, 3655644, 0x73564014
+0, 990000, 3655644, 0x73564014
+0, 1008000, 3655644, 0x73564014
+0, 1026000, 3655644, 0x73564014
+0, 1044000, 3655644, 0x73564014
+0, 1062000, 3655644, 0x73564014
+0, 1080000, 3655644, 0x73564014
+0, 1098000, 3655644, 0x2a6e1e8c
+0, 1116000, 3655644, 0x2a6e1e8c
+0, 1134000, 3655644, 0x2a6e1e8c
+0, 1152000, 3655644, 0xbae02e7c
+0, 1170000, 3655644, 0xbae02e7c
+0, 1188000, 3655644, 0xbae02e7c
+0, 1206000, 3655644, 0xbae02e7c
+0, 1224000, 3655644, 0x55af4a2d
+0, 1242000, 3655644, 0x55af4a2d
+0, 1260000, 3655644, 0x55af4a2d
+0, 1278000, 3655644, 0x55af4a2d
+0, 1296000, 3655644, 0x54b7ff2d
+0, 1314000, 3655644, 0x39af1aed
+0, 1332000, 3655644, 0x39af1aed
+0, 1350000, 3655644, 0x39af1aed
+0, 1368000, 3655644, 0x39af1aed
+0, 1386000, 3655644, 0xe48dd11c
+0, 1404000, 3655644, 0xe48dd11c
+0, 1422000, 3655644, 0xe48dd11c
+0, 1440000, 3655644, 0xe48dd11c
+0, 1458000, 3655644, 0xe48dd11c
+0, 1476000, 3655644, 0xba15c78d
+0, 1494000, 3655644, 0xba15c78d
+0, 1512000, 3655644, 0xba15c78d
+0, 1530000, 3655644, 0xba15c78d
+0, 1548000, 3655644, 0xba15c78d
+0, 1566000, 3655644, 0xba15c78d
+0, 1584000, 3655644, 0xba15c78d
+0, 1602000, 3655644, 0x39af1aed
+0, 1620000, 3655644, 0x39af1aed
+0, 1638000, 3655644, 0x39af1aed
+0, 1656000, 3655644, 0x39af1aed
+0, 1674000, 3655644, 0x39af1aed
+0, 1692000, 3655644, 0x39af1aed
+0, 1710000, 3655644, 0x39af1aed
+0, 1728000, 3655644, 0x27f96cd8
+0, 1746000, 3655644, 0x27f96cd8
+0, 1764000, 3655644, 0x27f96cd8
+0, 1782000, 3655644, 0x27f96cd8
+0, 1800000, 3655644, 0x27f96cd8
+0, 1818000, 3655644, 0x27f96cd8
+0, 1836000, 3655644, 0x27f96cd8
+0, 1854000, 3655644, 0xf4f068dc
+0, 1872000, 3655644, 0xf4f068dc
+0, 1890000, 3655644, 0xf4f068dc
+0, 1908000, 3655644, 0xf4f068dc
+0, 1926000, 3655644, 0xf4f068dc
+0, 1944000, 3655644, 0xf4f068dc
+0, 1962000, 3655644, 0xf4f068dc
+0, 1980000, 3655644, 0xf1c55cf5
+0, 1998000, 3655644, 0xd932633d
+0, 2016000, 3655644, 0xd932633d
+0, 2034000, 3655644, 0xc6e95e0a
+0, 2052000, 3655644, 0x9a63c9de
+0, 2070000, 3655644, 0xf166ad4f
+0, 2088000, 3655644, 0xe9eeba41
+0, 2106000, 3655644, 0x7e598ad7
+0, 2124000, 3655644, 0xf3bd257e
+0, 2142000, 3655644, 0xf3bd257e
+0, 2160000, 3655644, 0xf3bd257e
+0, 2178000, 3655644, 0xf3bd257e
+0, 2196000, 3655644, 0xf3bd257e
+0, 2214000, 3655644, 0xf35b3852
+0, 2232000, 3655644, 0xf35b3852
+0, 2250000, 3655644, 0xf35b3852
+0, 2268000, 3655644, 0xf35b3852
+0, 2286000, 3655644, 0x9d553959
+0, 2304000, 3655644, 0x0a9de8e2
+0, 2322000, 3655644, 0xf2325b6c
+0, 2340000, 3655644, 0xf2325b6c
+0, 2358000, 3655644, 0xf2325b6c
+0, 2376000, 3655644, 0xf2325b6c
+0, 2394000, 3655644, 0xf2325b6c
+0, 2412000, 3655644, 0xf2325b6c
+0, 2430000, 3655644, 0xcf924028
+0, 2448000, 3655644, 0xcf924028
+0, 2466000, 3655644, 0x8dae55bc
+0, 2484000, 3655644, 0x8dae55bc
+0, 2502000, 3655644, 0x57b08ced
+0, 2520000, 3655644, 0x57b08ced
+0, 2538000, 3655644, 0xef89a1d8
+0, 2556000, 3655644, 0xef89a1d8
+0, 2574000, 3655644, 0x69e5503a
+0, 2592000, 3655644, 0x69e5503a
+0, 2610000, 3655644, 0xc3de7b3f
+0, 2628000, 3655644, 0xc3de7b3f
+0, 2646000, 3655644, 0x88eea64a
+0, 2664000, 3655644, 0x88eea64a
+0, 2682000, 3655644, 0xe39cce1f
+0, 2700000, 3655644, 0xe39cce1f
+0, 2718000, 3655644, 0xe39cce1f
+0, 2736000, 3655644, 0xe39cce1f
+0, 2754000, 3655644, 0xe39cce1f
+0, 2772000, 3655644, 0xe39cce1f
+0, 2790000, 3655644, 0xe39cce1f
+0, 2808000, 3655644, 0xe39cce1f
+0, 2826000, 3655644, 0xe39cce1f
+0, 2844000, 3655644, 0xe39cce1f
+0, 2862000, 3655644, 0xe39cce1f
+0, 2880000, 3655644, 0xe39cce1f
+0, 2898000, 3655644, 0xe39cce1f
+0, 2916000, 3655644, 0xf0ed0d04
+0, 2934000, 3655644, 0xf0ed0d04
+0, 2952000, 3655644, 0xf0ed0d04
+0, 2970000, 3655644, 0xf0ed0d04
+0, 2988000, 3655644, 0x32490d3e
+0, 3006000, 3655644, 0x32490d3e
+0, 3024000, 3655644, 0x32490d3e
+0, 3042000, 3655644, 0x32490d3e
+0, 3060000, 3655644, 0x32490d3e
diff --git a/tests/ref/fate/vp5 b/tests/ref/fate/vp5
new file mode 100644
index 0000000000..bf67801a47
--- /dev/null
+++ b/tests/ref/fate/vp5
@@ -0,0 +1,246 @@
+0, 0, 233472, 0x27488413
+0, 3754, 233472, 0x4af384b5
+0, 7508, 233472, 0x948d845d
+0, 11261, 233472, 0xd6ed845e
+0, 15015, 233472, 0x230f8444
+0, 18769, 233472, 0x230f8444
+0, 22523, 233472, 0x230f8444
+0, 26276, 233472, 0xa5078424
+0, 30030, 233472, 0xa5078424
+0, 33784, 233472, 0xa5078424
+0, 37538, 233472, 0xa5078424
+0, 41291, 233472, 0xa5078424
+0, 45045, 233472, 0xa5078424
+0, 48799, 233472, 0xa5078424
+0, 52553, 233472, 0xa5078424
+0, 56306, 233472, 0xa5078424
+0, 60060, 233472, 0xa5078424
+0, 63814, 233472, 0xa5078424
+0, 67568, 233472, 0xa5078424
+0, 71321, 233472, 0xa5078424
+0, 75075, 233472, 0xa5078424
+0, 78829, 233472, 0xa5078424
+0, 82583, 233472, 0xa5078424
+0, 86336, 233472, 0xa5078424
+0, 90090, 233472, 0xa5078424
+0, 93844, 233472, 0xa5078424
+0, 97598, 233472, 0xa5078424
+0, 101351, 233472, 0xa5078424
+0, 105105, 233472, 0xa5078424
+0, 108859, 233472, 0xa5078424
+0, 112613, 233472, 0xa5078424
+0, 116366, 233472, 0xa5078424
+0, 120120, 233472, 0xa5078424
+0, 123874, 233472, 0xa5078424
+0, 127628, 233472, 0xa5078424
+0, 131381, 233472, 0xa5078424
+0, 135135, 233472, 0xa5078424
+0, 138889, 233472, 0xa5078424
+0, 142643, 233472, 0xa5078424
+0, 146396, 233472, 0xa5078424
+0, 150150, 233472, 0x05667dea
+0, 153904, 233472, 0x6ae1823e
+0, 157658, 233472, 0x3c8a7ea9
+0, 161411, 233472, 0xcae2832a
+0, 165165, 233472, 0x547a7ec2
+0, 168919, 233472, 0xa6628327
+0, 172673, 233472, 0xecd77edc
+0, 176426, 233472, 0xe9538356
+0, 180180, 233472, 0xca297eb1
+0, 183934, 233472, 0xe5648329
+0, 187688, 233472, 0xad8c7e94
+0, 191441, 233472, 0xca0d82fc
+0, 195195, 233472, 0x62277e8d
+0, 198949, 233472, 0x7ef782f5
+0, 202703, 233472, 0x09b27e8d
+0, 206456, 233472, 0x66f382f5
+0, 210210, 233472, 0x0aaa7e8d
+0, 213964, 233472, 0x676b82f5
+0, 217718, 233472, 0x0a8a7e8d
+0, 221471, 233472, 0x670b82f5
+0, 225225, 233472, 0x09fa7e8d
+0, 228979, 233472, 0x671b82f5
+0, 232733, 233472, 0x0ac27e8d
+0, 236486, 233472, 0x674382f5
+0, 240240, 233472, 0x0a727e8d
+0, 243994, 233472, 0x673382f5
+0, 247748, 233472, 0x0a127e8d
+0, 251501, 233472, 0x66f382f5
+0, 255255, 233472, 0x0aaa7e8d
+0, 259009, 233472, 0x676b82f5
+0, 262763, 233472, 0x0a8a7e8d
+0, 266516, 233472, 0x670b82f5
+0, 270270, 233472, 0x09fa7e8d
+0, 274024, 233472, 0x671b82f5
+0, 277778, 233472, 0x0ac27e8d
+0, 281531, 233472, 0x674382f5
+0, 285285, 233472, 0x0a727e8d
+0, 289039, 233472, 0x673382f5
+0, 292793, 233472, 0x0a127e8d
+0, 296546, 233472, 0xa3917e7f
+0, 300300, 233472, 0x0554868d
+0, 304054, 233472, 0x05ba6d7a
+0, 307808, 233472, 0x05ba6d7a
+0, 311561, 233472, 0x05ba6d7a
+0, 315315, 233472, 0x05ba6d7a
+0, 319069, 233472, 0x05ba6d7a
+0, 322823, 233472, 0x05ba6d7a
+0, 326576, 233472, 0x05ba6d7a
+0, 330330, 233472, 0x05ba6d7a
+0, 334084, 233472, 0x05ba6d7a
+0, 337838, 233472, 0x05ba6d7a
+0, 341591, 233472, 0x05ba6d7a
+0, 345345, 233472, 0x05ba6d7a
+0, 349099, 233472, 0x05ba6d7a
+0, 352853, 233472, 0x05ba6d7a
+0, 356606, 233472, 0x05ba6d7a
+0, 360360, 233472, 0x05ba6d7a
+0, 364114, 233472, 0x05ba6d7a
+0, 367868, 233472, 0x05ba6d7a
+0, 371621, 233472, 0x05ba6d7a
+0, 375375, 233472, 0x05ba6d7a
+0, 379129, 233472, 0x05ba6d7a
+0, 382883, 233472, 0x05ba6d7a
+0, 386636, 233472, 0x05ba6d7a
+0, 390390, 233472, 0x3a6a6d61
+0, 394144, 233472, 0x0bab7adc
+0, 397898, 233472, 0x12b44993
+0, 401651, 233472, 0xa20ad6d1
+0, 405405, 233472, 0xfd916a4a
+0, 409159, 233472, 0xd34f3e95
+0, 412913, 233472, 0x19571d5c
+0, 416666, 233472, 0x7c8351ad
+0, 420420, 233472, 0xea279823
+0, 424174, 233472, 0xc5011cfd
+0, 427928, 233472, 0xbd7fb9af
+0, 431681, 233472, 0xdfb3bb7c
+0, 435435, 233472, 0x6d631236
+0, 439189, 233472, 0xdb579a7b
+0, 442943, 233472, 0x47584a3e
+0, 446696, 233472, 0x7a27a914
+0, 450450, 233472, 0x2996270d
+0, 454204, 233472, 0xefeaa7ed
+0, 457958, 233472, 0xa3e74ae1
+0, 461711, 233472, 0x8a51d61c
+0, 465465, 233472, 0x25085ee7
+0, 469219, 233472, 0x0a811253
+0, 472973, 233472, 0x7d3eda84
+0, 476726, 233472, 0xd0a0887d
+0, 480480, 233472, 0xc9e6702c
+0, 484234, 233472, 0x0da14346
+0, 487988, 233472, 0x040f0605
+0, 491741, 233472, 0x76ea841a
+0, 495495, 233472, 0x105b6600
+0, 499249, 233472, 0x73015e08
+0, 503003, 233472, 0xe77d6662
+0, 506756, 233472, 0x7514fcd1
+0, 510510, 233472, 0xb091a850
+0, 514264, 233472, 0x74ccdccd
+0, 518018, 233472, 0xd1c002fc
+0, 521771, 233472, 0x7bfcfdac
+0, 525525, 233472, 0xf48a133f
+0, 529279, 233472, 0x279c16dd
+0, 533033, 233472, 0x58427907
+0, 536786, 233472, 0x4668a8f2
+0, 540540, 233472, 0x93fb555f
+0, 544294, 233472, 0x49ed3cf2
+0, 548048, 233472, 0xd620fac9
+0, 551801, 233472, 0xe4efae83
+0, 555555, 233472, 0xe4d377be
+0, 559309, 233472, 0x6fc229c1
+0, 563063, 233472, 0xab5a8898
+0, 566816, 233472, 0x58a493dd
+0, 570570, 233472, 0x5c1c1093
+0, 574324, 233472, 0x2d831af9
+0, 578078, 233472, 0x9a0d3cdf
+0, 581831, 233472, 0x2be78f0b
+0, 585585, 233472, 0xfc7cc656
+0, 589339, 233472, 0xaa8624b7
+0, 593093, 233472, 0xb9c9afc1
+0, 596846, 233472, 0x709e8009
+0, 600600, 233472, 0xd2260830
+0, 604354, 233472, 0xadb3954e
+0, 608108, 233472, 0x74fc3e65
+0, 611861, 233472, 0xb4bcdea4
+0, 615615, 233472, 0x60c46cf5
+0, 619369, 233472, 0x0e48eff8
+0, 623123, 233472, 0x60e46733
+0, 626876, 233472, 0x708ec89f
+0, 630630, 233472, 0x1f11264e
+0, 634384, 233472, 0x6cba8300
+0, 638138, 233472, 0xd1a5d756
+0, 641891, 233472, 0xb936621e
+0, 645645, 233472, 0x1667b4af
+0, 649399, 233472, 0xc212276d
+0, 653153, 233472, 0x9d7a871d
+0, 656906, 233472, 0xb52834f9
+0, 660660, 233472, 0x983bde84
+0, 664414, 233472, 0xd1c63d88
+0, 668168, 233472, 0xa38cb687
+0, 671921, 233472, 0xd81bf8ff
+0, 675675, 233472, 0x688b231a
+0, 679429, 233472, 0xd5ad3038
+0, 683183, 233472, 0xcd227f74
+0, 686936, 233472, 0x81ec23d6
+0, 690690, 233472, 0x52c1cd86
+0, 694444, 233472, 0xa4199853
+0, 698198, 233472, 0xe82c83e4
+0, 701951, 233472, 0xe9810f88
+0, 705705, 233472, 0x37e95ae7
+0, 709459, 233472, 0xf6974d5d
+0, 713213, 233472, 0x31788551
+0, 716966, 233472, 0x00d6c539
+0, 720720, 233472, 0xdbb52151
+0, 724474, 233472, 0x594433d3
+0, 728228, 233472, 0xeec44f91
+0, 731981, 233472, 0x302894bf
+0, 735735, 233472, 0x44f5ddc3
+0, 739489, 233472, 0x6c1edd28
+0, 743243, 233472, 0x7fd1e412
+0, 746996, 233472, 0xd771f11b
+0, 750750, 233472, 0x09c675d5
+0, 754504, 233472, 0x8fd9112e
+0, 758258, 233472, 0x602002e5
+0, 762011, 233472, 0xb9a22029
+0, 765765, 233472, 0x18e99807
+0, 769519, 233472, 0x3d8657d8
+0, 773273, 233472, 0x4cd73a85
+0, 777026, 233472, 0x84ddb474
+0, 780780, 233472, 0x69636bb8
+0, 784534, 233472, 0xa0436d50
+0, 788288, 233472, 0x93c86d78
+0, 792041, 233472, 0x05ba6d7a
+0, 795795, 233472, 0x05ba6d7a
+0, 799549, 233472, 0x05ba6d7a
+0, 803303, 233472, 0x126c6406
+0, 807056, 233472, 0xe3885a3a
+0, 810810, 233472, 0xf1256fe9
+0, 814564, 233472, 0x5a84377e
+0, 818318, 233472, 0x7c392d90
+0, 822071, 233472, 0x8a74df48
+0, 825825, 233472, 0xfa394653
+0, 829579, 233472, 0xcbe0cc1b
+0, 833333, 233472, 0xbf8639cf
+0, 837086, 233472, 0x7dd2c935
+0, 840840, 233472, 0x1093148f
+0, 844594, 233472, 0x624d7d3e
+0, 848348, 233472, 0xb340cd65
+0, 852101, 233472, 0x6c0ae5c6
+0, 855855, 233472, 0x0c5eaf73
+0, 859609, 233472, 0x27be64ce
+0, 863363, 233472, 0xac8990f4
+0, 867116, 233472, 0x1f935102
+0, 870870, 233472, 0x6e57d96f
+0, 874624, 233472, 0xf246ea4d
+0, 878378, 233472, 0x18058011
+0, 882131, 233472, 0x5951fe6e
+0, 885885, 233472, 0x0f10371d
+0, 889639, 233472, 0xe1481043
+0, 893393, 233472, 0xdedeefcc
+0, 897146, 233472, 0xf8865db2
+0, 900900, 233472, 0xe1b3d4d6
+0, 904654, 233472, 0x81962c43
+0, 908408, 233472, 0xe903d0bb
+0, 912161, 233472, 0x6f530ac6
+0, 915915, 233472, 0x94f7466c
+0, 919669, 233472, 0xa8c1d365
diff --git a/tests/ref/fate/vp6a b/tests/ref/fate/vp6a
new file mode 100644
index 0000000000..e6ea0bcd01
--- /dev/null
+++ b/tests/ref/fate/vp6a
@@ -0,0 +1,93 @@
+0, 0, 135000, 0x9dceed6d
+0, 22500, 135000, 0xcb87787f
+0, 45000, 135000, 0xdb4361ce
+0, 67500, 135000, 0xb8fd81c2
+0, 90000, 135000, 0xbf86a7af
+0, 112500, 135000, 0x2e7787e3
+0, 135000, 135000, 0x6cec6ebd
+0, 157500, 135000, 0xa4d08c07
+0, 180000, 135000, 0x1be48faf
+0, 202500, 135000, 0xf3cd8ede
+0, 225000, 135000, 0x33ec8a49
+0, 247500, 135000, 0x11e887ec
+0, 270000, 135000, 0x3e215c25
+0, 292500, 135000, 0x1a2cb3f8
+0, 315000, 135000, 0x7fb0e48a
+0, 337500, 135000, 0x749f3738
+0, 360000, 135000, 0x686e78e9
+0, 382500, 135000, 0x29515bc7
+0, 405000, 135000, 0x987126bd
+0, 427500, 135000, 0xdf77bb13
+0, 450000, 135000, 0x5fb1468a
+0, 472500, 135000, 0x06ea50ea
+0, 495000, 135000, 0x7bd9c715
+0, 517500, 135000, 0xdd6e6831
+0, 540000, 135000, 0x0ee3760f
+0, 562500, 135000, 0xc7984dc8
+0, 585000, 135000, 0x7e385bff
+0, 607500, 135000, 0xae155ab9
+0, 630000, 135000, 0xc05ee8f7
+0, 652500, 135000, 0x93de3392
+0, 675000, 135000, 0xfe45b38b
+0, 697500, 135000, 0xeb5ed72c
+0, 720000, 135000, 0x0794cb57
+0, 742500, 135000, 0x2578c6e5
+0, 765000, 135000, 0x78486707
+0, 787500, 135000, 0x41e1f0e6
+0, 810000, 135000, 0x4508eb76
+0, 832500, 135000, 0xd8c087f3
+0, 855000, 135000, 0x1a8db89a
+0, 877500, 135000, 0x6dbd90c6
+0, 900000, 135000, 0x0845e400
+0, 922500, 135000, 0xe8b02fc2
+0, 945000, 135000, 0x8007d813
+0, 967500, 135000, 0xdfb04e69
+0, 990000, 135000, 0x5746cf71
+0, 1012500, 135000, 0xe510299f
+0, 1035000, 135000, 0xeea0c829
+0, 1057500, 135000, 0x7c0578ab
+0, 1080000, 135000, 0xb1569ce9
+0, 1102500, 135000, 0x6c233986
+0, 1125000, 135000, 0x95b77f3d
+0, 1147500, 135000, 0xfc368d80
+0, 1170000, 135000, 0x5c73b064
+0, 1192500, 135000, 0x2206da8d
+0, 1215000, 135000, 0x62bb599e
+0, 1237500, 135000, 0x15a68991
+0, 1260000, 135000, 0x5f5eb810
+0, 1282500, 135000, 0x85a9634a
+0, 1305000, 135000, 0xf24b5c1a
+0, 1327500, 135000, 0x38034850
+0, 1350000, 135000, 0x48fd3599
+0, 1372500, 135000, 0xb9d62408
+0, 1395000, 135000, 0xaf202a21
+0, 1417500, 135000, 0x341aa582
+0, 1440000, 135000, 0x90cdc9bb
+0, 1462500, 135000, 0x0b52f319
+0, 1485000, 135000, 0xce61aa5e
+0, 1507500, 135000, 0x988acb45
+0, 1530000, 135000, 0xcd353664
+0, 1552500, 135000, 0xa80c8ce9
+0, 1575000, 135000, 0x15dce784
+0, 1597500, 135000, 0x16bd4519
+0, 1620000, 135000, 0x571712f3
+0, 1642500, 135000, 0x6b109f1e
+0, 1665000, 135000, 0x8e4c19aa
+0, 1687500, 135000, 0x4132bd4c
+0, 1710000, 135000, 0x5babafe2
+0, 1732500, 135000, 0xddef6313
+0, 1755000, 135000, 0x76d6b48b
+0, 1777500, 135000, 0x929e7702
+0, 1800000, 135000, 0x33f5e4a1
+0, 1822500, 135000, 0xdb7041bf
+0, 1845000, 135000, 0xbc761e04
+0, 1867500, 135000, 0x0b2a81e6
+0, 1890000, 135000, 0xf6fd20ea
+0, 1912500, 135000, 0x1894a26c
+0, 1935000, 135000, 0xb25e216f
+0, 1957500, 135000, 0x83bb02ee
+0, 1980000, 135000, 0x6952a3c3
+0, 2002500, 135000, 0x372184d6
+0, 2025000, 135000, 0x2ac47afe
+0, 2047500, 135000, 0x14c33a35
+0, 2070000, 135000, 0xdc08470e
diff --git a/tests/ref/fate/vp6f b/tests/ref/fate/vp6f
new file mode 100644
index 0000000000..b942685c19
--- /dev/null
+++ b/tests/ref/fate/vp6f
@@ -0,0 +1,174 @@
+0, 0, 13440, 0x7cb0a22f
+0, 9000, 13440, 0xdfcea6ba
+0, 18000, 13440, 0x59b2a5da
+0, 27000, 13440, 0x12f1b2d8
+0, 36000, 13440, 0x280fb9f6
+0, 45000, 13440, 0x7bace8b3
+0, 54000, 13440, 0x4ec91480
+0, 63000, 13440, 0xa8010450
+0, 72000, 13440, 0x61d8fc46
+0, 81000, 13440, 0x242bb24e
+0, 90000, 13440, 0x88397a36
+0, 99000, 13440, 0x10e15726
+0, 108000, 13440, 0x3018438c
+0, 117000, 13440, 0xbbb94c21
+0, 126000, 13440, 0xfc3e5e2b
+0, 135000, 13440, 0xeaa69354
+0, 144000, 13440, 0x96f1cc01
+0, 153000, 13440, 0x333fdaff
+0, 162000, 13440, 0xb5230ed2
+0, 171000, 13440, 0x59383446
+0, 180000, 13440, 0x954939e6
+0, 189000, 13440, 0x53813d2f
+0, 198000, 13440, 0x3ca53600
+0, 207000, 13440, 0x7b30227a
+0, 216000, 13440, 0x5145bbfe
+0, 225000, 13440, 0xa0979632
+0, 234000, 13440, 0x08026e21
+0, 243000, 13440, 0x3f456d1e
+0, 252000, 13440, 0x7d036b62
+0, 261000, 13440, 0x508085fb
+0, 270000, 13440, 0x251dc193
+0, 279000, 13440, 0xf3121c9b
+0, 288000, 13440, 0xf5da772e
+0, 297000, 13440, 0x8179ccf7
+0, 306000, 13440, 0xd57ceeb3
+0, 315000, 13440, 0xc8f2169c
+0, 324000, 13440, 0xbf8296c3
+0, 333000, 13440, 0xee1927d0
+0, 342000, 13440, 0xdd84e8d1
+0, 351000, 13440, 0x7be57be2
+0, 360000, 13440, 0xae353f91
+0, 369000, 13440, 0x3ae927f2
+0, 378000, 13440, 0x417227c6
+0, 387000, 13440, 0x32572bea
+0, 396000, 13440, 0x8b9e4839
+0, 405000, 13440, 0xad669441
+0, 414000, 13440, 0xc9de99a6
+0, 423000, 13440, 0xb3ffb88b
+0, 432000, 13440, 0xb321b8a0
+0, 441000, 13440, 0x2efdbf53
+0, 450000, 13440, 0x9b7aa566
+0, 459000, 13440, 0x563c8d60
+0, 468000, 13440, 0xe3848ee8
+0, 477000, 13440, 0xa84b8f1d
+0, 486000, 13440, 0x52da9f9f
+0, 495000, 13440, 0x2ed56d97
+0, 504000, 13440, 0x4e8534c2
+0, 513000, 13440, 0x318900a6
+0, 522000, 13440, 0xda96de39
+0, 531000, 13440, 0xaae7ac0b
+0, 540000, 13440, 0x7533ad99
+0, 549000, 13440, 0x4e70c2c9
+0, 558000, 13440, 0x9ce5e3fa
+0, 567000, 13440, 0xc788fbbc
+0, 576000, 13440, 0xd36604a9
+0, 585000, 13440, 0x246221a4
+0, 594000, 13440, 0x290c5c2b
+0, 603000, 13440, 0xde6c68ec
+0, 612000, 13440, 0x56248dbf
+0, 621000, 13440, 0x5b898cbd
+0, 630000, 13440, 0x090574b9
+0, 639000, 13440, 0x8df2814a
+0, 648000, 13440, 0xd4a6b285
+0, 657000, 13440, 0xa016e921
+0, 666000, 13440, 0x7f93fdc1
+0, 675000, 13440, 0xfd0dee6f
+0, 684000, 13440, 0xef04ce0e
+0, 693000, 13440, 0x7560bee3
+0, 702000, 13440, 0x5a8cdc85
+0, 711000, 13440, 0x4788f7bc
+0, 720000, 13440, 0xc001e34d
+0, 729000, 13440, 0xc687eb74
+0, 738000, 13440, 0xbf20feba
+0, 747000, 13440, 0xd32647a8
+0, 756000, 13440, 0xe69a955a
+0, 765000, 13440, 0x1b56951f
+0, 774000, 13440, 0xd1977378
+0, 783000, 13440, 0x1620357d
+0, 792000, 13440, 0x2596116f
+0, 801000, 13440, 0x7473feca
+0, 810000, 13440, 0x7f92bb47
+0, 819000, 13440, 0x6866a683
+0, 828000, 13440, 0xe9b08d7e
+0, 837000, 13440, 0xa3fd7546
+0, 846000, 13440, 0xa4416522
+0, 855000, 13440, 0xd8f5572e
+0, 864000, 13440, 0xf5746dbd
+0, 873000, 13440, 0x256a87c6
+0, 882000, 13440, 0x722aa2c8
+0, 891000, 13440, 0xb26de5f5
+0, 900000, 13440, 0x117f0841
+0, 909000, 13440, 0xda2d192c
+0, 918000, 13440, 0xb022442d
+0, 927000, 13440, 0xbc4044f2
+0, 936000, 13440, 0x68b330da
+0, 945000, 13440, 0xc07228cf
+0, 954000, 13440, 0xaa3f3d44
+0, 963000, 13440, 0x25867aad
+0, 972000, 13440, 0xa3ecb432
+0, 981000, 13440, 0x93ccdcbb
+0, 990000, 13440, 0x8302fa4f
+0, 999000, 13440, 0x2f960f33
+0, 1008000, 13440, 0x15d41d14
+0, 1017000, 13440, 0x636529d0
+0, 1026000, 13440, 0x11035be5
+0, 1035000, 13440, 0x9b6e9167
+0, 1044000, 13440, 0x7b01adc7
+0, 1053000, 13440, 0xa237e05d
+0, 1062000, 13440, 0xd2f4f134
+0, 1071000, 13440, 0x2052d368
+0, 1080000, 13440, 0x08f7ae0d
+0, 1089000, 13440, 0xa89185bc
+0, 1098000, 13440, 0xfa628236
+0, 1107000, 13440, 0xdf79848b
+0, 1116000, 13440, 0xd19a906f
+0, 1125000, 13440, 0x219f9324
+0, 1134000, 13440, 0x46509b6d
+0, 1143000, 13440, 0xc5d9a568
+0, 1152000, 13440, 0xb21aaaa8
+0, 1161000, 13440, 0x925a97ed
+0, 1170000, 13440, 0xc5e3557f
+0, 1179000, 13440, 0x7c57155a
+0, 1188000, 13440, 0x6b26d005
+0, 1197000, 13440, 0xfdc7b369
+0, 1206000, 13440, 0x99919fc2
+0, 1215000, 13440, 0xcfe889e4
+0, 1224000, 13440, 0xd1196856
+0, 1233000, 13440, 0xec8348c6
+0, 1242000, 13440, 0x5ede0d9a
+0, 1251000, 13440, 0x198ef66e
+0, 1260000, 13440, 0x62fcefdf
+0, 1269000, 13440, 0x7791f415
+0, 1278000, 13440, 0xfbdb0029
+0, 1287000, 13440, 0xdab12b01
+0, 1296000, 13440, 0x646b2d5f
+0, 1305000, 13440, 0x5410f52e
+0, 1314000, 13440, 0x7186eef8
+0, 1323000, 13440, 0xca251ef6
+0, 1332000, 13440, 0x757c3b43
+0, 1341000, 13440, 0x59ff4982
+0, 1350000, 13440, 0xbe8ff084
+0, 1359000, 13440, 0xc85a9e38
+0, 1368000, 13440, 0x541b9a19
+0, 1377000, 13440, 0x274893c9
+0, 1386000, 13440, 0x7634b5d2
+0, 1395000, 13440, 0x1bd8e10c
+0, 1404000, 13440, 0xa661dfb1
+0, 1413000, 13440, 0x9d01bf92
+0, 1422000, 13440, 0xcb1eb220
+0, 1431000, 13440, 0x0ce27d25
+0, 1440000, 13440, 0x523b594f
+0, 1449000, 13440, 0xf0a04c4f
+0, 1458000, 13440, 0x0f0ffc3d
+0, 1467000, 13440, 0xb0d8b778
+0, 1476000, 13440, 0x5137a642
+0, 1485000, 13440, 0xd213a552
+0, 1494000, 13440, 0xc2fbc9b1
+0, 1503000, 13440, 0xfc2ee379
+0, 1512000, 13440, 0xfb80f737
+0, 1521000, 13440, 0xd6cb2447
+0, 1530000, 13440, 0x124b606d
+0, 1539000, 13440, 0xf788a066
+0, 1548000, 13440, 0xa16eed6e
+0, 1557000, 13440, 0x73ff0f82
diff --git a/tests/ref/fate/vqa-cc b/tests/ref/fate/vqa-cc
new file mode 100644
index 0000000000..5ad2916711
--- /dev/null
+++ b/tests/ref/fate/vqa-cc
@@ -0,0 +1,78 @@
+1, 0, 22048, 0x0665d7f4
+0, 0, 192000, 0x00000000
+0, 6000, 192000, 0x00000000
+0, 12000, 192000, 0x00000000
+0, 18000, 192000, 0x00000000
+0, 24000, 192000, 0xcd900ccc
+0, 30000, 192000, 0xfd496438
+0, 36000, 192000, 0x965f0bf3
+0, 42000, 192000, 0x378fca5f
+1, 44996, 2940, 0x0f3c64cb
+0, 48000, 192000, 0x5ccd8966
+1, 50996, 2940, 0xc90b9e78
+0, 54000, 192000, 0x859676f9
+1, 56996, 2940, 0x146246a3
+0, 60000, 192000, 0x820bfb1c
+1, 62996, 2940, 0xd22c714e
+0, 66000, 192000, 0x7570cc05
+1, 68996, 2940, 0xd86b681e
+0, 72000, 192000, 0xf38bdb06
+1, 74996, 2940, 0x12ec8186
+0, 78000, 192000, 0x9b0cbb44
+1, 80996, 2940, 0x69aa85b6
+0, 84000, 192000, 0x0ed70665
+1, 86996, 2940, 0xb24d33b0
+0, 90000, 192000, 0xd16de7fc
+1, 92996, 2940, 0x3f7b0f0d
+0, 96000, 192000, 0x97afb484
+1, 98996, 2940, 0x64f10f7e
+0, 102000, 192000, 0x012893f3
+1, 104996, 2940, 0xd6ea379a
+0, 108000, 192000, 0x742a4b43
+1, 110996, 2940, 0x7c38e830
+0, 114000, 192000, 0x309dcd75
+1, 116996, 2940, 0xc28ff132
+0, 120000, 192000, 0xed7814ac
+1, 122996, 2940, 0xe7b11629
+0, 126000, 192000, 0xdb7de3d7
+1, 128996, 2940, 0xeb86fdcb
+0, 132000, 192000, 0xe18679a3
+1, 134996, 2940, 0x5508f586
+0, 138000, 192000, 0xb1f213f4
+1, 140996, 2940, 0xf4fa1f1b
+0, 144000, 192000, 0x33c99b5c
+1, 146996, 2940, 0x9e5ff976
+0, 150000, 192000, 0xf66c0c91
+1, 152996, 2940, 0xcfc4e08f
+0, 156000, 192000, 0x929cdc73
+1, 158996, 2940, 0x74bde7ed
+0, 162000, 192000, 0xa723fc3b
+1, 164996, 2940, 0x3e4ae245
+0, 168000, 192000, 0xe6395ccc
+1, 170996, 2940, 0x4c6a8e56
+0, 174000, 192000, 0x147fbf74
+1, 176996, 2940, 0xa09d86ab
+0, 180000, 192000, 0x3ec62d28
+1, 182996, 2940, 0xc8531912
+0, 186000, 192000, 0x22104ffb
+1, 188996, 2940, 0xa5f266aa
+0, 192000, 192000, 0x91f25f58
+1, 194996, 2940, 0x587a4187
+0, 198000, 192000, 0xc91b0e4e
+1, 200996, 2940, 0x14752d45
+0, 204000, 192000, 0x4683df56
+1, 206996, 2940, 0x558cde10
+0, 210000, 192000, 0x8ef8932a
+1, 212996, 2940, 0x735fee38
+0, 216000, 192000, 0xce6c0ec0
+1, 218996, 2940, 0xac8bb6c8
+0, 222000, 192000, 0xcc10e2a0
+1, 224996, 2940, 0xa503c73b
+1, 230996, 2940, 0x7cd588a3
+1, 236996, 2940, 0xa6974b04
+1, 242996, 2940, 0xbf448241
+1, 248996, 2940, 0x2a5c2759
+1, 254996, 2940, 0xd0de5ce0
+1, 260996, 2940, 0xc0486649
+1, 266996, 2940, 0x48b040af
+1, 272996, 2940, 0x82a338a9
diff --git a/tests/ref/fate/vqf-demux b/tests/ref/fate/vqf-demux
new file mode 100644
index 0000000000..7f97317300
--- /dev/null
+++ b/tests/ref/fate/vqf-demux
@@ -0,0 +1 @@
+ba0a8f1bc82e3f7671ab78d4e6154a95
diff --git a/tests/ref/fate/w64 b/tests/ref/fate/w64
new file mode 100644
index 0000000000..461eadb4fd
--- /dev/null
+++ b/tests/ref/fate/w64
@@ -0,0 +1 @@
+CRC=0xc1e71a5c
diff --git a/tests/ref/fate/wc3movie-xan b/tests/ref/fate/wc3movie-xan
new file mode 100644
index 0000000000..8fd2282c1e
--- /dev/null
+++ b/tests/ref/fate/wc3movie-xan
@@ -0,0 +1,70 @@
+0, 0, 158400, 0x25aec781
+1, 0, 2940, 0x92cee2a6
+0, 6000, 158400, 0xda4dbf70
+1, 6000, 2940, 0x126902c3
+0, 12000, 158400, 0x2d8fc909
+1, 12000, 2940, 0x4977b9e6
+0, 18000, 158400, 0xea93c5ab
+1, 18000, 2940, 0x5144d68c
+0, 24000, 158400, 0xa1f5bf60
+1, 24000, 2940, 0x282ebf71
+0, 30000, 158400, 0x739ecfa9
+1, 30000, 2940, 0xc2e7c73c
+0, 36000, 158400, 0xe9830c7e
+1, 36000, 2940, 0x717d6fc5
+0, 42000, 158400, 0xd885665b
+1, 42000, 2940, 0x78538428
+0, 48000, 158400, 0x3235f8ad
+1, 48000, 2940, 0x94ffd1ad
+0, 54000, 158400, 0xd8550cca
+1, 54000, 2940, 0xad43de8b
+0, 60000, 158400, 0x05e9e231
+1, 60000, 2940, 0x65e4b604
+0, 66000, 158400, 0xce9dd29b
+1, 66000, 2940, 0xd6d6c30f
+0, 72000, 158400, 0x857494a6
+1, 72000, 2940, 0x7b897e4e
+0, 78000, 158400, 0x9cad464a
+1, 78000, 2940, 0xf79546ad
+0, 84000, 158400, 0x04c3177a
+1, 84000, 2940, 0x658c904e
+0, 90000, 158400, 0xa3d2399a
+1, 90000, 2940, 0xb7b8cd8c
+0, 96000, 158400, 0x12cdd418
+1, 96000, 2940, 0x2f2da7c5
+0, 102000, 158400, 0x5ef67c9e
+1, 102000, 2940, 0x51938cf8
+0, 108000, 158400, 0xba7a7f11
+1, 108000, 2940, 0xdf61c87a
+0, 114000, 158400, 0x084b60e7
+1, 114000, 2940, 0xf72a7069
+0, 120000, 158400, 0xef95a6a5
+1, 120000, 2940, 0x9af2a425
+0, 126000, 158400, 0x55f392f1
+1, 126000, 2940, 0x4c3f5ac7
+0, 132000, 158400, 0x63fca6bb
+1, 132000, 2940, 0xfe4cb0b2
+0, 138000, 158400, 0x0f7e62fe
+1, 138000, 2940, 0x732a35ed
+0, 144000, 158400, 0xf35febc1
+1, 144000, 2940, 0x526b9e0f
+0, 150000, 158400, 0x6bf6f219
+1, 150000, 2940, 0x4bd9d4e2
+0, 156000, 158400, 0xbdf13e77
+1, 156000, 2940, 0x84340827
+0, 162000, 158400, 0x88490e47
+1, 162000, 2940, 0xe54f7911
+0, 168000, 158400, 0xdb786540
+1, 168000, 2940, 0x0bbdef52
+0, 174000, 158400, 0x7335c045
+1, 174000, 2940, 0xc1aac5e1
+0, 180000, 158400, 0x6b78015a
+1, 180000, 2940, 0x515ea512
+0, 186000, 158400, 0x9e9b6d16
+1, 186000, 2940, 0x9e7fdac1
+0, 192000, 158400, 0xe618e024
+1, 192000, 2940, 0xf1d4c9cc
+0, 198000, 158400, 0x56cd60f7
+1, 198000, 2940, 0x1bc9b6ee
+0, 204000, 158400, 0xf08e22fe
+1, 204000, 2940, 0xff8ac114
diff --git a/tests/ref/fate/westwood-aud b/tests/ref/fate/westwood-aud
new file mode 100644
index 0000000000..f8bec10599
--- /dev/null
+++ b/tests/ref/fate/westwood-aud
@@ -0,0 +1 @@
+5c2528488729035c17c21486797a2a23
diff --git a/tests/ref/fate/wnv1 b/tests/ref/fate/wnv1
new file mode 100644
index 0000000000..e7fd7ae0f1
--- /dev/null
+++ b/tests/ref/fate/wnv1
@@ -0,0 +1,86 @@
+0, 0, 38400, 0x4c3fdc2f
+0, 6000, 38400, 0x11c9d0cb
+0, 12000, 38400, 0x6c37fd7f
+0, 18000, 38400, 0x7e6c9b93
+0, 23999, 38400, 0xc9d4c5f7
+0, 29999, 38400, 0x5038088a
+0, 35999, 38400, 0xa48411b6
+0, 41999, 38400, 0xb9b7e97b
+0, 47999, 38400, 0xce37e037
+0, 53999, 38400, 0x5df528da
+0, 59999, 38400, 0xe4e65876
+0, 65998, 38400, 0x5bf4a46e
+0, 71998, 38400, 0xee478c2a
+0, 77998, 38400, 0x51a555c2
+0, 83998, 38400, 0x30a4030a
+0, 89998, 38400, 0xb13802d6
+0, 95998, 38400, 0x45ef5482
+0, 101997, 38400, 0x00aef51b
+0, 107997, 38400, 0xe8a71d7e
+0, 113997, 38400, 0x3d185142
+0, 119997, 38400, 0x221f59ea
+0, 125997, 38400, 0x1ae13572
+0, 131997, 38400, 0xe498450e
+0, 137997, 38400, 0xe744747a
+0, 143996, 38400, 0x44ee3352
+0, 149996, 38400, 0x74187342
+0, 155996, 38400, 0xbee9656e
+0, 161996, 38400, 0x645c8d1a
+0, 167996, 38400, 0x443dde1e
+0, 173996, 38400, 0x012106fd
+0, 179996, 38400, 0x4bb86b82
+0, 185995, 38400, 0x152473ba
+0, 191995, 38400, 0xa5214ea2
+0, 197995, 38400, 0x9e8c7046
+0, 203995, 38400, 0xdd95a9ba
+0, 209995, 38400, 0x64c5f292
+0, 215995, 38400, 0xdd42a04a
+0, 221994, 38400, 0x6069359e
+0, 227994, 38400, 0x094bf60f
+0, 233994, 38400, 0x584217be
+0, 239994, 38400, 0x4c5ef453
+0, 245994, 38400, 0x7e83eeb7
+0, 251994, 38400, 0xaa57efb3
+0, 257994, 38400, 0x42b0a66f
+0, 263993, 38400, 0x371fdcbf
+0, 269993, 38400, 0xb8f1e1bf
+0, 275993, 38400, 0x45c91fa6
+0, 281993, 38400, 0x7508338e
+0, 287993, 38400, 0xb5dd91ab
+0, 293993, 38400, 0x0204b38f
+0, 299993, 38400, 0x8ae2da6f
+0, 305992, 38400, 0x926ad59f
+0, 311992, 38400, 0xf9c3234e
+0, 317992, 38400, 0xabcb00f6
+0, 323992, 38400, 0x2d1de7bb
+0, 329992, 38400, 0x332d39ce
+0, 335992, 38400, 0xcd767286
+0, 341991, 38400, 0xf3d046ae
+0, 347991, 38400, 0x7ccc8162
+0, 353991, 38400, 0x09f6997e
+0, 359991, 38400, 0x5fcc6536
+0, 365991, 38400, 0x9959a3b6
+0, 371991, 38400, 0x63a5dcd2
+0, 377991, 38400, 0x66deae96
+0, 383990, 38400, 0x6feb0b1d
+0, 389990, 38400, 0x2063c25e
+0, 395990, 38400, 0x617f93de
+0, 401990, 38400, 0x4251c806
+0, 407990, 38400, 0x702eb68e
+0, 413990, 38400, 0xe80b8ea6
+0, 419990, 38400, 0xa51ec1b2
+0, 425989, 38400, 0x8aa8af8a
+0, 431989, 38400, 0x9a260321
+0, 437989, 38400, 0x2c732c22
+0, 443989, 38400, 0x216ed6a2
+0, 449989, 38400, 0x5558326d
+0, 455989, 38400, 0x0cae4cf5
+0, 461988, 38400, 0xf0e02f3d
+0, 467988, 38400, 0xfddd061d
+0, 473988, 38400, 0x4563e9d6
+0, 479988, 38400, 0xc8ac10d1
+0, 485988, 38400, 0x97f8c3fa
+0, 491988, 38400, 0x86190eb1
+0, 497988, 38400, 0xc9022d65
+0, 503987, 38400, 0x345738d5
+0, 509987, 38400, 0x457ae80e
diff --git a/tests/ref/fate/xan-dpcm b/tests/ref/fate/xan-dpcm
new file mode 100644
index 0000000000..cb56677d0a
--- /dev/null
+++ b/tests/ref/fate/xan-dpcm
@@ -0,0 +1 @@
+b6da857766896ab10bb900004f915053
diff --git a/tests/ref/fate/zlib b/tests/ref/fate/zlib
new file mode 100644
index 0000000000..ba6221fcf7
--- /dev/null
+++ b/tests/ref/fate/zlib
@@ -0,0 +1 @@
+0, 0, 253440, 0x94af61e5
diff --git a/tests/ref/fate/zmbv-15bit b/tests/ref/fate/zmbv-15bit
new file mode 100644
index 0000000000..527c1e6b60
--- /dev/null
+++ b/tests/ref/fate/zmbv-15bit
@@ -0,0 +1,159 @@
+0, 0, 192000, 0xe1d317d6
+0, 14193, 192000, 0xe100109d
+0, 28385, 192000, 0xecc69c65
+0, 42578, 192000, 0x68f06324
+0, 56770, 192000, 0x68f06324
+0, 70963, 192000, 0x68f06324
+0, 85155, 192000, 0x68f06324
+0, 99348, 192000, 0x68f06324
+0, 113540, 192000, 0x68f06324
+0, 127733, 192000, 0x68f06324
+0, 141925, 192000, 0x68f06324
+0, 156118, 192000, 0x68f06324
+0, 170310, 192000, 0x68f06324
+0, 184503, 192000, 0x68f06324
+0, 198695, 192000, 0x68f06324
+0, 212888, 192000, 0x68f06324
+0, 227080, 192000, 0x68f06324
+0, 241273, 192000, 0x4c03d2e3
+0, 255466, 192000, 0x4c03d2e3
+0, 269658, 192000, 0x4c03d2e3
+0, 283851, 192000, 0x4c03d2e3
+0, 298043, 192000, 0xb562cf68
+0, 312236, 192000, 0xb562cf68
+0, 326428, 192000, 0xb562cf68
+0, 340621, 192000, 0xb562cf68
+0, 354813, 192000, 0xb562cf68
+0, 369006, 192000, 0x0e5e03c7
+0, 383198, 192000, 0x0e5e03c7
+0, 397391, 192000, 0x0e5e03c7
+0, 411583, 192000, 0x0e5e03c7
+0, 425776, 192000, 0xeb2e0f67
+0, 439968, 192000, 0xeb2e0f67
+0, 454161, 192000, 0xeb2e0f67
+0, 468353, 192000, 0xeb2e0f67
+0, 482546, 192000, 0xeb2e0f67
+0, 496739, 192000, 0xdce603c7
+0, 510931, 192000, 0xdce603c7
+0, 525124, 192000, 0xdce603c7
+0, 539316, 192000, 0xdce603c7
+0, 553509, 192000, 0xa8e7db08
+0, 567701, 192000, 0xa8e7db08
+0, 581894, 192000, 0xa8e7db08
+0, 596086, 192000, 0xa8e7db08
+0, 610279, 192000, 0xa8e7db08
+0, 624471, 192000, 0x322a1b07
+0, 638664, 192000, 0x322a1b07
+0, 652856, 192000, 0x322a1b07
+0, 667049, 192000, 0x322a1b07
+0, 681241, 192000, 0x743206af
+0, 695434, 192000, 0x743206af
+0, 709627, 192000, 0x743206af
+0, 723819, 192000, 0x743206af
+0, 738012, 192000, 0x743206af
+0, 752204, 192000, 0x50195ddf
+0, 766397, 192000, 0x50195ddf
+0, 780589, 192000, 0x50195ddf
+0, 794782, 192000, 0x50195ddf
+0, 808974, 192000, 0xd31620d7
+0, 823167, 192000, 0xd31620d7
+0, 837359, 192000, 0xd31620d7
+0, 851552, 192000, 0xd31620d7
+0, 865744, 192000, 0xd31620d7
+0, 879937, 192000, 0x3af023bf
+0, 894129, 192000, 0x3af023bf
+0, 908322, 192000, 0x3af023bf
+0, 922514, 192000, 0x3af023bf
+0, 936707, 192000, 0x561a124f
+0, 950900, 192000, 0x561a124f
+0, 965092, 192000, 0x561a124f
+0, 979285, 192000, 0x561a124f
+0, 993477, 192000, 0x561a124f
+0, 1007670, 192000, 0x99210c7f
+0, 1021862, 192000, 0x99210c7f
+0, 1036055, 192000, 0x99210c7f
+0, 1050247, 192000, 0x99210c7f
+0, 1064440, 192000, 0xc77b03c7
+0, 1078632, 192000, 0xc77b03c7
+0, 1092825, 192000, 0xc77b03c7
+0, 1107017, 192000, 0xc77b03c7
+0, 1121210, 192000, 0xc77b03c7
+0, 1135402, 192000, 0x83ea7550
+0, 1149595, 192000, 0xec285270
+0, 1163787, 192000, 0x0e075558
+0, 1177980, 192000, 0x880c2108
+0, 1192173, 192000, 0x40c523f0
+0, 1206365, 192000, 0x01378f78
+0, 1220558, 192000, 0x42045558
+0, 1234750, 192000, 0xde8f3278
+0, 1248943, 192000, 0xa58c0110
+0, 1263135, 192000, 0x335ea9d1
+0, 1277328, 192000, 0x7e94bb41
+0, 1291520, 192000, 0x9cc5d569
+0, 1305713, 192000, 0xe942e109
+0, 1319905, 192000, 0x4cb83848
+0, 1334098, 192000, 0x6986fe19
+0, 1348290, 192000, 0xbb8c23f0
+0, 1362483, 192000, 0x296766c8
+0, 1376675, 192000, 0xb4230cb0
+0, 1390868, 192000, 0x2c2f1850
+0, 1405060, 192000, 0x93c70110
+0, 1419253, 192000, 0xb830a9d1
+0, 1433446, 192000, 0xbed48fa9
+0, 1447638, 192000, 0xc087bb41
+0, 1461831, 192000, 0x792de6d9
+0, 1476023, 192000, 0x1edaf849
+0, 1490216, 192000, 0x6564bb41
+0, 1504408, 192000, 0x9153d569
+0, 1518601, 192000, 0xe73ff561
+0, 1532793, 192000, 0xfa3be3f1
+0, 1546986, 192000, 0x8008fe19
+0, 1561178, 192000, 0xd2561b38
+0, 1575371, 192000, 0xae3c26d8
+0, 1589563, 192000, 0xb0114f88
+0, 1603756, 192000, 0x117e1e20
+0, 1617948, 192000, 0x482d1280
+0, 1632141, 192000, 0x425106e0
+0, 1646334, 192000, 0x0e6b0cb0
+0, 1660526, 192000, 0x95dc2ca8
+0, 1674719, 192000, 0x52097b20
+0, 1688911, 192000, 0x41a84f88
+0, 1703104, 192000, 0xb78d7268
+0, 1717296, 192000, 0x2cd366c8
+0, 1731489, 192000, 0xbf39e109
+0, 1745681, 192000, 0xecbaeca9
+0, 1759874, 192000, 0x3254eca9
+0, 1774066, 192000, 0x3fc903f8
+0, 1788259, 192000, 0x0bbc5e10
+0, 1802451, 192000, 0xe9103560
+0, 1816644, 192000, 0xbd5d2f90
+0, 1830836, 192000, 0x7ace2ca8
+0, 1845029, 192000, 0x7354c6e1
+0, 1859221, 192000, 0x72e0d569
+0, 1873414, 192000, 0xa4ade3f1
+0, 1887607, 192000, 0xf2f8cf99
+0, 1901799, 192000, 0x2b7ee6d9
+0, 1915992, 192000, 0x548d1b38
+0, 1930184, 192000, 0xa1551b38
+0, 1944377, 192000, 0xfb3e3560
+0, 1958569, 192000, 0x3aaaccb1
+0, 1972762, 192000, 0xa85ee109
+0, 1986954, 192000, 0xc1bff849
+0, 2001147, 192000, 0xa62bef91
+0, 2015339, 192000, 0xddf40cb0
+0, 2029532, 192000, 0x15bb3e18
+0, 2043724, 192000, 0x92fd5558
+0, 2057917, 192000, 0x2d365270
+0, 2072109, 192000, 0xb5f343e8
+0, 2086302, 192000, 0x93042108
+0, 2100494, 192000, 0x96d59830
+0, 2114687, 192000, 0x1f69ddf0
+0, 2128880, 192000, 0x8eb0124f
+0, 2143072, 192000, 0xae727dd7
+0, 2157265, 192000, 0xb8a63aff
+0, 2171457, 192000, 0xfae83de7
+0, 2185650, 192000, 0x2f034987
+0, 2199842, 192000, 0xa99e1537
+0, 2214035, 192000, 0x0ad70c7f
+0, 2228227, 192000, 0x74b3e990
+0, 2242420, 192000, 0x1bf0d250
diff --git a/tests/ref/fate/zmbv-16bit b/tests/ref/fate/zmbv-16bit
new file mode 100644
index 0000000000..ef37d44f65
--- /dev/null
+++ b/tests/ref/fate/zmbv-16bit
@@ -0,0 +1,159 @@
+0, 0, 192000, 0x11e62dbe
+0, 14193, 192000, 0x31698b8f
+0, 28385, 192000, 0x31698b8f
+0, 42578, 192000, 0x31698b8f
+0, 56770, 192000, 0x31698b8f
+0, 70963, 192000, 0x31698b8f
+0, 85155, 192000, 0x31698b8f
+0, 99348, 192000, 0x31698b8f
+0, 113540, 192000, 0x31698b8f
+0, 127733, 192000, 0x31698b8f
+0, 141925, 192000, 0x31698b8f
+0, 156118, 192000, 0x31698b8f
+0, 170310, 192000, 0x31698b8f
+0, 184503, 192000, 0x4ca609ea
+0, 198695, 192000, 0x4ca609ea
+0, 212888, 192000, 0x4ca609ea
+0, 227080, 192000, 0x4ca609ea
+0, 241273, 192000, 0x33dd0a8b
+0, 255466, 192000, 0x33dd0a8b
+0, 269658, 192000, 0x33dd0a8b
+0, 283851, 192000, 0x33dd0a8b
+0, 298043, 192000, 0x33dd0a8b
+0, 312236, 192000, 0x08e2420f
+0, 326428, 192000, 0x08e2420f
+0, 340621, 192000, 0x08e2420f
+0, 354813, 192000, 0x08e2420f
+0, 369006, 192000, 0x7b7b50ab
+0, 383198, 192000, 0x7b7b50ab
+0, 397391, 192000, 0x7b7b50ab
+0, 411583, 192000, 0x7b7b50ab
+0, 425776, 192000, 0x7b7b50ab
+0, 439968, 192000, 0x128744fb
+0, 454161, 192000, 0x128744fb
+0, 468353, 192000, 0x128744fb
+0, 482546, 192000, 0x128744fb
+0, 496739, 192000, 0x8643163b
+0, 510931, 192000, 0x8643163b
+0, 525124, 192000, 0x8643163b
+0, 539316, 192000, 0x8643163b
+0, 553509, 192000, 0x8643163b
+0, 567701, 192000, 0x4f7c596f
+0, 581894, 192000, 0x4f7c596f
+0, 596086, 192000, 0x4f7c596f
+0, 610279, 192000, 0x4f7c596f
+0, 624471, 192000, 0xa275420f
+0, 638664, 192000, 0xa275420f
+0, 652856, 192000, 0xa275420f
+0, 667049, 192000, 0xa275420f
+0, 681241, 192000, 0xa275420f
+0, 695434, 192000, 0x2e4796cb
+0, 709627, 192000, 0x2e4796cb
+0, 723819, 192000, 0x2e4796cb
+0, 738012, 192000, 0x2e4796cb
+0, 752204, 192000, 0xebd45683
+0, 766397, 192000, 0xebd45683
+0, 780589, 192000, 0xebd45683
+0, 794782, 192000, 0xebd45683
+0, 808974, 192000, 0xebd45683
+0, 823167, 192000, 0x0bf6596f
+0, 837359, 192000, 0x0bf6596f
+0, 851552, 192000, 0x0bf6596f
+0, 865744, 192000, 0x0bf6596f
+0, 879937, 192000, 0xb7af47e7
+0, 894129, 192000, 0xb7af47e7
+0, 908322, 192000, 0xb7af47e7
+0, 922514, 192000, 0xb7af47e7
+0, 936707, 192000, 0xb7af47e7
+0, 950900, 192000, 0x8bc344fb
+0, 965092, 192000, 0x8bc344fb
+0, 979285, 192000, 0x8bc344fb
+0, 993477, 192000, 0x8bc344fb
+0, 1007670, 192000, 0x8bc344fb
+0, 1021862, 192000, 0x02a23f23
+0, 1036055, 192000, 0x02a23f23
+0, 1050247, 192000, 0x02a23f23
+0, 1064440, 192000, 0x02a23f23
+0, 1078632, 192000, 0x17be3087
+0, 1092825, 192000, 0x52c7b2d4
+0, 1107017, 192000, 0xa05e9888
+0, 1121210, 192000, 0x4d6a6cb4
+0, 1135402, 192000, 0x3e2189ec
+0, 1149595, 192000, 0xfbe3ca34
+0, 1163787, 192000, 0xa9cd8fc4
+0, 1177980, 192000, 0x986e6cb4
+0, 1192173, 192000, 0x42373b08
+0, 1206365, 192000, 0xab96e351
+0, 1220558, 192000, 0x28ccf4d9
+0, 1234750, 192000, 0xc19e0f34
+0, 1248943, 192000, 0xd8da1ae4
+0, 1263135, 192000, 0xd015728c
+0, 1277328, 192000, 0x550623a8
+0, 1291520, 192000, 0x3c5c5268
+0, 1305713, 192000, 0x3eae8128
+0, 1319905, 192000, 0x3c51381c
+0, 1334098, 192000, 0x745046b8
+0, 1348290, 192000, 0xa8bd43cc
+0, 1362483, 192000, 0xde8fe351
+0, 1376675, 192000, 0x3d5cc905
+0, 1390868, 192000, 0xcf8df4d9
+0, 1405060, 192000, 0x698b20bc
+0, 1419253, 192000, 0x159d3244
+0, 1433446, 192000, 0xba1af4d9
+0, 1447638, 192000, 0x033a0f34
+0, 1461831, 192000, 0x72612f58
+0, 1476023, 192000, 0x11e11dd0
+0, 1490216, 192000, 0x4fc04f7c
+0, 1504408, 192000, 0x37779888
+0, 1518601, 192000, 0xabfc5e18
+0, 1532793, 192000, 0x0ad97e3c
+0, 1546986, 192000, 0xddf492b0
+0, 1561178, 192000, 0x198b23a8
+0, 1575371, 192000, 0x6b491220
+0, 1589563, 192000, 0x632417f8
+0, 1603756, 192000, 0x0dc5381c
+0, 1617948, 192000, 0x6d548700
+0, 1632141, 192000, 0xae0c5b2c
+0, 1646334, 192000, 0x23427e3c
+0, 1660526, 192000, 0x5def728c
+0, 1674719, 192000, 0xec831ae4
+0, 1688911, 192000, 0x00000000
+0, 1703104, 192000, 0x00000000
+0, 1717296, 192000, 0x00000000
+0, 1731489, 192000, 0x00000000
+0, 1745681, 192000, 0x00000000
+0, 1759874, 192000, 0x00000000
+0, 1774066, 192000, 0x00000000
+0, 1788259, 192000, 0x00000000
+0, 1802451, 192000, 0x00000000
+0, 1816644, 192000, 0xd6050414
+0, 1830836, 192000, 0xf9f90594
+0, 1845029, 192000, 0xa6220704
+0, 1859221, 192000, 0x54570858
+0, 1873414, 192000, 0xd81109ac
+0, 1887607, 192000, 0xc0540afc
+0, 1901799, 192000, 0x83ee0c20
+0, 1915992, 192000, 0x2a810d3c
+0, 1930184, 192000, 0xb3a71844
+0, 1944377, 192000, 0xd4ff1c7c
+0, 1958569, 192000, 0x92b21fdc
+0, 1972762, 192000, 0x03912364
+0, 1986954, 192000, 0x65c9262c
+0, 2001147, 192000, 0xf2e5290c
+0, 2015339, 192000, 0xc8cc2b4c
+0, 2029532, 192000, 0x272a2f1c
+0, 2043724, 192000, 0xa672313c
+0, 2057917, 192000, 0xab01331c
+0, 2072109, 192000, 0x92643458
+0, 2086302, 192000, 0x9a943548
+0, 2100494, 192000, 0x3eb735ac
+0, 2114687, 192000, 0x3eb735ac
+0, 2128880, 192000, 0x3eb735ac
+0, 2143072, 192000, 0x3eb735ac
+0, 2157265, 192000, 0x3eb735ac
+0, 2171457, 192000, 0x3eb735ac
+0, 2185650, 192000, 0x3eb735ac
+0, 2199842, 192000, 0x3eb735ac
+0, 2214035, 192000, 0x3eb735ac
+0, 2228227, 192000, 0x3eb735ac
+0, 2242420, 192000, 0x3eb735ac
diff --git a/tests/ref/fate/zmbv-32bit b/tests/ref/fate/zmbv-32bit
new file mode 100644
index 0000000000..4b961cc370
--- /dev/null
+++ b/tests/ref/fate/zmbv-32bit
@@ -0,0 +1,159 @@
+0, 0, 192000, 0x3ac10e8e
+0, 14193, 192000, 0xb772ee57
+0, 28385, 192000, 0x9b6e648a
+0, 42578, 192000, 0x3d9c33e3
+0, 56770, 192000, 0x006db76d
+0, 70963, 192000, 0x006db76d
+0, 85155, 192000, 0x006db76d
+0, 99348, 192000, 0x006db76d
+0, 113540, 192000, 0x006db76d
+0, 127733, 192000, 0x006db76d
+0, 141925, 192000, 0x006db76d
+0, 156118, 192000, 0x006db76d
+0, 170310, 192000, 0x006db76d
+0, 184503, 192000, 0x006db76d
+0, 198695, 192000, 0x006db76d
+0, 212888, 192000, 0x7b9b28fb
+0, 227080, 192000, 0x7b9b28fb
+0, 241273, 192000, 0x7b9b28fb
+0, 255466, 192000, 0x7b9b28fb
+0, 269658, 192000, 0x7b9b28fb
+0, 283851, 192000, 0x7b9b28fb
+0, 298043, 192000, 0x67be3519
+0, 312236, 192000, 0x67be3519
+0, 326428, 192000, 0x67be3519
+0, 340621, 192000, 0x67be3519
+0, 354813, 192000, 0x67be3519
+0, 369006, 192000, 0x2ece70dd
+0, 383198, 192000, 0x2ece70dd
+0, 397391, 192000, 0x2ece70dd
+0, 411583, 192000, 0x2ece70dd
+0, 425776, 192000, 0x2ece70dd
+0, 439968, 192000, 0x2ece70dd
+0, 454161, 192000, 0xd3a382cb
+0, 468353, 192000, 0xd3a382cb
+0, 482546, 192000, 0xd3a382cb
+0, 496739, 192000, 0xd3a382cb
+0, 510931, 192000, 0xd3a382cb
+0, 525124, 192000, 0xd3a382cb
+0, 539316, 192000, 0x2d3d7fce
+0, 553509, 192000, 0x2d3d7fce
+0, 567701, 192000, 0x2d3d7fce
+0, 581894, 192000, 0x2d3d7fce
+0, 596086, 192000, 0x2d3d7fce
+0, 610279, 192000, 0x36fd52fb
+0, 624471, 192000, 0x36fd52fb
+0, 638664, 192000, 0x36fd52fb
+0, 652856, 192000, 0x36fd52fb
+0, 667049, 192000, 0x36fd52fb
+0, 681241, 192000, 0x36fd52fb
+0, 695434, 192000, 0xa38e9ab3
+0, 709627, 192000, 0x57095eef
+0, 723819, 192000, 0x5c4f4d01
+0, 738012, 192000, 0xac20321c
+0, 752204, 192000, 0x7e370e40
+0, 766397, 192000, 0xe9d92925
+0, 780589, 192000, 0xfef4d26d
+0, 794782, 192000, 0x77a4ab94
+0, 808974, 192000, 0x802fb18e
+0, 823167, 192000, 0xce968db2
+0, 837359, 192000, 0x21e6ab94
+0, 851552, 192000, 0x309d45fa
+0, 865744, 192000, 0x5d193709
+0, 879937, 192000, 0x72190d33
+0, 894129, 192000, 0xdaed162a
+0, 908322, 192000, 0x2fcaf23f
+0, 922514, 192000, 0x8986d45d
+0, 936707, 192000, 0xcf7de34e
+0, 950900, 192000, 0x22390d33
+0, 965092, 192000, 0x4b29132d
+0, 979285, 192000, 0xbffe1f21
+0, 993477, 192000, 0xa4eee34e
+0, 1007670, 192000, 0xe85ae64b
+0, 1021862, 192000, 0xb7bef23f
+0, 1036055, 192000, 0x05ab1927
+0, 1050247, 192000, 0x915f6cd3
+0, 1064440, 192000, 0x524d69d6
+0, 1078632, 192000, 0x62da78c7
+0, 1092825, 192000, 0xbf6f84bb
+0, 1107017, 192000, 0xbe9f6cd3
+0, 1121210, 192000, 0x80d0132d
+0, 1135402, 192000, 0x0789251b
+0, 1149595, 192000, 0xba1a1f21
+0, 1163787, 192000, 0x542b42fd
+0, 1177980, 192000, 0x0ff951ee
+0, 1192173, 192000, 0x785048f7
+0, 1206365, 192000, 0x5a50251b
+0, 1220558, 192000, 0xd5d73a06
+0, 1234750, 192000, 0x7a3a54eb
+0, 1248943, 192000, 0x1e2b5de2
+0, 1263135, 192000, 0xeac542fd
+0, 1277328, 192000, 0x897a1f21
+0, 1291520, 192000, 0x61602b15
+0, 1305713, 192000, 0xb12f221e
+0, 1319905, 192000, 0x08541f21
+0, 1334098, 192000, 0xeebd251b
+0, 1348290, 192000, 0xc1132e12
+0, 1362483, 192000, 0x99642818
+0, 1376675, 192000, 0x9b8e162a
+0, 1390868, 192000, 0x21b81f21
+0, 1405060, 192000, 0x1abd1030
+0, 1419253, 192000, 0x0d613d03
+0, 1433446, 192000, 0xcb32132d
+0, 1447638, 192000, 0xc680162a
+0, 1461831, 192000, 0x8dea2818
+0, 1476023, 192000, 0x3c4e1927
+0, 1490216, 192000, 0xed733709
+0, 1504408, 192000, 0xf4051c24
+0, 1518601, 192000, 0xb8eb221e
+0, 1532793, 192000, 0x1a412818
+0, 1546986, 192000, 0x6ee6162a
+0, 1561178, 192000, 0xe1a248f7
+0, 1575371, 192000, 0xc2c2221e
+0, 1589563, 192000, 0x7fdf1f21
+0, 1603756, 192000, 0x85bc251b
+0, 1617948, 192000, 0xe77c251b
+0, 1632141, 192000, 0x8789340c
+0, 1646334, 192000, 0xb6014000
+0, 1660526, 192000, 0xaa9542fd
+0, 1674719, 192000, 0x36ce54eb
+0, 1688911, 192000, 0xd1324ef1
+0, 1703104, 192000, 0x0ade60df
+0, 1717296, 192000, 0xfac56cd3
+0, 1731489, 192000, 0x00000000
+0, 1745681, 192000, 0x00000000
+0, 1759874, 192000, 0xc61c026a
+0, 1774066, 192000, 0x60810842
+0, 1788259, 192000, 0x65081393
+0, 1802451, 192000, 0xc806209f
+0, 1816644, 192000, 0x53aa32cb
+0, 1830836, 192000, 0x176546ef
+0, 1845029, 192000, 0x4e095d0e
+0, 1859221, 192000, 0xf74b7774
+0, 1873414, 192000, 0x32809306
+0, 1887607, 192000, 0x5219ae81
+0, 1901799, 192000, 0x3badcc40
+0, 1915992, 192000, 0x1387ea5d
+0, 1930184, 192000, 0xe0c606f0
+0, 1944377, 192000, 0x106f2197
+0, 1958569, 192000, 0xfe2139cf
+0, 1972762, 192000, 0x907d4f0a
+0, 1986954, 192000, 0x04415dad
+0, 2001147, 192000, 0xe0b864b6
+0, 2015339, 192000, 0xcb2a64b8
+0, 2029532, 192000, 0xcb2a64b8
+0, 2043724, 192000, 0xcb2a64b8
+0, 2057917, 192000, 0xcb2a64b8
+0, 2072109, 192000, 0xcb2a64b8
+0, 2086302, 192000, 0xcb2a64b8
+0, 2100494, 192000, 0xcb2a64b8
+0, 2114687, 192000, 0xcb2a64b8
+0, 2128880, 192000, 0xcb2a64b8
+0, 2143072, 192000, 0xcb2a64b8
+0, 2157265, 192000, 0xcb2a64b8
+0, 2171457, 192000, 0xcb2a64b8
+0, 2185650, 192000, 0xcb2a64b8
+0, 2199842, 192000, 0xcb2a64b8
+0, 2214035, 192000, 0xcb2a64b8
+0, 2228227, 192000, 0xcb2a64b8
+0, 2242420, 192000, 0xcb2a64b8
diff --git a/tests/ref/fate/zmbv-8bit b/tests/ref/fate/zmbv-8bit
new file mode 100644
index 0000000000..258147f914
--- /dev/null
+++ b/tests/ref/fate/zmbv-8bit
@@ -0,0 +1,275 @@
+0, 0, 192000, 0x5234b617
+0, 1284, 192000, 0x5234b617
+0, 2568, 192000, 0x5234b617
+0, 3852, 192000, 0x5234b617
+0, 5137, 192000, 0x5234b617
+0, 6421, 192000, 0x5234b617
+0, 7705, 192000, 0x5234b617
+0, 8989, 192000, 0x5234b617
+0, 10273, 192000, 0x5234b617
+0, 11557, 192000, 0x5234b617
+0, 12841, 192000, 0x5234b617
+0, 14125, 192000, 0x5234b617
+0, 15410, 192000, 0x5234b617
+0, 16694, 192000, 0x5234b617
+0, 17978, 192000, 0x5234b617
+0, 19262, 192000, 0x5234b617
+0, 20546, 192000, 0x5234b617
+0, 21830, 192000, 0x5234b617
+0, 23114, 192000, 0x5234b617
+0, 24398, 192000, 0x5234b617
+0, 25683, 192000, 0x5234b617
+0, 26967, 192000, 0x5234b617
+0, 28251, 192000, 0x5234b617
+0, 29535, 192000, 0x5234b617
+0, 30819, 192000, 0x5234b617
+0, 32103, 192000, 0x5234b617
+0, 33387, 192000, 0x5234b617
+0, 34672, 192000, 0x5234b617
+0, 35956, 192000, 0x5234b617
+0, 37240, 192000, 0x5234b617
+0, 38524, 192000, 0x5234b617
+0, 39808, 192000, 0x5234b617
+0, 41092, 192000, 0x5234b617
+0, 42376, 192000, 0x5234b617
+0, 43660, 192000, 0x5234b617
+0, 44945, 192000, 0x5234b617
+0, 46229, 192000, 0x5234b617
+0, 47513, 192000, 0x5234b617
+0, 48797, 192000, 0x5234b617
+0, 50081, 192000, 0x5234b617
+0, 51365, 192000, 0x5234b617
+0, 52649, 192000, 0x5234b617
+0, 53934, 192000, 0x5234b617
+0, 55218, 192000, 0x5234b617
+0, 56502, 192000, 0x5234b617
+0, 57786, 192000, 0x5234b617
+0, 59070, 192000, 0x5234b617
+0, 60354, 192000, 0x5234b617
+0, 61638, 192000, 0x5234b617
+0, 62922, 192000, 0x5234b617
+0, 64207, 192000, 0x5234b617
+0, 65491, 192000, 0x5234b617
+0, 66775, 192000, 0x5234b617
+0, 68059, 192000, 0x5234b617
+0, 69343, 192000, 0x5234b617
+0, 70627, 192000, 0x5234b617
+0, 71911, 192000, 0x5234b617
+0, 73195, 192000, 0x5234b617
+0, 74480, 192000, 0x5234b617
+0, 75764, 192000, 0x5234b617
+0, 77048, 192000, 0x5234b617
+0, 78332, 192000, 0x5234b617
+0, 79616, 192000, 0x5234b617
+0, 80900, 192000, 0x5234b617
+0, 82184, 192000, 0x5234b617
+0, 83469, 192000, 0x5234b617
+0, 84753, 192000, 0x5234b617
+0, 86037, 192000, 0x5234b617
+0, 87321, 192000, 0x5234b617
+0, 88605, 192000, 0x5234b617
+0, 89889, 192000, 0x5234b617
+0, 91173, 192000, 0x5234b617
+0, 92457, 192000, 0x5234b617
+0, 93742, 192000, 0x5234b617
+0, 95026, 192000, 0x5234b617
+0, 96310, 192000, 0x5234b617
+0, 97594, 192000, 0x5234b617
+0, 98878, 192000, 0x5234b617
+0, 100162, 192000, 0x5234b617
+0, 101446, 192000, 0x5234b617
+0, 102730, 192000, 0x5234b617
+0, 104015, 192000, 0x5234b617
+0, 105299, 192000, 0x5234b617
+0, 106583, 192000, 0x5234b617
+0, 107867, 192000, 0x5234b617
+0, 109151, 192000, 0x5234b617
+0, 110435, 192000, 0x0c148693
+0, 111719, 192000, 0x973f438b
+0, 113004, 192000, 0x602a279b
+0, 114288, 192000, 0x739c7527
+0, 115572, 192000, 0x4ef4b477
+0, 116856, 192000, 0x8fffec23
+0, 118140, 192000, 0xe192c706
+0, 119424, 192000, 0xf38000e5
+0, 120708, 192000, 0x628b9051
+0, 121992, 192000, 0xd7c162c0
+0, 123277, 192000, 0xd4b85307
+0, 124561, 192000, 0x377cf8cf
+0, 125845, 192000, 0xf1ffdff2
+0, 127129, 192000, 0x95a0ab01
+0, 128413, 192000, 0xeb69c7f0
+0, 129697, 192000, 0xfbd0af52
+0, 130981, 192000, 0x32da6d10
+0, 132266, 192000, 0xca8e7836
+0, 133550, 192000, 0x404cefe9
+0, 134834, 192000, 0x0433e9c8
+0, 136118, 192000, 0xd6e09ecf
+0, 137402, 192000, 0xc9a822b5
+0, 138686, 192000, 0x032f2398
+0, 139970, 192000, 0x9e0305bf
+0, 141254, 192000, 0x9d66c993
+0, 142539, 192000, 0xe126b022
+0, 143823, 192000, 0xb59d2829
+0, 145107, 192000, 0x967ad5b1
+0, 146391, 192000, 0xb76ad1dc
+0, 147675, 192000, 0xc901e6e3
+0, 148959, 192000, 0xd22bc862
+0, 150243, 192000, 0xe7547295
+0, 151527, 192000, 0x179a8d78
+0, 152812, 192000, 0x87a4310f
+0, 154096, 192000, 0x4e24d3b3
+0, 155380, 192000, 0xb1b8e58a
+0, 156664, 192000, 0x0ae55330
+0, 157948, 192000, 0xdb3288ab
+0, 159232, 192000, 0x31867a92
+0, 160516, 192000, 0x2a44a0a5
+0, 161801, 192000, 0x29c062f4
+0, 163085, 192000, 0xf4df3a2b
+0, 164369, 192000, 0x8e424f86
+0, 165653, 192000, 0x25b901f9
+0, 166937, 192000, 0x77af6cad
+0, 168221, 192000, 0x0b82d562
+0, 169505, 192000, 0x4322dc3e
+0, 170789, 192000, 0x4322dc3e
+0, 172074, 192000, 0x4322dc3e
+0, 173358, 192000, 0x2c51f91e
+0, 174642, 192000, 0x2c51f91e
+0, 175926, 192000, 0x2c51f91e
+0, 177210, 192000, 0x2c51f91e
+0, 178494, 192000, 0x197128e5
+0, 179778, 192000, 0x197128e5
+0, 181062, 192000, 0x197128e5
+0, 182347, 192000, 0xb67867c5
+0, 183631, 192000, 0xb67867c5
+0, 184915, 192000, 0xb67867c5
+0, 186199, 192000, 0xb67867c5
+0, 187483, 192000, 0x62fcac19
+0, 188767, 192000, 0x62fcac19
+0, 190051, 192000, 0x62fcac19
+0, 191336, 192000, 0xe4f4f281
+0, 192620, 192000, 0xe4f4f281
+0, 193904, 192000, 0xe4f4f281
+0, 195188, 192000, 0xe4f4f281
+0, 196472, 192000, 0x060c3190
+0, 197756, 192000, 0x060c3190
+0, 199040, 192000, 0x060c3190
+0, 200324, 192000, 0xe5c05bb4
+0, 201609, 192000, 0xe5c05bb4
+0, 202893, 192000, 0xe5c05bb4
+0, 204177, 192000, 0xe5c05bb4
+0, 205461, 192000, 0xd4b187fc
+0, 206745, 192000, 0xd4b187fc
+0, 208029, 192000, 0xd4b187fc
+0, 209313, 192000, 0x9a549a6c
+0, 210597, 192000, 0x9a549a6c
+0, 211882, 192000, 0x9a549a6c
+0, 213166, 192000, 0x9a549a6c
+0, 214450, 192000, 0xd491bd50
+0, 215734, 192000, 0xd491bd50
+0, 217018, 192000, 0xd491bd50
+0, 218302, 192000, 0xfdfad4a8
+0, 219586, 192000, 0xfdfad4a8
+0, 220871, 192000, 0xfdfad4a8
+0, 222155, 192000, 0xfdfad4a8
+0, 223439, 192000, 0x363ef77c
+0, 224723, 192000, 0x363ef77c
+0, 226007, 192000, 0x363ef77c
+0, 227291, 192000, 0x80c016f7
+0, 228575, 192000, 0x80c016f7
+0, 229859, 192000, 0x80c016f7
+0, 231144, 192000, 0x80c016f7
+0, 232428, 192000, 0x65852e7f
+0, 233712, 192000, 0x65852e7f
+0, 234996, 192000, 0x65852e7f
+0, 236280, 192000, 0xcb13542b
+0, 237564, 192000, 0xcb13542b
+0, 238848, 192000, 0xcb13542b
+0, 240133, 192000, 0xcb13542b
+0, 241417, 192000, 0xb7a5664f
+0, 242701, 192000, 0xb7a5664f
+0, 243985, 192000, 0xb7a5664f
+0, 245269, 192000, 0x8a128fd7
+0, 246553, 192000, 0x8a128fd7
+0, 247837, 192000, 0x8a128fd7
+0, 249121, 192000, 0x8a128fd7
+0, 250406, 192000, 0x9674b39b
+0, 251690, 192000, 0x9674b39b
+0, 252974, 192000, 0x9674b39b
+0, 254258, 192000, 0x2940e3b3
+0, 255542, 192000, 0x2940e3b3
+0, 256826, 192000, 0x2940e3b3
+0, 258110, 192000, 0x2940e3b3
+0, 259394, 192000, 0x0440e56b
+0, 260679, 192000, 0x0440e56b
+0, 261963, 192000, 0x0440e56b
+0, 263247, 192000, 0xefa3d16b
+0, 264531, 192000, 0xefa3d16b
+0, 265815, 192000, 0xefa3d16b
+0, 267099, 192000, 0xefa3d16b
+0, 268383, 192000, 0x6569b257
+0, 269668, 192000, 0x6569b257
+0, 270952, 192000, 0x6569b257
+0, 272236, 192000, 0x089985d7
+0, 273520, 192000, 0x089985d7
+0, 274804, 192000, 0x089985d7
+0, 276088, 192000, 0x089985d7
+0, 277372, 192000, 0x87e160af
+0, 278656, 192000, 0x87e160af
+0, 279941, 192000, 0x87e160af
+0, 281225, 192000, 0x117433bb
+0, 282509, 192000, 0x117433bb
+0, 283793, 192000, 0x117433bb
+0, 285077, 192000, 0x117433bb
+0, 286361, 192000, 0xd9e0f8bc
+0, 287645, 192000, 0xd9e0f8bc
+0, 288929, 192000, 0xd9e0f8bc
+0, 290214, 192000, 0x653cac38
+0, 291498, 192000, 0x653cac38
+0, 292782, 192000, 0x653cac38
+0, 294066, 192000, 0x653cac38
+0, 295350, 192000, 0x9070526c
+0, 296634, 192000, 0x9070526c
+0, 297918, 192000, 0x9070526c
+0, 299203, 192000, 0x15e6e9c9
+0, 300487, 192000, 0x15e6e9c9
+0, 301771, 192000, 0x15e6e9c9
+0, 303055, 192000, 0x15e6e9c9
+0, 304339, 192000, 0x610eab25
+0, 305623, 192000, 0x610eab25
+0, 306907, 192000, 0x610eab25
+0, 308191, 192000, 0xde2a829d
+0, 309476, 192000, 0xde2a829d
+0, 310760, 192000, 0xde2a829d
+0, 312044, 192000, 0xde2a829d
+0, 313328, 192000, 0x2014becd
+0, 314612, 192000, 0x2014becd
+0, 315896, 192000, 0x2014becd
+0, 317180, 192000, 0x551e0f98
+0, 318465, 192000, 0x551e0f98
+0, 319749, 192000, 0x551e0f98
+0, 321033, 192000, 0x551e0f98
+0, 322317, 192000, 0x4aaa6bec
+0, 323601, 192000, 0x4aaa6bec
+0, 324885, 192000, 0x4aaa6bec
+0, 326169, 192000, 0x4053d278
+0, 327453, 192000, 0x4053d278
+0, 328738, 192000, 0x4053d278
+0, 330022, 192000, 0x4053d278
+0, 331306, 192000, 0xa0e645db
+0, 332590, 192000, 0xa0e645db
+0, 333874, 192000, 0xa0e645db
+0, 335158, 192000, 0x3f1fc327
+0, 336442, 192000, 0x3f1fc327
+0, 337726, 192000, 0x3f1fc327
+0, 339011, 192000, 0x3f1fc327
+0, 340295, 192000, 0xa4ca2a9a
+0, 341579, 192000, 0xa4ca2a9a
+0, 342863, 192000, 0xa4ca2a9a
+0, 344147, 192000, 0xf1b2b22e
+0, 345431, 192000, 0xf1b2b22e
+0, 346715, 192000, 0xf1b2b22e
+0, 348000, 192000, 0xf1b2b22e
+0, 349284, 192000, 0xd08e49d1
+0, 350568, 192000, 0xd08e49d1
+0, 351852, 192000, 0xd08e49d1