FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
CodedBitstreamUnit Struct Reference

Coded bitstream unit structure. More...

#include <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...
 
voidcontent
 Pointer to the decomposed form of this unit. More...
 
int content_external
 Whether the content was supplied externally. 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 61 of file cbs.h.

Field Documentation

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

Referenced by cbs_h2645_assemble_fragment(), 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(), and ff_cbs_insert_unit_data().

size_t CodedBitstreamUnit::data_size

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

Definition at line 77 of file cbs.h.

Referenced by cbs_h2645_assemble_fragment(), 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(), and ff_cbs_insert_unit_data().

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

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

void* CodedBitstreamUnit::content
int CodedBitstreamUnit::content_external

Whether the content was supplied externally.

If so, it should not be freed when freeing the unit.

Definition at line 98 of file cbs.h.

Referenced by cbs_unit_uninit(), and ff_cbs_insert_unit_content().


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