mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-04-29 11:00:25 +08:00
avcodec/cbs_h266: add support for Operating point information NALU type
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -623,6 +623,33 @@ static int FUNC(ols_timing_hrd_parameters) (CodedBitstreamContext *ctx,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int FUNC(opi)(CodedBitstreamContext *ctx, RWContext *rw,
|
||||
H266RawOPI *current)
|
||||
{
|
||||
int err;
|
||||
|
||||
HEADER("Operating point information");
|
||||
|
||||
CHECK(FUNC(nal_unit_header)(ctx, rw,
|
||||
¤t->nal_unit_header, VVC_OPI_NUT));
|
||||
|
||||
flag(opi_ols_info_present_flag);
|
||||
flag(opi_htid_info_present_flag);
|
||||
|
||||
if(current->opi_ols_info_present_flag)
|
||||
ue(opi_ols_idx, 0, VVC_MAX_TOTAL_NUM_OLSS - 1);
|
||||
|
||||
if(current->opi_htid_info_present_flag)
|
||||
ub(3, opi_htid_plus1);
|
||||
|
||||
flag(opi_extension_flag);
|
||||
if (current->opi_extension_flag)
|
||||
CHECK(FUNC(extension_data) (ctx, rw, ¤t->extension_data));
|
||||
CHECK(FUNC(rbsp_trailing_bits) (ctx, rw));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int FUNC(vps) (CodedBitstreamContext *ctx, RWContext *rw,
|
||||
H266RawVPS *current)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user