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

Function nal_unit_parse_header

libavformat/vvc.c:428–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426}
427
428static void nal_unit_parse_header(GetBitContext *gb, uint8_t *nal_type)
429{
430 /*
431 * forbidden_zero_bit u(1)
432 * nuh_reserved_zero_bit u(1)
433 * nuh_layer_id u(6)
434 */
435 skip_bits(gb, 8);
436 *nal_type = get_bits(gb, 5);
437
438 /*
439 * nuh_temporal_id_plus1 u(3)
440 */
441 skip_bits(gb, 3);
442}
443
444static int vvcc_array_add_nal_unit(uint8_t *nal_buf, uint32_t nal_size,
445 uint8_t nal_type, int ps_array_completeness,

Callers 1

vvcc_add_nal_unitFunction · 0.70

Calls 2

skip_bitsFunction · 0.85
get_bitsFunction · 0.50

Tested by

no test coverage detected