diff options
author | Wu Jianhua <toqsxw@outlook.com> | 2025-04-27 19:44:44 +0800 |
---|---|---|
committer | Nuo Mi <nuomi2021@gmail.com> | 2025-05-31 09:35:54 +0800 |
commit | 97137e38c1a58b38c90566388bced45419e5c40a (patch) | |
tree | ff18788a99a473329a6dea7895693b18d0c02c5a | |
parent | 40bc5e119e3f7d06897f7b1655ea549ca30555ea (diff) | |
download | ffmpeg-97137e38c1a58b38c90566388bced45419e5c40a.tar.gz |
avcodec/vvc/sei: add decode_content_light_level_info
Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
-rw-r--r-- | libavcodec/vvc/sei.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/vvc/sei.c b/libavcodec/vvc/sei.c index 7073762d49..49a7961c63 100644 --- a/libavcodec/vvc/sei.c +++ b/libavcodec/vvc/sei.c @@ -118,6 +118,15 @@ static int decode_display_orientation(H2645SEIDisplayOrientation *h, const SEIRa 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) { 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: 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: av_log(fc->log_ctx, AV_LOG_DEBUG, "Skipped %s SEI %d\n", sei->nal_unit_header.nal_unit_type == VVC_PREFIX_SEI_NUT ? |