Enumerator | |
---|---|
AV_BUFFERSRC_FLAG_NO_CHECK_FORMAT | Do not check for format changes. |
AV_BUFFERSRC_FLAG_PUSH | Immediately push the frame to the output. |
AV_BUFFERSRC_FLAG_KEEP_REF | Keep a reference to the frame. If the frame if reference-counted, create a new reference; otherwise copy the frame data. |
Definition at line 36 of file buffersrc.h.
Get the number of failed requests.
A failed request is when the request_frame method is called while no frame is present in the buffer. The number is reset when a frame is added.
Definition at line 323 of file buffersrc.c.
Referenced by choose_input().
Allocate a new AVBufferSrcParameters instance.
It should be freed by the caller with av_free().
Definition at line 107 of file buffersrc.c.
Referenced by configure_input_audio_filter(), configure_input_video_filter(), and configure_video_filters().
Initialize the buffersrc or abuffersrc filter with the provided parameters.
This function may be called multiple times, the later calls override the previous ones. Some of the parameters may also be set through AVOptions, then whatever method is used last takes precedence.
Definition at line 121 of file buffersrc.c.
Referenced by configure_input_audio_filter(), configure_input_video_filter(), and configure_video_filters().
Add a frame to the buffer source.
This function is equivalent to av_buffersrc_add_frame_flags() with the AV_BUFFERSRC_FLAG_KEEP_REF flag.
Definition at line 184 of file buffersrc.c.
Add a frame to the buffer source.
This function is equivalent to av_buffersrc_add_frame_flags() without the AV_BUFFERSRC_FLAG_KEEP_REF flag.
Definition at line 190 of file buffersrc.c.
Referenced by audio_thread(), configure_filtergraph(), main(), sub2video_frame(), and video_thread().
Add a frame to the buffer source.
By default, if the frame is reference-counted, this function will take ownership of the reference(s) and reset the frame. This can be controlled using the flags.
If this function returns an error, the input frame is not touched.
Definition at line 209 of file buffersrc.c.
Referenced by av_buffersrc_add_frame(), av_buffersrc_write_frame(), filter_encode_write_frame(), main(), send_frame(), and sub2video_push_ref().
Close the buffer source after EOF.
This is similar to passing NULL to av_buffersrc_add_frame_flags() except it takes the timestamp of the EOF, i.e. the timestamp of the end of the last frame.
Definition at line 280 of file buffersrc.c.
Referenced by av_buffersrc_add_frame_flags(), and send_eof().