GstCodecParsers.H264NalUnit

Fields

Name

Type

Access

Description

data

int

r/w

The data array from which the NAL unit has been parsed, into which the offset and sc_offset apply.

extension_type

int

r/w

the extension type for prefix NAL/MVC/SVC

header_bytes

int

r/w

The size of the NALU header in bytes. The NALU header is the 1-byte type code, and for extension / prefix NALs includes the extension header bytes. offset + header_bytes is therefore the first byte of the actual packet payload.

idr_pic_flag

int

r/w

calculated idr_pic_flag

offset

int

r/w

The offset of the first byte of the NAL unit header, just after the start code.

ref_idc

int

r/w

not equal to 0 specifies that the content of the NAL unit contains a sequence parameter set, a sequence parameter set extension, a subset sequence parameter set, a picture parameter set, a slice of a reference picture, a slice data partition of a reference picture, or a prefix NAL unit preceding a slice of a reference picture.

sc_offset

int

r/w

The offset of the first byte of the start code of the NAL unit.

size

int

r/w

The size of the NAL unit starting from offset, thus including the header bytes. e.g. type (nal_unit_type), but not the start code.

type

int

r/w

A GstCodecParsers.H264NalUnitType

valid

bool

r/w

If the NAL unit is valid, which means it has already been parsed

Methods

None

Details

class GstCodecParsers.H264NalUnit

Structure defining the NAL unit headers