FFmpeg  4.0
Data Fields
CodedBitstreamUnit Struct Reference

Coded bitstream unit structure. More...

#include <libavcodec/cbs.h>

Data Fields

CodedBitstreamUnitType type
 Codec-specific type of this unit. More...
 
uint8_tdata
 Pointer to the directly-parsable bitstream form of this unit. More...
 
size_t data_size
 The number of bytes in the bitstream (including any padding bits in the final byte). More...
 
size_t data_bit_padding
 The number of bits which should be ignored in the final byte. More...
 
AVBufferRefdata_ref
 If data is reference counted, a reference to the buffer containing data. More...
 
voidcontent
 Pointer to the decomposed form of this unit. More...
 
AVBufferRefcontent_ref
 If content is reference counted, a reference to the buffer containing content. More...
 

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 63 of file cbs.h.

Field Documentation

◆ type

CodedBitstreamUnitType CodedBitstreamUnit::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 74 of file cbs.h.

Referenced by cbs_h2645_assemble_fragment(), cbs_h2645_replace_ps(), cbs_h2645_write_nal_unit(), cbs_h265_read_nal_unit(), cbs_mpeg2_assemble_fragment(), cbs_mpeg2_read_unit(), cbs_mpeg2_write_unit(), cbs_unit_uninit(), ff_cbs_alloc_unit_data(), ff_cbs_insert_unit_data(), and ff_cbs_write_fragment_data().

◆ data_size

size_t CodedBitstreamUnit::data_size

◆ 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 85 of file cbs.h.

Referenced by cbs_h2645_assemble_fragment(), cbs_h2645_write_nal_unit(), cbs_mpeg2_write_unit(), and cbs_unit_uninit().

◆ data_ref

AVBufferRef* CodedBitstreamUnit::data_ref

If data is reference counted, a reference to the buffer containing data.

Null if data is not reference counted.

Definition at line 90 of file cbs.h.

Referenced by cbs_unit_uninit(), ff_cbs_alloc_unit_data(), ff_cbs_insert_unit_data(), and ff_cbs_write_fragment_data().

◆ content

void* CodedBitstreamUnit::content

◆ content_ref

AVBufferRef* CodedBitstreamUnit::content_ref

If content is reference counted, a reference to the buffer containing content.

Null if content is not reference counted.

Definition at line 104 of file cbs.h.

Referenced by cbs_read_fragment_content(), cbs_unit_uninit(), ff_cbs_alloc_unit_content(), and ff_cbs_insert_unit_content().


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