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_ambient_viewing_environment
Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
This commit is contained in:
@ -148,6 +148,16 @@ static int decode_frame_field_info(H274SEIFrameFieldInfo *h, const SEIRawFrameFi
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int decode_ambient_viewing_environment(H2645SEIAmbientViewingEnvironment *h, const SEIRawAmbientViewingEnvironment *s)
|
||||||
|
{
|
||||||
|
h->present = 1;
|
||||||
|
h->ambient_illuminance = s->ambient_illuminance;
|
||||||
|
h->ambient_light_x = s->ambient_light_x;
|
||||||
|
h->ambient_light_y = s->ambient_light_y;
|
||||||
|
|
||||||
|
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;
|
||||||
@ -179,6 +189,9 @@ int ff_vvc_sei_decode(VVCSEI *s, const H266RawSEI *sei, const struct VVCFrameCon
|
|||||||
case SEI_TYPE_FRAME_FIELD_INFO:
|
case SEI_TYPE_FRAME_FIELD_INFO:
|
||||||
return decode_frame_field_info(&s->frame_field_info, payload);
|
return decode_frame_field_info(&s->frame_field_info, payload);
|
||||||
|
|
||||||
|
case SEI_TYPE_AMBIENT_VIEWING_ENVIRONMENT:
|
||||||
|
return decode_ambient_viewing_environment(&s->common.ambient_viewing_environment, 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