Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

Module stream

Module stream 

Source
Expand description

STR video sectors: the 32-byte chunk header and frame reassembly.

Every video sector’s 2048 user bytes are a 32-byte header plus 2016 bytes of one frame’s bitstream:

BytesField
0..20x0160
2..40x8001 (MDEC video chunk)
4..6chunk index within the frame
6..8chunks in the frame
8..12frame number (1-based)
12..16frame bitstream size in bytes
16..18width
18..20height
20..28copy of the BS frame header

Interleaved XA audio sectors never reach this layer: with the drive in XA mode they go straight to the SPU and raise no data IRQ.

Structs§

Chunk
Parsed chunk header of one video sector.
Frame
A frame whose every chunk has arrived.
FrameAssembler
Collects one frame’s chunks into a caller-owned buffer.

Constants§

CHUNK_HEADER_BYTES
Bytes of chunk header at the start of each video sector.
CHUNK_PAYLOAD_BYTES
Bitstream bytes carried per video sector.
MAX_CHUNKS
Most chunks per frame FrameAssembler tracks (a 32-bit mask). At 2016 bytes each that is 64 KB, far above any frame a 2x stream carries.