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

Function av_frame_side_data_remove_by_props

libavutil/side_data.c:117–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void av_frame_side_data_remove_by_props(AVFrameSideData ***sd, int *nb_sd,
118 int props)
119{
120 for (int i = *nb_sd - 1; i >= 0; i--) {
121 AVFrameSideData *entry = ((*sd)[i]);
122 const AVSideDataDescriptor *desc = av_frame_side_data_desc(entry->type);
123 if (!desc || !(desc->props & props))
124 continue;
125
126 free_side_data_entry(&entry);
127
128 ((*sd)[i]) = ((*sd)[*nb_sd - 1]);
129 (*nb_sd)--;
130 }
131}
132
133void av_frame_side_data_free(AVFrameSideData ***sd, int *nb_sd)
134{

Callers 14

filter_frameFunction · 0.85
apply_lutFunction · 0.85
scale_vt_filter_frameFunction · 0.85
scale_vaapi_filter_frameFunction · 0.85
cudascale_scaleFunction · 0.85
filter_frameFunction · 0.85
filter_frameFunction · 0.85
config_propsFunction · 0.85
scale_frameFunction · 0.85
filter_frameFunction · 0.85
output_frameFunction · 0.85

Calls 2

av_frame_side_data_descFunction · 0.85
free_side_data_entryFunction · 0.85

Tested by

no test coverage detected