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

Function av_frame_copy

libavutil/frame.c:711–723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

709}
710
711int av_frame_copy(AVFrame *dst, const AVFrame *src)
712{
713 if (dst->format != src->format || dst->format < 0)
714 return AVERROR(EINVAL);
715
716 if (dst->width > 0 && dst->height > 0)
717 return frame_copy_video(dst, src);
718 else if (dst->nb_samples > 0 &&
719 (av_channel_layout_check(&dst->ch_layout)))
720 return frame_copy_audio(dst, src);
721
722 return AVERROR(EINVAL);
723}
724
725void av_frame_remove_side_data(AVFrame *frame, enum AVFrameSideDataType type)
726{

Callers 15

vt_transfer_data_fromFunction · 0.85
vt_transfer_data_toFunction · 0.85
av_frame_refFunction · 0.85
av_frame_make_writableFunction · 0.85
drm_transfer_data_fromFunction · 0.85
drm_transfer_data_toFunction · 0.85
qsv_transfer_data_fromFunction · 0.85
qsv_transfer_data_toFunction · 0.85
vaapi_transfer_data_fromFunction · 0.85
vaapi_transfer_data_toFunction · 0.85
submit_frameFunction · 0.85
decompress_p3Function · 0.85

Calls 3

frame_copy_videoFunction · 0.85
av_channel_layout_checkFunction · 0.85
frame_copy_audioFunction · 0.85

Tested by 1

filter_frameFunction · 0.68