Skip to main content

av1_tile_group_offset

Function av1_tile_group_offset 

Source
pub fn av1_tile_group_offset(
    sample: &[u8],
    seq: &Av1SequenceHeader,
) -> Option<u32>
Expand description

Locate the byte offset of the first tile_group_obu payload within the sample buffer, used for VkVideoDecodeAV1PictureInfoKHR::pTileOffsets. Two shapes:

  • Separate Frame Header OBU (type 3) + Tile Group OBU (type 4): return the type-4 OBU payload start.
  • Frame OBU (type 6) (frame header + tile group in one OBU): return frame_OBU_payload_start + tile_group_offset_in_obu where the in-OBU offset comes from parse_av1_frame_header (the byte-aligned position after uncompressed_header).

Returns None when neither shape is found or the parser bails.