FFmpeg
|
Coded bitstream unit structure. More...
#include <cbs.h>
Data Fields | |
CodedBitstreamUnitType | type |
Codec-specific type of this unit. More... | |
uint8_t * | data |
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... | |
AVBufferRef * | data_ref |
A reference to the buffer containing data. More... | |
void * | content |
Pointer to the decomposed form of this unit. More... | |
AVBufferRef * | content_ref |
If content is reference counted, a reference to the buffer containing content. More... | |
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.
CodedBitstreamUnitType CodedBitstreamUnit::type |
Codec-specific type of this unit.
Definition at line 68 of file cbs.h.
Referenced by av1_frame_merge_filter(), av1_frame_split_filter(), av1_metadata_filter(), av1_metadata_init(), av1_metadata_update_side_data(), av1_parser_parse(), cbs_av1_read_unit(), cbs_h2645_assemble_fragment(), cbs_h2645_replace_ps(), cbs_h264_write_nal_unit(), cbs_h265_read_nal_unit(), cbs_h265_write_nal_unit(), cbs_jpeg_assemble_fragment(), cbs_jpeg_read_unit(), cbs_jpeg_write_segment(), cbs_jpeg_write_unit(), cbs_mpeg2_read_unit(), cbs_mpeg2_write_header(), cbs_mpeg2_write_unit(), cbs_read_fragment_content(), ff_cbs_h264_add_sei_message(), ff_cbs_h264_delete_sei_message(), ff_cbs_insert_unit_content(), ff_cbs_insert_unit_data(), ff_cbs_write_fragment_data(), filter_units_filter(), h264_metadata_filter(), h264_metadata_init(), h264_metadata_update_side_data(), h264_redundant_pps_filter(), h264_redundant_pps_init(), h265_metadata_filter(), h265_metadata_guess_level(), h265_metadata_init(), h265_metadata_update_side_data(), and mpeg2_metadata_update_fragment().
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 75 of file cbs.h.
Referenced by cbs_av1_assemble_fragment(), cbs_av1_read_unit(), cbs_av1_ref_tile_data(), cbs_h2645_assemble_fragment(), cbs_h2645_replace_ps(), cbs_h265_read_nal_unit(), cbs_jpeg_assemble_fragment(), cbs_jpeg_read_unit(), cbs_mpeg2_assemble_fragment(), cbs_mpeg2_read_unit(), cbs_read_fragment_content(), cbs_unit_uninit(), cbs_vp9_assemble_fragment(), cbs_vp9_read_unit(), cbs_write_unit_data(), ff_cbs_alloc_unit_data(), ff_cbs_insert_unit_data(), and ff_cbs_write_fragment_data().
size_t CodedBitstreamUnit::data_size |
The number of bytes in the bitstream (including any padding bits in the final byte).
Definition at line 80 of file cbs.h.
Referenced by av1_frame_split_filter(), cbs_av1_assemble_fragment(), cbs_av1_read_unit(), cbs_av1_ref_tile_data(), cbs_h2645_assemble_fragment(), cbs_h2645_replace_ps(), cbs_h265_read_nal_unit(), cbs_jpeg_assemble_fragment(), cbs_jpeg_read_unit(), cbs_mpeg2_assemble_fragment(), cbs_mpeg2_read_unit(), cbs_unit_uninit(), cbs_vp9_assemble_fragment(), cbs_vp9_read_unit(), cbs_write_unit_data(), ff_cbs_alloc_unit_data(), 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 86 of file cbs.h.
Referenced by cbs_h2645_assemble_fragment(), cbs_unit_uninit(), and cbs_write_unit_data().
AVBufferRef* CodedBitstreamUnit::data_ref |
A reference to the buffer containing data.
Must be set if data is not NULL.
Definition at line 92 of file cbs.h.
Referenced by cbs_av1_read_unit(), cbs_av1_ref_tile_data(), cbs_h2645_replace_ps(), cbs_h265_read_nal_unit(), cbs_jpeg_read_unit(), cbs_mpeg2_read_unit(), cbs_read_fragment_content(), cbs_unit_uninit(), cbs_vp9_read_unit(), ff_cbs_alloc_unit_data(), ff_cbs_insert_unit_data(), and ff_cbs_write_fragment_data().
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 101 of file cbs.h.
Referenced by av1_frame_merge_filter(), av1_frame_split_filter(), av1_metadata_filter(), av1_metadata_init(), av1_metadata_update_side_data(), av1_parser_parse(), cbs_av1_read_unit(), cbs_av1_write_obu(), cbs_h2645_replace_ps(), cbs_h264_write_nal_unit(), cbs_h265_read_nal_unit(), cbs_h265_write_nal_unit(), cbs_jpeg_read_unit(), cbs_jpeg_write_scan(), cbs_jpeg_write_segment(), cbs_mpeg2_read_unit(), cbs_mpeg2_write_slice(), cbs_read_fragment_content(), cbs_unit_uninit(), cbs_vp9_read_unit(), cbs_vp9_write_unit(), ff_cbs_alloc_unit_content(), ff_cbs_h264_add_sei_message(), ff_cbs_h264_delete_sei_message(), ff_cbs_insert_unit_content(), ff_cbs_write_fragment_data(), h264_metadata_filter(), h264_metadata_init(), h264_metadata_update_side_data(), h264_redundant_pps_filter(), h264_redundant_pps_init(), h265_metadata_filter(), h265_metadata_guess_level(), h265_metadata_init(), h265_metadata_update_side_data(), mpeg2_metadata_update_fragment(), and vp9_metadata_filter().
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 106 of file cbs.h.
Referenced by av1_frame_merge_filter(), cbs_av1_read_unit(), cbs_av1_write_obu(), cbs_read_fragment_content(), cbs_unit_uninit(), ff_cbs_alloc_unit_content(), and ff_cbs_insert_unit_content().