#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 | |
int | linesize [8] |
number of bytes per line | |
int | format |
media format | |
int64_t | pts |
presentation timestamp. | |
int64_t | pos |
byte position in stream, -1 if unknown | |
int | perms |
permissions, see the AV_PERM_* flags | |
enum AVMediaType | type |
media type of buffer data | |
AVFilterBufferRefVideoProps * | video |
video buffer specific properties | |
AVFilterBufferRefAudioProps * | audio |
audio buffer specific properties | |
uint8_t ** | extended_data |
pointers to the data planes/channels. |
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 152 of file avfilter.h.
audio buffer specific properties
Definition at line 170 of file avfilter.h.
Referenced by av_asrc_buffer_add_samples(), av_buffersrc_add_ref(), avfilter_copy_buf_props(), avfilter_copy_buffer_ref_props(), avfilter_copy_frame_props(), avfilter_fill_frame_from_audio_buffer_ref(), avfilter_get_audio_buffer_ref_from_arrays(), avfilter_ref_buffer(), avfilter_unref_buffer(), copy_buffer_ref(), ff_default_filter_samples(), ff_dlog_ref(), ff_filter_samples(), ff_free_pool(), filter_samples(), lavfi_read_packet(), print_samplesref(), request_frame(), send_out(), store_in_pool(), and write_to_fifo().
the buffer that this is a reference to
Definition at line 153 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(), copy_buffer_ref(), decode_video(), does_clip(), ff_default_get_video_buffer(), ff_dlog_ref(), ff_free_pool(), send_out(), start_frame(), store_in_pool(), and vf_next_put_image().
picture/audio data for each plane
Definition at line 154 of file avfilter.h.
Referenced by avfilter_copy_buf_props(), avfilter_draw_slice(), avfilter_fill_frame_from_audio_buffer_ref(), avfilter_fill_frame_from_video_buffer_ref(), avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer_ref_from_arrays(), avfilter_ref_buffer(), avfilter_start_frame(), avfilter_unref_buffer(), blend_slice(), color_request_frame(), copy_buffer_ref(), display_picref(), does_clip(), draw_blank_frame(), draw_glyphs(), draw_send_bar_slice(), draw_slice(), draw_text(), end_frame(), ff_default_get_video_buffer(), ff_dlog_ref(), ff_filter_samples(), 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(), print_samplesref(), process_frame_uyvy422(), process_frame_yuv420p(), process_frame_yuv422p(), request_frame(), scale_slice(), start_frame(), 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 186 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(), copy_buffer_ref(), ff_filter_samples(), filter_samples(), output_frame(), read_from_fifo(), request_frame(), and write_to_fifo().
media format
Definition at line 156 of file avfilter.h.
Referenced by av_buffersrc_add_ref(), avfilter_copy_buf_props(), avfilter_copy_frame_props(), avfilter_fill_frame_from_audio_buffer_ref(), avfilter_fill_frame_from_video_buffer_ref(), avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer_ref_from_arrays(), copy_buffer_ref(), end_frame(), ff_default_get_video_buffer(), ff_filter_samples(), filter_samples(), lavfi_read_packet(), start_frame(), and vf_next_put_image().
int AVFilterBufferRef::linesize[8] |
number of bytes per line
Definition at line 155 of file avfilter.h.
Referenced by avfilter_copy_buf_props(), avfilter_draw_slice(), avfilter_fill_frame_from_audio_buffer_ref(), avfilter_fill_frame_from_video_buffer_ref(), avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer_ref_from_arrays(), avfilter_start_frame(), blend_slice(), color_request_frame(), copy_buffer_ref(), display_picref(), does_clip(), draw_blank_frame(), draw_glyphs(), draw_send_bar_slice(), draw_slice(), draw_text(), end_frame(), ff_default_get_video_buffer(), ff_dlog_ref(), ff_filter_samples(), 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(), process_frame_uyvy422(), process_frame_yuv420p(), process_frame_yuv422p(), request_frame(), scale_slice(), start_frame(), vf_next_put_image(), and write_to_fifo().
permissions, see the AV_PERM_* flags
Definition at line 166 of file avfilter.h.
Referenced by avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer_ref_from_arrays(), avfilter_ref_buffer(), avfilter_start_frame(), end_frame(), ff_default_get_video_buffer(), ff_dlog_ref(), ff_filter_samples(), start_frame(), and vf_next_put_image().
int64_t AVFilterBufferRef::pos |
byte position in stream, -1 if unknown
Definition at line 164 of file avfilter.h.
Referenced by avfilter_copy_buffer_ref_props(), avfilter_copy_frame_props(), avfilter_fill_frame_from_audio_buffer_ref(), avfilter_fill_frame_from_video_buffer_ref(), color_request_frame(), end_frame(), ff_dlog_ref(), 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 163 of file avfilter.h.
Referenced by av_asrc_buffer_add_samples(), av_buffersink_read_samples(), avfilter_copy_buf_props(), avfilter_copy_buffer_ref_props(), avfilter_copy_frame_props(), avfilter_fill_frame_from_audio_buffer_ref(), avfilter_fill_frame_from_video_buffer_ref(), avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer_ref_from_arrays(), avfilter_start_frame(), color_request_frame(), display_picref(), draw_text(), end_frame(), ff_default_filter_samples(), ff_dlog_ref(), ff_filter_samples(), filter_samples(), lavfi_read_packet(), output_frame(), poll_filters(), read_from_fifo(), request_frame(), return_frame(), select_frame(), send_out(), source_request_frame(), start_frame(), start_frame_overlay(), vf_next_put_image(), and video_thread().
media type of buffer data
Definition at line 168 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(), avfilter_get_video_buffer_ref_from_arrays(), avfilter_ref_buffer(), ff_get_audio_buffer(), and vf_next_put_image().
video buffer specific properties
Definition at line 169 of file avfilter.h.
Referenced by av_buffersrc_add_ref(), avfilter_copy_buf_props(), avfilter_copy_buffer_ref_props(), avfilter_copy_frame_props(), avfilter_draw_slice(), avfilter_fill_frame_from_buffer_ref(), avfilter_fill_frame_from_video_buffer_ref(), avfilter_get_video_buffer_ref_from_arrays(), avfilter_ref_buffer(), avfilter_unref_buffer(), color_request_frame(), copy_buffer_ref(), display_picref(), draw_slice(), end_frame(), end_last_frame(), ff_default_get_video_buffer(), ff_dlog_ref(), ff_free_pool(), fill_iplimage_from_picref(), filter(), get_video_buffer(), lavfi_read_packet(), overlay_ass_image(), poll_filters(), poll_frame(), process_frame_uyvy422(), process_frame_yuv420p(), process_frame_yuv422p(), request_frame(), return_frame(), select_frame(), source_request_frame(), start_frame(), store_in_pool(), and vf_next_put_image().