pub fn parse_sps_dimensions(sps_nal: &[u8]) -> Option<(u32, u32)>Expand description
Coded frame dimensions parsed out of an H.264 SPS NAL (with its NAL header byte).
Walks every field ahead of pic_width_in_mbs_minus1 — including the high-profile
chroma/bit-depth/scaling-list block — and applies the frame-cropping rectangle with the
chroma-format-dependent crop units, so 4:2:0, 4:2:2 and 4:4:4 streams from any of the
project’s encoders all report their true display size.