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

Function ff_frame_new_side_data

libavcodec/decode.c:2147–2164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2145
2146
2147int ff_frame_new_side_data(const AVCodecContext *avctx, AVFrame *frame,
2148 enum AVFrameSideDataType type, size_t size,
2149 AVFrameSideData **psd)
2150{
2151 AVFrameSideData *sd;
2152
2153 if (side_data_pref(avctx, &frame->side_data, &frame->nb_side_data, type)) {
2154 if (psd)
2155 *psd = NULL;
2156 return 0;
2157 }
2158
2159 sd = av_frame_new_side_data(frame, type, size);
2160 if (psd)
2161 *psd = sd;
2162
2163 return sd ? 0 : AVERROR(ENOMEM);
2164}
2165
2166int ff_frame_new_side_data_from_buf_ext(const AVCodecContext *avctx,
2167 AVFrameSideData ***sd, int *nb_sd,

Callers 10

h264_export_frame_propsFunction · 0.85
cri_decode_frameFunction · 0.85
decode_frameFunction · 0.85
webp_decode_frameFunction · 0.85
mpeg_field_startFunction · 0.85
attach_displaymatrixFunction · 0.85
tiff_decode_tagFunction · 0.85
set_side_dataFunction · 0.85

Calls 2

side_data_prefFunction · 0.85
av_frame_new_side_dataFunction · 0.85

Tested by

no test coverage detected