FFmpeg
|
Go to the source code of this file.
Functions | |
int | ff_vvc_annexb2mp4 (AVIOContext *pb, const uint8_t *buf_in, int size, int filter_ps, int *ps_count) |
Writes Annex B formatted H.266/VVC NAL units to the provided AVIOContext. More... | |
int | ff_vvc_annexb2mp4_buf (const uint8_t *buf_in, uint8_t **buf_out, int *size, int filter_ps, int *ps_count) |
Writes Annex B formatted H.266/VVC NAL units to a data buffer. More... | |
int | ff_isom_write_vvcc (AVIOContext *pb, const uint8_t *data, int size, int ps_array_completeness) |
Writes H.266/VVC extradata (parameter sets, declarative SEI NAL units) to the provided AVIOContext. More... | |
internal header for H.266/VVC (de)muxer utilities
Definition in file vvc.h.
int ff_vvc_annexb2mp4 | ( | AVIOContext * | pb, |
const uint8_t * | buf_in, | ||
int | size, | ||
int | filter_ps, | ||
int * | ps_count | ||
) |
Writes Annex B formatted H.266/VVC NAL units to the provided AVIOContext.
The NAL units are converted to an MP4-compatible format (start code prefixes are replaced by 4-byte size fields, as per ISO/IEC 14496-15).
If filter_ps is non-zero, any VVC parameter sets found in the input will be discarded, and *ps_count will be set to the number of discarded PS NAL units.
pb | address of the AVIOContext where the data shall be written |
buf_in | address of the buffer holding the input data |
size | size (in bytes) of the input buffer |
filter_ps | whether to write parameter set NAL units to the output (0) or to discard them (non-zero) |
ps_count | address of the variable where the number of discarded parameter set NAL units shall be written, may be NULL |
Definition at line 810 of file vvc.c.
Referenced by ff_mov_write_packet(), and ff_vvc_annexb2mp4_buf().
int ff_vvc_annexb2mp4_buf | ( | const uint8_t * | buf_in, |
uint8_t ** | buf_out, | ||
int * | size, | ||
int | filter_ps, | ||
int * | ps_count | ||
) |
Writes Annex B formatted H.266/VVC NAL units to a data buffer.
The NAL units are converted to an MP4-compatible format (start code prefixes are replaced by 4-byte size fields, as per ISO/IEC 14496-15).
If filter_ps is non-zero, any VVC parameter sets found in the input will be discarded, and *ps_count will be set to the number of discarded PS NAL units.
On success, *size holds the size (in bytes) of the output data buffer.
buf_in | address of the buffer holding the input data |
size | address of the variable holding the size (in bytes) of the input buffer (on input) and of the output buffer (on success) |
buf_out | on success, address of the variable holding the address of the output buffer |
filter_ps | whether to write parameter set NAL units to the output (0) or to discard them (non-zero) |
ps_count | address of the variable where the number of discarded parameter set NAL units shall be written, may be NULL |
Definition at line 858 of file vvc.c.
Referenced by ff_mov_write_packet().
int ff_isom_write_vvcc | ( | AVIOContext * | pb, |
const uint8_t * | data, | ||
int | size, | ||
int | ps_array_completeness | ||
) |
Writes H.266/VVC extradata (parameter sets, declarative SEI NAL units) to the provided AVIOContext.
If the extradata is Annex B format, it gets converted to vvcC format before writing.
pb | address of the AVIOContext where the vvcC shall be written |
data | address of the buffer holding the data needed to write the vvcC |
size | size (in bytes) of the data buffer |
ps_array_completeness | whether all parameter sets are in the vvcC (1) or there may be additional parameter sets in the bitstream (0) |
Definition at line 879 of file vvc.c.
Referenced by mov_write_vvcc_tag().