Functions
MGLV_Init
inline void MGLV_Init(
MGLV_EventCallback cb
)

Initialize the movie player.

Parameters
cb
MGLV_EventCallback

Event callback function

MGLV_SetTimer

Set frame duration in number of screen refresh.

Parameters
timer

Duration of a frame

MGLV_SetLoop
inline void MGLV_SetLoop(
bool loop
)

Set looping flag.

Parameters
loop
bool

TRUE if movie should loop when reaching the end

MGLV_IsLooping
inline bool MGLV_IsLooping()

Get looping flag.

Parameters

FALSE if the loop flag is set

MGLV_Play
bool MGLV_Play(
const voidaddr
)

Start movie playback.

Parameters
addr
const void*

Address of the movie data

Returns

TRUE if initialization is successful

MGLV_VBlankHandler
void MGLV_VBlankHandler()

Function to be called in the interruption handler

MGLV_Decode
void MGLV_Decode()

Decode a frame of movie

MGLV_GetHeaderType
inline enum MGLV_HEADER_MODE MGLV_GetHeaderType()

Get the initialized movie's header type.  Note: MGLV_Init() function must be called first.

Return

Header type MGLV_HEADER_NONE, MGLV_HEADER_FULL or MGLV_HEADER_SHORT.

MGLV_GetVersion
inline u8 MGLV_GetVersion()

Get the initialized movie's format version.  Note: MGLV_Init() function must be called first.

Return

Format version (0-15).

MGLV_GetSegmentSize
inline u8 MGLV_GetSegmentSize()

Get the initialized movie's segment size.  Note: MGLV_Init() function must be called first.

Return

Segment size in kilo-bytes.