FFmpeg
|
Coded bitstream fragment structure, combining one or more units. More...
#include <cbs.h>
Data Fields | |
uint8_t * | data |
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... | |
AVBufferRef * | data_ref |
A reference to the buffer containing data. More... | |
int | nb_units |
Number of units in this fragment. More... | |
int | nb_units_allocated |
Number of allocated units. More... | |
CodedBitstreamUnit * | units |
Pointer to an array of units of length nb_units_allocated. More... | |
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.
uint8_t* CodedBitstreamFragment::data |
Pointer to the bitstream form of this fragment.
May be NULL if the fragment only exists as component units.
Definition at line 127 of file cbs.h.
Referenced by cbs_av1_assemble_fragment(), cbs_av1_split_fragment(), cbs_bsf_update_side_data(), cbs_fill_fragment_data(), cbs_h2645_assemble_fragment(), cbs_h2645_split_fragment(), cbs_jpeg_assemble_fragment(), cbs_jpeg_split_fragment(), cbs_mpeg2_assemble_fragment(), cbs_mpeg2_split_fragment(), cbs_read_data(), cbs_vp9_assemble_fragment(), cbs_vp9_split_fragment(), ff_cbs_fragment_reset(), ff_cbs_write_extradata(), ff_cbs_write_fragment_data(), ff_cbs_write_packet(), vaapi_encode_h264_write_access_unit(), vaapi_encode_h265_write_access_unit(), vaapi_encode_mjpeg_write_image_header(), and vaapi_encode_mpeg2_write_fragment().
size_t CodedBitstreamFragment::data_size |
The number of bytes in the bitstream.
The number of bytes in the bitstream (including any padding bits in the final byte).
Definition at line 134 of file cbs.h.
Referenced by cbs_av1_assemble_fragment(), cbs_av1_split_fragment(), cbs_bsf_update_side_data(), cbs_fill_fragment_data(), cbs_h2645_assemble_fragment(), cbs_h2645_split_fragment(), cbs_jpeg_assemble_fragment(), cbs_jpeg_split_fragment(), cbs_mpeg2_assemble_fragment(), cbs_mpeg2_split_fragment(), cbs_read_data(), cbs_vp9_assemble_fragment(), cbs_vp9_split_fragment(), ff_cbs_fragment_reset(), ff_cbs_write_extradata(), ff_cbs_write_packet(), vaapi_encode_h264_write_access_unit(), vaapi_encode_h265_write_access_unit(), vaapi_encode_mjpeg_write_image_header(), and vaapi_encode_mpeg2_write_fragment().
size_t CodedBitstreamFragment::data_bit_padding |
The number of bits which should be ignored in the final byte.
Definition at line 138 of file cbs.h.
Referenced by cbs_h2645_assemble_fragment(), ff_cbs_fragment_reset(), vaapi_encode_h264_write_access_unit(), vaapi_encode_h265_write_access_unit(), and vaapi_encode_mpeg2_write_fragment().
AVBufferRef* CodedBitstreamFragment::data_ref |
A reference to the buffer containing data.
Must be set if data is not NULL.
Definition at line 144 of file cbs.h.
Referenced by cbs_av1_assemble_fragment(), cbs_av1_split_fragment(), cbs_fill_fragment_data(), cbs_h2645_assemble_fragment(), cbs_h2645_fragment_add_nals(), cbs_jpeg_assemble_fragment(), cbs_jpeg_split_fragment(), cbs_mpeg2_assemble_fragment(), cbs_mpeg2_split_fragment(), cbs_read_data(), cbs_vp9_assemble_fragment(), cbs_vp9_split_fragment(), ff_cbs_fragment_reset(), ff_cbs_write_fragment_data(), and ff_cbs_write_packet().
int CodedBitstreamFragment::nb_units |
Number of units in this fragment.
This may be zero if the fragment only exists in bitstream form and has not been decomposed.
Definition at line 152 of file cbs.h.
Referenced by av1_frame_merge_filter(), av1_metadata_update_fragment(), cbs_av1_assemble_fragment(), cbs_h2645_assemble_fragment(), cbs_h2645_split_fragment(), cbs_insert_unit(), cbs_jpeg_assemble_fragment(), cbs_mpeg2_assemble_fragment(), cbs_read_fragment_content(), cbs_sei_get_unit(), cbs_vp9_assemble_fragment(), ff_cbs_append_unit_data(), ff_cbs_bsf_generic_filter(), ff_cbs_delete_unit(), ff_cbs_fragment_reset(), ff_cbs_insert_unit_content(), ff_cbs_sei_delete_message_type(), ff_cbs_sei_find_message(), ff_cbs_write_fragment_data(), filter_units_filter(), h264_filter(), h264_metadata_insert_aud(), h264_metadata_update_fragment(), h264_redundant_pps_update_fragment(), h265_metadata_guess_level(), h265_metadata_update_fragment(), mpeg2_metadata_update_fragment(), and vp9_metadata_update_fragment().
int CodedBitstreamFragment::nb_units_allocated |
Number of allocated units.
Must always be >= nb_units; designed for internal use by cbs.
Definition at line 159 of file cbs.h.
Referenced by cbs_insert_unit(), and ff_cbs_fragment_free().
CodedBitstreamUnit* CodedBitstreamFragment::units |
Pointer to an array of units of length nb_units_allocated.
Only the first nb_units are valid.
Must be NULL if nb_units_allocated is zero.
Definition at line 167 of file cbs.h.
Referenced by av1_frame_merge_filter(), av1_metadata_update_fragment(), cbs_av1_assemble_fragment(), cbs_h2645_assemble_fragment(), cbs_insert_unit(), cbs_insert_unit_data(), cbs_jpeg_assemble_fragment(), cbs_mpeg2_assemble_fragment(), cbs_read_fragment_content(), cbs_sei_get_unit(), cbs_vp9_assemble_fragment(), ff_cbs_delete_unit(), ff_cbs_fragment_free(), ff_cbs_fragment_reset(), ff_cbs_insert_unit_content(), ff_cbs_sei_delete_message_type(), ff_cbs_sei_find_message(), ff_cbs_write_fragment_data(), filter_units_filter(), h264_filter(), h264_metadata_insert_aud(), h264_metadata_update_fragment(), h264_redundant_pps_update_fragment(), h265_metadata_guess_level(), h265_metadata_update_fragment(), mpeg2_metadata_update_fragment(), and vp9_metadata_update_fragment().