#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 |
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 134 of file avfilter.h.
audio buffer specific properties
Definition at line 152 of file avfilter.h.
Referenced by av_asrc_buffer_add_audio_buffer_ref(), av_asrc_buffer_add_samples(), avfilter_copy_buffer_ref_props(), avfilter_default_filter_samples(), avfilter_filter_samples(), avfilter_get_audio_buffer_ref_from_arrays(), avfilter_ref_buffer(), avfilter_unref_buffer(), ff_dlog_ref(), filter_samples(), free_pool(), lavfi_read_packet(), log_input_change(), request_frame(), send_out(), store_in_pool(), and uninit().
the buffer that this is a reference to
Definition at line 135 of file avfilter.h.
Referenced by av_asrc_buffer_add_samples(), avfilter_default_get_video_buffer(), avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer_ref_from_arrays(), avfilter_ref_buffer(), avfilter_unref_buffer(), does_clip(), ff_dlog_ref(), free_pool(), send_out(), start_frame(), store_in_pool(), transcode_video(), and vf_next_put_image().
uint8_t* AVFilterBufferRef::data[8] |
picture/audio data for each plane
Definition at line 136 of file avfilter.h.
Referenced by av_vsrc_buffer_add_video_buffer_ref(), avfilter_default_get_video_buffer(), avfilter_draw_slice(), avfilter_fill_frame_from_video_buffer_ref(), avfilter_filter_samples(), avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer_ref_from_arrays(), blend_slice(), color_request_frame(), display_picref(), does_clip(), draw_send_bar_slice(), draw_slice(), drawbox(), end_frame(), ff_dlog_ref(), fill_iplimage_from_picref(), fill_picref_from_iplimage(), fill_picture(), fill_picture_monoblack(), fill_picture_rgb(), filter(), filter_samples(), filter_samples_channel_mapping(), filter_samples_panning(), get_video_buffer(), init_buffers(), lavfi_read_packet(), request_frame(), scale_slice(), start_frame(), and vf_next_put_image().
media format
Definition at line 138 of file avfilter.h.
Referenced by av_asrc_buffer_add_audio_buffer_ref(), av_vsrc_buffer_add_video_buffer_ref(), avfilter_copy_frame_props(), avfilter_default_get_video_buffer(), avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer_ref_from_arrays(), end_frame(), filter_samples(), lavfi_read_packet(), log_input_change(), start_frame(), and vf_next_put_image().
int AVFilterBufferRef::linesize[8] |
number of bytes per line
Definition at line 137 of file avfilter.h.
Referenced by av_vsrc_buffer_add_video_buffer_ref(), avfilter_default_get_video_buffer(), avfilter_draw_slice(), avfilter_fill_frame_from_video_buffer_ref(), avfilter_filter_samples(), avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer_ref_from_arrays(), avfilter_start_frame(), blend_slice(), color_request_frame(), display_picref(), does_clip(), draw_send_bar_slice(), draw_slice(), drawbox(), end_frame(), ff_dlog_ref(), fill_iplimage_from_picref(), fill_picref_from_iplimage(), fill_picture(), fill_picture_monoblack(), fill_picture_rgb(), filter(), get_video_buffer(), lavfi_read_packet(), request_frame(), scale_slice(), start_frame(), and vf_next_put_image().
permissions, see the AV_PERM_* flags
Definition at line 148 of file avfilter.h.
Referenced by avfilter_default_get_video_buffer(), avfilter_filter_samples(), avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer_ref_from_arrays(), avfilter_ref_buffer(), avfilter_start_frame(), end_frame(), ff_dlog_ref(), start_frame(), and vf_next_put_image().
int64_t AVFilterBufferRef::pos |
byte position in stream, -1 if unknown
Definition at line 146 of file avfilter.h.
Referenced by avfilter_copy_buffer_ref_props(), avfilter_copy_frame_props(), 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 145 of file avfilter.h.
Referenced by av_asrc_buffer_add_samples(), avfilter_copy_buffer_ref_props(), avfilter_copy_frame_props(), avfilter_default_filter_samples(), avfilter_filter_samples(), avfilter_start_frame(), color_request_frame(), display_picref(), draw_text(), end_frame(), ff_dlog_ref(), filter_samples(), lavfi_read_packet(), request_frame(), return_frame(), select_frame(), send_out(), source_request_frame(), start_frame(), start_frame_overlay(), transcode_video(), vf_next_put_image(), and video_thread().
media type of buffer data
Definition at line 150 of file avfilter.h.
Referenced by avfilter_copy_buffer_ref_props(), avfilter_copy_frame_props(), avfilter_get_audio_buffer(), avfilter_get_audio_buffer_ref_from_arrays(), avfilter_get_video_buffer(), avfilter_get_video_buffer_ref_from_arrays(), avfilter_ref_buffer(), and vf_next_put_image().
video buffer specific properties
Definition at line 151 of file avfilter.h.
Referenced by av_vsrc_buffer_add_video_buffer_ref(), avfilter_copy_buffer_ref_props(), avfilter_copy_frame_props(), avfilter_default_get_video_buffer(), avfilter_draw_slice(), avfilter_fill_frame_from_video_buffer_ref(), avfilter_get_video_buffer_ref_from_arrays(), avfilter_ref_buffer(), avfilter_unref_buffer(), color_request_frame(), display_picref(), draw_slice(), end_frame(), ff_dlog_ref(), fill_iplimage_from_picref(), filter(), free_pool(), get_video_buffer(), lavfi_read_packet(), poll_frame(), request_frame(), return_frame(), select_frame(), source_request_frame(), start_frame(), store_in_pool(), and vf_next_put_image().