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

Function ff_thread_ref_frame

libavcodec/utils.c:862–879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

860}
861
862int ff_thread_ref_frame(ThreadFrame *dst, const ThreadFrame *src)
863{
864 int ret;
865
866 dst->owner[0] = src->owner[0];
867 dst->owner[1] = src->owner[1];
868
869 ret = av_frame_ref(dst->f, src->f);
870 if (ret < 0)
871 return ret;
872
873 av_assert0(!dst->progress);
874
875 if (src->progress)
876 dst->progress = av_refstruct_ref(src->progress);
877
878 return 0;
879}
880
881int ff_thread_replace_frame(ThreadFrame *dst, const ThreadFrame *src)
882{

Callers 2

h264_field_startFunction · 0.85
ff_h264_ref_pictureFunction · 0.85

Calls 2

av_frame_refFunction · 0.85
av_refstruct_refFunction · 0.85

Tested by

no test coverage detected