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

Function ff_progress_frame_get_buffer

libavcodec/decode.c:1902–1915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1900}
1901
1902int ff_progress_frame_get_buffer(AVCodecContext *avctx, ProgressFrame *f, int flags)
1903{
1904 int ret = ff_progress_frame_alloc(avctx, f);
1905 if (ret < 0)
1906 return ret;
1907
1908 ret = ff_thread_get_buffer(avctx, f->progress->f, flags);
1909 if (ret < 0) {
1910 f->f = NULL;
1911 av_refstruct_unref(&f->progress);
1912 return ret;
1913 }
1914 return 0;
1915}
1916
1917void ff_progress_frame_ref(ProgressFrame *dst, const ProgressFrame *src)
1918{

Callers 7

vp8_alloc_frameFunction · 0.85
mimic_decode_frameFunction · 0.85
av1_frame_allocFunction · 0.85
decode_idat_chunkFunction · 0.85
vp9_frame_allocFunction · 0.85
vp3_decode_frameFunction · 0.85
decode_frameFunction · 0.85

Calls 3

ff_progress_frame_allocFunction · 0.85
av_refstruct_unrefFunction · 0.85
ff_thread_get_bufferFunction · 0.70

Tested by

no test coverage detected