Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

SMK

Smacker files carry compressed indexed video, palette changes, and up to seven audio streams.

Overall structure

[Fixed header, 104 bytes]
[Frame size and stream flag tables]
[Huffman trees]
[Compressed frame and audio packets]

The fixed header uses little-endian fields.

OffsetSizeTypeNameDescription
04[u8; 4]signatureSMK2 or SMK4.
44u32widthSource pixel width.
84u32heightSource pixel height.
124u32framesAuthored frame count, excluding an optional ring frame.
164i32timingPositive values are milliseconds; negative values are hundredths of a millisecond.
204u32flagsBit 0 adds a ring frame; bits 1 or 2 request doubled display height.

INTRO.SMK has 640 by 240 source pixels, 6895 authored frames, timing -6666, and doubled display height. Its playback rate is approximately 15.0015 frames per second, with stereo 22050 Hz Smacker audio.

External references