MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / nal_unit_parse_header

Function nal_unit_parse_header

libavformat/hevc.c:826–838  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

824}
825
826static void nal_unit_parse_header(GetBitContext *gb, uint8_t *nal_type,
827 uint8_t *nuh_layer_id)
828{
829 skip_bits1(gb); // forbidden_zero_bit
830
831 *nal_type = get_bits(gb, 6);
832 *nuh_layer_id = get_bits(gb, 6);
833
834 /*
835 * nuh_temporal_id_plus1 u(3)
836 */
837 skip_bits(gb, 3);
838}
839
840static int hvcc_array_add_nal_unit(const uint8_t *nal_buf, uint32_t nal_size,
841 HVCCNALUnitArray *array)

Callers 1

hvcc_add_nal_unitFunction · 0.70

Calls 3

skip_bits1Function · 0.85
skip_bitsFunction · 0.85
get_bitsFunction · 0.50

Tested by

no test coverage detected