mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
libs: encoder: h265: Add tile info to bitstream.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/294>
This commit is contained in:
parent
71db357284
commit
dbed28d419
1 changed files with 24 additions and 0 deletions
|
@ -771,6 +771,25 @@ bs_write_pps (GstBitWriter * bs,
|
|||
/* entropy_coding_sync_enabled_flag */
|
||||
WRITE_UINT32 (bs, pic_param->pic_fields.bits.entropy_coding_sync_enabled_flag,
|
||||
1);
|
||||
|
||||
/* tiles info */
|
||||
if (pic_param->pic_fields.bits.tiles_enabled_flag) {
|
||||
WRITE_UE (bs, pic_param->num_tile_columns_minus1);
|
||||
WRITE_UE (bs, pic_param->num_tile_rows_minus1);
|
||||
/* uniform_spacing_flag is 1 now */
|
||||
WRITE_UINT32 (bs, 1, 1);
|
||||
/* if (!uniform_spacing_flag) {
|
||||
for (i = 0; i < num_tile_columns_minus1; i++)
|
||||
column_width_minus1[i]
|
||||
ue (v)
|
||||
for (i = 0; i < num_tile_rows_minus1; i++)
|
||||
row_height_minus1[i]
|
||||
ue (v)
|
||||
} */
|
||||
WRITE_UINT32 (bs,
|
||||
pic_param->pic_fields.bits.loop_filter_across_tiles_enabled_flag, 1);
|
||||
}
|
||||
|
||||
/* pps_loop_filter_across_slices_enabled_flag */
|
||||
WRITE_UINT32 (bs,
|
||||
pic_param->pic_fields.bits.pps_loop_filter_across_slices_enabled_flag, 1);
|
||||
|
@ -970,7 +989,12 @@ bs_write_slice (GstBitWriter * bs,
|
|||
WRITE_UINT32 (bs,
|
||||
slice_param->slice_fields.bits.
|
||||
slice_loop_filter_across_slices_enabled_flag, 1);
|
||||
}
|
||||
|
||||
if (pic_param->pic_fields.bits.tiles_enabled_flag
|
||||
|| pic_param->pic_fields.bits.entropy_coding_sync_enabled_flag) {
|
||||
/* output a num_entry_point_offsets, which should be 0 here */
|
||||
WRITE_UE (bs, 0);
|
||||
}
|
||||
|
||||
/* byte_alignment() */
|
||||
|
|
Loading…
Reference in a new issue