LoadMovieSubtitles
function · ui · primitive
- Address
0x78cb00· 668 bytes, up to0x78cd9b- Meaning
- Reads the captions of a movie from its subtitle file
- Confidence
- verified, proof one
- Finding
- ui/movieframe#subtitles
Finding: Subtitles in ui: the movie frame
0x78cb00 reads <name>.sbt, skipping a UTF-8 mark, and takes its lines. A line starting with 0 is a caption time line of the form HH:MM:SS:FF - HH:MM:SS:FF, and the line after it is the caption text.
Each time is hours, minutes and seconds in milliseconds plus the frame field times 41 ms. A caption is the start, the end and a copy of the text (12 bytes). While a caption has not ended
the frame holds its index; when its end passes it runs OnMovieHideSubtitle, and when subtitles are enabled, or the movie has no audio, the caption whose range holds the clock runs OnMovieShowSubtitle with the text.
The derivation is in the doc.
Callers 1
Callees 9
- SMemAlloc storm
- SMemReAlloc storm
- SMemFree storm
- SFile::LoadByName storm
- SFile::Unload storm
- SStrDupA storm
- SStrPrintf storm
- SStrToInt storm
- SStrTokenize storm
Calls and jumps by a bare address, from tables/calls.tsv.