FFmpeg
Loading...
Searching...
No Matches
Data Fields
CodedBitstreamUnit Struct Reference

Coded bitstream unit structure. More...

#include <cbs.h>

Data Fields

  Codec-specific type of this unit.
 
uint8_t *  data
  Pointer to the directly-parsable bitstream form of this unit.
 
size_t  data_size
  The number of bytes in the bitstream (including any padding bits in the final byte).
 
size_t  data_bit_padding
  The number of bits which should be ignored in the final byte.
 
  A reference to the buffer containing data.
 
void *  content
  Pointer to the decomposed form of this unit.
 
void *  content_ref
  If content is reference counted, a RefStruct reference backing content.
 

Detailed Description

Coded bitstream unit structure.

A bitstream unit the smallest element of a bitstream which is meaningful on its own. For example, an H.264 NAL unit.

See the codec-specific header for the meaning of this for any particular codec.

Definition at line 77 of file cbs.h.

Field Documentation

◆  type

CodedBitstreamUnitType CodedBitstreamUnit::type

Codec-specific type of this unit.

Definition at line 81 of file cbs.h.

Referenced by apv_metadata_update_fragment(), apv_receive_frame_internal(), av1_frame_merge_filter(), av1_frame_split_filter(), av1_metadata_update_fragment(), av1_parser_parse(), av1_receive_frame_internal(), cbs_apv_read_unit(), cbs_apv_write_unit(), cbs_av1_read_unit(), cbs_find_unit_type_desc(), cbs_h2645_replace_ps(), cbs_h2645_replace_ps(), cbs_h264_discarded_nal_unit(), cbs_h264_write_nal_unit(), cbs_h265_discarded_nal_unit(), cbs_h265_write_nal_unit(), cbs_h266_read_nal_unit(), cbs_h266_write_nal_unit(), cbs_insert_unit_data(), cbs_jpeg_assemble_fragment(), cbs_jpeg_read_unit(), cbs_jpeg_write_segment(), cbs_jpeg_write_unit(), cbs_lcevc_get_process_block_list(), cbs_lcevc_read_nal_unit(), cbs_lcevc_write_nal_unit(), cbs_mpeg2_read_unit(), cbs_mpeg2_write_header(), cbs_mpeg2_write_unit(), cbs_sei_get_message_list(), cbs_sei_get_unit(), decode_nal_unit(), decode_nal_units(), decode_prefix_sei(), dovi_rpu_update_fragment_av1(), ff_cbs_h2645_assemble_fragment(), ff_cbs_lcevc_add_process_block(), ff_isom_parse_apvc(), ff_mov_cenc_av1_write_obus(), filter_units_filter(), get_pict_type(), h264_filter(), h264_metadata_insert_aud(), h264_metadata_update_fragment(), h265_metadata_guess_level(), h265_metadata_update_fragment(), h266_metadata_update_fragment(), hevc_filter(), insert_unit_content(), lcevc_metadata_update_fragment(), mpeg2_metadata_update_fragment(), parse(), parse_feedback_units(), parse_feedback_units(), parse_feedback_units(), and set_pict_type().

◆  data

uint8_t* CodedBitstreamUnit::data

Pointer to the directly-parsable bitstream form of this unit.

May be NULL if the unit currently only exists in decomposed form.

Definition at line 88 of file cbs.h.

Referenced by av1_frame_split_filter(), av1_receive_frame_internal(), cbs_apv_assemble_fragment(), cbs_apv_read_unit(), cbs_av1_assemble_fragment(), cbs_av1_read_unit(), cbs_h2645_replace_ps(), cbs_h2645_replace_ps(), cbs_h266_read_nal_unit(), cbs_insert_unit_data(), cbs_jpeg_assemble_fragment(), cbs_jpeg_read_unit(), cbs_lcevc_read_nal_unit(), cbs_mpeg2_assemble_fragment(), cbs_mpeg2_read_unit(), cbs_unit_uninit(), cbs_vp8_read_unit(), cbs_vp9_assemble_fragment(), cbs_vp9_read_unit(), ff_cbs_h2645_assemble_fragment(), and ff_mov_cenc_av1_write_obus().

◆  data_size

size_t CodedBitstreamUnit::data_size

The number of bytes in the bitstream (including any padding bits in the final byte).

Definition at line 93 of file cbs.h.

