#include <avfilter.h>
Data Fields | |
AVFilterBuffer * | buf |
the buffer that this is a reference to | |
uint8_t * | data [8] |
picture/audio data for each plane | |
uint8_t ** | extended_data |
pointers to the data planes/channels. | |
int | linesize [8] |
number of bytes per line | |
AVFilterBufferRefVideoProps * | video |
video buffer specific properties | |
AVFilterBufferRefAudioProps * | audio |
audio buffer specific properties | |
int64_t | pts |
presentation timestamp. | |
int64_t | pos |
byte position in stream, -1 if unknown | |
int | format |
media format | |
int | perms |
permissions, see the AV_PERM_* flags | |
enum AVMediaType | type |
media type of buffer data |
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 147 of file avfilter.h.
audio buffer specific properties
Definition at line 168 of file avfilter.h.
Referenced by av_asrc_buffer_add_samples(), av_buffersink_read_samples(), av_buffersrc_add_ref(), 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(), describe_bufref_to_str(), ff_copy_buffer_ref(), ff_default_get_audio_buffer(), ff_filter_samples(), ff_filter_samples_framed(), ff_free_pool(), ff_tlog_ref(), filter_frame(), filter_samples(), join_request_frame(), lavfi_read_packet(), plot_spectrum_column(), print_samplesref(), push_frame(), push_samples(), request_frame(), return_audio_frame(), send_out(), store_in_pool(), and write_to_fifo().
the buffer that this is a reference to
Definition at line 148 of file avfilter.h.
Referenced by av_asrc_buffer_add_samples(), av_buffersrc_add_frame(), avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer_ref_from_arrays(), avfilter_ref_buffer(), avfilter_unref_buffer(), decode_video(), does_clip(), end_frame(), ff_copy_buffer_ref(), ff_default_get_video_buffer(), ff_draw_slice(), ff_free_pool(), ff_start_frame(), ff_tlog_ref(), frame_to_buf(), join_request_frame(), send_out(), start_frame(), store_in_pool(), vf_next_put_image(), and video_thread().
picture/audio data for each plane
Definition at line 149 of file avfilter.h.
Referenced by 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_slice(), buffer_offset(), channelmap_filter_samples(), config_output(), decimate_frame(), display_picref(), does_clip(), draw_blank_frame(), draw_frame(), draw_glyphs(), draw_send_bar_slice(), draw_slice(), draw_text(), end_frame(), ff_copy_buffer_ref(), ff_default_get_video_buffer(), ff_draw_slice(), ff_start_frame(), ff_tlog_ref(), fill_iplimage_from_picref(), fill_picref_from_iplimage(), fill_picture(), fill_picture_monoblack(), fill_picture_rgb(), filter(), filter_samples(), get_video_buffer(), lavfi_read_packet(), overlay_ass_image(), plot_spectrum_column(), print_samplesref(), process_frame_uyvy422(), process_frame_yuv420p(), process_frame_yuv422p(), request_frame(), scale_slice(), start_frame(), sub2video_update(), and vf_next_put_image().
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 164 of file avfilter.h.
Referenced by av_buffersink_read_samples(), 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_samples(), ff_copy_buffer_ref(), ff_filter_samples(), ff_filter_samples_framed(), filter_samples(), join_request_frame(), output_frame(), plot_spectrum_column(), push_samples(), read_from_fifo(), request_frame(), return_audio_frame(), send_silence(), and write_to_fifo().
media format
Definition at line 178 of file avfilter.h.
Referenced by av_buffersink_read_samples(), av_buffersrc_add_ref(), avfilter_copy_buf_props(), avfilter_copy_frame_props(), avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer_ref_from_arrays(), calc_ptr_alignment(), end_frame(), ff_copy_buffer_ref(), ff_default_get_video_buffer(), ff_filter_samples(), ff_start_frame(), filter_samples(), lavfi_read_packet(), start_frame(), and vf_next_put_image().
number of bytes per line
Definition at line 165 of file avfilter.h.
Referenced by avfilter_copy_buf_props(), avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer_ref_from_arrays(), blend_slice(), buffer_offset(), config_output(), decimate_frame(), display_picref(), does_clip(), draw_blank_frame(), draw_frame(), draw_glyphs(), draw_send_bar_slice(), draw_slice(), draw_text(), end_frame(), ff_copy_buffer_ref(), ff_default_get_video_buffer(), ff_draw_slice(), ff_start_frame(), ff_tlog_ref(), fill_iplimage_from_picref(), fill_picref_from_iplimage(), fill_picture(), fill_picture_monoblack(), fill_picture_rgb(), filter(), filter_samples(), get_video_buffer(), join_request_frame(), lavfi_read_packet(), overlay_ass_image(), plot_spectrum_column(), process_frame_uyvy422(), process_frame_yuv420p(), process_frame_yuv422p(), request_frame(), scale_slice(), start_frame(), sub2video_update(), vf_next_put_image(), and write_to_fifo().
permissions, see the AV_PERM_* flags
Definition at line 180 of file avfilter.h.
Referenced by avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer_ref_from_arrays(), avfilter_ref_buffer(), end_frame(), ff_default_get_video_buffer(), ff_filter_samples_framed(), ff_inplace_start_frame(), ff_start_frame(), ff_tlog_ref(), join_request_frame(), start_frame(), and vf_next_put_image().
int64_t AVFilterBufferRef::pos |
byte position in stream, -1 if unknown
Definition at line 176 of file avfilter.h.
Referenced by avfilter_copy_buf_props(), avfilter_copy_buffer_ref_props(), avfilter_copy_frame_props(), describe_bufref_to_str(), end_frame(), ff_tlog_ref(), filter_frame(), filter_samples(), lavfi_read_packet(), request_frame(), select_frame(), source_request_frame(), start_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 175 of file avfilter.h.
Referenced by av_asrc_buffer_add_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(), describe_bufref_to_str(), display_picref(), draw_text(), end_frame(), end_frame_over(), ff_buffersink_read_samples_compat(), ff_filter_samples(), ff_filter_samples_framed(), ff_start_frame(), ff_tlog_ref(), filter_frame(), filter_samples(), frame_to_buf(), join_request_frame(), lavfi_read_packet(), output_frame(), plot_spectrum_column(), process_frame(), push_frame(), push_samples(), read_from_fifo(), reap_filters(), request_frame(), return_audio_frame(), return_frame(), select_frame(), send_out(), send_silence(), source_request_frame(), start_frame(), start_frame_main(), sub2video_push_ref(), try_start_frame(), vf_next_put_image(), and video_thread().
media type of buffer data
Definition at line 182 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(), describe_bufref_to_str(), ff_get_audio_buffer(), ff_get_video_buffer(), and vf_next_put_image().
video buffer specific properties
Definition at line 167 of file avfilter.h.
Referenced by av_buffersrc_add_ref(), 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(), decimate_frame(), default_start_frame(), describe_bufref_to_str(), display_picref(), draw_frame(), draw_slice(), draw_slice_main(), end_frame(), end_last_frame(), ff_copy_buffer_ref(), ff_default_get_video_buffer(), ff_draw_slice(), ff_free_pool(), ff_inplace_start_frame(), ff_start_frame(), ff_tlog_ref(), fill_iplimage_from_picref(), filter(), filter_frame(), filter_samples(), get_video_buffer(), lavfi_read_packet(), movie_push_frame(), overlay_ass_image(), poll_frame(), process_frame_uyvy422(), process_frame_yuv420p(), process_frame_yuv422p(), reap_filters(), request_frame(), return_frame(), select_frame(), source_request_frame(), start_frame(), store_in_pool(), try_push_frame(), and vf_next_put_image().