FFmpeg  4.0
Data Fields
AVBufferRef Struct Reference

A reference to a data buffer. More...

#include <libavutil/buffer.h>

Data Fields

AVBufferbuffer
 
uint8_tdata
 The data buffer. More...
 
int size
 Size of data in bytes. More...
 

Detailed Description

A reference to a data buffer.

The size of this struct is not a part of the public ABI and it is not meant to be allocated directly.

Examples:
hw_decode.c, qsvdec.c, vaapi_encode.c, and vaapi_transcode.c.

Definition at line 81 of file buffer.h.

Field Documentation

◆ buffer

AVBuffer* AVBufferRef::buffer

◆ data

uint8_t* AVBufferRef::data

The data buffer.

It is considered writable if and only if this is the only reference to the buffer, in which case av_buffer_is_writable() returns 1.

Examples:
qsvdec.c, and vaapi_encode.c.

Definition at line 89 of file buffer.h.

Referenced by alloc_frame(), alloc_frame_buffer(), alloc_picture(), amf_init_context(), amf_init_encoder(), asf_parse_packet(), audio_get_buffer(), av_buffer_allocz(), av_buffer_create(), av_buffer_make_writable(), av_buffer_realloc(), av_frame_get_plane_buffer(), av_frame_get_qp_table(), av_frame_new_side_data_from_buf(), av_frame_set_qp_table(), av_grow_packet(), av_hwdevice_ctx_create(), av_hwdevice_ctx_create_derived(), av_hwdevice_ctx_init(), av_hwdevice_get_hwframe_constraints(), av_hwdevice_hwconfig_alloc(), av_hwframe_ctx_alloc(), av_hwframe_ctx_create_derived(), av_hwframe_ctx_init(), av_hwframe_get_buffer(), av_hwframe_map(), av_hwframe_transfer_data(), av_hwframe_transfer_get_formats(), av_new_packet(), av_packet_make_refcounted(), av_packet_make_writable(), av_packet_merge_side_data(), av_packet_ref(), avcodec_default_get_format(), avcodec_encode_audio2(), avcodec_encode_video2(), avcodec_get_hw_frames_parameters(), avcodec_open2(), buffer_needs_copy(), bufref_wrap_interface(), cbs_fill_fragment_data(), cbs_h2645_replace_ps(), cbs_h265_read_nal_unit(), cbs_mpeg2_assemble_fragment(), cbs_mpeg2_read_unit(), config_output(), config_props(), copy_packet_data(), cuda_get_buffer(), cudascale_config_props(), cudascale_filter_frame(), cudaupload_config_output(), cuvid_decode_init(), cuvid_decode_packet(), cuvid_flush(), cuvid_handle_video_sequence(), cuvid_init(), cuvid_output_frame(), d3d11va_get_buffer(), d3d11va_transfer_data(), decode_buffering_period(), decode_mb_row_no_filter(), decode_nal_sei_pic_timing(), decode_nal_units(), decode_picture_timing(), decode_receive_frame_internal(), dpb_add(), drm_get_buffer(), dxva2_get_buffer(), ebml_read_binary(), export_stream_params(), extract_extradata_h2645(), ff_alloc_picture(), ff_amf_send_frame(), ff_cbs_alloc_unit_data(), ff_decode_get_hw_frames_ctx(), ff_default_get_video_buffer(), ff_dxva2_common_frame_params(), ff_dxva2_decode_init(), ff_er_frame_end(), ff_filter_init_hw_frames(), ff_flac_parse_picture(), ff_frame_pool_get(), ff_get_format(), ff_h264_decode_picture_parameter_set(), ff_h264_decode_seq_parameter_set(), ff_h264_execute_ref_pic_marking(), ff_h264_queue_decode_slice(), ff_h264_ref_picture(), ff_h264_update_thread_context(), ff_hevc_decode_nal_pps(), ff_hevc_decode_nal_sps(), ff_hevc_decode_nal_vps(), ff_hwframe_map_create(), ff_id3v2_parse_apic(), ff_mediacodec_dec_init(), ff_mjpeg_decode_frame(), ff_mpeg_ref_picture(), ff_mpv_export_qp_table(), ff_nvdec_decode_init(), ff_nvdec_end_frame(), ff_nvdec_frame_params(), ff_nvdec_get_ref_idx(), ff_nvdec_start_frame(), ff_nvenc_encode_init(), ff_opencl_filter_config_input(), ff_opencl_filter_config_output(), ff_qsv_enc_init(), ff_qsv_init_session_device(), ff_qsv_init_session_frames(), ff_thread_await_progress(), ff_thread_report_progress(), ff_v4l2_buffer_avframe_to_buf(), ff_v4l2_buffer_buf_to_avframe(), ff_v4l2_buffer_buf_to_avpkt(), ff_vaapi_common_frame_params(), ff_vaapi_decode_init(), ff_vaapi_encode_init(), ff_vaapi_vpp_config_input(), ff_vaapi_vpp_config_output(), ff_vdpau_common_frame_params(), ff_vdpau_common_init(), ff_videotoolbox_alloc_frame(), ff_videotoolbox_hvcc_extradata_create(), ff_videotoolbox_uninit(), ffmmal_add_packet(), fill_frameinfo_by_link(), filter_frame(), frame_copy_props(), generate_missing_ref(), get_audio_buffer(), get_buffer(), get_format(), get_lowest_part_y(), get_qt_codec(), get_video_buffer(), h264_init_ps(), h264_metadata_filter(), h264_slice_header_parse(), have_alpha_planar(), hevc_decode_extradata(), hevc_parse_slice_header(), hevc_ref_frame(), hls_slice_header(), hwdownload_config_input(), hwdownload_filter_frame(), hwframe_pool_prealloc(), hwmap_config_output(), hwupload_config_output(), hwupload_query_formats(), id3_has_changed_values(), ifilter_send_frame(), init_out_pool(), init_out_session(), init_output_stream(), init_processing_chain(), init_slice_rpl(), init_stage(), init_video_param(), init_video_param_jpeg(), init_vpp_session(), kmsgrab_read_header(), mediacodec_decode_close(), mpegts_push_data(), new_pes_packet(), nppscale_deinterleave(), nppscale_filter_frame(), nppscale_interleave(), nvdec_decoder_create(), nvdec_decoder_frame_alloc(), nvdec_h264_start_frame(), nvdec_hevc_start_frame(), nvdec_mjpeg_start_frame(), nvdec_mpeg12_start_frame(), nvdec_mpeg4_start_frame(), nvdec_retrieve_data(), nvdec_vc1_start_frame(), nvdec_vp8_start_frame(), nvdec_vp9_start_frame(), nvenc_register_frame(), nvenc_setup_device(), opencl_filter_set_device(), opencl_get_buffer(), opencl_map_frame(), opencl_mem_flags_for_mapping(), overlay_opencl_blend(), parse_nal_units(), qsv_create_mids(), qsv_decode_init(), qsv_device_create(), qsv_frame_alloc(), qsv_frame_lock(), qsv_get_buffer(), qsv_init(), qsv_init_child_ctx(), qsv_init_opaque_alloc(), qsv_map_from(), qsv_setup_mids(), qsv_transfer_data_child(), raw_decode(), raw_init_decoder(), read_apic(), remove_pps(), remove_sps(), remove_vps(), rkmpp_flush(), rkmpp_receive_frame(), rkmpp_release_frame(), rkmpp_retrieve_frame(), rkmpp_send_packet(), rkmpp_write_data(), scalecuda_resize(), set_hwframe_ctx(), set_sps(), thread_get_buffer_internal(), thumbnail(), transfer_data_alloc(), update_context_from_thread(), vaapi_decode_make_config(), vaapi_encode_create_recon_frames(), vaapi_encode_issue(), vaapi_frames_init(), vaapi_get_buffer(), vaapi_map_to_memory(), vdpau_get_buffer(), video_get_buffer(), videotoolbox_postproc_frame(), videotoolbox_set_frame(), vp78_decode_mv_mb_modes(), vp8_alloc_frame(), vp8_release_frame(), vp9_frame_alloc(), vp9_frame_ref(), vt_get_buffer(), and vtenc_populate_extradata().

◆ size

int AVBufferRef::size

The documentation for this struct was generated from the following file: