Unified · Split
| @@ -148,6 +148,16 @@ static int decode_frame_field_info(H274SEIFrameFieldInfo *h, const SEIRawFrameFi · 147 unmodified lines | ||
| 148 | 148 | return 0; |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | +static int decode_ambient_viewing_environment(H2645SEIAmbientViewingEnvironment *h, const SEIRawAmbientViewingEnvironment *s) | |
| 152 | +{ | |
| 153 | + h->present = 1; | |
| 154 | + h->ambient_illuminance = s->ambient_illuminance; | |
| 155 | + h->ambient_light_x = s->ambient_light_x; | |
| 156 | + h->ambient_light_y = s->ambient_light_y; | |
| 157 | + | |
| 158 | + return 0; | |
| 159 | +} | |
| 160 | + | |
| 151 | 161 | int ff_vvc_sei_decode(VVCSEI *s, const H266RawSEI *sei, const struct VVCFrameContext *fc) |
| 152 | 162 | { |
| 153 | 163 | H2645SEI *c = &s->common; |
| @@ -179,6 +189,9 @@ int ff_vvc_sei_decode(VVCSEI *s, const H266RawSEI *sei, const struct VVCFrameCon · 25 unmodified lines | ||
| 179 | 189 | case SEI_TYPE_FRAME_FIELD_INFO: |
| 180 | 190 | return decode_frame_field_info(&s->frame_field_info, payload); |
| 181 | 191 | |
| 192 | + case SEI_TYPE_AMBIENT_VIEWING_ENVIRONMENT: | |
| 193 | + return decode_ambient_viewing_environment(&s->common.ambient_viewing_environment, payload); | |
| 194 | + | |
| 182 | 195 | default: |
| 183 | 196 | av_log(fc->log_ctx, AV_LOG_DEBUG, "Skipped %s SEI %d\n", |
| 184 | 197 | sei->nal_unit_header.nal_unit_type == VVC_PREFIX_SEI_NUT ? |