oa::video::parse_h264_slice_header

Parse one raw H.264 coded-slice NAL using its resolved SPS and PPS. The returned picture-order-count field contains the coded LSB for POC type zero. POC types one and two require prior-picture state and therefore return None; the decoder session must derive the final POC rather than inventing a stateless approximation.

FnRust public API

Function Documentation

pub fn parse_h264_slice_header( nal: &[u8], sps: &H264SequenceParameterSet, pps: &H264PictureParameterSet ) -> Result<H264SliceHeader>
Parse one raw H.264 coded-slice NAL using its resolved SPS and PPS. The returned picture-order-count field contains the coded LSB for POC type zero. POC types one and two require prior-picture state and therefore return None; the decoder session must derive the final POC rather than inventing a stateless approximation.