16#include <compy/priv/compiler_attrs.h>
21#define COMPY_H264_NAL_HEADER_SIZE sizeof(uint8_t)
28#define COMPY_H264_FU_HEADER_SIZE \
29 ( sizeof(uint8_t) + sizeof(uint8_t))
118 bool is_last_fragment);
123#define COMPY_H264_NAL_UNIT_UNSPECIFIED 0
128#define COMPY_H264_NAL_UNIT_CODED_SLICE_NON_IDR 1
133#define COMPY_H264_NAL_UNIT_CODED_SLICE_DATA_PARTITION_A 2
138#define COMPY_H264_NAL_UNIT_CODED_SLICE_DATA_PARTITION_B 3
143#define COMPY_H264_NAL_UNIT_CODED_SLICE_DATA_PARTITION_C 4
148#define COMPY_H264_NAL_UNIT_CODED_SLICE_IDR 5
153#define COMPY_H264_NAL_UNIT_SEI 6
158#define COMPY_H264_NAL_UNIT_SPS 7
163#define COMPY_H264_NAL_UNIT_PPS 8
168#define COMPY_H264_NAL_UNIT_AUD 9
173#define COMPY_H264_NAL_UNIT_END_OF_SEQUENCE 10
178#define COMPY_H264_NAL_UNIT_END_OF_STREAM 11
183#define COMPY_H264_NAL_UNIT_FILLER 12
188#define COMPY_H264_NAL_UNIT_SPS_EXT 13
193#define COMPY_H264_NAL_UNIT_PREFIX 14
198#define COMPY_H264_NAL_UNIT_SUBSET_SPS 15
203#define COMPY_H264_NAL_UNIT_DPS 16
208#define COMPY_H264_NAL_UNIT_CODED_SLICE_AUX 19
213#define COMPY_H264_NAL_UNIT_CODED_SLICE_EXT 20
219#define COMPY_H264_NAL_UNIT_CODED_SLICE_EXT_DEPTH_VIEW 21
bool Compy_H264NalHeader_is_vps(Compy_H264NalHeader self) COMPY_PRIV_MUST_USE
Checks whether self is VPS.
Definition h264.c:18
bool Compy_H264NalHeader_is_sps(Compy_H264NalHeader self) COMPY_PRIV_MUST_USE
Checks whether self is SPS.
Definition h264.c:23
void Compy_H264NalHeader_write_fu_header(Compy_H264NalHeader self, uint8_t buffer[restrict], bool is_first_fragment, bool is_last_fragment)
Writes a FU header of self to buffer.
Definition h264.c:39
bool Compy_H264NalHeader_is_pps(Compy_H264NalHeader self) COMPY_PRIV_MUST_USE
Checks whether self is PPS.
Definition h264.c:27
uint8_t Compy_H264NalHeader_serialize(Compy_H264NalHeader self) COMPY_PRIV_MUST_USE
Converts self to a single octet representation.
Definition h264.c:13
Compy_H264NalHeader Compy_H264NalHeader_parse(uint8_t byte_header) COMPY_PRIV_MUST_USE
Parses an H.264 NAL header from byte_header.
Definition h264.c:5
bool Compy_H264NalHeader_is_coded_slice_idr(Compy_H264NalHeader self) COMPY_PRIV_MUST_USE
Checks whether self is a coded slice IDR.
Definition h264.c:31
bool Compy_H264NalHeader_is_coded_slice_non_idr(Compy_H264NalHeader self) COMPY_PRIV_MUST_USE
Checks whether self is a coded slice non-IDR.
Definition h264.c:35
An H.264 NAL unit.
Definition h264.h:54
Compy_H264NalHeader header
The NAL header of this NAL unit.
Definition h264.h:58
U8Slice99 payload
The payload data of this NAL unit (not including the header).
Definition h264.h:63