benilla-re systems structs docs

ReadMovieAvi

function · ui · primitive

Address
0x78c360 · 1080 bytes, up to 0x78c797
Meaning
Reads the movie AVI file into the video and audio buffers
Confidence
verified, proof one
Finding
ui/movieframe#the-file
Test
ui::movie_avi_read_whole

Finding: The file in ui: the movie frame

0x78c360(name) opens <name>.avi. It requires the RIFF and AVI tags, reads the hdrl list and the idx1 index, and skips every other chunk by its size, movi included. Each vids stream header gives the frame rate (dwRate / dwScale, a float at +0x33c) and frame count (dwLength, +0x348), the last winning. A strf after a video header and before any audio header gives the width and height (+0x340, +0x344). An idx1 entry whose chunk id has d as its third letter (00dc, 00db) is video and one with w as its third (01wb) is audio; the entry's offset counts from the movi list's type field. Video goes to one buffer as size and data, audio to a second.

The derivation is in the doc.

Callers 1

Callees 8

Calls and jumps by a bare address, from tables/calls.tsv.