#=========== Profile ======================
# main: 1 baseline: 0
# main still picture: 3 baseline still picture: 2
profile = 1

#=========== Level ========================
# (e.g. 51 = level_idc 5.1)
level = 51

#=========== Coding Structure =============
max_num_ref_pics = 2
# BTT
btt = 1
cb_max = 7
cb_min = 2
cu14_max = 6
tris_max = 6
tris_min = 4

# SUCO 
suco = 1
suco_max = 6
suco_min = 4

#=========== Coding Tools =================
amvr = 1
mmvd = 1
affine = 1
dmvr = 1
alf = 1
admvp = 1
hmvp = 1
htdf = 1
eipd = 1
iqt = 1
cm_init = 1
cb_qp_offset = 0
cr_qp_offset = 0
use_dqp = 0
cu_qp_delta_area = 6
ibc = 0
ats = 1
adcc = 1
addb = 1
constrained_intra_pred = 0
dbf = 1
rpl = 1
pocs = 1
toolset_idc_h = 2097151 #0x1FFFFF
toolset_idc_l = 0

# codec bit-depth
codec_bit_depth = 10

# output bit-depth
output_bit_depth = 10

# chroma format (0: 4:0:0, 1: 4:2:0)
chroma_format = 1

#=========== TemporalFilter =================
temporal_filter = 1

#=========== GOP Structure ================
max_b_frames = 15

#       Type POC temporal_id #ref_pics_active  reference pictures
RPL0_0 =  B   16       0           2            16 32 24
RPL0_1 =  B    8       1           2            8 16
RPL0_2 =  B    4       2           2            4 12
RPL0_3 =  B    2       3           2            2 10
RPL0_4 =  B    1       4           2            1 -1
RPL0_5 =  B    3       4           2            1 3
RPL0_6 =  B    6       3           2            2 6
RPL0_7 =  B    5       4           2            1 5
RPL0_8 =  B    7       4           2            1 3 7
RPL0_9 =  B   12       2           2            4 12
RPL0_10 = B   10       3           2            2 10
RPL0_11 = B    9       4           2            1 9
RPL0_12 = B   11       4           2            1 3 11
RPL0_13 = B   13       4           2            1 5 13
RPL0_14 = B   14       3           2            2 6 14
RPL0_15 = B   15       4           2            1 3 7 15
RPL0_16 = B   16       0           1            16
RPL0_17 = B    8       1           2            8 -8
RPL0_18 = B    4       2           2            4 -4
RPL0_19 = B    2       3           2            2 -2

RPL1_0 =  B   16       0           2            16 32
RPL1_1 =  B    8       1           2            -8 8
RPL1_2 =  B    4       2           2            -4 -12
RPL1_3 =  B    2       3           2            -2 -6 -14
RPL1_4 =  B    1       4           2            -1 -3 -7 -15
RPL1_5 =  B    3       4           2            -1 -5 -13
RPL1_6 =  B    6       3           2            -2 -10
RPL1_7 =  B    5       4           2            -1 -3 -11
RPL1_8 =  B    7       4           2            -1 -9
RPL1_9 =  B   12       2           2            -4 4
RPL1_10 = B   10       3           2            -2 -6
RPL1_11 = B    9       4           2            -1 -3 -7
RPL1_12 = B   11       4           2            -1 -5
RPL1_13 = B   13       3           2            -1 -3
RPL1_14 = B   14       4           2            -2 2
RPL1_15 = B   15       4           2            -1 1
RPL1_16 = B   16       0           1            16
RPL1_17 = B    8       1           2            -8 8
RPL1_18 = B    4       2           2            -4 -12
RPL1_19 = B    2       3           2            -2 -6 -14

#=========== Tile Structure ================
tile_uniform_spacing = 1
num_tile_columns = 1
num_tile_rows = 1
tile_column_width_array = 0
tile_row_height_array = 0
lp_filter_across_tiles_en_flag = 0
num_slices_in_pic = 1
arbitrary_slice_flag = 0
num_remaining_tiles_in_slice = 0
tile_array_in_slice = 0

#=========== Picture Cropping ==============
picture_cropping_flag=0
picture_crop_left=0
picture_crop_right=0
picture_crop_top=0
picture_crop_bottom=0

#=========== HDR Settings ==============
hdr_metric = 1 
dra_enable_flag = 1
dra_number_ranges = 10
dra_range = 0 301 367 434 501 567 634 701 767 834
dra_scale = 1 1.123046875 1.259765625 1.4140625 1.587890625 1.78125 2 2.244140625 2.51953125 2.828125

dra_chroma_cb_scale = 1.04
dra_chroma_cr_scale = 1.58
dra_chroma_qp_scale = -0.37
dra_chroma_qp_offset = 7.06
dra_hist_norm = 1.11

chroma_qp_table_present_flag = 1
chroma_qp_num_points_in_table = 4 4
chroma_qp_delta_in_val_cb = 26 33 44 45
chroma_qp_delta_out_val_cb = 26 32 38 39
chroma_qp_delta_in_val_cr = 26 33 44 45
chroma_qp_delta_out_val_cr = 26 32 38 39
