aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuillaume Martres2013-08-11 12:53:01 +0200
committerAnton Khirnov2013-10-31 20:20:16 +0100
commite1c058dba930c1f6f180e04d9e26dbda261cedbc (patch)
treebdf2cc517268020137a0457f5cdc981a1d8c2245 /tests
parent064698d381e1e7790f21b0199a8930ea04e2e942 (diff)
FATE: Add HEVC tests
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile1
-rw-r--r--tests/fate/hevc.mak156
-rw-r--r--tests/ref/fate/hevc-conformance-AMP_A_Samsung_461
-rw-r--r--tests/ref/fate/hevc-conformance-AMP_B_Samsung_461
-rw-r--r--tests/ref/fate/hevc-conformance-AMP_D_Hisilicon101
-rw-r--r--tests/ref/fate/hevc-conformance-AMP_E_Hisilicon101
-rw-r--r--tests/ref/fate/hevc-conformance-AMP_F_Hisilicon_3101
-rw-r--r--tests/ref/fate/hevc-conformance-AMVP_A_MTK_431
-rw-r--r--tests/ref/fate/hevc-conformance-AMVP_B_MTK_442
-rw-r--r--tests/ref/fate/hevc-conformance-AMVP_C_Samsung_461
-rw-r--r--tests/ref/fate/hevc-conformance-CAINIT_A_SHARP_451
-rw-r--r--tests/ref/fate/hevc-conformance-CAINIT_B_SHARP_451
-rw-r--r--tests/ref/fate/hevc-conformance-CAINIT_C_SHARP_351
-rw-r--r--tests/ref/fate/hevc-conformance-CAINIT_D_SHARP_351
-rw-r--r--tests/ref/fate/hevc-conformance-CAINIT_E_SHARP_351
-rw-r--r--tests/ref/fate/hevc-conformance-CAINIT_F_SHARP_351
-rw-r--r--tests/ref/fate/hevc-conformance-CAINIT_G_SHARP_351
-rw-r--r--tests/ref/fate/hevc-conformance-CAINIT_H_SHARP_351
-rw-r--r--tests/ref/fate/hevc-conformance-CIP_A_Panasonic_33
-rw-r--r--tests/ref/fate/hevc-conformance-CIP_C_Panasonic_23
-rw-r--r--tests/ref/fate/hevc-conformance-DBLK_A_MAIN10_VIXS_29
-rw-r--r--tests/ref/fate/hevc-conformance-DBLK_A_SONY_331
-rw-r--r--tests/ref/fate/hevc-conformance-DBLK_B_SONY_331
-rw-r--r--tests/ref/fate/hevc-conformance-DBLK_C_SONY_331
-rw-r--r--tests/ref/fate/hevc-conformance-DBLK_D_VIXS_19
-rw-r--r--tests/ref/fate/hevc-conformance-DBLK_D_VIXS_29
-rw-r--r--tests/ref/fate/hevc-conformance-DBLK_E_VIXS_19
-rw-r--r--tests/ref/fate/hevc-conformance-DBLK_E_VIXS_29
-rw-r--r--tests/ref/fate/hevc-conformance-DBLK_F_VIXS_19
-rw-r--r--tests/ref/fate/hevc-conformance-DBLK_F_VIXS_29
-rw-r--r--tests/ref/fate/hevc-conformance-DBLK_G_VIXS_19
-rw-r--r--tests/ref/fate/hevc-conformance-DBLK_G_VIXS_29
-rw-r--r--tests/ref/fate/hevc-conformance-DELTAQP_B_SONY_331
-rw-r--r--tests/ref/fate/hevc-conformance-DELTAQP_C_SONY_331
-rw-r--r--tests/ref/fate/hevc-conformance-DSLICE_A_HHI_551
-rw-r--r--tests/ref/fate/hevc-conformance-DSLICE_B_HHI_551
-rw-r--r--tests/ref/fate/hevc-conformance-DSLICE_C_HHI_551
-rw-r--r--tests/ref/fate/hevc-conformance-ENTP_A_LG_251
-rw-r--r--tests/ref/fate/hevc-conformance-ENTP_B_LG_251
-rw-r--r--tests/ref/fate/hevc-conformance-ENTP_C_LG_351
-rw-r--r--tests/ref/fate/hevc-conformance-EXT_A_ericsson_34
-rw-r--r--tests/ref/fate/hevc-conformance-IPRED_A_docomo_221
-rw-r--r--tests/ref/fate/hevc-conformance-IPRED_B_Nokia_32
-rw-r--r--tests/ref/fate/hevc-conformance-IPRED_C_Mitsubishi_25
-rw-r--r--tests/ref/fate/hevc-conformance-LS_A_Orange_210
-rw-r--r--tests/ref/fate/hevc-conformance-LS_B_ORANGE_326
-rw-r--r--tests/ref/fate/hevc-conformance-MAXBINS_A_TI_43
-rw-r--r--tests/ref/fate/hevc-conformance-MAXBINS_B_TI_44
-rw-r--r--tests/ref/fate/hevc-conformance-MAXBINS_C_TI_44
-rw-r--r--tests/ref/fate/hevc-conformance-MERGE_A_TI_39
-rw-r--r--tests/ref/fate/hevc-conformance-MERGE_B_TI_39
-rw-r--r--tests/ref/fate/hevc-conformance-MERGE_C_TI_39
-rw-r--r--tests/ref/fate/hevc-conformance-MERGE_D_TI_39
-rw-r--r--tests/ref/fate/hevc-conformance-MERGE_E_TI_39
-rw-r--r--tests/ref/fate/hevc-conformance-MERGE_F_MTK_442
-rw-r--r--tests/ref/fate/hevc-conformance-MERGE_G_HHI_43
-rw-r--r--tests/ref/fate/hevc-conformance-MVCLIP_A_qualcomm_36
-rw-r--r--tests/ref/fate/hevc-conformance-MVDL1ZERO_A_docomo_3501
-rw-r--r--tests/ref/fate/hevc-conformance-MVEDGE_A_qualcomm_318
-rw-r--r--tests/ref/fate/hevc-conformance-NUT_A_ericsson_435
-rw-r--r--tests/ref/fate/hevc-conformance-PICSIZE_A_Bossen_111
-rw-r--r--tests/ref/fate/hevc-conformance-PICSIZE_B_Bossen_111
-rw-r--r--tests/ref/fate/hevc-conformance-PICSIZE_C_Bossen_111
-rw-r--r--tests/ref/fate/hevc-conformance-PICSIZE_D_Bossen_111
-rw-r--r--tests/ref/fate/hevc-conformance-PMERGE_A_TI_39
-rw-r--r--tests/ref/fate/hevc-conformance-PMERGE_B_TI_39
-rw-r--r--tests/ref/fate/hevc-conformance-PMERGE_C_TI_39
-rw-r--r--tests/ref/fate/hevc-conformance-PMERGE_D_TI_39
-rw-r--r--tests/ref/fate/hevc-conformance-PMERGE_E_TI_39
-rw-r--r--tests/ref/fate/hevc-conformance-POC_A_Bossen_36
-rw-r--r--tests/ref/fate/hevc-conformance-PPS_A_qualcomm_782
-rw-r--r--tests/ref/fate/hevc-conformance-PS_A_VIDYO_326
-rw-r--r--tests/ref/fate/hevc-conformance-PS_B_VIDYO_326
-rw-r--r--tests/ref/fate/hevc-conformance-RAP_A_docomo_487
-rw-r--r--tests/ref/fate/hevc-conformance-RAP_B_Bossen_184
-rw-r--r--tests/ref/fate/hevc-conformance-RPLM_A_qualcomm_4301
-rw-r--r--tests/ref/fate/hevc-conformance-RPLM_B_qualcomm_4301
-rw-r--r--tests/ref/fate/hevc-conformance-RPS_A_docomo_445
-rw-r--r--tests/ref/fate/hevc-conformance-RPS_B_qualcomm_5301
-rw-r--r--tests/ref/fate/hevc-conformance-RPS_C_ericsson_441
-rw-r--r--tests/ref/fate/hevc-conformance-RPS_D_ericsson_569
-rw-r--r--tests/ref/fate/hevc-conformance-RPS_E_qualcomm_5301
-rw-r--r--tests/ref/fate/hevc-conformance-RQT_A_HHI_43
-rw-r--r--tests/ref/fate/hevc-conformance-RQT_B_HHI_43
-rw-r--r--tests/ref/fate/hevc-conformance-RQT_C_HHI_43
-rw-r--r--tests/ref/fate/hevc-conformance-RQT_D_HHI_43
-rw-r--r--tests/ref/fate/hevc-conformance-RQT_E_HHI_43
-rw-r--r--tests/ref/fate/hevc-conformance-RQT_F_HHI_43
-rw-r--r--tests/ref/fate/hevc-conformance-RQT_G_HHI_43
-rw-r--r--tests/ref/fate/hevc-conformance-SAO_A_MediaTek_461
-rw-r--r--tests/ref/fate/hevc-conformance-SAO_B_MediaTek_561
-rw-r--r--tests/ref/fate/hevc-conformance-SAO_C_Samsung_461
-rw-r--r--tests/ref/fate/hevc-conformance-SAO_D_Samsung_461
-rw-r--r--tests/ref/fate/hevc-conformance-SAO_E_Canon_417
-rw-r--r--tests/ref/fate/hevc-conformance-SAO_F_Canon_317
-rw-r--r--tests/ref/fate/hevc-conformance-SAO_G_Canon_317
-rw-r--r--tests/ref/fate/hevc-conformance-SDH_A_Orange_33
-rw-r--r--tests/ref/fate/hevc-conformance-SLICES_A_Rovi_310
-rw-r--r--tests/ref/fate/hevc-conformance-SLIST_A_Sony_466
-rw-r--r--tests/ref/fate/hevc-conformance-SLIST_B_Sony_866
-rw-r--r--tests/ref/fate/hevc-conformance-SLIST_C_Sony_366
-rw-r--r--tests/ref/fate/hevc-conformance-SLIST_D_Sony_966
-rw-r--r--tests/ref/fate/hevc-conformance-STRUCT_A_Samsung_561
-rw-r--r--tests/ref/fate/hevc-conformance-STRUCT_B_Samsung_461
-rw-r--r--tests/ref/fate/hevc-conformance-TILES_A_Cisco_2101
-rw-r--r--tests/ref/fate/hevc-conformance-TILES_B_Cisco_1101
-rw-r--r--tests/ref/fate/hevc-conformance-TMVP_A_MS_218
-rw-r--r--tests/ref/fate/hevc-conformance-TSCL_A_VIDYO_574
-rw-r--r--tests/ref/fate/hevc-conformance-TSCL_B_VIDYO_474
-rw-r--r--tests/ref/fate/hevc-conformance-TSKIP_A_MS_218
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_A_ericsson_MAIN10_249
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_A_ericsson_MAIN_249
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_B_ericsson_MAIN10_249
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_B_ericsson_MAIN_249
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_C_ericsson_MAIN10_249
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_C_ericsson_MAIN_249
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_D_ericsson_MAIN10_249
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_D_ericsson_MAIN_249
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_E_ericsson_MAIN10_249
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_E_ericsson_MAIN_249
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_F_ericsson_MAIN10_249
-rw-r--r--tests/ref/fate/hevc-conformance-WPP_F_ericsson_MAIN_249
-rw-r--r--tests/ref/fate/hevc-conformance-WP_A_MAIN10_Toshiba_3257
-rw-r--r--tests/ref/fate/hevc-conformance-WP_A_Toshiba_3257
-rw-r--r--tests/ref/fate/hevc-conformance-WP_B_Toshiba_3257
-rw-r--r--tests/ref/fate/hevc-conformance-WP_MAIN10_B_Toshiba_3257
-rw-r--r--tests/ref/fate/hevc-conformance-cip_B_NEC_26
-rw-r--r--tests/ref/fate/hevc-conformance-ipcm_A_NEC_22
-rw-r--r--tests/ref/fate/hevc-conformance-ipcm_B_NEC_22
-rw-r--r--tests/ref/fate/hevc-conformance-ipcm_C_NEC_22
-rw-r--r--tests/ref/fate/hevc-conformance-ipcm_D_NEC_22
131 files changed, 6891 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 5eb7ffd024..c861122828 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -77,6 +77,7 @@ include $(SRC_PATH)/tests/fate/filter-video.mak
include $(SRC_PATH)/tests/fate/flac.mak
include $(SRC_PATH)/tests/fate/fft.mak
include $(SRC_PATH)/tests/fate/h264.mak
+include $(SRC_PATH)/tests/fate/hevc.mak
include $(SRC_PATH)/tests/fate/image.mak
include $(SRC_PATH)/tests/fate/indeo.mak
include $(SRC_PATH)/tests/fate/libavcodec.mak
diff --git a/tests/fate/hevc.mak b/tests/fate/hevc.mak
new file mode 100644
index 0000000000..d5d49ce0db
--- /dev/null
+++ b/tests/fate/hevc.mak
@@ -0,0 +1,156 @@
+HEVC_SAMPLES = \
+ AMP_A_Samsung_4 \
+ AMP_B_Samsung_4 \
+ AMVP_C_Samsung_4 \
+ AMP_D_Hisilicon \
+ AMP_E_Hisilicon \
+ AMP_F_Hisilicon_3 \
+ AMVP_A_MTK_4 \
+ AMVP_B_MTK_4 \
+ CAINIT_A_SHARP_4 \
+ CAINIT_B_SHARP_4 \
+ CAINIT_C_SHARP_3 \
+ CAINIT_D_SHARP_3 \
+ CAINIT_E_SHARP_3 \
+ CAINIT_F_SHARP_3 \
+ CAINIT_G_SHARP_3 \
+ CAINIT_H_SHARP_3 \
+ CIP_A_Panasonic_3 \
+ cip_B_NEC_2 \
+ CIP_C_Panasonic_2 \
+ DBLK_A_SONY_3 \
+ DBLK_B_SONY_3 \
+ DBLK_C_SONY_3 \
+ DBLK_D_VIXS_1 \
+ DBLK_D_VIXS_2 \
+ DBLK_E_VIXS_1 \
+ DBLK_E_VIXS_2 \
+ DBLK_F_VIXS_1 \
+ DBLK_F_VIXS_2 \
+ DBLK_G_VIXS_1 \
+ DBLK_G_VIXS_2 \
+ DELTAQP_B_SONY_3 \
+ DELTAQP_C_SONY_3 \
+ DSLICE_A_HHI_5 \
+ DSLICE_B_HHI_5 \
+ DSLICE_C_HHI_5 \
+ ENTP_A_LG_2 \
+ ENTP_B_LG_2 \
+ ENTP_C_LG_3 \
+ EXT_A_ericsson_3 \
+ ipcm_A_NEC_2 \
+ ipcm_B_NEC_2 \
+ ipcm_C_NEC_2 \
+ ipcm_D_NEC_2 \
+ IPRED_A_docomo_2 \
+ IPRED_B_Nokia_3 \
+ IPRED_C_Mitsubishi_2 \
+ LS_A_Orange_2 \
+ LS_B_ORANGE_3 \
+ MAXBINS_A_TI_4 \
+ MAXBINS_B_TI_4 \
+ MAXBINS_C_TI_4 \
+ MERGE_A_TI_3 \
+ MERGE_B_TI_3 \
+ MERGE_C_TI_3 \
+ MERGE_D_TI_3 \
+ MERGE_E_TI_3 \
+ MERGE_F_MTK_4 \
+ MERGE_G_HHI_4 \
+ MVCLIP_A_qualcomm_3 \
+ MVDL1ZERO_A_docomo_3 \
+ MVEDGE_A_qualcomm_3 \
+ NUT_A_ericsson_4 \
+ PICSIZE_A_Bossen_1 \
+ PICSIZE_B_Bossen_1 \
+ PICSIZE_C_Bossen_1 \
+ PICSIZE_D_Bossen_1 \
+ PMERGE_A_TI_3 \
+ PMERGE_B_TI_3 \
+ PMERGE_C_TI_3 \
+ PMERGE_D_TI_3 \
+ PMERGE_E_TI_3 \
+ POC_A_Bossen_3 \
+ PPS_A_qualcomm_7 \
+ RAP_A_docomo_4 \
+ PS_A_VIDYO_3 \
+ PS_B_VIDYO_3 \
+ RAP_B_Bossen_1 \
+ RPLM_A_qualcomm_4 \
+ RPLM_B_qualcomm_4 \
+ RPS_A_docomo_4 \
+ RPS_B_qualcomm_5 \
+ RPS_C_ericsson_4 \
+ RPS_D_ericsson_5 \
+ RPS_E_qualcomm_5 \
+ RQT_A_HHI_4 \
+ RQT_B_HHI_4 \
+ RQT_C_HHI_4 \
+ RQT_D_HHI_4 \
+ RQT_E_HHI_4 \
+ RQT_F_HHI_4 \
+ RQT_G_HHI_4 \
+ SAO_A_MediaTek_4 \
+ SAO_B_MediaTek_5 \
+ SAO_C_Samsung_4 \
+ SAO_D_Samsung_4 \
+ SAO_E_Canon_4 \
+ SAO_F_Canon_3 \
+ SAO_G_Canon_3 \
+ SDH_A_Orange_3 \
+ SLICES_A_Rovi_3 \
+ SLIST_A_Sony_4 \
+ SLIST_B_Sony_8 \
+ SLIST_C_Sony_3 \
+ SLIST_D_Sony_9 \
+ STRUCT_A_Samsung_5 \
+ STRUCT_B_Samsung_4 \
+ TILES_A_Cisco_2 \
+ TILES_B_Cisco_1 \
+ TMVP_A_MS_2 \
+ TSCL_A_VIDYO_5 \
+ TSCL_B_VIDYO_4 \
+ TSKIP_A_MS_2 \
+ WP_A_Toshiba_3 \
+ WP_B_Toshiba_3 \
+ WPP_A_ericsson_MAIN_2 \
+ WPP_B_ericsson_MAIN_2 \
+ WPP_C_ericsson_MAIN_2 \
+ WPP_D_ericsson_MAIN_2 \
+ WPP_E_ericsson_MAIN_2 \
+ WPP_F_ericsson_MAIN_2 \
+
+HEVC_SAMPLES_10BIT = \
+ DBLK_A_MAIN10_VIXS_2 \
+ WP_A_MAIN10_Toshiba_3 \
+ WP_MAIN10_B_Toshiba_3 \
+ WPP_A_ericsson_MAIN10_2 \
+ WPP_B_ericsson_MAIN10_2 \
+ WPP_C_ericsson_MAIN10_2 \
+ WPP_D_ericsson_MAIN10_2 \
+ WPP_E_ericsson_MAIN10_2 \
+ WPP_F_ericsson_MAIN10_2 \
+
+# do not pass:
+# DELTAQP_A_BRCM_4.bit -- TODO uses CRC instead of MD5
+# HRD_A_Fujitsu_2.bin -- TODO uses hash 2 ("checksum")
+# TSUNEQBD_A_MAIN10_Technicolor_2.bit (segfault)
+
+define FATE_HEVC_TEST
+FATE_HEVC += fate-hevc-conformance-$(1)
+fate-hevc-conformance-$(1): CMD = framecrc -vsync 0 -i $(TARGET_SAMPLES)/hevc-conformance/$(1).bit
+endef
+
+define FATE_HEVC_TEST_10BIT
+FATE_HEVC += fate-hevc-conformance-$(1)
+fate-hevc-conformance-$(1): CMD = framecrc -vsync 0 -i $(TARGET_SAMPLES)/hevc-conformance/$(1).bit -pix_fmt yuv420p10le
+endef
+
+$(foreach N,$(HEVC_SAMPLES),$(eval $(call FATE_HEVC_TEST,$(N))))
+$(foreach N,$(HEVC_SAMPLES_10BIT),$(eval $(call FATE_HEVC_TEST_10BIT,$(N))))
+
+FATE_HEVC-$(call DEMDEC, HEVC, HEVC) += $(FATE_HEVC)
+
+FATE_SAMPLES_AVCONV += $(FATE_HEVC-yes)
+
+fate-hevc: $(FATE_HEVC-yes)
diff --git a/tests/ref/fate/hevc-conformance-AMP_A_Samsung_4 b/tests/ref/fate/hevc-conformance-AMP_A_Samsung_4
new file mode 100644
index 0000000000..84487a515a
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-AMP_A_Samsung_4
@@ -0,0 +1,61 @@
+#tb 0: 1/25
+0, 0, 0, 1, 6144000, 0xf7da9a00
+0, 1, 1, 1, 6144000, 0xf5cfc76f
+0, 2, 2, 1, 6144000, 0x20663e82
+0, 3, 3, 1, 6144000, 0xbff3d1e7
+0, 4, 4, 1, 6144000, 0x6f1b824d
+0, 5, 5, 1, 6144000, 0x4d75e5c9
+0, 6, 6, 1, 6144000, 0xb4443853
+0, 7, 7, 1, 6144000, 0x6943bbcb
+0, 8, 8, 1, 6144000, 0x1748b8d3
+0, 9, 9, 1, 6144000, 0x0e15caec
+0, 10, 10, 1, 6144000, 0xf7553ff4
+0, 11, 11, 1, 6144000, 0x34007146
+0, 12, 12, 1, 6144000, 0xd115a7ad
+0, 13, 13, 1, 6144000, 0x1adc8d27
+0, 14, 14, 1, 6144000, 0x2c3a43a6
+0, 15, 15, 1, 6144000, 0x1820500a
+0, 16, 16, 1, 6144000, 0xb33cf5af
+0, 17, 17, 1, 6144000, 0x5ba58d5a
+0, 18, 18, 1, 6144000, 0x453f35bc
+0, 19, 19, 1, 6144000, 0x4e6ac2ab
+0, 20, 20, 1, 6144000, 0xfab2b132
+0, 21, 21, 1, 6144000, 0xf903b7bf
+0, 22, 22, 1, 6144000, 0x160ebf13
+0, 23, 23, 1, 6144000, 0xd147c884
+0, 24, 24, 1, 6144000, 0x266abc04
+0, 25, 25, 1, 6144000, 0x9fabf642
+0, 26, 26, 1, 6144000, 0x1ad4f6c7
+0, 27, 27, 1, 6144000, 0x41fa1e6f
+0, 28, 28, 1, 6144000, 0x14b2b3b4
+0, 29, 29, 1, 6144000, 0x19c6d13e
+0, 30, 30, 1, 6144000, 0x414f5a36
+0, 31, 31, 1, 6144000, 0x439278aa
+0, 32, 32, 1, 6144000, 0xf8e73a55
+0, 33, 33, 1, 6144000, 0xf4cf7779
+0, 34, 34, 1, 6144000, 0x86ac3a16
+0, 35, 35, 1, 6144000, 0xdc9abdb8
+0, 36, 36, 1, 6144000, 0x9ab68a62
+0, 37, 37, 1, 6144000, 0xcd290547
+0, 38, 38, 1, 6144000, 0xd2eb88bb
+0, 39, 39, 1, 6144000, 0x126e084e
+0, 40, 40, 1, 6144000, 0x1aa5302c
+0, 41, 41, 1, 6144000, 0x689cb93e
+0, 42, 42, 1, 6144000, 0xaa9e3be6
+0, 43, 43, 1, 6144000, 0x33dc9ead
+0, 44, 44, 1, 6144000, 0xcb943dd3
+0, 45, 45, 1, 6144000, 0x22a67b19
+0, 46, 46, 1, 6144000, 0x3bfb741a
+0, 47, 47, 1, 6144000, 0x9238e595
+0, 48, 48, 1, 6144000, 0xf0fb6381
+0, 49, 49, 1, 6144000, 0x6ea42af1
+0, 50, 50, 1, 6144000, 0x47d9c3a7
+0, 51, 51, 1, 6144000, 0x9f73966b
+0, 52, 52, 1, 6144000, 0xdf777adc
+0, 53, 53, 1, 6144000, 0xf51f206e
+0, 54, 54, 1, 6144000, 0x465c350a
+0, 55, 55, 1, 6144000, 0x9253a45a
+0, 56, 56, 1, 6144000, 0x72c89751
+0, 57, 57, 1, 6144000, 0x0405cdfc
+0, 58, 58, 1, 6144000, 0xc5ede0c7
+0, 59, 59, 1, 6144000, 0xcf1c2b5e
diff --git a/tests/ref/fate/hevc-conformance-AMP_B_Samsung_4 b/tests/ref/fate/hevc-conformance-AMP_B_Samsung_4
new file mode 100644
index 0000000000..034f7b890c
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-AMP_B_Samsung_4
@@ -0,0 +1,61 @@
+#tb 0: 1/25
+0, 0, 0, 1, 6144000, 0xcd32ef33
+0, 1, 1, 1, 6144000, 0x58ce681d
+0, 2, 2, 1, 6144000, 0x77a732b6
+0, 3, 3, 1, 6144000, 0xa95418d0
+0, 4, 4, 1, 6144000, 0xa1593606
+0, 5, 5, 1, 6144000, 0x0d5429bc
+0, 6, 6, 1, 6144000, 0xe7cd205c
+0, 7, 7, 1, 6144000, 0x52c30ff4
+0, 8, 8, 1, 6144000, 0xf0a0f686
+0, 9, 9, 1, 6144000, 0xa6371d86
+0, 10, 10, 1, 6144000, 0x18bf1478
+0, 11, 11, 1, 6144000, 0xb84c6322
+0, 12, 12, 1, 6144000, 0x12f35f80
+0, 13, 13, 1, 6144000, 0xa9009e83
+0, 14, 14, 1, 6144000, 0x08568380
+0, 15, 15, 1, 6144000, 0xb01e98e8
+0, 16, 16, 1, 6144000, 0x0796ee90
+0, 17, 17, 1, 6144000, 0x3bb7cbef
+0, 18, 18, 1, 6144000, 0x7c3d6929
+0, 19, 19, 1, 6144000, 0x62c0e56c
+0, 20, 20, 1, 6144000, 0xd05907f7
+0, 21, 21, 1, 6144000, 0x9aa33b33
+0, 22, 22, 1, 6144000, 0xc47a0195
+0, 23, 23, 1, 6144000, 0xa5a5db13
+0, 24, 24, 1, 6144000, 0x54fda44b
+0, 25, 25, 1, 6144000, 0x7695be2f
+0, 26, 26, 1, 6144000, 0x247228e1
+0, 27, 27, 1, 6144000, 0xec38b2f7
+0, 28, 28, 1, 6144000, 0x223b098d
+0, 29, 29, 1, 6144000, 0xdd13f4bf
+0, 30, 30, 1, 6144000, 0x42651b46
+0, 31, 31, 1, 6144000, 0xc0b2ac9a
+0, 32, 32, 1, 6144000, 0x574908ee
+0, 33, 33, 1, 6144000, 0x070f0d88
+0, 34, 34, 1, 6144000, 0xc68ee679
+0, 35, 35, 1, 6144000, 0x4d571c82
+0, 36, 36, 1, 6144000, 0xec7f28cb
+0, 37, 37, 1, 6144000, 0x07ca3ccd
+0, 38, 38, 1, 6144000, 0xa5161fd7
+0, 39, 39, 1, 6144000, 0xb0908b25
+0, 40, 40, 1, 6144000, 0x4fa56c5e
+0, 41, 41, 1, 6144000, 0x1ad84207
+0, 42, 42, 1, 6144000, 0xc862a32b
+0, 43, 43, 1, 6144000, 0x341b9b0a
+0, 44, 44, 1, 6144000, 0xa940cdab
+0, 45, 45, 1, 6144000, 0x57521b2d
+0, 46, 46, 1, 6144000, 0x31969dee
+0, 47, 47, 1, 6144000, 0x7a09e240
+0, 48, 48, 1, 6144000, 0x14e6c360
+0, 49, 49, 1, 6144000, 0x0dfd6085
+0, 50, 50, 1, 6144000, 0xdf231a1e
+0, 51, 51, 1, 6144000, 0x6d1e9ce1
+0, 52, 52, 1, 6144000, 0xc6c2fb26
+0, 53, 53, 1, 6144000, 0xd4bc5e3e
+0, 54, 54, 1, 6144000, 0xa4a56b9e
+0, 55, 55, 1, 6144000, 0x8ba6349f
+0, 56, 56, 1, 6144000, 0x0683757f
+0, 57, 57, 1, 6144000, 0xe3840d8b
+0, 58, 58, 1, 6144000, 0x2fdf2ae6
+0, 59, 59, 1, 6144000, 0xea877e27
diff --git a/tests/ref/fate/hevc-conformance-AMP_D_Hisilicon b/tests/ref/fate/hevc-conformance-AMP_D_Hisilicon
new file mode 100644
index 0000000000..6e17b83d96
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-AMP_D_Hisilicon
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 3110400, 0x1559c293
+0, 1, 1, 1, 3110400, 0xd0802706
+0, 2, 2, 1, 3110400, 0xb48cf229
+0, 3, 3, 1, 3110400, 0x4108509b
+0, 4, 4, 1, 3110400, 0xd1cec277
+0, 5, 5, 1, 3110400, 0x3e68c589
+0, 6, 6, 1, 3110400, 0x1543a517
+0, 7, 7, 1, 3110400, 0x5ddcd669
+0, 8, 8, 1, 3110400, 0x09bd4c27
+0, 9, 9, 1, 3110400, 0xd583bfa1
+0, 10, 10, 1, 3110400, 0xe9411279
+0, 11, 11, 1, 3110400, 0xe07e6f3f
+0, 12, 12, 1, 3110400, 0xcfd23191
+0, 13, 13, 1, 3110400, 0x24276734
+0, 14, 14, 1, 3110400, 0x485aeafe
+0, 15, 15, 1, 3110400, 0xb8039a85
+0, 16, 16, 1, 3110400, 0x1d154e19
+0, 17, 17, 1, 3110400, 0xaa3ce800
+0, 18, 18, 1, 3110400, 0xe2601cba
+0, 19, 19, 1, 3110400, 0xb6657a57
+0, 20, 20, 1, 3110400, 0x34dbda52
+0, 21, 21, 1, 3110400, 0x921e218a
+0, 22, 22, 1, 3110400, 0x7de5262f
+0, 23, 23, 1, 3110400, 0x1a97e083
+0, 24, 24, 1, 3110400, 0x4bfc81d0
+0, 25, 25, 1, 3110400, 0x583396e6
+0, 26, 26, 1, 3110400, 0xc96bcd39
+0, 27, 27, 1, 3110400, 0x483cf7cf
+0, 28, 28, 1, 3110400, 0x20882e52
+0, 29, 29, 1, 3110400, 0x93d352fe
+0, 30, 30, 1, 3110400, 0x0c932722
+0, 31, 31, 1, 3110400, 0x78c5a9f0
+0, 32, 32, 1, 3110400, 0xcea3bddd
+0, 33, 33, 1, 3110400, 0x3e4e7c77
+0, 34, 34, 1, 3110400, 0xbe048a0a
+0, 35, 35, 1, 3110400, 0x1cf7ea0d
+0, 36, 36, 1, 3110400, 0xeb60343a
+0, 37, 37, 1, 3110400, 0x2158ed1f
+0, 38, 38, 1, 3110400, 0x3a7126b1
+0, 39, 39, 1, 3110400, 0x282804ff
+0, 40, 40, 1, 3110400, 0x292ed438
+0, 41, 41, 1, 3110400, 0x49a9769d
+0, 42, 42, 1, 3110400, 0xdfc12632
+0, 43, 43, 1, 3110400, 0xff3da16a
+0, 44, 44, 1, 3110400, 0x134b68c6
+0, 45, 45, 1, 3110400, 0x717e6f1d
+0, 46, 46, 1, 3110400, 0x283293f5
+0, 47, 47, 1, 3110400, 0x3d401456
+0, 48, 48, 1, 3110400, 0x500eddac
+0, 49, 49, 1, 3110400, 0x2a96fbff
+0, 50, 50, 1, 3110400, 0x9d75f303
+0, 51, 51, 1, 3110400, 0x08d1fa48
+0, 52, 52, 1, 3110400, 0xa685a8da
+0, 53, 53, 1, 3110400, 0xc19216d8
+0, 54, 54, 1, 3110400, 0x61ebd7f2
+0, 55, 55, 1, 3110400, 0x866c9002
+0, 56, 56, 1, 3110400, 0x3edda174
+0, 57, 57, 1, 3110400, 0x4e848db7
+0, 58, 58, 1, 3110400, 0x1dd822ba
+0, 59, 59, 1, 3110400, 0x8157b534
+0, 60, 60, 1, 3110400, 0x72637dbe
+0, 61, 61, 1, 3110400, 0xc6fc1305
+0, 62, 62, 1, 3110400, 0xbfadeee4
+0, 63, 63, 1, 3110400, 0xad20c230
+0, 64, 64, 1, 3110400, 0x5afff02b
+0, 65, 65, 1, 3110400, 0x5e533c71
+0, 66, 66, 1, 3110400, 0x52e10588
+0, 67, 67, 1, 3110400, 0x13a6dbb1
+0, 68, 68, 1, 3110400, 0xc74de5ae
+0, 69, 69, 1, 3110400, 0x382aafb8
+0, 70, 70, 1, 3110400, 0x5e0a11b2
+0, 71, 71, 1, 3110400, 0x049fe7cc
+0, 72, 72, 1, 3110400, 0x9d79484e
+0, 73, 73, 1, 3110400, 0x1116ced8
+0, 74, 74, 1, 3110400, 0x5d8d075d
+0, 75, 75, 1, 3110400, 0x49392496
+0, 76, 76, 1, 3110400, 0x5f24b3b3
+0, 77, 77, 1, 3110400, 0x6ca1c16d
+0, 78, 78, 1, 3110400, 0x131a16d2
+0, 79, 79, 1, 3110400, 0x39e2f9a1
+0, 80, 80, 1, 3110400, 0x988bd0ee
+0, 81, 81, 1, 3110400, 0xa6c050ec
+0, 82, 82, 1, 3110400, 0x5275142a
+0, 83, 83, 1, 3110400, 0x5705923d
+0, 84, 84, 1, 3110400, 0x3098d52d
+0, 85, 85, 1, 3110400, 0xb16e2eb7
+0, 86, 86, 1, 3110400, 0x0dee6bc8
+0, 87, 87, 1, 3110400, 0x577acf61
+0, 88, 88, 1, 3110400, 0x2b70d954
+0, 89, 89, 1, 3110400, 0x26b5f1c5
+0, 90, 90, 1, 3110400, 0x2351ad88
+0, 91, 91, 1, 3110400, 0xe5bdf6ad
+0, 92, 92, 1, 3110400, 0xaf0d83de
+0, 93, 93, 1, 3110400, 0xaee86799
+0, 94, 94, 1, 3110400, 0xe73fe067
+0, 95, 95, 1, 3110400, 0x46b90697
+0, 96, 96, 1, 3110400, 0xb270f77a
+0, 97, 97, 1, 3110400, 0xf33aa535
+0, 98, 98, 1, 3110400, 0xcafe6eec
+0, 99, 99, 1, 3110400, 0xcf051a31
diff --git a/tests/ref/fate/hevc-conformance-AMP_E_Hisilicon b/tests/ref/fate/hevc-conformance-AMP_E_Hisilicon
new file mode 100644
index 0000000000..c1b7f2ee9b
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-AMP_E_Hisilicon
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 3110400, 0xf9342188
+0, 1, 1, 1, 3110400, 0x46638dc4
+0, 2, 2, 1, 3110400, 0x96da436e
+0, 3, 3, 1, 3110400, 0xae9ee064
+0, 4, 4, 1, 3110400, 0x03fc9d17
+0, 5, 5, 1, 3110400, 0xd7ba9ab8
+0, 6, 6, 1, 3110400, 0x9f3cc881
+0, 7, 7, 1, 3110400, 0x911c9e2a
+0, 8, 8, 1, 3110400, 0x2c1bdec1
+0, 9, 9, 1, 3110400, 0xffc2cfb2
+0, 10, 10, 1, 3110400, 0x34136d4c
+0, 11, 11, 1, 3110400, 0x400dca0c
+0, 12, 12, 1, 3110400, 0x5a3d3c71
+0, 13, 13, 1, 3110400, 0x5bd262f9
+0, 14, 14, 1, 3110400, 0x27bbec47
+0, 15, 15, 1, 3110400, 0x53ca3f78
+0, 16, 16, 1, 3110400, 0x7fee4170
+0, 17, 17, 1, 3110400, 0x393d318c
+0, 18, 18, 1, 3110400, 0x203f26f1
+0, 19, 19, 1, 3110400, 0x35e00c3e
+0, 20, 20, 1, 3110400, 0x995afdde
+0, 21, 21, 1, 3110400, 0xa8b623b9
+0, 22, 22, 1, 3110400, 0x047e53bd
+0, 23, 23, 1, 3110400, 0xc7e69515
+0, 24, 24, 1, 3110400, 0x7e5ade49
+0, 25, 25, 1, 3110400, 0x863cddc9
+0, 26, 26, 1, 3110400, 0xb1f6189c
+0, 27, 27, 1, 3110400, 0x622d6d1d
+0, 28, 28, 1, 3110400, 0x1e82ef1a
+0, 29, 29, 1, 3110400, 0x06a7054a
+0, 30, 30, 1, 3110400, 0x736bd4a9
+0, 31, 31, 1, 3110400, 0x1db8ead3
+0, 32, 32, 1, 3110400, 0x1d872697
+0, 33, 33, 1, 3110400, 0x86b11604
+0, 34, 34, 1, 3110400, 0x54bee045
+0, 35, 35, 1, 3110400, 0x3577fa15
+0, 36, 36, 1, 3110400, 0x717b6c0b
+0, 37, 37, 1, 3110400, 0x5e0f0b6e
+0, 38, 38, 1, 3110400, 0x054ecc86
+0, 39, 39, 1, 3110400, 0x9ec29ad1
+0, 40, 40, 1, 3110400, 0x7c3b56e4
+0, 41, 41, 1, 3110400, 0xcf4cf721
+0, 42, 42, 1, 3110400, 0x43c01adb
+0, 43, 43, 1, 3110400, 0x6abb4879
+0, 44, 44, 1, 3110400, 0x90473c9f
+0, 45, 45, 1, 3110400, 0x5f5bb9a9
+0, 46, 46, 1, 3110400, 0x08678e6b
+0, 47, 47, 1, 3110400, 0xf4ad0c9b
+0, 48, 48, 1, 3110400, 0x22870cc8
+0, 49, 49, 1, 3110400, 0xb417cf63
+0, 50, 50, 1, 3110400, 0xb7a1588e
+0, 51, 51, 1, 3110400, 0x7a35ac81
+0, 52, 52, 1, 3110400, 0xcd1c6d82
+0, 53, 53, 1, 3110400, 0x181b9920
+0, 54, 54, 1, 3110400, 0xf2417d5e
+0, 55, 55, 1, 3110400, 0x8a67e02b
+0, 56, 56, 1, 3110400, 0xe7b99077
+0, 57, 57, 1, 3110400, 0x6814e5c2
+0, 58, 58, 1, 3110400, 0xd8bce44d
+0, 59, 59, 1, 3110400, 0x9faf4ebc
+0, 60, 60, 1, 3110400, 0x3daa5fbf
+0, 61, 61, 1, 3110400, 0x747921ba
+0, 62, 62, 1, 3110400, 0xbe30214e
+0, 63, 63, 1, 3110400, 0x8f5533fe
+0, 64, 64, 1, 3110400, 0x835a4545
+0, 65, 65, 1, 3110400, 0xfa99f4c8
+0, 66, 66, 1, 3110400, 0x9559c5db
+0, 67, 67, 1, 3110400, 0xd0d096f8
+0, 68, 68, 1, 3110400, 0x7b24dbb0
+0, 69, 69, 1, 3110400, 0x4a8aa189
+0, 70, 70, 1, 3110400, 0x876bab32
+0, 71, 71, 1, 3110400, 0xc930bec9
+0, 72, 72, 1, 3110400, 0x009841d8
+0, 73, 73, 1, 3110400, 0x93e5be89
+0, 74, 74, 1, 3110400, 0x82260331
+0, 75, 75, 1, 3110400, 0x7ef2e971
+0, 76, 76, 1, 3110400, 0x606b638a
+0, 77, 77, 1, 3110400, 0xf08b84df
+0, 78, 78, 1, 3110400, 0x8a609222
+0, 79, 79, 1, 3110400, 0xa76cb2f3
+0, 80, 80, 1, 3110400, 0x2b611cb3
+0, 81, 81, 1, 3110400, 0x81d5b315
+0, 82, 82, 1, 3110400, 0x6f385e43
+0, 83, 83, 1, 3110400, 0x5959a754
+0, 84, 84, 1, 3110400, 0x1cf4935c
+0, 85, 85, 1, 3110400, 0xc8da3639
+0, 86, 86, 1, 3110400, 0x50a2ee3d
+0, 87, 87, 1, 3110400, 0xd33ad53a
+0, 88, 88, 1, 3110400, 0xe7ed4eff
+0, 89, 89, 1, 3110400, 0x7d72d260
+0, 90, 90, 1, 3110400, 0x16ca295b
+0, 91, 91, 1, 3110400, 0xf126df1d
+0, 92, 92, 1, 3110400, 0x0aca09d1
+0, 93, 93, 1, 3110400, 0x6aefb52b
+0, 94, 94, 1, 3110400, 0xf797ee6d
+0, 95, 95, 1, 3110400, 0xf1053ace
+0, 96, 96, 1, 3110400, 0xf7f91618
+0, 97, 97, 1, 3110400, 0xc711acf8
+0, 98, 98, 1, 3110400, 0x31123f40
+0, 99, 99, 1, 3110400, 0xc7b703dc
diff --git a/tests/ref/fate/hevc-conformance-AMP_F_Hisilicon_3 b/tests/ref/fate/hevc-conformance-AMP_F_Hisilicon_3
new file mode 100644
index 0000000000..71ce9c74cc
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-AMP_F_Hisilicon_3
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 3110400, 0xa5d2b8b0
+0, 1, 1, 1, 3110400, 0x13035cfa
+0, 2, 2, 1, 3110400, 0x96b16f86
+0, 3, 3, 1, 3110400, 0x09e96331
+0, 4, 4, 1, 3110400, 0xd2662da8
+0, 5, 5, 1, 3110400, 0x77d3db00
+0, 6, 6, 1, 3110400, 0xaa025e5b
+0, 7, 7, 1, 3110400, 0x77284bc5
+0, 8, 8, 1, 3110400, 0x625b165e
+0, 9, 9, 1, 3110400, 0x69c0b4c8
+0, 10, 10, 1, 3110400, 0x52e627a4
+0, 11, 11, 1, 3110400, 0x774eaf6a
+0, 12, 12, 1, 3110400, 0xa9042cad
+0, 13, 13, 1, 3110400, 0xf367e96a
+0, 14, 14, 1, 3110400, 0x4687e2d9
+0, 15, 15, 1, 3110400, 0xe57d46b8
+0, 16, 16, 1, 3110400, 0x074da0b5
+0, 17, 17, 1, 3110400, 0xbf8dd856
+0, 18, 18, 1, 3110400, 0xb9cae21e
+0, 19, 19, 1, 3110400, 0xa43687fc
+0, 20, 20, 1, 3110400, 0x83cce559
+0, 21, 21, 1, 3110400, 0xb19963d9
+0, 22, 22, 1, 3110400, 0x636d69b7
+0, 23, 23, 1, 3110400, 0xfcfe1a00
+0, 24, 24, 1, 3110400, 0x0a804c37
+0, 25, 25, 1, 3110400, 0x6af0c5ec
+0, 26, 26, 1, 3110400, 0xccec0692
+0, 27, 27, 1, 3110400, 0x0547e98d
+0, 28, 28, 1, 3110400, 0xc4dc2caa
+0, 29, 29, 1, 3110400, 0x43473ac6
+0, 30, 30, 1, 3110400, 0xd5e9a795
+0, 31, 31, 1, 3110400, 0x3227df7b
+0, 32, 32, 1, 3110400, 0x087e57bb
+0, 33, 33, 1, 3110400, 0x892f5ad0
+0, 34, 34, 1, 3110400, 0xeeb23459
+0, 35, 35, 1, 3110400, 0xd1efe2a6
+0, 36, 36, 1, 3110400, 0x5abd5104
+0, 37, 37, 1, 3110400, 0x6b018b83
+0, 38, 38, 1, 3110400, 0x91617ca7
+0, 39, 39, 1, 3110400, 0x601cd6ad
+0, 40, 40, 1, 3110400, 0xf81cb126
+0, 41, 41, 1, 3110400, 0x4bb949df
+0, 42, 42, 1, 3110400, 0xed94fea0
+0, 43, 43, 1, 3110400, 0x39ba8fec
+0, 44, 44, 1, 3110400, 0xc65e113c
+0, 45, 45, 1, 3110400, 0x627344cb
+0, 46, 46, 1, 3110400, 0x5680c16a
+0, 47, 47, 1, 3110400, 0x12d02cfc
+0, 48, 48, 1, 3110400, 0x2e409afa
+0, 49, 49, 1, 3110400, 0xfd4142f2
+0, 50, 50, 1, 3110400, 0x6db3965a
+0, 51, 51, 1, 3110400, 0x578962c5
+0, 52, 52, 1, 3110400, 0x68d75bd1
+0, 53, 53, 1, 3110400, 0x568fbb72
+0, 54, 54, 1, 3110400, 0xf3c03b95
+0, 55, 55, 1, 3110400, 0xeb67b532
+0, 56, 56, 1, 3110400, 0x0e445b34
+0, 57, 57, 1, 3110400, 0x32c04ad2
+0, 58, 58, 1, 3110400, 0x239d1a14
+0, 59, 59, 1, 3110400, 0xcb295635
+0, 60, 60, 1, 3110400, 0x7e347c1d
+0, 61, 61, 1, 3110400, 0x74e1fcf7
+0, 62, 62, 1, 3110400, 0x6e399603
+0, 63, 63, 1, 3110400, 0xe3bbdbcd
+0, 64, 64, 1, 3110400, 0xddd336f3
+0, 65, 65, 1, 3110400, 0x7834e9f7
+0, 66, 66, 1, 3110400, 0xb53a7f1f
+0, 67, 67, 1, 3110400, 0x1f52cbb6
+0, 68, 68, 1, 3110400, 0xea26692a
+0, 69, 69, 1, 3110400, 0xa4e1765f
+0, 70, 70, 1, 3110400, 0x6367794d
+0, 71, 71, 1, 3110400, 0x69bff6d1
+0, 72, 72, 1, 3110400, 0xdf52ef08
+0, 73, 73, 1, 3110400, 0x002892b7
+0, 74, 74, 1, 3110400, 0x1ca49791
+0, 75, 75, 1, 3110400, 0x8de95d1d
+0, 76, 76, 1, 3110400, 0x9c9c38cf
+0, 77, 77, 1, 3110400, 0x9f9947cd
+0, 78, 78, 1, 3110400, 0xe5da908b
+0, 79, 79, 1, 3110400, 0x032415ae
+0, 80, 80, 1, 3110400, 0x0fef3a03
+0, 81, 81, 1, 3110400, 0xd04c1b77
+0, 82, 82, 1, 3110400, 0x5d46813b
+0, 83, 83, 1, 3110400, 0x1dbeaa76
+0, 84, 84, 1, 3110400, 0x2b2eea1a
+0, 85, 85, 1, 3110400, 0x7138da47
+0, 86, 86, 1, 3110400, 0xe9a43ef8
+0, 87, 87, 1, 3110400, 0x02f7b1bf
+0, 88, 88, 1, 3110400, 0xd1cdf8b1
+0, 89, 89, 1, 3110400, 0x2e924022
+0, 90, 90, 1, 3110400, 0x59d68bcf
+0, 91, 91, 1, 3110400, 0x3dc70503
+0, 92, 92, 1, 3110400, 0x26aeb1fa
+0, 93, 93, 1, 3110400, 0x91434f9d
+0, 94, 94, 1, 3110400, 0x91411f14
+0, 95, 95, 1, 3110400, 0xd99a172a
+0, 96, 96, 1, 3110400, 0x19678f5a
+0, 97, 97, 1, 3110400, 0xc6c357ae
+0, 98, 98, 1, 3110400, 0xba6cd89f
+0, 99, 99, 1, 3110400, 0x657af6cf
diff --git a/tests/ref/fate/hevc-conformance-AMVP_A_MTK_4 b/tests/ref/fate/hevc-conformance-AMVP_A_MTK_4
new file mode 100644
index 0000000000..59115fb020
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-AMVP_A_MTK_4
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x88619f80
+0, 1, 1, 1, 149760, 0x550bdaf0
+0, 2, 2, 1, 149760, 0xb769fa4c
+0, 3, 3, 1, 149760, 0x3c2c2e9a
+0, 4, 4, 1, 149760, 0x75316bcc
+0, 5, 5, 1, 149760, 0x7b9ba7ff
+0, 6, 6, 1, 149760, 0x9981ea7b
+0, 7, 7, 1, 149760, 0x3f682105
+0, 8, 8, 1, 149760, 0x63252c25
+0, 9, 9, 1, 149760, 0x44427967
+0, 10, 10, 1, 149760, 0x24199a9e
+0, 11, 11, 1, 149760, 0xaa30c241
+0, 12, 12, 1, 149760, 0xf24faaaf
+0, 13, 13, 1, 149760, 0x0291c766
+0, 14, 14, 1, 149760, 0xb826e44f
+0, 15, 15, 1, 149760, 0xbc2310b8
+0, 16, 16, 1, 149760, 0xcfd81d4a
+0, 17, 17, 1, 149760, 0xb356484a
+0, 18, 18, 1, 149760, 0x02bf515a
+0, 19, 19, 1, 149760, 0x729d778c
+0, 20, 20, 1, 149760, 0x3ade8453
+0, 21, 21, 1, 149760, 0xfedead3d
+0, 22, 22, 1, 149760, 0x46bfc8db
+0, 23, 23, 1, 149760, 0x8590f422
+0, 24, 24, 1, 149760, 0x6d2dfd9d
+0, 25, 25, 1, 149760, 0x373f2c82
+0, 26, 26, 1, 149760, 0xa12f3ca1
+0, 27, 27, 1, 149760, 0x34be4b0d
+0, 28, 28, 1, 149760, 0x24f538b9
+0, 29, 29, 1, 149760, 0xd1616303
diff --git a/tests/ref/fate/hevc-conformance-AMVP_B_MTK_4 b/tests/ref/fate/hevc-conformance-AMVP_B_MTK_4
new file mode 100644
index 0000000000..1f998c4f0f
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-AMVP_B_MTK_4
@@ -0,0 +1,42 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0xcfffa013
+0, 1, 1, 1, 149760, 0x5166146a
+0, 2, 2, 1, 149760, 0xc3cc318e
+0, 3, 3, 1, 149760, 0x5bb465f9
+0, 4, 4, 1, 149760, 0x10c97bd4
+0, 5, 5, 1, 149760, 0xd9d5c4ab
+0, 6, 6, 1, 149760, 0x5112e11d
+0, 7, 7, 1, 149760, 0xde3803d6
+0, 8, 8, 1, 149760, 0x82c62409
+0, 9, 9, 1, 149760, 0x28f88d53
+0, 10, 10, 1, 149760, 0x796fb89d
+0, 11, 11, 1, 149760, 0x1b95dd75
+0, 12, 12, 1, 149760, 0xfcc9ced4
+0, 13, 13, 1, 149760, 0x6b00ee9c
+0, 14, 14, 1, 149760, 0xdb72e81a
+0, 15, 15, 1, 149760, 0x0c771a25
+0, 16, 16, 1, 149760, 0x959a2215
+0, 17, 17, 1, 149760, 0xf1d672ce
+0, 18, 18, 1, 149760, 0x2f407a06
+0, 19, 19, 1, 149760, 0xee389f83
+0, 20, 20, 1, 149760, 0x2e0695dd
+0, 21, 21, 1, 149760, 0xf80ac1eb
+0, 22, 22, 1, 149760, 0x29decec4
+0, 23, 23, 1, 149760, 0xff34eb5e
+0, 24, 24, 1, 149760, 0x1c85fe71
+0, 25, 25, 1, 149760, 0x056dae51
+0, 26, 26, 1, 149760, 0x78a99f1d
+0, 27, 27, 1, 149760, 0xe507b40c
+0, 28, 28, 1, 149760, 0xbd3fa06c
+0, 29, 29, 1, 149760, 0x3475d95b
+0, 30, 30, 1, 149760, 0x9b25d416
+0, 31, 31, 1, 149760, 0x73c4ec88
+0, 32, 32, 1, 149760, 0xd4437e12
+0, 33, 33, 1, 149760, 0xcf08c736
+0, 34, 34, 1, 149760, 0x0cedd0d6
+0, 35, 35, 1, 149760, 0xc317e9bc
+0, 36, 36, 1, 149760, 0x0dcbd636
+0, 37, 37, 1, 149760, 0x4e6501b0
+0, 38, 38, 1, 149760, 0x5f9c02bb
+0, 39, 39, 1, 149760, 0x43052939
+0, 40, 40, 1, 149760, 0x8ec12318
diff --git a/tests/ref/fate/hevc-conformance-AMVP_C_Samsung_4 b/tests/ref/fate/hevc-conformance-AMVP_C_Samsung_4
new file mode 100644
index 0000000000..16d3446953
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-AMVP_C_Samsung_4
@@ -0,0 +1,61 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x8087662a
+0, 1, 1, 1, 599040, 0x5278d8db
+0, 2, 2, 1, 599040, 0x73c74090
+0, 3, 3, 1, 599040, 0xde0d8317
+0, 4, 4, 1, 599040, 0xd9d4c26c
+0, 5, 5, 1, 599040, 0x603a10bd
+0, 6, 6, 1, 599040, 0xa91e9b91
+0, 7, 7, 1, 599040, 0x73567e6a
+0, 8, 8, 1, 599040, 0x67912cc6
+0, 9, 9, 1, 599040, 0x98d3fb2c
+0, 10, 10, 1, 599040, 0x50c6d7fc
+0, 11, 11, 1, 599040, 0x8ae23020
+0, 12, 12, 1, 599040, 0x9eaa976f
+0, 13, 13, 1, 599040, 0x3cadf6c0
+0, 14, 14, 1, 599040, 0x7d498902
+0, 15, 15, 1, 599040, 0x525decac
+0, 16, 16, 1, 599040, 0x081485cc
+0, 17, 17, 1, 599040, 0x3fd6ba7a
+0, 18, 18, 1, 599040, 0x8bbbaa4c
+0, 19, 19, 1, 599040, 0x9e60a407
+0, 20, 20, 1, 599040, 0x394becb9
+0, 21, 21, 1, 599040, 0x068dffb5
+0, 22, 22, 1, 599040, 0x531fd221
+0, 23, 23, 1, 599040, 0x3aa6922e
+0, 24, 24, 1, 599040, 0x089d2456
+0, 25, 25, 1, 599040, 0x7c432995
+0, 26, 26, 1, 599040, 0x3693613d
+0, 27, 27, 1, 599040, 0x8b6d902f
+0, 28, 28, 1, 599040, 0x7c9a947b
+0, 29, 29, 1, 599040, 0x51d9e4c6
+0, 30, 30, 1, 599040, 0xdc7f62f3
+0, 31, 31, 1, 599040, 0x9da6cba0
+0, 32, 32, 1, 599040, 0x1bef8581
+0, 33, 33, 1, 599040, 0xc19c4211
+0, 34, 34, 1, 599040, 0x7824188e
+0, 35, 35, 1, 599040, 0xd0511050
+0, 36, 36, 1, 599040, 0x39d93e78
+0, 37, 37, 1, 599040, 0x1e0dc88e
+0, 38, 38, 1, 599040, 0x2cd7522e
+0, 39, 39, 1, 599040, 0x538928a5
+0, 40, 40, 1, 599040, 0x95549fb2
+0, 41, 41, 1, 599040, 0x1f57d5c1
+0, 42, 42, 1, 599040, 0xc99fa8c6
+0, 43, 43, 1, 599040, 0x567f4e7e
+0, 44, 44, 1, 599040, 0x23d3d54f
+0, 45, 45, 1, 599040, 0xe8f74d97
+0, 46, 46, 1, 599040, 0xd2b03a4d
+0, 47, 47, 1, 599040, 0xe59c4faf
+0, 48, 48, 1, 599040, 0x46da921d
+0, 49, 49, 1, 599040, 0x7a344fa3
+0, 50, 50, 1, 599040, 0xbc736fd4
+0, 51, 51, 1, 599040, 0xfe5c362c
+0, 52, 52, 1, 599040, 0x115ed271
+0, 53, 53, 1, 599040, 0x3c4913fc
+0, 54, 54, 1, 599040, 0x1e1f8114
+0, 55, 55, 1, 599040, 0x08c06e58
+0, 56, 56, 1, 599040, 0x599f07f6
+0, 57, 57, 1, 599040, 0xc922a0c9
+0, 58, 58, 1, 599040, 0xc77b5201
+0, 59, 59, 1, 599040, 0x4c2cde6d
diff --git a/tests/ref/fate/hevc-conformance-CAINIT_A_SHARP_4 b/tests/ref/fate/hevc-conformance-CAINIT_A_SHARP_4
new file mode 100644
index 0000000000..53b621b70f
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-CAINIT_A_SHARP_4
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x001f0c48
+0, 1, 1, 1, 599040, 0x83120d87
+0, 2, 2, 1, 599040, 0x10c267aa
+0, 3, 3, 1, 599040, 0xef591aef
+0, 4, 4, 1, 599040, 0xded62c79
+0, 5, 5, 1, 599040, 0xe7c1c748
+0, 6, 6, 1, 599040, 0x14db55d0
+0, 7, 7, 1, 599040, 0x73c4156b
+0, 8, 8, 1, 599040, 0x0cec903c
+0, 9, 9, 1, 599040, 0x791029a0
+0, 10, 10, 1, 599040, 0x0fe72908
+0, 11, 11, 1, 599040, 0xd0ebe0be
+0, 12, 12, 1, 599040, 0x473cb5aa
+0, 13, 13, 1, 599040, 0xe774cf8c
+0, 14, 14, 1, 599040, 0x3d63909f
+0, 15, 15, 1, 599040, 0xe05af465
+0, 16, 16, 1, 599040, 0x9679aa54
+0, 17, 17, 1, 599040, 0xe9d2ef49
+0, 18, 18, 1, 599040, 0x1e797cac
+0, 19, 19, 1, 599040, 0xf3d51077
+0, 20, 20, 1, 599040, 0x74e3b5e0
+0, 21, 21, 1, 599040, 0xb97e5178
+0, 22, 22, 1, 599040, 0x7c79a425
+0, 23, 23, 1, 599040, 0xfeeedb62
+0, 24, 24, 1, 599040, 0x8d5a3686
+0, 25, 25, 1, 599040, 0x3f6109e4
+0, 26, 26, 1, 599040, 0x365df50e
+0, 27, 27, 1, 599040, 0xd65876a1
+0, 28, 28, 1, 599040, 0xfa21e766
+0, 29, 29, 1, 599040, 0x2f24ed68
+0, 30, 30, 1, 599040, 0x0e90e5d4
+0, 31, 31, 1, 599040, 0xd044eb9c
+0, 32, 32, 1, 599040, 0xe55e8b18
+0, 33, 33, 1, 599040, 0xa92b93b6
+0, 34, 34, 1, 599040, 0x9b6827c6
+0, 35, 35, 1, 599040, 0x486e155b
+0, 36, 36, 1, 599040, 0xbff46adc
+0, 37, 37, 1, 599040, 0x61637615
+0, 38, 38, 1, 599040, 0xc0423ea9
+0, 39, 39, 1, 599040, 0xda80f8d8
+0, 40, 40, 1, 599040, 0xe0f77fcc
+0, 41, 41, 1, 599040, 0x68bef4cf
+0, 42, 42, 1, 599040, 0xd2e0699b
+0, 43, 43, 1, 599040, 0xcc6cd663
+0, 44, 44, 1, 599040, 0x00ed2594
+0, 45, 45, 1, 599040, 0x140b6efb
+0, 46, 46, 1, 599040, 0xa418f9d0
+0, 47, 47, 1, 599040, 0x500083a3
+0, 48, 48, 1, 599040, 0x619045ec
+0, 49, 49, 1, 599040, 0xdf0ce1e6
diff --git a/tests/ref/fate/hevc-conformance-CAINIT_B_SHARP_4 b/tests/ref/fate/hevc-conformance-CAINIT_B_SHARP_4
new file mode 100644
index 0000000000..9aeb3b15eb
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-CAINIT_B_SHARP_4
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x001f0c48
+0, 1, 1, 1, 599040, 0xf8160d82
+0, 2, 2, 1, 599040, 0x5f2060e2
+0, 3, 3, 1, 599040, 0x421104a7
+0, 4, 4, 1, 599040, 0xded62c79
+0, 5, 5, 1, 599040, 0x782b4517
+0, 6, 6, 1, 599040, 0xcf47861d
+0, 7, 7, 1, 599040, 0xd401373c
+0, 8, 8, 1, 599040, 0x0cec903c
+0, 9, 9, 1, 599040, 0x2dec6230
+0, 10, 10, 1, 599040, 0xe8d25791
+0, 11, 11, 1, 599040, 0x243af0ad
+0, 12, 12, 1, 599040, 0x4f77c47b
+0, 13, 13, 1, 599040, 0x9777f7c4
+0, 14, 14, 1, 599040, 0xc5c5be51
+0, 15, 15, 1, 599040, 0xb9b27b63
+0, 16, 16, 1, 599040, 0xc333f76b
+0, 17, 17, 1, 599040, 0x6bd00f09
+0, 18, 18, 1, 599040, 0x7f76875d
+0, 19, 19, 1, 599040, 0xc9e80bec
+0, 20, 20, 1, 599040, 0x8681b48f
+0, 21, 21, 1, 599040, 0xefaa5077
+0, 22, 22, 1, 599040, 0x73cc72a4
+0, 23, 23, 1, 599040, 0x55c8bc27
+0, 24, 24, 1, 599040, 0x9d84419d
+0, 25, 25, 1, 599040, 0x89db2dfe
+0, 26, 26, 1, 599040, 0x39a012fe
+0, 27, 27, 1, 599040, 0x9ae88b01
+0, 28, 28, 1, 599040, 0x0928f3d0
+0, 29, 29, 1, 599040, 0x39359eb1
+0, 30, 30, 1, 599040, 0x3e00a5b5
+0, 31, 31, 1, 599040, 0xaf1b1809
+0, 32, 32, 1, 599040, 0xe55e8b18
+0, 33, 33, 1, 599040, 0xa4739b3d
+0, 34, 34, 1, 599040, 0x224d47d4
+0, 35, 35, 1, 599040, 0x3ce1d830
+0, 36, 36, 1, 599040, 0xd3b33990
+0, 37, 37, 1, 599040, 0x15c3ae0e
+0, 38, 38, 1, 599040, 0xcce735aa
+0, 39, 39, 1, 599040, 0x173d8406
+0, 40, 40, 1, 599040, 0xe0f77fcc
+0, 41, 41, 1, 599040, 0xbeefe9eb
+0, 42, 42, 1, 599040, 0xb3d761cf
+0, 43, 43, 1, 599040, 0x75ffe5f0
+0, 44, 44, 1, 599040, 0xf446226e
+0, 45, 45, 1, 599040, 0xf425475a
+0, 46, 46, 1, 599040, 0x5180ee65
+0, 47, 47, 1, 599040, 0x5edb78f9
+0, 48, 48, 1, 599040, 0x28eb41c5
+0, 49, 49, 1, 599040, 0x0d65d9d3
diff --git a/tests/ref/fate/hevc-conformance-CAINIT_C_SHARP_3 b/tests/ref/fate/hevc-conformance-CAINIT_C_SHARP_3
new file mode 100644
index 0000000000..c891c44a82
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-CAINIT_C_SHARP_3
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x2b58dee2
+0, 1, 1, 1, 599040, 0x2b58dee2
+0, 2, 2, 1, 599040, 0xcd9295f4
+0, 3, 3, 1, 599040, 0xc052f81f
+0, 4, 4, 1, 599040, 0xfe5932ed
+0, 5, 5, 1, 599040, 0x8a8aa4b9
+0, 6, 6, 1, 599040, 0x6ac33b24
+0, 7, 7, 1, 599040, 0xd053bb83
+0, 8, 8, 1, 599040, 0xa9cf6ba6
+0, 9, 9, 1, 599040, 0x3d5a1a3b
+0, 10, 10, 1, 599040, 0x90997f48
+0, 11, 11, 1, 599040, 0xc99390bd
+0, 12, 12, 1, 599040, 0x9723079d
+0, 13, 13, 1, 599040, 0x7f0fe29b
+0, 14, 14, 1, 599040, 0x778afdb4
+0, 15, 15, 1, 599040, 0x72963905
+0, 16, 16, 1, 599040, 0xa677b29c
+0, 17, 17, 1, 599040, 0x88bdccd8
+0, 18, 18, 1, 599040, 0x8be37199
+0, 19, 19, 1, 599040, 0x6628117a
+0, 20, 20, 1, 599040, 0xefa701b0
+0, 21, 21, 1, 599040, 0x75d6705d
+0, 22, 22, 1, 599040, 0x85242d6f
+0, 23, 23, 1, 599040, 0xd559eaa6
+0, 24, 24, 1, 599040, 0xe0663879
+0, 25, 25, 1, 599040, 0x3255d67c
+0, 26, 26, 1, 599040, 0xf41a4d73
+0, 27, 27, 1, 599040, 0xda630d57
+0, 28, 28, 1, 599040, 0x7b8eec79
+0, 29, 29, 1, 599040, 0x70dff7a6
+0, 30, 30, 1, 599040, 0x4b600806
+0, 31, 31, 1, 599040, 0xdcbbc54d
+0, 32, 32, 1, 599040, 0x7e6e66b4
+0, 33, 33, 1, 599040, 0x645ce246
+0, 34, 34, 1, 599040, 0x03d3117c
+0, 35, 35, 1, 599040, 0x7c3cab88
+0, 36, 36, 1, 599040, 0x5cdaeeef
+0, 37, 37, 1, 599040, 0x4cce6d93
+0, 38, 38, 1, 599040, 0x78c28e4c
+0, 39, 39, 1, 599040, 0x8acbe642
+0, 40, 40, 1, 599040, 0xcd0a39f8
+0, 41, 41, 1, 599040, 0x9c580311
+0, 42, 42, 1, 599040, 0x668eab11
+0, 43, 43, 1, 599040, 0xc76f6206
+0, 44, 44, 1, 599040, 0xe0baf2a2
+0, 45, 45, 1, 599040, 0x430db206
+0, 46, 46, 1, 599040, 0x9c1565ad
+0, 47, 47, 1, 599040, 0xfc302be0
+0, 48, 48, 1, 599040, 0x6ccfc206
+0, 49, 49, 1, 599040, 0x46c7722d
diff --git a/tests/ref/fate/hevc-conformance-CAINIT_D_SHARP_3 b/tests/ref/fate/hevc-conformance-CAINIT_D_SHARP_3
new file mode 100644
index 0000000000..0294a7eefc
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-CAINIT_D_SHARP_3
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x2b58dee2
+0, 1, 1, 1, 599040, 0x2b58dee2
+0, 2, 2, 1, 599040, 0xb055b638
+0, 3, 3, 1, 599040, 0x3e2b06c9
+0, 4, 4, 1, 599040, 0xa0e53610
+0, 5, 5, 1, 599040, 0x5f6eca50
+0, 6, 6, 1, 599040, 0x516e679d
+0, 7, 7, 1, 599040, 0xdbbbf791
+0, 8, 8, 1, 599040, 0x04be5abc
+0, 9, 9, 1, 599040, 0x85283636
+0, 10, 10, 1, 599040, 0x1bcdb857
+0, 11, 11, 1, 599040, 0x258bb8a8
+0, 12, 12, 1, 599040, 0x33340003
+0, 13, 13, 1, 599040, 0xa2cc0dc3
+0, 14, 14, 1, 599040, 0x2b83400f
+0, 15, 15, 1, 599040, 0xf33ba886
+0, 16, 16, 1, 599040, 0x73f43f10
+0, 17, 17, 1, 599040, 0x63ff4628
+0, 18, 18, 1, 599040, 0x41170243
+0, 19, 19, 1, 599040, 0x84f34b72
+0, 20, 20, 1, 599040, 0x4913e415
+0, 21, 21, 1, 599040, 0x38cfaac3
+0, 22, 22, 1, 599040, 0xb2f0650c
+0, 23, 23, 1, 599040, 0xe0d12249
+0, 24, 24, 1, 599040, 0xca931ca0
+0, 25, 25, 1, 599040, 0xfc14d1cb
+0, 26, 26, 1, 599040, 0xb74667d8
+0, 27, 27, 1, 599040, 0xfdc22b8b
+0, 28, 28, 1, 599040, 0x30b425eb
+0, 29, 29, 1, 599040, 0xc31f3b73
+0, 30, 30, 1, 599040, 0xefda0062
+0, 31, 31, 1, 599040, 0x8fe0d742
+0, 32, 32, 1, 599040, 0xdaa54d1d
+0, 33, 33, 1, 599040, 0x2188ae4b
+0, 34, 34, 1, 599040, 0x7ef0f088
+0, 35, 35, 1, 599040, 0xcfd2619f
+0, 36, 36, 1, 599040, 0x3b0fca50
+0, 37, 37, 1, 599040, 0x78746df2
+0, 38, 38, 1, 599040, 0xdc917e1b
+0, 39, 39, 1, 599040, 0xc6cf2732
+0, 40, 40, 1, 599040, 0xdbd2f5f2
+0, 41, 41, 1, 599040, 0x45a8cba3
+0, 42, 42, 1, 599040, 0xe276b712
+0, 43, 43, 1, 599040, 0x36057004
+0, 44, 44, 1, 599040, 0xe0da7e77
+0, 45, 45, 1, 599040, 0x823e7c30
+0, 46, 46, 1, 599040, 0x62c9457a
+0, 47, 47, 1, 599040, 0xf6743a30
+0, 48, 48, 1, 599040, 0x8db4f476
+0, 49, 49, 1, 599040, 0x79537927
diff --git a/tests/ref/fate/hevc-conformance-CAINIT_E_SHARP_3 b/tests/ref/fate/hevc-conformance-CAINIT_E_SHARP_3
new file mode 100644
index 0000000000..430426bd04
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-CAINIT_E_SHARP_3
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x1cf21d79
+0, 1, 1, 1, 599040, 0x1cf21d79
+0, 2, 2, 1, 599040, 0xb54ee9e0
+0, 3, 3, 1, 599040, 0x757f33f0
+0, 4, 4, 1, 599040, 0x783e06bc
+0, 5, 5, 1, 599040, 0x73127ae7
+0, 6, 6, 1, 599040, 0x52f86193
+0, 7, 7, 1, 599040, 0x8e8afa2c
+0, 8, 8, 1, 599040, 0x29359620
+0, 9, 9, 1, 599040, 0x23f46fd3
+0, 10, 10, 1, 599040, 0x00c9d47d
+0, 11, 11, 1, 599040, 0xcabcca8d
+0, 12, 12, 1, 599040, 0x02e92d89
+0, 13, 13, 1, 599040, 0x3e97268f
+0, 14, 14, 1, 599040, 0xba6230c2
+0, 15, 15, 1, 599040, 0x4393aa3b
+0, 16, 16, 1, 599040, 0x06b1b9c8
+0, 17, 17, 1, 599040, 0xcc2aa30b
+0, 18, 18, 1, 599040, 0x3e029a11
+0, 19, 19, 1, 599040, 0x0ec1fc36
+0, 20, 20, 1, 599040, 0xd61dd438
+0, 21, 21, 1, 599040, 0xa7b1816b
+0, 22, 22, 1, 599040, 0xa98ef225
+0, 23, 23, 1, 599040, 0x368912ca
+0, 24, 24, 1, 599040, 0x1ae95cbe
+0, 25, 25, 1, 599040, 0x0e01f8ed
+0, 26, 26, 1, 599040, 0x05497937
+0, 27, 27, 1, 599040, 0x735c2420
+0, 28, 28, 1, 599040, 0x0ef80004
+0, 29, 29, 1, 599040, 0xd744091b
+0, 30, 30, 1, 599040, 0x0f3b1576
+0, 31, 31, 1, 599040, 0x24e4fab9
+0, 32, 32, 1, 599040, 0x6b5d7fca
+0, 33, 33, 1, 599040, 0x2afcdaec
+0, 34, 34, 1, 599040, 0x39dfd5b6
+0, 35, 35, 1, 599040, 0xe5844f4e
+0, 36, 36, 1, 599040, 0xf26920d9
+0, 37, 37, 1, 599040, 0x8feb56e2
+0, 38, 38, 1, 599040, 0x6433712f
+0, 39, 39, 1, 599040, 0xba311758
+0, 40, 40, 1, 599040, 0x09f87643
+0, 41, 41, 1, 599040, 0x68562c28
+0, 42, 42, 1, 599040, 0x9465e267
+0, 43, 43, 1, 599040, 0x03e2802f
+0, 44, 44, 1, 599040, 0xa61ed250
+0, 45, 45, 1, 599040, 0x5ab680db
+0, 46, 46, 1, 599040, 0xc4663840
+0, 47, 47, 1, 599040, 0xefe83a4f
+0, 48, 48, 1, 599040, 0x7bfb4ecd
+0, 49, 49, 1, 599040, 0xcafdbfd0
diff --git a/tests/ref/fate/hevc-conformance-CAINIT_F_SHARP_3 b/tests/ref/fate/hevc-conformance-CAINIT_F_SHARP_3
new file mode 100644
index 0000000000..aeba53ba65
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-CAINIT_F_SHARP_3
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x1cf21d79
+0, 1, 1, 1, 599040, 0x1cf21d79
+0, 2, 2, 1, 599040, 0xc182eaa8
+0, 3, 3, 1, 599040, 0x260358ee
+0, 4, 4, 1, 599040, 0x381e5b16
+0, 5, 5, 1, 599040, 0x329dacd8
+0, 6, 6, 1, 599040, 0x7306d51c
+0, 7, 7, 1, 599040, 0x869d359b
+0, 8, 8, 1, 599040, 0xf8fc941a
+0, 9, 9, 1, 599040, 0x0798842b
+0, 10, 10, 1, 599040, 0xe6e1f54e
+0, 11, 11, 1, 599040, 0xc7d5ba9e
+0, 12, 12, 1, 599040, 0xc8c5507a
+0, 13, 13, 1, 599040, 0x97ae604a
+0, 14, 14, 1, 599040, 0x14dd4139
+0, 15, 15, 1, 599040, 0xb2f998dc
+0, 16, 16, 1, 599040, 0xc3a3a6bc
+0, 17, 17, 1, 599040, 0x1f95be77
+0, 18, 18, 1, 599040, 0xb7fd124b
+0, 19, 19, 1, 599040, 0x25703b3c
+0, 20, 20, 1, 599040, 0x3bddeba7
+0, 21, 21, 1, 599040, 0xffcc9b6d
+0, 22, 22, 1, 599040, 0x3dd66a0a
+0, 23, 23, 1, 599040, 0xe9607af7
+0, 24, 24, 1, 599040, 0x218cdc65
+0, 25, 25, 1, 599040, 0x88f97761
+0, 26, 26, 1, 599040, 0x62e1f5d4
+0, 27, 27, 1, 599040, 0xcc3cd429
+0, 28, 28, 1, 599040, 0xb4290272
+0, 29, 29, 1, 599040, 0x4f73142c
+0, 30, 30, 1, 599040, 0x753eefd9
+0, 31, 31, 1, 599040, 0xea77e837
+0, 32, 32, 1, 599040, 0xfa927e55
+0, 33, 33, 1, 599040, 0x3dff1295
+0, 34, 34, 1, 599040, 0x513c2088
+0, 35, 35, 1, 599040, 0x9822b7f0
+0, 36, 36, 1, 599040, 0xc4770af6
+0, 37, 37, 1, 599040, 0x7cb576fb
+0, 38, 38, 1, 599040, 0x2af8ca3a
+0, 39, 39, 1, 599040, 0x0a324910
+0, 40, 40, 1, 599040, 0x1aeb3d7a
+0, 41, 41, 1, 599040, 0x82de1408
+0, 42, 42, 1, 599040, 0x7ebad7f4
+0, 43, 43, 1, 599040, 0xd100bcc1
+0, 44, 44, 1, 599040, 0x4719dc40
+0, 45, 45, 1, 599040, 0xd82f658b
+0, 46, 46, 1, 599040, 0x8c596a54
+0, 47, 47, 1, 599040, 0xd0b4572c
+0, 48, 48, 1, 599040, 0xdc3c5a89
+0, 49, 49, 1, 599040, 0x4f0ad888
diff --git a/tests/ref/fate/hevc-conformance-CAINIT_G_SHARP_3 b/tests/ref/fate/hevc-conformance-CAINIT_G_SHARP_3
new file mode 100644
index 0000000000..e0501beab6
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-CAINIT_G_SHARP_3
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0xd9b73cbe
+0, 1, 1, 1, 599040, 0xd9b73cbe
+0, 2, 2, 1, 599040, 0xe4e5dd7c
+0, 3, 3, 1, 599040, 0xa7333d7e
+0, 4, 4, 1, 599040, 0x6b82552b
+0, 5, 5, 1, 599040, 0x4f02e2a4
+0, 6, 6, 1, 599040, 0x8fdcc50a
+0, 7, 7, 1, 599040, 0x2481542d
+0, 8, 8, 1, 599040, 0x73d0dfad
+0, 9, 9, 1, 599040, 0x842b8cd2
+0, 10, 10, 1, 599040, 0x87b3a3b2
+0, 11, 11, 1, 599040, 0xe4decf78
+0, 12, 12, 1, 599040, 0xfba7dd51
+0, 13, 13, 1, 599040, 0x3dc1e85c
+0, 14, 14, 1, 599040, 0xea8a4987
+0, 15, 15, 1, 599040, 0xa3cc5c8c
+0, 16, 16, 1, 599040, 0x10a09cd8
+0, 17, 17, 1, 599040, 0x6739c5f7
+0, 18, 18, 1, 599040, 0x819af14a
+0, 19, 19, 1, 599040, 0xe9d65a5c
+0, 20, 20, 1, 599040, 0x09def54e
+0, 21, 21, 1, 599040, 0x8595aa5d
+0, 22, 22, 1, 599040, 0xc3f134d7
+0, 23, 23, 1, 599040, 0xdac9496a
+0, 24, 24, 1, 599040, 0x760f0897
+0, 25, 25, 1, 599040, 0x8daddaf5
+0, 26, 26, 1, 599040, 0xed313947
+0, 27, 27, 1, 599040, 0xc875ed4d
+0, 28, 28, 1, 599040, 0xdb5d0b3b
+0, 29, 29, 1, 599040, 0x7cbc0e6a
+0, 30, 30, 1, 599040, 0x193bbc9f
+0, 31, 31, 1, 599040, 0x4f20d599
+0, 32, 32, 1, 599040, 0x09e545e8
+0, 33, 33, 1, 599040, 0x0637d524
+0, 34, 34, 1, 599040, 0x11a3bd85
+0, 35, 35, 1, 599040, 0x304155ce
+0, 36, 36, 1, 599040, 0x6636291b
+0, 37, 37, 1, 599040, 0xc4039e80
+0, 38, 38, 1, 599040, 0xd73ca756
+0, 39, 39, 1, 599040, 0x96a68426
+0, 40, 40, 1, 599040, 0xd945391c
+0, 41, 41, 1, 599040, 0x95a83264
+0, 42, 42, 1, 599040, 0x6356a243
+0, 43, 43, 1, 599040, 0xb9b8973e
+0, 44, 44, 1, 599040, 0xf361d0d9
+0, 45, 45, 1, 599040, 0x2783b0e2
+0, 46, 46, 1, 599040, 0x870ac424
+0, 47, 47, 1, 599040, 0xa8397c01
+0, 48, 48, 1, 599040, 0xf1bc2ac0
+0, 49, 49, 1, 599040, 0x82fbb428
diff --git a/tests/ref/fate/hevc-conformance-CAINIT_H_SHARP_3 b/tests/ref/fate/hevc-conformance-CAINIT_H_SHARP_3
new file mode 100644
index 0000000000..01ab258d58
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-CAINIT_H_SHARP_3
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0xd9b73cbe
+0, 1, 1, 1, 599040, 0xd9b73cbe
+0, 2, 2, 1, 599040, 0x93a3fabf
+0, 3, 3, 1, 599040, 0x245a522e
+0, 4, 4, 1, 599040, 0xff1e8bb4
+0, 5, 5, 1, 599040, 0x03390b9a
+0, 6, 6, 1, 599040, 0x27030635
+0, 7, 7, 1, 599040, 0x431c6312
+0, 8, 8, 1, 599040, 0xeddc5f83
+0, 9, 9, 1, 599040, 0x34168a1e
+0, 10, 10, 1, 599040, 0xf4d795a4
+0, 11, 11, 1, 599040, 0xe716ea67
+0, 12, 12, 1, 599040, 0xf3b8446d
+0, 13, 13, 1, 599040, 0x082d12d0
+0, 14, 14, 1, 599040, 0x68e12e99
+0, 15, 15, 1, 599040, 0x3fd079df
+0, 16, 16, 1, 599040, 0x6087fb37
+0, 17, 17, 1, 599040, 0x12c2142e
+0, 18, 18, 1, 599040, 0xb3bcf682
+0, 19, 19, 1, 599040, 0xcec84ee7
+0, 20, 20, 1, 599040, 0x12a4fb43
+0, 21, 21, 1, 599040, 0x85749580
+0, 22, 22, 1, 599040, 0x6df99536
+0, 23, 23, 1, 599040, 0x377282a6
+0, 24, 24, 1, 599040, 0xe296f874
+0, 25, 25, 1, 599040, 0x1b29cd1a
+0, 26, 26, 1, 599040, 0x1cf633c9
+0, 27, 27, 1, 599040, 0xf8cd2544
+0, 28, 28, 1, 599040, 0x61c05325
+0, 29, 29, 1, 599040, 0x87646c89
+0, 30, 30, 1, 599040, 0x5b840711
+0, 31, 31, 1, 599040, 0x5bc4c181
+0, 32, 32, 1, 599040, 0x91ce695a
+0, 33, 33, 1, 599040, 0xed54dcca
+0, 34, 34, 1, 599040, 0xc41fef8e
+0, 35, 35, 1, 599040, 0x9da8830b
+0, 36, 36, 1, 599040, 0xb76cec12
+0, 37, 37, 1, 599040, 0xef9661f0
+0, 38, 38, 1, 599040, 0xe1d38227
+0, 39, 39, 1, 599040, 0xce440134
+0, 40, 40, 1, 599040, 0x41a54dd1
+0, 41, 41, 1, 599040, 0xdd83da8e
+0, 42, 42, 1, 599040, 0xf9cee595
+0, 43, 43, 1, 599040, 0x6f5db54d
+0, 44, 44, 1, 599040, 0x00b6f064
+0, 45, 45, 1, 599040, 0xfbaa978d
+0, 46, 46, 1, 599040, 0x2c9ee1d7
+0, 47, 47, 1, 599040, 0xe8c4be1f
+0, 48, 48, 1, 599040, 0x132a260f
+0, 49, 49, 1, 599040, 0x8571a213
diff --git a/tests/ref/fate/hevc-conformance-CIP_A_Panasonic_3 b/tests/ref/fate/hevc-conformance-CIP_A_Panasonic_3
new file mode 100644
index 0000000000..afa485470a
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-CIP_A_Panasonic_3
@@ -0,0 +1,3 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x6e1f16d0
+0, 1, 1, 1, 149760, 0x5be5bde9
diff --git a/tests/ref/fate/hevc-conformance-CIP_C_Panasonic_2 b/tests/ref/fate/hevc-conformance-CIP_C_Panasonic_2
new file mode 100644
index 0000000000..3346e20a57
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-CIP_C_Panasonic_2
@@ -0,0 +1,3 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0xcd1019b2
+0, 1, 1, 1, 149760, 0xeb39efeb
diff --git a/tests/ref/fate/hevc-conformance-DBLK_A_MAIN10_VIXS_2 b/tests/ref/fate/hevc-conformance-DBLK_A_MAIN10_VIXS_2
new file mode 100644
index 0000000000..50be4f1845
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-DBLK_A_MAIN10_VIXS_2
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+0, 0, 0, 1, 76032, 0x4313935b
+0, 1, 1, 1, 76032, 0x4c8071b5
+0, 2, 2, 1, 76032, 0x5e627edc
+0, 3, 3, 1, 76032, 0xb51a996d
+0, 4, 4, 1, 76032, 0x77d1800b
+0, 5, 5, 1, 76032, 0x4fb9bf3f
+0, 6, 6, 1, 76032, 0x838f8c05
+0, 7, 7, 1, 76032, 0xa87aabb6
diff --git a/tests/ref/fate/hevc-conformance-DBLK_A_SONY_3 b/tests/ref/fate/hevc-conformance-DBLK_A_SONY_3
new file mode 100644
index 0000000000..0750bb3209
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-DBLK_A_SONY_3
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x154e6dd9
+0, 2, 2, 1, 599040, 0xcce25693
+0, 3, 3, 1, 599040, 0x3dd84e88
+0, 4, 4, 1, 599040, 0xca197027
+0, 5, 5, 1, 599040, 0xc9af0241
+0, 6, 6, 1, 599040, 0x510470de
+0, 7, 7, 1, 599040, 0xac8c0a7c
+0, 8, 8, 1, 599040, 0x04cbed5e
+0, 9, 9, 1, 599040, 0x514ce2f1
+0, 10, 10, 1, 599040, 0xf37a4eec
+0, 11, 11, 1, 599040, 0xabfd7f2f
+0, 12, 12, 1, 599040, 0x944458a1
+0, 13, 13, 1, 599040, 0xf4f81db2
+0, 14, 14, 1, 599040, 0xdde236fb
+0, 15, 15, 1, 599040, 0x6b0132be
+0, 16, 16, 1, 599040, 0x641683a3
+0, 17, 17, 1, 599040, 0x81d6be90
+0, 18, 18, 1, 599040, 0xf1e04e55
+0, 19, 19, 1, 599040, 0x63c4dc0a
+0, 20, 20, 1, 599040, 0x47170db8
+0, 21, 21, 1, 599040, 0xdc22f27b
+0, 22, 22, 1, 599040, 0xd5b63800
+0, 23, 23, 1, 599040, 0x07b76936
+0, 24, 24, 1, 599040, 0x5215eee2
+0, 25, 25, 1, 599040, 0xb5b2c9b1
+0, 26, 26, 1, 599040, 0x79bee732
+0, 27, 27, 1, 599040, 0x14c1f436
+0, 28, 28, 1, 599040, 0x384f7f05
+0, 29, 29, 1, 599040, 0x44229c42
+0, 30, 30, 1, 599040, 0x5dea88e9
diff --git a/tests/ref/fate/hevc-conformance-DBLK_B_SONY_3 b/tests/ref/fate/hevc-conformance-DBLK_B_SONY_3
new file mode 100644
index 0000000000..83f9b4a265
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-DBLK_B_SONY_3
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0xda0cb5d4
+0, 2, 2, 1, 599040, 0x352bc397
+0, 3, 3, 1, 599040, 0x72bc28fe
+0, 4, 4, 1, 599040, 0x22294f68
+0, 5, 5, 1, 599040, 0x1f6415a7
+0, 6, 6, 1, 599040, 0xa9f6b0d7
+0, 7, 7, 1, 599040, 0x6b7c1f2d
+0, 8, 8, 1, 599040, 0xb93857f5
+0, 9, 9, 1, 599040, 0xb0d752d3
+0, 10, 10, 1, 599040, 0x0622e689
+0, 11, 11, 1, 599040, 0x23d8780a
+0, 12, 12, 1, 599040, 0x4844581b
+0, 13, 13, 1, 599040, 0x791322f9
+0, 14, 14, 1, 599040, 0x82f6cf43
+0, 15, 15, 1, 599040, 0xcace3aba
+0, 16, 16, 1, 599040, 0x68a68427
+0, 17, 17, 1, 599040, 0x23fa500a
+0, 18, 18, 1, 599040, 0x7d78b77d
+0, 19, 19, 1, 599040, 0x8d295032
+0, 20, 20, 1, 599040, 0x16fa266c
+0, 21, 21, 1, 599040, 0x37d8173b
+0, 22, 22, 1, 599040, 0x8a4f90e1
+0, 23, 23, 1, 599040, 0x40f98f6d
+0, 24, 24, 1, 599040, 0xc060b193
+0, 25, 25, 1, 599040, 0xa53c3bc1
+0, 26, 26, 1, 599040, 0x5a9556d6
+0, 27, 27, 1, 599040, 0x37582393
+0, 28, 28, 1, 599040, 0x376acd14
+0, 29, 29, 1, 599040, 0x81ee1e64
+0, 30, 30, 1, 599040, 0xff2a600c
diff --git a/tests/ref/fate/hevc-conformance-DBLK_C_SONY_3 b/tests/ref/fate/hevc-conformance-DBLK_C_SONY_3
new file mode 100644
index 0000000000..1087148501
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-DBLK_C_SONY_3
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x57369bf4
+0, 2, 2, 1, 599040, 0x319aab9c
+0, 3, 3, 1, 599040, 0xbc1b7698
+0, 4, 4, 1, 599040, 0x05cea248
+0, 5, 5, 1, 599040, 0xdca73743
+0, 6, 6, 1, 599040, 0x5b5a9f70
+0, 7, 7, 1, 599040, 0x16c51b34
+0, 8, 8, 1, 599040, 0x734fe724
+0, 9, 9, 1, 599040, 0x48e4e0ba
+0, 10, 10, 1, 599040, 0xf1423cc1
+0, 11, 11, 1, 599040, 0xb4bb68b1
+0, 12, 12, 1, 599040, 0x54a77ad6
+0, 13, 13, 1, 599040, 0x6e0dfce3
+0, 14, 14, 1, 599040, 0x7ca687e3
+0, 15, 15, 1, 599040, 0xf9ac2443
+0, 16, 16, 1, 599040, 0xe35b8d34
+0, 17, 17, 1, 599040, 0xef4bbe9f
+0, 18, 18, 1, 599040, 0x21eb418e
+0, 19, 19, 1, 599040, 0xae6df30f
+0, 20, 20, 1, 599040, 0x743500af
+0, 21, 21, 1, 599040, 0x7fba1ce1
+0, 22, 22, 1, 599040, 0x45793eae
+0, 23, 23, 1, 599040, 0x1f7e3467
+0, 24, 24, 1, 599040, 0x7400c7c3
+0, 25, 25, 1, 599040, 0xcf79806d
+0, 26, 26, 1, 599040, 0x324ea91d
+0, 27, 27, 1, 599040, 0x9c8cae92
+0, 28, 28, 1, 599040, 0x70bfc368
+0, 29, 29, 1, 599040, 0x46a0f8ff
+0, 30, 30, 1, 599040, 0xd864208a
diff --git a/tests/ref/fate/hevc-conformance-DBLK_D_VIXS_1 b/tests/ref/fate/hevc-conformance-DBLK_D_VIXS_1
new file mode 100644
index 0000000000..3d9e43b1c0
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-DBLK_D_VIXS_1
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+0, 0, 0, 1, 1382400, 0x6ef5c76e
+0, 1, 1, 1, 1382400, 0x975238be
+0, 2, 2, 1, 1382400, 0xe5529a79
+0, 3, 3, 1, 1382400, 0x639641d4
+0, 4, 4, 1, 1382400, 0x566eb1df
+0, 5, 5, 1, 1382400, 0x4fd4b46a
+0, 6, 6, 1, 1382400, 0xfb4a6a0e
+0, 7, 7, 1, 1382400, 0x4485af32
diff --git a/tests/ref/fate/hevc-conformance-DBLK_D_VIXS_2 b/tests/ref/fate/hevc-conformance-DBLK_D_VIXS_2
new file mode 100644
index 0000000000..2bdc548bd0
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-DBLK_D_VIXS_2
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+0, 0, 0, 1, 1382400, 0x6ef5c76e
+0, 1, 1, 1, 1382400, 0x1e1926b1
+0, 2, 2, 1, 1382400, 0x69888786
+0, 3, 3, 1, 1382400, 0x1f193659
+0, 4, 4, 1, 1382400, 0x566eb1df
+0, 5, 5, 1, 1382400, 0x49b3a668
+0, 6, 6, 1, 1382400, 0x1b774ed8
+0, 7, 7, 1, 1382400, 0x2296a2bc
diff --git a/tests/ref/fate/hevc-conformance-DBLK_E_VIXS_1 b/tests/ref/fate/hevc-conformance-DBLK_E_VIXS_1
new file mode 100644
index 0000000000..c3ebaf2081
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-DBLK_E_VIXS_1
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+0, 0, 0, 1, 1382400, 0x7119bbe5
+0, 1, 1, 1, 1382400, 0xbeda2c83
+0, 2, 2, 1, 1382400, 0x2cbe6669
+0, 3, 3, 1, 1382400, 0x3cee2619
+0, 4, 4, 1, 1382400, 0x93e388e3
+0, 5, 5, 1, 1382400, 0x5e286889
+0, 6, 6, 1, 1382400, 0x4718f29c
+0, 7, 7, 1, 1382400, 0xbedf4dbd
diff --git a/tests/ref/fate/hevc-conformance-DBLK_E_VIXS_2 b/tests/ref/fate/hevc-conformance-DBLK_E_VIXS_2
new file mode 100644
index 0000000000..4c8b07d726
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-DBLK_E_VIXS_2
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+0, 0, 0, 1, 1382400, 0xecfdf606
+0, 1, 1, 1, 1382400, 0x0b0382e1
+0, 2, 2, 1, 1382400, 0xbef3afd6
+0, 3, 3, 1, 1382400, 0x6a2bcabb
+0, 4, 4, 1, 1382400, 0x663f991c
+0, 5, 5, 1, 1382400, 0xb49b94d8
+0, 6, 6, 1, 1382400, 0x07399433
+0, 7, 7, 1, 1382400, 0x9cca09df
diff --git a/tests/ref/fate/hevc-conformance-DBLK_F_VIXS_1 b/tests/ref/fate/hevc-conformance-DBLK_F_VIXS_1
new file mode 100644
index 0000000000..59f51efaa8
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-DBLK_F_VIXS_1
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+0, 0, 0, 1, 1382400, 0xea27f7bd
+0, 1, 1, 1, 1382400, 0xce3d7b4c
+0, 2, 2, 1, 1382400, 0xaea4970e
+0, 3, 3, 1, 1382400, 0xcbc7c89f
+0, 4, 4, 1, 1382400, 0xe5367019
+0, 5, 5, 1, 1382400, 0xb92ca18e
+0, 6, 6, 1, 1382400, 0xde046be1
+0, 7, 7, 1, 1382400, 0x1ae6e393
diff --git a/tests/ref/fate/hevc-conformance-DBLK_F_VIXS_2 b/tests/ref/fate/hevc-conformance-DBLK_F_VIXS_2
new file mode 100644
index 0000000000..3ff62e5a45
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-DBLK_F_VIXS_2
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+0, 0, 0, 1, 1382400, 0xea27f7bd
+0, 1, 1, 1, 1382400, 0x423e555b
+0, 2, 2, 1, 1382400, 0x87898ae0
+0, 3, 3, 1, 1382400, 0xfee4beab
+0, 4, 4, 1, 1382400, 0xe5367019
+0, 5, 5, 1, 1382400, 0x3e74b3aa
+0, 6, 6, 1, 1382400, 0x4d8ab61a
+0, 7, 7, 1, 1382400, 0x22500e13
diff --git a/tests/ref/fate/hevc-conformance-DBLK_G_VIXS_1 b/tests/ref/fate/hevc-conformance-DBLK_G_VIXS_1
new file mode 100644
index 0000000000..4b9793b154
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-DBLK_G_VIXS_1
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+0, 0, 0, 1, 1382400, 0xecfdf606
+0, 1, 1, 1, 1382400, 0x7607799b
+0, 2, 2, 1, 1382400, 0x67fb98e4
+0, 3, 3, 1, 1382400, 0xf2dce07f
+0, 4, 4, 1, 1382400, 0x663f991c
+0, 5, 5, 1, 1382400, 0x3877aeb0
+0, 6, 6, 1, 1382400, 0x73409282
+0, 7, 7, 1, 1382400, 0x766c10b1
diff --git a/tests/ref/fate/hevc-conformance-DBLK_G_VIXS_2 b/tests/ref/fate/hevc-conformance-DBLK_G_VIXS_2
new file mode 100644
index 0000000000..4c8b07d726
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-DBLK_G_VIXS_2
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+0, 0, 0, 1, 1382400, 0xecfdf606
+0, 1, 1, 1, 1382400, 0x0b0382e1
+0, 2, 2, 1, 1382400, 0xbef3afd6
+0, 3, 3, 1, 1382400, 0x6a2bcabb
+0, 4, 4, 1, 1382400, 0x663f991c
+0, 5, 5, 1, 1382400, 0xb49b94d8
+0, 6, 6, 1, 1382400, 0x07399433
+0, 7, 7, 1, 1382400, 0x9cca09df
diff --git a/tests/ref/fate/hevc-conformance-DELTAQP_B_SONY_3 b/tests/ref/fate/hevc-conformance-DELTAQP_B_SONY_3
new file mode 100644
index 0000000000..a8427d1d1c
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-DELTAQP_B_SONY_3
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x7ea9597c
+0, 2, 2, 1, 599040, 0x3e7365e4
+0, 3, 3, 1, 599040, 0x4a9149c9
+0, 4, 4, 1, 599040, 0x3b1f6549
+0, 5, 5, 1, 599040, 0x3e35f616
+0, 6, 6, 1, 599040, 0x843c7951
+0, 7, 7, 1, 599040, 0xa2adb299
+0, 8, 8, 1, 599040, 0xb9dda682
+0, 9, 9, 1, 599040, 0x9a5e7355
+0, 10, 10, 1, 599040, 0xc4bafa8c
+0, 11, 11, 1, 599040, 0xc4ec160e
+0, 12, 12, 1, 599040, 0x538421a3
+0, 13, 13, 1, 599040, 0xb294a96e
+0, 14, 14, 1, 599040, 0x9bb217df
+0, 15, 15, 1, 599040, 0xbe70c870
+0, 16, 16, 1, 599040, 0xa4e319a8
+0, 17, 17, 1, 599040, 0x3a4c702d
+0, 18, 18, 1, 599040, 0x9f790906
+0, 19, 19, 1, 599040, 0xbbfdb8d6
+0, 20, 20, 1, 599040, 0x0965c0ed
+0, 21, 21, 1, 599040, 0x6993e1f1
+0, 22, 22, 1, 599040, 0xc1cc1df9
+0, 23, 23, 1, 599040, 0xe570c390
+0, 24, 24, 1, 599040, 0x422f6fd7
+0, 25, 25, 1, 599040, 0x9c89298c
+0, 26, 26, 1, 599040, 0x5ece4193
+0, 27, 27, 1, 599040, 0x142a4f2f
+0, 28, 28, 1, 599040, 0xa5356c63
+0, 29, 29, 1, 599040, 0x8458a378
+0, 30, 30, 1, 599040, 0xc149ed56
diff --git a/tests/ref/fate/hevc-conformance-DELTAQP_C_SONY_3 b/tests/ref/fate/hevc-conformance-DELTAQP_C_SONY_3
new file mode 100644
index 0000000000..8037e9c818
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-DELTAQP_C_SONY_3
@@ -0,0 +1,31 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0xcb2969c5
+0, 2, 2, 1, 599040, 0xd9825d1f
+0, 3, 3, 1, 599040, 0x5ff4245a
+0, 4, 4, 1, 599040, 0xd34e7bcb
+0, 5, 5, 1, 599040, 0x032e1b8b
+0, 6, 6, 1, 599040, 0x5ba1873c
+0, 7, 7, 1, 599040, 0xa0b725ad
+0, 8, 8, 1, 599040, 0x9cade6a6
+0, 9, 9, 1, 599040, 0xe41bee5a
+0, 10, 10, 1, 599040, 0x9de4340f
+0, 11, 11, 1, 599040, 0xb966282a
+0, 12, 12, 1, 599040, 0x52fd5300
+0, 13, 13, 1, 599040, 0x8e6d6753
+0, 14, 14, 1, 599040, 0x2011759b
+0, 15, 15, 1, 599040, 0x5da5b7af
+0, 16, 16, 1, 599040, 0x090e298c
+0, 17, 17, 1, 599040, 0xfd618263
+0, 18, 18, 1, 599040, 0xdaf4ef69
+0, 19, 19, 1, 599040, 0x0349d1a0
+0, 20, 20, 1, 599040, 0x75a35caf
+0, 21, 21, 1, 599040, 0x4544918e
+0, 22, 22, 1, 599040, 0xbca15836
+0, 23, 23, 1, 599040, 0x443bc611
+0, 24, 24, 1, 599040, 0xc380beaf
+0, 25, 25, 1, 599040, 0x01a581ca
+0, 26, 26, 1, 599040, 0x1690835f
+0, 27, 27, 1, 599040, 0x871e9c3b
+0, 28, 28, 1, 599040, 0xf4c20a25
+0, 29, 29, 1, 599040, 0x86d8f2df
+0, 30, 30, 1, 599040, 0x7690bd56
diff --git a/tests/ref/fate/hevc-conformance-DSLICE_A_HHI_5 b/tests/ref/fate/hevc-conformance-DSLICE_A_HHI_5
new file mode 100644
index 0000000000..6cd113bf1a
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-DSLICE_A_HHI_5
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 3110400, 0xdc18cd12
+0, 1, 1, 1, 3110400, 0x42f7020d
+0, 2, 2, 1, 3110400, 0x6ac4421a
+0, 3, 3, 1, 3110400, 0xdbf78c86
+0, 4, 4, 1, 3110400, 0x123f9c50
+0, 5, 5, 1, 3110400, 0x9356a73f
+0, 6, 6, 1, 3110400, 0xc54a446b
+0, 7, 7, 1, 3110400, 0xdfa92401
+0, 8, 8, 1, 3110400, 0xd3226c6a
+0, 9, 9, 1, 3110400, 0xa0bd149a
+0, 10, 10, 1, 3110400, 0xc38c58cc
+0, 11, 11, 1, 3110400, 0xf1871f13
+0, 12, 12, 1, 3110400, 0xfdf151d5
+0, 13, 13, 1, 3110400, 0x65ca7286
+0, 14, 14, 1, 3110400, 0xac2d80dc
+0, 15, 15, 1, 3110400, 0x3e024908
+0, 16, 16, 1, 3110400, 0x22a66454
+0, 17, 17, 1, 3110400, 0x83b6cac8
+0, 18, 18, 1, 3110400, 0xe1bccc50
+0, 19, 19, 1, 3110400, 0x76be567e
+0, 20, 20, 1, 3110400, 0x743c4335
+0, 21, 21, 1, 3110400, 0xd3d28565
+0, 22, 22, 1, 3110400, 0x2ab3a5a2
+0, 23, 23, 1, 3110400, 0x9141f68e
+0, 24, 24, 1, 3110400, 0xe90fac3b
+0, 25, 25, 1, 3110400, 0xdc8e496d
+0, 26, 26, 1, 3110400, 0x4ea216b9
+0, 27, 27, 1, 3110400, 0xd1f8a08e
+0, 28, 28, 1, 3110400, 0x2b512b98
+0, 29, 29, 1, 3110400, 0x6af060b6
+0, 30, 30, 1, 3110400, 0x69389c02
+0, 31, 31, 1, 3110400, 0x7a8cef2f
+0, 32, 32, 1, 3110400, 0x8f5bd7eb
+0, 33, 33, 1, 3110400, 0x3960d741
+0, 34, 34, 1, 3110400, 0x86c2c23b
+0, 35, 35, 1, 3110400, 0x6d0d258a
+0, 36, 36, 1, 3110400, 0xaff6795b
+0, 37, 37, 1, 3110400, 0x97b9cb1e
+0, 38, 38, 1, 3110400, 0x5966d391
+0, 39, 39, 1, 3110400, 0xb9c90726
+0, 40, 40, 1, 3110400, 0x3ab5836d
+0, 41, 41, 1, 3110400, 0xcc3c95e7
+0, 42, 42, 1, 3110400, 0x190df1ce
+0, 43, 43, 1, 3110400, 0x64e6f266
+0, 44, 44, 1, 3110400, 0x98dfdcdd
+0, 45, 45, 1, 3110400, 0xd8889aff
+0, 46, 46, 1, 3110400, 0x969775b8
+0, 47, 47, 1, 3110400, 0x8f3dec20
+0, 48, 48, 1, 3110400, 0xbd2b80ca
+0, 49, 49, 1, 3110400, 0x68baa6f7
diff --git a/tests/ref/fate/hevc-conformance-DSLICE_B_HHI_5 b/tests/ref/fate/hevc-conformance-DSLICE_B_HHI_5
new file mode 100644
index 0000000000..7626d76adf
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-DSLICE_B_HHI_5
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 3110400, 0x96995c57
+0, 1, 1, 1, 3110400, 0x2924a10f
+0, 2, 2, 1, 3110400, 0x892e146c
+0, 3, 3, 1, 3110400, 0x9b0b8733
+0, 4, 4, 1, 3110400, 0xb09ffc2d
+0, 5, 5, 1, 3110400, 0x588e04a0
+0, 6, 6, 1, 3110400, 0xa9ed178c
+0, 7, 7, 1, 3110400, 0x54254788
+0, 8, 8, 1, 3110400, 0x4fa444bc
+0, 9, 9, 1, 3110400, 0xe97d958a
+0, 10, 10, 1, 3110400, 0x8e168461
+0, 11, 11, 1, 3110400, 0xc39e551f
+0, 12, 12, 1, 3110400, 0xb5649a69
+0, 13, 13, 1, 3110400, 0x64eb3085
+0, 14, 14, 1, 3110400, 0xb4485019
+0, 15, 15, 1, 3110400, 0x989e4c47
+0, 16, 16, 1, 3110400, 0x0ff21984
+0, 17, 17, 1, 3110400, 0xe81b3ddd
+0, 18, 18, 1, 3110400, 0x6404610f
+0, 19, 19, 1, 3110400, 0xa61c3403
+0, 20, 20, 1, 3110400, 0x033ca068
+0, 21, 21, 1, 3110400, 0x3513dff4
+0, 22, 22, 1, 3110400, 0xe903a3c2
+0, 23, 23, 1, 3110400, 0xd40b3248
+0, 24, 24, 1, 3110400, 0xa257fb35
+0, 25, 25, 1, 3110400, 0x6fcab221
+0, 26, 26, 1, 3110400, 0x079a34c7
+0, 27, 27, 1, 3110400, 0x7308ecbc
+0, 28, 28, 1, 3110400, 0x1cf2dffb
+0, 29, 29, 1, 3110400, 0x59a0a84d
+0, 30, 30, 1, 3110400, 0x6b76450f
+0, 31, 31, 1, 3110400, 0x27de01f3
+0, 32, 32, 1, 3110400, 0x8541fe8b
+0, 33, 33, 1, 3110400, 0x07b740d9
+0, 34, 34, 1, 3110400, 0x735d36e9
+0, 35, 35, 1, 3110400, 0x0336ac98
+0, 36, 36, 1, 3110400, 0xab9f7d33
+0, 37, 37, 1, 3110400, 0xc5f62e67
+0, 38, 38, 1, 3110400, 0x68d6c250
+0, 39, 39, 1, 3110400, 0xaf26c339
+0, 40, 40, 1, 3110400, 0xfa920d0f
+0, 41, 41, 1, 3110400, 0xac9c6a89
+0, 42, 42, 1, 3110400, 0xa0d0cbd0
+0, 43, 43, 1, 3110400, 0x9d517b81
+0, 44, 44, 1, 3110400, 0x3c3b2b89
+0, 45, 45, 1, 3110400, 0x3cf50b0c
+0, 46, 46, 1, 3110400, 0xee319ebe
+0, 47, 47, 1, 3110400, 0x5b7c3397
+0, 48, 48, 1, 3110400, 0x1a089921
+0, 49, 49, 1, 3110400, 0x69718487
diff --git a/tests/ref/fate/hevc-conformance-DSLICE_C_HHI_5 b/tests/ref/fate/hevc-conformance-DSLICE_C_HHI_5
new file mode 100644
index 0000000000..c4275cb714
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-DSLICE_C_HHI_5
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 3110400, 0x62a2ceab
+0, 1, 1, 1, 3110400, 0x5e4d6adc
+0, 2, 2, 1, 3110400, 0x4ad0955d
+0, 3, 3, 1, 3110400, 0x17fd7b7c
+0, 4, 4, 1, 3110400, 0xe8270ac1
+0, 5, 5, 1, 3110400, 0xbc32bf86
+0, 6, 6, 1, 3110400, 0x13cc365c
+0, 7, 7, 1, 3110400, 0xef503eb5
+0, 8, 8, 1, 3110400, 0xcc9506f4
+0, 9, 9, 1, 3110400, 0xdc213a9e
+0, 10, 10, 1, 3110400, 0xe567c736
+0, 11, 11, 1, 3110400, 0x0a79aad4
+0, 12, 12, 1, 3110400, 0x61773cff
+0, 13, 13, 1, 3110400, 0x2e93a037
+0, 14, 14, 1, 3110400, 0xf419a7bf
+0, 15, 15, 1, 3110400, 0xa57b06bf
+0, 16, 16, 1, 3110400, 0x6e94960a
+0, 17, 17, 1, 3110400, 0x11f22564
+0, 18, 18, 1, 3110400, 0x850e5f7c
+0, 19, 19, 1, 3110400, 0xdfad06af
+0, 20, 20, 1, 3110400, 0xf2912aee
+0, 21, 21, 1, 3110400, 0x57e1c391
+0, 22, 22, 1, 3110400, 0xc8976a8f
+0, 23, 23, 1, 3110400, 0x88fb8b68
+0, 24, 24, 1, 3110400, 0xbe0e314b
+0, 25, 25, 1, 3110400, 0x33ae23f8
+0, 26, 26, 1, 3110400, 0x4db83c5c
+0, 27, 27, 1, 3110400, 0xa5f71a9d
+0, 28, 28, 1, 3110400, 0x34bb4f19
+0, 29, 29, 1, 3110400, 0xb1fee8d9
+0, 30, 30, 1, 3110400, 0x369990b7
+0, 31, 31, 1, 3110400, 0x6bfdbd4a
+0, 32, 32, 1, 3110400, 0x709dd60d
+0, 33, 33, 1, 3110400, 0x4213781c
+0, 34, 34, 1, 3110400, 0x7810dadd
+0, 35, 35, 1, 3110400, 0x1bc02bc6
+0, 36, 36, 1, 3110400, 0x760ed4aa
+0, 37, 37, 1, 3110400, 0xe2b45e4d
+0, 38, 38, 1, 3110400, 0x517b8d0a
+0, 39, 39, 1, 3110400, 0xf145ed7e
+0, 40, 40, 1, 3110400, 0xd8cbc454
+0, 41, 41, 1, 3110400, 0xa80f26f7
+0, 42, 42, 1, 3110400, 0x340a418d
+0, 43, 43, 1, 3110400, 0x5a0f7264
+0, 44, 44, 1, 3110400, 0xf2936a6d
+0, 45, 45, 1, 3110400, 0x841e715b
+0, 46, 46, 1, 3110400, 0xb17e4131
+0, 47, 47, 1, 3110400, 0x40e3ba7b
+0, 48, 48, 1, 3110400, 0x610254f7
+0, 49, 49, 1, 3110400, 0x76aa8b44
diff --git a/tests/ref/fate/hevc-conformance-ENTP_A_LG_2 b/tests/ref/fate/hevc-conformance-ENTP_A_LG_2
new file mode 100644
index 0000000000..5697619a69
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-ENTP_A_LG_2
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x866449d5
+0, 1, 1, 1, 599040, 0x6a8919f0
+0, 2, 2, 1, 599040, 0x5bec3742
+0, 3, 3, 1, 599040, 0x0e66f78b
+0, 4, 4, 1, 599040, 0x798e543b
+0, 5, 5, 1, 599040, 0x342467e0
+0, 6, 6, 1, 599040, 0x2cb393e1
+0, 7, 7, 1, 599040, 0x2f326539
+0, 8, 8, 1, 599040, 0x8ac6eb6a
+0, 9, 9, 1, 599040, 0x810a887b
+0, 10, 10, 1, 599040, 0x4feb2d60
+0, 11, 11, 1, 599040, 0xd32165ff
+0, 12, 12, 1, 599040, 0x46e505e1
+0, 13, 13, 1, 599040, 0x2d917014
+0, 14, 14, 1, 599040, 0xb504f112
+0, 15, 15, 1, 599040, 0x0fca37ce
+0, 16, 16, 1, 599040, 0x2d5a269d
+0, 17, 17, 1, 599040, 0x3928ef6d
+0, 18, 18, 1, 599040, 0x94397312
+0, 19, 19, 1, 599040, 0xc1c1257b
+0, 20, 20, 1, 599040, 0x4e23adcc
+0, 21, 21, 1, 599040, 0x3eaef1e0
+0, 22, 22, 1, 599040, 0x5e66fa14
+0, 23, 23, 1, 599040, 0x2adfa0c2
+0, 24, 24, 1, 599040, 0xf888db90
+0, 25, 25, 1, 599040, 0xab3a6418
+0, 26, 26, 1, 599040, 0x7689d0a2
+0, 27, 27, 1, 599040, 0x2f5746bf
+0, 28, 28, 1, 599040, 0xad2cf3da
+0, 29, 29, 1, 599040, 0x32f2854e
+0, 30, 30, 1, 599040, 0xb73cf7db
+0, 31, 31, 1, 599040, 0xbe996991
+0, 32, 32, 1, 599040, 0xe66501c8
+0, 33, 33, 1, 599040, 0x12d1bc13
+0, 34, 34, 1, 599040, 0x06e103d5
+0, 35, 35, 1, 599040, 0x49af0680
+0, 36, 36, 1, 599040, 0xdbf128b0
+0, 37, 37, 1, 599040, 0xa1ac770d
+0, 38, 38, 1, 599040, 0x99156429
+0, 39, 39, 1, 599040, 0x8ce1a9a7
+0, 40, 40, 1, 599040, 0x14067700
+0, 41, 41, 1, 599040, 0xcdedccee
+0, 42, 42, 1, 599040, 0x09c12765
+0, 43, 43, 1, 599040, 0x7979a1be
+0, 44, 44, 1, 599040, 0xbd3148d1
+0, 45, 45, 1, 599040, 0xc83f9aac
+0, 46, 46, 1, 599040, 0x91acbae4
+0, 47, 47, 1, 599040, 0xd230907a
+0, 48, 48, 1, 599040, 0x3f6c31f6
+0, 49, 49, 1, 599040, 0x84496e55
diff --git a/tests/ref/fate/hevc-conformance-ENTP_B_LG_2 b/tests/ref/fate/hevc-conformance-ENTP_B_LG_2
new file mode 100644
index 0000000000..0251f3070c
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-ENTP_B_LG_2
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x95a24137
+0, 1, 1, 1, 599040, 0x7d7f2b75
+0, 2, 2, 1, 599040, 0xd9fb2120
+0, 3, 3, 1, 599040, 0x14d50590
+0, 4, 4, 1, 599040, 0xe3d1b70e
+0, 5, 5, 1, 599040, 0x57708a86
+0, 6, 6, 1, 599040, 0xae56a720
+0, 7, 7, 1, 599040, 0x74c18679
+0, 8, 8, 1, 599040, 0x6422d2a7
+0, 9, 9, 1, 599040, 0xf587702b
+0, 10, 10, 1, 599040, 0x0f630fe0
+0, 11, 11, 1, 599040, 0x4e3537dd
+0, 12, 12, 1, 599040, 0xa645e9c1
+0, 13, 13, 1, 599040, 0x35ab4155
+0, 14, 14, 1, 599040, 0x4b78ba34
+0, 15, 15, 1, 599040, 0xa9a9e572
+0, 16, 16, 1, 599040, 0x6d57f10f
+0, 17, 17, 1, 599040, 0xffb8e333
+0, 18, 18, 1, 599040, 0x7b2d6319
+0, 19, 19, 1, 599040, 0xcf3319aa
+0, 20, 20, 1, 599040, 0xb0d097ee
+0, 21, 21, 1, 599040, 0xf042f780
+0, 22, 22, 1, 599040, 0xfafafdcb
+0, 23, 23, 1, 599040, 0xc8c1c452
+0, 24, 24, 1, 599040, 0x83c4d488
+0, 25, 25, 1, 599040, 0x81a8fd08
+0, 26, 26, 1, 599040, 0x2cb0c333
+0, 27, 27, 1, 599040, 0xa7bf4e52
+0, 28, 28, 1, 599040, 0x5b7ed8e9
+0, 29, 29, 1, 599040, 0x4ff03464
+0, 30, 30, 1, 599040, 0x54a700c2
+0, 31, 31, 1, 599040, 0x7dbb63aa
+0, 32, 32, 1, 599040, 0xda26288e
+0, 33, 33, 1, 599040, 0x8074da41
+0, 34, 34, 1, 599040, 0xa32b2ab2
+0, 35, 35, 1, 599040, 0x51b457fb
+0, 36, 36, 1, 599040, 0x05e34953
+0, 37, 37, 1, 599040, 0x68c762d6
+0, 38, 38, 1, 599040, 0x11bf469e
+0, 39, 39, 1, 599040, 0xc2fdadaf
+0, 40, 40, 1, 599040, 0x05588da0
+0, 41, 41, 1, 599040, 0x8855f927
+0, 42, 42, 1, 599040, 0x11c85d5a
+0, 43, 43, 1, 599040, 0x7a0aede5
+0, 44, 44, 1, 599040, 0x39dc4f7d
+0, 45, 45, 1, 599040, 0x388f81d6
+0, 46, 46, 1, 599040, 0x2afa830d
+0, 47, 47, 1, 599040, 0xd7f26886
+0, 48, 48, 1, 599040, 0xb8e12aef
+0, 49, 49, 1, 599040, 0x73f7582c
diff --git a/tests/ref/fate/hevc-conformance-ENTP_C_LG_3 b/tests/ref/fate/hevc-conformance-ENTP_C_LG_3
new file mode 100644
index 0000000000..3c0946e93f
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-ENTP_C_LG_3
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 3110400, 0xaea1c3d6
+0, 1, 1, 1, 3110400, 0x665b4f52
+0, 2, 2, 1, 3110400, 0xc7da58a2
+0, 3, 3, 1, 3110400, 0x1dda6461
+0, 4, 4, 1, 3110400, 0x1d8d6eaf
+0, 5, 5, 1, 3110400, 0x7a29911a
+0, 6, 6, 1, 3110400, 0x0dce92c9
+0, 7, 7, 1, 3110400, 0x79c84570
+0, 8, 8, 1, 3110400, 0x736ef1e7
+0, 9, 9, 1, 3110400, 0x9dd86492
+0, 10, 10, 1, 3110400, 0x0ea31a1b
+0, 11, 11, 1, 3110400, 0x0d84fdc8
+0, 12, 12, 1, 3110400, 0x06ed89a7
+0, 13, 13, 1, 3110400, 0xfaea4fd6
+0, 14, 14, 1, 3110400, 0xe787abe8
+0, 15, 15, 1, 3110400, 0x050b653a
+0, 16, 16, 1, 3110400, 0x35cc1ec1
+0, 17, 17, 1, 3110400, 0x86a43e07
+0, 18, 18, 1, 3110400, 0xa6ab021e
+0, 19, 19, 1, 3110400, 0x491e0efa
+0, 20, 20, 1, 3110400, 0x8f210c38
+0, 21, 21, 1, 3110400, 0x637af0d0
+0, 22, 22, 1, 3110400, 0x47a59197
+0, 23, 23, 1, 3110400, 0x53e04637
+0, 24, 24, 1, 3110400, 0x7b99325e
+0, 25, 25, 1, 3110400, 0x972aa252
+0, 26, 26, 1, 3110400, 0xe76ef917
+0, 27, 27, 1, 3110400, 0x7a25babc
+0, 28, 28, 1, 3110400, 0x3bee3c5c
+0, 29, 29, 1, 3110400, 0xbae82bcb
+0, 30, 30, 1, 3110400, 0x5b65c1e5
+0, 31, 31, 1, 3110400, 0xa546266f
+0, 32, 32, 1, 3110400, 0x5c5b9b8e
+0, 33, 33, 1, 3110400, 0xec29c804
+0, 34, 34, 1, 3110400, 0x384efc7d
+0, 35, 35, 1, 3110400, 0x6c1aaa23
+0, 36, 36, 1, 3110400, 0x55494f9f
+0, 37, 37, 1, 3110400, 0xa9c56fec
+0, 38, 38, 1, 3110400, 0x49c29ef2
+0, 39, 39, 1, 3110400, 0xac24fdd4
+0, 40, 40, 1, 3110400, 0x403d8213
+0, 41, 41, 1, 3110400, 0xf2d8aefe
+0, 42, 42, 1, 3110400, 0x2884f0e1
+0, 43, 43, 1, 3110400, 0x69a0a781
+0, 44, 44, 1, 3110400, 0x3ab6114c
+0, 45, 45, 1, 3110400, 0x1d4425a2
+0, 46, 46, 1, 3110400, 0x59f8970a
+0, 47, 47, 1, 3110400, 0xfe0a05a9
+0, 48, 48, 1, 3110400, 0x50b9be4f
+0, 49, 49, 1, 3110400, 0x3e1b65bd
diff --git a/tests/ref/fate/hevc-conformance-EXT_A_ericsson_3 b/tests/ref/fate/hevc-conformance-EXT_A_ericsson_3
new file mode 100644
index 0000000000..bf4616a919
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-EXT_A_ericsson_3
@@ -0,0 +1,4 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x8ce7200b
+0, 1, 1, 1, 149760, 0xf97412f6
+0, 2, 2, 1, 149760, 0x0ea132c4
diff --git a/tests/ref/fate/hevc-conformance-IPRED_A_docomo_2 b/tests/ref/fate/hevc-conformance-IPRED_A_docomo_2
new file mode 100644
index 0000000000..33878fd142
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-IPRED_A_docomo_2
@@ -0,0 +1,21 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0xac658d10
+0, 1, 1, 1, 599040, 0xe3f65389
+0, 2, 2, 1, 599040, 0xfbd644b0
+0, 3, 3, 1, 599040, 0x3ac49569
+0, 4, 4, 1, 599040, 0x75abc5e2
+0, 5, 5, 1, 599040, 0xe787ddcd
+0, 6, 6, 1, 599040, 0x1df5f293
+0, 7, 7, 1, 599040, 0xa87774aa
+0, 8, 8, 1, 599040, 0x42b2bec6
+0, 9, 9, 1, 599040, 0x89f22378
+0, 10, 10, 1, 599040, 0x0d4e5397
+0, 11, 11, 1, 599040, 0xf4430d13
+0, 12, 12, 1, 599040, 0xfd2ff520
+0, 13, 13, 1, 599040, 0x21bf374b
+0, 14, 14, 1, 599040, 0xcba1032e
+0, 15, 15, 1, 599040, 0x58247f24
+0, 16, 16, 1, 599040, 0x7985788a
+0, 17, 17, 1, 599040, 0x3306488e
+0, 18, 18, 1, 599040, 0x8bcbf22e
+0, 19, 19, 1, 599040, 0xb7a7ae5c
diff --git a/tests/ref/fate/hevc-conformance-IPRED_B_Nokia_3 b/tests/ref/fate/hevc-conformance-IPRED_B_Nokia_3
new file mode 100644
index 0000000000..4de7c3c7b1
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-IPRED_B_Nokia_3
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 3110400, 0x11ef5ddd
diff --git a/tests/ref/fate/hevc-conformance-IPRED_C_Mitsubishi_2 b/tests/ref/fate/hevc-conformance-IPRED_C_Mitsubishi_2
new file mode 100644
index 0000000000..bff448bb1b
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-IPRED_C_Mitsubishi_2
@@ -0,0 +1,5 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x9a8664e6
+0, 1, 1, 1, 599040, 0x72f15982
+0, 2, 2, 1, 599040, 0xc6610a7b
+0, 3, 3, 1, 599040, 0x091d3a93
diff --git a/tests/ref/fate/hevc-conformance-LS_A_Orange_2 b/tests/ref/fate/hevc-conformance-LS_A_Orange_2
new file mode 100644
index 0000000000..4dd4ad49ae
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-LS_A_Orange_2
@@ -0,0 +1,10 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x94a51701
+0, 1, 1, 1, 149760, 0x67c71885
+0, 2, 2, 1, 149760, 0x218f1751
+0, 3, 3, 1, 149760, 0x56951bef
+0, 4, 4, 1, 149760, 0x76aec81e
+0, 5, 5, 1, 149760, 0x20df61ac
+0, 6, 6, 1, 149760, 0x2eacf616
+0, 7, 7, 1, 149760, 0x06322ce2
+0, 8, 8, 1, 149760, 0xf14aa104
diff --git a/tests/ref/fate/hevc-conformance-LS_B_ORANGE_3 b/tests/ref/fate/hevc-conformance-LS_B_ORANGE_3
new file mode 100644
index 0000000000..34dc379c56
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-LS_B_ORANGE_3
@@ -0,0 +1,26 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x25267761
+0, 1, 1, 1, 599040, 0x4b4b6846
+0, 2, 2, 1, 599040, 0x78e251e8
+0, 3, 3, 1, 599040, 0xd5b261b0
+0, 4, 4, 1, 599040, 0x2c4cf4e1
+0, 5, 5, 1, 599040, 0x67dc648f
+0, 6, 6, 1, 599040, 0x3c43bffc
+0, 7, 7, 1, 599040, 0x43dca917
+0, 8, 8, 1, 599040, 0x86c9915e
+0, 9, 9, 1, 599040, 0xcfc4f95c
+0, 10, 10, 1, 599040, 0x1ad40bab
+0, 11, 11, 1, 599040, 0x88b5419e
+0, 12, 12, 1, 599040, 0x94e89a06
+0, 13, 13, 1, 599040, 0x3c68f4a6
+0, 14, 14, 1, 599040, 0xc573ac93
+0, 15, 15, 1, 599040, 0x3c401779
+0, 16, 16, 1, 599040, 0x33358319
+0, 17, 17, 1, 599040, 0xbecb022e
+0, 18, 18, 1, 599040, 0x824ca6c1
+0, 19, 19, 1, 599040, 0x9d13a2b8
+0, 20, 20, 1, 599040, 0xbdd4b44b
+0, 21, 21, 1, 599040, 0x7e43e7e9
+0, 22, 22, 1, 599040, 0x88c39a97
+0, 23, 23, 1, 599040, 0xe0462f05
+0, 24, 24, 1, 599040, 0xc5651fd1
diff --git a/tests/ref/fate/hevc-conformance-MAXBINS_A_TI_4 b/tests/ref/fate/hevc-conformance-MAXBINS_A_TI_4
new file mode 100644
index 0000000000..9110cf6e6f
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-MAXBINS_A_TI_4
@@ -0,0 +1,3 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x9cad90f9
+0, 1, 1, 1, 149760, 0x7deeab1c
diff --git a/tests/ref/fate/hevc-conformance-MAXBINS_B_TI_4 b/tests/ref/fate/hevc-conformance-MAXBINS_B_TI_4
new file mode 100644
index 0000000000..5cad961c19
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-MAXBINS_B_TI_4
@@ -0,0 +1,4 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x211e8487
+0, 1, 1, 1, 149760, 0xa53b13d8
+0, 2, 2, 1, 149760, 0xb63cc103
diff --git a/tests/ref/fate/hevc-conformance-MAXBINS_C_TI_4 b/tests/ref/fate/hevc-conformance-MAXBINS_C_TI_4
new file mode 100644
index 0000000000..2eb38437f0
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-MAXBINS_C_TI_4
@@ -0,0 +1,4 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0xa8d7adfa
+0, 1, 1, 1, 149760, 0x76d1ddfe
+0, 2, 2, 1, 149760, 0x56599cae
diff --git a/tests/ref/fate/hevc-conformance-MERGE_A_TI_3 b/tests/ref/fate/hevc-conformance-MERGE_A_TI_3
new file mode 100644
index 0000000000..0ab6acc2e5
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-MERGE_A_TI_3
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x8edb27d7
+0, 1, 1, 1, 149760, 0x16eb25a8
+0, 2, 2, 1, 149760, 0xcfff29c8
+0, 3, 3, 1, 149760, 0x4c9721e9
+0, 4, 4, 1, 149760, 0xee52e28d
+0, 5, 5, 1, 149760, 0xc25d9657
+0, 6, 6, 1, 149760, 0x0f644c82
+0, 7, 7, 1, 149760, 0x6f57aea1
diff --git a/tests/ref/fate/hevc-conformance-MERGE_B_TI_3 b/tests/ref/fate/hevc-conformance-MERGE_B_TI_3
new file mode 100644
index 0000000000..2f9395fbf5
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-MERGE_B_TI_3
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x8edb27d7
+0, 1, 1, 1, 149760, 0xb5932505
+0, 2, 2, 1, 149760, 0xa5b20e66
+0, 3, 3, 1, 149760, 0x0d9f17cb
+0, 4, 4, 1, 149760, 0xf2b1dc80
+0, 5, 5, 1, 149760, 0xab8c8272
+0, 6, 6, 1, 149760, 0x50662cf4
+0, 7, 7, 1, 149760, 0x83cc8d5f
diff --git a/tests/ref/fate/hevc-conformance-MERGE_C_TI_3 b/tests/ref/fate/hevc-conformance-MERGE_C_TI_3
new file mode 100644
index 0000000000..bcc5a1a3e2
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-MERGE_C_TI_3
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x8edb27d7
+0, 1, 1, 1, 149760, 0x88cb1216
+0, 2, 2, 1, 149760, 0x6d1024da
+0, 3, 3, 1, 149760, 0x90b13981
+0, 4, 4, 1, 149760, 0x4296ed51
+0, 5, 5, 1, 149760, 0x4da5926f
+0, 6, 6, 1, 149760, 0xa74b4368
+0, 7, 7, 1, 149760, 0x518fb0fc
diff --git a/tests/ref/fate/hevc-conformance-MERGE_D_TI_3 b/tests/ref/fate/hevc-conformance-MERGE_D_TI_3
new file mode 100644
index 0000000000..7b4df26d5d
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-MERGE_D_TI_3
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x8edb27d7
+0, 1, 1, 1, 149760, 0x3220183c
+0, 2, 2, 1, 149760, 0x43a21acc
+0, 3, 3, 1, 149760, 0x7bde17f9
+0, 4, 4, 1, 149760, 0x98a1cece
+0, 5, 5, 1, 149760, 0x3d7b64b9
+0, 6, 6, 1, 149760, 0xd9311172
+0, 7, 7, 1, 149760, 0x90d192a3
diff --git a/tests/ref/fate/hevc-conformance-MERGE_E_TI_3 b/tests/ref/fate/hevc-conformance-MERGE_E_TI_3
new file mode 100644
index 0000000000..8491172ca8
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-MERGE_E_TI_3
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x8edb27d7
+0, 1, 1, 1, 149760, 0x187419b5
+0, 2, 2, 1, 149760, 0x61100980
+0, 3, 3, 1, 149760, 0xd799123e
+0, 4, 4, 1, 149760, 0x9011c8d0
+0, 5, 5, 1, 149760, 0xeafe7d99
+0, 6, 6, 1, 149760, 0x94f32245
+0, 7, 7, 1, 149760, 0x8185910a
diff --git a/tests/ref/fate/hevc-conformance-MERGE_F_MTK_4 b/tests/ref/fate/hevc-conformance-MERGE_F_MTK_4
new file mode 100644
index 0000000000..34a09795db
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-MERGE_F_MTK_4
@@ -0,0 +1,42 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0xcfffa013
+0, 1, 1, 1, 149760, 0xec800e71
+0, 2, 2, 1, 149760, 0x9fb014c7
+0, 3, 3, 1, 149760, 0xfd7a48a8
+0, 4, 4, 1, 149760, 0x99816bb5
+0, 5, 5, 1, 149760, 0x8645acaa
+0, 6, 6, 1, 149760, 0xd2a8e04b
+0, 7, 7, 1, 149760, 0xf96f038d
+0, 8, 8, 1, 149760, 0x82c62409
+0, 9, 9, 1, 149760, 0x64907b29
+0, 10, 10, 1, 149760, 0xfe29990e
+0, 11, 11, 1, 149760, 0xce2dc52d
+0, 12, 12, 1, 149760, 0x164fb2c5
+0, 13, 13, 1, 149760, 0xbcf8ca2d
+0, 14, 14, 1, 149760, 0xe59dc9bc
+0, 15, 15, 1, 149760, 0x2ab10400
+0, 16, 16, 1, 149760, 0xef111c81
+0, 17, 17, 1, 149760, 0xd08466b1
+0, 18, 18, 1, 149760, 0x6d356ff0
+0, 19, 19, 1, 149760, 0x16a59175
+0, 20, 20, 1, 149760, 0xd7888866
+0, 21, 21, 1, 149760, 0x2b22b943
+0, 22, 22, 1, 149760, 0x3b4fc3fe
+0, 23, 23, 1, 149760, 0x4ec8ee47
+0, 24, 24, 1, 149760, 0x0126f17b
+0, 25, 25, 1, 149760, 0x1176ad14
+0, 26, 26, 1, 149760, 0x2d4da75f
+0, 27, 27, 1, 149760, 0x144bb9e4
+0, 28, 28, 1, 149760, 0x5176a21b
+0, 29, 29, 1, 149760, 0x5e3fe673
+0, 30, 30, 1, 149760, 0xa533db65
+0, 31, 31, 1, 149760, 0x3009f3f8
+0, 32, 32, 1, 149760, 0xd4437e12
+0, 33, 33, 1, 149760, 0x5b03cd64
+0, 34, 34, 1, 149760, 0xdc40d49b
+0, 35, 35, 1, 149760, 0xf8cef0f6
+0, 36, 36, 1, 149760, 0x241be1b7
+0, 37, 37, 1, 149760, 0x23830404
+0, 38, 38, 1, 149760, 0x6ef7087e
+0, 39, 39, 1, 149760, 0xaf351e5b
+0, 40, 40, 1, 149760, 0x4cf40a64
diff --git a/tests/ref/fate/hevc-conformance-MERGE_G_HHI_4 b/tests/ref/fate/hevc-conformance-MERGE_G_HHI_4
new file mode 100644
index 0000000000..2e88350fe0
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-MERGE_G_HHI_4
@@ -0,0 +1,3 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x65433cfe
+0, 1, 1, 1, 599040, 0x9309e2c5
diff --git a/tests/ref/fate/hevc-conformance-MVCLIP_A_qualcomm_3 b/tests/ref/fate/hevc-conformance-MVCLIP_A_qualcomm_3
new file mode 100644
index 0000000000..675622169f
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-MVCLIP_A_qualcomm_3
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0xa5b11720
+0, 1, 1, 1, 149760, 0x42e52c6e
+0, 2, 2, 1, 149760, 0x27b15a30
+0, 3, 3, 1, 149760, 0x4d759826
+0, 4, 4, 1, 149760, 0xfb6daf0c
diff --git a/tests/ref/fate/hevc-conformance-MVDL1ZERO_A_docomo_3 b/tests/ref/fate/hevc-conformance-MVDL1ZERO_A_docomo_3
new file mode 100644
index 0000000000..2019db2621
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-MVDL1ZERO_A_docomo_3
@@ -0,0 +1,501 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x9b27dc7d
+0, 1, 1, 1, 599040, 0x796cdd26
+0, 2, 2, 1, 599040, 0xd3c9dca9
+0, 3, 3, 1, 599040, 0xf7b2876a
+0, 4, 4, 1, 599040, 0x296701c8
+0, 5, 5, 1, 599040, 0xf9a80f9a
+0, 6, 6, 1, 599040, 0x7cbe9656
+0, 7, 7, 1, 599040, 0x17093be8
+0, 8, 8, 1, 599040, 0x2a0e196e
+0, 9, 9, 1, 599040, 0x3492c809
+0, 10, 10, 1, 599040, 0xbc5523f3
+0, 11, 11, 1, 599040, 0xf618ff66
+0, 12, 12, 1, 599040, 0x07060c9d
+0, 13, 13, 1, 599040, 0xd5a8fb5d
+0, 14, 14, 1, 599040, 0x780e18b9
+0, 15, 15, 1, 599040, 0xff553fbd
+0, 16, 16, 1, 599040, 0x715cce2d
+0, 17, 17, 1, 599040, 0x8a834c19
+0, 18, 18, 1, 599040, 0xbc4a0c21
+0, 19, 19, 1, 599040, 0xc85fed31
+0, 20, 20, 1, 599040, 0xcbb97b56
+0, 21, 21, 1, 599040, 0x518111dd
+0, 22, 22, 1, 599040, 0x5a680f48
+0, 23, 23, 1, 599040, 0x02956f28
+0, 24, 24, 1, 599040, 0x10845ef6
+0, 25, 25, 1, 599040, 0x2ad3c6d7
+0, 26, 26, 1, 599040, 0xa9f725e9
+0, 27, 27, 1, 599040, 0xb835f470
+0, 28, 28, 1, 599040, 0x693bf01d
+0, 29, 29, 1, 599040, 0x50bf3b77
+0, 30, 30, 1, 599040, 0x304873e3
+0, 31, 31, 1, 599040, 0x707a6af9
+0, 32, 32, 1, 599040, 0x50bf2017
+0, 33, 33, 1, 599040, 0x2c583f11
+0, 34, 34, 1, 599040, 0xe738080b
+0, 35, 35, 1, 599040, 0x549984e6
+0, 36, 36, 1, 599040, 0xa22e8a96
+0, 37, 37, 1, 599040, 0xc9f222cd
+0, 38, 38, 1, 599040, 0x28d944bc
+0, 39, 39, 1, 599040, 0x2e366350
+0, 40, 40, 1, 599040, 0xbcc2eb12
+0, 41, 41, 1, 599040, 0x074d3fdd
+0, 42, 42, 1, 599040, 0x0e0bd820
+0, 43, 43, 1, 599040, 0xf078af68
+0, 44, 44, 1, 599040, 0xaeed7222
+0, 45, 45, 1, 599040, 0xb66100cd
+0, 46, 46, 1, 599040, 0x848cd1c5
+0, 47, 47, 1, 599040, 0xa6bf930c
+0, 48, 48, 1, 599040, 0x32501b56
+0, 49, 49, 1, 599040, 0x2498d992
+0, 50, 50, 1, 599040, 0x03481b78
+0, 51, 51, 1, 599040, 0x551d7c11
+0, 52, 52, 1, 599040, 0xfbdc629d
+0, 53, 53, 1, 599040, 0x1f438ded
+0, 54, 54, 1, 599040, 0x4d25ce07
+0, 55, 55, 1, 599040, 0x4fe8f8aa
+0, 56, 56, 1, 599040, 0x5d65d790
+0, 57, 57, 1, 599040, 0xfcba4efb
+0, 58, 58, 1, 599040, 0x50b483a3
+0, 59, 59, 1, 599040, 0x12fd4b31
+0, 60, 60, 1, 599040, 0x71014417
+0, 61, 61, 1, 599040, 0xeed88bc4
+0, 62, 62, 1, 599040, 0xb2d4710d
+0, 63, 63, 1, 599040, 0xbe4dfe69
+0, 64, 64, 1, 599040, 0x9b7844b6
+0, 65, 65, 1, 599040, 0xe2e691bf
+0, 66, 66, 1, 599040, 0xb24200dc
+0, 67, 67, 1, 599040, 0xf29cb5bf
+0, 68, 68, 1, 599040, 0x90350310
+0, 69, 69, 1, 599040, 0xbe1cc3c1
+0, 70, 70, 1, 599040, 0xaae58f97
+0, 71, 71, 1, 599040, 0x0d5cb388
+0, 72, 72, 1, 599040, 0x0fa734e3
+0, 73, 73, 1, 599040, 0xaa41543a
+0, 74, 74, 1, 599040, 0x3e6e1d4b
+0, 75, 75, 1, 599040, 0x6426e543
+0, 76, 76, 1, 599040, 0xe65ad058
+0, 77, 77, 1, 599040, 0xf7f1744d
+0, 78, 78, 1, 599040, 0xa8fa32da
+0, 79, 79, 1, 599040, 0xa2c80e49
+0, 80, 80, 1, 599040, 0x22b972e9
+0, 81, 81, 1, 599040, 0x2462823b
+0, 82, 82, 1, 599040, 0xa7fd0432
+0, 83, 83, 1, 599040, 0x38d22ea4
+0, 84, 84, 1, 599040, 0xb472f4d6
+0, 85, 85, 1, 599040, 0x36c107a0
+0, 86, 86, 1, 599040, 0x9abb5ce0
+0, 87, 87, 1, 599040, 0x74b2861c
+0, 88, 88, 1, 599040, 0xba3d04d3
+0, 89, 89, 1, 599040, 0x65132373
+0, 90, 90, 1, 599040, 0x63585754
+0, 91, 91, 1, 599040, 0xa6c0f4d4
+0, 92, 92, 1, 599040, 0xc2cf9c33
+0, 93, 93, 1, 599040, 0xdf6d16af
+0, 94, 94, 1, 599040, 0x94566b11
+0, 95, 95, 1, 599040, 0x8070818d
+0, 96, 96, 1, 599040, 0x4acc92c1
+0, 97, 97, 1, 599040, 0xb520033c
+0, 98, 98, 1, 599040, 0xc82e7058
+0, 99, 99, 1, 599040, 0xb23367bc
+0, 100, 100, 1, 599040, 0x1fa25586
+0, 101, 101, 1, 599040, 0x2b2abbb8
+0, 102, 102, 1, 599040, 0xb9b74546
+0, 103, 103, 1, 599040, 0x4c4a2ef9
+0, 104, 104, 1, 599040, 0x5eb54025
+0, 105, 105, 1, 599040, 0x1e1cbcc6
+0, 106, 106, 1, 599040, 0xc3bf1017
+0, 107, 107, 1, 599040, 0xdbda1761
+0, 108, 108, 1, 599040, 0x19241b7c
+0, 109, 109, 1, 599040, 0x791dda93
+0, 110, 110, 1, 599040, 0x444a152f
+0, 111, 111, 1, 599040, 0x0b69d08b
+0, 112, 112, 1, 599040, 0xd024abae
+0, 113, 113, 1, 599040, 0x724e0d78
+0, 114, 114, 1, 599040, 0x648f9c09
+0, 115, 115, 1, 599040, 0xee114298
+0, 116, 116, 1, 599040, 0x92d1e98f
+0, 117, 117, 1, 599040, 0xb623cb10
+0, 118, 118, 1, 599040, 0xf8e9b414
+0, 119, 119, 1, 599040, 0xe47a0981
+0, 120, 120, 1, 599040, 0xdc78d28d
+0, 121, 121, 1, 599040, 0xd36d9ad5
+0, 122, 122, 1, 599040, 0xe7bea48e
+0, 123, 123, 1, 599040, 0x0dd39d1d
+0, 124, 124, 1, 599040, 0xb66a18ee
+0, 125, 125, 1, 599040, 0x6085d265
+0, 126, 126, 1, 599040, 0xb9ef646b
+0, 127, 127, 1, 599040, 0x544140a4
+0, 128, 128, 1, 599040, 0x9c546327
+0, 129, 129, 1, 599040, 0xd74d4a8e
+0, 130, 130, 1, 599040, 0x98a504e0
+0, 131, 131, 1, 599040, 0x88849351
+0, 132, 132, 1, 599040, 0xa519f6c7
+0, 133, 133, 1, 599040, 0xc548df7f
+0, 134, 134, 1, 599040, 0x8e690444
+0, 135, 135, 1, 599040, 0x5edbdced
+0, 136, 136, 1, 599040, 0xd3e189c2
+0, 137, 137, 1, 599040, 0x286d44a2
+0, 138, 138, 1, 599040, 0xe946f83e
+0, 139, 139, 1, 599040, 0xdc94ae6d
+0, 140, 140, 1, 599040, 0x5d4e95dc
+0, 141, 141, 1, 599040, 0x2c03280f
+0, 142, 142, 1, 599040, 0x368c6b23
+0, 143, 143, 1, 599040, 0x2fc5d2ee
+0, 144, 144, 1, 599040, 0x85e8f3ec
+0, 145, 145, 1, 599040, 0xd1fdcf69
+0, 146, 146, 1, 599040, 0xa663cf5a
+0, 147, 147, 1, 599040, 0x5d644057
+0, 148, 148, 1, 599040, 0xfdd039e0
+0, 149, 149, 1, 599040, 0x9cdb6369
+0, 150, 150, 1, 599040, 0x3c4ca86b
+0, 151, 151, 1, 599040, 0x27ac4d91
+0, 152, 152, 1, 599040, 0x3f13a8bb
+0, 153, 153, 1, 599040, 0xbcd984c5
+0, 154, 154, 1, 599040, 0xa55eb124
+0, 155, 155, 1, 599040, 0xb09c4a47
+0, 156, 156, 1, 599040, 0x0da7fd48
+0, 157, 157, 1, 599040, 0xa01dc374
+0, 158, 158, 1, 599040, 0xe428b3b0
+0, 159, 159, 1, 599040, 0xff3fcc43
+0, 160, 160, 1, 599040, 0xbc5491c1
+0, 161, 161, 1, 599040, 0x34e51a66
+0, 162, 162, 1, 599040, 0xb63f5acd
+0, 163, 163, 1, 599040, 0xe12f417d
+0, 164, 164, 1, 599040, 0x789bb191
+0, 165, 165, 1, 599040, 0x5fdeaa57
+0, 166, 166, 1, 599040, 0x65034250
+0, 167, 167, 1, 599040, 0xab577632
+0, 168, 168, 1, 599040, 0x1338c7eb
+0, 169, 169, 1, 599040, 0x5a84b078
+0, 170, 170, 1, 599040, 0x9f3fd6c2
+0, 171, 171, 1, 599040, 0x23cd7f3f
+0, 172, 172, 1, 599040, 0x43701c5c
+0, 173, 173, 1, 599040, 0x72eff5aa
+0, 174, 174, 1, 599040, 0x858a7280
+0, 175, 175, 1, 599040, 0x5d1da2b1
+0, 176, 176, 1, 599040, 0x2b6fae7b
+0, 177, 177, 1, 599040, 0x3d96cd3f
+0, 178, 178, 1, 599040, 0x5d6d48e5
+0, 179, 179, 1, 599040, 0x829023ee
+0, 180, 180, 1, 599040, 0xeafa5127
+0, 181, 181, 1, 599040, 0x1adf2830
+0, 182, 182, 1, 599040, 0x35f07617
+0, 183, 183, 1, 599040, 0x7aa691e2
+0, 184, 184, 1, 599040, 0xd11b3ed2
+0, 185, 185, 1, 599040, 0x69c12b52
+0, 186, 186, 1, 599040, 0x34fb8557
+0, 187, 187, 1, 599040, 0xd06c84ff
+0, 188, 188, 1, 599040, 0x26338170
+0, 189, 189, 1, 599040, 0x3d24f1e9
+0, 190, 190, 1, 599040, 0x28a99f46
+0, 191, 191, 1, 599040, 0x22421eea
+0, 192, 192, 1, 599040, 0xc53b57eb
+0, 193, 193, 1, 599040, 0x752433b8
+0, 194, 194, 1, 599040, 0x6332eaaa
+0, 195, 195, 1, 599040, 0x559d273f
+0, 196, 196, 1, 599040, 0xe9811056
+0, 197, 197, 1, 599040, 0x61acf706
+0, 198, 198, 1, 599040, 0x3893c930
+0, 199, 199, 1, 599040, 0x5d6d3f58
+0, 200, 200, 1, 599040, 0xb645df35
+0, 201, 201, 1, 599040, 0x6af7f2eb
+0, 202, 202, 1, 599040, 0xeb456cc5
+0, 203, 203, 1, 599040, 0x32abac64
+0, 204, 204, 1, 599040, 0x1327da04
+0, 205, 205, 1, 599040, 0x73ca53b9
+0, 206, 206, 1, 599040, 0xe940d23e
+0, 207, 207, 1, 599040, 0xc6fdf611
+0, 208, 208, 1, 599040, 0xc72e4309
+0, 209, 209, 1, 599040, 0xecab46a1
+0, 210, 210, 1, 599040, 0xb248b91e
+0, 211, 211, 1, 599040, 0xe9aeb62c
+0, 212, 212, 1, 599040, 0x5827cf39
+0, 213, 213, 1, 599040, 0x763a74d6
+0, 214, 214, 1, 599040, 0x232e397c
+0, 215, 215, 1, 599040, 0xe2ef8213
+0, 216, 216, 1, 599040, 0xddcbe94f
+0, 217, 217, 1, 599040, 0xe8a8919a
+0, 218, 218, 1, 599040, 0x5860fae0
+0, 219, 219, 1, 599040, 0x525b1a95
+0, 220, 220, 1, 599040, 0x50e36027
+0, 221, 221, 1, 599040, 0xd05ee599
+0, 222, 222, 1, 599040, 0xc1e7b87b
+0, 223, 223, 1, 599040, 0x2edfa52c
+0, 224, 224, 1, 599040, 0xca147244
+0, 225, 225, 1, 599040, 0x9e0a77b7
+0, 226, 226, 1, 599040, 0x88ac8035
+0, 227, 227, 1, 599040, 0xe34c890a
+0, 228, 228, 1, 599040, 0xbe4feadd
+0, 229, 229, 1, 599040, 0xd5a7503d
+0, 230, 230, 1, 599040, 0xae18e82d
+0, 231, 231, 1, 599040, 0x66cf3881
+0, 232, 232, 1, 599040, 0x9f08a65c
+0, 233, 233, 1, 599040, 0xeb3e1a58
+0, 234, 234, 1, 599040, 0x2b83004a
+0, 235, 235, 1, 599040, 0x65be32c9
+0, 236, 236, 1, 599040, 0x231586fa
+0, 237, 237, 1, 599040, 0x7e5724fb
+0, 238, 238, 1, 599040, 0xfebe47b6
+0, 239, 239, 1, 599040, 0xfeeb9a38
+0, 240, 240, 1, 599040, 0x44e90683
+0, 241, 241, 1, 599040, 0x546d03f4
+0, 242, 242, 1, 599040, 0x211a534e
+0, 243, 243, 1, 599040, 0x12d2a800
+0, 244, 244, 1, 599040, 0xa6022d19
+0, 245, 245, 1, 599040, 0x6bedd152
+0, 246, 246, 1, 599040, 0x6f7de80b
+0, 247, 247, 1, 599040, 0x778f0771
+0, 248, 248, 1, 599040, 0xe63e4241
+0, 249, 249, 1, 599040, 0xa0298023
+0, 250, 250, 1, 599040, 0xc4c5b8b2
+0, 251, 251, 1, 599040, 0xcca64f1c
+0, 252, 252, 1, 599040, 0xfec4d1a0
+0, 253, 253, 1, 599040, 0xcb7c4b80
+0, 254, 254, 1, 599040, 0x0795f7b7
+0, 255, 255, 1, 599040, 0x5f45706c
+0, 256, 256, 1, 599040, 0x927f04d8
+0, 257, 257, 1, 599040, 0x4c201f08
+0, 258, 258, 1, 599040, 0xdb447b37
+0, 259, 259, 1, 599040, 0xae33725e
+0, 260, 260, 1, 599040, 0x474281af
+0, 261, 261, 1, 599040, 0xe198764e
+0, 262, 262, 1, 599040, 0xb226916f
+0, 263, 263, 1, 599040, 0x8a7156a5
+0, 264, 264, 1, 599040, 0x5fe639ab
+0, 265, 265, 1, 599040, 0xaa62b79e
+0, 266, 266, 1, 599040, 0x94618e23
+0, 267, 267, 1, 599040, 0x47ba12f0
+0, 268, 268, 1, 599040, 0xd33c215e
+0, 269, 269, 1, 599040, 0x581e0537
+0, 270, 270, 1, 599040, 0x19dce924
+0, 271, 271, 1, 599040, 0x95329055
+0, 272, 272, 1, 599040, 0x6d2eb80f
+0, 273, 273, 1, 599040, 0x11d5e940
+0, 274, 274, 1, 599040, 0x30aec978
+0, 275, 275, 1, 599040, 0xd742df04
+0, 276, 276, 1, 599040, 0xef9ef4ae
+0, 277, 277, 1, 599040, 0x51d8fb34
+0, 278, 278, 1, 599040, 0xbb6e070a
+0, 279, 279, 1, 599040, 0x785a9813
+0, 280, 280, 1, 599040, 0xb94d8771
+0, 281, 281, 1, 599040, 0x8bd2fe53
+0, 282, 282, 1, 599040, 0x6b600868
+0, 283, 283, 1, 599040, 0x4b1d6a6f
+0, 284, 284, 1, 599040, 0x974f6365
+0, 285, 285, 1, 599040, 0xebefa21d
+0, 286, 286, 1, 599040, 0x8ce62dad
+0, 287, 287, 1, 599040, 0x7a6e6e1b
+0, 288, 288, 1, 599040, 0x3746d218
+0, 289, 289, 1, 599040, 0xc1aa50d9
+0, 290, 290, 1, 599040, 0xda60f976
+0, 291, 291, 1, 599040, 0x98274aa8
+0, 292, 292, 1, 599040, 0xdf09c760
+0, 293, 293, 1, 599040, 0xeb485b8f
+0, 294, 294, 1, 599040, 0xad76453b
+0, 295, 295, 1, 599040, 0x6eaee19a
+0, 296, 296, 1, 599040, 0x464e9cc8
+0, 297, 297, 1, 599040, 0xccd0bd12
+0, 298, 298, 1, 599040, 0xc7345e2b
+0, 299, 299, 1, 599040, 0xe51dd0a9
+0, 300, 300, 1, 599040, 0x11b9586b
+0, 301, 301, 1, 599040, 0xcb2c85b8
+0, 302, 302, 1, 599040, 0x024ce62d
+0, 303, 303, 1, 599040, 0x8c1da4eb
+0, 304, 304, 1, 599040, 0x9924ed3f
+0, 305, 305, 1, 599040, 0xc8f89a61
+0, 306, 306, 1, 599040, 0x52db38f2
+0, 307, 307, 1, 599040, 0xf1baca44
+0, 308, 308, 1, 599040, 0x8d1b322e
+0, 309, 309, 1, 599040, 0x5e8a990e
+0, 310, 310, 1, 599040, 0xfe281b7c
+0, 311, 311, 1, 599040, 0x065ced47
+0, 312, 312, 1, 599040, 0x962087db
+0, 313, 313, 1, 599040, 0x2e932805
+0, 314, 314, 1, 599040, 0x9a4b4946
+0, 315, 315, 1, 599040, 0x504bea02
+0, 316, 316, 1, 599040, 0xff97cf64
+0, 317, 317, 1, 599040, 0xcca9a61c
+0, 318, 318, 1, 599040, 0x1ab70ff5
+0, 319, 319, 1, 599040, 0x99ed2919
+0, 320, 320, 1, 599040, 0xa02f40d2
+0, 321, 321, 1, 599040, 0x8a1d83c2
+0, 322, 322, 1, 599040, 0xaacec6c2
+0, 323, 323, 1, 599040, 0x4f6fe261
+0, 324, 324, 1, 599040, 0x1dde4745
+0, 325, 325, 1, 599040, 0xa17bdf95
+0, 326, 326, 1, 599040, 0xcb5b56b3
+0, 327, 327, 1, 599040, 0x7088cdd4
+0, 328, 328, 1, 599040, 0xca02bafb
+0, 329, 329, 1, 599040, 0x3c5ca543
+0, 330, 330, 1, 599040, 0x4ab80de3
+0, 331, 331, 1, 599040, 0x75edb57b
+0, 332, 332, 1, 599040, 0x772ef858
+0, 333, 333, 1, 599040, 0xd7fa8d9f
+0, 334, 334, 1, 599040, 0xbc515acc
+0, 335, 335, 1, 599040, 0xb1b66d54
+0, 336, 336, 1, 599040, 0x40290b6a
+0, 337, 337, 1, 599040, 0xd1ff952e
+0, 338, 338, 1, 599040, 0x5641abf7
+0, 339, 339, 1, 599040, 0x3411e0fd
+0, 340, 340, 1, 599040, 0xed4abbaf
+0, 341, 341, 1, 599040, 0x34d40ea4
+0, 342, 342, 1, 599040, 0xa9983db0
+0, 343, 343, 1, 599040, 0x58dc8d9a
+0, 344, 344, 1, 599040, 0x24a989a2
+0, 345, 345, 1, 599040, 0xc9d1dcdd
+0, 346, 346, 1, 599040, 0x6df3031f
+0, 347, 347, 1, 599040, 0xa67339d9
+0, 348, 348, 1, 599040, 0x545b3ed1
+0, 349, 349, 1, 599040, 0xb4d98187
+0, 350, 350, 1, 599040, 0xdd2f8588
+0, 351, 351, 1, 599040, 0x2aee5737
+0, 352, 352, 1, 599040, 0xe7c90c87
+0, 353, 353, 1, 599040, 0xb547f0bc
+0, 354, 354, 1, 599040, 0x69cc594a
+0, 355, 355, 1, 599040, 0xa01adf9c
+0, 356, 356, 1, 599040, 0x77021bc9
+0, 357, 357, 1, 599040, 0x1cd7e74b
+0, 358, 358, 1, 599040, 0x4d284292
+0, 359, 359, 1, 599040, 0xe57fd832
+0, 360, 360, 1, 599040, 0x76992cf7
+0, 361, 361, 1, 599040, 0x88156158
+0, 362, 362, 1, 599040, 0xc872db18
+0, 363, 363, 1, 599040, 0xc0487bf4
+0, 364, 364, 1, 599040, 0x9f3aab7b
+0, 365, 365, 1, 599040, 0xfddd1c86
+0, 366, 366, 1, 599040, 0x2a991cff
+0, 367, 367, 1, 599040, 0x97e3623f
+0, 368, 368, 1, 599040, 0x69e5900a
+0, 369, 369, 1, 599040, 0x7a5167ec
+0, 370, 370, 1, 599040, 0x74bf045a
+0, 371, 371, 1, 599040, 0x5b2c1554
+0, 372, 372, 1, 599040, 0xc7e9c2e1
+0, 373, 373, 1, 599040, 0x9d76e364
+0, 374, 374, 1, 599040, 0x2c365ed8
+0, 375, 375, 1, 599040, 0x3b7bb213
+0, 376, 376, 1, 599040, 0x00a34fa9
+0, 377, 377, 1, 599040, 0x0a82f6b8
+0, 378, 378, 1, 599040, 0x34f8cf6b
+0, 379, 379, 1, 599040, 0x283a256f
+0, 380, 380, 1, 599040, 0x89dfe63a
+0, 381, 381, 1, 599040, 0x757c7bc3
+0, 382, 382, 1, 599040, 0xbcbf4f4a
+0, 383, 383, 1, 599040, 0x45fe93d3
+0, 384, 384, 1, 599040, 0xa93c4724
+0, 385, 385, 1, 599040, 0x25862ef7
+0, 386, 386, 1, 599040, 0xff94b8eb
+0, 387, 387, 1, 599040, 0x9d350c21
+0, 388, 388, 1, 599040, 0x90d6cce5
+0, 389, 389, 1, 599040, 0x5c3e51c8
+0, 390, 390, 1, 599040, 0x8f966096
+0, 391, 391, 1, 599040, 0xddc8ad04
+0, 392, 392, 1, 599040, 0xb64a170a
+0, 393, 393, 1, 599040, 0xfb8fa0c6
+0, 394, 394, 1, 599040, 0x99fa48dc
+0, 395, 395, 1, 599040, 0xd62e9344
+0, 396, 396, 1, 599040, 0x55ff8d51
+0, 397, 397, 1, 599040, 0x1e9809bd
+0, 398, 398, 1, 599040, 0x00f0122d
+0, 399, 399, 1, 599040, 0x5af2911e
+0, 400, 400, 1, 599040, 0xbfcd6c1d
+0, 401, 401, 1, 599040, 0xd809c652
+0, 402, 402, 1, 599040, 0xee36969a
+0, 403, 403, 1, 599040, 0x9c0ed842
+0, 404, 404, 1, 599040, 0x4e07a2b0
+0, 405, 405, 1, 599040, 0xa5b3202b
+0, 406, 406, 1, 599040, 0x4c1add0e
+0, 407, 407, 1, 599040, 0x489b2fa9
+0, 408, 408, 1, 599040, 0xa088c512
+0, 409, 409, 1, 599040, 0x4f6121ac
+0, 410, 410, 1, 599040, 0x1959f62b
+0, 411, 411, 1, 599040, 0x2d51a5c4
+0, 412, 412, 1, 599040, 0x95e70f4f
+0, 413, 413, 1, 599040, 0x4eab3c11
+0, 414, 414, 1, 599040, 0xf2c2b9b5
+0, 415, 415, 1, 599040, 0x62f50ffe
+0, 416, 416, 1, 599040, 0x2104d2f8
+0, 417, 417, 1, 599040, 0x42a8b39f
+0, 418, 418, 1, 599040, 0x857f1fe6
+0, 419, 419, 1, 599040, 0x6ac5190d
+0, 420, 420, 1, 599040, 0x228d7a0b
+0, 421, 421, 1, 599040, 0x0042ef94
+0, 422, 422, 1, 599040, 0x4a83e001
+0, 423, 423, 1, 599040, 0xc43fec08
+0, 424, 424, 1, 599040, 0x5e029548
+0, 425, 425, 1, 599040, 0xbc89dea9
+0, 426, 426, 1, 599040, 0x6c5d88cf
+0, 427, 427, 1, 599040, 0x3a5dabfb
+0, 428, 428, 1, 599040, 0x876e1e54
+0, 429, 429, 1, 599040, 0x55715da8
+0, 430, 430, 1, 599040, 0x199c039b
+0, 431, 431, 1, 599040, 0x0286f71e
+0, 432, 432, 1, 599040, 0xf9a244a1
+0, 433, 433, 1, 599040, 0xf5655275
+0, 434, 434, 1, 599040, 0xde3dba0c
+0, 435, 435, 1, 599040, 0x617f8963
+0, 436, 436, 1, 599040, 0x0fe0e661
+0, 437, 437, 1, 599040, 0x8ba905ea
+0, 438, 438, 1, 599040, 0xb2812b34
+0, 439, 439, 1, 599040, 0x32d61c8b
+0, 440, 440, 1, 599040, 0xb7603400
+0, 441, 441, 1, 599040, 0x232c278f
+0, 442, 442, 1, 599040, 0xdf61c27d
+0, 443, 443, 1, 599040, 0xa053482f
+0, 444, 444, 1, 599040, 0x109724d3
+0, 445, 445, 1, 599040, 0x49d36800
+0, 446, 446, 1, 599040, 0x4a103bff
+0, 447, 447, 1, 599040, 0x7cd3813b
+0, 448, 448, 1, 599040, 0xeef677d7
+0, 449, 449, 1, 599040, 0xc5ad66c2
+0, 450, 450, 1, 599040, 0xa06e472d
+0, 451, 451, 1, 599040, 0x53182cc5
+0, 452, 452, 1, 599040, 0x9e62bfc0
+0, 453, 453, 1, 599040, 0x93515843
+0, 454, 454, 1, 599040, 0x5e0778d7
+0, 455, 455, 1, 599040, 0x957a6d55
+0, 456, 456, 1, 599040, 0x0bc26b3d
+0, 457, 457, 1, 599040, 0x5e0bc514
+0, 458, 458, 1, 599040, 0x7f717a98
+0, 459, 459, 1, 599040, 0x8497968c
+0, 460, 460, 1, 599040, 0x8fb527b8
+0, 461, 461, 1, 599040, 0x8580e487
+0, 462, 462, 1, 599040, 0x59b2d7cc
+0, 463, 463, 1, 599040, 0x5fbc38d7
+0, 464, 464, 1, 599040, 0xb1ba014e
+0, 465, 465, 1, 599040, 0x10481d8f
+0, 466, 466, 1, 599040, 0xd42e42e0
+0, 467, 467, 1, 599040, 0x14a361c1
+0, 468, 468, 1, 599040, 0x58378917
+0, 469, 469, 1, 599040, 0xaeb99a82
+0, 470, 470, 1, 599040, 0x5666ef55
+0, 471, 471, 1, 599040, 0xbd0ce495
+0, 472, 472, 1, 599040, 0xf13af36c
+0, 473, 473, 1, 599040, 0x55e8b101
+0, 474, 474, 1, 599040, 0x4e2966b4
+0, 475, 475, 1, 599040, 0xd973e873
+0, 476, 476, 1, 599040, 0x72d55685
+0, 477, 477, 1, 599040, 0x48eee8c2
+0, 478, 478, 1, 599040, 0x61291b38
+0, 479, 479, 1, 599040, 0x91f839f8
+0, 480, 480, 1, 599040, 0x0a4e9585
+0, 481, 481, 1, 599040, 0x02e0f1f0
+0, 482, 482, 1, 599040, 0xc104009c
+0, 483, 483, 1, 599040, 0x9417127e
+0, 484, 484, 1, 599040, 0x4630302e
+0, 485, 485, 1, 599040, 0x692141ea
+0, 486, 486, 1, 599040, 0x1ebed0bd
+0, 487, 487, 1, 599040, 0x362544a8
+0, 488, 488, 1, 599040, 0xd9cbef36
+0, 489, 489, 1, 599040, 0x54cda997
+0, 490, 490, 1, 599040, 0x79463ed1
+0, 491, 491, 1, 599040, 0xe95b66eb
+0, 492, 492, 1, 599040, 0x5bdaa63e
+0, 493, 493, 1, 599040, 0x72ced562
+0, 494, 494, 1, 599040, 0xcb2bdc53
+0, 495, 495, 1, 599040, 0x4ff80855
+0, 496, 496, 1, 599040, 0x68515ba6
+0, 497, 497, 1, 599040, 0x56228d2d
+0, 498, 498, 1, 599040, 0xb72a68ed
+0, 499, 499, 1, 599040, 0x111cc604
diff --git a/tests/ref/fate/hevc-conformance-MVEDGE_A_qualcomm_3 b/tests/ref/fate/hevc-conformance-MVEDGE_A_qualcomm_3
new file mode 100644
index 0000000000..0db06c5789
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-MVEDGE_A_qualcomm_3
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x1d68213a
+0, 1, 1, 1, 149760, 0x9cc81d30
+0, 2, 2, 1, 149760, 0xa3cf6438
+0, 3, 3, 1, 149760, 0x6acf213a
+0, 4, 4, 1, 149760, 0x0f75ce7b
+0, 5, 5, 1, 149760, 0x5e0286a7
+0, 6, 6, 1, 149760, 0xc62cd2b0
+0, 7, 7, 1, 149760, 0x7d9af3ac
+0, 8, 8, 1, 149760, 0x9d58afc7
+0, 9, 9, 1, 149760, 0x91c5ad7f
+0, 10, 10, 1, 149760, 0xc43c5b0a
+0, 11, 11, 1, 149760, 0x6b8cc1a5
+0, 12, 12, 1, 149760, 0x4cebb13e
+0, 13, 13, 1, 149760, 0xca136846
+0, 14, 14, 1, 149760, 0xba22e581
+0, 15, 15, 1, 149760, 0x2844ddd3
+0, 16, 16, 1, 149760, 0xf943399e
diff --git a/tests/ref/fate/hevc-conformance-NUT_A_ericsson_4 b/tests/ref/fate/hevc-conformance-NUT_A_ericsson_4
new file mode 100644
index 0000000000..fe65880bc5
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-NUT_A_ericsson_4
@@ -0,0 +1,35 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x8ce7200b
+0, 1, 1, 1, 149760, 0x73610669
+0, 2, 2, 1, 149760, 0x42942047
+0, 3, 3, 1, 149760, 0x57334d85
+0, 4, 4, 1, 149760, 0xdd97fbb3
+0, 5, 5, 1, 149760, 0x10469b12
+0, 6, 6, 1, 149760, 0x9b4231f0
+0, 7, 7, 1, 149760, 0x2b295a52
+0, 8, 8, 1, 149760, 0xdaf7c29f
+0, 9, 9, 1, 149760, 0x6798d072
+0, 10, 10, 1, 149760, 0xf77ae91e
+0, 11, 11, 1, 149760, 0xe2d516c9
+0, 12, 12, 1, 149760, 0x5cf0b221
+0, 13, 13, 1, 149760, 0x1d34991e
+0, 14, 14, 1, 149760, 0xb730d93a
+0, 15, 15, 1, 149760, 0x643b1861
+0, 16, 16, 1, 149760, 0x436586ff
+0, 17, 17, 1, 149760, 0xa65d9b80
+0, 18, 18, 1, 149760, 0x1d395210
+0, 19, 19, 1, 149760, 0x0580f2be
+0, 20, 20, 1, 149760, 0x8e4cea96
+0, 21, 21, 1, 149760, 0x6c98d019
+0, 22, 22, 1, 149760, 0x842803c8
+0, 23, 23, 1, 149760, 0xddc196ee
+0, 24, 24, 1, 149760, 0x89e45523
+0, 25, 25, 1, 149760, 0x2a36b008
+0, 26, 26, 1, 149760, 0x14a319f7
+0, 27, 27, 1, 149760, 0x7394854c
+0, 28, 28, 1, 149760, 0x26dcf933
+0, 29, 29, 1, 149760, 0x5b000b7e
+0, 30, 30, 1, 149760, 0x6e76bded
+0, 31, 31, 1, 149760, 0x0284d92d
+0, 32, 32, 1, 149760, 0xf14a25e0
+0, 33, 33, 1, 149760, 0x10c03d98
diff --git a/tests/ref/fate/hevc-conformance-PICSIZE_A_Bossen_1 b/tests/ref/fate/hevc-conformance-PICSIZE_A_Bossen_1
new file mode 100644
index 0000000000..4c09ca564b
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-PICSIZE_A_Bossen_1
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 13368960, 0x830b3a1d
+0, 1, 1, 1, 13368960, 0x120ca009
+0, 2, 2, 1, 13368960, 0xc94e0d86
+0, 3, 3, 1, 13368960, 0x3e97d237
+0, 4, 4, 1, 13368960, 0x1caaa873
+0, 5, 5, 1, 13368960, 0xc6af86c6
+0, 6, 6, 1, 13368960, 0x277ee61a
+0, 7, 7, 1, 13368960, 0x7832ef4e
+0, 8, 8, 1, 13368960, 0x328142e9
+0, 9, 9, 1, 13368960, 0xbe22f686
diff --git a/tests/ref/fate/hevc-conformance-PICSIZE_B_Bossen_1 b/tests/ref/fate/hevc-conformance-PICSIZE_B_Bossen_1
new file mode 100644
index 0000000000..a3ab7c84a0
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-PICSIZE_B_Bossen_1
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 13368960, 0xe1e32c3d
+0, 1, 1, 1, 13368960, 0x75a503d3
+0, 2, 2, 1, 13368960, 0x71f33a0a
+0, 3, 3, 1, 13368960, 0xd9fe5306
+0, 4, 4, 1, 13368960, 0x2528926a
+0, 5, 5, 1, 13368960, 0x4ae4e500
+0, 6, 6, 1, 13368960, 0x01949c16
+0, 7, 7, 1, 13368960, 0x57b6ea2f
+0, 8, 8, 1, 13368960, 0xfd2b2055
+0, 9, 9, 1, 13368960, 0xc4246a9b
diff --git a/tests/ref/fate/hevc-conformance-PICSIZE_C_Bossen_1 b/tests/ref/fate/hevc-conformance-PICSIZE_C_Bossen_1
new file mode 100644
index 0000000000..10520d17b6
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-PICSIZE_C_Bossen_1
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 3339072, 0x28be238d
+0, 1, 1, 1, 3339072, 0x43b62aae
+0, 2, 2, 1, 3339072, 0x36259da6
+0, 3, 3, 1, 3339072, 0xd0dbbc1e
+0, 4, 4, 1, 3339072, 0x20df7c7c
+0, 5, 5, 1, 3339072, 0xb8872e77
+0, 6, 6, 1, 3339072, 0xceb4cce4
+0, 7, 7, 1, 3339072, 0x4ffa1dab
+0, 8, 8, 1, 3339072, 0x1c687703
+0, 9, 9, 1, 3339072, 0x5a0fa46f
diff --git a/tests/ref/fate/hevc-conformance-PICSIZE_D_Bossen_1 b/tests/ref/fate/hevc-conformance-PICSIZE_D_Bossen_1
new file mode 100644
index 0000000000..6f1c4fb0b2
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-PICSIZE_D_Bossen_1
@@ -0,0 +1,11 @@
+#tb 0: 1/25
+0, 0, 0, 1, 3339072, 0xcb16f53e
+0, 1, 1, 1, 3339072, 0x6f1da8ec
+0, 2, 2, 1, 3339072, 0x978dae98
+0, 3, 3, 1, 3339072, 0x34becc01
+0, 4, 4, 1, 3339072, 0x9c900137
+0, 5, 5, 1, 3339072, 0x02fe1d40
+0, 6, 6, 1, 3339072, 0xda9703b6
+0, 7, 7, 1, 3339072, 0x73e5ff5a
+0, 8, 8, 1, 3339072, 0xeec94fab
+0, 9, 9, 1, 3339072, 0xf4a36fc5
diff --git a/tests/ref/fate/hevc-conformance-PMERGE_A_TI_3 b/tests/ref/fate/hevc-conformance-PMERGE_A_TI_3
new file mode 100644
index 0000000000..8491172ca8
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-PMERGE_A_TI_3
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x8edb27d7
+0, 1, 1, 1, 149760, 0x187419b5
+0, 2, 2, 1, 149760, 0x61100980
+0, 3, 3, 1, 149760, 0xd799123e
+0, 4, 4, 1, 149760, 0x9011c8d0
+0, 5, 5, 1, 149760, 0xeafe7d99
+0, 6, 6, 1, 149760, 0x94f32245
+0, 7, 7, 1, 149760, 0x8185910a
diff --git a/tests/ref/fate/hevc-conformance-PMERGE_B_TI_3 b/tests/ref/fate/hevc-conformance-PMERGE_B_TI_3
new file mode 100644
index 0000000000..1f15a022ef
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-PMERGE_B_TI_3
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x8edb27d7
+0, 1, 1, 1, 149760, 0xcebf1b76
+0, 2, 2, 1, 149760, 0x33930fb0
+0, 3, 3, 1, 149760, 0xb2933277
+0, 4, 4, 1, 149760, 0x2ff5fd5d
+0, 5, 5, 1, 149760, 0x6616a17a
+0, 6, 6, 1, 149760, 0x3abc48ad
+0, 7, 7, 1, 149760, 0xc12491ef
diff --git a/tests/ref/fate/hevc-conformance-PMERGE_C_TI_3 b/tests/ref/fate/hevc-conformance-PMERGE_C_TI_3
new file mode 100644
index 0000000000..bf474cc1c6
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-PMERGE_C_TI_3
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x8edb27d7
+0, 1, 1, 1, 149760, 0x2c271a9b
+0, 2, 2, 1, 149760, 0x53e419f3
+0, 3, 3, 1, 149760, 0x96c92a29
+0, 4, 4, 1, 149760, 0x62d5e85b
+0, 5, 5, 1, 149760, 0xea307d47
+0, 6, 6, 1, 149760, 0x9cc40dec
+0, 7, 7, 1, 149760, 0x37d977fa
diff --git a/tests/ref/fate/hevc-conformance-PMERGE_D_TI_3 b/tests/ref/fate/hevc-conformance-PMERGE_D_TI_3
new file mode 100644
index 0000000000..2af0e1f864
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-PMERGE_D_TI_3
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x8edb27d7
+0, 1, 1, 1, 149760, 0xf11a32ce
+0, 2, 2, 1, 149760, 0x0802237c
+0, 3, 3, 1, 149760, 0x366621a7
+0, 4, 4, 1, 149760, 0x89aacefd
+0, 5, 5, 1, 149760, 0xb3837d16
+0, 6, 6, 1, 149760, 0x5f822072
+0, 7, 7, 1, 149760, 0x24cb9377
diff --git a/tests/ref/fate/hevc-conformance-PMERGE_E_TI_3 b/tests/ref/fate/hevc-conformance-PMERGE_E_TI_3
new file mode 100644
index 0000000000..df97237fde
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-PMERGE_E_TI_3
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x8edb27d7
+0, 1, 1, 1, 149760, 0xea7b30bf
+0, 2, 2, 1, 149760, 0x273d092a
+0, 3, 3, 1, 149760, 0xef4e0ff0
+0, 4, 4, 1, 149760, 0x9805e02c
+0, 5, 5, 1, 149760, 0xdeb17cbc
+0, 6, 6, 1, 149760, 0xe5c903a4
+0, 7, 7, 1, 149760, 0x838d66b9
diff --git a/tests/ref/fate/hevc-conformance-POC_A_Bossen_3 b/tests/ref/fate/hevc-conformance-POC_A_Bossen_3
new file mode 100644
index 0000000000..bcfa7fa3d5
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-POC_A_Bossen_3
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0xda17acd4
+0, 0, 0, 1, 149760, 0x1691b47f
+0, 1, 1, 1, 149760, 0xeebeac0c
+0, 2, 2, 1, 149760, 0x895c9f62
+0, 3, 3, 1, 149760, 0x9e2077e8
diff --git a/tests/ref/fate/hevc-conformance-PPS_A_qualcomm_7 b/tests/ref/fate/hevc-conformance-PPS_A_qualcomm_7
new file mode 100644
index 0000000000..ef57f74cde
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-PPS_A_qualcomm_7
@@ -0,0 +1,82 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x87159328
+0, 1, 1, 1, 599040, 0x825672ff
+0, 2, 2, 1, 599040, 0x2f4224ff
+0, 3, 3, 1, 599040, 0x4be431ff
+0, 4, 4, 1, 599040, 0xa0118b14
+0, 5, 5, 1, 599040, 0x488aac33
+0, 6, 6, 1, 599040, 0x1edd0d4e
+0, 7, 7, 1, 599040, 0x7f4562a2
+0, 8, 8, 1, 599040, 0xe177a7d4
+0, 9, 9, 1, 599040, 0x32d2fd58
+0, 10, 10, 1, 599040, 0x81d50c36
+0, 11, 11, 1, 599040, 0xdf32810d
+0, 12, 12, 1, 599040, 0xc4f50543
+0, 13, 13, 1, 599040, 0x777bfdce
+0, 14, 14, 1, 599040, 0x01db8731
+0, 15, 15, 1, 599040, 0x74ae2b2c
+0, 16, 16, 1, 599040, 0x424e130a
+0, 17, 17, 1, 599040, 0x7002f7c8
+0, 18, 18, 1, 599040, 0xde098c5b
+0, 19, 19, 1, 599040, 0x072ca0e3
+0, 20, 20, 1, 599040, 0x6c50e3ba
+0, 21, 21, 1, 599040, 0xa398c530
+0, 22, 22, 1, 599040, 0xcd8a780a
+0, 23, 23, 1, 599040, 0x7c849e63
+0, 24, 24, 1, 599040, 0xb70e2a1f
+0, 25, 25, 1, 599040, 0xc00d893c
+0, 26, 26, 1, 599040, 0x5da32c94
+0, 27, 27, 1, 599040, 0xc3177b8c
+0, 28, 28, 1, 599040, 0x06668480
+0, 29, 29, 1, 599040, 0xbceeac78
+0, 30, 30, 1, 599040, 0x162d5cd1
+0, 31, 31, 1, 599040, 0x071b71c4
+0, 32, 32, 1, 599040, 0xfe61e0b2
+0, 33, 33, 1, 599040, 0xe78c121f
+0, 34, 34, 1, 599040, 0x3b47c051
+0, 35, 35, 1, 599040, 0x10c1eedd
+0, 36, 36, 1, 599040, 0x09cf2d2c
+0, 37, 37, 1, 599040, 0xc4272450
+0, 38, 38, 1, 599040, 0x3a9e0db7
+0, 39, 39, 1, 599040, 0xe62595ad
+0, 40, 40, 1, 599040, 0xc03669a5
+0, 41, 41, 1, 599040, 0x4fbb058e
+0, 42, 42, 1, 599040, 0xaaee8771
+0, 43, 43, 1, 599040, 0xcc4f3a71
+0, 44, 44, 1, 599040, 0xc5717c31
+0, 45, 45, 1, 599040, 0xe2bc02fc
+0, 46, 46, 1, 599040, 0x380e06eb
+0, 47, 47, 1, 599040, 0x15d4ba04
+0, 48, 48, 1, 599040, 0xb9204342
+0, 49, 49, 1, 599040, 0xb9d9a246
+0, 50, 50, 1, 599040, 0xb5611280
+0, 51, 51, 1, 599040, 0xc80e3909
+0, 52, 52, 1, 599040, 0xef93ecbd
+0, 53, 53, 1, 599040, 0xdd6b435e
+0, 54, 54, 1, 599040, 0x1622f253
+0, 55, 55, 1, 599040, 0x41cd55a6
+0, 56, 56, 1, 599040, 0x7ed864e7
+0, 57, 57, 1, 599040, 0x1604c563
+0, 58, 58, 1, 599040, 0x1d5a3dc9
+0, 59, 59, 1, 599040, 0xa904a8a5
+0, 60, 60, 1, 599040, 0x19c43226
+0, 61, 61, 1, 599040, 0x60d803e0
+0, 62, 62, 1, 599040, 0xe862b0e0
+0, 63, 63, 1, 599040, 0x37c76c51
+0, 64, 64, 1, 599040, 0x8528cc3c
+0, 65, 65, 1, 599040, 0x03ece1f9
+0, 66, 66, 1, 599040, 0x8f0ef28e
+0, 67, 67, 1, 599040, 0x92164007
+0, 68, 68, 1, 599040, 0x9d3c2ecf
+0, 69, 69, 1, 599040, 0xacf536d4
+0, 70, 70, 1, 599040, 0xbdf6165f
+0, 71, 71, 1, 599040, 0xbc19f80a
+0, 72, 72, 1, 599040, 0x128a6480
+0, 73, 73, 1, 599040, 0xb487c333
+0, 74, 74, 1, 599040, 0x8dc350fa
+0, 75, 75, 1, 599040, 0x0043fe96
+0, 76, 76, 1, 599040, 0x47b502a5
+0, 77, 77, 1, 599040, 0xf62b761f
+0, 78, 78, 1, 599040, 0x608f63c3
+0, 79, 79, 1, 599040, 0xe285d93d
+0, 80, 80, 1, 599040, 0x1c3404cf
diff --git a/tests/ref/fate/hevc-conformance-PS_A_VIDYO_3 b/tests/ref/fate/hevc-conformance-PS_A_VIDYO_3
new file mode 100644
index 0000000000..8f7e5e6911
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-PS_A_VIDYO_3
@@ -0,0 +1,26 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x88619f80
+0, 1, 1, 1, 149760, 0x550bdaf0
+0, 2, 2, 1, 149760, 0x4121f7a2
+0, 3, 3, 1, 149760, 0x210b1d07
+0, 4, 4, 1, 149760, 0x731b7758
+0, 5, 5, 1, 149760, 0x17adb789
+0, 6, 6, 1, 149760, 0x98b2f080
+0, 7, 7, 1, 149760, 0xc0be1f2a
+0, 8, 8, 1, 149760, 0xc01e387a
+0, 9, 9, 1, 149760, 0xd932822b
+0, 10, 10, 1, 149760, 0x16c0a1df
+0, 11, 11, 1, 149760, 0x5aa6c005
+0, 12, 12, 1, 149760, 0xd3aab602
+0, 13, 13, 1, 149760, 0x4e6ecab1
+0, 14, 14, 1, 149760, 0x8a86f1f2
+0, 15, 15, 1, 149760, 0x2ed21e1b
+0, 16, 16, 1, 149760, 0x80892f24
+0, 17, 17, 1, 149760, 0xb8a952ef
+0, 18, 18, 1, 149760, 0x557e57fb
+0, 19, 19, 1, 149760, 0x2b825b2c
+0, 20, 20, 1, 149760, 0x30b69b5e
+0, 21, 21, 1, 149760, 0x802ebf08
+0, 22, 22, 1, 149760, 0x95aadc8e
+0, 23, 23, 1, 149760, 0x4d4c02b7
+0, 24, 24, 1, 149760, 0x3fdd1762
diff --git a/tests/ref/fate/hevc-conformance-PS_B_VIDYO_3 b/tests/ref/fate/hevc-conformance-PS_B_VIDYO_3
new file mode 100644
index 0000000000..8f7e5e6911
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-PS_B_VIDYO_3
@@ -0,0 +1,26 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x88619f80
+0, 1, 1, 1, 149760, 0x550bdaf0
+0, 2, 2, 1, 149760, 0x4121f7a2
+0, 3, 3, 1, 149760, 0x210b1d07
+0, 4, 4, 1, 149760, 0x731b7758
+0, 5, 5, 1, 149760, 0x17adb789
+0, 6, 6, 1, 149760, 0x98b2f080
+0, 7, 7, 1, 149760, 0xc0be1f2a
+0, 8, 8, 1, 149760, 0xc01e387a
+0, 9, 9, 1, 149760, 0xd932822b
+0, 10, 10, 1, 149760, 0x16c0a1df
+0, 11, 11, 1, 149760, 0x5aa6c005
+0, 12, 12, 1, 149760, 0xd3aab602
+0, 13, 13, 1, 149760, 0x4e6ecab1
+0, 14, 14, 1, 149760, 0x8a86f1f2
+0, 15, 15, 1, 149760, 0x2ed21e1b
+0, 16, 16, 1, 149760, 0x80892f24
+0, 17, 17, 1, 149760, 0xb8a952ef
+0, 18, 18, 1, 149760, 0x557e57fb
+0, 19, 19, 1, 149760, 0x2b825b2c
+0, 20, 20, 1, 149760, 0x30b69b5e
+0, 21, 21, 1, 149760, 0x802ebf08
+0, 22, 22, 1, 149760, 0x95aadc8e
+0, 23, 23, 1, 149760, 0x4d4c02b7
+0, 24, 24, 1, 149760, 0x3fdd1762
diff --git a/tests/ref/fate/hevc-conformance-RAP_A_docomo_4 b/tests/ref/fate/hevc-conformance-RAP_A_docomo_4
new file mode 100644
index 0000000000..268f4cdc46
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-RAP_A_docomo_4
@@ -0,0 +1,87 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x1ae5f13d
+0, 1, 1, 1, 149760, 0x0a6ad0e3
+0, 2, 2, 1, 149760, 0x2415af05
+0, 3, 3, 1, 149760, 0xf50f6eef
+0, 4, 4, 1, 149760, 0xef65835c
+0, 5, 5, 1, 149760, 0x4929b5cb
+0, 6, 6, 1, 149760, 0x165c6f55
+0, 7, 7, 1, 149760, 0x9caaa249
+0, 8, 8, 1, 149760, 0x6c25c4cf
+0, 9, 9, 1, 149760, 0x4678cef0
+0, 10, 10, 1, 149760, 0x72e04433
+0, 11, 11, 1, 149760, 0x36f8aa9d
+0, 12, 12, 1, 149760, 0x255189ad
+0, 13, 13, 1, 149760, 0x712d7f7f
+0, 14, 14, 1, 149760, 0x4d088988
+0, 15, 15, 1, 149760, 0xc0da3925
+0, 16, 16, 1, 149760, 0x9990db7c
+0, 17, 17, 1, 149760, 0xb02cc0e8
+0, 18, 18, 1, 149760, 0x3e859d8f
+0, 19, 19, 1, 149760, 0xce786bc1
+0, 20, 20, 1, 149760, 0x87555e5f
+0, 21, 21, 1, 149760, 0x3c95fb7e
+0, 22, 22, 1, 149760, 0xf092b65e
+0, 23, 23, 1, 149760, 0x7db2c04c
+0, 24, 24, 1, 149760, 0x7d39eb21
+0, 25, 25, 1, 149760, 0x2cfd7d57
+0, 26, 26, 1, 149760, 0xb1902c06
+0, 27, 27, 1, 149760, 0xe0eae1d7
+0, 28, 28, 1, 149760, 0xf8212977
+0, 29, 29, 1, 149760, 0x6cb31328
+0, 30, 30, 1, 149760, 0x862ab736
+0, 31, 31, 1, 149760, 0xc7a87f44
+0, 32, 32, 1, 149760, 0x8ff7a1a1
+0, 33, 33, 1, 149760, 0xd7bee49b
+0, 34, 34, 1, 149760, 0x1925db84
+0, 35, 35, 1, 149760, 0xf32a7dc6
+0, 36, 36, 1, 149760, 0x02a1e3b6
+0, 37, 37, 1, 149760, 0xb6398aad
+0, 38, 38, 1, 149760, 0xa3756e2d
+0, 39, 39, 1, 149760, 0xf90f3732
+0, 40, 40, 1, 149760, 0x3b05115a
+0, 41, 41, 1, 149760, 0x81ca9bdb
+0, 42, 42, 1, 149760, 0xa75ee938
+0, 43, 43, 1, 149760, 0x9e5c232f
+0, 44, 44, 1, 149760, 0x64cb04e9
+0, 45, 45, 1, 149760, 0x4064df52
+0, 46, 46, 1, 149760, 0x47fa0afc
+0, 47, 47, 1, 149760, 0xd209252e
+0, 48, 48, 1, 149760, 0x2f811f02
+0, 49, 49, 1, 149760, 0x733b6721
+0, 50, 50, 1, 149760, 0x30b12427
+0, 51, 51, 1, 149760, 0xdf58d3e2
+0, 52, 52, 1, 149760, 0xc144d7be
+0, 53, 53, 1, 149760, 0x48f0ac79
+0, 54, 54, 1, 149760, 0xb8d8a2c6
+0, 55, 55, 1, 149760, 0x2a7d916d
+0, 56, 56, 1, 149760, 0xd9d38cd5
+0, 57, 57, 1, 149760, 0xd7c7f9a6
+0, 58, 58, 1, 149760, 0x64d0df7a
+0, 59, 59, 1, 149760, 0x4e365cff
+0, 60, 60, 1, 149760, 0x74bc2a8b
+0, 61, 61, 1, 149760, 0x70a7cd2b
+0, 62, 62, 1, 149760, 0x0836b51e
+0, 63, 63, 1, 149760, 0xbc37b5d7
+0, 64, 64, 1, 149760, 0xb6d651e5
+0, 65, 65, 1, 149760, 0x7aa0e35f
+0, 66, 66, 1, 149760, 0x0fbc89a3
+0, 67, 67, 1, 149760, 0x2ca2f2a6
+0, 68, 68, 1, 149760, 0xf742c5c5
+0, 69, 69, 1, 149760, 0x4117208f
+0, 70, 70, 1, 149760, 0xec392efb
+0, 71, 71, 1, 149760, 0xbfba5063
+0, 72, 72, 1, 149760, 0xb2499f48
+0, 73, 73, 1, 149760, 0xf1183244
+0, 74, 74, 1, 149760, 0x364a6400
+0, 75, 75, 1, 149760, 0xfcfddf36
+0, 76, 76, 1, 149760, 0xbcc1b37e
+0, 77, 77, 1, 149760, 0xab364748
+0, 78, 78, 1, 149760, 0xebb27fcd
+0, 79, 79, 1, 149760, 0xe2e7a723
+0, 80, 80, 1, 149760, 0xf671b5e0
+0, 81, 81, 1, 149760, 0xbf0cc349
+0, 82, 82, 1, 149760, 0xf195d868
+0, 83, 83, 1, 149760, 0xe0097460
+0, 84, 84, 1, 149760, 0x3d4c1812
+0, 85, 85, 1, 149760, 0x133cd867
diff --git a/tests/ref/fate/hevc-conformance-RAP_B_Bossen_1 b/tests/ref/fate/hevc-conformance-RAP_B_Bossen_1
new file mode 100644
index 0000000000..4bea99754f
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-RAP_B_Bossen_1
@@ -0,0 +1,84 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0xb989ae7a
+0, 1, 1, 1, 149760, 0x4765caed
+0, 2, 2, 1, 149760, 0xd908c148
+0, 3, 3, 1, 149760, 0xf6ebd66c
+0, 4, 4, 1, 149760, 0x5d5ea14b
+0, 5, 5, 1, 149760, 0xcc939a7c
+0, 6, 6, 1, 149760, 0xa91b8243
+0, 7, 7, 1, 149760, 0x61926618
+0, 8, 8, 1, 149760, 0xe440099c
+0, 9, 9, 1, 149760, 0x18b88a73
+0, 10, 10, 1, 149760, 0xa669f2a9
+0, 11, 11, 1, 149760, 0xc2f6af3a
+0, 12, 12, 1, 149760, 0x02465354
+0, 13, 13, 1, 149760, 0x54e51ff9
+0, 14, 14, 1, 149760, 0xb9f3c056
+0, 15, 15, 1, 149760, 0x050274f9
+0, 16, 16, 1, 149760, 0xd7a413c1
+0, 17, 17, 1, 149760, 0x6e92cda4
+0, 18, 18, 1, 149760, 0x9cb86d4d
+0, 19, 19, 1, 149760, 0x95f440a3
+0, 20, 20, 1, 149760, 0x6dabd616
+0, 21, 21, 1, 149760, 0xd6a0b62d
+0, 22, 22, 1, 149760, 0x585c811b
+0, 23, 23, 1, 149760, 0x50a4d6fc
+0, 24, 24, 1, 149760, 0xe419eb23
+0, 25, 25, 1, 149760, 0x1f0fc316
+0, 26, 26, 1, 149760, 0xf61dc981
+0, 27, 27, 1, 149760, 0xff34d001
+0, 28, 28, 1, 149760, 0x598be76c
+0, 29, 29, 1, 149760, 0xbb50a4d6
+0, 30, 30, 1, 149760, 0x2add9abd
+0, 31, 31, 1, 149760, 0xd74185c7
+0, 32, 32, 1, 149760, 0xcdad6e8e
+0, 33, 33, 1, 149760, 0x54d704ad
+0, 34, 34, 1, 149760, 0xe52e7fc0
+0, 35, 35, 1, 149760, 0xdb331061
+0, 36, 36, 1, 149760, 0x7dacb973
+0, 37, 37, 1, 149760, 0xfc8d5670
+0, 38, 38, 1, 149760, 0xca9024cd
+0, 39, 39, 1, 149760, 0x7fc9bbc2
+0, 40, 40, 1, 149760, 0xe9c386a9
+0, 41, 41, 1, 149760, 0xd0dd1a21
+0, 42, 42, 1, 149760, 0x4b57d734
+0, 43, 43, 1, 149760, 0x55607afc
+0, 44, 44, 1, 149760, 0x567c3e8b
+0, 45, 45, 1, 149760, 0x312eda16
+0, 46, 46, 1, 149760, 0xafcbacf8
+0, 47, 47, 1, 149760, 0xcbde8420
+0, 48, 48, 1, 149760, 0x88a2f29e
+0, 49, 49, 1, 149760, 0x417bf220
+0, 50, 50, 1, 149760, 0xa454835a
+0, 51, 51, 1, 149760, 0x16bf2871
+0, 52, 52, 1, 149760, 0x51253402
+0, 53, 53, 1, 149760, 0x13822dfd
+0, 54, 54, 1, 149760, 0x5e099d3d
+0, 55, 55, 1, 149760, 0xcc19fe87
+0, 56, 56, 1, 149760, 0x7f5f6ce2
+0, 57, 57, 1, 149760, 0x79797a94
+0, 58, 58, 1, 149760, 0x16f26086
+0, 59, 59, 1, 149760, 0x01aedea3
+0, 60, 60, 1, 149760, 0xcafd3221
+0, 61, 61, 1, 149760, 0xcbd61c1f
+0, 62, 62, 1, 149760, 0xf46839e5
+0, 63, 63, 1, 149760, 0x87fb61ee
+0, 64, 64, 1, 149760, 0x3362678b
+0, 65, 65, 1, 149760, 0x6e7fc851
+0, 66, 66, 1, 149760, 0x33f96449
+0, 67, 67, 1, 149760, 0xd9d05007
+0, 68, 68, 1, 149760, 0x477f2cf2
+0, 69, 69, 1, 149760, 0xe1f9ccd0
+0, 70, 70, 1, 149760, 0xb3ba8cfb
+0, 71, 71, 1, 149760, 0x64787995
+0, 72, 72, 1, 149760, 0xc10de4c4
+0, 73, 73, 1, 149760, 0x18dd343f
+0, 74, 74, 1, 149760, 0xa1c51358
+0, 75, 75, 1, 149760, 0x91fe6361
+0, 76, 76, 1, 149760, 0xeec85f94
+0, 77, 77, 1, 149760, 0x00a57402
+0, 78, 78, 1, 149760, 0x4e88cc16
+0, 79, 79, 1, 149760, 0xdbd51976
+0, 80, 80, 1, 149760, 0xfebf6b1a
+0, 81, 81, 1, 149760, 0x052546d2
+0, 82, 82, 1, 149760, 0x046cd73b
diff --git a/tests/ref/fate/hevc-conformance-RPLM_A_qualcomm_4 b/tests/ref/fate/hevc-conformance-RPLM_A_qualcomm_4
new file mode 100644
index 0000000000..372d1202f5
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-RPLM_A_qualcomm_4
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0xdb5e3b56
+0, 1, 1, 1, 149760, 0xd5320970
+0, 2, 2, 1, 149760, 0x9387ed18
+0, 3, 3, 1, 149760, 0x3ab6fde8
+0, 4, 4, 1, 149760, 0xf5d39a39
+0, 5, 5, 1, 149760, 0xf8c15b34
+0, 6, 6, 1, 149760, 0x12261fdc
+0, 7, 7, 1, 149760, 0x8ed03f57
+0, 8, 8, 1, 149760, 0x04d29f74
+0, 9, 9, 1, 149760, 0x86daf75e
+0, 10, 10, 1, 149760, 0x85d817a4
+0, 11, 11, 1, 149760, 0xf9c97006
+0, 12, 12, 1, 149760, 0x60baf6ad
+0, 13, 13, 1, 149760, 0x7272aa6b
+0, 14, 14, 1, 149760, 0x18e00ede
+0, 15, 15, 1, 149760, 0x60592cfe
+0, 16, 16, 1, 149760, 0x7d49650d
+0, 17, 17, 1, 149760, 0x865e7b22
+0, 18, 18, 1, 149760, 0xad6a33e4
+0, 19, 19, 1, 149760, 0x7c8ab573
+0, 20, 20, 1, 149760, 0x0c7d8afa
+0, 21, 21, 1, 149760, 0xb0e567a3
+0, 22, 22, 1, 149760, 0x3c2ccbf1
+0, 23, 23, 1, 149760, 0x0804aead
+0, 24, 24, 1, 149760, 0x0dcb6756
+0, 25, 25, 1, 149760, 0x99bc82dd
+0, 26, 26, 1, 149760, 0x4d2907f1
+0, 27, 27, 1, 149760, 0xc4c330ff
+0, 28, 28, 1, 149760, 0x6c73cef4
+0, 29, 29, 1, 149760, 0xbaa82ab1
+0, 30, 30, 1, 149760, 0xeea3d591
+0, 31, 31, 1, 149760, 0x8240d007
+0, 32, 32, 1, 149760, 0x698f11e4
+0, 33, 33, 1, 149760, 0x46700948
+0, 34, 34, 1, 149760, 0x819e62d9
+0, 35, 35, 1, 149760, 0x0cfe1471
+0, 36, 36, 1, 149760, 0xf30dc9da
+0, 37, 37, 1, 149760, 0x81ea3390
+0, 38, 38, 1, 149760, 0x85bc8dec
+0, 39, 39, 1, 149760, 0x01d3451a
+0, 40, 40, 1, 149760, 0x626dc94b
+0, 41, 41, 1, 149760, 0xf50f2a66
+0, 42, 42, 1, 149760, 0x6294bc3e
+0, 43, 43, 1, 149760, 0x41427bc1
+0, 44, 44, 1, 149760, 0xe200ecf3
+0, 45, 45, 1, 149760, 0xc44785c5
+0, 46, 46, 1, 149760, 0xadc8c3cf
+0, 47, 47, 1, 149760, 0x6c57fb6d
+0, 48, 48, 1, 149760, 0x139cddc1
+0, 49, 49, 1, 149760, 0xc5c9def6
+0, 50, 50, 1, 149760, 0xa8da3f7b
+0, 51, 51, 1, 149760, 0x21823d13
+0, 52, 52, 1, 149760, 0x00e265fd
+0, 53, 53, 1, 149760, 0x289f21d2
+0, 54, 54, 1, 149760, 0xa96d8d0b
+0, 55, 55, 1, 149760, 0x4e50b434
+0, 56, 56, 1, 149760, 0x4e469eae
+0, 57, 57, 1, 149760, 0x62a258af
+0, 58, 58, 1, 149760, 0xc61beb2b
+0, 59, 59, 1, 149760, 0x15d7853b
+0, 60, 60, 1, 149760, 0xd5b8941b
+0, 61, 61, 1, 149760, 0x6312a7c5
+0, 62, 62, 1, 149760, 0x2da74d59
+0, 63, 63, 1, 149760, 0x5fd72bc7
+0, 64, 64, 1, 149760, 0x4035f027
+0, 65, 65, 1, 149760, 0xbe9992e2
+0, 66, 66, 1, 149760, 0xb96093b8
+0, 67, 67, 1, 149760, 0x1024bd43
+0, 68, 68, 1, 149760, 0x1376a3fe
+0, 69, 69, 1, 149760, 0xdf93ec7f
+0, 70, 70, 1, 149760, 0x17d27bfa
+0, 71, 71, 1, 149760, 0x440cb7aa
+0, 72, 72, 1, 149760, 0x8b230df3
+0, 73, 73, 1, 149760, 0x2526130e
+0, 74, 74, 1, 149760, 0x77926a77
+0, 75, 75, 1, 149760, 0x8562bddc
+0, 76, 76, 1, 149760, 0xda86bb2e
+0, 77, 77, 1, 149760, 0x2b4f921b
+0, 78, 78, 1, 149760, 0xf13bca77
+0, 79, 79, 1, 149760, 0x53e76b99
+0, 80, 80, 1, 149760, 0x29a2f5bb
+0, 81, 81, 1, 149760, 0x83a8c4f8
+0, 82, 82, 1, 149760, 0xbe6d8f45
+0, 83, 83, 1, 149760, 0x03d3bf96
+0, 84, 84, 1, 149760, 0x3a0bd29e
+0, 85, 85, 1, 149760, 0xdb656a22
+0, 86, 86, 1, 149760, 0x557b020e
+0, 87, 87, 1, 149760, 0x573ee5f2
+0, 88, 88, 1, 149760, 0x5484faea
+0, 89, 89, 1, 149760, 0x06bb73ae
+0, 90, 90, 1, 149760, 0x3d4049fa
+0, 91, 91, 1, 149760, 0xe574eedb
+0, 92, 92, 1, 149760, 0x1c46205d
+0, 93, 93, 1, 149760, 0x0c5c322e
+0, 94, 94, 1, 149760, 0x2bbeed95
+0, 95, 95, 1, 149760, 0x225897dc
+0, 96, 96, 1, 149760, 0x0a39aa8b
+0, 97, 97, 1, 149760, 0x3242e156
+0, 98, 98, 1, 149760, 0x1790ee85
+0, 99, 99, 1, 149760, 0x55ef9dac
+0, 100, 100, 1, 149760, 0x98e1c49e
+0, 101, 101, 1, 149760, 0x479a84b5
+0, 102, 102, 1, 149760, 0x1711b4f9
+0, 103, 103, 1, 149760, 0xd7d25fce
+0, 104, 104, 1, 149760, 0x7bde1977
+0, 105, 105, 1, 149760, 0x25777a4d
+0, 106, 106, 1, 149760, 0x7b55ed5f
+0, 107, 107, 1, 149760, 0xb28e59e6
+0, 108, 108, 1, 149760, 0x8314281a
+0, 109, 109, 1, 149760, 0x3a5ceeb3
+0, 110, 110, 1, 149760, 0x33760ed8
+0, 111, 111, 1, 149760, 0x19332370
+0, 112, 112, 1, 149760, 0xf25d1f68
+0, 113, 113, 1, 149760, 0x4d665712
+0, 114, 114, 1, 149760, 0x3e310eb7
+0, 115, 115, 1, 149760, 0xafa3c1bb
+0, 116, 116, 1, 149760, 0xf0b7a7ec
+0, 117, 117, 1, 149760, 0xa88a747a
+0, 118, 118, 1, 149760, 0x7b7e6e85
+0, 119, 119, 1, 149760, 0xbc8f8ede
+0, 120, 120, 1, 149760, 0x449f7d2f
+0, 121, 121, 1, 149760, 0x9bc70c53
+0, 122, 122, 1, 149760, 0x8544dc98
+0, 123, 123, 1, 149760, 0xef687641
+0, 124, 124, 1, 149760, 0x0c962219
+0, 125, 125, 1, 149760, 0x4325ae76
+0, 126, 126, 1, 149760, 0xcec7a18c
+0, 127, 127, 1, 149760, 0x941ee8a2
+0, 128, 128, 1, 149760, 0x3eaf3f55
+0, 129, 129, 1, 149760, 0x5b571274
+0, 130, 130, 1, 149760, 0x0532488a
+0, 131, 131, 1, 149760, 0x893fbaf7
+0, 132, 132, 1, 149760, 0xd0155ddf
+0, 133, 133, 1, 149760, 0x83ec86ee
+0, 134, 134, 1, 149760, 0xedffba86
+0, 135, 135, 1, 149760, 0x838c19de
+0, 136, 136, 1, 149760, 0x8482639d
+0, 137, 137, 1, 149760, 0x9501004d
+0, 138, 138, 1, 149760, 0x1db0525f
+0, 139, 139, 1, 149760, 0x8b431467
+0, 140, 140, 1, 149760, 0x972e7d24
+0, 141, 141, 1, 149760, 0xd8151b94
+0, 142, 142, 1, 149760, 0x1ded6a85
+0, 143, 143, 1, 149760, 0x03497fe2
+0, 144, 144, 1, 149760, 0x07427bb7
+0, 145, 145, 1, 149760, 0x33c085ef
+0, 146, 146, 1, 149760, 0x0feda1d0
+0, 147, 147, 1, 149760, 0xf86930e7
+0, 148, 148, 1, 149760, 0x42c2ea09
+0, 149, 149, 1, 149760, 0xcfb76b86
+0, 150, 150, 1, 149760, 0x672e2fce
+0, 151, 151, 1, 149760, 0xb006ec79
+0, 152, 152, 1, 149760, 0xdbc8511c
+0, 153, 153, 1, 149760, 0x3278b299
+0, 154, 154, 1, 149760, 0xd19fe063
+0, 155, 155, 1, 149760, 0x13bb8951
+0, 156, 156, 1, 149760, 0xec5cfe36
+0, 157, 157, 1, 149760, 0x9381a0e7
+0, 158, 158, 1, 149760, 0x304cf3c0
+0, 159, 159, 1, 149760, 0xd380511c
+0, 160, 160, 1, 149760, 0xbd1abe11
+0, 161, 161, 1, 149760, 0x7b220293
+0, 162, 162, 1, 149760, 0xbbe85931
+0, 163, 163, 1, 149760, 0x316e422a
+0, 164, 164, 1, 149760, 0x5e5db530
+0, 165, 165, 1, 149760, 0xc48d6ddb
+0, 166, 166, 1, 149760, 0x9adf5d65
+0, 167, 167, 1, 149760, 0x2adb94de
+0, 168, 168, 1, 149760, 0xbc052746
+0, 169, 169, 1, 149760, 0xac4d3569
+0, 170, 170, 1, 149760, 0x3cd8fdee
+0, 171, 171, 1, 149760, 0x34bfd6ed
+0, 172, 172, 1, 149760, 0xf72fec4b
+0, 173, 173, 1, 149760, 0xf8c5b374
+0, 174, 174, 1, 149760, 0x28ff7382
+0, 175, 175, 1, 149760, 0xac3b49f4
+0, 176, 176, 1, 149760, 0x9d995a62
+0, 177, 177, 1, 149760, 0xe0b292f1
+0, 178, 178, 1, 149760, 0x4edbd05d
+0, 179, 179, 1, 149760, 0x4fd5038b
+0, 180, 180, 1, 149760, 0x899d2101
+0, 181, 181, 1, 149760, 0x0733f804
+0, 182, 182, 1, 149760, 0xe4297100
+0, 183, 183, 1, 149760, 0x5aff9292
+0, 184, 184, 1, 149760, 0x41eda25c
+0, 185, 185, 1, 149760, 0xb4d7aaf2
+0, 186, 186, 1, 149760, 0xbd99fade
+0, 187, 187, 1, 149760, 0xdea6d265
+0, 188, 188, 1, 149760, 0xa2d3bdcd
+0, 189, 189, 1, 149760, 0x38f8a729
+0, 190, 190, 1, 149760, 0x0a356f1b
+0, 191, 191, 1, 149760, 0x865411a5
+0, 192, 192, 1, 149760, 0xd6720a40
+0, 193, 193, 1, 149760, 0xf40589f9
+0, 194, 194, 1, 149760, 0x0646106d
+0, 195, 195, 1, 149760, 0x88e55688
+0, 196, 196, 1, 149760, 0xda2fce82
+0, 197, 197, 1, 149760, 0xc823200b
+0, 198, 198, 1, 149760, 0xc9513041
+0, 199, 199, 1, 149760, 0x798d0e88
+0, 200, 200, 1, 149760, 0xb6d4f15a
+0, 201, 201, 1, 149760, 0xab5b24a4
+0, 202, 202, 1, 149760, 0x9888aa8d
+0, 203, 203, 1, 149760, 0xbf13bbf4
+0, 204, 204, 1, 149760, 0x5450bb23
+0, 205, 205, 1, 149760, 0x12aec398
+0, 206, 206, 1, 149760, 0xa5e1579a
+0, 207, 207, 1, 149760, 0xbeeb07e1
+0, 208, 208, 1, 149760, 0x209a9f1b
+0, 209, 209, 1, 149760, 0x4d3d1c1a
+0, 210, 210, 1, 149760, 0xb4edd703
+0, 211, 211, 1, 149760, 0xc71adf66
+0, 212, 212, 1, 149760, 0x40006d36
+0, 213, 213, 1, 149760, 0x1c5485c9
+0, 214, 214, 1, 149760, 0xa3d8c9a1
+0, 215, 215, 1, 149760, 0x9bfac6de
+0, 216, 216, 1, 149760, 0xed3b0782
+0, 217, 217, 1, 149760, 0x8f075ce2
+0, 218, 218, 1, 149760, 0xb744fa07
+0, 219, 219, 1, 149760, 0xa9356722
+0, 220, 220, 1, 149760, 0xd792bd01
+0, 221, 221, 1, 149760, 0xa124618b
+0, 222, 222, 1, 149760, 0x7492bb54
+0, 223, 223, 1, 149760, 0x67dcefca
+0, 224, 224, 1, 149760, 0x8a7f716d
+0, 225, 225, 1, 149760, 0x7775bb01
+0, 226, 226, 1, 149760, 0xe4a845e5
+0, 227, 227, 1, 149760, 0x79a3962d
+0, 228, 228, 1, 149760, 0x4f395ad7
+0, 229, 229, 1, 149760, 0x3948ce05
+0, 230, 230, 1, 149760, 0x037e6c07
+0, 231, 231, 1, 149760, 0x91881ae9
+0, 232, 232, 1, 149760, 0x937e2545
+0, 233, 233, 1, 149760, 0xdc892763
+0, 234, 234, 1, 149760, 0x96ebd47f
+0, 235, 235, 1, 149760, 0xfecbf8c6
+0, 236, 236, 1, 149760, 0xe1443808
+0, 237, 237, 1, 149760, 0xe0cd36c0
+0, 238, 238, 1, 149760, 0xb485eb4d
+0, 239, 239, 1, 149760, 0x36edf31f
+0, 240, 240, 1, 149760, 0x988bb97f
+0, 241, 241, 1, 149760, 0xc266c616
+0, 242, 242, 1, 149760, 0x7ec4c3f4
+0, 243, 243, 1, 149760, 0xedf5e2ff
+0, 244, 244, 1, 149760, 0xbdd351e3
+0, 245, 245, 1, 149760, 0x900e194e
+0, 246, 246, 1, 149760, 0x5dc7daad
+0, 247, 247, 1, 149760, 0x1ce37e7e
+0, 248, 248, 1, 149760, 0x15982333
+0, 249, 249, 1, 149760, 0x976bb72e
+0, 250, 250, 1, 149760, 0x0b42e05e
+0, 251, 251, 1, 149760, 0xffbcc758
+0, 252, 252, 1, 149760, 0x6377782d
+0, 253, 253, 1, 149760, 0x8aa42a80
+0, 254, 254, 1, 149760, 0x8e0ab3fd
+0, 255, 255, 1, 149760, 0xdfdd49d4
+0, 256, 256, 1, 149760, 0x2659a6cb
+0, 257, 257, 1, 149760, 0x1e9a3d51
+0, 258, 258, 1, 149760, 0x7a66d80d
+0, 259, 259, 1, 149760, 0x5756a9e9
+0, 260, 260, 1, 149760, 0x0fa8d6dd
+0, 261, 261, 1, 149760, 0x885799a5
+0, 262, 262, 1, 149760, 0xb8d02df7
+0, 263, 263, 1, 149760, 0xd2e2800c
+0, 264, 264, 1, 149760, 0xa26ee27a
+0, 265, 265, 1, 149760, 0x7c86750f
+0, 266, 266, 1, 149760, 0xb4694ea1
+0, 267, 267, 1, 149760, 0x89d0b75a
+0, 268, 268, 1, 149760, 0x92b9af80
+0, 269, 269, 1, 149760, 0x107dd610
+0, 270, 270, 1, 149760, 0x8ad35f55
+0, 271, 271, 1, 149760, 0xccc32cb1
+0, 272, 272, 1, 149760, 0xd08ce4ff
+0, 273, 273, 1, 149760, 0x30bd8d0a
+0, 274, 274, 1, 149760, 0x01b74d14
+0, 275, 275, 1, 149760, 0x79aa7a3b
+0, 276, 276, 1, 149760, 0x5f7a40fc
+0, 277, 277, 1, 149760, 0x8837643e
+0, 278, 278, 1, 149760, 0xb6b66baa
+0, 279, 279, 1, 149760, 0xf4ae17cd
+0, 280, 280, 1, 149760, 0xe0d2546a
+0, 281, 281, 1, 149760, 0x0e118751
+0, 282, 282, 1, 149760, 0x0732e19c
+0, 283, 283, 1, 149760, 0x9cfe27b3
+0, 284, 284, 1, 149760, 0x1c77b242
+0, 285, 285, 1, 149760, 0x25be3938
+0, 286, 286, 1, 149760, 0x735ce859
+0, 287, 287, 1, 149760, 0x2bca0f6e
+0, 288, 288, 1, 149760, 0xcce3eb48
+0, 289, 289, 1, 149760, 0xf3556dd8
+0, 290, 290, 1, 149760, 0xcb2cecb4
+0, 291, 291, 1, 149760, 0x9c489742
+0, 292, 292, 1, 149760, 0xbe25370d
+0, 293, 293, 1, 149760, 0x798ff17f
+0, 294, 294, 1, 149760, 0x2f1a46c4
+0, 295, 295, 1, 149760, 0x7d119bd6
+0, 296, 296, 1, 149760, 0x42ceab74
+0, 297, 297, 1, 149760, 0x6fcbe2ef
+0, 298, 298, 1, 149760, 0x290fe6da
+0, 299, 299, 1, 149760, 0x6b280a24
diff --git a/tests/ref/fate/hevc-conformance-RPLM_B_qualcomm_4 b/tests/ref/fate/hevc-conformance-RPLM_B_qualcomm_4
new file mode 100644
index 0000000000..a34dcc01bd
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-RPLM_B_qualcomm_4
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x82ff0cca
+0, 1, 1, 1, 149760, 0xcd05ba17
+0, 2, 2, 1, 149760, 0x33a5b924
+0, 3, 3, 1, 149760, 0xc0a8d82f
+0, 4, 4, 1, 149760, 0xa18c8ce6
+0, 5, 5, 1, 149760, 0x4d3c4902
+0, 6, 6, 1, 149760, 0xf118cb2a
+0, 7, 7, 1, 149760, 0xb37643c0
+0, 8, 8, 1, 149760, 0x0d6f8a70
+0, 9, 9, 1, 149760, 0xeaebd0f0
+0, 10, 10, 1, 149760, 0x81cce277
+0, 11, 11, 1, 149760, 0x85f216cc
+0, 12, 12, 1, 149760, 0x799cc7c7
+0, 13, 13, 1, 149760, 0x575f76da
+0, 14, 14, 1, 149760, 0x79e10395
+0, 15, 15, 1, 149760, 0x80f62423
+0, 16, 16, 1, 149760, 0x13657087
+0, 17, 17, 1, 149760, 0xcd147ae1
+0, 18, 18, 1, 149760, 0xcee71159
+0, 19, 19, 1, 149760, 0x6fa7b8d5
+0, 20, 20, 1, 149760, 0xd90bd038
+0, 21, 21, 1, 149760, 0x13eead73
+0, 22, 22, 1, 149760, 0xe2eddfc8
+0, 23, 23, 1, 149760, 0x1f07a4f6
+0, 24, 24, 1, 149760, 0x90b25f59
+0, 25, 25, 1, 149760, 0xd0dd86ba
+0, 26, 26, 1, 149760, 0x3008066c
+0, 27, 27, 1, 149760, 0x74ec54dd
+0, 28, 28, 1, 149760, 0xa423046c
+0, 29, 29, 1, 149760, 0x8a410bca
+0, 30, 30, 1, 149760, 0x55337573
+0, 31, 31, 1, 149760, 0x55d3623c
+0, 32, 32, 1, 149760, 0x699d234b
+0, 33, 33, 1, 149760, 0xbcd029b6
+0, 34, 34, 1, 149760, 0xa56e6600
+0, 35, 35, 1, 149760, 0x1dfc4a28
+0, 36, 36, 1, 149760, 0x9a72d671
+0, 37, 37, 1, 149760, 0xc01812ae
+0, 38, 38, 1, 149760, 0x8ef428c2
+0, 39, 39, 1, 149760, 0x6e79de92
+0, 40, 40, 1, 149760, 0xf315ba7c
+0, 41, 41, 1, 149760, 0xa678caff
+0, 42, 42, 1, 149760, 0xbd2049c0
+0, 43, 43, 1, 149760, 0x649323ea
+0, 44, 44, 1, 149760, 0x686eb3a4
+0, 45, 45, 1, 149760, 0x89725136
+0, 46, 46, 1, 149760, 0xc4db7e6f
+0, 47, 47, 1, 149760, 0xf6f0d823
+0, 48, 48, 1, 149760, 0x44b3a07a
+0, 49, 49, 1, 149760, 0xf23c221d
+0, 50, 50, 1, 149760, 0x858f11ef
+0, 51, 51, 1, 149760, 0xcd5311c4
+0, 52, 52, 1, 149760, 0x72c9297d
+0, 53, 53, 1, 149760, 0xf6acd772
+0, 54, 54, 1, 149760, 0x8c0f91ed
+0, 55, 55, 1, 149760, 0x7ef6f2be
+0, 56, 56, 1, 149760, 0x1237a677
+0, 57, 57, 1, 149760, 0x66e461f9
+0, 58, 58, 1, 149760, 0x3e06e1b3
+0, 59, 59, 1, 149760, 0xa6f6065c
+0, 60, 60, 1, 149760, 0x16e38cc0
+0, 61, 61, 1, 149760, 0x05762de1
+0, 62, 62, 1, 149760, 0xbda617c5
+0, 63, 63, 1, 149760, 0x75b904a9
+0, 64, 64, 1, 149760, 0x2f8bf179
+0, 65, 65, 1, 149760, 0x9be6a533
+0, 66, 66, 1, 149760, 0xf4eb99e8
+0, 67, 67, 1, 149760, 0xf3a68b9a
+0, 68, 68, 1, 149760, 0x34b86f19
+0, 69, 69, 1, 149760, 0x6a71cc04
+0, 70, 70, 1, 149760, 0xe206a202
+0, 71, 71, 1, 149760, 0xdfa8dea6
+0, 72, 72, 1, 149760, 0x8ef7fb73
+0, 73, 73, 1, 149760, 0x67a8de32
+0, 74, 74, 1, 149760, 0xc8c16870
+0, 75, 75, 1, 149760, 0xf5e5d04d
+0, 76, 76, 1, 149760, 0x79d0cc8d
+0, 77, 77, 1, 149760, 0xcd80a22b
+0, 78, 78, 1, 149760, 0x12dce452
+0, 79, 79, 1, 149760, 0x0586aa3d
+0, 80, 80, 1, 149760, 0x5a4d0c1e
+0, 81, 81, 1, 149760, 0x25dbe94e
+0, 82, 82, 1, 149760, 0x3236bbe8
+0, 83, 83, 1, 149760, 0x3b4bc068
+0, 84, 84, 1, 149760, 0x3f32c299
+0, 85, 85, 1, 149760, 0x5b0738e5
+0, 86, 86, 1, 149760, 0x0c1d0c80
+0, 87, 87, 1, 149760, 0x76ace6f5
+0, 88, 88, 1, 149760, 0xc738ff39
+0, 89, 89, 1, 149760, 0x0f078335
+0, 90, 90, 1, 149760, 0x0e941631
+0, 91, 91, 1, 149760, 0x284ee7d6
+0, 92, 92, 1, 149760, 0xce9b49b8
+0, 93, 93, 1, 149760, 0x7c132570
+0, 94, 94, 1, 149760, 0xa983dc5e
+0, 95, 95, 1, 149760, 0x994e4d69
+0, 96, 96, 1, 149760, 0xb8f599ed
+0, 97, 97, 1, 149760, 0xee81b454
+0, 98, 98, 1, 149760, 0xf27bdeee
+0, 99, 99, 1, 149760, 0xc7628895
+0, 100, 100, 1, 149760, 0x003521d1
+0, 101, 101, 1, 149760, 0x7ed9b167
+0, 102, 102, 1, 149760, 0x47598b95
+0, 103, 103, 1, 149760, 0x879b347e
+0, 104, 104, 1, 149760, 0x55f8f8c1
+0, 105, 105, 1, 149760, 0xdddc5dda
+0, 106, 106, 1, 149760, 0xc531c9a1
+0, 107, 107, 1, 149760, 0x28ef0e7e
+0, 108, 108, 1, 149760, 0x4c090cbd
+0, 109, 109, 1, 149760, 0x5818f270
+0, 110, 110, 1, 149760, 0x89ea1f0e
+0, 111, 111, 1, 149760, 0x263925ef
+0, 112, 112, 1, 149760, 0x4e7d45b8
+0, 113, 113, 1, 149760, 0xa98dbf77
+0, 114, 114, 1, 149760, 0xaa0239b3
+0, 115, 115, 1, 149760, 0x4eaa2226
+0, 116, 116, 1, 149760, 0x9927c7f9
+0, 117, 117, 1, 149760, 0x17f09e34
+0, 118, 118, 1, 149760, 0x45cc73e9
+0, 119, 119, 1, 149760, 0x21836e14
+0, 120, 120, 1, 149760, 0x14c38cf6
+0, 121, 121, 1, 149760, 0x18ee35ee
+0, 122, 122, 1, 149760, 0x4f55f781
+0, 123, 123, 1, 149760, 0x85556339
+0, 124, 124, 1, 149760, 0xc41e3261
+0, 125, 125, 1, 149760, 0xed34ba27
+0, 126, 126, 1, 149760, 0x91e7841c
+0, 127, 127, 1, 149760, 0x1605bd75
+0, 128, 128, 1, 149760, 0xb5af2fbc
+0, 129, 129, 1, 149760, 0x9024b2d8
+0, 130, 130, 1, 149760, 0xda8d3c03
+0, 131, 131, 1, 149760, 0xc23a9686
+0, 132, 132, 1, 149760, 0xf9c8686b
+0, 133, 133, 1, 149760, 0xec09b569
+0, 134, 134, 1, 149760, 0x398df9bb
+0, 135, 135, 1, 149760, 0x716c2934
+0, 136, 136, 1, 149760, 0x0a6ea078
+0, 137, 137, 1, 149760, 0x777739fe
+0, 138, 138, 1, 149760, 0x80417304
+0, 139, 139, 1, 149760, 0xe0a5c378
+0, 140, 140, 1, 149760, 0x9565a659
+0, 141, 141, 1, 149760, 0xdf6f1938
+0, 142, 142, 1, 149760, 0xe60d5639
+0, 143, 143, 1, 149760, 0xa89fa739
+0, 144, 144, 1, 149760, 0xd1529b40
+0, 145, 145, 1, 149760, 0x48a7d440
+0, 146, 146, 1, 149760, 0x5946afbb
+0, 147, 147, 1, 149760, 0x2cad2855
+0, 148, 148, 1, 149760, 0x7ac1d993
+0, 149, 149, 1, 149760, 0x0841a016
+0, 150, 150, 1, 149760, 0x35ea4bd2
+0, 151, 151, 1, 149760, 0x5371effa
+0, 152, 152, 1, 149760, 0xd6445a37
+0, 153, 153, 1, 149760, 0x782ea184
+0, 154, 154, 1, 149760, 0x919c2013
+0, 155, 155, 1, 149760, 0x0ea79614
+0, 156, 156, 1, 149760, 0x1ac0e835
+0, 157, 157, 1, 149760, 0x32a36ada
+0, 158, 158, 1, 149760, 0x6b0ad17c
+0, 159, 159, 1, 149760, 0xcd442d19
+0, 160, 160, 1, 149760, 0x0dd1df50
+0, 161, 161, 1, 149760, 0xe26b248f
+0, 162, 162, 1, 149760, 0x490348bb
+0, 163, 163, 1, 149760, 0x638b547e
+0, 164, 164, 1, 149760, 0xb2cbe2ca
+0, 165, 165, 1, 149760, 0xc6cfaa86
+0, 166, 166, 1, 149760, 0xe2317842
+0, 167, 167, 1, 149760, 0xe6e7cd9b
+0, 168, 168, 1, 149760, 0x55bf48cb
+0, 169, 169, 1, 149760, 0xefee6ea0
+0, 170, 170, 1, 149760, 0x2bb127fa
+0, 171, 171, 1, 149760, 0xebbf0725
+0, 172, 172, 1, 149760, 0xb40718a1
+0, 173, 173, 1, 149760, 0x33c8e7da
+0, 174, 174, 1, 149760, 0xfeea8d03
+0, 175, 175, 1, 149760, 0x52f47fa9
+0, 176, 176, 1, 149760, 0xb08fa2f6
+0, 177, 177, 1, 149760, 0xc9adcd96
+0, 178, 178, 1, 149760, 0xb8981cc2
+0, 179, 179, 1, 149760, 0x547b1eaa
+0, 180, 180, 1, 149760, 0x10733813
+0, 181, 181, 1, 149760, 0x14edfa3d
+0, 182, 182, 1, 149760, 0x28ae8eb3
+0, 183, 183, 1, 149760, 0x9b94a69c
+0, 184, 184, 1, 149760, 0x42f67a2a
+0, 185, 185, 1, 149760, 0x1ead65e6
+0, 186, 186, 1, 149760, 0x30b99840
+0, 187, 187, 1, 149760, 0xafdebbda
+0, 188, 188, 1, 149760, 0xc31cda7f
+0, 189, 189, 1, 149760, 0xe7afdfa8
+0, 190, 190, 1, 149760, 0xc8358146
+0, 191, 191, 1, 149760, 0xb8ea3a3b
+0, 192, 192, 1, 149760, 0xebbb2c0e
+0, 193, 193, 1, 149760, 0xe911c057
+0, 194, 194, 1, 149760, 0x843f3082
+0, 195, 195, 1, 149760, 0xd18f6dcb
+0, 196, 196, 1, 149760, 0xd0f67de3
+0, 197, 197, 1, 149760, 0xa7077645
+0, 198, 198, 1, 149760, 0xb7432bef
+0, 199, 199, 1, 149760, 0x9e3284ee
+0, 200, 200, 1, 149760, 0x931ec601
+0, 201, 201, 1, 149760, 0xd0f92a35
+0, 202, 202, 1, 149760, 0x2141c549
+0, 203, 203, 1, 149760, 0x46abf101
+0, 204, 204, 1, 149760, 0x92069ea7
+0, 205, 205, 1, 149760, 0xbf0dd536
+0, 206, 206, 1, 149760, 0xc0c34245
+0, 207, 207, 1, 149760, 0xd9f60e8b
+0, 208, 208, 1, 149760, 0xe20cb181
+0, 209, 209, 1, 149760, 0xdf58fbd2
+0, 210, 210, 1, 149760, 0xe047e805
+0, 211, 211, 1, 149760, 0xe6dd0520
+0, 212, 212, 1, 149760, 0xa7a1a7dd
+0, 213, 213, 1, 149760, 0x6bd6d799
+0, 214, 214, 1, 149760, 0x9fcbda54
+0, 215, 215, 1, 149760, 0xe9b8bf5a
+0, 216, 216, 1, 149760, 0x818d2b8d
+0, 217, 217, 1, 149760, 0x021c5b55
+0, 218, 218, 1, 149760, 0x0da93d94
+0, 219, 219, 1, 149760, 0x7d66b00d
+0, 220, 220, 1, 149760, 0xf84ab99e
+0, 221, 221, 1, 149760, 0xbc866ed2
+0, 222, 222, 1, 149760, 0x8075f6fa
+0, 223, 223, 1, 149760, 0x64540cad
+0, 224, 224, 1, 149760, 0xf3e28d9a
+0, 225, 225, 1, 149760, 0xb88fef8b
+0, 226, 226, 1, 149760, 0x1c782c83
+0, 227, 227, 1, 149760, 0xb89e4047
+0, 228, 228, 1, 149760, 0x593815a7
+0, 229, 229, 1, 149760, 0xa41a68d1
+0, 230, 230, 1, 149760, 0x7fdc56e5
+0, 231, 231, 1, 149760, 0xea8a0533
+0, 232, 232, 1, 149760, 0xc74709cc
+0, 233, 233, 1, 149760, 0xecca373c
+0, 234, 234, 1, 149760, 0x1dae228f
+0, 235, 235, 1, 149760, 0xbb900da8
+0, 236, 236, 1, 149760, 0xf71e4935
+0, 237, 237, 1, 149760, 0x8587d747
+0, 238, 238, 1, 149760, 0x5382afdd
+0, 239, 239, 1, 149760, 0x4075dea6
+0, 240, 240, 1, 149760, 0x1ccde8f2
+0, 241, 241, 1, 149760, 0x8065ed82
+0, 242, 242, 1, 149760, 0x0726bb8a
+0, 243, 243, 1, 149760, 0xedf2172c
+0, 244, 244, 1, 149760, 0x552cce61
+0, 245, 245, 1, 149760, 0x32851927
+0, 246, 246, 1, 149760, 0x15e8ae45
+0, 247, 247, 1, 149760, 0x9265625c
+0, 248, 248, 1, 149760, 0x11612465
+0, 249, 249, 1, 149760, 0x9f5586fa
+0, 250, 250, 1, 149760, 0x77f295a1
+0, 251, 251, 1, 149760, 0xb0757b88
+0, 252, 252, 1, 149760, 0xa0bd3d9c
+0, 253, 253, 1, 149760, 0x12471db6
+0, 254, 254, 1, 149760, 0x5c329d6b
+0, 255, 255, 1, 149760, 0x62f32654
+0, 256, 256, 1, 149760, 0xeafeb1f0
+0, 257, 257, 1, 149760, 0x707f6647
+0, 258, 258, 1, 149760, 0xe8acda33
+0, 259, 259, 1, 149760, 0x1e9dcb1b
+0, 260, 260, 1, 149760, 0x984a4a40
+0, 261, 261, 1, 149760, 0x066b9585
+0, 262, 262, 1, 149760, 0x5e2d2091
+0, 263, 263, 1, 149760, 0x6a6a5172
+0, 264, 264, 1, 149760, 0xc4c4fe94
+0, 265, 265, 1, 149760, 0x6ed2c46b
+0, 266, 266, 1, 149760, 0x810f27f8
+0, 267, 267, 1, 149760, 0xc27ca970
+0, 268, 268, 1, 149760, 0xfd3dae79
+0, 269, 269, 1, 149760, 0x9744ce6d
+0, 270, 270, 1, 149760, 0x45772f2a
+0, 271, 271, 1, 149760, 0x482ed805
+0, 272, 272, 1, 149760, 0x9606c429
+0, 273, 273, 1, 149760, 0x79a9ca8a
+0, 274, 274, 1, 149760, 0xf625806e
+0, 275, 275, 1, 149760, 0x0c9eed01
+0, 276, 276, 1, 149760, 0xb0007687
+0, 277, 277, 1, 149760, 0x620a7b35
+0, 278, 278, 1, 149760, 0x5d6fa9dc
+0, 279, 279, 1, 149760, 0x92c86275
+0, 280, 280, 1, 149760, 0xca1886f0
+0, 281, 281, 1, 149760, 0x6363a557
+0, 282, 282, 1, 149760, 0x32ab19ca
+0, 283, 283, 1, 149760, 0xa6113c10
+0, 284, 284, 1, 149760, 0x257fd46a
+0, 285, 285, 1, 149760, 0xb8af4e28
+0, 286, 286, 1, 149760, 0x9716d086
+0, 287, 287, 1, 149760, 0x0cc14c4d
+0, 288, 288, 1, 149760, 0xd194f150
+0, 289, 289, 1, 149760, 0xb7cd7cf8
+0, 290, 290, 1, 149760, 0xae1bb1a3
+0, 291, 291, 1, 149760, 0xb4cc355f
+0, 292, 292, 1, 149760, 0x617c1ecb
+0, 293, 293, 1, 149760, 0xf2d1f288
+0, 294, 294, 1, 149760, 0x109bcb52
+0, 295, 295, 1, 149760, 0xe61a97dd
+0, 296, 296, 1, 149760, 0xc629ac10
+0, 297, 297, 1, 149760, 0xb91acded
+0, 298, 298, 1, 149760, 0x54ccb321
+0, 299, 299, 1, 149760, 0x1ad3c115
diff --git a/tests/ref/fate/hevc-conformance-RPS_A_docomo_4 b/tests/ref/fate/hevc-conformance-RPS_A_docomo_4
new file mode 100644
index 0000000000..e29a74b26f
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-RPS_A_docomo_4
@@ -0,0 +1,45 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x8edb27d7
+0, 1, 1, 1, 149760, 0x0bdf13f8
+0, 2, 2, 1, 149760, 0x45e702c7
+0, 3, 3, 1, 149760, 0x7a3a0c9a
+0, 4, 4, 1, 149760, 0xab0ed81d
+0, 5, 5, 1, 149760, 0xe2d4722a
+0, 6, 6, 1, 149760, 0x1df1f103
+0, 7, 7, 1, 149760, 0xdde42fb8
+0, 8, 8, 1, 149760, 0xfe2eb624
+0, 9, 9, 1, 149760, 0x121ff262
+0, 10, 10, 1, 149760, 0x64e5e7ba
+0, 11, 11, 1, 149760, 0x61b40e67
+0, 12, 12, 1, 149760, 0x8ceeb33f
+0, 13, 13, 1, 149760, 0xcbff6fc5
+0, 14, 14, 1, 149760, 0x07d6f767
+0, 15, 15, 1, 149760, 0x5cff14a5
+0, 16, 16, 1, 149760, 0x5c336ca3
+0, 17, 17, 1, 149760, 0x424990cd
+0, 18, 18, 1, 149760, 0x2c423459
+0, 19, 19, 1, 149760, 0xaff700ac
+0, 20, 20, 1, 149760, 0xaab9e6f4
+0, 21, 21, 1, 149760, 0x7979bfd4
+0, 22, 22, 1, 149760, 0x5096ee11
+0, 23, 23, 1, 149760, 0x4f02d1d0
+0, 24, 24, 1, 149760, 0x0c6468d2
+0, 25, 25, 1, 149760, 0x707e9307
+0, 26, 26, 1, 149760, 0xf4a71dc8
+0, 27, 27, 1, 149760, 0xbefc67f0
+0, 28, 28, 1, 149760, 0x05b8f3a9
+0, 29, 29, 1, 149760, 0xcd080a46
+0, 30, 30, 1, 149760, 0x1b5ab043
+0, 31, 31, 1, 149760, 0xd4b896e2
+0, 32, 32, 1, 149760, 0xbd342d08
+0, 33, 33, 1, 149760, 0x0b993f3c
+0, 34, 34, 1, 149760, 0xd89190e2
+0, 35, 35, 1, 149760, 0x507f2663
+0, 36, 36, 1, 149760, 0x6994c08f
+0, 37, 37, 1, 149760, 0xcf0209b2
+0, 38, 38, 1, 149760, 0x9695327c
+0, 39, 39, 1, 149760, 0x7116fdb3
+0, 40, 40, 1, 149760, 0x1294b154
+0, 41, 41, 1, 149760, 0x7ed1f716
+0, 42, 42, 1, 149760, 0xdc4880da
+0, 43, 43, 1, 149760, 0xa5955d35
diff --git a/tests/ref/fate/hevc-conformance-RPS_B_qualcomm_5 b/tests/ref/fate/hevc-conformance-RPS_B_qualcomm_5
new file mode 100644
index 0000000000..3b24e753b8
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-RPS_B_qualcomm_5
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0xdb5e3b56
+0, 1, 1, 1, 149760, 0xe328e677
+0, 2, 2, 1, 149760, 0x8f18f4c0
+0, 3, 3, 1, 149760, 0xf48de64c
+0, 4, 4, 1, 149760, 0x2937ad23
+0, 5, 5, 1, 149760, 0x93f166d2
+0, 6, 6, 1, 149760, 0x80e4e9c2
+0, 7, 7, 1, 149760, 0xb2a35da7
+0, 8, 8, 1, 149760, 0xf4fbb5c2
+0, 9, 9, 1, 149760, 0x2193bd91
+0, 10, 10, 1, 149760, 0xd4eec3b4
+0, 11, 11, 1, 149760, 0xb2e20b91
+0, 12, 12, 1, 149760, 0xaf8d17dc
+0, 13, 13, 1, 149760, 0x2189ac78
+0, 14, 14, 1, 149760, 0x52b8130f
+0, 15, 15, 1, 149760, 0xdfbc2f0a
+0, 16, 16, 1, 149760, 0x4c0269cf
+0, 17, 17, 1, 149760, 0xf99bb7d2
+0, 18, 18, 1, 149760, 0xada1495f
+0, 19, 19, 1, 149760, 0x57c42893
+0, 20, 20, 1, 149760, 0x022d29ca
+0, 21, 21, 1, 149760, 0x9883a271
+0, 22, 22, 1, 149760, 0xc8c132d7
+0, 23, 23, 1, 149760, 0xa97f8b43
+0, 24, 24, 1, 149760, 0x1bc187fa
+0, 25, 25, 1, 149760, 0x7b93951b
+0, 26, 26, 1, 149760, 0x88fd367c
+0, 27, 27, 1, 149760, 0x29471b92
+0, 28, 28, 1, 149760, 0x3ba820f1
+0, 29, 29, 1, 149760, 0x0a223169
+0, 30, 30, 1, 149760, 0x70fee1d5
+0, 31, 31, 1, 149760, 0x5f5cf053
+0, 32, 32, 1, 149760, 0x698f11e4
+0, 33, 33, 1, 149760, 0x65314fd4
+0, 34, 34, 1, 149760, 0x7a689450
+0, 35, 35, 1, 149760, 0x28774ca0
+0, 36, 36, 1, 149760, 0x0751f804
+0, 37, 37, 1, 149760, 0x875a6fb9
+0, 38, 38, 1, 149760, 0xde1f5309
+0, 39, 39, 1, 149760, 0x82701dd6
+0, 40, 40, 1, 149760, 0x13a2f45e
+0, 41, 41, 1, 149760, 0xfc3b140c
+0, 42, 42, 1, 149760, 0x4518ab47
+0, 43, 43, 1, 149760, 0xe5459482
+0, 44, 44, 1, 149760, 0x4cfafc6e
+0, 45, 45, 1, 149760, 0xc7cd5e43
+0, 46, 46, 1, 149760, 0x1ee79746
+0, 47, 47, 1, 149760, 0xccc73c83
+0, 48, 48, 1, 149760, 0xd9ecafc7
+0, 49, 49, 1, 149760, 0x65221c9d
+0, 50, 50, 1, 149760, 0x219b0b4b
+0, 51, 51, 1, 149760, 0x9d1e2010
+0, 52, 52, 1, 149760, 0x11685e16
+0, 53, 53, 1, 149760, 0x37eb1297
+0, 54, 54, 1, 149760, 0x99088778
+0, 55, 55, 1, 149760, 0xb41cbf25
+0, 56, 56, 1, 149760, 0x56f78bda
+0, 57, 57, 1, 149760, 0x6c284868
+0, 58, 58, 1, 149760, 0x37f245b9
+0, 59, 59, 1, 149760, 0x79682de2
+0, 60, 60, 1, 149760, 0x5a04f379
+0, 61, 61, 1, 149760, 0xfecc668b
+0, 62, 62, 1, 149760, 0x29328d8c
+0, 63, 63, 1, 149760, 0x8aff3ad7
+0, 64, 64, 1, 149760, 0x4035f027
+0, 65, 65, 1, 149760, 0xe7cead1d
+0, 66, 66, 1, 149760, 0x18578492
+0, 67, 67, 1, 149760, 0xd3ab3f9d
+0, 68, 68, 1, 149760, 0x6f866e38
+0, 69, 69, 1, 149760, 0x6a47800c
+0, 70, 70, 1, 149760, 0x01c6305e
+0, 71, 71, 1, 149760, 0x489ab5a8
+0, 72, 72, 1, 149760, 0xb2570787
+0, 73, 73, 1, 149760, 0xb0d5d478
+0, 74, 74, 1, 149760, 0x88484ccc
+0, 75, 75, 1, 149760, 0xb4c6be2c
+0, 76, 76, 1, 149760, 0x461d874c
+0, 77, 77, 1, 149760, 0x3be464b0
+0, 78, 78, 1, 149760, 0x06aa9443
+0, 79, 79, 1, 149760, 0xe0e625a3
+0, 80, 80, 1, 149760, 0x17e2daeb
+0, 81, 81, 1, 149760, 0x58a1a350
+0, 82, 82, 1, 149760, 0xcd4983ce
+0, 83, 83, 1, 149760, 0x90459a42
+0, 84, 84, 1, 149760, 0x899dedaa
+0, 85, 85, 1, 149760, 0x814e3529
+0, 86, 86, 1, 149760, 0x5795a2e5
+0, 87, 87, 1, 149760, 0xcedb245c
+0, 88, 88, 1, 149760, 0x37f9dd30
+0, 89, 89, 1, 149760, 0x320d899e
+0, 90, 90, 1, 149760, 0x6a33ffca
+0, 91, 91, 1, 149760, 0x6620b9eb
+0, 92, 92, 1, 149760, 0xfc8b1e1b
+0, 93, 93, 1, 149760, 0x835a0dd9
+0, 94, 94, 1, 149760, 0xcee4a9b0
+0, 95, 95, 1, 149760, 0x2c2972f0
+0, 96, 96, 1, 149760, 0x0a39aa8b
+0, 97, 97, 1, 149760, 0xa8a9c0bf
+0, 98, 98, 1, 149760, 0xd563c087
+0, 99, 99, 1, 149760, 0xb0f88320
+0, 100, 100, 1, 149760, 0x0ffffd6b
+0, 101, 101, 1, 149760, 0x95269e8c
+0, 102, 102, 1, 149760, 0xd0d4acd9
+0, 103, 103, 1, 149760, 0x7cf06805
+0, 104, 104, 1, 149760, 0xa5192bbe
+0, 105, 105, 1, 149760, 0x2fed928b
+0, 106, 106, 1, 149760, 0x549edd04
+0, 107, 107, 1, 149760, 0xa42b55d7
+0, 108, 108, 1, 149760, 0xeab32579
+0, 109, 109, 1, 149760, 0x95a727c3
+0, 110, 110, 1, 149760, 0x76714576
+0, 111, 111, 1, 149760, 0x5efc352a
+0, 112, 112, 1, 149760, 0x154a2c06
+0, 113, 113, 1, 149760, 0x516faf62
+0, 114, 114, 1, 149760, 0x622b6d64
+0, 115, 115, 1, 149760, 0x2ada08a9
+0, 116, 116, 1, 149760, 0xf24efa06
+0, 117, 117, 1, 149760, 0x5979b33e
+0, 118, 118, 1, 149760, 0x2130a282
+0, 119, 119, 1, 149760, 0x1ee8b3d1
+0, 120, 120, 1, 149760, 0x840c6913
+0, 121, 121, 1, 149760, 0xa37049b8
+0, 122, 122, 1, 149760, 0x8d95efb0
+0, 123, 123, 1, 149760, 0x22d3afb2
+0, 124, 124, 1, 149760, 0x113d6c6f
+0, 125, 125, 1, 149760, 0xb407014d
+0, 126, 126, 1, 149760, 0x33a8e5c9
+0, 127, 127, 1, 149760, 0x2689ced2
+0, 128, 128, 1, 149760, 0x3eaf3f55
+0, 129, 129, 1, 149760, 0x93ad7fa5
+0, 130, 130, 1, 149760, 0x30c15154
+0, 131, 131, 1, 149760, 0xdce68c7a
+0, 132, 132, 1, 149760, 0xea092d4c
+0, 133, 133, 1, 149760, 0xed679468
+0, 134, 134, 1, 149760, 0x9128c0d5
+0, 135, 135, 1, 149760, 0xd4f121ba
+0, 136, 136, 1, 149760, 0xe5e228f0
+0, 137, 137, 1, 149760, 0x8246dae3
+0, 138, 138, 1, 149760, 0x8a3b430c
+0, 139, 139, 1, 149760, 0x9a8edc3d
+0, 140, 140, 1, 149760, 0x68b0af97
+0, 141, 141, 1, 149760, 0x90d54b52
+0, 142, 142, 1, 149760, 0xd6395796
+0, 143, 143, 1, 149760, 0x70986b40
+0, 144, 144, 1, 149760, 0xc0b4a9c8
+0, 145, 145, 1, 149760, 0x760b973b
+0, 146, 146, 1, 149760, 0xe8fe9846
+0, 147, 147, 1, 149760, 0x61062c97
+0, 148, 148, 1, 149760, 0x9148e99b
+0, 149, 149, 1, 149760, 0x962c6a1e
+0, 150, 150, 1, 149760, 0x57bb088f
+0, 151, 151, 1, 149760, 0x2b0fa8c5
+0, 152, 152, 1, 149760, 0x00f932fc
+0, 153, 153, 1, 149760, 0x4cc58697
+0, 154, 154, 1, 149760, 0xd2bf178f
+0, 155, 155, 1, 149760, 0xc510c1cd
+0, 156, 156, 1, 149760, 0xc48e0192
+0, 157, 157, 1, 149760, 0xa03e7fe5
+0, 158, 158, 1, 149760, 0xb68ce060
+0, 159, 159, 1, 149760, 0x653951c8
+0, 160, 160, 1, 149760, 0xbd1abe11
+0, 161, 161, 1, 149760, 0xad7a2366
+0, 162, 162, 1, 149760, 0xb018279e
+0, 163, 163, 1, 149760, 0xd5994bff
+0, 164, 164, 1, 149760, 0x3eb7e082
+0, 165, 165, 1, 149760, 0x87257b3a
+0, 166, 166, 1, 149760, 0x12fc4c4d
+0, 167, 167, 1, 149760, 0x9fbfa94d
+0, 168, 168, 1, 149760, 0x61714cae
+0, 169, 169, 1, 149760, 0xae291b59
+0, 170, 170, 1, 149760, 0x8f161442
+0, 171, 171, 1, 149760, 0x603cf3a5
+0, 172, 172, 1, 149760, 0xf9f214a0
+0, 173, 173, 1, 149760, 0xbbf5dcb9
+0, 174, 174, 1, 149760, 0x8af1a1ab
+0, 175, 175, 1, 149760, 0x16f581e5
+0, 176, 176, 1, 149760, 0xdadd8eed
+0, 177, 177, 1, 149760, 0x2f1acd8e
+0, 178, 178, 1, 149760, 0xa28bd660
+0, 179, 179, 1, 149760, 0x7902dd67
+0, 180, 180, 1, 149760, 0x9b771dc2
+0, 181, 181, 1, 149760, 0x0fc82bda
+0, 182, 182, 1, 149760, 0xd6128167
+0, 183, 183, 1, 149760, 0xe57b7a2f
+0, 184, 184, 1, 149760, 0x1e158d0e
+0, 185, 185, 1, 149760, 0x682c7c60
+0, 186, 186, 1, 149760, 0x32096bbe
+0, 187, 187, 1, 149760, 0x297652f2
+0, 188, 188, 1, 149760, 0x056c7432
+0, 189, 189, 1, 149760, 0x0469b39a
+0, 190, 190, 1, 149760, 0x00044bc9
+0, 191, 191, 1, 149760, 0x766c0bad
+0, 192, 192, 1, 149760, 0xd6720a40
+0, 193, 193, 1, 149760, 0x814895eb
+0, 194, 194, 1, 149760, 0x1a84fcbc
+0, 195, 195, 1, 149760, 0x8b9442aa
+0, 196, 196, 1, 149760, 0x290187d1
+0, 197, 197, 1, 149760, 0x8f87294f
+0, 198, 198, 1, 149760, 0x8c49a125
+0, 199, 199, 1, 149760, 0xe169806a
+0, 200, 200, 1, 149760, 0x18c0e2f1
+0, 201, 201, 1, 149760, 0xb92b0e67
+0, 202, 202, 1, 149760, 0x98d2acef
+0, 203, 203, 1, 149760, 0x179eeaec
+0, 204, 204, 1, 149760, 0xa054a7bb
+0, 205, 205, 1, 149760, 0x5f78d160
+0, 206, 206, 1, 149760, 0x09f9a40f
+0, 207, 207, 1, 149760, 0xfb4a59f5
+0, 208, 208, 1, 149760, 0xdc5ca1f2
+0, 209, 209, 1, 149760, 0xf2254927
+0, 210, 210, 1, 149760, 0xfda4fab3
+0, 211, 211, 1, 149760, 0x45ab23cc
+0, 212, 212, 1, 149760, 0x1f69c006
+0, 213, 213, 1, 149760, 0x326bb5a1
+0, 214, 214, 1, 149760, 0x810dad28
+0, 215, 215, 1, 149760, 0x96dfc515
+0, 216, 216, 1, 149760, 0xc685fd80
+0, 217, 217, 1, 149760, 0x18da42f4
+0, 218, 218, 1, 149760, 0x11773807
+0, 219, 219, 1, 149760, 0x3f54c458
+0, 220, 220, 1, 149760, 0xa5dff146
+0, 221, 221, 1, 149760, 0x4bc3ffcb
+0, 222, 222, 1, 149760, 0x84801971
+0, 223, 223, 1, 149760, 0x2ff65539
+0, 224, 224, 1, 149760, 0x8a7f716d
+0, 225, 225, 1, 149760, 0xe7e8cdd0
+0, 226, 226, 1, 149760, 0xc8567d5f
+0, 227, 227, 1, 149760, 0x63986bcd
+0, 228, 228, 1, 149760, 0x8817f648
+0, 229, 229, 1, 149760, 0xa0152e36
+0, 230, 230, 1, 149760, 0x2eca851e
+0, 231, 231, 1, 149760, 0x09c0f0cb
+0, 232, 232, 1, 149760, 0xf1c81b23
+0, 233, 233, 1, 149760, 0x93096c98
+0, 234, 234, 1, 149760, 0x1fe47331
+0, 235, 235, 1, 149760, 0x79c0b70e
+0, 236, 236, 1, 149760, 0xb1929b60
+0, 237, 237, 1, 149760, 0xb42ea35a
+0, 238, 238, 1, 149760, 0x42d5bf86
+0, 239, 239, 1, 149760, 0xa83efbd4
+0, 240, 240, 1, 149760, 0xbdd2f313
+0, 241, 241, 1, 149760, 0x85a5dbd4
+0, 242, 242, 1, 149760, 0xc475b180
+0, 243, 243, 1, 149760, 0x63911e68
+0, 244, 244, 1, 149760, 0x5b79baab
+0, 245, 245, 1, 149760, 0xa22d310e
+0, 246, 246, 1, 149760, 0x243ef7b5
+0, 247, 247, 1, 149760, 0x813fdc95
+0, 248, 248, 1, 149760, 0xbb7d19fa
+0, 249, 249, 1, 149760, 0x199ae62c
+0, 250, 250, 1, 149760, 0x7a4ce5b2
+0, 251, 251, 1, 149760, 0xd632a9d3
+0, 252, 252, 1, 149760, 0xc07b75fe
+0, 253, 253, 1, 149760, 0x5bae6a88
+0, 254, 254, 1, 149760, 0x29b411e0
+0, 255, 255, 1, 149760, 0x78706cbe
+0, 256, 256, 1, 149760, 0x2659a6cb
+0, 257, 257, 1, 149760, 0xefb170f8
+0, 258, 258, 1, 149760, 0x9dd107b8
+0, 259, 259, 1, 149760, 0xf38b5ce5
+0, 260, 260, 1, 149760, 0xd7e0f10e
+0, 261, 261, 1, 149760, 0x080b9e49
+0, 262, 262, 1, 149760, 0xa2274c3b
+0, 263, 263, 1, 149760, 0x3d3376c9
+0, 264, 264, 1, 149760, 0xe04719e3
+0, 265, 265, 1, 149760, 0xfe4123e3
+0, 266, 266, 1, 149760, 0x769a3cf6
+0, 267, 267, 1, 149760, 0xaf0be9e6
+0, 268, 268, 1, 149760, 0xe9baa873
+0, 269, 269, 1, 149760, 0x4f5fb405
+0, 270, 270, 1, 149760, 0x207b401e
+0, 271, 271, 1, 149760, 0xb1483351
+0, 272, 272, 1, 149760, 0x5fe3dc9f
+0, 273, 273, 1, 149760, 0xb35dcae7
+0, 274, 274, 1, 149760, 0x8cc69de4
+0, 275, 275, 1, 149760, 0xd6e29308
+0, 276, 276, 1, 149760, 0xf8f53227
+0, 277, 277, 1, 149760, 0xaf483e80
+0, 278, 278, 1, 149760, 0x287cdfc9
+0, 279, 279, 1, 149760, 0xf72b93eb
+0, 280, 280, 1, 149760, 0x09c26976
+0, 281, 281, 1, 149760, 0xae58601f
+0, 282, 282, 1, 149760, 0x7f951546
+0, 283, 283, 1, 149760, 0x81e742b2
+0, 284, 284, 1, 149760, 0xb16554a6
+0, 285, 285, 1, 149760, 0xcdafc4c0
+0, 286, 286, 1, 149760, 0x0bb335bc
+0, 287, 287, 1, 149760, 0xe1e4ba60
+0, 288, 288, 1, 149760, 0xcce3eb48
+0, 289, 289, 1, 149760, 0x8b8992a9
+0, 290, 290, 1, 149760, 0x0a5ff2f6
+0, 291, 291, 1, 149760, 0xb04b8ed1
+0, 292, 292, 1, 149760, 0x0c874aae
+0, 293, 293, 1, 149760, 0x19d6f138
+0, 294, 294, 1, 149760, 0x30e322f2
+0, 295, 295, 1, 149760, 0x67a5700c
+0, 296, 296, 1, 149760, 0xb65bd462
+0, 297, 297, 1, 149760, 0xe267d09e
+0, 298, 298, 1, 149760, 0x8824c043
+0, 299, 299, 1, 149760, 0x680cfc20
diff --git a/tests/ref/fate/hevc-conformance-RPS_C_ericsson_4 b/tests/ref/fate/hevc-conformance-RPS_C_ericsson_4
new file mode 100644
index 0000000000..e97e7eafa2
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-RPS_C_ericsson_4
@@ -0,0 +1,41 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x8ce7200b
+0, 1, 1, 1, 149760, 0x85340cda
+0, 2, 2, 1, 149760, 0x16fd1f91
+0, 3, 3, 1, 149760, 0x7d8d312d
+0, 4, 4, 1, 149760, 0xae6ed875
+0, 5, 5, 1, 149760, 0xccac730a
+0, 6, 6, 1, 149760, 0x3d321c3f
+0, 7, 7, 1, 149760, 0x18e05688
+0, 8, 8, 1, 149760, 0x23fec4de
+0, 9, 9, 1, 149760, 0x3e0de0ca
+0, 10, 10, 1, 149760, 0x4789e861
+0, 11, 11, 1, 149760, 0x34550f71
+0, 12, 12, 1, 149760, 0xb0b1b4a7
+0, 13, 13, 1, 149760, 0xb9b8967e
+0, 14, 14, 1, 149760, 0x92e7f3c5
+0, 15, 15, 1, 149760, 0x61c0f62e
+0, 16, 16, 1, 149760, 0x819648c5
+0, 17, 17, 1, 149760, 0xe0286f95
+0, 18, 18, 1, 149760, 0xc2d85311
+0, 19, 19, 1, 149760, 0xbb07ec4e
+0, 20, 20, 1, 149760, 0xe073f10b
+0, 21, 21, 1, 149760, 0xd2e8c52f
+0, 22, 22, 1, 149760, 0x12020583
+0, 23, 23, 1, 149760, 0x0dfecaba
+0, 24, 24, 1, 149760, 0xe35f8ee5
+0, 25, 25, 1, 149760, 0x267bbf14
+0, 26, 26, 1, 149760, 0x371037a8
+0, 27, 27, 1, 149760, 0x3d188434
+0, 28, 28, 1, 149760, 0xce81fd31
+0, 29, 29, 1, 149760, 0xfbbf2801
+0, 30, 30, 1, 149760, 0x9af9d1b6
+0, 31, 31, 1, 149760, 0x14e2feea
+0, 32, 32, 1, 149760, 0x83f04b3a
+0, 33, 33, 1, 149760, 0xfc30687f
+0, 34, 34, 1, 149760, 0xaec2be07
+0, 35, 35, 1, 149760, 0xc7da6926
+0, 36, 36, 1, 149760, 0x50d20e8e
+0, 37, 37, 1, 149760, 0xd0fa63e9
+0, 38, 38, 1, 149760, 0x9d15906a
+0, 39, 39, 1, 149760, 0x4c685317
diff --git a/tests/ref/fate/hevc-conformance-RPS_D_ericsson_5 b/tests/ref/fate/hevc-conformance-RPS_D_ericsson_5
new file mode 100644
index 0000000000..1a58c0d7ff
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-RPS_D_ericsson_5
@@ -0,0 +1,69 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x8ce7200b
+0, 2, 2, 1, 149760, 0x73610669
+0, 3, 3, 1, 149760, 0xc01620f4
+0, 4, 4, 1, 149760, 0x847a4297
+0, 5, 5, 1, 149760, 0xb4d3e870
+0, 6, 6, 1, 149760, 0xc2dd98a6
+0, 7, 7, 1, 149760, 0xefd02009
+0, 8, 8, 1, 149760, 0x3ae86ed0
+0, 9, 9, 1, 149760, 0x92f3cfb6
+0, 10, 10, 1, 149760, 0x0393e437
+0, 11, 11, 1, 149760, 0x6b29ea60
+0, 12, 12, 1, 149760, 0x9cb1216a
+0, 13, 13, 1, 149760, 0x82c2b1c4
+0, 14, 14, 1, 149760, 0x74899241
+0, 15, 15, 1, 149760, 0xa561f720
+0, 16, 16, 1, 149760, 0x339a11f6
+0, 17, 17, 1, 149760, 0x6bd9772b
+0, 18, 18, 1, 149760, 0x0a0c7c7d
+0, 19, 19, 1, 149760, 0x38426f65
+0, 20, 20, 1, 149760, 0x134ee7b3
+0, 21, 21, 1, 149760, 0xe436e35c
+0, 22, 22, 1, 149760, 0x4174d949
+0, 23, 23, 1, 149760, 0x44e60f0d
+0, 24, 24, 1, 149760, 0xbb6fb0a4
+0, 25, 25, 1, 149760, 0x715a653e
+0, 26, 26, 1, 149760, 0xad11b160
+0, 27, 27, 1, 149760, 0xfa6b368e
+0, 28, 28, 1, 149760, 0x60ff970f
+0, 29, 29, 1, 149760, 0x16430649
+0, 30, 30, 1, 149760, 0xa6cc0767
+0, 31, 31, 1, 149760, 0x59b0c566
+0, 32, 32, 1, 149760, 0xc9e3dfa9
+0, 33, 33, 1, 149760, 0x82873917
+0, 34, 34, 1, 149760, 0xc49e5d22
+0, 35, 35, 1, 149760, 0x416890a8
+0, 36, 36, 1, 149760, 0x386e57e8
+0, 37, 37, 1, 149760, 0x1c27e9d7
+0, 38, 38, 1, 149760, 0x85425596
+0, 39, 39, 1, 149760, 0xe6107df8
+0, 40, 40, 1, 149760, 0x056a3977
+0, 41, 41, 1, 149760, 0x753cf7f7
+0, 42, 42, 1, 149760, 0xc4005218
+0, 43, 43, 1, 149760, 0xce7edcf2
+0, 44, 44, 1, 149760, 0x93465fee
+0, 45, 45, 1, 149760, 0xa21b040a
+0, 46, 46, 1, 149760, 0xd82a53d5
+0, 47, 47, 1, 149760, 0x8f8fd3ae
+0, 48, 48, 1, 149760, 0x52420da5
+0, 49, 49, 1, 149760, 0xa899a9be
+0, 50, 50, 1, 149760, 0xcd85e363
+0, 51, 51, 1, 149760, 0x1a9240c4
+0, 52, 52, 1, 149760, 0xf0b11a36
+0, 53, 53, 1, 149760, 0xcf175809
+0, 54, 54, 1, 149760, 0x24afecc2
+0, 55, 55, 1, 149760, 0x874f7176
+0, 56, 56, 1, 149760, 0xb126dff9
+0, 57, 57, 1, 149760, 0x825ba060
+0, 58, 58, 1, 149760, 0x18c55eed
+0, 59, 59, 1, 149760, 0xf09b03f0
+0, 60, 60, 1, 149760, 0xf4dafd64
+0, 61, 61, 1, 149760, 0x08b49190
+0, 62, 62, 1, 149760, 0xcf336dc7
+0, 63, 63, 1, 149760, 0x51c65c08
+0, 64, 64, 1, 149760, 0x6cfe3433
+0, 65, 65, 1, 149760, 0x4b0af196
+0, 66, 66, 1, 149760, 0xffaeb2db
+0, 67, 67, 1, 149760, 0xa990a19f
+0, 68, 68, 1, 149760, 0x7ed944a3
diff --git a/tests/ref/fate/hevc-conformance-RPS_E_qualcomm_5 b/tests/ref/fate/hevc-conformance-RPS_E_qualcomm_5
new file mode 100644
index 0000000000..82c25e171f
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-RPS_E_qualcomm_5
@@ -0,0 +1,301 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x8edb27d7
+0, 1, 1, 1, 149760, 0xd62a31bc
+0, 2, 2, 1, 149760, 0xec822f84
+0, 3, 3, 1, 149760, 0x7a0a0f25
+0, 4, 4, 1, 149760, 0x461dd882
+0, 5, 5, 1, 149760, 0x62777923
+0, 6, 6, 1, 149760, 0x063c2559
+0, 7, 7, 1, 149760, 0x03b34c02
+0, 8, 8, 1, 149760, 0xe999bdad
+0, 9, 9, 1, 149760, 0x3285f731
+0, 10, 10, 1, 149760, 0x1f8ffaaa
+0, 11, 11, 1, 149760, 0xd7c956f4
+0, 12, 12, 1, 149760, 0xb9e3da56
+0, 13, 13, 1, 149760, 0x1200953f
+0, 14, 14, 1, 149760, 0x06c212cc
+0, 15, 15, 1, 149760, 0xaaa84f01
+0, 16, 16, 1, 149760, 0x7a606de8
+0, 17, 17, 1, 149760, 0x47e49e5a
+0, 18, 18, 1, 149760, 0x666a3370
+0, 19, 19, 1, 149760, 0x187b6b6c
+0, 20, 20, 1, 149760, 0x3c8f0ef4
+0, 21, 21, 1, 149760, 0xc3e59d36
+0, 22, 22, 1, 149760, 0xecb40b3b
+0, 23, 23, 1, 149760, 0x0ae9e31e
+0, 24, 24, 1, 149760, 0xd324746b
+0, 25, 25, 1, 149760, 0xc337c3d5
+0, 26, 26, 1, 149760, 0xd3883c16
+0, 27, 27, 1, 149760, 0xa28b836c
+0, 28, 28, 1, 149760, 0x1cd61f86
+0, 29, 29, 1, 149760, 0x52b51344
+0, 30, 30, 1, 149760, 0x3980a396
+0, 31, 31, 1, 149760, 0x85d0e262
+0, 32, 32, 1, 149760, 0xbd342d08
+0, 33, 33, 1, 149760, 0xc6114038
+0, 34, 34, 1, 149760, 0xc3ab6ca9
+0, 35, 35, 1, 149760, 0x6db56aa7
+0, 36, 36, 1, 149760, 0x22df9ab0
+0, 37, 37, 1, 149760, 0xfa6d2caf
+0, 38, 38, 1, 149760, 0xc1b64e52
+0, 39, 39, 1, 149760, 0x4b9c1d64
+0, 40, 40, 1, 149760, 0xbab6de8f
+0, 41, 41, 1, 149760, 0xfc0e1193
+0, 42, 42, 1, 149760, 0x8fa0a268
+0, 43, 43, 1, 149760, 0x80cf5e07
+0, 44, 44, 1, 149760, 0xe9720cd6
+0, 45, 45, 1, 149760, 0xa9bb2593
+0, 46, 46, 1, 149760, 0xc2e3e7c6
+0, 47, 47, 1, 149760, 0xc9a4ffd6
+0, 48, 48, 1, 149760, 0x9acebbe2
+0, 49, 49, 1, 149760, 0xb3a6bee1
+0, 50, 50, 1, 149760, 0xd1f12057
+0, 51, 51, 1, 149760, 0x9a2306c0
+0, 52, 52, 1, 149760, 0xd1ee37ff
+0, 53, 53, 1, 149760, 0xb0e1dca1
+0, 54, 54, 1, 149760, 0x35646e46
+0, 55, 55, 1, 149760, 0x803baac5
+0, 56, 56, 1, 149760, 0x7ee17b15
+0, 57, 57, 1, 149760, 0x03274ce1
+0, 58, 58, 1, 149760, 0xf3db2fea
+0, 59, 59, 1, 149760, 0xc3c4ff33
+0, 60, 60, 1, 149760, 0x0fc4786e
+0, 61, 61, 1, 149760, 0x27505756
+0, 62, 62, 1, 149760, 0x4c797266
+0, 63, 63, 1, 149760, 0xeba43f1b
+0, 64, 64, 1, 149760, 0x1ae5f13d
+0, 65, 65, 1, 149760, 0x97e186b1
+0, 66, 66, 1, 149760, 0xc0556895
+0, 67, 67, 1, 149760, 0x4e4d18ed
+0, 68, 68, 1, 149760, 0x39811c80
+0, 69, 69, 1, 149760, 0x6bca8c2f
+0, 70, 70, 1, 149760, 0x27ec4807
+0, 71, 71, 1, 149760, 0x50cea38b
+0, 72, 72, 1, 149760, 0x7ec4c09d
+0, 73, 73, 1, 149760, 0xb2a8afee
+0, 74, 74, 1, 149760, 0x0e943cbf
+0, 75, 75, 1, 149760, 0x7c119ea8
+0, 76, 76, 1, 149760, 0x71e194e5
+0, 77, 77, 1, 149760, 0x6a5d792d
+0, 78, 78, 1, 149760, 0xb8aeb406
+0, 79, 79, 1, 149760, 0x263767f2
+0, 80, 80, 1, 149760, 0xcfbef5ae
+0, 81, 81, 1, 149760, 0xad7eb01c
+0, 82, 82, 1, 149760, 0x612d937d
+0, 83, 83, 1, 149760, 0x90a591fd
+0, 84, 84, 1, 149760, 0x582a60dd
+0, 85, 85, 1, 149760, 0x2640124e
+0, 86, 86, 1, 149760, 0x1c12b037
+0, 87, 87, 1, 149760, 0xc916c4e7
+0, 88, 88, 1, 149760, 0x43d2bfe6
+0, 89, 89, 1, 149760, 0xdc7460c4
+0, 90, 90, 1, 149760, 0xc46e21a8
+0, 91, 91, 1, 149760, 0xe08dbd50
+0, 92, 92, 1, 149760, 0xf40bceed
+0, 93, 93, 1, 149760, 0x0ab01b81
+0, 94, 94, 1, 149760, 0xe6ab1f16
+0, 95, 95, 1, 149760, 0x6b4f6a62
+0, 96, 96, 1, 149760, 0x8ff7a1a1
+0, 97, 97, 1, 149760, 0x079be281
+0, 98, 98, 1, 149760, 0xa24bc187
+0, 99, 99, 1, 149760, 0xfbed7e79
+0, 100, 100, 1, 149760, 0xa27c2048
+0, 101, 101, 1, 149760, 0xe6119831
+0, 102, 102, 1, 149760, 0xc75684c6
+0, 103, 103, 1, 149760, 0x76575ef4
+0, 104, 104, 1, 149760, 0xebd32a7e
+0, 105, 105, 1, 149760, 0x6e5c703a
+0, 106, 106, 1, 149760, 0x3c43d0b3
+0, 107, 107, 1, 149760, 0xcc3354af
+0, 108, 108, 1, 149760, 0xa7bc26f3
+0, 109, 109, 1, 149760, 0xb04b0400
+0, 110, 110, 1, 149760, 0x3e5d3995
+0, 111, 111, 1, 149760, 0x549331ae
+0, 112, 112, 1, 149760, 0xd39031c0
+0, 113, 113, 1, 149760, 0xada1a1bd
+0, 114, 114, 1, 149760, 0xd08a4bcb
+0, 115, 115, 1, 149760, 0xcbefb4fa
+0, 116, 116, 1, 149760, 0xb311a7e0
+0, 117, 117, 1, 149760, 0xab23a6f2
+0, 118, 118, 1, 149760, 0xa90a6dfb
+0, 119, 119, 1, 149760, 0xafcc72b7
+0, 120, 120, 1, 149760, 0xe7c48044
+0, 121, 121, 1, 149760, 0x4449cf72
+0, 122, 122, 1, 149760, 0xfe4ba9d7
+0, 123, 123, 1, 149760, 0x76623bda
+0, 124, 124, 1, 149760, 0x8d071b0b
+0, 125, 125, 1, 149760, 0x777aaefa
+0, 126, 126, 1, 149760, 0xab995bab
+0, 127, 127, 1, 149760, 0xfd0e8e0c
+0, 128, 128, 1, 149760, 0xb6d651e5
+0, 129, 129, 1, 149760, 0x0646c2d0
+0, 130, 130, 1, 149760, 0xefc2561a
+0, 131, 131, 1, 149760, 0xaa86dcd1
+0, 132, 132, 1, 149760, 0x0caf821e
+0, 133, 133, 1, 149760, 0x55a5e7fa
+0, 134, 134, 1, 149760, 0x1a011bae
+0, 135, 135, 1, 149760, 0xe7a922b2
+0, 136, 136, 1, 149760, 0x4b968175
+0, 137, 137, 1, 149760, 0xc0bc1018
+0, 138, 138, 1, 149760, 0x58775461
+0, 139, 139, 1, 149760, 0x77dad082
+0, 140, 140, 1, 149760, 0x995e78d7
+0, 141, 141, 1, 149760, 0xc6360898
+0, 142, 142, 1, 149760, 0xbd0b48ce
+0, 143, 143, 1, 149760, 0x6d076602
+0, 144, 144, 1, 149760, 0xc3459e98
+0, 145, 145, 1, 149760, 0x8e53625e
+0, 146, 146, 1, 149760, 0xd1ba7915
+0, 147, 147, 1, 149760, 0xf41a48e7
+0, 148, 148, 1, 149760, 0xc3fbdcc3
+0, 149, 149, 1, 149760, 0x1f726dcf
+0, 150, 150, 1, 149760, 0x6f882d61
+0, 151, 151, 1, 149760, 0x2e02c8c5
+0, 152, 152, 1, 149760, 0x35ed54c6
+0, 153, 153, 1, 149760, 0x11dd8c48
+0, 154, 154, 1, 149760, 0xc95bf20b
+0, 155, 155, 1, 149760, 0x64f96433
+0, 156, 156, 1, 149760, 0x1ab5d8d5
+0, 157, 157, 1, 149760, 0x3af856f0
+0, 158, 158, 1, 149760, 0xdaa3bd1b
+0, 159, 159, 1, 149760, 0x25c64816
+0, 160, 160, 1, 149760, 0x6a4cc5d7
+0, 161, 161, 1, 149760, 0xf8e815f5
+0, 162, 162, 1, 149760, 0xa0bf431e
+0, 163, 163, 1, 149760, 0x09567fc4
+0, 164, 164, 1, 149760, 0x2d9408d7
+0, 165, 165, 1, 149760, 0xe09fff24
+0, 166, 166, 1, 149760, 0x6d58a81b
+0, 167, 167, 1, 149760, 0x0280e181
+0, 168, 168, 1, 149760, 0x465e63d1
+0, 169, 169, 1, 149760, 0xedb432a0
+0, 170, 170, 1, 149760, 0xdff70d73
+0, 171, 171, 1, 149760, 0x9386fdb4
+0, 172, 172, 1, 149760, 0xdcb03cb9
+0, 173, 173, 1, 149760, 0x3538dbd4
+0, 174, 174, 1, 149760, 0xc637709d
+0, 175, 175, 1, 149760, 0x7a1a6681
+0, 176, 176, 1, 149760, 0x403ca1e0
+0, 177, 177, 1, 149760, 0xe562d48a
+0, 178, 178, 1, 149760, 0x90a2e933
+0, 179, 179, 1, 149760, 0x0e9e167a
+0, 180, 180, 1, 149760, 0x2da90c4d
+0, 181, 181, 1, 149760, 0x2ce92218
+0, 182, 182, 1, 149760, 0x164a613d
+0, 183, 183, 1, 149760, 0x336d9e2e
+0, 184, 184, 1, 149760, 0x598986e6
+0, 185, 185, 1, 149760, 0xd0039cfc
+0, 186, 186, 1, 149760, 0x8e74c5e6
+0, 187, 187, 1, 149760, 0xb95fa63c
+0, 188, 188, 1, 149760, 0xc688c596
+0, 189, 189, 1, 149760, 0x4757034b
+0, 190, 190, 1, 149760, 0xc9ac948a
+0, 191, 191, 1, 149760, 0x580b9d60
+0, 192, 192, 1, 149760, 0xf39031d6
+0, 193, 193, 1, 149760, 0x2d68ad7b
+0, 194, 194, 1, 149760, 0xf72815ea
+0, 195, 195, 1, 149760, 0xc16323fa
+0, 196, 196, 1, 149760, 0x8a65665e
+0, 197, 197, 1, 149760, 0xcf1d5a89
+0, 198, 198, 1, 149760, 0x03f3011a
+0, 199, 199, 1, 149760, 0x24c47cbc
+0, 200, 200, 1, 149760, 0xcc89db6d
+0, 201, 201, 1, 149760, 0xd8332e3c
+0, 202, 202, 1, 149760, 0x8a73af5f
+0, 203, 203, 1, 149760, 0x9079e1c5
+0, 204, 204, 1, 149760, 0x7b70b098
+0, 205, 205, 1, 149760, 0x8a0fc720
+0, 206, 206, 1, 149760, 0x92644eef
+0, 207, 207, 1, 149760, 0x75cc5f7a
+0, 208, 208, 1, 149760, 0xf04b9756
+0, 209, 209, 1, 149760, 0x156b33cd
+0, 210, 210, 1, 149760, 0x4876d087
+0, 211, 211, 1, 149760, 0x393c01c8
+0, 212, 212, 1, 149760, 0x29b0a5d9
+0, 213, 213, 1, 149760, 0xd76249a1
+0, 214, 214, 1, 149760, 0xb946135e
+0, 215, 215, 1, 149760, 0x4968f245
+0, 216, 216, 1, 149760, 0xb91e27b2
+0, 217, 217, 1, 149760, 0x485bfa6c
+0, 218, 218, 1, 149760, 0xe7f9fe28
+0, 219, 219, 1, 149760, 0x46a6a837
+0, 220, 220, 1, 149760, 0xd2cf971c
+0, 221, 221, 1, 149760, 0xcb518e01
+0, 222, 222, 1, 149760, 0x7870fcd4
+0, 223, 223, 1, 149760, 0x8af73981
+0, 224, 224, 1, 149760, 0xa90281a7
+0, 225, 225, 1, 149760, 0x3fd9c634
+0, 226, 226, 1, 149760, 0x5c4e7e8a
+0, 227, 227, 1, 149760, 0x520d80e9
+0, 228, 228, 1, 149760, 0xd94a7e31
+0, 229, 229, 1, 149760, 0x2a846f4e
+0, 230, 230, 1, 149760, 0x71f027f1
+0, 231, 231, 1, 149760, 0x6edbe368
+0, 232, 232, 1, 149760, 0x5c9923eb
+0, 233, 233, 1, 149760, 0xff230eab
+0, 234, 234, 1, 149760, 0xc7a5ca99
+0, 235, 235, 1, 149760, 0x50732f2a
+0, 236, 236, 1, 149760, 0xa9f3c8bc
+0, 237, 237, 1, 149760, 0x7fa53464
+0, 238, 238, 1, 149760, 0xe4c2edcd
+0, 239, 239, 1, 149760, 0x43f1e758
+0, 240, 240, 1, 149760, 0xdb6b153b
+0, 241, 241, 1, 149760, 0x0979d792
+0, 242, 242, 1, 149760, 0xaae4a6fd
+0, 243, 243, 1, 149760, 0x7ffd1046
+0, 244, 244, 1, 149760, 0x083becd8
+0, 245, 245, 1, 149760, 0xba86428d
+0, 246, 246, 1, 149760, 0xd4cf652a
+0, 247, 247, 1, 149760, 0xe518a1e4
+0, 248, 248, 1, 149760, 0xfbcf0017
+0, 249, 249, 1, 149760, 0xd827b5b1
+0, 250, 250, 1, 149760, 0x6b95eb0d
+0, 251, 251, 1, 149760, 0x625bf8f9
+0, 252, 252, 1, 149760, 0xde17b8b8
+0, 253, 253, 1, 149760, 0xfd731e76
+0, 254, 254, 1, 149760, 0xae0ce756
+0, 255, 255, 1, 149760, 0x15ec506d
+0, 256, 256, 1, 149760, 0xfc9dba5c
+0, 257, 257, 1, 149760, 0x87e46ba1
+0, 258, 258, 1, 149760, 0x31f1d787
+0, 259, 259, 1, 149760, 0xfbde528e
+0, 260, 260, 1, 149760, 0x152becf8
+0, 261, 261, 1, 149760, 0x008386d7
+0, 262, 262, 1, 149760, 0x53c00ef9
+0, 263, 263, 1, 149760, 0x322d4f0b
+0, 264, 264, 1, 149760, 0xd31bf0ec
+0, 265, 265, 1, 149760, 0x66b5097e
+0, 266, 266, 1, 149760, 0xa9cd719f
+0, 267, 267, 1, 149760, 0x427cdc52
+0, 268, 268, 1, 149760, 0x6647dabc
+0, 269, 269, 1, 149760, 0x651df15f
+0, 270, 270, 1, 149760, 0x4ce124c7
+0, 271, 271, 1, 149760, 0x8ad42ad7
+0, 272, 272, 1, 149760, 0x7303ce98
+0, 273, 273, 1, 149760, 0x0c8ad3ab
+0, 274, 274, 1, 149760, 0x86859065
+0, 275, 275, 1, 149760, 0x97f23fc7
+0, 276, 276, 1, 149760, 0x6fde3d1a
+0, 277, 277, 1, 149760, 0xca12860e
+0, 278, 278, 1, 149760, 0xd0c98709
+0, 279, 279, 1, 149760, 0x8f234c79
+0, 280, 280, 1, 149760, 0xbc6987fa
+0, 281, 281, 1, 149760, 0x40246698
+0, 282, 282, 1, 149760, 0x7f83b9ad
+0, 283, 283, 1, 149760, 0x87a3596b
+0, 284, 284, 1, 149760, 0x0ba5d7f6
+0, 285, 285, 1, 149760, 0x2a015c97
+0, 286, 286, 1, 149760, 0xa1a73e7b
+0, 287, 287, 1, 149760, 0x3c1d8178
+0, 288, 288, 1, 149760, 0x2207f0b6
+0, 289, 289, 1, 149760, 0x1f56738a
+0, 290, 290, 1, 149760, 0x0014e5b6
+0, 291, 291, 1, 149760, 0xe0113ffa
+0, 292, 292, 1, 149760, 0x7df23683
+0, 293, 293, 1, 149760, 0x2a1afb23
+0, 294, 294, 1, 149760, 0x072ced03
+0, 295, 295, 1, 149760, 0x7afca5d3
+0, 296, 296, 1, 149760, 0x6055b3da
+0, 297, 297, 1, 149760, 0xa785c79c
+0, 298, 298, 1, 149760, 0x3606db52
+0, 299, 299, 1, 149760, 0x007fdd05
diff --git a/tests/ref/fate/hevc-conformance-RQT_A_HHI_4 b/tests/ref/fate/hevc-conformance-RQT_A_HHI_4
new file mode 100644
index 0000000000..5f2b9dabd3
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-RQT_A_HHI_4
@@ -0,0 +1,3 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x5c0f5423
+0, 1, 1, 1, 599040, 0x3d23be58
diff --git a/tests/ref/fate/hevc-conformance-RQT_B_HHI_4 b/tests/ref/fate/hevc-conformance-RQT_B_HHI_4
new file mode 100644
index 0000000000..dcf2691738
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-RQT_B_HHI_4
@@ -0,0 +1,3 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x69854954
+0, 1, 1, 1, 599040, 0x695ebc85
diff --git a/tests/ref/fate/hevc-conformance-RQT_C_HHI_4 b/tests/ref/fate/hevc-conformance-RQT_C_HHI_4
new file mode 100644
index 0000000000..2e88350fe0
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-RQT_C_HHI_4
@@ -0,0 +1,3 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x65433cfe
+0, 1, 1, 1, 599040, 0x9309e2c5
diff --git a/tests/ref/fate/hevc-conformance-RQT_D_HHI_4 b/tests/ref/fate/hevc-conformance-RQT_D_HHI_4
new file mode 100644
index 0000000000..7f73896084
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-RQT_D_HHI_4
@@ -0,0 +1,3 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x88d741bf
+0, 1, 1, 1, 599040, 0xbbd9ab22
diff --git a/tests/ref/fate/hevc-conformance-RQT_E_HHI_4 b/tests/ref/fate/hevc-conformance-RQT_E_HHI_4
new file mode 100644
index 0000000000..f0623188fd
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-RQT_E_HHI_4
@@ -0,0 +1,3 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0xce2e511d
+0, 1, 1, 1, 599040, 0xe55192d0
diff --git a/tests/ref/fate/hevc-conformance-RQT_F_HHI_4 b/tests/ref/fate/hevc-conformance-RQT_F_HHI_4
new file mode 100644
index 0000000000..26bf5acc7a
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-RQT_F_HHI_4
@@ -0,0 +1,3 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x65433cfe
+0, 1, 1, 1, 599040, 0x6f99cc5f
diff --git a/tests/ref/fate/hevc-conformance-RQT_G_HHI_4 b/tests/ref/fate/hevc-conformance-RQT_G_HHI_4
new file mode 100644
index 0000000000..d36ea01172
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-RQT_G_HHI_4
@@ -0,0 +1,3 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x5c0f5423
+0, 1, 1, 1, 599040, 0xe805b181
diff --git a/tests/ref/fate/hevc-conformance-SAO_A_MediaTek_4 b/tests/ref/fate/hevc-conformance-SAO_A_MediaTek_4
new file mode 100644
index 0000000000..01226d9776
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-SAO_A_MediaTek_4
@@ -0,0 +1,61 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x304198c2
+0, 1, 1, 1, 149760, 0xe765e30d
+0, 2, 2, 1, 149760, 0x0130a054
+0, 3, 3, 1, 149760, 0x169ed0c3
+0, 4, 4, 1, 149760, 0x334881a5
+0, 5, 5, 1, 149760, 0x06cadd37
+0, 6, 6, 1, 149760, 0x5ec4a7ee
+0, 7, 7, 1, 149760, 0x595fd534
+0, 8, 8, 1, 149760, 0xa1d97197
+0, 9, 9, 1, 149760, 0xf79a9d84
+0, 10, 10, 1, 149760, 0x10d84f28
+0, 11, 11, 1, 149760, 0xab375848
+0, 12, 12, 1, 149760, 0x3079f8ca
+0, 13, 13, 1, 149760, 0xac101dfb
+0, 14, 14, 1, 149760, 0x5354f852
+0, 15, 15, 1, 149760, 0x64d709d5
+0, 16, 16, 1, 149760, 0xff669ff2
+0, 17, 17, 1, 149760, 0xd20dd474
+0, 18, 18, 1, 149760, 0x32439e22
+0, 19, 19, 1, 149760, 0x3ae5a118
+0, 20, 20, 1, 149760, 0xebe245ef
+0, 21, 21, 1, 149760, 0x9d046e35
+0, 22, 22, 1, 149760, 0x2e5b2347
+0, 23, 23, 1, 149760, 0x0e683e86
+0, 24, 24, 1, 149760, 0xccc1019e
+0, 25, 25, 1, 149760, 0x42a9571a
+0, 26, 26, 1, 149760, 0x8999386c
+0, 27, 27, 1, 149760, 0x3d164645
+0, 28, 28, 1, 149760, 0x657afc5e
+0, 29, 29, 1, 149760, 0x06f832f9
+0, 30, 30, 1, 149760, 0xfbedfe1e
+0, 31, 31, 1, 149760, 0x1edc2fc5
+0, 32, 32, 1, 149760, 0xe1cee4e7
+0, 33, 33, 1, 149760, 0x43a823e0
+0, 34, 34, 1, 149760, 0xc2f42916
+0, 35, 35, 1, 149760, 0x51db1483
+0, 36, 36, 1, 149760, 0x54a9d6bf
+0, 37, 37, 1, 149760, 0x7324e246
+0, 38, 38, 1, 149760, 0x2523cc9d
+0, 39, 39, 1, 149760, 0xfa3bdce3
+0, 40, 40, 1, 149760, 0xcf9fb7bb
+0, 41, 41, 1, 149760, 0xe914e23c
+0, 42, 42, 1, 149760, 0x6c9fd72a
+0, 43, 43, 1, 149760, 0x3580cca9
+0, 44, 44, 1, 149760, 0x1d4ec5c0
+0, 45, 45, 1, 149760, 0x52c4d418
+0, 46, 46, 1, 149760, 0xb728ae3e
+0, 47, 47, 1, 149760, 0x6616ae50
+0, 48, 48, 1, 149760, 0x6f1a919d
+0, 49, 49, 1, 149760, 0x6e76b774
+0, 50, 50, 1, 149760, 0x6075b37d
+0, 51, 51, 1, 149760, 0xeeb7b8df
+0, 52, 52, 1, 149760, 0xfd979056
+0, 53, 53, 1, 149760, 0xc0fda5ee
+0, 54, 54, 1, 149760, 0xd1329055
+0, 55, 55, 1, 149760, 0x9b179f0f
+0, 56, 56, 1, 149760, 0x7461850a
+0, 57, 57, 1, 149760, 0xe63a86ea
+0, 58, 58, 1, 149760, 0xe85c6f94
+0, 59, 59, 1, 149760, 0x0b857d13
diff --git a/tests/ref/fate/hevc-conformance-SAO_B_MediaTek_5 b/tests/ref/fate/hevc-conformance-SAO_B_MediaTek_5
new file mode 100644
index 0000000000..9da0268057
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-SAO_B_MediaTek_5
@@ -0,0 +1,61 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0xe56f6a5c
+0, 1, 1, 1, 599040, 0x31ec1bb9
+0, 2, 2, 1, 599040, 0xf3ce0311
+0, 3, 3, 1, 599040, 0x1ae1c223
+0, 4, 4, 1, 599040, 0x4369499d
+0, 5, 5, 1, 599040, 0xd7366bd6
+0, 6, 6, 1, 599040, 0x6d3a9099
+0, 7, 7, 1, 599040, 0x49dea495
+0, 8, 8, 1, 599040, 0x375640e7
+0, 9, 9, 1, 599040, 0x76b6f9b0
+0, 10, 10, 1, 599040, 0x7d1f48cf
+0, 11, 11, 1, 599040, 0x4a01899c
+0, 12, 12, 1, 599040, 0x34ff06e6
+0, 13, 13, 1, 599040, 0x270d874f
+0, 14, 14, 1, 599040, 0x5a091d5c
+0, 15, 15, 1, 599040, 0x36406961
+0, 16, 16, 1, 599040, 0xd32f2687
+0, 17, 17, 1, 599040, 0x8d533cb5
+0, 18, 18, 1, 599040, 0x5f189f98
+0, 19, 19, 1, 599040, 0x32b76de3
+0, 20, 20, 1, 599040, 0x2dd0e738
+0, 21, 21, 1, 599040, 0xbc24fe31
+0, 22, 22, 1, 599040, 0xfd5e6578
+0, 23, 23, 1, 599040, 0x23ea676c
+0, 24, 24, 1, 599040, 0xa86d1f70
+0, 25, 25, 1, 599040, 0xef35e81e
+0, 26, 26, 1, 599040, 0x19e5b355
+0, 27, 27, 1, 599040, 0x9dab17b3
+0, 28, 28, 1, 599040, 0x1aebe590
+0, 29, 29, 1, 599040, 0x6fd9b16e
+0, 30, 30, 1, 599040, 0xd2f3087b
+0, 31, 31, 1, 599040, 0x4bdc5019
+0, 32, 32, 1, 599040, 0xeccd10a0
+0, 33, 33, 1, 599040, 0x1eacd33c
+0, 34, 34, 1, 599040, 0xc73d2b6d
+0, 35, 35, 1, 599040, 0xe1305f2b
+0, 36, 36, 1, 599040, 0xb66c5e54
+0, 37, 37, 1, 599040, 0x0ac17870
+0, 38, 38, 1, 599040, 0x9d976180
+0, 39, 39, 1, 599040, 0x0be7d418
+0, 40, 40, 1, 599040, 0x5c4fb909
+0, 41, 41, 1, 599040, 0x7a4de7c2
+0, 42, 42, 1, 599040, 0x9c0d3ed3
+0, 43, 43, 1, 599040, 0xf9b2ba7e
+0, 44, 44, 1, 599040, 0x78e77b58
+0, 45, 45, 1, 599040, 0xc30ead17
+0, 46, 46, 1, 599040, 0x647c9095
+0, 47, 47, 1, 599040, 0x070d61a3
+0, 48, 48, 1, 599040, 0x0ec33c61
+0, 49, 49, 1, 599040, 0x0adcf4f3
+0, 50, 50, 1, 599040, 0x5cbb5aa6
+0, 51, 51, 1, 599040, 0xb9f99f74
+0, 52, 52, 1, 599040, 0xebc3c13e
+0, 53, 53, 1, 599040, 0x40e76036
+0, 54, 54, 1, 599040, 0xf08d2df3
+0, 55, 55, 1, 599040, 0x47442b55
+0, 56, 56, 1, 599040, 0x147622c1
+0, 57, 57, 1, 599040, 0xc95508a3
+0, 58, 58, 1, 599040, 0x361b8995
+0, 59, 59, 1, 599040, 0x51086ed4
diff --git a/tests/ref/fate/hevc-conformance-SAO_C_Samsung_4 b/tests/ref/fate/hevc-conformance-SAO_C_Samsung_4
new file mode 100644
index 0000000000..f87921d315
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-SAO_C_Samsung_4
@@ -0,0 +1,61 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0xf923a1a0
+0, 1, 1, 1, 149760, 0x614d851a
+0, 2, 2, 1, 149760, 0xc3976ce4
+0, 3, 3, 1, 149760, 0x39925bdc
+0, 4, 4, 1, 149760, 0x86067422
+0, 5, 5, 1, 149760, 0x60dc6078
+0, 6, 6, 1, 149760, 0xac79a412
+0, 7, 7, 1, 149760, 0x3b1bab1e
+0, 8, 8, 1, 149760, 0x7562555f
+0, 9, 9, 1, 149760, 0xf0a2385f
+0, 10, 10, 1, 149760, 0xd2661fa6
+0, 11, 11, 1, 149760, 0x89b30a0a
+0, 12, 12, 1, 149760, 0x3c59f8cb
+0, 13, 13, 1, 149760, 0x70e4da0a
+0, 14, 14, 1, 149760, 0x5e60caa8
+0, 15, 15, 1, 149760, 0x9828a7e0
+0, 16, 16, 1, 149760, 0x11e069a1
+0, 17, 17, 1, 149760, 0xe98a55c2
+0, 18, 18, 1, 149760, 0xaa9f64e5
+0, 19, 19, 1, 149760, 0x03c32cea
+0, 20, 20, 1, 149760, 0x869e0f6e
+0, 21, 21, 1, 149760, 0x54baeff8
+0, 22, 22, 1, 149760, 0xf1f8cc04
+0, 23, 23, 1, 149760, 0x1724aafb
+0, 24, 24, 1, 149760, 0xaf01b9f8
+0, 25, 25, 1, 149760, 0xb1b5bbe9
+0, 26, 26, 1, 149760, 0xd9e6d5a4
+0, 27, 27, 1, 149760, 0x8351ca2d
+0, 28, 28, 1, 149760, 0x38dceffe
+0, 29, 29, 1, 149760, 0x3bffe1c4
+0, 30, 30, 1, 149760, 0x4075b534
+0, 31, 31, 1, 149760, 0x0e8fb246
+0, 32, 32, 1, 149760, 0x70fceafb
+0, 33, 33, 1, 149760, 0x940bec8d
+0, 34, 34, 1, 149760, 0x7d34f896
+0, 35, 35, 1, 149760, 0x39a1d77f
+0, 36, 36, 1, 149760, 0x9755e104
+0, 37, 37, 1, 149760, 0xd584cb48
+0, 38, 38, 1, 149760, 0x06ecdd44
+0, 39, 39, 1, 149760, 0x0226a40d
+0, 40, 40, 1, 149760, 0xb53aaf56
+0, 41, 41, 1, 149760, 0xdad4a984
+0, 42, 42, 1, 149760, 0xa58c9eb0
+0, 43, 43, 1, 149760, 0x7330bde6
+0, 44, 44, 1, 149760, 0x98fcabd9
+0, 45, 45, 1, 149760, 0x9570b74a
+0, 46, 46, 1, 149760, 0x3c1eab60
+0, 47, 47, 1, 149760, 0x2038a069
+0, 48, 48, 1, 149760, 0x672fa347
+0, 49, 49, 1, 149760, 0xa7328b16
+0, 50, 50, 1, 149760, 0x677b6a87
+0, 51, 51, 1, 149760, 0xb036b028
+0, 52, 52, 1, 149760, 0x7a7f9966
+0, 53, 53, 1, 149760, 0xc34b7c39
+0, 54, 54, 1, 149760, 0xb44345ed
+0, 55, 55, 1, 149760, 0x90193c4a
+0, 56, 56, 1, 149760, 0x90986e7b
+0, 57, 57, 1, 149760, 0x5e8e6545
+0, 58, 58, 1, 149760, 0x3ac7758e
+0, 59, 59, 1, 149760, 0x4dd271fb
diff --git a/tests/ref/fate/hevc-conformance-SAO_D_Samsung_4 b/tests/ref/fate/hevc-conformance-SAO_D_Samsung_4
new file mode 100644
index 0000000000..ce1cefeeaa
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-SAO_D_Samsung_4
@@ -0,0 +1,61 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x0d2edbbc
+0, 1, 1, 1, 149760, 0x4830af95
+0, 2, 2, 1, 149760, 0x39e8d3bb
+0, 3, 3, 1, 149760, 0x3cc8d639
+0, 4, 4, 1, 149760, 0xfcfe8415
+0, 5, 5, 1, 149760, 0xa6cf9a48
+0, 6, 6, 1, 149760, 0x0fe191b3
+0, 7, 7, 1, 149760, 0x71d26e20
+0, 8, 8, 1, 149760, 0x1ee5541a
+0, 9, 9, 1, 149760, 0x4ac56652
+0, 10, 10, 1, 149760, 0x967e7c2c
+0, 11, 11, 1, 149760, 0x2011ba0c
+0, 12, 12, 1, 149760, 0x2da4bc05
+0, 13, 13, 1, 149760, 0x6354fac2
+0, 14, 14, 1, 149760, 0x799e66ce
+0, 15, 15, 1, 149760, 0x2ca24940
+0, 16, 16, 1, 149760, 0x2a102e28
+0, 17, 17, 1, 149760, 0x652edcce
+0, 18, 18, 1, 149760, 0xb1c34a9a
+0, 19, 19, 1, 149760, 0xfae6ce90
+0, 20, 20, 1, 149760, 0xf42fddbf
+0, 21, 21, 1, 149760, 0x2a8532c3
+0, 22, 22, 1, 149760, 0xbe43addc
+0, 23, 23, 1, 149760, 0x3545f94a
+0, 24, 24, 1, 149760, 0xa35fa6fa
+0, 25, 25, 1, 149760, 0xfed8577f
+0, 26, 26, 1, 149760, 0xac03b492
+0, 27, 27, 1, 149760, 0x1fbdabc9
+0, 28, 28, 1, 149760, 0x99707175
+0, 29, 29, 1, 149760, 0x95e69481
+0, 30, 30, 1, 149760, 0xd68412d8
+0, 31, 31, 1, 149760, 0x9f900e37
+0, 32, 32, 1, 149760, 0x7e6eceba
+0, 33, 33, 1, 149760, 0xd1ca85af
+0, 34, 34, 1, 149760, 0x352b1d50
+0, 35, 35, 1, 149760, 0xdef3e377
+0, 36, 36, 1, 149760, 0x08efcc16
+0, 37, 37, 1, 149760, 0xc20a7c74
+0, 38, 38, 1, 149760, 0xa8e45939
+0, 39, 39, 1, 149760, 0x322546cf
+0, 40, 40, 1, 149760, 0xf7167766
+0, 41, 41, 1, 149760, 0x959f808f
+0, 42, 42, 1, 149760, 0xcca5ccc3
+0, 43, 43, 1, 149760, 0x18789407
+0, 44, 44, 1, 149760, 0xf6c97e87
+0, 45, 45, 1, 149760, 0x58aaba55
+0, 46, 46, 1, 149760, 0xc3529005
+0, 47, 47, 1, 149760, 0x3847adb4
+0, 48, 48, 1, 149760, 0xa4d589db
+0, 49, 49, 1, 149760, 0x9c50dd88
+0, 50, 50, 1, 149760, 0xad087c44
+0, 51, 51, 1, 149760, 0x4a6b656d
+0, 52, 52, 1, 149760, 0x6ec79bcf
+0, 53, 53, 1, 149760, 0x82756cb6
+0, 54, 54, 1, 149760, 0x8b3a9a6a
+0, 55, 55, 1, 149760, 0x775c0430
+0, 56, 56, 1, 149760, 0xbaa08d27
+0, 57, 57, 1, 149760, 0x686cd03f
+0, 58, 58, 1, 149760, 0x1b10dc94
+0, 59, 59, 1, 149760, 0xde81e414
diff --git a/tests/ref/fate/hevc-conformance-SAO_E_Canon_4 b/tests/ref/fate/hevc-conformance-SAO_E_Canon_4
new file mode 100644
index 0000000000..92aa7f4f9a
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-SAO_E_Canon_4
@@ -0,0 +1,17 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x1613b277
+0, 1, 1, 1, 149760, 0xf92d5543
+0, 2, 2, 1, 149760, 0xf119ba8e
+0, 3, 3, 1, 149760, 0xbce35d0a
+0, 4, 4, 1, 149760, 0x0f4dc325
+0, 5, 5, 1, 149760, 0xc95379ae
+0, 6, 6, 1, 149760, 0xbf4e9b84
+0, 7, 7, 1, 149760, 0x3a7c3cdf
+0, 8, 8, 1, 149760, 0x8d5e8895
+0, 9, 9, 1, 149760, 0x3128397e
+0, 10, 10, 1, 149760, 0x4389dee6
+0, 11, 11, 1, 149760, 0x8a6a7236
+0, 12, 12, 1, 149760, 0x638049ef
+0, 13, 13, 1, 149760, 0x0075da54
+0, 14, 14, 1, 149760, 0x5fd84a25
+0, 15, 15, 1, 149760, 0xfbd4af2b
diff --git a/tests/ref/fate/hevc-conformance-SAO_F_Canon_3 b/tests/ref/fate/hevc-conformance-SAO_F_Canon_3
new file mode 100644
index 0000000000..cf240558cf
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-SAO_F_Canon_3
@@ -0,0 +1,17 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x92b5107a
+0, 1, 1, 1, 149760, 0x97eb31ef
+0, 2, 2, 1, 149760, 0xeb743e30
+0, 3, 3, 1, 149760, 0x5fc53434
+0, 4, 4, 1, 149760, 0x75fb1d63
+0, 5, 5, 1, 149760, 0xba0aeb27
+0, 6, 6, 1, 149760, 0x3f0f1780
+0, 7, 7, 1, 149760, 0xf5d0f052
+0, 8, 8, 1, 149760, 0x598ee54e
+0, 9, 9, 1, 149760, 0x09fcf908
+0, 10, 10, 1, 149760, 0x68209041
+0, 11, 11, 1, 149760, 0x05f519e9
+0, 12, 12, 1, 149760, 0xfdecf9b3
+0, 13, 13, 1, 149760, 0x40c96df8
+0, 14, 14, 1, 149760, 0x4b3d1b7b
+0, 15, 15, 1, 149760, 0xc0691cd9
diff --git a/tests/ref/fate/hevc-conformance-SAO_G_Canon_3 b/tests/ref/fate/hevc-conformance-SAO_G_Canon_3
new file mode 100644
index 0000000000..5ce6772b21
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-SAO_G_Canon_3
@@ -0,0 +1,17 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0xc4f239e0
+0, 1, 1, 1, 149760, 0xf57a2e44
+0, 2, 2, 1, 149760, 0xbf1e9995
+0, 3, 3, 1, 149760, 0x5fa25087
+0, 4, 4, 1, 149760, 0x709b4c3f
+0, 5, 5, 1, 149760, 0x63abbd5c
+0, 6, 6, 1, 149760, 0xbd87092a
+0, 7, 7, 1, 149760, 0x59156f4a
+0, 8, 8, 1, 149760, 0xf8ed7d88
+0, 9, 9, 1, 149760, 0xdac1cecf
+0, 10, 10, 1, 149760, 0x7ba3b408
+0, 11, 11, 1, 149760, 0xad4bd5f5
+0, 12, 12, 1, 149760, 0x4b1f83c6
+0, 13, 13, 1, 149760, 0x7329797f
+0, 14, 14, 1, 149760, 0x1d201f16
+0, 15, 15, 1, 149760, 0xde263a30
diff --git a/tests/ref/fate/hevc-conformance-SDH_A_Orange_3 b/tests/ref/fate/hevc-conformance-SDH_A_Orange_3
new file mode 100644
index 0000000000..caf90eed0b
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-SDH_A_Orange_3
@@ -0,0 +1,3 @@
+#tb 0: 1/25
+0, 0, 0, 1, 3110400, 0x0117aa5d
+0, 1, 1, 1, 3110400, 0xa737bc56
diff --git a/tests/ref/fate/hevc-conformance-SLICES_A_Rovi_3 b/tests/ref/fate/hevc-conformance-SLICES_A_Rovi_3
new file mode 100644
index 0000000000..f884f7f8d7
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-SLICES_A_Rovi_3
@@ -0,0 +1,10 @@
+#tb 0: 1/25
+0, 0, 0, 1, 460800, 0x7f06cb02
+0, 1, 1, 1, 460800, 0x1ad483aa
+0, 2, 2, 1, 460800, 0x1bbbc991
+0, 3, 3, 1, 460800, 0x8fe7afa5
+0, 4, 4, 1, 460800, 0xe609cb0b
+0, 5, 5, 1, 460800, 0xcc65fec8
+0, 6, 6, 1, 460800, 0xa0601519
+0, 7, 7, 1, 460800, 0x8b0d3002
+0, 8, 8, 1, 460800, 0x7b1191af
diff --git a/tests/ref/fate/hevc-conformance-SLIST_A_Sony_4 b/tests/ref/fate/hevc-conformance-SLIST_A_Sony_4
new file mode 100644
index 0000000000..ebb65c3e2f
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-SLIST_A_Sony_4
@@ -0,0 +1,66 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0xbd0eb43e
+0, 1, 1, 1, 599040, 0x4c3a98b5
+0, 2, 2, 1, 599040, 0x105410dc
+0, 3, 3, 1, 599040, 0xffaff69c
+0, 4, 4, 1, 599040, 0x39cb22ea
+0, 5, 5, 1, 599040, 0xa19296c3
+0, 6, 6, 1, 599040, 0x84cad39d
+0, 7, 7, 1, 599040, 0x5dc5c5a9
+0, 8, 8, 1, 599040, 0xc6a2c0dd
+0, 9, 9, 1, 599040, 0xeb5947bf
+0, 10, 10, 1, 599040, 0x9f8f9ce5
+0, 11, 11, 1, 599040, 0xdce5be4e
+0, 12, 12, 1, 599040, 0x07141c84
+0, 13, 13, 1, 599040, 0x3a05273d
+0, 14, 14, 1, 599040, 0xa16a112c
+0, 15, 15, 1, 599040, 0x6fa79123
+0, 16, 16, 1, 599040, 0xbda4cf46
+0, 17, 17, 1, 599040, 0xa5a81a05
+0, 18, 18, 1, 599040, 0x7370af29
+0, 19, 19, 1, 599040, 0xbd70e89e
+0, 20, 20, 1, 599040, 0xe7850613
+0, 21, 21, 1, 599040, 0xfaa8cf89
+0, 22, 22, 1, 599040, 0x30a78a21
+0, 23, 23, 1, 599040, 0x5520a8cf
+0, 24, 24, 1, 599040, 0xbcd93ea7
+0, 25, 25, 1, 599040, 0xd8ce632c
+0, 26, 26, 1, 599040, 0x87c6476f
+0, 27, 27, 1, 599040, 0xf6799dcc
+0, 28, 28, 1, 599040, 0xc0370664
+0, 29, 29, 1, 599040, 0x17196bd3
+0, 30, 30, 1, 599040, 0xe7ae6de3
+0, 31, 31, 1, 599040, 0x0345bc72
+0, 32, 32, 1, 599040, 0x7b86141e
+0, 33, 33, 1, 599040, 0x65564792
+0, 34, 34, 1, 599040, 0xf90c7f54
+0, 35, 35, 1, 599040, 0x00ce2f3c
+0, 36, 36, 1, 599040, 0xe6b185f2
+0, 37, 37, 1, 599040, 0x513942f1
+0, 38, 38, 1, 599040, 0x7c27b03a
+0, 39, 39, 1, 599040, 0xa201fea3
+0, 40, 40, 1, 599040, 0x5023fd92
+0, 41, 41, 1, 599040, 0xe05ba218
+0, 42, 42, 1, 599040, 0x84b61765
+0, 43, 43, 1, 599040, 0xfa6c8f65
+0, 44, 44, 1, 599040, 0xede8ef78
+0, 45, 45, 1, 599040, 0xcd2763f2
+0, 46, 46, 1, 599040, 0xb83e3bc6
+0, 47, 47, 1, 599040, 0x99fb3a3e
+0, 48, 48, 1, 599040, 0x3dd1e5ac
+0, 49, 49, 1, 599040, 0x776d7464
+0, 50, 50, 1, 599040, 0xaea89891
+0, 51, 51, 1, 599040, 0xfc0f1ec9
+0, 52, 52, 1, 599040, 0x2621f36f
+0, 53, 53, 1, 599040, 0x41101bbc
+0, 54, 54, 1, 599040, 0x7a5d4d0e
+0, 55, 55, 1, 599040, 0xc04fb148
+0, 56, 56, 1, 599040, 0x889d8186
+0, 57, 57, 1, 599040, 0x26f091bf
+0, 58, 58, 1, 599040, 0xe6644a2d
+0, 59, 59, 1, 599040, 0xd48efb7f
+0, 60, 60, 1, 599040, 0xe25204e3
+0, 61, 61, 1, 599040, 0x928f2efd
+0, 62, 62, 1, 599040, 0x535a4f2d
+0, 63, 63, 1, 599040, 0x2672ad63
+0, 64, 64, 1, 599040, 0x194f1463
diff --git a/tests/ref/fate/hevc-conformance-SLIST_B_Sony_8 b/tests/ref/fate/hevc-conformance-SLIST_B_Sony_8
new file mode 100644
index 0000000000..fc39039592
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-SLIST_B_Sony_8
@@ -0,0 +1,66 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0xbd0eb43e
+0, 1, 1, 1, 599040, 0x3ea696c4
+0, 2, 2, 1, 599040, 0x866beffc
+0, 3, 3, 1, 599040, 0x89622860
+0, 4, 4, 1, 599040, 0x416bcaf8
+0, 5, 5, 1, 599040, 0x4098709b
+0, 6, 6, 1, 599040, 0x8d1ef343
+0, 7, 7, 1, 599040, 0xbd1bbc79
+0, 8, 8, 1, 599040, 0xc6a2c0dd
+0, 9, 9, 1, 599040, 0x438cc40e
+0, 10, 10, 1, 599040, 0xb666a438
+0, 11, 11, 1, 599040, 0x114580e4
+0, 12, 12, 1, 599040, 0xb75c41dc
+0, 13, 13, 1, 599040, 0x52e1e32f
+0, 14, 14, 1, 599040, 0x22835865
+0, 15, 15, 1, 599040, 0xfb0e0003
+0, 16, 16, 1, 599040, 0xebcb1ef9
+0, 17, 17, 1, 599040, 0xd6939619
+0, 18, 18, 1, 599040, 0xe22afdd8
+0, 19, 19, 1, 599040, 0xff4a248f
+0, 20, 20, 1, 599040, 0x9fc3878e
+0, 21, 21, 1, 599040, 0xce2f6499
+0, 22, 22, 1, 599040, 0x04aa9986
+0, 23, 23, 1, 599040, 0x68ba9838
+0, 24, 24, 1, 599040, 0x62e950a9
+0, 25, 25, 1, 599040, 0x5161526d
+0, 26, 26, 1, 599040, 0xcdde709e
+0, 27, 27, 1, 599040, 0x8c48ded1
+0, 28, 28, 1, 599040, 0x3451ecbb
+0, 29, 29, 1, 599040, 0xfc5a5fca
+0, 30, 30, 1, 599040, 0x7c0090fe
+0, 31, 31, 1, 599040, 0xbc4eb1de
+0, 32, 32, 1, 599040, 0x5350cf4f
+0, 33, 33, 1, 599040, 0x175152d6
+0, 34, 34, 1, 599040, 0xcf65acea
+0, 35, 35, 1, 599040, 0x099a7298
+0, 36, 36, 1, 599040, 0x31b7a2a2
+0, 37, 37, 1, 599040, 0xd6a71415
+0, 38, 38, 1, 599040, 0xe68880e7
+0, 39, 39, 1, 599040, 0x0c7d0373
+0, 40, 40, 1, 599040, 0xfb56ac78
+0, 41, 41, 1, 599040, 0x1177b0dd
+0, 42, 42, 1, 599040, 0x1393026f
+0, 43, 43, 1, 599040, 0xc6346b58
+0, 44, 44, 1, 599040, 0x2949cd11
+0, 45, 45, 1, 599040, 0xff867f22
+0, 46, 46, 1, 599040, 0xef196e4d
+0, 47, 47, 1, 599040, 0x17a2332c
+0, 48, 48, 1, 599040, 0x45d59fbc
+0, 49, 49, 1, 599040, 0x5f51575c
+0, 50, 50, 1, 599040, 0x6049a451
+0, 51, 51, 1, 599040, 0x4d6086ac
+0, 52, 52, 1, 599040, 0xd709596b
+0, 53, 53, 1, 599040, 0xacdbc22f
+0, 54, 54, 1, 599040, 0x45c11bb5
+0, 55, 55, 1, 599040, 0x608a7c7e
+0, 56, 56, 1, 599040, 0x242a67c9
+0, 57, 57, 1, 599040, 0x2d186d8a
+0, 58, 58, 1, 599040, 0x07ed9fd5
+0, 59, 59, 1, 599040, 0xaee9a49b
+0, 60, 60, 1, 599040, 0xaeb2b2a2
+0, 61, 61, 1, 599040, 0x4ca2d84b
+0, 62, 62, 1, 599040, 0x4254b5f6
+0, 63, 63, 1, 599040, 0x105c7a25
+0, 64, 64, 1, 599040, 0x87b51bce
diff --git a/tests/ref/fate/hevc-conformance-SLIST_C_Sony_3 b/tests/ref/fate/hevc-conformance-SLIST_C_Sony_3
new file mode 100644
index 0000000000..482e56ff36
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-SLIST_C_Sony_3
@@ -0,0 +1,66 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0xc3e98658
+0, 1, 1, 1, 599040, 0x621fa0b7
+0, 2, 2, 1, 599040, 0x53b2e637
+0, 3, 3, 1, 599040, 0x1db118c2
+0, 4, 4, 1, 599040, 0xa25003ba
+0, 5, 5, 1, 599040, 0x51de524b
+0, 6, 6, 1, 599040, 0x5f01f648
+0, 7, 7, 1, 599040, 0x43d8c9cb
+0, 8, 8, 1, 599040, 0xf7f6c7f6
+0, 9, 9, 1, 599040, 0xb08885ec
+0, 10, 10, 1, 599040, 0x1e6e91a7
+0, 11, 11, 1, 599040, 0x18549abd
+0, 12, 12, 1, 599040, 0xef523cbc
+0, 13, 13, 1, 599040, 0x87985e99
+0, 14, 14, 1, 599040, 0x37521482
+0, 15, 15, 1, 599040, 0xe9fbc0ce
+0, 16, 16, 1, 599040, 0x20bab233
+0, 17, 17, 1, 599040, 0xbe3525e6
+0, 18, 18, 1, 599040, 0xace46e50
+0, 19, 19, 1, 599040, 0xf709b3a9
+0, 20, 20, 1, 599040, 0xf2690bc8
+0, 21, 21, 1, 599040, 0x7eacdec3
+0, 22, 22, 1, 599040, 0xaed66c65
+0, 23, 23, 1, 599040, 0x066b2fa6
+0, 24, 24, 1, 599040, 0x5dc050bd
+0, 25, 25, 1, 599040, 0x170e7de1
+0, 26, 26, 1, 599040, 0x2ccd7b16
+0, 27, 27, 1, 599040, 0x4f7bc972
+0, 28, 28, 1, 599040, 0x72d7f274
+0, 29, 29, 1, 599040, 0x44d2396e
+0, 30, 30, 1, 599040, 0xe4dc9b54
+0, 31, 31, 1, 599040, 0xfacba54d
+0, 32, 32, 1, 599040, 0x7b86141e
+0, 33, 33, 1, 599040, 0x65564792
+0, 34, 34, 1, 599040, 0xf90c7f54
+0, 35, 35, 1, 599040, 0x00ce2f3c
+0, 36, 36, 1, 599040, 0xe6b185f2
+0, 37, 37, 1, 599040, 0x513942f1
+0, 38, 38, 1, 599040, 0x7c27b03a
+0, 39, 39, 1, 599040, 0xa201fea3
+0, 40, 40, 1, 599040, 0x5023fd92
+0, 41, 41, 1, 599040, 0xe05ba218
+0, 42, 42, 1, 599040, 0x84b61765
+0, 43, 43, 1, 599040, 0xfa6c8f65
+0, 44, 44, 1, 599040, 0xede8ef78
+0, 45, 45, 1, 599040, 0xcd2763f2
+0, 46, 46, 1, 599040, 0xb83e3bc6
+0, 47, 47, 1, 599040, 0x99fb3a3e
+0, 48, 48, 1, 599040, 0x3dd1e5ac
+0, 49, 49, 1, 599040, 0x776d7464
+0, 50, 50, 1, 599040, 0xaea89891
+0, 51, 51, 1, 599040, 0xfc0f1ec9
+0, 52, 52, 1, 599040, 0x2621f36f
+0, 53, 53, 1, 599040, 0x41101bbc
+0, 54, 54, 1, 599040, 0x7a5d4d0e
+0, 55, 55, 1, 599040, 0xc04fb148
+0, 56, 56, 1, 599040, 0x889d8186
+0, 57, 57, 1, 599040, 0x26f091bf
+0, 58, 58, 1, 599040, 0xe6644a2d
+0, 59, 59, 1, 599040, 0xd48efb7f
+0, 60, 60, 1, 599040, 0xe25204e3
+0, 61, 61, 1, 599040, 0x928f2efd
+0, 62, 62, 1, 599040, 0x535a4f2d
+0, 63, 63, 1, 599040, 0x2672ad63
+0, 64, 64, 1, 599040, 0x194f1463
diff --git a/tests/ref/fate/hevc-conformance-SLIST_D_Sony_9 b/tests/ref/fate/hevc-conformance-SLIST_D_Sony_9
new file mode 100644
index 0000000000..384f81f767
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-SLIST_D_Sony_9
@@ -0,0 +1,66 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0xf3038515
+0, 1, 1, 1, 599040, 0xb1bc9386
+0, 2, 2, 1, 599040, 0xa069e86f
+0, 3, 3, 1, 599040, 0xdf7c4cb7
+0, 4, 4, 1, 599040, 0xefaa2ac5
+0, 5, 5, 1, 599040, 0x81c67c18
+0, 6, 6, 1, 599040, 0xeb1a0669
+0, 7, 7, 1, 599040, 0xbab3c0b8
+0, 8, 8, 1, 599040, 0x82b99936
+0, 9, 9, 1, 599040, 0x027a90d1
+0, 10, 10, 1, 599040, 0x5d6d7489
+0, 11, 11, 1, 599040, 0xeaaf6d39
+0, 12, 12, 1, 599040, 0x7788f8fa
+0, 13, 13, 1, 599040, 0x654393e8
+0, 14, 14, 1, 599040, 0xc6c2237c
+0, 15, 15, 1, 599040, 0x8b16d890
+0, 16, 16, 1, 599040, 0x2c36eed0
+0, 17, 17, 1, 599040, 0x02792aa8
+0, 18, 18, 1, 599040, 0xf4088e47
+0, 19, 19, 1, 599040, 0xea9796ad
+0, 20, 20, 1, 599040, 0xa4aecc01
+0, 21, 21, 1, 599040, 0x2ec8c1c4
+0, 22, 22, 1, 599040, 0xcfa87d49
+0, 23, 23, 1, 599040, 0x012b62f1
+0, 24, 24, 1, 599040, 0xd8b72ae0
+0, 25, 25, 1, 599040, 0xe0ca1977
+0, 26, 26, 1, 599040, 0x3f048981
+0, 27, 27, 1, 599040, 0xe416a928
+0, 28, 28, 1, 599040, 0xdfef9086
+0, 29, 29, 1, 599040, 0xd810cd6a
+0, 30, 30, 1, 599040, 0x11fab789
+0, 31, 31, 1, 599040, 0x90a890d5
+0, 32, 32, 1, 599040, 0x0dabef8d
+0, 33, 33, 1, 599040, 0x7a32557d
+0, 34, 34, 1, 599040, 0xc3427914
+0, 35, 35, 1, 599040, 0x65266a45
+0, 36, 36, 1, 599040, 0x8b5e9213
+0, 37, 37, 1, 599040, 0x4e2e2b0a
+0, 38, 38, 1, 599040, 0xaebdb406
+0, 39, 39, 1, 599040, 0xca35eadb
+0, 40, 40, 1, 599040, 0xb711adc7
+0, 41, 41, 1, 599040, 0x594d28b9
+0, 42, 42, 1, 599040, 0x27fec3c9
+0, 43, 43, 1, 599040, 0x35fe73ce
+0, 44, 44, 1, 599040, 0x3069c845
+0, 45, 45, 1, 599040, 0x2df2a12d
+0, 46, 46, 1, 599040, 0x96d42f5c
+0, 47, 47, 1, 599040, 0x95d9319b
+0, 48, 48, 1, 599040, 0x4f8c92aa
+0, 49, 49, 1, 599040, 0x29620b31
+0, 50, 50, 1, 599040, 0x3d1441f7
+0, 51, 51, 1, 599040, 0x7040914d
+0, 52, 52, 1, 599040, 0x95a73274
+0, 53, 53, 1, 599040, 0xda51c6c7
+0, 54, 54, 1, 599040, 0x41592676
+0, 55, 55, 1, 599040, 0xf21c682b
+0, 56, 56, 1, 599040, 0x5d6b65cf
+0, 57, 57, 1, 599040, 0x13fc6e8e
+0, 58, 58, 1, 599040, 0xe05ec001
+0, 59, 59, 1, 599040, 0x06113d89
+0, 60, 60, 1, 599040, 0x1d74bd0d
+0, 61, 61, 1, 599040, 0x757ffab3
+0, 62, 62, 1, 599040, 0x0599c7fb
+0, 63, 63, 1, 599040, 0x8aaa91ed
+0, 64, 64, 1, 599040, 0x79582f08
diff --git a/tests/ref/fate/hevc-conformance-STRUCT_A_Samsung_5 b/tests/ref/fate/hevc-conformance-STRUCT_A_Samsung_5
new file mode 100644
index 0000000000..da5cfa1883
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-STRUCT_A_Samsung_5
@@ -0,0 +1,61 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x479fa7ca
+0, 1, 1, 1, 149760, 0x761fb3a3
+0, 2, 2, 1, 149760, 0xa0f4cd97
+0, 3, 3, 1, 149760, 0x22a0c92b
+0, 4, 4, 1, 149760, 0xdedc8cb2
+0, 5, 5, 1, 149760, 0x38da8674
+0, 6, 6, 1, 149760, 0xe5d77e68
+0, 7, 7, 1, 149760, 0x31cc6196
+0, 8, 8, 1, 149760, 0xdb70f4d3
+0, 9, 9, 1, 149760, 0x966b6f89
+0, 10, 10, 1, 149760, 0x2297ff66
+0, 11, 11, 1, 149760, 0x2a2fa4e7
+0, 12, 12, 1, 149760, 0x217442b7
+0, 13, 13, 1, 149760, 0x5341ff7f
+0, 14, 14, 1, 149760, 0xb413af37
+0, 15, 15, 1, 149760, 0x61c86ce5
+0, 16, 16, 1, 149760, 0x6b1a0c63
+0, 17, 17, 1, 149760, 0x4596d2e5
+0, 18, 18, 1, 149760, 0xafc0abbd
+0, 19, 19, 1, 149760, 0xb9197a81
+0, 20, 20, 1, 149760, 0xf67d43f3
+0, 21, 21, 1, 149760, 0xe7ef11f2
+0, 22, 22, 1, 149760, 0x89180592
+0, 23, 23, 1, 149760, 0xf6900816
+0, 24, 24, 1, 149760, 0x7cb2f3c0
+0, 25, 25, 1, 149760, 0x71c269f5
+0, 26, 26, 1, 149760, 0x19720666
+0, 27, 27, 1, 149760, 0x5794f402
+0, 28, 28, 1, 149760, 0xe08bf8d2
+0, 29, 29, 1, 149760, 0x11638859
+0, 30, 30, 1, 149760, 0x5024fddc
+0, 31, 31, 1, 149760, 0x8b3d4a37
+0, 32, 32, 1, 149760, 0x5f727144
+0, 33, 33, 1, 149760, 0xb6cf2d76
+0, 34, 34, 1, 149760, 0xf528b070
+0, 35, 35, 1, 149760, 0x3e95f116
+0, 36, 36, 1, 149760, 0x1db5f92a
+0, 37, 37, 1, 149760, 0xf8331667
+0, 38, 38, 1, 149760, 0x57ca4161
+0, 39, 39, 1, 149760, 0x7add32bd
+0, 40, 40, 1, 149760, 0x4b84af44
+0, 41, 41, 1, 149760, 0xf3e1eeaf
+0, 42, 42, 1, 149760, 0x0d602ea8
+0, 43, 43, 1, 149760, 0x420bfdf8
+0, 44, 44, 1, 149760, 0x6e2eb72f
+0, 45, 45, 1, 149760, 0x0450e4ba
+0, 46, 46, 1, 149760, 0xbfa60971
+0, 47, 47, 1, 149760, 0x89791529
+0, 48, 48, 1, 149760, 0x4e32e37b
+0, 49, 49, 1, 149760, 0x273f0927
+0, 50, 50, 1, 149760, 0x0373f961
+0, 51, 51, 1, 149760, 0x5f105bd2
+0, 52, 52, 1, 149760, 0x6b1b290a
+0, 53, 53, 1, 149760, 0xeaad4ccb
+0, 54, 54, 1, 149760, 0xeb21c2e6
+0, 55, 55, 1, 149760, 0x342ff483
+0, 56, 56, 1, 149760, 0x0ac70398
+0, 57, 57, 1, 149760, 0x5366fd7c
+0, 58, 58, 1, 149760, 0xc05249b6
+0, 59, 59, 1, 149760, 0x32279e70
diff --git a/tests/ref/fate/hevc-conformance-STRUCT_B_Samsung_4 b/tests/ref/fate/hevc-conformance-STRUCT_B_Samsung_4
new file mode 100644
index 0000000000..c03111c0c8
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-STRUCT_B_Samsung_4
@@ -0,0 +1,61 @@
+#tb 0: 1/25
+0, 0, 0, 1, 599040, 0x4b489a60
+0, 1, 1, 1, 599040, 0x80369c9a
+0, 2, 2, 1, 599040, 0x33189b1a
+0, 3, 3, 1, 599040, 0x01d73abb
+0, 4, 4, 1, 599040, 0xd5de0ab7
+0, 5, 5, 1, 599040, 0xf7b9f1c3
+0, 6, 6, 1, 599040, 0xe72b6446
+0, 7, 7, 1, 599040, 0xf78cc5d6
+0, 8, 8, 1, 599040, 0x9c6d33a2
+0, 9, 9, 1, 599040, 0xacb6cb08
+0, 10, 10, 1, 599040, 0x2a215019
+0, 11, 11, 1, 599040, 0xcd89d5be
+0, 12, 12, 1, 599040, 0x60403ebb
+0, 13, 13, 1, 599040, 0xc5c62e88
+0, 14, 14, 1, 599040, 0x93403d23
+0, 15, 15, 1, 599040, 0x6b86071d
+0, 16, 16, 1, 599040, 0xfaaad32f
+0, 17, 17, 1, 599040, 0x68651db5
+0, 18, 18, 1, 599040, 0xfbedeba6
+0, 19, 19, 1, 599040, 0x7fa3a0c0
+0, 20, 20, 1, 599040, 0x76b34545
+0, 21, 21, 1, 599040, 0x34e4c1cd
+0, 22, 22, 1, 599040, 0xfad3eda9
+0, 23, 23, 1, 599040, 0xf4324901
+0, 24, 24, 1, 599040, 0x991b4fde
+0, 25, 25, 1, 599040, 0xd9d7823d
+0, 26, 26, 1, 599040, 0xd8a80ca5
+0, 27, 27, 1, 599040, 0x19ae0251
+0, 28, 28, 1, 599040, 0xfa68cda7
+0, 29, 29, 1, 599040, 0xb9c72f07
+0, 30, 30, 1, 599040, 0xf1df5f78
+0, 31, 31, 1, 599040, 0xda75192b
+0, 32, 32, 1, 599040, 0x1102b6e6
+0, 33, 33, 1, 599040, 0x259ec490
+0, 34, 34, 1, 599040, 0xee1dabe5
+0, 35, 35, 1, 599040, 0xf6bf5454
+0, 36, 36, 1, 599040, 0x058061be
+0, 37, 37, 1, 599040, 0x2f9aebeb
+0, 38, 38, 1, 599040, 0x169c0bff
+0, 39, 39, 1, 599040, 0xeffb5a9f
+0, 40, 40, 1, 599040, 0xb3bbebac
+0, 41, 41, 1, 599040, 0x174af746
+0, 42, 42, 1, 599040, 0x8359db57
+0, 43, 43, 1, 599040, 0xdd7693ad
+0, 44, 44, 1, 599040, 0x05aebad4
+0, 45, 45, 1, 599040, 0xc34fd8bc
+0, 46, 46, 1, 599040, 0x2798f32e
+0, 47, 47, 1, 599040, 0x319b9b8c
+0, 48, 48, 1, 599040, 0xa28d783f
+0, 49, 49, 1, 599040, 0x5c79026f
+0, 50, 50, 1, 599040, 0xd4ae9b08
+0, 51, 51, 1, 599040, 0x79b19064
+0, 52, 52, 1, 599040, 0xe773bd75
+0, 53, 53, 1, 599040, 0xfbeda52a
+0, 54, 54, 1, 599040, 0x2ed916e6
+0, 55, 55, 1, 599040, 0xd3243fe7
+0, 56, 56, 1, 599040, 0xfdbc20e8
+0, 57, 57, 1, 599040, 0x80983226
+0, 58, 58, 1, 599040, 0x51c66b23
+0, 59, 59, 1, 599040, 0x30816b80
diff --git a/tests/ref/fate/hevc-conformance-TILES_A_Cisco_2 b/tests/ref/fate/hevc-conformance-TILES_A_Cisco_2
new file mode 100644
index 0000000000..63c9722f5a
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-TILES_A_Cisco_2
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 3110400, 0xfc052e85
+0, 1, 1, 1, 3110400, 0xfb49bf20
+0, 2, 2, 1, 3110400, 0x549eef2b
+0, 3, 3, 1, 3110400, 0xc3857801
+0, 4, 4, 1, 3110400, 0xb27d6aea
+0, 5, 5, 1, 3110400, 0xa52e1d58
+0, 6, 6, 1, 3110400, 0x02d348e6
+0, 7, 7, 1, 3110400, 0x45a9c47c
+0, 8, 8, 1, 3110400, 0xc308e886
+0, 9, 9, 1, 3110400, 0x43cd6ed6
+0, 10, 10, 1, 3110400, 0x29a054ce
+0, 11, 11, 1, 3110400, 0x76fbd08e
+0, 12, 12, 1, 3110400, 0x8638d5e2
+0, 13, 13, 1, 3110400, 0xfb4b7823
+0, 14, 14, 1, 3110400, 0x66185e15
+0, 15, 15, 1, 3110400, 0x82eaea0a
+0, 16, 16, 1, 3110400, 0x5895f1c6
+0, 17, 17, 1, 3110400, 0x0a28a1c7
+0, 18, 18, 1, 3110400, 0x37f2ecc8
+0, 19, 19, 1, 3110400, 0x0ad8b6c1
+0, 20, 20, 1, 3110400, 0x90300dcb
+0, 21, 21, 1, 3110400, 0x9731112d
+0, 22, 22, 1, 3110400, 0x5078ba88
+0, 23, 23, 1, 3110400, 0xdcfbacae
+0, 24, 24, 1, 3110400, 0x40769123
+0, 25, 25, 1, 3110400, 0xa09f4d29
+0, 26, 26, 1, 3110400, 0xa3749feb
+0, 27, 27, 1, 3110400, 0xb04c36ae
+0, 28, 28, 1, 3110400, 0x4d30c177
+0, 29, 29, 1, 3110400, 0xe247070a
+0, 30, 30, 1, 3110400, 0x84c669d5
+0, 31, 31, 1, 3110400, 0x3e0529e6
+0, 32, 32, 1, 3110400, 0xd0d58b7a
+0, 33, 33, 1, 3110400, 0x05de0ffa
+0, 34, 34, 1, 3110400, 0x7d10a27f
+0, 35, 35, 1, 3110400, 0x87dd43fe
+0, 36, 36, 1, 3110400, 0xc6f39e98
+0, 37, 37, 1, 3110400, 0x9bf5a18b
+0, 38, 38, 1, 3110400, 0x4880f4e6
+0, 39, 39, 1, 3110400, 0xbba7a2fd
+0, 40, 40, 1, 3110400, 0x82fe2a14
+0, 41, 41, 1, 3110400, 0x7e701e1c
+0, 42, 42, 1, 3110400, 0x23cdbc0c
+0, 43, 43, 1, 3110400, 0xf15977e6
+0, 44, 44, 1, 3110400, 0x50df6fe2
+0, 45, 45, 1, 3110400, 0x8913ddde
+0, 46, 46, 1, 3110400, 0x633c8c0e
+0, 47, 47, 1, 3110400, 0xea604347
+0, 48, 48, 1, 3110400, 0xa5049365
+0, 49, 49, 1, 3110400, 0x35da77a8
+0, 50, 50, 1, 3110400, 0xcfa4af57
+0, 51, 51, 1, 3110400, 0x5a3bfe64
+0, 52, 52, 1, 3110400, 0x91f9ee34
+0, 53, 53, 1, 3110400, 0x21b0df73
+0, 54, 54, 1, 3110400, 0x7807baf2
+0, 55, 55, 1, 3110400, 0x96dbaf03
+0, 56, 56, 1, 3110400, 0xb8d29f57
+0, 57, 57, 1, 3110400, 0x1a04f732
+0, 58, 58, 1, 3110400, 0x54a34b35
+0, 59, 59, 1, 3110400, 0x4850a07a
+0, 60, 60, 1, 3110400, 0x7010be29
+0, 61, 61, 1, 3110400, 0x7178d2e7
+0, 62, 62, 1, 3110400, 0x17483898
+0, 63, 63, 1, 3110400, 0x4c55872a
+0, 64, 64, 1, 3110400, 0xe67b0f06
+0, 65, 65, 1, 3110400, 0x958789cf
+0, 66, 66, 1, 3110400, 0x5cd6ba06
+0, 67, 67, 1, 3110400, 0xb7852fe2
+0, 68, 68, 1, 3110400, 0x8b67bd9f
+0, 69, 69, 1, 3110400, 0x9555c0ff
+0, 70, 70, 1, 3110400, 0x6b99aab7
+0, 71, 71, 1, 3110400, 0xcab904b7
+0, 72, 72, 1, 3110400, 0xeb915c25
+0, 73, 73, 1, 3110400, 0xd3066bd8
+0, 74, 74, 1, 3110400, 0xa2d45cb5
+0, 75, 75, 1, 3110400, 0x011db978
+0, 76, 76, 1, 3110400, 0xf35b9f2c
+0, 77, 77, 1, 3110400, 0x6afd3bde
+0, 78, 78, 1, 3110400, 0xa1ad77b7
+0, 79, 79, 1, 3110400, 0x8b4d3823
+0, 80, 80, 1, 3110400, 0xd806be79
+0, 81, 81, 1, 3110400, 0x29dcff87
+0, 82, 82, 1, 3110400, 0x202fb0f7
+0, 83, 83, 1, 3110400, 0xacfc7d1d
+0, 84, 84, 1, 3110400, 0xf04bdcb8
+0, 85, 85, 1, 3110400, 0x89cef288
+0, 86, 86, 1, 3110400, 0x657315e2
+0, 87, 87, 1, 3110400, 0x1615cb5f
+0, 88, 88, 1, 3110400, 0xc6986395
+0, 89, 89, 1, 3110400, 0x6b77258e
+0, 90, 90, 1, 3110400, 0xcd9975ae
+0, 91, 91, 1, 3110400, 0x5044fd0f
+0, 92, 92, 1, 3110400, 0x20dd1132
+0, 93, 93, 1, 3110400, 0xdb5a0b84
+0, 94, 94, 1, 3110400, 0xf40d29ae
+0, 95, 95, 1, 3110400, 0xe88bffed
+0, 96, 96, 1, 3110400, 0x3e50146a
+0, 97, 97, 1, 3110400, 0xaacd9bfa
+0, 98, 98, 1, 3110400, 0x270b2c2a
+0, 99, 99, 1, 3110400, 0xc727f760
diff --git a/tests/ref/fate/hevc-conformance-TILES_B_Cisco_1 b/tests/ref/fate/hevc-conformance-TILES_B_Cisco_1
new file mode 100644
index 0000000000..9c3712195f
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-TILES_B_Cisco_1
@@ -0,0 +1,101 @@
+#tb 0: 1/25
+0, 0, 0, 1, 3110400, 0x3471f473
+0, 1, 1, 1, 3110400, 0xb371a3e8
+0, 2, 2, 1, 3110400, 0x6d83c623
+0, 3, 3, 1, 3110400, 0x62d68b96
+0, 4, 4, 1, 3110400, 0xa8ed6ea9
+0, 5, 5, 1, 3110400, 0xcabe52be
+0, 6, 6, 1, 3110400, 0xbbb23578
+0, 7, 7, 1, 3110400, 0xb1609c77
+0, 8, 8, 1, 3110400, 0x61e7c2a7
+0, 9, 9, 1, 3110400, 0x6d8b34ad
+0, 10, 10, 1, 3110400, 0xde0dfa96
+0, 11, 11, 1, 3110400, 0x48c2b0b0
+0, 12, 12, 1, 3110400, 0x647b6f90
+0, 13, 13, 1, 3110400, 0xd37f2dda
+0, 14, 14, 1, 3110400, 0x1b0dd122
+0, 15, 15, 1, 3110400, 0x0b050786
+0, 16, 16, 1, 3110400, 0xcd9ce7e5
+0, 17, 17, 1, 3110400, 0xb92a4ee4
+0, 18, 18, 1, 3110400, 0x4fa4d97c
+0, 19, 19, 1, 3110400, 0x109777eb
+0, 20, 20, 1, 3110400, 0xc3d2236a
+0, 21, 21, 1, 3110400, 0x1cd12d07
+0, 22, 22, 1, 3110400, 0xdd1ef75d
+0, 23, 23, 1, 3110400, 0xd00c0906
+0, 24, 24, 1, 3110400, 0x8de79207
+0, 25, 25, 1, 3110400, 0x18017e1e
+0, 26, 26, 1, 3110400, 0x4329f68a
+0, 27, 27, 1, 3110400, 0x6a402bae
+0, 28, 28, 1, 3110400, 0x90eb1a20
+0, 29, 29, 1, 3110400, 0xe3474876
+0, 30, 30, 1, 3110400, 0xd652e216
+0, 31, 31, 1, 3110400, 0xeb458ebb
+0, 32, 32, 1, 3110400, 0xc5aff075
+0, 33, 33, 1, 3110400, 0xcb4d72e7
+0, 34, 34, 1, 3110400, 0x5504d9c5
+0, 35, 35, 1, 3110400, 0xcd0147b4
+0, 36, 36, 1, 3110400, 0xe2f0001e
+0, 37, 37, 1, 3110400, 0xa2199fe5
+0, 38, 38, 1, 3110400, 0x2f269683
+0, 39, 39, 1, 3110400, 0x7cf11244
+0, 40, 40, 1, 3110400, 0xf39cb39d
+0, 41, 41, 1, 3110400, 0x0e195a06
+0, 42, 42, 1, 3110400, 0x195e31e3
+0, 43, 43, 1, 3110400, 0xc43cd272
+0, 44, 44, 1, 3110400, 0x9dc1c4ea
+0, 45, 45, 1, 3110400, 0x846cd55f
+0, 46, 46, 1, 3110400, 0xe9468052
+0, 47, 47, 1, 3110400, 0xc5bb38ff
+0, 48, 48, 1, 3110400, 0xd1886697
+0, 49, 49, 1, 3110400, 0x23f2012b
+0, 50, 50, 1, 3110400, 0x669d63ff
+0, 51, 51, 1, 3110400, 0xced83804
+0, 52, 52, 1, 3110400, 0x005f5f3d
+0, 53, 53, 1, 3110400, 0x772efc80
+0, 54, 54, 1, 3110400, 0x94012838
+0, 55, 55, 1, 3110400, 0x99770054
+0, 56, 56, 1, 3110400, 0x8654c655
+0, 57, 57, 1, 3110400, 0xed3d19f4
+0, 58, 58, 1, 3110400, 0x8efc2172
+0, 59, 59, 1, 3110400, 0x9aaf930d
+0, 60, 60, 1, 3110400, 0xbe32f43e
+0, 61, 61, 1, 3110400, 0x6008f53e
+0, 62, 62, 1, 3110400, 0xb87897b9
+0, 63, 63, 1, 3110400, 0xe2406eb1
+0, 64, 64, 1, 3110400, 0xbdfa067b
+0, 65, 65, 1, 3110400, 0x82a16dbd
+0, 66, 66, 1, 3110400, 0x909aa5f0
+0, 67, 67, 1, 3110400, 0xc63836b5
+0, 68, 68, 1, 3110400, 0xaf7ad199
+0, 69, 69, 1, 3110400, 0xfa010078
+0, 70, 70, 1, 3110400, 0x00c0c24e
+0, 71, 71, 1, 3110400, 0xbda7cc4e
+0, 72, 72, 1, 3110400, 0xda97f9d5
+0, 73, 73, 1, 3110400, 0xd359e94a
+0, 74, 74, 1, 3110400, 0xcd48c131
+0, 75, 75, 1, 3110400, 0xb52ca032
+0, 76, 76, 1, 3110400, 0x55a69650
+0, 77, 77, 1, 3110400, 0x7241c1a9
+0, 78, 78, 1, 3110400, 0xf06c5744
+0, 79, 79, 1, 3110400, 0xe1befd73
+0, 80, 80, 1, 3110400, 0xe8ffea92
+0, 81, 81, 1, 3110400, 0xd76e40b6
+0, 82, 82, 1, 3110400, 0xbf5f5b4c
+0, 83, 83, 1, 3110400, 0x0eb8d128
+0, 84, 84, 1, 3110400, 0x453dd680
+0, 85, 85, 1, 3110400, 0x7114fada
+0, 86, 86, 1, 3110400, 0xa3b4e7a8
+0, 87, 87, 1, 3110400, 0xbca356f0
+0, 88, 88, 1, 3110400, 0x80a83fa3
+0, 89, 89, 1, 3110400, 0x713a33d4
+0, 90, 90, 1, 3110400, 0x4fda8aea
+0, 91, 91, 1, 3110400, 0x31ed1a88
+0, 92, 92, 1, 3110400, 0x736312a0
+0, 93, 93, 1, 3110400, 0x60aff0c5
+0, 94, 94, 1, 3110400, 0xee66bd76
+0, 95, 95, 1, 3110400, 0xe8f9a352
+0, 96, 96, 1, 3110400, 0xb51520de
+0, 97, 97, 1, 3110400, 0xd0542466
+0, 98, 98, 1, 3110400, 0x92c2f3e1
+0, 99, 99, 1, 3110400, 0xbbe1839a
diff --git a/tests/ref/fate/hevc-conformance-TMVP_A_MS_2 b/tests/ref/fate/hevc-conformance-TMVP_A_MS_2
new file mode 100644
index 0000000000..a626af8a6f
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-TMVP_A_MS_2
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0xdb5e3b56
+0, 1, 1, 1, 149760, 0x496f2a41
+0, 2, 2, 1, 149760, 0x0690ee0a
+0, 3, 3, 1, 149760, 0x5648fb4e
+0, 4, 4, 1, 149760, 0xd58bbe51
+0, 5, 5, 1, 149760, 0x647c4520
+0, 6, 6, 1, 149760, 0x0e361335
+0, 7, 7, 1, 149760, 0xd1a4289b
+0, 8, 8, 1, 149760, 0x04d29f74
+0, 9, 9, 1, 149760, 0x3bbffc55
+0, 10, 10, 1, 149760, 0xefe30f2b
+0, 11, 11, 1, 149760, 0x3a336f52
+0, 12, 12, 1, 149760, 0x0dffed51
+0, 13, 13, 1, 149760, 0x5a9db757
+0, 14, 14, 1, 149760, 0x5e7313c5
+0, 15, 15, 1, 149760, 0xbffb3a0e
+0, 16, 16, 1, 149760, 0x073966e9
diff --git a/tests/ref/fate/hevc-conformance-TSCL_A_VIDYO_5 b/tests/ref/fate/hevc-conformance-TSCL_A_VIDYO_5
new file mode 100644
index 0000000000..84d4219e37
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-TSCL_A_VIDYO_5
@@ -0,0 +1,74 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0xcfffa013
+0, 1, 1, 1, 149760, 0x5166146a
+0, 2, 2, 1, 149760, 0xc3cc318e
+0, 3, 3, 1, 149760, 0xcedf65a0
+0, 4, 4, 1, 149760, 0x10c97bd4
+0, 5, 5, 1, 149760, 0xd9d5c4ab
+0, 6, 6, 1, 149760, 0x5112e11d
+0, 7, 7, 1, 149760, 0xde3803d6
+0, 8, 8, 1, 149760, 0x82c62409
+0, 9, 9, 1, 149760, 0x69a587f2
+0, 10, 10, 1, 149760, 0x90e2ac16
+0, 11, 11, 1, 149760, 0xdc2ed2ba
+0, 12, 12, 1, 149760, 0xcabec51f
+0, 13, 13, 1, 149760, 0x915de948
+0, 14, 14, 1, 149760, 0xd824e422
+0, 15, 15, 1, 149760, 0x10f91769
+0, 16, 16, 1, 149760, 0xf8ea1f0a
+0, 17, 17, 1, 149760, 0x88306494
+0, 18, 18, 1, 149760, 0x4b667403
+0, 19, 19, 1, 149760, 0x190b939f
+0, 20, 20, 1, 149760, 0xe754929d
+0, 21, 21, 1, 149760, 0xdd1eb9b5
+0, 22, 22, 1, 149760, 0x5ef1c64b
+0, 23, 23, 1, 149760, 0xab92e9f9
+0, 24, 24, 1, 149760, 0x873fec38
+0, 25, 25, 1, 149760, 0x1f0ca11f
+0, 26, 26, 1, 149760, 0xa2f591ca
+0, 27, 27, 1, 149760, 0x2713a994
+0, 28, 28, 1, 149760, 0xfbdba1f9
+0, 29, 29, 1, 149760, 0x3742ed2e
+0, 30, 30, 1, 149760, 0xf43fe43c
+0, 31, 31, 1, 149760, 0xa84ff250
+0, 32, 32, 1, 149760, 0xd4437e12
+0, 33, 33, 1, 149760, 0xcf08c736
+0, 34, 34, 1, 149760, 0x0cedd0d6
+0, 35, 35, 1, 149760, 0xc317e9bc
+0, 36, 36, 1, 149760, 0x0dcbd636
+0, 37, 37, 1, 149760, 0x4e6501b0
+0, 38, 38, 1, 149760, 0x5f9c02bb
+0, 39, 39, 1, 149760, 0x43052939
+0, 40, 40, 1, 149760, 0x8ec12318
+0, 41, 41, 1, 149760, 0xc51577f3
+0, 42, 42, 1, 149760, 0xbda1775b
+0, 43, 43, 1, 149760, 0x62b7b2a2
+0, 44, 44, 1, 149760, 0x5dd68203
+0, 45, 45, 1, 149760, 0xe004b4bf
+0, 46, 46, 1, 149760, 0x1469769f
+0, 47, 47, 1, 149760, 0x96f57e0a
+0, 48, 48, 1, 149760, 0x75e58819
+0, 49, 49, 1, 149760, 0xf826a158
+0, 50, 50, 1, 149760, 0xf789a3bd
+0, 51, 51, 1, 149760, 0x9d8fb09a
+0, 52, 52, 1, 149760, 0x1d33bbe5
+0, 53, 53, 1, 149760, 0x7e93e014
+0, 54, 54, 1, 149760, 0x04ade2e6
+0, 55, 55, 1, 149760, 0xb93a2c32
+0, 56, 56, 1, 149760, 0x5fa73dc3
+0, 57, 57, 1, 149760, 0xa70099ee
+0, 58, 58, 1, 149760, 0xcc5aaf3e
+0, 59, 59, 1, 149760, 0x4e83f938
+0, 60, 60, 1, 149760, 0x9faae668
+0, 61, 61, 1, 149760, 0x7a5cbf24
+0, 62, 62, 1, 149760, 0x4b23714c
+0, 63, 63, 1, 149760, 0x55d246ad
+0, 64, 64, 1, 149760, 0xd3378be9
+0, 65, 65, 1, 149760, 0xf5ef9731
+0, 66, 66, 1, 149760, 0xc4ba3ad7
+0, 67, 67, 1, 149760, 0xd9182d2c
+0, 68, 68, 1, 149760, 0x0ff5eaa5
+0, 69, 69, 1, 149760, 0xefe21a58
+0, 70, 70, 1, 149760, 0x4cad2a57
+0, 71, 71, 1, 149760, 0x24a35d1a
+0, 72, 72, 1, 149760, 0xeb1b6a6e
diff --git a/tests/ref/fate/hevc-conformance-TSCL_B_VIDYO_4 b/tests/ref/fate/hevc-conformance-TSCL_B_VIDYO_4
new file mode 100644
index 0000000000..6ee24acf9e
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-TSCL_B_VIDYO_4
@@ -0,0 +1,74 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x88619f80
+0, 1, 1, 1, 149760, 0x550bdaf0
+0, 2, 2, 1, 149760, 0x99440a14
+0, 3, 3, 1, 149760, 0xcc2c2049
+0, 4, 4, 1, 149760, 0x46927368
+0, 5, 5, 1, 149760, 0x53cdb3fe
+0, 6, 6, 1, 149760, 0x654df025
+0, 7, 7, 1, 149760, 0x024d24bc
+0, 8, 8, 1, 149760, 0x409138c2
+0, 9, 9, 1, 149760, 0xfbb47c48
+0, 10, 10, 1, 149760, 0x18caa19d
+0, 11, 11, 1, 149760, 0x0f88c2e5
+0, 12, 12, 1, 149760, 0x1c16aa2d
+0, 13, 13, 1, 149760, 0x60bfcce8
+0, 14, 14, 1, 149760, 0x1c38e3d3
+0, 15, 15, 1, 149760, 0x0d5b044a
+0, 16, 16, 1, 149760, 0x93d21593
+0, 17, 17, 1, 149760, 0xdf283910
+0, 18, 18, 1, 149760, 0x03324c23
+0, 19, 19, 1, 149760, 0x3b175b7b
+0, 20, 20, 1, 149760, 0xb91b9a7e
+0, 21, 21, 1, 149760, 0x734fbbe7
+0, 22, 22, 1, 149760, 0xfc3fea48
+0, 23, 23, 1, 149760, 0x6609103e
+0, 24, 24, 1, 149760, 0x3f5916fa
+0, 25, 25, 1, 149760, 0x08e43f4d
+0, 26, 26, 1, 149760, 0xc84e5471
+0, 27, 27, 1, 149760, 0xbd4e5c8d
+0, 28, 28, 1, 149760, 0x4a4d3995
+0, 29, 29, 1, 149760, 0x662163c0
+0, 30, 30, 1, 149760, 0xda28671f
+0, 31, 31, 1, 149760, 0x19e1878e
+0, 32, 32, 1, 149760, 0x19807e67
+0, 33, 33, 1, 149760, 0xf7aea3b6
+0, 34, 34, 1, 149760, 0x53f482c9
+0, 35, 35, 1, 149760, 0x7184b3ae
+0, 36, 36, 1, 149760, 0xb425b53d
+0, 37, 37, 1, 149760, 0xfb7cce6e
+0, 38, 38, 1, 149760, 0x820bc1ef
+0, 39, 39, 1, 149760, 0xbb0de30a
+0, 40, 40, 1, 149760, 0xbdcb0af2
+0, 41, 41, 1, 149760, 0xf2404ff7
+0, 42, 42, 1, 149760, 0xd6636f0a
+0, 43, 43, 1, 149760, 0x0e908b06
+0, 44, 44, 1, 149760, 0x36a158f4
+0, 45, 45, 1, 149760, 0x178d5bbd
+0, 46, 46, 1, 149760, 0xba9a6d14
+0, 47, 47, 1, 149760, 0x89145886
+0, 48, 48, 1, 149760, 0x6ec26794
+0, 49, 49, 1, 149760, 0xf6ac7551
+0, 50, 50, 1, 149760, 0xc829c66f
+0, 51, 51, 1, 149760, 0x64d50d50
+0, 52, 52, 1, 149760, 0x215dd855
+0, 53, 53, 1, 149760, 0x8b2ffec3
+0, 54, 54, 1, 149760, 0x1a0b7bcd
+0, 55, 55, 1, 149760, 0x14a5ad0e
+0, 56, 56, 1, 149760, 0x88c34286
+0, 57, 57, 1, 149760, 0xe2706fa9
+0, 58, 58, 1, 149760, 0x8de2decf
+0, 59, 59, 1, 149760, 0x1b37e5d7
+0, 60, 60, 1, 149760, 0xaf8d175a
+0, 61, 61, 1, 149760, 0x0f4aec5f
+0, 62, 62, 1, 149760, 0x3818df10
+0, 63, 63, 1, 149760, 0xe791d309
+0, 64, 64, 1, 149760, 0x6ad9aa0d
+0, 65, 65, 1, 149760, 0x1e1ab8a1
+0, 66, 66, 1, 149760, 0xd0ef526a
+0, 67, 67, 1, 149760, 0x45da3cf1
+0, 68, 68, 1, 149760, 0x3cb4eee6
+0, 69, 69, 1, 149760, 0x3e816ebc
+0, 70, 70, 1, 149760, 0x29d45e93
+0, 71, 71, 1, 149760, 0x824b5bc2
+0, 72, 72, 1, 149760, 0x015e6fd2
diff --git a/tests/ref/fate/hevc-conformance-TSKIP_A_MS_2 b/tests/ref/fate/hevc-conformance-TSKIP_A_MS_2
new file mode 100644
index 0000000000..1226e11faa
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-TSKIP_A_MS_2
@@ -0,0 +1,18 @@
+#tb 0: 1/25
+0, 0, 0, 1, 1382400, 0xaea37937
+0, 1, 1, 1, 1382400, 0x39d687d0
+0, 2, 2, 1, 1382400, 0x8ea04595
+0, 3, 3, 1, 1382400, 0x5d5a40d2
+0, 4, 4, 1, 1382400, 0x6915eb4e
+0, 5, 5, 1, 1382400, 0xe8bb612d
+0, 6, 6, 1, 1382400, 0xd331085a
+0, 7, 7, 1, 1382400, 0x2193bc30
+0, 8, 8, 1, 1382400, 0xaeb19418
+0, 9, 9, 1, 1382400, 0xb524eac3
+0, 10, 10, 1, 1382400, 0x141908a2
+0, 11, 11, 1, 1382400, 0x527ab6ac
+0, 12, 12, 1, 1382400, 0xe9a73d9f
+0, 13, 13, 1, 1382400, 0x2eb0aa14
+0, 14, 14, 1, 1382400, 0x6981af42
+0, 15, 15, 1, 1382400, 0xbb0bbd7a
+0, 16, 16, 1, 1382400, 0xf0779b81
diff --git a/tests/ref/fate/hevc-conformance-WPP_A_ericsson_MAIN10_2 b/tests/ref/fate/hevc-conformance-WPP_A_ericsson_MAIN10_2
new file mode 100644
index 0000000000..fe46c99baf
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-WPP_A_ericsson_MAIN10_2
@@ -0,0 +1,49 @@
+#tb 0: 1/25
+0, 0, 0, 1, 299520, 0xa3f96d63
+0, 1, 1, 1, 299520, 0x5f788f3f
+0, 2, 2, 1, 299520, 0x41c7d0ae
+0, 3, 3, 1, 299520, 0x14a9175c
+0, 4, 4, 1, 299520, 0x5215ed5f
+0, 5, 5, 1, 299520, 0xffa5ab17
+0, 6, 6, 1, 299520, 0x7d179b2b
+0, 7, 7, 1, 299520, 0x87280332
+0, 8, 8, 1, 299520, 0xca5e278f
+0, 9, 9, 1, 299520, 0x89d59325
+0, 10, 10, 1, 299520, 0x6593cfa5
+0, 11, 11, 1, 299520, 0x216ce552
+0, 12, 12, 1, 299520, 0x4494f2ac
+0, 13, 13, 1, 299520, 0xc9aafeb4
+0, 14, 14, 1, 299520, 0xe93a43ab
+0, 15, 15, 1, 299520, 0x89bdba99
+0, 16, 16, 1, 299520, 0xdc529079
+0, 17, 17, 1, 299520, 0xfbc29de7
+0, 18, 18, 1, 299520, 0xa8c6c853
+0, 19, 19, 1, 299520, 0xd552dc1f
+0, 20, 20, 1, 299520, 0x60a7d5d9
+0, 21, 21, 1, 299520, 0x4b784987
+0, 22, 22, 1, 299520, 0xec9bd2a0
+0, 23, 23, 1, 299520, 0x71e1d437
+0, 24, 24, 1, 299520, 0x5776a225
+0, 25, 25, 1, 299520, 0x01598543
+0, 26, 26, 1, 299520, 0x8abb1f7b
+0, 27, 27, 1, 299520, 0xa3a0bb58
+0, 28, 28, 1, 299520, 0x4a718127
+0, 29, 29, 1, 299520, 0x6b1647bc
+0, 30, 30, 1, 299520, 0x7b653009
+0, 31, 31, 1, 299520, 0xca15d4be
+0, 32, 32, 1, 299520, 0xf8075689
+0, 33, 33, 1, 299520, 0x2717f2e6
+0, 34, 34, 1, 299520, 0x53ad6267
+0, 35, 35, 1, 299520, 0x29fedd49
+0, 36, 36, 1, 299520, 0x4e8aa5db
+0, 37, 37, 1, 299520, 0xca316c94
+0, 38, 38, 1, 299520, 0x8071fd57
+0, 39, 39, 1, 299520, 0xc9915cd3
+0, 40, 40, 1, 299520, 0xab335447
+0, 41, 41, 1, 299520, 0xf733a390
+0, 42, 42, 1, 299520, 0x1fa14afb
+0, 43, 43, 1, 299520, 0xe5d7ae71
+0, 44, 44, 1, 299520, 0xb48c2ee6
+0, 45, 45, 1, 299520, 0xe288ebcc
+0, 46, 46, 1, 299520, 0xa4000bdd
+0, 47, 47, 1, 299520, 0xf3fdee3a
diff --git a/tests/ref/fate/hevc-conformance-WPP_A_ericsson_MAIN_2 b/tests/ref/fate/hevc-conformance-WPP_A_ericsson_MAIN_2
new file mode 100644
index 0000000000..497c8025de
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-WPP_A_ericsson_MAIN_2
@@ -0,0 +1,49 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0xfbb3d914
+0, 1, 1, 1, 149760, 0xdccd707b
+0, 2, 2, 1, 149760, 0x32008963
+0, 3, 3, 1, 149760, 0x0fcdd808
+0, 4, 4, 1, 149760, 0x69f0e1a5
+0, 5, 5, 1, 149760, 0x1be36c09
+0, 6, 6, 1, 149760, 0x18a1588f
+0, 7, 7, 1, 149760, 0xdc46acd8
+0, 8, 8, 1, 149760, 0xec46760a
+0, 9, 9, 1, 149760, 0xe87fc7b5
+0, 10, 10, 1, 149760, 0x7c78d960
+0, 11, 11, 1, 149760, 0x73e2ea91
+0, 12, 12, 1, 149760, 0x9164db8c
+0, 13, 13, 1, 149760, 0x31a6124b
+0, 14, 14, 1, 149760, 0x8a143aed
+0, 15, 15, 1, 149760, 0x15a364f4
+0, 16, 16, 1, 149760, 0x93b8560e
+0, 17, 17, 1, 149760, 0xc2aa985c
+0, 18, 18, 1, 149760, 0xe83ca4da
+0, 19, 19, 1, 149760, 0x6c79cb07
+0, 20, 20, 1, 149760, 0x2c24c739
+0, 21, 21, 1, 149760, 0x6a60f769
+0, 22, 22, 1, 149760, 0x13f00ad1
+0, 23, 23, 1, 149760, 0x59dd330d
+0, 24, 24, 1, 149760, 0x8815348c
+0, 25, 25, 1, 149760, 0x88576cd4
+0, 26, 26, 1, 149760, 0xfa3d6b9c
+0, 27, 27, 1, 149760, 0x810c8145
+0, 28, 28, 1, 149760, 0xf2357fcc
+0, 29, 29, 1, 149760, 0xc885a093
+0, 30, 30, 1, 149760, 0x5939a048
+0, 31, 31, 1, 149760, 0x9f93a489
+0, 32, 32, 1, 149760, 0xc11a879e
+0, 33, 33, 1, 149760, 0x5221c04b
+0, 34, 34, 1, 149760, 0x7dcdca90
+0, 35, 35, 1, 149760, 0xfdd8df1e
+0, 36, 36, 1, 149760, 0x3a88c802
+0, 37, 37, 1, 149760, 0x50ff1081
+0, 38, 38, 1, 149760, 0x6388f458
+0, 39, 39, 1, 149760, 0x85623a2b
+0, 40, 40, 1, 149760, 0x1bfd34a4
+0, 41, 41, 1, 149760, 0xb6037b88
+0, 42, 42, 1, 149760, 0xd24e65c7
+0, 43, 43, 1, 149760, 0xd2bd8fac
+0, 44, 44, 1, 149760, 0x602f64d0
+0, 45, 45, 1, 149760, 0x59415d5e
+0, 46, 46, 1, 149760, 0x9faf5737
+0, 47, 47, 1, 149760, 0x66ce56a9
diff --git a/tests/ref/fate/hevc-conformance-WPP_B_ericsson_MAIN10_2 b/tests/ref/fate/hevc-conformance-WPP_B_ericsson_MAIN10_2
new file mode 100644
index 0000000000..d199d383d1
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-WPP_B_ericsson_MAIN10_2
@@ -0,0 +1,49 @@
+#tb 0: 1/25
+0, 0, 0, 1, 299520, 0x66b3cef3
+0, 1, 1, 1, 299520, 0x99df880f
+0, 2, 2, 1, 299520, 0xb4a03801
+0, 3, 3, 1, 299520, 0x1510c9e2
+0, 4, 4, 1, 299520, 0x42fe77b1
+0, 5, 5, 1, 299520, 0x815e1727
+0, 6, 6, 1, 299520, 0x6dd002f4
+0, 7, 7, 1, 299520, 0x2650e944
+0, 8, 8, 1, 299520, 0x3268c1e9
+0, 9, 9, 1, 299520, 0xced41a5f
+0, 10, 10, 1, 299520, 0x91334b97
+0, 11, 11, 1, 299520, 0xc5bb7ff6
+0, 12, 12, 1, 299520, 0x26e27c35
+0, 13, 13, 1, 299520, 0x482da6cb
+0, 14, 14, 1, 299520, 0xfe742e8e
+0, 15, 15, 1, 299520, 0x3f395752
+0, 16, 16, 1, 299520, 0x189936e5
+0, 17, 17, 1, 299520, 0x56a58a07
+0, 18, 18, 1, 299520, 0x798d8de9
+0, 19, 19, 1, 299520, 0x5d8e947f
+0, 20, 20, 1, 299520, 0x65477654
+0, 21, 21, 1, 299520, 0x5012d167
+0, 22, 22, 1, 299520, 0xe889bb27
+0, 23, 23, 1, 299520, 0x4611c1e6
+0, 24, 24, 1, 299520, 0xb093402b
+0, 25, 25, 1, 299520, 0xddc065d8
+0, 26, 26, 1, 299520, 0x6986e1d9
+0, 27, 27, 1, 299520, 0x0e539004
+0, 28, 28, 1, 299520, 0x4768f9ed
+0, 29, 29, 1, 299520, 0xfad20b53
+0, 30, 30, 1, 299520, 0x82f9c996
+0, 31, 31, 1, 299520, 0x6b366d79
+0, 32, 32, 1, 299520, 0x5a35d42e
+0, 33, 33, 1, 299520, 0xf3849013
+0, 34, 34, 1, 299520, 0x6b8eae50
+0, 35, 35, 1, 299520, 0x0f854274
+0, 36, 36, 1, 299520, 0x31685299
+0, 37, 37, 1, 299520, 0x77357bfb
+0, 38, 38, 1, 299520, 0xd67f1807
+0, 39, 39, 1, 299520, 0x371e7eb6
+0, 40, 40, 1, 299520, 0xe2ee3531
+0, 41, 41, 1, 299520, 0x50f242f1
+0, 42, 42, 1, 299520, 0x265ed919
+0, 43, 43, 1, 299520, 0xad496c85
+0, 44, 44, 1, 299520, 0xb2aef047
+0, 45, 45, 1, 299520, 0xac5c4451
+0, 46, 46, 1, 299520, 0x2b26a0cb
+0, 47, 47, 1, 299520, 0x5738d837
diff --git a/tests/ref/fate/hevc-conformance-WPP_B_ericsson_MAIN_2 b/tests/ref/fate/hevc-conformance-WPP_B_ericsson_MAIN_2
new file mode 100644
index 0000000000..bb61b103eb
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-WPP_B_ericsson_MAIN_2
@@ -0,0 +1,49 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x3772de54
+0, 1, 1, 1, 149760, 0x571d885e
+0, 2, 2, 1, 149760, 0x71576f09
+0, 3, 3, 1, 149760, 0xf0724ce0
+0, 4, 4, 1, 149760, 0x2cc6e355
+0, 5, 5, 1, 149760, 0x0ca14365
+0, 6, 6, 1, 149760, 0x5aeb4b4d
+0, 7, 7, 1, 149760, 0xb018561c
+0, 8, 8, 1, 149760, 0x8fb07521
+0, 9, 9, 1, 149760, 0x9e1ccc5b
+0, 10, 10, 1, 149760, 0x0cf3de9f
+0, 11, 11, 1, 149760, 0x918cf512
+0, 12, 12, 1, 149760, 0x9a60e5c4
+0, 13, 13, 1, 149760, 0xc3b01d10
+0, 14, 14, 1, 149760, 0x929b34a6
+0, 15, 15, 1, 149760, 0x1f9462ac
+0, 16, 16, 1, 149760, 0xcadf511e
+0, 17, 17, 1, 149760, 0x318e9af6
+0, 18, 18, 1, 149760, 0x0860a371
+0, 19, 19, 1, 149760, 0x13e3c4d1
+0, 20, 20, 1, 149760, 0xfa27cbf6
+0, 21, 21, 1, 149760, 0x407ffed5
+0, 22, 22, 1, 149760, 0xa3c00c3b
+0, 23, 23, 1, 149760, 0x926938c6
+0, 24, 24, 1, 149760, 0xf5792acf
+0, 25, 25, 1, 149760, 0x66e16a48
+0, 26, 26, 1, 149760, 0xd46e7041
+0, 27, 27, 1, 149760, 0x814c84ee
+0, 28, 28, 1, 149760, 0x165b750a
+0, 29, 29, 1, 149760, 0x24ad9df0
+0, 30, 30, 1, 149760, 0x11189e4e
+0, 31, 31, 1, 149760, 0xb841a5b6
+0, 32, 32, 1, 149760, 0xea738605
+0, 33, 33, 1, 149760, 0xbbf0ca3f
+0, 34, 34, 1, 149760, 0xcfb5d03c
+0, 35, 35, 1, 149760, 0x0654f0b7
+0, 36, 36, 1, 149760, 0x1c2cd18d
+0, 37, 37, 1, 149760, 0x9a4602ae
+0, 38, 38, 1, 149760, 0xf2a2ff5a
+0, 39, 39, 1, 149760, 0x9c153c77
+0, 40, 40, 1, 149760, 0x5ed23e56
+0, 41, 41, 1, 149760, 0x1eb58383
+0, 42, 42, 1, 149760, 0x725e70f2
+0, 43, 43, 1, 149760, 0x652aa56c
+0, 44, 44, 1, 149760, 0x7f736ad2
+0, 45, 45, 1, 149760, 0x0827700a
+0, 46, 46, 1, 149760, 0x76a06370
+0, 47, 47, 1, 149760, 0xa7fe6f9d
diff --git a/tests/ref/fate/hevc-conformance-WPP_C_ericsson_MAIN10_2 b/tests/ref/fate/hevc-conformance-WPP_C_ericsson_MAIN10_2
new file mode 100644
index 0000000000..b1e6312402
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-WPP_C_ericsson_MAIN10_2
@@ -0,0 +1,49 @@
+#tb 0: 1/25
+0, 0, 0, 1, 299520, 0xbc71d699
+0, 1, 1, 1, 299520, 0x3207e1f9
+0, 2, 2, 1, 299520, 0xdd2087b5
+0, 3, 3, 1, 299520, 0xb512c976
+0, 4, 4, 1, 299520, 0x22957011
+0, 5, 5, 1, 299520, 0x8ce04965
+0, 6, 6, 1, 299520, 0x9cf37cba
+0, 7, 7, 1, 299520, 0xd52f8b2d
+0, 8, 8, 1, 299520, 0x2f55a94d
+0, 9, 9, 1, 299520, 0x53d3cc42
+0, 10, 10, 1, 299520, 0xbc33f3a1
+0, 11, 11, 1, 299520, 0x5e67d0de
+0, 12, 12, 1, 299520, 0x5708ecc5
+0, 13, 13, 1, 299520, 0x104869c0
+0, 14, 14, 1, 299520, 0xaf2a8638
+0, 15, 15, 1, 299520, 0xbdf1d001
+0, 16, 16, 1, 299520, 0xa3f71579
+0, 17, 17, 1, 299520, 0x68cedb09
+0, 18, 18, 1, 299520, 0xa4262d4d
+0, 19, 19, 1, 299520, 0x99320c8d
+0, 20, 20, 1, 299520, 0x57be6268
+0, 21, 21, 1, 299520, 0xc7e14cfc
+0, 22, 22, 1, 299520, 0x3d906541
+0, 23, 23, 1, 299520, 0x804b2f29
+0, 24, 24, 1, 299520, 0x93cf0ae2
+0, 25, 25, 1, 299520, 0x0fd2f932
+0, 26, 26, 1, 299520, 0xf869a25c
+0, 27, 27, 1, 299520, 0xa2dc56cd
+0, 28, 28, 1, 299520, 0x075b14a7
+0, 29, 29, 1, 299520, 0x233b0085
+0, 30, 30, 1, 299520, 0x80a69c4c
+0, 31, 31, 1, 299520, 0xf45f21af
+0, 32, 32, 1, 299520, 0x88dcab6e
+0, 33, 33, 1, 299520, 0xc1df3e99
+0, 34, 34, 1, 299520, 0xac298452
+0, 35, 35, 1, 299520, 0x6b4cc1e3
+0, 36, 36, 1, 299520, 0xfd39c597
+0, 37, 37, 1, 299520, 0xe60f808c
+0, 38, 38, 1, 299520, 0x27c47830
+0, 39, 39, 1, 299520, 0x4fd9ec76
+0, 40, 40, 1, 299520, 0x3249e084
+0, 41, 41, 1, 299520, 0x40632223
+0, 42, 42, 1, 299520, 0x9b68d213
+0, 43, 43, 1, 299520, 0x9e210ed8
+0, 44, 44, 1, 299520, 0x54489508
+0, 45, 45, 1, 299520, 0xc799df16
+0, 46, 46, 1, 299520, 0x020b2211
+0, 47, 47, 1, 299520, 0xcc1a1683
diff --git a/tests/ref/fate/hevc-conformance-WPP_C_ericsson_MAIN_2 b/tests/ref/fate/hevc-conformance-WPP_C_ericsson_MAIN_2
new file mode 100644
index 0000000000..49c4f21af7
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-WPP_C_ericsson_MAIN_2
@@ -0,0 +1,49 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x0948e521
+0, 1, 1, 1, 149760, 0x37afb384
+0, 2, 2, 1, 149760, 0xe1864c4a
+0, 3, 3, 1, 149760, 0x143344eb
+0, 4, 4, 1, 149760, 0x34cce612
+0, 5, 5, 1, 149760, 0x45ce60b3
+0, 6, 6, 1, 149760, 0x17b36585
+0, 7, 7, 1, 149760, 0x6447ebe5
+0, 8, 8, 1, 149760, 0x0f4282c7
+0, 9, 9, 1, 149760, 0xa0c3dab3
+0, 10, 10, 1, 149760, 0x0f3ceb7c
+0, 11, 11, 1, 149760, 0xb861f311
+0, 12, 12, 1, 149760, 0x620fe482
+0, 13, 13, 1, 149760, 0xa3dc1603
+0, 14, 14, 1, 149760, 0x6b7a3a6c
+0, 15, 15, 1, 149760, 0x01d16e5e
+0, 16, 16, 1, 149760, 0xe12f6009
+0, 17, 17, 1, 149760, 0xc96d98bd
+0, 18, 18, 1, 149760, 0x542e9f47
+0, 19, 19, 1, 149760, 0x5bcbc3b8
+0, 20, 20, 1, 149760, 0x3be2c63a
+0, 21, 21, 1, 149760, 0xd63df815
+0, 22, 22, 1, 149760, 0x5c210d61
+0, 23, 23, 1, 149760, 0xc7fb33b8
+0, 24, 24, 1, 149760, 0xa9f13508
+0, 25, 25, 1, 149760, 0xbf636172
+0, 26, 26, 1, 149760, 0xf1966847
+0, 27, 27, 1, 149760, 0xcc0579eb
+0, 28, 28, 1, 149760, 0x467673cb
+0, 29, 29, 1, 149760, 0x4dbca3f2
+0, 30, 30, 1, 149760, 0xada29bc9
+0, 31, 31, 1, 149760, 0x2983a0d5
+0, 32, 32, 1, 149760, 0x3864832a
+0, 33, 33, 1, 149760, 0x6a06b61d
+0, 34, 34, 1, 149760, 0x90a0d994
+0, 35, 35, 1, 149760, 0x3c58f375
+0, 36, 36, 1, 149760, 0x365bd42a
+0, 37, 37, 1, 149760, 0x5665f25f
+0, 38, 38, 1, 149760, 0x75d8fe8f
+0, 39, 39, 1, 149760, 0xc67e3508
+0, 40, 40, 1, 149760, 0x2e7b428b
+0, 41, 41, 1, 149760, 0x59cf741c
+0, 42, 42, 1, 149760, 0x2cc77eb4
+0, 43, 43, 1, 149760, 0x4957970a
+0, 44, 44, 1, 149760, 0xa69f7323
+0, 45, 45, 1, 149760, 0xaf1f6772
+0, 46, 46, 1, 149760, 0x864a5a76
+0, 47, 47, 1, 149760, 0x57795407
diff --git a/tests/ref/fate/hevc-conformance-WPP_D_ericsson_MAIN10_2 b/tests/ref/fate/hevc-conformance-WPP_D_ericsson_MAIN10_2
new file mode 100644
index 0000000000..83cf10ce38
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-WPP_D_ericsson_MAIN10_2
@@ -0,0 +1,49 @@
+#tb 0: 1/25
+0, 0, 0, 1, 46080, 0xc50ed6b4
+0, 1, 1, 1, 46080, 0x2aeac52d
+0, 2, 2, 1, 46080, 0xe3e36cd3
+0, 3, 3, 1, 46080, 0x81c6b317
+0, 4, 4, 1, 46080, 0x20e24e33
+0, 5, 5, 1, 46080, 0xc4a64f17
+0, 6, 6, 1, 46080, 0xf95a5014
+0, 7, 7, 1, 46080, 0x8d9e9a26
+0, 8, 8, 1, 46080, 0x5f0f4592
+0, 9, 9, 1, 46080, 0xa1b54f9f
+0, 10, 10, 1, 46080, 0x3d5c3673
+0, 11, 11, 1, 46080, 0xca6e5e83
+0, 12, 12, 1, 46080, 0x93eca575
+0, 13, 13, 1, 46080, 0xf84bab2b
+0, 14, 14, 1, 46080, 0xf22599d1
+0, 15, 15, 1, 46080, 0xf916673f
+0, 16, 16, 1, 46080, 0xbb11a29b
+0, 17, 17, 1, 46080, 0x047e1dd7
+0, 18, 18, 1, 46080, 0x9a975834
+0, 19, 19, 1, 46080, 0xa3fe84d4
+0, 20, 20, 1, 46080, 0x08e1c2f4
+0, 21, 21, 1, 46080, 0xbbbcf81b
+0, 22, 22, 1, 46080, 0x4abb0255
+0, 23, 23, 1, 46080, 0x20052dda
+0, 24, 24, 1, 46080, 0x10290ef3
+0, 25, 25, 1, 46080, 0x9e7633d0
+0, 26, 26, 1, 46080, 0x60d0fb3a
+0, 27, 27, 1, 46080, 0xe0209fb3
+0, 28, 28, 1, 46080, 0xea006c44
+0, 29, 29, 1, 46080, 0xe0b84e96
+0, 30, 30, 1, 46080, 0x35e507d7
+0, 31, 31, 1, 46080, 0x4107fcd6
+0, 32, 32, 1, 46080, 0x1b34af49
+0, 33, 33, 1, 46080, 0x4ab91078
+0, 34, 34, 1, 46080, 0x130750dd
+0, 35, 35, 1, 46080, 0x592dbe41
+0, 36, 36, 1, 46080, 0xfd39cf6b
+0, 37, 37, 1, 46080, 0xbe9ee5b7
+0, 38, 38, 1, 46080, 0x25ebde48
+0, 39, 39, 1, 46080, 0x2becd45c
+0, 40, 40, 1, 46080, 0x9b5fdfdb
+0, 41, 41, 1, 46080, 0xededa5f5
+0, 42, 42, 1, 46080, 0x476bc4e5
+0, 43, 43, 1, 46080, 0x4a4a0a4e
+0, 44, 44, 1, 46080, 0x1324f41b
+0, 45, 45, 1, 46080, 0xc503cfc8
+0, 46, 46, 1, 46080, 0x53f7c74c
+0, 47, 47, 1, 46080, 0xc861b5a3
diff --git a/tests/ref/fate/hevc-conformance-WPP_D_ericsson_MAIN_2 b/tests/ref/fate/hevc-conformance-WPP_D_ericsson_MAIN_2
new file mode 100644
index 0000000000..6e6fc32071
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-WPP_D_ericsson_MAIN_2
@@ -0,0 +1,49 @@
+#tb 0: 1/25
+0, 0, 0, 1, 23040, 0x6977dbca
+0, 1, 1, 1, 23040, 0xd9bfcb5c
+0, 2, 2, 1, 23040, 0xbdd5a346
+0, 3, 3, 1, 23040, 0x021877cd
+0, 4, 4, 1, 23040, 0xb8a45933
+0, 5, 5, 1, 23040, 0xc289338e
+0, 6, 6, 1, 23040, 0x6968e57d
+0, 7, 7, 1, 23040, 0x1142c50c
+0, 8, 8, 1, 23040, 0xcf86c357
+0, 9, 9, 1, 23040, 0xf73de7ec
+0, 10, 10, 1, 23040, 0x2103ed06
+0, 11, 11, 1, 23040, 0xf0ecc0e2
+0, 12, 12, 1, 23040, 0xa7b1971f
+0, 13, 13, 1, 23040, 0x4454871a
+0, 14, 14, 1, 23040, 0xc5088346
+0, 15, 15, 1, 23040, 0x89189469
+0, 16, 16, 1, 23040, 0x320d977a
+0, 17, 17, 1, 23040, 0xbdc0a95b
+0, 18, 18, 1, 23040, 0xbcfec5c9
+0, 19, 19, 1, 23040, 0xb68ceb37
+0, 20, 20, 1, 23040, 0x41a60b0c
+0, 21, 21, 1, 23040, 0x0e662b47
+0, 22, 22, 1, 23040, 0x0e2440b7
+0, 23, 23, 1, 23040, 0x77415a77
+0, 24, 24, 1, 23040, 0x62936fdf
+0, 25, 25, 1, 23040, 0xaa987f9d
+0, 26, 26, 1, 23040, 0xaf0c8764
+0, 27, 27, 1, 23040, 0x645c913e
+0, 28, 28, 1, 23040, 0x2f249b06
+0, 29, 29, 1, 23040, 0xb54fb546
+0, 30, 30, 1, 23040, 0xc669c247
+0, 31, 31, 1, 23040, 0xe308bb8f
+0, 32, 32, 1, 23040, 0xb920b69d
+0, 33, 33, 1, 23040, 0x86d5c0ff
+0, 34, 34, 1, 23040, 0x7d5ec3e4
+0, 35, 35, 1, 23040, 0x5ca1cdb0
+0, 36, 36, 1, 23040, 0xdc11cf9e
+0, 37, 37, 1, 23040, 0x1a7fd0d5
+0, 38, 38, 1, 23040, 0x9884d5cd
+0, 39, 39, 1, 23040, 0xcafbd5fb
+0, 40, 40, 1, 23040, 0xc670ceb7
+0, 41, 41, 1, 23040, 0x63cecef7
+0, 42, 42, 1, 23040, 0xfe29c28c
+0, 43, 43, 1, 23040, 0x368dc66e
+0, 44, 44, 1, 23040, 0x2ec7c4de
+0, 45, 45, 1, 23040, 0x8954c9d6
+0, 46, 46, 1, 23040, 0xff89ca68
+0, 47, 47, 1, 23040, 0x5ae0b290
diff --git a/tests/ref/fate/hevc-conformance-WPP_E_ericsson_MAIN10_2 b/tests/ref/fate/hevc-conformance-WPP_E_ericsson_MAIN10_2
new file mode 100644
index 0000000000..dbf6f780d4
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-WPP_E_ericsson_MAIN10_2
@@ -0,0 +1,49 @@
+#tb 0: 1/25
+0, 0, 0, 1, 92160, 0x591c992e
+0, 1, 1, 1, 92160, 0xe7a8cd8b
+0, 2, 2, 1, 92160, 0x2e7528bb
+0, 3, 3, 1, 92160, 0x92438eae
+0, 4, 4, 1, 92160, 0x15cc21b9
+0, 5, 5, 1, 92160, 0x3f14a50e
+0, 6, 6, 1, 92160, 0xdbc712e7
+0, 7, 7, 1, 92160, 0x277b2d3f
+0, 8, 8, 1, 92160, 0x05478988
+0, 9, 9, 1, 92160, 0x46888b9c
+0, 10, 10, 1, 92160, 0xb1f46d1b
+0, 11, 11, 1, 92160, 0xa86771fa
+0, 12, 12, 1, 92160, 0x1294944a
+0, 13, 13, 1, 92160, 0xe134cd44
+0, 14, 14, 1, 92160, 0x5fdbf1fb
+0, 15, 15, 1, 92160, 0x01f04b2e
+0, 16, 16, 1, 92160, 0x50989c28
+0, 17, 17, 1, 92160, 0x3202cf37
+0, 18, 18, 1, 92160, 0x67fbdb0f
+0, 19, 19, 1, 92160, 0x4d453062
+0, 20, 20, 1, 92160, 0x799c3e16
+0, 21, 21, 1, 92160, 0xdda76a94
+0, 22, 22, 1, 92160, 0x392d0fc9
+0, 23, 23, 1, 92160, 0x1196e850
+0, 24, 24, 1, 92160, 0x8758d8a9
+0, 25, 25, 1, 92160, 0xb632c2b3
+0, 26, 26, 1, 92160, 0xf3ba5e47
+0, 27, 27, 1, 92160, 0x3ae40182
+0, 28, 28, 1, 92160, 0xf285e2eb
+0, 29, 29, 1, 92160, 0x826aee47
+0, 30, 30, 1, 92160, 0xe06ba18b
+0, 31, 31, 1, 92160, 0xf34b6ef5
+0, 32, 32, 1, 92160, 0xf94045ab
+0, 33, 33, 1, 92160, 0xd0ae63f4
+0, 34, 34, 1, 92160, 0x4c35afc1
+0, 35, 35, 1, 92160, 0x9a150816
+0, 36, 36, 1, 92160, 0x1a4214d4
+0, 37, 37, 1, 92160, 0x9f042653
+0, 38, 38, 1, 92160, 0xf69a40a8
+0, 39, 39, 1, 92160, 0xb8462c18
+0, 40, 40, 1, 92160, 0xf42d4748
+0, 41, 41, 1, 92160, 0x4968dc19
+0, 42, 42, 1, 92160, 0xc8e6001f
+0, 43, 43, 1, 92160, 0xebb42677
+0, 44, 44, 1, 92160, 0x3fb805dd
+0, 45, 45, 1, 92160, 0x1953cfc1
+0, 46, 46, 1, 92160, 0x633108f4
+0, 47, 47, 1, 92160, 0x65aedf42
diff --git a/tests/ref/fate/hevc-conformance-WPP_E_ericsson_MAIN_2 b/tests/ref/fate/hevc-conformance-WPP_E_ericsson_MAIN_2
new file mode 100644
index 0000000000..ac478c6ae9
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-WPP_E_ericsson_MAIN_2
@@ -0,0 +1,49 @@
+#tb 0: 1/25
+0, 0, 0, 1, 46080, 0xcd234724
+0, 1, 1, 1, 46080, 0x66649579
+0, 2, 2, 1, 46080, 0x4317d38d
+0, 3, 3, 1, 46080, 0x308dfc39
+0, 4, 4, 1, 46080, 0xe08e3015
+0, 5, 5, 1, 46080, 0xaa0a3e44
+0, 6, 6, 1, 46080, 0x491b61cf
+0, 7, 7, 1, 46080, 0x9c5a9749
+0, 8, 8, 1, 46080, 0x4384ae34
+0, 9, 9, 1, 46080, 0xfd2bf2c1
+0, 10, 10, 1, 46080, 0xf29b18d7
+0, 11, 11, 1, 46080, 0xc1912df5
+0, 12, 12, 1, 46080, 0x9cc3344b
+0, 13, 13, 1, 46080, 0x41c062a3
+0, 14, 14, 1, 46080, 0xa5ec8417
+0, 15, 15, 1, 46080, 0x94e5aed6
+0, 16, 16, 1, 46080, 0x1af6ce24
+0, 17, 17, 1, 46080, 0xd73c0272
+0, 18, 18, 1, 46080, 0xb7b41c50
+0, 19, 19, 1, 46080, 0x7fa442dc
+0, 20, 20, 1, 46080, 0x513e5f5a
+0, 21, 21, 1, 46080, 0x46a1848b
+0, 22, 22, 1, 46080, 0xcf31a1c4
+0, 23, 23, 1, 46080, 0x3ee8c90c
+0, 24, 24, 1, 46080, 0xc54fdd27
+0, 25, 25, 1, 46080, 0x59830556
+0, 26, 26, 1, 46080, 0xf8c70cc7
+0, 27, 27, 1, 46080, 0x44a519f9
+0, 28, 28, 1, 46080, 0xdd0323d3
+0, 29, 29, 1, 46080, 0x93874212
+0, 30, 30, 1, 46080, 0xba8e4d8e
+0, 31, 31, 1, 46080, 0x5c3f4fb0
+0, 32, 32, 1, 46080, 0x37084bf2
+0, 33, 33, 1, 46080, 0xad256b1b
+0, 34, 34, 1, 46080, 0x862b7a7d
+0, 35, 35, 1, 46080, 0x4a2e8d56
+0, 36, 36, 1, 46080, 0xe99d8f5a
+0, 37, 37, 1, 46080, 0xe41a9456
+0, 38, 38, 1, 46080, 0xe7339f1c
+0, 39, 39, 1, 46080, 0xfa38a6c3
+0, 40, 40, 1, 46080, 0x219e97d2
+0, 41, 41, 1, 46080, 0x652d9cc2
+0, 42, 42, 1, 46080, 0x40bf8f94
+0, 43, 43, 1, 46080, 0x2fee9e23
+0, 44, 44, 1, 46080, 0xeea39203
+0, 45, 45, 1, 46080, 0x69819b5c
+0, 46, 46, 1, 46080, 0x511ba0b5
+0, 47, 47, 1, 46080, 0x85fd892f
diff --git a/tests/ref/fate/hevc-conformance-WPP_F_ericsson_MAIN10_2 b/tests/ref/fate/hevc-conformance-WPP_F_ericsson_MAIN10_2
new file mode 100644
index 0000000000..2f103b7af8
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-WPP_F_ericsson_MAIN10_2
@@ -0,0 +1,49 @@
+#tb 0: 1/25
+0, 0, 0, 1, 138240, 0x99f196ae
+0, 1, 1, 1, 138240, 0x45f407de
+0, 2, 2, 1, 138240, 0xdaef815b
+0, 3, 3, 1, 138240, 0x6812ba5a
+0, 4, 4, 1, 138240, 0x1099912d
+0, 5, 5, 1, 138240, 0xf58ee932
+0, 6, 6, 1, 138240, 0x79df05d8
+0, 7, 7, 1, 138240, 0xa0813719
+0, 8, 8, 1, 138240, 0xe9c7c5c0
+0, 9, 9, 1, 138240, 0xe8c5aba3
+0, 10, 10, 1, 138240, 0x7f0ed0b6
+0, 11, 11, 1, 138240, 0x1bdcfd20
+0, 12, 12, 1, 138240, 0x3b1fc007
+0, 13, 13, 1, 138240, 0xf6a9d270
+0, 14, 14, 1, 138240, 0x3a2d47d4
+0, 15, 15, 1, 138240, 0xbeb9685f
+0, 16, 16, 1, 138240, 0x4cb6eb4a
+0, 17, 17, 1, 138240, 0xa456dcdf
+0, 18, 18, 1, 138240, 0x2933f8e1
+0, 19, 19, 1, 138240, 0x27de28e9
+0, 20, 20, 1, 138240, 0x557c0e51
+0, 21, 21, 1, 138240, 0x6f106540
+0, 22, 22, 1, 138240, 0xf78421a4
+0, 23, 23, 1, 138240, 0xa94029a7
+0, 24, 24, 1, 138240, 0xacfa2b8b
+0, 25, 25, 1, 138240, 0x32e7d347
+0, 26, 26, 1, 138240, 0xe4c17fac
+0, 27, 27, 1, 138240, 0x47e61949
+0, 28, 28, 1, 138240, 0xd248e34b
+0, 29, 29, 1, 138240, 0xb747dc2c
+0, 30, 30, 1, 138240, 0x3a0eaf61
+0, 31, 31, 1, 138240, 0x4e254b5f
+0, 32, 32, 1, 138240, 0xf434f578
+0, 33, 33, 1, 138240, 0xe799308e
+0, 34, 34, 1, 138240, 0xb3e67c89
+0, 35, 35, 1, 138240, 0xb6ceb379
+0, 36, 36, 1, 138240, 0xd70bea99
+0, 37, 37, 1, 138240, 0xad0717a8
+0, 38, 38, 1, 138240, 0x2b50f085
+0, 39, 39, 1, 138240, 0xb334e518
+0, 40, 40, 1, 138240, 0xe7311c3a
+0, 41, 41, 1, 138240, 0x7c46dc19
+0, 42, 42, 1, 138240, 0x18c20dfa
+0, 43, 43, 1, 138240, 0x8bc0f6ae
+0, 44, 44, 1, 138240, 0x91a8c381
+0, 45, 45, 1, 138240, 0x2ba57297
+0, 46, 46, 1, 138240, 0x99d982f0
+0, 47, 47, 1, 138240, 0x0f84942a
diff --git a/tests/ref/fate/hevc-conformance-WPP_F_ericsson_MAIN_2 b/tests/ref/fate/hevc-conformance-WPP_F_ericsson_MAIN_2
new file mode 100644
index 0000000000..6256d96cb1
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-WPP_F_ericsson_MAIN_2
@@ -0,0 +1,49 @@
+#tb 0: 1/25
+0, 0, 0, 1, 69120, 0x28326a13
+0, 1, 1, 1, 69120, 0x1f41a4a7
+0, 2, 2, 1, 69120, 0x803ceeb4
+0, 3, 3, 1, 69120, 0x1eba4049
+0, 4, 4, 1, 69120, 0x61a25512
+0, 5, 5, 1, 69120, 0x4db37e41
+0, 6, 6, 1, 69120, 0x00f69308
+0, 7, 7, 1, 69120, 0x7478c70f
+0, 8, 8, 1, 69120, 0xba1bd40b
+0, 9, 9, 1, 69120, 0x31d416bc
+0, 10, 10, 1, 69120, 0xd0c042bd
+0, 11, 11, 1, 69120, 0xe7a75aba
+0, 12, 12, 1, 69120, 0xb4235b4c
+0, 13, 13, 1, 69120, 0xaad387c3
+0, 14, 14, 1, 69120, 0xb97aab7a
+0, 15, 15, 1, 69120, 0x1acdda47
+0, 16, 16, 1, 69120, 0x2c95f726
+0, 17, 17, 1, 69120, 0xba3f2ebb
+0, 18, 18, 1, 69120, 0x15fc4901
+0, 19, 19, 1, 69120, 0x56387074
+0, 20, 20, 1, 69120, 0xe9638772
+0, 21, 21, 1, 69120, 0x344db5ec
+0, 22, 22, 1, 69120, 0xf54bd087
+0, 23, 23, 1, 69120, 0x5b35fbe4
+0, 24, 24, 1, 69120, 0x052c0947
+0, 25, 25, 1, 69120, 0xe562417c
+0, 26, 26, 1, 69120, 0x502a4776
+0, 27, 27, 1, 69120, 0x46b05919
+0, 28, 28, 1, 69120, 0x103161a1
+0, 29, 29, 1, 69120, 0xd83e8318
+0, 30, 30, 1, 69120, 0xd7ce8fb1
+0, 31, 31, 1, 69120, 0xda3f8ac5
+0, 32, 32, 1, 69120, 0xecd17de1
+0, 33, 33, 1, 69120, 0x7beeab11
+0, 34, 34, 1, 69120, 0xb295b81f
+0, 35, 35, 1, 69120, 0x785ec9ab
+0, 36, 36, 1, 69120, 0x58a3c317
+0, 37, 37, 1, 69120, 0x05feda91
+0, 38, 38, 1, 69120, 0xd21fdcab
+0, 39, 39, 1, 69120, 0x0d6ce0ee
+0, 40, 40, 1, 69120, 0x40ddc715
+0, 41, 41, 1, 69120, 0x5489d3e1
+0, 42, 42, 1, 69120, 0x7f57c42b
+0, 43, 43, 1, 69120, 0xd470cca3
+0, 44, 44, 1, 69120, 0xfb80c51c
+0, 45, 45, 1, 69120, 0x76b1d068
+0, 46, 46, 1, 69120, 0x5b01d81e
+0, 47, 47, 1, 69120, 0x21cfc241
diff --git a/tests/ref/fate/hevc-conformance-WP_A_MAIN10_Toshiba_3 b/tests/ref/fate/hevc-conformance-WP_A_MAIN10_Toshiba_3
new file mode 100644
index 0000000000..b2dadbad8a
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-WP_A_MAIN10_Toshiba_3
@@ -0,0 +1,257 @@
+#tb 0: 1/25
+0, 0, 0, 1, 299520, 0x7750edc7
+0, 1, 1, 1, 299520, 0x97fb359b
+0, 2, 2, 1, 299520, 0x89ac22bc
+0, 3, 3, 1, 299520, 0x4f7e0ecc
+0, 4, 4, 1, 299520, 0x7367f210
+0, 5, 5, 1, 299520, 0x5c2274e3
+0, 6, 6, 1, 299520, 0x11f26352
+0, 7, 7, 1, 299520, 0x2c712fcc
+0, 8, 8, 1, 299520, 0x44d700aa
+0, 9, 9, 1, 299520, 0x7426fc80
+0, 10, 10, 1, 299520, 0xd31d2fef
+0, 11, 11, 1, 299520, 0xd7c8d389
+0, 12, 12, 1, 299520, 0x2a8283e7
+0, 13, 13, 1, 299520, 0x429f5e44
+0, 14, 14, 1, 299520, 0x5c818504
+0, 15, 15, 1, 299520, 0x1057090e
+0, 16, 16, 1, 299520, 0x61404e77
+0, 17, 17, 1, 299520, 0x8ce43ed3
+0, 18, 18, 1, 299520, 0xf08e6c4d
+0, 19, 19, 1, 299520, 0xb133a69f
+0, 20, 20, 1, 299520, 0xd1be15a5
+0, 21, 21, 1, 299520, 0xe875543f
+0, 22, 22, 1, 299520, 0x0310f356
+0, 23, 23, 1, 299520, 0x5ee0a7d9
+0, 24, 24, 1, 299520, 0xacd092bb
+0, 25, 25, 1, 299520, 0x878ef783
+0, 26, 26, 1, 299520, 0xed9a2c06
+0, 27, 27, 1, 299520, 0x0a4cb661
+0, 28, 28, 1, 299520, 0x69aed89b
+0, 29, 29, 1, 299520, 0xaa75d081
+0, 30, 30, 1, 299520, 0x4c0402c6
+0, 31, 31, 1, 299520, 0x7050b8f8
+0, 32, 32, 1, 299520, 0x20cf8db8
+0, 33, 33, 1, 299520, 0xa615d0cb
+0, 34, 34, 1, 299520, 0x3170b77f
+0, 35, 35, 1, 299520, 0x781f17a5
+0, 36, 36, 1, 299520, 0x8767468b
+0, 37, 37, 1, 299520, 0x8f291a78
+0, 38, 38, 1, 299520, 0x87534588
+0, 39, 39, 1, 299520, 0xb4861cee
+0, 40, 40, 1, 299520, 0x38b6ba36
+0, 41, 41, 1, 299520, 0x757ebda4
+0, 42, 42, 1, 299520, 0xeccca3c0
+0, 43, 43, 1, 299520, 0x8af415a3
+0, 44, 44, 1, 299520, 0x37064dea
+0, 45, 45, 1, 299520, 0xfea46d66
+0, 46, 46, 1, 299520, 0x038d776f
+0, 47, 47, 1, 299520, 0x2b905161
+0, 48, 48, 1, 299520, 0x60230f44
+0, 49, 49, 1, 299520, 0x828f8991
+0, 50, 50, 1, 299520, 0x7c5ded06
+0, 51, 51, 1, 299520, 0xef38fd3a
+0, 52, 52, 1, 299520, 0x4c08ea42
+0, 53, 53, 1, 299520, 0x66dd9974
+0, 54, 54, 1, 299520, 0x4af1e690
+0, 55, 55, 1, 299520, 0x3fce05be
+0, 56, 56, 1, 299520, 0x07ccca7a
+0, 57, 57, 1, 299520, 0x1113a830
+0, 58, 58, 1, 299520, 0xe095faa8
+0, 59, 59, 1, 299520, 0x01da87b4
+0, 60, 60, 1, 299520, 0xecd3ea56
+0, 61, 61, 1, 299520, 0x8b80d26b
+0, 62, 62, 1, 299520, 0x625b4844
+0, 63, 63, 1, 299520, 0x1f96bc19
+0, 64, 64, 1, 299520, 0x8de15c59
+0, 65, 65, 1, 299520, 0x8de15c59
+0, 66, 66, 1, 299520, 0xe0f88d0d
+0, 67, 67, 1, 299520, 0xe0f88d0d
+0, 68, 68, 1, 299520, 0xf951adca
+0, 69, 69, 1, 299520, 0x3159e1a0
+0, 70, 70, 1, 299520, 0xa3b9764d
+0, 71, 71, 1, 299520, 0xa294c4db
+0, 72, 72, 1, 299520, 0x9ddd0aa8
+0, 73, 73, 1, 299520, 0x47702302
+0, 74, 74, 1, 299520, 0xebd66219
+0, 75, 75, 1, 299520, 0x9daa6030
+0, 76, 76, 1, 299520, 0x74aad521
+0, 77, 77, 1, 299520, 0x74aad521
+0, 78, 78, 1, 299520, 0x6be83092
+0, 79, 79, 1, 299520, 0x87e19ded
+0, 80, 80, 1, 299520, 0x41f4552c
+0, 81, 81, 1, 299520, 0xdbbd4643
+0, 82, 82, 1, 299520, 0x85505e9d
+0, 83, 83, 1, 299520, 0x33692949
+0, 84, 84, 1, 299520, 0x2d3ded88
+0, 85, 85, 1, 299520, 0x211ed3d4
+0, 86, 86, 1, 299520, 0x9dd3c6b8
+0, 87, 87, 1, 299520, 0x96016144
+0, 88, 88, 1, 299520, 0xdb86dd3a
+0, 89, 89, 1, 299520, 0x2a07d782
+0, 90, 90, 1, 299520, 0x4baeac21
+0, 91, 91, 1, 299520, 0x9426dbd3
+0, 92, 92, 1, 299520, 0x69203a74
+0, 93, 93, 1, 299520, 0x69203a74
+0, 94, 94, 1, 299520, 0xcb3e55c2
+0, 95, 95, 1, 299520, 0xbbc8dea2
+0, 96, 96, 1, 299520, 0x19b27f0d
+0, 97, 97, 1, 299520, 0x0edb8988
+0, 98, 98, 1, 299520, 0x0b3a8feb
+0, 99, 99, 1, 299520, 0xa2a3a4b4
+0, 100, 100, 1, 299520, 0xeb26e563
+0, 101, 101, 1, 299520, 0xd3fb037e
+0, 102, 102, 1, 299520, 0x106089ed
+0, 103, 103, 1, 299520, 0x606fb6ed
+0, 104, 104, 1, 299520, 0x6e14a326
+0, 105, 105, 1, 299520, 0x875cfdab
+0, 106, 106, 1, 299520, 0xa1f316f9
+0, 107, 107, 1, 299520, 0x444fff4a
+0, 108, 108, 1, 299520, 0x9c7b6c8a
+0, 109, 109, 1, 299520, 0xffd0ffa3
+0, 110, 110, 1, 299520, 0x278941d9
+0, 111, 111, 1, 299520, 0x05a1552f
+0, 112, 112, 1, 299520, 0x5b564fbc
+0, 113, 113, 1, 299520, 0x25ffb96d
+0, 114, 114, 1, 299520, 0x6e389daf
+0, 115, 115, 1, 299520, 0x1b48132b
+0, 116, 116, 1, 299520, 0xcc9b5df0
+0, 117, 117, 1, 299520, 0xe8895d00
+0, 118, 118, 1, 299520, 0x35ea30df
+0, 119, 119, 1, 299520, 0x8dcf07b4
+0, 120, 120, 1, 299520, 0x1cf3780e
+0, 121, 121, 1, 299520, 0x5f1a6062
+0, 122, 122, 1, 299520, 0xe2ac4ed0
+0, 123, 123, 1, 299520, 0x07fe56aa
+0, 124, 124, 1, 299520, 0xe892eab8
+0, 125, 125, 1, 299520, 0xdeda11d7
+0, 126, 126, 1, 299520, 0xc8134b3f
+0, 127, 127, 1, 299520, 0x8baa039a
+0, 128, 128, 1, 299520, 0x8ec71908
+0, 129, 129, 1, 299520, 0x8ec71908
+0, 130, 130, 1, 299520, 0x73ae1f71
+0, 131, 131, 1, 299520, 0xb615e210
+0, 132, 132, 1, 299520, 0x7afe31e6
+0, 133, 133, 1, 299520, 0x38362f5b
+0, 134, 134, 1, 299520, 0xbb7c2fad
+0, 135, 135, 1, 299520, 0xe08720c1
+0, 136, 136, 1, 299520, 0xb1118297
+0, 137, 137, 1, 299520, 0x33740a04
+0, 138, 138, 1, 299520, 0x567c1e9c
+0, 139, 139, 1, 299520, 0x3911af2a
+0, 140, 140, 1, 299520, 0xec64ec95
+0, 141, 141, 1, 299520, 0x83128903
+0, 142, 142, 1, 299520, 0xd11a7835
+0, 143, 143, 1, 299520, 0xd96bc851
+0, 144, 144, 1, 299520, 0x726696ba
+0, 145, 145, 1, 299520, 0x35c6b8e4
+0, 146, 146, 1, 299520, 0xd238e317
+0, 147, 147, 1, 299520, 0xf28c861b
+0, 148, 148, 1, 299520, 0x5d49132b
+0, 149, 149, 1, 299520, 0xcbadef81
+0, 150, 150, 1, 299520, 0x1fbcfda6
+0, 151, 151, 1, 299520, 0xa18a07b6
+0, 152, 152, 1, 299520, 0xa1631bb5
+0, 153, 153, 1, 299520, 0xcb80f2d6
+0, 154, 154, 1, 299520, 0x88b23aae
+0, 155, 155, 1, 299520, 0xbaa50ebe
+0, 156, 156, 1, 299520, 0x1bc7151d
+0, 157, 157, 1, 299520, 0x7254b9a4
+0, 158, 158, 1, 299520, 0xd66682cb
+0, 159, 159, 1, 299520, 0x846c055b
+0, 160, 160, 1, 299520, 0x4d0ac94f
+0, 161, 161, 1, 299520, 0xf9a01b25
+0, 162, 162, 1, 299520, 0x193dc288
+0, 163, 163, 1, 299520, 0xf43fb875
+0, 164, 164, 1, 299520, 0xf4fd6452
+0, 165, 165, 1, 299520, 0xafcdfb2a
+0, 166, 166, 1, 299520, 0x5c342ad7
+0, 167, 167, 1, 299520, 0xfe7943ec
+0, 168, 168, 1, 299520, 0xc7e8a82d
+0, 169, 169, 1, 299520, 0x99b1ed3f
+0, 170, 170, 1, 299520, 0x4decbdb8
+0, 171, 171, 1, 299520, 0x3cb0ccc2
+0, 172, 172, 1, 299520, 0x3b210547
+0, 173, 173, 1, 299520, 0xb8dee8bf
+0, 174, 174, 1, 299520, 0x75124e85
+0, 175, 175, 1, 299520, 0xbd390ba5
+0, 176, 176, 1, 299520, 0x5030302d
+0, 177, 177, 1, 299520, 0x38a4c990
+0, 178, 178, 1, 299520, 0x6d091561
+0, 179, 179, 1, 299520, 0x4598d16a
+0, 180, 180, 1, 299520, 0xa60c8a7c
+0, 181, 181, 1, 299520, 0x1987b4ab
+0, 182, 182, 1, 299520, 0x3fc66893
+0, 183, 183, 1, 299520, 0x3fc66893
+0, 184, 184, 1, 299520, 0x84694e9d
+0, 185, 185, 1, 299520, 0x84694e9d
+0, 186, 186, 1, 299520, 0xa736933c
+0, 187, 187, 1, 299520, 0x994e35f8
+0, 188, 188, 1, 299520, 0x80999aab
+0, 189, 189, 1, 299520, 0x5cf09e35
+0, 190, 190, 1, 299520, 0x8678f05d
+0, 191, 191, 1, 299520, 0xe4ca13df
+0, 192, 192, 1, 299520, 0x0ab1fc5b
+0, 193, 193, 1, 299520, 0x949977a6
+0, 194, 194, 1, 299520, 0x0ab1fc5b
+0, 195, 195, 1, 299520, 0xb5677d4e
+0, 196, 196, 1, 299520, 0xefd5e34c
+0, 197, 197, 1, 299520, 0xfb5875da
+0, 198, 198, 1, 299520, 0x3520759c
+0, 199, 199, 1, 299520, 0xc30dbfb6
+0, 200, 200, 1, 299520, 0xcedb09c4
+0, 201, 201, 1, 299520, 0xced1dc4a
+0, 202, 202, 1, 299520, 0xcf7d3425
+0, 203, 203, 1, 299520, 0xede92113
+0, 204, 204, 1, 299520, 0x6ca1204e
+0, 205, 205, 1, 299520, 0x04a46f67
+0, 206, 206, 1, 299520, 0x1bd8fe03
+0, 207, 207, 1, 299520, 0x11dab44d
+0, 208, 208, 1, 299520, 0xc0d1109c
+0, 209, 209, 1, 299520, 0x9e19c78f
+0, 210, 210, 1, 299520, 0xcffab4cb
+0, 211, 211, 1, 299520, 0x07582785
+0, 212, 212, 1, 299520, 0x43182694
+0, 213, 213, 1, 299520, 0x76f8c058
+0, 214, 214, 1, 299520, 0x895cbd03
+0, 215, 215, 1, 299520, 0xec9f9014
+0, 216, 216, 1, 299520, 0xd9cc6c00
+0, 217, 217, 1, 299520, 0xf15c775e
+0, 218, 218, 1, 299520, 0xe4b60e06
+0, 219, 219, 1, 299520, 0x5d825ea9
+0, 220, 220, 1, 299520, 0xd39d2f4a
+0, 221, 221, 1, 299520, 0x9b8dfedc
+0, 222, 222, 1, 299520, 0xc851ce8f
+0, 223, 223, 1, 299520, 0xdc399f09
+0, 224, 224, 1, 299520, 0xbce817c6
+0, 225, 225, 1, 299520, 0x48cc865e
+0, 226, 226, 1, 299520, 0xf875c060
+0, 227, 227, 1, 299520, 0xb3b4b0a3
+0, 228, 228, 1, 299520, 0xce683731
+0, 229, 229, 1, 299520, 0xeddd5126
+0, 230, 230, 1, 299520, 0x2ecf505e
+0, 231, 231, 1, 299520, 0x631c4af2
+0, 232, 232, 1, 299520, 0x1cc7742e
+0, 233, 233, 1, 299520, 0xc5124083
+0, 234, 234, 1, 299520, 0x4a851970
+0, 235, 235, 1, 299520, 0xbfad7925
+0, 236, 236, 1, 299520, 0x92058c0e
+0, 237, 237, 1, 299520, 0x7ecd39b5
+0, 238, 238, 1, 299520, 0x58887a74
+0, 239, 239, 1, 299520, 0xb0825813
+0, 240, 240, 1, 299520, 0xbc763455
+0, 241, 241, 1, 299520, 0x3b259a45
+0, 242, 242, 1, 299520, 0xb200177c
+0, 243, 243, 1, 299520, 0x1cb15851
+0, 244, 244, 1, 299520, 0xd73a92cd
+0, 245, 245, 1, 299520, 0xe43419cf
+0, 246, 246, 1, 299520, 0xf0facff1
+0, 247, 247, 1, 299520, 0xc931e638
+0, 248, 248, 1, 299520, 0xc33e31e7
+0, 249, 249, 1, 299520, 0x03b43a26
+0, 250, 250, 1, 299520, 0x85d64d60
+0, 251, 251, 1, 299520, 0x86a8848c
+0, 252, 252, 1, 299520, 0x5f09afaf
+0, 253, 253, 1, 299520, 0xb7e92098
+0, 254, 254, 1, 299520, 0xf1957fad
+0, 255, 255, 1, 299520, 0xf29dc4b0
diff --git a/tests/ref/fate/hevc-conformance-WP_A_Toshiba_3 b/tests/ref/fate/hevc-conformance-WP_A_Toshiba_3
new file mode 100644
index 0000000000..a8c5df34f1
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-WP_A_Toshiba_3
@@ -0,0 +1,257 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0xf4bafc83
+0, 1, 1, 1, 149760, 0x611ca492
+0, 2, 2, 1, 149760, 0x8fa9bbb1
+0, 3, 3, 1, 149760, 0x3926aed3
+0, 4, 4, 1, 149760, 0x33e4f7f0
+0, 5, 5, 1, 149760, 0x03cc4fab
+0, 6, 6, 1, 149760, 0xbfae58e5
+0, 7, 7, 1, 149760, 0x0e6f1fea
+0, 8, 8, 1, 149760, 0x5a2ed57e
+0, 9, 9, 1, 149760, 0x5513cc3a
+0, 10, 10, 1, 149760, 0xd610ccca
+0, 11, 11, 1, 149760, 0xbf27617f
+0, 12, 12, 1, 149760, 0x878cd03b
+0, 13, 13, 1, 149760, 0x7b7ec3e9
+0, 14, 14, 1, 149760, 0xdaff0ba7
+0, 15, 15, 1, 149760, 0xce3be576
+0, 16, 16, 1, 149760, 0x16d32b84
+0, 17, 17, 1, 149760, 0xb7f6a144
+0, 18, 18, 1, 149760, 0x4dfb9b67
+0, 19, 19, 1, 149760, 0x29cb06ba
+0, 20, 20, 1, 149760, 0xcee5f14c
+0, 21, 21, 1, 149760, 0xe05bde26
+0, 22, 22, 1, 149760, 0xf717e789
+0, 23, 23, 1, 149760, 0xbbbf0ce8
+0, 24, 24, 1, 149760, 0x0e3ccfb1
+0, 25, 25, 1, 149760, 0x84204399
+0, 26, 26, 1, 149760, 0x02063b2b
+0, 27, 27, 1, 149760, 0xa4198aab
+0, 28, 28, 1, 149760, 0x4a4075aa
+0, 29, 29, 1, 149760, 0x1869435b
+0, 30, 30, 1, 149760, 0x04a12a8b
+0, 31, 31, 1, 149760, 0x7ab3f640
+0, 32, 32, 1, 149760, 0xba55f83a
+0, 33, 33, 1, 149760, 0xa8abaa48
+0, 34, 34, 1, 149760, 0x25483cb4
+0, 35, 35, 1, 149760, 0xc6925d6d
+0, 36, 36, 1, 149760, 0xc944b04d
+0, 37, 37, 1, 149760, 0xd7093017
+0, 38, 38, 1, 149760, 0x8d11c574
+0, 39, 39, 1, 149760, 0xdbaab3e1
+0, 40, 40, 1, 149760, 0xb412a3d9
+0, 41, 41, 1, 149760, 0x37b918a6
+0, 42, 42, 1, 149760, 0x6f6e7575
+0, 43, 43, 1, 149760, 0x059a55de
+0, 44, 44, 1, 149760, 0xe75aa6e6
+0, 45, 45, 1, 149760, 0x627394bf
+0, 46, 46, 1, 149760, 0xbcf99ab9
+0, 47, 47, 1, 149760, 0x29c52e30
+0, 48, 48, 1, 149760, 0x22056e1a
+0, 49, 49, 1, 149760, 0xf272fa39
+0, 50, 50, 1, 149760, 0x4b89033e
+0, 51, 51, 1, 149760, 0x0a59e138
+0, 52, 52, 1, 149760, 0x61a1a6c8
+0, 53, 53, 1, 149760, 0xe5414697
+0, 54, 54, 1, 149760, 0x6db38ec2
+0, 55, 55, 1, 149760, 0x2d09b0ba
+0, 56, 56, 1, 149760, 0x014a751e
+0, 57, 57, 1, 149760, 0x3e6f78d6
+0, 58, 58, 1, 149760, 0xed483aab
+0, 59, 59, 1, 149760, 0xcf366ee0
+0, 60, 60, 1, 149760, 0x4fc5e2dc
+0, 61, 61, 1, 149760, 0xf2a16393
+0, 62, 62, 1, 149760, 0xaa7ff5be
+0, 63, 63, 1, 149760, 0xa8c4c963
+0, 64, 64, 1, 149760, 0x3af766cf
+0, 65, 65, 1, 149760, 0x3af766cf
+0, 66, 66, 1, 149760, 0x11de29e7
+0, 67, 67, 1, 149760, 0x3aa137c0
+0, 68, 68, 1, 149760, 0x6f5bf4c4
+0, 69, 69, 1, 149760, 0xa5b8f392
+0, 70, 70, 1, 149760, 0x106ee459
+0, 71, 71, 1, 149760, 0x65dd99cc
+0, 72, 72, 1, 149760, 0x96facd15
+0, 73, 73, 1, 149760, 0x3355cb07
+0, 74, 74, 1, 149760, 0xe994f26b
+0, 75, 75, 1, 149760, 0xe955f0d5
+0, 76, 76, 1, 149760, 0xb740949e
+0, 77, 77, 1, 149760, 0x0b95963b
+0, 78, 78, 1, 149760, 0xdf7cf302
+0, 79, 79, 1, 149760, 0x8805c30d
+0, 80, 80, 1, 149760, 0xc30c832a
+0, 81, 81, 1, 149760, 0x696836a7
+0, 82, 82, 1, 149760, 0x696836a7
+0, 83, 83, 1, 149760, 0x4c7e0e68
+0, 84, 84, 1, 149760, 0xfee52485
+0, 85, 85, 1, 149760, 0xebbe8381
+0, 86, 86, 1, 149760, 0xb30ff0a9
+0, 87, 87, 1, 149760, 0x4ddafbfb
+0, 88, 88, 1, 149760, 0x5449c902
+0, 89, 89, 1, 149760, 0x79e61161
+0, 90, 90, 1, 149760, 0x72f1a340
+0, 91, 91, 1, 149760, 0xf98bae64
+0, 92, 92, 1, 149760, 0x253dd19f
+0, 93, 93, 1, 149760, 0x253dd19f
+0, 94, 94, 1, 149760, 0xc16e6af4
+0, 95, 95, 1, 149760, 0x66f2a539
+0, 96, 96, 1, 149760, 0xfccfd340
+0, 97, 97, 1, 149760, 0xd76a28c9
+0, 98, 98, 1, 149760, 0x38797af0
+0, 99, 99, 1, 149760, 0x06165c19
+0, 100, 100, 1, 149760, 0x9afee257
+0, 101, 101, 1, 149760, 0x1b2ce435
+0, 102, 102, 1, 149760, 0xb3e2de89
+0, 103, 103, 1, 149760, 0xb585e81f
+0, 104, 104, 1, 149760, 0x6743ece6
+0, 105, 105, 1, 149760, 0xfe5a001f
+0, 106, 106, 1, 149760, 0x064a778f
+0, 107, 107, 1, 149760, 0x99907eef
+0, 108, 108, 1, 149760, 0x1b9ec247
+0, 109, 109, 1, 149760, 0x52adad6c
+0, 110, 110, 1, 149760, 0xf5176bd9
+0, 111, 111, 1, 149760, 0xefdfa365
+0, 112, 112, 1, 149760, 0xa2e8447f
+0, 113, 113, 1, 149760, 0x3ea43a87
+0, 114, 114, 1, 149760, 0xbe643579
+0, 115, 115, 1, 149760, 0x518ae330
+0, 116, 116, 1, 149760, 0x49d815e6
+0, 117, 117, 1, 149760, 0xbfbb1bf0
+0, 118, 118, 1, 149760, 0x19596f6f
+0, 119, 119, 1, 149760, 0x4f6cbeec
+0, 120, 120, 1, 149760, 0xdd3f7460
+0, 121, 121, 1, 149760, 0xf2bb54f3
+0, 122, 122, 1, 149760, 0xb9d5d7cd
+0, 123, 123, 1, 149760, 0xe62736a5
+0, 124, 124, 1, 149760, 0x29c6f950
+0, 125, 125, 1, 149760, 0x99e1faed
+0, 126, 126, 1, 149760, 0x5c149afe
+0, 127, 127, 1, 149760, 0xb4118f9b
+0, 128, 128, 1, 149760, 0x262d7f30
+0, 129, 129, 1, 149760, 0x262d7f30
+0, 130, 130, 1, 149760, 0x13e286ed
+0, 131, 131, 1, 149760, 0xee6b3447
+0, 132, 132, 1, 149760, 0x9e749867
+0, 133, 133, 1, 149760, 0xdbca6bab
+0, 134, 134, 1, 149760, 0x154c9331
+0, 135, 135, 1, 149760, 0x653a3058
+0, 136, 136, 1, 149760, 0x739c1e57
+0, 137, 137, 1, 149760, 0x8e05e122
+0, 138, 138, 1, 149760, 0xe21f583a
+0, 139, 139, 1, 149760, 0xa58149fc
+0, 140, 140, 1, 149760, 0x90bd3787
+0, 141, 141, 1, 149760, 0x385aa42a
+0, 142, 142, 1, 149760, 0xf2589fc6
+0, 143, 143, 1, 149760, 0xd5233b3b
+0, 144, 144, 1, 149760, 0x2cc2d9cc
+0, 145, 145, 1, 149760, 0xb9b0eeef
+0, 146, 146, 1, 149760, 0xa9a60da9
+0, 147, 147, 1, 149760, 0xb854378a
+0, 148, 148, 1, 149760, 0xa76e2c37
+0, 149, 149, 1, 149760, 0xbe5c0542
+0, 150, 150, 1, 149760, 0x4d78b907
+0, 151, 151, 1, 149760, 0x6119f5d7
+0, 152, 152, 1, 149760, 0x195ae3c8
+0, 153, 153, 1, 149760, 0x35e9de61
+0, 154, 154, 1, 149760, 0x99f0df3b
+0, 155, 155, 1, 149760, 0x1a0ebfee
+0, 156, 156, 1, 149760, 0x4ece0a87
+0, 157, 157, 1, 149760, 0x670773b9
+0, 158, 158, 1, 149760, 0xae8c2789
+0, 159, 159, 1, 149760, 0xa145e3f8
+0, 160, 160, 1, 149760, 0x130d2ea3
+0, 161, 161, 1, 149760, 0x9afdf6dc
+0, 162, 162, 1, 149760, 0x8f8ed056
+0, 163, 163, 1, 149760, 0x8d50ad5c
+0, 164, 164, 1, 149760, 0x50b41bbb
+0, 165, 165, 1, 149760, 0xe8a89c0b
+0, 166, 166, 1, 149760, 0x4862c664
+0, 167, 167, 1, 149760, 0x9f99193f
+0, 168, 168, 1, 149760, 0x3d2ea4d8
+0, 169, 169, 1, 149760, 0xfcb83723
+0, 170, 170, 1, 149760, 0x2e135fe9
+0, 171, 171, 1, 149760, 0xcd059eeb
+0, 172, 172, 1, 149760, 0xcc2914ab
+0, 173, 173, 1, 149760, 0x63a4cf21
+0, 174, 174, 1, 149760, 0x0bdf9666
+0, 175, 175, 1, 149760, 0x8fcd46d9
+0, 176, 176, 1, 149760, 0xa2a94d81
+0, 177, 177, 1, 149760, 0x72da1124
+0, 178, 178, 1, 149760, 0x4faf50a2
+0, 179, 179, 1, 149760, 0x52168ea8
+0, 180, 180, 1, 149760, 0x766cd6e4
+0, 181, 181, 1, 149760, 0x9a76dd3f
+0, 182, 182, 1, 149760, 0xacf745bb
+0, 183, 183, 1, 149760, 0xacf745bb
+0, 184, 184, 1, 149760, 0x5d0f5914
+0, 185, 185, 1, 149760, 0x5d0f5914
+0, 186, 186, 1, 149760, 0x491b5959
+0, 187, 187, 1, 149760, 0xce9bf07f
+0, 188, 188, 1, 149760, 0x45123e08
+0, 189, 189, 1, 149760, 0x7ec1ced4
+0, 190, 190, 1, 149760, 0x7ec1ced4
+0, 191, 191, 1, 149760, 0xd383e72e
+0, 192, 192, 1, 149760, 0x29558d4c
+0, 193, 193, 1, 149760, 0xdcea6ec3
+0, 194, 194, 1, 149760, 0x29558d4c
+0, 195, 195, 1, 149760, 0x55b305ad
+0, 196, 196, 1, 149760, 0x68326c39
+0, 197, 197, 1, 149760, 0x89c8c0f7
+0, 198, 198, 1, 149760, 0x1fb33243
+0, 199, 199, 1, 149760, 0xa07b14e8
+0, 200, 200, 1, 149760, 0x6b37b02f
+0, 201, 201, 1, 149760, 0x7453171e
+0, 202, 202, 1, 149760, 0xec95ce93
+0, 203, 203, 1, 149760, 0xdbb0481b
+0, 204, 204, 1, 149760, 0xe44eaafd
+0, 205, 205, 1, 149760, 0xcdf5dfd5
+0, 206, 206, 1, 149760, 0x42695b4e
+0, 207, 207, 1, 149760, 0xe4e26db0
+0, 208, 208, 1, 149760, 0xada778f6
+0, 209, 209, 1, 149760, 0x77dab36a
+0, 210, 210, 1, 149760, 0xcabeb23d
+0, 211, 211, 1, 149760, 0x43d21021
+0, 212, 212, 1, 149760, 0xe4a5280c
+0, 213, 213, 1, 149760, 0xeb408a99
+0, 214, 214, 1, 149760, 0x0751fc6c
+0, 215, 215, 1, 149760, 0x2e770c68
+0, 216, 216, 1, 149760, 0x5a799fb0
+0, 217, 217, 1, 149760, 0x0e2e22dd
+0, 218, 218, 1, 149760, 0x276e6e88
+0, 219, 219, 1, 149760, 0xf83b9da4
+0, 220, 220, 1, 149760, 0xd4599290
+0, 221, 221, 1, 149760, 0xd4599290
+0, 222, 222, 1, 149760, 0xcf41ec75
+0, 223, 223, 1, 149760, 0x84af0bfc
+0, 224, 224, 1, 149760, 0x59db5c12
+0, 225, 225, 1, 149760, 0x0405a92a
+0, 226, 226, 1, 149760, 0xfde2c0fe
+0, 227, 227, 1, 149760, 0x96a68bab
+0, 228, 228, 1, 149760, 0x7e9d4983
+0, 229, 229, 1, 149760, 0x27b724c9
+0, 230, 230, 1, 149760, 0x402cdb15
+0, 231, 231, 1, 149760, 0x0d89328b
+0, 232, 232, 1, 149760, 0x08847a7e
+0, 233, 233, 1, 149760, 0x8eb7f52f
+0, 234, 234, 1, 149760, 0x49bf75bb
+0, 235, 235, 1, 149760, 0xbd6c77e3
+0, 236, 236, 1, 149760, 0x9eb5a5c0
+0, 237, 237, 1, 149760, 0xb5900c9b
+0, 238, 238, 1, 149760, 0xa9278bd6
+0, 239, 239, 1, 149760, 0x688d4c01
+0, 240, 240, 1, 149760, 0xe2669ce6
+0, 241, 241, 1, 149760, 0xb80590b9
+0, 242, 242, 1, 149760, 0xcdcc0036
+0, 243, 243, 1, 149760, 0xad653077
+0, 244, 244, 1, 149760, 0xe87179ae
+0, 245, 245, 1, 149760, 0x91553e8b
+0, 246, 246, 1, 149760, 0xd254f2b4
+0, 247, 247, 1, 149760, 0xe284e289
+0, 248, 248, 1, 149760, 0x09118405
+0, 249, 249, 1, 149760, 0x5f46d196
+0, 250, 250, 1, 149760, 0xfee1f4be
+0, 251, 251, 1, 149760, 0xbccf48bc
+0, 252, 252, 1, 149760, 0x48327792
+0, 253, 253, 1, 149760, 0x3d893b3c
+0, 254, 254, 1, 149760, 0xb2ae071d
+0, 255, 255, 1, 149760, 0x278e0be3
diff --git a/tests/ref/fate/hevc-conformance-WP_B_Toshiba_3 b/tests/ref/fate/hevc-conformance-WP_B_Toshiba_3
new file mode 100644
index 0000000000..f302764711
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-WP_B_Toshiba_3
@@ -0,0 +1,257 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0xd8bf0c39
+0, 4, 4, 1, 149760, 0xad390a29
+0, 5, 5, 1, 149760, 0x0d310906
+0, 5, 5, 1, 149760, 0x03bcb5ac
+0, 6, 6, 1, 149760, 0x6c38226f
+0, 7, 7, 1, 149760, 0xc7d898b6
+0, 8, 8, 1, 149760, 0x1e031118
+0, 9, 9, 1, 149760, 0x7a2437f2
+0, 10, 10, 1, 149760, 0x524d616a
+0, 11, 11, 1, 149760, 0x001ac80e
+0, 12, 12, 1, 149760, 0x6fe323e4
+0, 13, 13, 1, 149760, 0x2a95a125
+0, 14, 14, 1, 149760, 0x212316e4
+0, 15, 15, 1, 149760, 0x7984e2ed
+0, 16, 16, 1, 149760, 0xb0a4a95c
+0, 17, 17, 1, 149760, 0x100566ae
+0, 18, 18, 1, 149760, 0xb21b2344
+0, 19, 19, 1, 149760, 0x0578bca2
+0, 20, 20, 1, 149760, 0xf7523964
+0, 21, 21, 1, 149760, 0x38d2ca9e
+0, 22, 22, 1, 149760, 0x77890564
+0, 23, 23, 1, 149760, 0xbdba85df
+0, 24, 24, 1, 149760, 0x646ae92d
+0, 25, 25, 1, 149760, 0xfcbb58b9
+0, 26, 26, 1, 149760, 0x0122aa96
+0, 27, 27, 1, 149760, 0x60f8e1ee
+0, 28, 28, 1, 149760, 0x3fc2d587
+0, 29, 29, 1, 149760, 0xdb622c12
+0, 30, 30, 1, 149760, 0xa8df64cf
+0, 31, 31, 1, 149760, 0x12f8d6c8
+0, 32, 32, 1, 149760, 0xf6703c4d
+0, 33, 33, 1, 149760, 0x66ef211d
+0, 34, 34, 1, 149760, 0x821b02f6
+0, 35, 35, 1, 149760, 0xc87f48a0
+0, 36, 36, 1, 149760, 0xb816ad51
+0, 37, 37, 1, 149760, 0x238e6fa0
+0, 38, 38, 1, 149760, 0x0fc06010
+0, 39, 39, 1, 149760, 0x749c71dc
+0, 40, 40, 1, 149760, 0x88c69718
+0, 41, 41, 1, 149760, 0x4b29aeb1
+0, 42, 42, 1, 149760, 0xaaefb509
+0, 43, 43, 1, 149760, 0x2975fda6
+0, 44, 44, 1, 149760, 0x613ec356
+0, 45, 45, 1, 149760, 0xf1e46db6
+0, 46, 46, 1, 149760, 0x8c8aec07
+0, 47, 47, 1, 149760, 0xb9a8be75
+0, 48, 48, 1, 149760, 0xfdce756a
+0, 49, 49, 1, 149760, 0x9c76f148
+0, 50, 50, 1, 149760, 0x5d1862dd
+0, 51, 51, 1, 149760, 0x42ae08bf
+0, 52, 52, 1, 149760, 0xc28f9247
+0, 53, 53, 1, 149760, 0x719d321c
+0, 54, 54, 1, 149760, 0x1520a7bc
+0, 55, 55, 1, 149760, 0x4fb98c9a
+0, 56, 56, 1, 149760, 0x88d410a6
+0, 57, 57, 1, 149760, 0x807ac417
+0, 58, 58, 1, 149760, 0x6de5f4ab
+0, 59, 59, 1, 149760, 0x678613c7
+0, 60, 60, 1, 149760, 0xe7d12abf
+0, 61, 61, 1, 149760, 0x23955076
+0, 62, 62, 1, 149760, 0x298d1bce
+0, 63, 63, 1, 149760, 0x18d4605d
+0, 64, 64, 1, 149760, 0x3a606618
+0, 65, 65, 1, 149760, 0x861fcb5a
+0, 66, 66, 1, 149760, 0xc6622a90
+0, 67, 67, 1, 149760, 0x62d4cd48
+0, 68, 68, 1, 149760, 0x991430e6
+0, 69, 69, 1, 149760, 0x6316503c
+0, 70, 70, 1, 149760, 0xdf2d29f2
+0, 71, 71, 1, 149760, 0xeeeb307a
+0, 72, 72, 1, 149760, 0xade9ae1d
+0, 73, 73, 1, 149760, 0x54734581
+0, 74, 74, 1, 149760, 0x5ccd7389
+0, 75, 75, 1, 149760, 0xf0588bf8
+0, 76, 76, 1, 149760, 0xf18e44e5
+0, 77, 77, 1, 149760, 0x4512602b
+0, 78, 78, 1, 149760, 0x9aac8281
+0, 79, 79, 1, 149760, 0x69bdad58
+0, 80, 80, 1, 149760, 0x04ffe580
+0, 81, 81, 1, 149760, 0x28bfe45f
+0, 82, 82, 1, 149760, 0xd7ce93b0
+0, 83, 83, 1, 149760, 0xa880b1d4
+0, 84, 84, 1, 149760, 0xf38298d0
+0, 85, 85, 1, 149760, 0x2ae05958
+0, 86, 86, 1, 149760, 0xa892151b
+0, 87, 87, 1, 149760, 0xed2cef63
+0, 88, 88, 1, 149760, 0x678fc6f5
+0, 89, 89, 1, 149760, 0xfcbaa892
+0, 90, 90, 1, 149760, 0x48cc722b
+0, 91, 91, 1, 149760, 0x32cd8975
+0, 92, 92, 1, 149760, 0x05ad8586
+0, 93, 93, 1, 149760, 0x62a0fb36
+0, 94, 94, 1, 149760, 0x41df8d45
+0, 95, 95, 1, 149760, 0x80bd938d
+0, 96, 96, 1, 149760, 0xafe414b0
+0, 97, 97, 1, 149760, 0x3077d51d
+0, 98, 98, 1, 149760, 0x65148cef
+0, 99, 99, 1, 149760, 0xadb76ef0
+0, 100, 100, 1, 149760, 0x889c3051
+0, 101, 101, 1, 149760, 0xe83b227e
+0, 102, 102, 1, 149760, 0xc373f5e0
+0, 103, 103, 1, 149760, 0x6ffa2a5f
+0, 104, 104, 1, 149760, 0x6eef18f5
+0, 105, 105, 1, 149760, 0x1b1ba6e4
+0, 106, 106, 1, 149760, 0x88e316a4
+0, 107, 107, 1, 149760, 0x4c0697f4
+0, 108, 108, 1, 149760, 0x5eb30515
+0, 109, 109, 1, 149760, 0xeeff8fa3
+0, 110, 110, 1, 149760, 0x653a07a9
+0, 111, 111, 1, 149760, 0x3faf44a8
+0, 112, 112, 1, 149760, 0xe33f740e
+0, 113, 113, 1, 149760, 0x6bea0f49
+0, 114, 114, 1, 149760, 0x4d5aa784
+0, 115, 115, 1, 149760, 0x0c85ea00
+0, 116, 116, 1, 149760, 0xf64fc40b
+0, 117, 117, 1, 149760, 0xf222e3b4
+0, 118, 118, 1, 149760, 0x6b3be6bc
+0, 119, 119, 1, 149760, 0x91447dfb
+0, 120, 120, 1, 149760, 0xfd0dd98c
+0, 121, 121, 1, 149760, 0x468eb01a
+0, 122, 122, 1, 149760, 0x928a720a
+0, 123, 123, 1, 149760, 0x0b3f576b
+0, 124, 124, 1, 149760, 0x430493df
+0, 125, 125, 1, 149760, 0x375d2221
+0, 126, 126, 1, 149760, 0x50d0a88c
+0, 127, 127, 1, 149760, 0x54363ffb
+0, 128, 128, 1, 149760, 0xc243c434
+0, 129, 129, 1, 149760, 0x26fe8f5c
+0, 130, 130, 1, 149760, 0xd936485c
+0, 131, 131, 1, 149760, 0xd936485c
+0, 132, 132, 1, 149760, 0xa0cabe5a
+0, 133, 133, 1, 149760, 0xf0956484
+0, 134, 134, 1, 149760, 0x14cda6ee
+0, 135, 135, 1, 149760, 0x0b7ada70
+0, 136, 136, 1, 149760, 0x113f0ec5
+0, 137, 137, 1, 149760, 0xc1364acc
+0, 138, 138, 1, 149760, 0x0c768a6a
+0, 139, 139, 1, 149760, 0x94fd7a00
+0, 140, 140, 1, 149760, 0x624a5ebb
+0, 141, 141, 1, 149760, 0xdd5008a0
+0, 142, 142, 1, 149760, 0xc380626c
+0, 143, 143, 1, 149760, 0xb0974c02
+0, 144, 144, 1, 149760, 0x68be6c1e
+0, 145, 145, 1, 149760, 0xb8d24677
+0, 146, 146, 1, 149760, 0x1efe195c
+0, 147, 147, 1, 149760, 0x29e9153a
+0, 148, 148, 1, 149760, 0x1b6057b7
+0, 149, 149, 1, 149760, 0x959a4461
+0, 150, 150, 1, 149760, 0x4e3d33a9
+0, 151, 151, 1, 149760, 0x206e7899
+0, 152, 152, 1, 149760, 0xcb7da081
+0, 153, 153, 1, 149760, 0xc650ed7b
+0, 154, 154, 1, 149760, 0x82832d10
+0, 155, 155, 1, 149760, 0xdf9c6218
+0, 156, 156, 1, 149760, 0xcc3489c7
+0, 157, 157, 1, 149760, 0xd284a4a1
+0, 158, 158, 1, 149760, 0x7099451c
+0, 159, 159, 1, 149760, 0xec26fc56
+0, 160, 160, 1, 149760, 0x105a496f
+0, 161, 161, 1, 149760, 0xb8756fe8
+0, 162, 162, 1, 149760, 0xb1a509df
+0, 163, 163, 1, 149760, 0x135f8f7e
+0, 164, 164, 1, 149760, 0x3419098d
+0, 165, 165, 1, 149760, 0xa55dad5f
+0, 166, 166, 1, 149760, 0x326ba794
+0, 167, 167, 1, 149760, 0x5401b03c
+0, 168, 168, 1, 149760, 0x3ace76ee
+0, 169, 169, 1, 149760, 0x140191ac
+0, 170, 170, 1, 149760, 0x3e3ca195
+0, 171, 171, 1, 149760, 0x2a8b3622
+0, 172, 172, 1, 149760, 0x9e33c765
+0, 173, 173, 1, 149760, 0xf7795367
+0, 174, 174, 1, 149760, 0xa7909e25
+0, 175, 175, 1, 149760, 0x44a5a014
+0, 176, 176, 1, 149760, 0x919bb07c
+0, 177, 177, 1, 149760, 0xd353b9a7
+0, 178, 178, 1, 149760, 0x4c3dda24
+0, 179, 179, 1, 149760, 0x1428eafb
+0, 180, 180, 1, 149760, 0x9d9fa613
+0, 181, 181, 1, 149760, 0x661475c6
+0, 182, 182, 1, 149760, 0x5f6f4180
+0, 183, 183, 1, 149760, 0xf50a4b4c
+0, 184, 184, 1, 149760, 0xf6373eb9
+0, 185, 185, 1, 149760, 0x0ab24b74
+0, 186, 186, 1, 149760, 0x6b3d58b0
+0, 187, 187, 1, 149760, 0xc4c8bd05
+0, 188, 188, 1, 149760, 0x0df172c6
+0, 189, 189, 1, 149760, 0x81a85144
+0, 190, 190, 1, 149760, 0x7f926ee5
+0, 191, 191, 1, 149760, 0x3a355d45
+0, 192, 192, 1, 149760, 0x9f645c90
+0, 193, 193, 1, 149760, 0xf42674ea
+0, 194, 194, 1, 149760, 0xa6e943ab
+0, 195, 195, 1, 149760, 0xede16b49
+0, 196, 196, 1, 149760, 0xf80c9957
+0, 197, 197, 1, 149760, 0xa7a44665
+0, 198, 198, 1, 149760, 0x08f17b20
+0, 199, 199, 1, 149760, 0x0319e942
+0, 200, 200, 1, 149760, 0xab69057c
+0, 201, 201, 1, 149760, 0xb98814f4
+0, 202, 202, 1, 149760, 0xa172e6d0
+0, 203, 203, 1, 149760, 0x6cd35cd1
+0, 204, 204, 1, 149760, 0x7352b4b9
+0, 205, 205, 1, 149760, 0x07cbdedd
+0, 206, 206, 1, 149760, 0xbe7aa3c8
+0, 207, 207, 1, 149760, 0xdcbc8993
+0, 208, 208, 1, 149760, 0x0c5dbf95
+0, 209, 209, 1, 149760, 0x107e4f2c
+0, 210, 210, 1, 149760, 0xc650e333
+0, 211, 211, 1, 149760, 0x46abae6f
+0, 212, 212, 1, 149760, 0x0e41309d
+0, 213, 213, 1, 149760, 0x831e19a1
+0, 214, 214, 1, 149760, 0xd1955874
+0, 215, 215, 1, 149760, 0x486c41bb
+0, 216, 216, 1, 149760, 0xba020143
+0, 217, 217, 1, 149760, 0x3ebedef4
+0, 218, 218, 1, 149760, 0xda7bc235
+0, 219, 219, 1, 149760, 0x0abcb13e
+0, 220, 220, 1, 149760, 0xdf5159ac
+0, 221, 221, 1, 149760, 0x4e39d893
+0, 222, 222, 1, 149760, 0x393f382d
+0, 223, 223, 1, 149760, 0x92556867
+0, 224, 224, 1, 149760, 0x2daf47a8
+0, 225, 225, 1, 149760, 0x792a4448
+0, 226, 226, 1, 149760, 0x429e05ad
+0, 227, 227, 1, 149760, 0x89caaa32
+0, 228, 228, 1, 149760, 0xa70ec97b
+0, 229, 229, 1, 149760, 0xce0d24b7
+0, 230, 230, 1, 149760, 0x04be745d
+0, 231, 231, 1, 149760, 0xfb04d3d2
+0, 232, 232, 1, 149760, 0x5b472952
+0, 233, 233, 1, 149760, 0x6cd704b5
+0, 234, 234, 1, 149760, 0x18b0db7e
+0, 235, 235, 1, 149760, 0xdfb24e07
+0, 236, 236, 1, 149760, 0x6d9bae45
+0, 237, 237, 1, 149760, 0xf2eb5756
+0, 238, 238, 1, 149760, 0xdf858203
+0, 239, 239, 1, 149760, 0xdcd4822f
+0, 240, 240, 1, 149760, 0x80ceabaf
+0, 241, 241, 1, 149760, 0x8bd1a92f
+0, 242, 242, 1, 149760, 0x981a61ca
+0, 243, 243, 1, 149760, 0x5fa92603
+0, 244, 244, 1, 149760, 0xbb28f8da
+0, 245, 245, 1, 149760, 0x1710666d
+0, 246, 246, 1, 149760, 0xf928099a
+0, 247, 247, 1, 149760, 0x2e0ae9cb
+0, 248, 248, 1, 149760, 0xcf0e402c
+0, 249, 249, 1, 149760, 0x48e5b987
+0, 250, 250, 1, 149760, 0x7dc42853
+0, 251, 251, 1, 149760, 0x25f4aef0
+0, 252, 252, 1, 149760, 0x5f1d37b3
+0, 253, 253, 1, 149760, 0xb2fabf9f
+0, 254, 254, 1, 149760, 0xe87348ee
+0, 255, 255, 1, 149760, 0xbe9ec00f
+0, 256, 256, 1, 149760, 0xd67d1fb2
+0, 257, 257, 1, 149760, 0x92db1ca8
diff --git a/tests/ref/fate/hevc-conformance-WP_MAIN10_B_Toshiba_3 b/tests/ref/fate/hevc-conformance-WP_MAIN10_B_Toshiba_3
new file mode 100644
index 0000000000..23f03f8487
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-WP_MAIN10_B_Toshiba_3
@@ -0,0 +1,257 @@
+#tb 0: 1/25
+0, 0, 0, 1, 299520, 0x6ecba46b
+0, 4, 4, 1, 299520, 0x54e6ef0a
+0, 5, 5, 1, 299520, 0x7a4d46c5
+0, 6, 6, 1, 299520, 0xccd57f4e
+0, 7, 7, 1, 299520, 0xbe0cb48d
+0, 8, 8, 1, 299520, 0x10e7b49f
+0, 9, 9, 1, 299520, 0x81aa72e2
+0, 10, 10, 1, 299520, 0x5bf7b51f
+0, 11, 11, 1, 299520, 0xfcedee4a
+0, 12, 12, 1, 299520, 0x586c99b6
+0, 13, 13, 1, 299520, 0x414ca13c
+0, 14, 14, 1, 299520, 0x3f0162f2
+0, 15, 15, 1, 299520, 0x4d450c05
+0, 16, 16, 1, 299520, 0x0a58bd84
+0, 17, 17, 1, 299520, 0x26e8394d
+0, 18, 18, 1, 299520, 0xfd78121b
+0, 19, 19, 1, 299520, 0x6afeaf44
+0, 20, 20, 1, 299520, 0x3e9a9270
+0, 21, 21, 1, 299520, 0x58b889ca
+0, 22, 22, 1, 299520, 0x0245ba62
+0, 23, 23, 1, 299520, 0xddecc5ab
+0, 24, 24, 1, 299520, 0x32cf3cd9
+0, 25, 25, 1, 299520, 0x5c0a0440
+0, 26, 26, 1, 299520, 0x9d3e2fee
+0, 27, 27, 1, 299520, 0x2894c708
+0, 28, 28, 1, 299520, 0x25be67d5
+0, 29, 29, 1, 299520, 0xe3ece9d6
+0, 30, 30, 1, 299520, 0xcc98e38b
+0, 31, 31, 1, 299520, 0xc448c794
+0, 32, 32, 1, 299520, 0xb4f75575
+0, 33, 33, 1, 299520, 0xac74a437
+0, 34, 34, 1, 299520, 0x09c7f2e2
+0, 35, 35, 1, 299520, 0xbfaed8ab
+0, 36, 36, 1, 299520, 0xb077d700
+0, 37, 37, 1, 299520, 0x6efa0545
+0, 38, 38, 1, 299520, 0xb8c1802d
+0, 39, 39, 1, 299520, 0x794774f8
+0, 40, 40, 1, 299520, 0x1098f4ff
+0, 41, 41, 1, 299520, 0x80ab8bfc
+0, 42, 42, 1, 299520, 0xc324c3bc
+0, 43, 43, 1, 299520, 0x1eee77cd
+0, 44, 44, 1, 299520, 0x7147e72e
+0, 45, 45, 1, 299520, 0x1a34883c
+0, 46, 46, 1, 299520, 0x74e93e31
+0, 47, 47, 1, 299520, 0x89410382
+0, 48, 48, 1, 299520, 0xfcce0ce1
+0, 49, 49, 1, 299520, 0x07bb33c6
+0, 50, 50, 1, 299520, 0xc1ee7318
+0, 51, 51, 1, 299520, 0xd1c4bd2d
+0, 52, 52, 1, 299520, 0xa670cfae
+0, 53, 53, 1, 299520, 0x718de79b
+0, 54, 54, 1, 299520, 0x85e40b78
+0, 55, 55, 1, 299520, 0x15362e72
+0, 56, 56, 1, 299520, 0xc6e523fa
+0, 57, 57, 1, 299520, 0x3e536edd
+0, 58, 58, 1, 299520, 0x9312996e
+0, 59, 59, 1, 299520, 0x9456d53c
+0, 60, 60, 1, 299520, 0x7bc01398
+0, 61, 61, 1, 299520, 0x5a40bcb4
+0, 62, 62, 1, 299520, 0xcfe126ce
+0, 63, 63, 1, 299520, 0xd9e1adf1
+0, 64, 64, 1, 299520, 0x9027b1ae
+0, 65, 65, 1, 299520, 0x4c1372fb
+0, 66, 66, 1, 299520, 0xe475a00b
+0, 67, 67, 1, 299520, 0x945bc646
+0, 68, 68, 1, 299520, 0xc33dbab3
+0, 69, 69, 1, 299520, 0x9e4afb82
+0, 70, 70, 1, 299520, 0x1bffa858
+0, 71, 71, 1, 299520, 0x3bc78ad7
+0, 72, 72, 1, 299520, 0xa096e683
+0, 73, 73, 1, 299520, 0xb889aa23
+0, 74, 74, 1, 299520, 0x8ffad857
+0, 75, 75, 1, 299520, 0x59d3cc7c
+0, 76, 76, 1, 299520, 0x47d1377a
+0, 77, 77, 1, 299520, 0xea73e864
+0, 78, 78, 1, 299520, 0x0994bd5c
+0, 79, 79, 1, 299520, 0xdf779d85
+0, 80, 80, 1, 299520, 0x8238cfa7
+0, 81, 81, 1, 299520, 0x8f2e94cc
+0, 82, 82, 1, 299520, 0x9e0b0df8
+0, 83, 83, 1, 299520, 0x98ac1ce5
+0, 84, 84, 1, 299520, 0xc1c293ed
+0, 85, 85, 1, 299520, 0x1f1dfedb
+0, 86, 86, 1, 299520, 0xe7297d56
+0, 87, 87, 1, 299520, 0xa1390726
+0, 88, 88, 1, 299520, 0xf0e828e8
+0, 89, 89, 1, 299520, 0x108b8291
+0, 90, 90, 1, 299520, 0xd8830efb
+0, 91, 91, 1, 299520, 0xeee3d2f0
+0, 92, 92, 1, 299520, 0xa35d5b29
+0, 93, 93, 1, 299520, 0xa14d0840
+0, 94, 94, 1, 299520, 0xfa894a56
+0, 95, 95, 1, 299520, 0xd50005b5
+0, 96, 96, 1, 299520, 0xba625134
+0, 97, 97, 1, 299520, 0xce7dd782
+0, 98, 98, 1, 299520, 0x9e04e32f
+0, 99, 99, 1, 299520, 0x07e6d466
+0, 100, 100, 1, 299520, 0x4e66e1d4
+0, 101, 101, 1, 299520, 0x80aa6be6
+0, 102, 102, 1, 299520, 0xa4564be8
+0, 103, 103, 1, 299520, 0x7d34e443
+0, 104, 104, 1, 299520, 0xd5a08c86
+0, 105, 105, 1, 299520, 0xa73e63e8
+0, 106, 106, 1, 299520, 0x93937eb2
+0, 107, 107, 1, 299520, 0x0c08ba8f
+0, 108, 108, 1, 299520, 0x1d6b1a8c
+0, 109, 109, 1, 299520, 0x2e0272b4
+0, 110, 110, 1, 299520, 0x47177676
+0, 111, 111, 1, 299520, 0x6af7ffce
+0, 112, 112, 1, 299520, 0x0564a4bc
+0, 113, 113, 1, 299520, 0x7f664100
+0, 114, 114, 1, 299520, 0x6decd6ae
+0, 115, 115, 1, 299520, 0xb2d94adc
+0, 116, 116, 1, 299520, 0x55d33809
+0, 117, 117, 1, 299520, 0x5b126674
+0, 118, 118, 1, 299520, 0xd25d5750
+0, 119, 119, 1, 299520, 0x789a7f89
+0, 120, 120, 1, 299520, 0xdd082ab2
+0, 121, 121, 1, 299520, 0x3e6132ee
+0, 122, 122, 1, 299520, 0xe48209ca
+0, 123, 123, 1, 299520, 0x707d3b24
+0, 124, 124, 1, 299520, 0x8af19539
+0, 125, 125, 1, 299520, 0x0bbb4c38
+0, 126, 126, 1, 299520, 0xaaba4bd6
+0, 127, 127, 1, 299520, 0xa325d79e
+0, 128, 128, 1, 299520, 0x2bd4b64a
+0, 129, 129, 1, 299520, 0xab0c59a7
+0, 130, 130, 1, 299520, 0x260a56fc
+0, 131, 131, 1, 299520, 0xa1a55847
+0, 132, 132, 1, 299520, 0xa1a55847
+0, 133, 133, 1, 299520, 0x01438514
+0, 134, 134, 1, 299520, 0xa511e8bd
+0, 135, 135, 1, 299520, 0x7ebfd5b9
+0, 136, 136, 1, 299520, 0xdf4f1365
+0, 137, 137, 1, 299520, 0x6266911a
+0, 138, 138, 1, 299520, 0xe8eefcab
+0, 139, 139, 1, 299520, 0x7e74ca0d
+0, 140, 140, 1, 299520, 0x4b21d349
+0, 141, 141, 1, 299520, 0xa8b9ef41
+0, 142, 142, 1, 299520, 0x3187ee5b
+0, 143, 143, 1, 299520, 0x3fadb935
+0, 144, 144, 1, 299520, 0x8dca0391
+0, 145, 145, 1, 299520, 0x68215cc6
+0, 146, 146, 1, 299520, 0x7c81f366
+0, 147, 147, 1, 299520, 0x1a976381
+0, 148, 148, 1, 299520, 0x8ac095f4
+0, 149, 149, 1, 299520, 0xf5f8752b
+0, 150, 150, 1, 299520, 0xd8c03c80
+0, 151, 151, 1, 299520, 0x445a2e07
+0, 152, 152, 1, 299520, 0xddb83c6f
+0, 153, 153, 1, 299520, 0xc6dfe76a
+0, 154, 154, 1, 299520, 0x860a120f
+0, 155, 155, 1, 299520, 0x1ec91a95
+0, 156, 156, 1, 299520, 0x0180cc49
+0, 157, 157, 1, 299520, 0x63a115e3
+0, 158, 158, 1, 299520, 0x8848e971
+0, 159, 159, 1, 299520, 0x49246622
+0, 160, 160, 1, 299520, 0x3169db32
+0, 161, 161, 1, 299520, 0xcf01d8a3
+0, 162, 162, 1, 299520, 0x57a1a9c1
+0, 163, 163, 1, 299520, 0x517670eb
+0, 164, 164, 1, 299520, 0x4e2e6b5a
+0, 165, 165, 1, 299520, 0x06240a68
+0, 166, 166, 1, 299520, 0xa0d076a1
+0, 167, 167, 1, 299520, 0xb73c4515
+0, 168, 168, 1, 299520, 0x9f523268
+0, 169, 169, 1, 299520, 0x6fdcc6a2
+0, 170, 170, 1, 299520, 0xf3f5b69f
+0, 171, 171, 1, 299520, 0xce33a286
+0, 172, 172, 1, 299520, 0xce46e834
+0, 173, 173, 1, 299520, 0x14a6fe0d
+0, 174, 174, 1, 299520, 0x39a8145f
+0, 175, 175, 1, 299520, 0x91981d47
+0, 176, 176, 1, 299520, 0x1507d9be
+0, 177, 177, 1, 299520, 0x4525d4a2
+0, 178, 178, 1, 299520, 0x95e058ab
+0, 179, 179, 1, 299520, 0x8de2438a
+0, 180, 180, 1, 299520, 0xf43dc0ff
+0, 181, 181, 1, 299520, 0xaf232f4b
+0, 182, 182, 1, 299520, 0x8adabd81
+0, 183, 183, 1, 299520, 0x1e837b72
+0, 184, 184, 1, 299520, 0xb79f811d
+0, 185, 185, 1, 299520, 0x1532fb05
+0, 186, 186, 1, 299520, 0x2e3f6341
+0, 187, 187, 1, 299520, 0x10c82269
+0, 188, 188, 1, 299520, 0x8c39bd0c
+0, 189, 189, 1, 299520, 0x64fefe7b
+0, 190, 190, 1, 299520, 0x3ef6d5c7
+0, 191, 191, 1, 299520, 0x571c1edc
+0, 192, 192, 1, 299520, 0xe9e1584c
+0, 193, 193, 1, 299520, 0xd150a0db
+0, 194, 194, 1, 299520, 0x5d140f2d
+0, 195, 195, 1, 299520, 0xea00f302
+0, 196, 196, 1, 299520, 0xdd4e0fc4
+0, 197, 197, 1, 299520, 0x51c760fa
+0, 198, 198, 1, 299520, 0x68d5d26e
+0, 199, 199, 1, 299520, 0xde594a02
+0, 200, 200, 1, 299520, 0xac6d361a
+0, 201, 201, 1, 299520, 0xef6506ae
+0, 202, 202, 1, 299520, 0x744737a8
+0, 203, 203, 1, 299520, 0x2bd0834b
+0, 204, 204, 1, 299520, 0x348a8d0f
+0, 205, 205, 1, 299520, 0x93e165c8
+0, 206, 206, 1, 299520, 0x208d305c
+0, 207, 207, 1, 299520, 0xb927ed9a
+0, 208, 208, 1, 299520, 0xd252b13a
+0, 209, 209, 1, 299520, 0x11a59b2d
+0, 210, 210, 1, 299520, 0xc27785d0
+0, 211, 211, 1, 299520, 0x5c654cb5
+0, 212, 212, 1, 299520, 0x3d03a387
+0, 213, 213, 1, 299520, 0xdb0dc19d
+0, 214, 214, 1, 299520, 0x2ef3bbba
+0, 215, 215, 1, 299520, 0x7d36cd79
+0, 216, 216, 1, 299520, 0xa9ceca1e
+0, 217, 217, 1, 299520, 0x33db4d99
+0, 218, 218, 1, 299520, 0x8d28a55e
+0, 219, 219, 1, 299520, 0x554864a6
+0, 220, 220, 1, 299520, 0x6a336557
+0, 221, 221, 1, 299520, 0xd2285832
+0, 222, 222, 1, 299520, 0x9509f5f8
+0, 223, 223, 1, 299520, 0x8e479b03
+0, 224, 224, 1, 299520, 0x9513a8c3
+0, 225, 225, 1, 299520, 0x81080fac
+0, 226, 226, 1, 299520, 0x6c447b69
+0, 227, 227, 1, 299520, 0xbf4c2fbd
+0, 228, 228, 1, 299520, 0x1a77306e
+0, 229, 229, 1, 299520, 0xd485864b
+0, 230, 230, 1, 299520, 0x4e87b787
+0, 231, 231, 1, 299520, 0xe28e7153
+0, 232, 232, 1, 299520, 0x2ab24b9b
+0, 233, 233, 1, 299520, 0xffcb7357
+0, 234, 234, 1, 299520, 0x5e1e2b7e
+0, 235, 235, 1, 299520, 0x58d39e6d
+0, 236, 236, 1, 299520, 0x4a2b836a
+0, 237, 237, 1, 299520, 0xa1728e1e
+0, 238, 238, 1, 299520, 0x33e5bdd4
+0, 239, 239, 1, 299520, 0x3b144d98
+0, 240, 240, 1, 299520, 0xe72c4de2
+0, 241, 241, 1, 299520, 0x031350cb
+0, 242, 242, 1, 299520, 0x146fba58
+0, 243, 243, 1, 299520, 0x1b6679c7
+0, 244, 244, 1, 299520, 0x27e9d545
+0, 245, 245, 1, 299520, 0x5105beeb
+0, 246, 246, 1, 299520, 0x80284fd3
+0, 247, 247, 1, 299520, 0x426a5d65
+0, 248, 248, 1, 299520, 0xdcc33f89
+0, 249, 249, 1, 299520, 0x29e805ec
+0, 250, 250, 1, 299520, 0x89a09ed9
+0, 251, 251, 1, 299520, 0x60ad258c
+0, 252, 252, 1, 299520, 0xb44ee9b1
+0, 253, 253, 1, 299520, 0x184d6a88
+0, 254, 254, 1, 299520, 0xb4c8cefe
+0, 255, 255, 1, 299520, 0x358a0407
+0, 256, 256, 1, 299520, 0xa5cb97eb
+0, 257, 257, 1, 299520, 0x3d6a096e
+0, 258, 258, 1, 299520, 0xcb266e78
diff --git a/tests/ref/fate/hevc-conformance-cip_B_NEC_2 b/tests/ref/fate/hevc-conformance-cip_B_NEC_2
new file mode 100644
index 0000000000..016f0f1ee1
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-cip_B_NEC_2
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0xcbda260f
+0, 1, 1, 1, 149760, 0xbd8d32a9
+0, 2, 2, 1, 149760, 0x39562006
+0, 3, 3, 1, 149760, 0xbc62475b
+0, 4, 4, 1, 149760, 0x1bf1fb79
diff --git a/tests/ref/fate/hevc-conformance-ipcm_A_NEC_2 b/tests/ref/fate/hevc-conformance-ipcm_A_NEC_2
new file mode 100644
index 0000000000..145f590872
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-ipcm_A_NEC_2
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0x2356474c
diff --git a/tests/ref/fate/hevc-conformance-ipcm_B_NEC_2 b/tests/ref/fate/hevc-conformance-ipcm_B_NEC_2
new file mode 100644
index 0000000000..d917cbc41c
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-ipcm_B_NEC_2
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0xc80d43f8
diff --git a/tests/ref/fate/hevc-conformance-ipcm_C_NEC_2 b/tests/ref/fate/hevc-conformance-ipcm_C_NEC_2
new file mode 100644
index 0000000000..6c89cea38f
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-ipcm_C_NEC_2
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0xb92d38ee
diff --git a/tests/ref/fate/hevc-conformance-ipcm_D_NEC_2 b/tests/ref/fate/hevc-conformance-ipcm_D_NEC_2
new file mode 100644
index 0000000000..2ccff0579f
--- /dev/null
+++ b/tests/ref/fate/hevc-conformance-ipcm_D_NEC_2
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149760, 0xa24d17f8