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

Function ff_encode_get_frame

libavcodec/encode.c:204–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204int ff_encode_get_frame(AVCodecContext *avctx, AVFrame *frame)
205{
206 AVCodecInternal *avci = avctx->internal;
207
208 if (avci->draining)
209 return AVERROR_EOF;
210
211 if (!avci->buffer_frame->buf[0])
212 return AVERROR(EAGAIN);
213
214 av_frame_move_ref(frame, avci->buffer_frame);
215
216 return 0;
217}
218
219int ff_encode_reordered_opaque(AVCodecContext *avctx,
220 AVPacket *pkt, const AVFrame *frame)

Callers 14

ff_amf_receive_packetFunction · 0.85
mf_receive_packetFunction · 0.85
rkmpp_receiveFunction · 0.85
v4l2_receive_packetFunction · 0.85
mediacodec_encodeFunction · 0.85
ff_nvenc_receive_packetFunction · 0.85
encode_simple_internalFunction · 0.85
oh_encode_receiveFunction · 0.85
librav1e_receive_packetFunction · 0.85

Calls 1

av_frame_move_refFunction · 0.85

Tested by

no test coverage detected