You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avcodec/vvc/sei: add decode_content_light_level_info
Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
This commit is contained in:
@ -118,6 +118,15 @@ static int decode_display_orientation(H2645SEIDisplayOrientation *h, const SEIRa
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int decode_content_light_level_info(H2645SEIContentLight *h, const SEIRawContentLightLevelInfo *s)
|
||||||
|
{
|
||||||
|
h->present = 1;
|
||||||
|
h->max_content_light_level = s->max_content_light_level;
|
||||||
|
h->max_pic_average_light_level = s->max_pic_average_light_level;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
int ff_vvc_sei_decode(VVCSEI *s, const H266RawSEI *sei, const struct VVCFrameContext *fc)
|
int ff_vvc_sei_decode(VVCSEI *s, const H266RawSEI *sei, const struct VVCFrameContext *fc)
|
||||||
{
|
{
|
||||||
H2645SEI *c = &s->common;
|
H2645SEI *c = &s->common;
|
||||||
@ -143,6 +152,9 @@ int ff_vvc_sei_decode(VVCSEI *s, const H266RawSEI *sei, const struct VVCFrameCon
|
|||||||
case SEI_TYPE_DISPLAY_ORIENTATION:
|
case SEI_TYPE_DISPLAY_ORIENTATION:
|
||||||
return decode_display_orientation(&s->common.display_orientation, payload);
|
return decode_display_orientation(&s->common.display_orientation, payload);
|
||||||
|
|
||||||
|
case SEI_TYPE_CONTENT_LIGHT_LEVEL_INFO:
|
||||||
|
return decode_content_light_level_info(&s->common.content_light, payload);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
av_log(fc->log_ctx, AV_LOG_DEBUG, "Skipped %s SEI %d\n",
|
av_log(fc->log_ctx, AV_LOG_DEBUG, "Skipped %s SEI %d\n",
|
||||||
sei->nal_unit_header.nal_unit_type == VVC_PREFIX_SEI_NUT ?
|
sei->nal_unit_header.nal_unit_type == VVC_PREFIX_SEI_NUT ?
|
||||||
|
Reference in New Issue
Block a user