benilla-re systems structs docs

s_divxInstanceCounter

global · ui

Address
0xcf511c · 4 bytes, up to 0xcf511f
Type
uint32_t
Meaning
Counts the DivX decoder instances created for movie frames
Confidence
verified, proof one
Finding
ui/movieframe#the-decoder

Finding: The decoder in ui: the movie frame

The video is decoded by the imported library DivxDecoder.dll, with InitializeDivxDecoder, SetOutputFormat, DivxDecode and UnInitializeDivxDecoder. 0x78c7a0 numbers a decoder instance (a counter, 0xcf511c), initialises it with the file's width and height and sets its output format to 1. The width must be 1024 or 800, else the start fails. It then allocates the output bitmap for that size, 4 bytes a pixel, and creates one texture per tile: 2 tiles for 1024 wide and 6 for 800 wide. 0x78c990 destroys the instance, frees the buffers and the textures.

The derivation is in the doc.