pub fn parse_h264_slice_header(
sample: &[u8],
sps: &H264SpsInfo,
pps: &H264PpsInfo,
) -> Option<H264SliceHeader>Expand description
Parse the first slice-NAL in sample, using the SPS + PPS for
branch predicates. The NAL header’s nal_unit_type gates which
slice types we accept: 1 (non-IDR), 5 (IDR), 19 (auxiliary coded
slice) all share the same syntax. Returns None when the sample
contains no slice NAL or the SPS/PPS didn’t provide the required
context (e.g., SPS pic_order_cnt_type was None so we can’t
branch into the POC reads).