FFmpeg
Data Fields
AVBufferRef Struct Reference

A reference to a data buffer. More...

#include <buffer.h>

Data Fields

AVBufferbuffer
 
uint8_t * data
 The data buffer. More...
 
size_t 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, qsv_decode.c, qsv_transcode.c, vaapi_encode.c, and vaapi_transcode.c.

Definition at line 82 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
vaapi_encode.c.

Definition at line 90 of file buffer.h.

Referenced by add_side_data_from_buf(), addroi_filter_frame(), amf_encode_init_av1(), amf_encode_init_h264(), amf_encode_init_hevc(), amf_init_context(), asf_parse_packet(), av_buffer_make_writable(), av_buffer_realloc(), av_frame_get_plane_buffer(), av_grow_packet(), av_hwdevice_ctx_create(), av_hwdevice_ctx_create_derived_opts(), av_hwframe_ctx_alloc(), av_hwframe_ctx_create_derived(), av_hwframe_get_buffer(), av_hwframe_map(), av_hwframe_transfer_get_formats(), av_new_packet(), av_packet_make_refcounted(), av_packet_make_writable(), avcodec_default_get_buffer2(), avcodec_default_get_encode_buffer(), avcodec_default_get_format(), avcodec_get_hw_frames_parameters(), blend_frame(), buffer_needs_copy(), bwdif_vulkan_config_input(), cbs_alloc_unit_data(), cbs_av1_assemble_fragment(), cbs_fill_fragment_data(), cbs_jpeg_assemble_fragment(), cbs_mpeg2_assemble_fragment(), config_output(), config_props(), copy_buffer_data(), cuda_bilateral_config_props(), cudachromakey_config_props(), cudacolorspace_config_props(), cudascale_config_props(), cudaupload_config_output(), d3d12va_encode_create_recon_frames(), d3d12va_encode_issue(), ddagrab_config_props(), dec_standalone_open(), decode_unregistered_user_data(), decoder_decode_frame(), deshake_opencl_init(), enc_stats_write(), encode_preinit_video(), extract_extradata_av1(), extract_extradata_h2645(), ff_d3d12va_common_frame_params(), ff_decode_get_hw_frames_ctx(), ff_default_get_video_buffer2(), ff_dxva2_common_frame_params(), ff_dxva2_decode_init(), ff_filter_init_hw_frames(), ff_get_format(), ff_hwaccel_frame_priv_alloc(), ff_hwframe_map_create(), ff_icc_profile_attach(), ff_nvdec_decode_init(), ff_nvdec_frame_params(), ff_nvenc_encode_init(), ff_opencl_filter_config_input(), ff_opencl_filter_config_output(), ff_parse_a53_cc(), ff_qsv_enc_init(), ff_qsv_init_session_device(), ff_qsv_init_session_frames(), ff_v4l2_buffer_buf_to_avpkt(), ff_vaapi_common_frame_params(), ff_vaapi_decode_init(), ff_vaapi_vpp_config_output(), ff_vdpau_common_frame_params(), ff_vdpau_common_init(), ff_vk_decode_add_slice(), ff_vk_decode_frame(), ff_vk_decode_prepare_frame(), ff_vk_filter_config_input(), ff_vk_filter_init_context(), ff_vk_frame_params(), fill_frameinfo_by_link(), filter_frame(), filter_thread(), fix_sub_duration_heartbeat(), frame_data_apply(), frame_header_obu(), get_frame_buffer(), get_mfx_version(), have_alpha_planar(), hw_device_setup_for_encode(), hwmap_config_output(), hwupload_config_output(), iccdetect_filter_frame(), id3_has_changed_values(), init_hwframe_ctx(), init_hwframes_ctx(), init_processing_chain(), init_stage(), init_video_param(), init_video_param_jpeg(), init_vpp_session(), init_vulkan(), lavfi_read_packet(), libdav1d_picture_allocator(), libplacebo_config_output(), libplacebo_init(), mediacodec_dec_get_video_codec(), mediacodec_init(), mpeg_decode_a53_cc(), mpegts_push_data(), mux_log_debug_ts(), new_pes_packet(), nppscale_deinterleave(), nppscale_filter_frame(), nppsharpen_config(), nppsharpen_filter_frame(), nppsharpen_sharpen(), npptranspose_filter_frame(), nvdec_av1_start_frame(), nvdec_decoder_create(), nvdec_mjpeg_start_frame(), nvdec_mpeg12_start_frame(), nvdec_mpeg4_start_frame(), nvdec_vc1_start_frame(), nvdec_vp8_start_frame(), nvdec_vp9_start_frame(), nvenc_setup_device(), of_streamcopy(), overlay_cuda_config_output(), overlay_opencl_blend(), overlay_vulkan_blend(), packet_data(), packet_data_c(), pad_opencl_init(), prepare_frame(), process_subtitle(), qsv_create_mids(), qsv_decode_preinit(), qsv_device_create(), qsv_dynamic_pool_unmap(), qsv_init_child_ctx(), qsv_init_opaque_alloc(), qsv_setup_mids(), read_apic(), read_interval_packets(), read_packet_vs(), remap_opencl_process_frame(), replace_side_data_from_buf(), scale_vt_config_output(), send_frame(), set_hwframe_ctx(), side_data_stereo3d_merge(), test_derivation(), thumbnail(), transpose_vt_recreate_hw_ctx(), vaapi_decode_make_config(), vaapi_encode_create_recon_frames(), vaapi_frames_init(), video_get_buffer(), vulkan_decode_bootstrap(), vulkan_decode_get_profile(), vulkan_encode_create_dpb(), vulkan_encode_issue(), vulkan_encode_output(), and xfade_frame().

◆ size

size_t AVBufferRef::size

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