| 2269 | } |
| 2270 | |
| 2271 | int ff_decode_content_light_new(const AVCodecContext *avctx, AVFrame *frame, |
| 2272 | AVContentLightMetadata **clm) |
| 2273 | { |
| 2274 | if (side_data_pref(avctx, &frame->side_data, &frame->nb_side_data, |
| 2275 | AV_FRAME_DATA_CONTENT_LIGHT_LEVEL)) { |
| 2276 | *clm = NULL; |
| 2277 | return 0; |
| 2278 | } |
| 2279 | |
| 2280 | *clm = av_content_light_metadata_create_side_data(frame); |
| 2281 | return *clm ? 0 : AVERROR(ENOMEM); |
| 2282 | } |
| 2283 | |
| 2284 | int ff_copy_palette(void *dst, const AVPacket *src, void *logctx) |
| 2285 | { |
no test coverage detected