[FFmpeg-cvslog] avcodec/vvc/sei: add decode_content_light_level_info
Wu Jianhua
git at videolan.org
Sat May 31 04:49:50 EEST 2025
ffmpeg | branch: master | Wu Jianhua <toqsxw at outlook.com> | Sun Apr 27 19:44:44 2025 +0800| [97137e38c1a58b38c90566388bced45419e5c40a] | committer: Nuo Mi
avcodec/vvc/sei: add decode_content_light_level_info
Signed-off-by: Wu Jianhua <toqsxw at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=97137e38c1a58b38c90566388bced45419e5c40a
---
libavcodec/vvc/sei.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
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 ?
More information about the ffmpeg-cvslog
mailing list