A reference to an AVFilterBuffer. More...
#include <avfilter.h>
Data Fields | |
AVFilterBuffer * | buf |
the buffer that this is a reference to More... | |
uint8_t * | data [8] |
picture/audio data for each plane More... | |
uint8_t ** | extended_data |
pointers to the data planes/channels. More... | |
int | linesize [8] |
number of bytes per line More... | |
AVFilterBufferRefVideoProps * | video |
video buffer specific properties More... | |
AVFilterBufferRefAudioProps * | audio |
audio buffer specific properties More... | |
int64_t | pts |
presentation timestamp. More... | |
int64_t | pos |
byte position in stream, -1 if unknown More... | |
int | format |
media format More... | |
int | perms |
permissions, see the AV_PERM_* flags More... | |
enum AVMediaType | type |
media type of buffer data More... | |
A reference to an AVFilterBuffer.
Since filters can manipulate the origin of a buffer to, for example, crop image without any memcpy, the buffer origin and dimensions are per-reference properties. Linesize is also useful for image flipping, frame to field filters, etc, and so is also per-reference.
TODO: add anything necessary for frame reordering
Definition at line 139 of file avfilter.h.
AVFilterBufferRefAudioProps* AVFilterBufferRef::audio |
audio buffer specific properties
Definition at line 160 of file avfilter.h.
Referenced by av_buffersrc_buffer(), avfilter_copy_buf_props(), avfilter_copy_buffer_ref_props(), avfilter_copy_frame_props(), avfilter_get_audio_buffer_ref_from_arrays(), avfilter_ref_buffer(), avfilter_unref_buffer(), buffer_offset(), calc_ptr_alignment(), ff_dlog_ref(), ff_filter_frame(), filter_frame(), join_request_frame(), return_audio_frame(), and write_to_fifo().
AVFilterBuffer* AVFilterBufferRef::buf |
the buffer that this is a reference to
Definition at line 140 of file avfilter.h.
Referenced by avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer_ref_from_arrays(), avfilter_ref_buffer(), avfilter_unref_buffer(), decode_video(), does_clip(), ff_dlog_ref(), filter_frame(), join_request_frame(), and video_thread().
uint8_t* AVFilterBufferRef::data[8] |
picture/audio data for each plane
Definition at line 141 of file avfilter.h.
Referenced by av_buffersrc_write_frame(), avfilter_copy_buf_props(), avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer_ref_from_arrays(), avfilter_ref_buffer(), avfilter_unref_buffer(), blend_frame(), buffer_offset(), channelmap_filter_frame(), color_request_frame(), does_clip(), drawbox(), ff_dlog_ref(), ff_filter_frame(), fill_iplimage_from_picref(), fill_picref_from_iplimage(), filter(), filter_frame(), get_video_buffer(), and movie_get_frame().
uint8_t** AVFilterBufferRef::extended_data |
pointers to the data planes/channels.
For video, this should simply point to data[].
For planar audio, each channel has a separate data pointer, and linesize[0] contains the size of each channel buffer. For packed audio, there is just one data pointer, and linesize[0] contains the total size of the buffer for all channels.
Note: Both data and extended_data will always be set, but for planar audio with more channels that can fit in data, extended_data must be used in order to access all channels.
Definition at line 156 of file avfilter.h.
Referenced by av_buffersrc_write_frame(), avfilter_copy_buf_props(), avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer_ref_from_arrays(), avfilter_ref_buffer(), avfilter_unref_buffer(), buffer_offset(), calc_ptr_alignment(), channelmap_filter_frame(), ff_filter_frame(), filter_frame(), join_request_frame(), output_frame(), read_from_fifo(), request_frame(), return_audio_frame(), and write_to_fifo().
int AVFilterBufferRef::format |
media format
Definition at line 170 of file avfilter.h.
Referenced by av_buffersrc_buffer(), avfilter_copy_buf_props(), avfilter_copy_frame_props(), avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer_ref_from_arrays(), blend_frame(), calc_ptr_alignment(), ff_filter_frame(), filter_frame(), and movie_get_frame().
int AVFilterBufferRef::linesize[8] |
number of bytes per line
Definition at line 157 of file avfilter.h.
Referenced by av_buffersrc_write_frame(), avfilter_copy_buf_props(), avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer_ref_from_arrays(), blend_frame(), buffer_offset(), color_request_frame(), does_clip(), drawbox(), ff_dlog_ref(), ff_filter_frame(), fill_iplimage_from_picref(), fill_picref_from_iplimage(), filter(), filter_frame(), get_video_buffer(), join_request_frame(), movie_get_frame(), request_frame(), and write_to_fifo().
int AVFilterBufferRef::perms |
permissions, see the AV_PERM_* flags
Definition at line 172 of file avfilter.h.
Referenced by avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer_ref_from_arrays(), avfilter_ref_buffer(), ff_dlog_ref(), ff_filter_frame(), filter_frame(), and join_request_frame().
int64_t AVFilterBufferRef::pos |
byte position in stream, -1 if unknown
Definition at line 168 of file avfilter.h.
Referenced by avfilter_copy_buffer_ref_props(), color_request_frame(), ff_dlog_ref(), filter_frame(), movie_get_frame(), request_frame(), select_frame(), source_request_frame(), and video_thread().
int64_t AVFilterBufferRef::pts |
presentation timestamp.
The time unit may change during filtering, as it is specified in the link and the filter code may need to rescale the PTS accordingly.
Definition at line 167 of file avfilter.h.
Referenced by av_buffersink_read_samples(), avfilter_copy_buf_props(), avfilter_copy_buffer_ref_props(), avfilter_copy_frame_props(), avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer_ref_from_arrays(), buffer_offset(), color_request_frame(), ff_dlog_ref(), filter_frame(), join_request_frame(), movie_get_frame(), output_frame(), poll_filter(), read_from_fifo(), request_frame(), return_audio_frame(), return_frame(), select_frame(), source_request_frame(), and video_thread().
enum AVMediaType AVFilterBufferRef::type |
media type of buffer data
Definition at line 174 of file avfilter.h.
Referenced by avfilter_copy_buf_props(), avfilter_copy_buffer_ref_props(), avfilter_copy_frame_props(), avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer_ref_from_arrays(), avfilter_ref_buffer(), ff_get_audio_buffer(), and ff_get_video_buffer().
AVFilterBufferRefVideoProps* AVFilterBufferRef::video |
video buffer specific properties
Definition at line 159 of file avfilter.h.
Referenced by av_buffersrc_buffer(), avfilter_copy_buf_props(), avfilter_copy_buffer_ref_props(), avfilter_copy_frame_props(), avfilter_get_video_buffer_ref_from_arrays(), avfilter_ref_buffer(), avfilter_unref_buffer(), blend_frame(), color_request_frame(), ff_dlog_ref(), ff_filter_frame(), fill_iplimage_from_picref(), filter(), filter_frame(), get_video_buffer(), movie_get_frame(), poll_filter(), poll_frame(), request_frame(), return_frame(), select_frame(), and source_request_frame().