FFmpeg  4.0
Data Fields
CodedBitstreamFragment Struct Reference

Coded bitstream fragment structure, combining one or more units. More...

#include <libavcodec/cbs.h>

Data Fields

uint8_tdata
 Pointer to the bitstream form of this fragment. More...
 
size_t data_size
 The number of bytes in the bitstream. 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...
 
int nb_units
 Number of units in this fragment. More...
 
CodedBitstreamUnitunits
 Pointer to an array of units of length nb_units. More...
 

Detailed Description

Coded bitstream fragment structure, combining one or more units.

This is any sequence of units. It need not form some greater whole, though in many cases it will. For example, an H.264 access unit, which is composed of a sequence of H.264 NAL units.

Definition at line 114 of file cbs.h.

Field Documentation

◆ data

uint8_t* CodedBitstreamFragment::data

◆ data_size

size_t CodedBitstreamFragment::data_size

◆ data_bit_padding

size_t CodedBitstreamFragment::data_bit_padding

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

Definition at line 131 of file cbs.h.

Referenced by cbs_h2645_assemble_fragment(), ff_cbs_fragment_uninit(), vaapi_encode_h264_write_access_unit(), vaapi_encode_h265_write_access_unit(), and vaapi_encode_mpeg2_write_fragment().

◆ data_ref

AVBufferRef* CodedBitstreamFragment::data_ref

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

Null if data is not reference counted.

Definition at line 136 of file cbs.h.

Referenced by cbs_fill_fragment_data(), cbs_h2645_assemble_fragment(), cbs_mpeg2_assemble_fragment(), ff_cbs_fragment_uninit(), ff_cbs_read_packet(), ff_cbs_write_fragment_data(), and ff_cbs_write_packet().

◆ nb_units

int CodedBitstreamFragment::nb_units

◆ units

CodedBitstreamUnit* CodedBitstreamFragment::units

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