[][src]Function stainless_ffmpeg_sys::av_buffersink_get_frame

pub unsafe extern "C" fn av_buffersink_get_frame(
    ctx: *mut AVFilterContext,
    frame: *mut AVFrame
) -> c_int

Get a frame with filtered data from sink and put it in frame.

@param ctx pointer to a context of a buffersink or abuffersink AVFilter. @param frame pointer to an allocated frame that will be filled with data. The data must be freed using av_frame_unref() / av_frame_free()

@return - >= 0 if a frame was successfully returned. - AVERROR(EAGAIN) if no frames are available at this point; more input frames must be added to the filtergraph to get more output. - AVERROR_EOF if there will be no more output frames on this sink. - A different negative AVERROR code in other failure cases.