MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / ff_decode_content_light_new

Function ff_decode_content_light_new

libavcodec/decode.c:2271–2282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2269}
2270
2271int 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
2284int ff_copy_palette(void *dst, const AVPacket *src, void *logctx)
2285{

Callers 5

qsv_export_hdr_side_dataFunction · 0.85
apv_decode_metadataFunction · 0.85
export_metadataFunction · 0.85
libdav1d.cFile · 0.85

Calls 2

side_data_prefFunction · 0.85

Tested by

no test coverage detected