Referenced by av1_frame_split_filter(), av1_receive_frame_internal(), cbs_apv_assemble_fragment(), cbs_apv_read_unit(), cbs_av1_assemble_fragment(), cbs_av1_read_unit(), cbs_h2645_replace_ps(), cbs_h2645_replace_ps(), cbs_h266_read_nal_unit(), cbs_insert_unit_data(), cbs_jpeg_assemble_fragment(), cbs_jpeg_read_unit(), cbs_lcevc_read_nal_unit(), cbs_mpeg2_assemble_fragment(), cbs_mpeg2_read_unit(), cbs_unit_uninit(), cbs_vp8_read_unit(), cbs_vp9_assemble_fragment(), cbs_vp9_read_unit(), ff_cbs_h2645_assemble_fragment(), and ff_mov_cenc_av1_write_obus().

◆  data_bit_padding

size_t CodedBitstreamUnit::data_bit_padding

The number of bits which should be ignored in the final byte.

This supports non-byte-aligned bitstreams.

Definition at line 99 of file cbs.h.

Referenced by cbs_unit_uninit(), and ff_cbs_h2645_assemble_fragment().

◆  data_ref

AVBufferRef* CodedBitstreamUnit::data_ref

A reference to the buffer containing data.

Must be set if data is not NULL.

Definition at line 105 of file cbs.h.

Referenced by av1_receive_frame_internal(), cbs_apv_read_unit(), cbs_av1_read_unit(), cbs_h2645_replace_ps(), cbs_h2645_replace_ps(), cbs_h266_read_nal_unit(), cbs_insert_unit_data(), cbs_jpeg_read_unit(), cbs_lcevc_read_nal_unit(), cbs_mpeg2_read_unit(), cbs_unit_uninit(), cbs_vp8_read_unit(), and cbs_vp9_read_unit().

◆  content

void* CodedBitstreamUnit::content

Pointer to the decomposed form of this unit.

The type of this structure depends on both the codec and the type of this unit. May be NULL if the unit only exists in bitstream form.

Definition at line 114 of file cbs.h.

Referenced by alloc_unit_content(), apv_metadata_update_fragment(), apv_receive_frame_internal(), av1_frame_merge_filter(), av1_frame_split_filter(), av1_metadata_update_fragment(), av1_parser_parse(), av1_receive_frame_internal(), cbs_apv_read_unit(), cbs_apv_write_unit(), cbs_av1_read_unit(), cbs_av1_write_obu(), cbs_clone_noncomplex_unit_content(), cbs_clone_unit_content(), cbs_h2645_replace_ps(), cbs_h2645_replace_ps(), cbs_h264_discarded_nal_unit(), cbs_h264_write_nal_unit(), cbs_h265_discarded_nal_unit(), cbs_h265_write_nal_unit(), cbs_h266_read_nal_unit(), cbs_h266_replace_ps(), cbs_h266_write_nal_unit(), cbs_jpeg_read_unit(), cbs_jpeg_write_scan(), cbs_jpeg_write_segment(), cbs_lcevc_get_process_block_list(), cbs_lcevc_read_nal_unit(), cbs_lcevc_write_nal_unit(), cbs_mpeg2_read_unit(), cbs_mpeg2_write_slice(), cbs_sei_get_message_list(), cbs_sei_get_unit(), cbs_unit_uninit(), cbs_vp8_read_unit(), cbs_vp9_read_unit(), cbs_vp9_write_unit(), dovi_rpu_update_fragment_av1(), ff_cbs_lcevc_find_process_block(), ff_isom_parse_apvc(), ff_mov_cenc_av1_write_obus(), get_pict_type(), get_pu_info(), h264_filter(), h264_metadata_insert_aud(), h264_metadata_update_fragment(), h264_redundant_pps_fixup_pps(), h265_metadata_guess_level(), h265_metadata_update_fragment(), h266_metadata_update_fragment(), hevc_filter(), insert_unit_content(), make_unit_refcounted(), make_unit_writable(), mpeg2_metadata_update_fragment(), parse(), parse_feedback_units(), parse_feedback_units(), parse_feedback_units(), vp9_decode_frame(), and vp9_metadata_update_fragment().

◆  content_ref

void* CodedBitstreamUnit::content_ref

If content is reference counted, a RefStruct reference backing content.

NULL if content is not reference counted.

Definition at line 119 of file cbs.h.

Referenced by alloc_unit_content(), av1_frame_merge_filter(), av1_receive_frame_internal(), cbs_av1_read_unit(), cbs_av1_write_obu(), cbs_clone_unit_content(), cbs_h266_replace_ph(), cbs_h266_replace_ps(), cbs_unit_uninit(), decode_nal_unit(), decode_prefix_sei(), decode_slice(), ff_vvc_decode_aps(), ff_vvc_decode_sh(), insert_unit_content(), make_unit_refcounted(), make_unit_writable(), set_pict_type(), slice_init_entry_points(), and vp9_decode_frame().


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

Generated on Sun Sep 6 2026 19:21:25 for FFmpeg by doxygen 1.13.2

AltStyle によって変換されたページ (->オリジナル) /