Mobiclip Library (MO) API Function List

Header File

mo/Mobiclip.h

Description

The Mobiclip Library (MO) enables you to play MO movies on the Wii.

Library Functions

Make / Initialization / Deinitialization
MOInit Initializes the library.
MOUninit Deinitializes the library.
MOGetTotalInstances Get the current number of MOInstance objects created.
MOCreateInstance Create a movie handle instance.
MODestroyInstance Destroy a movie handle instance.
MOOpen Open a movie.
MOClose Close a movie.
MOMemStat Prints memory usage statistics of Mobiclip library to the debug console output.
Playback / Movie status
MOSetUserData Set the user data of a movie.
MOGetUserData Get the user data of a movie.
MORun Run the library (needed when it is in a busy/waiting state).
MODecode Decode one audio and one video frame.
MOGetNumberOfBufferedFrames Get the number of buffered video frames.
MOGetDecodedFrameNumber Get the last decoded frame number.
MOGetDisplayedFrameNumber Get the last displayed frame number.
MOGetStatus Get library status.
Movie information retrieval
MOGetVideoWidth Get video width.
MOGetVideoHeight Get video height.
MOGetVideoFps256 Get video framerate.
MOGetTotalFrames Get the number of video frames.
MOGetAudioFrequency Get the audio frequency.
MOGetAudioChannels Get the number of audio channels.
MOGetAudioTracks Get the number of audio tracks in the movie.
Video processing
MOGetRGBImage Process and blit one video frame as RGB textures.
MOGetYUYVImage Process and blit one video frame as YUYV linear plane.
MOGetYUVImage Process and blit one video frame as YUV planes.
MOSkipImage Discard an image.
MOSetVideoFormat Set output image format/texture format.
MOGetVideoFormat Get the current image format/texture format.
MOSetQualityEnhancement Set Quality Enhancement level.
MOGetQualityEnhancement Get Quality Enhancement level.
MOSetAlphaValue Set texture alpha value.
MOGetAlphaValue Get texture alpha value.
Audio processing
MOGetAudioPacket Get one audio frame.
MOSkipAudioPacket Discard one audio frame.
MOGetNextAudioPacketSize Get the size of the next audio frame.
MOGetActiveAudioTrack Get the active audio track index.
MOSetActiveAudioTrack Activates the wanted audio track.
MOGetAudioChannelOrdering Get the order in witch left and right PCM channels are interleaved.
MOSetAudioChannelOrdering Selects the order in witch left and right PCM channels are interleaved.
Seeking
MOGoToNextIntra Seek to next intra frame.
MOGoToPreviousIntra Seek to previous intra frame.
MOGoToIFrame Seek to a given intra frame.
MOGetPreviousIntraFrameNumber Retrieve the intra preceding a give frame.

Variable Types and Structures

Types
MOResult Library return values
MOStatus Library status
MOVideoFrameFormat Output texture format
MO_MEDIUM_STATE Medium status
MOAudioChannelOrdering Various ways of interleaving left and right PCM audio channels in case of stereo
MOQualityEnhancementLevel Quality Enhancement level
MOTexture Texture descriptor
MO_DEBUG_FUNCS Debug functions
MO_MEDIUM_CONTROL Medium control block
MOBICLIP_MOVIE_MAJOR Major version number of the library
MOBICLIP_MOVIE_MINOR Minor version number of the library
MOBICLIP_MOVIE_PATCH Patch version of the library
MO_MAX_BUFFERED_FRAME Size of the queues that hold decoded video/sound
MO_MEMORY_NEEDED_VGA Gross estimate of memory needed by the Mobiclip API to perform single VGA video playback
MO_MEMORY_NEEDED_QVGA Gross estimate of memory needed by the Mobiclip API to perform single QVGA video playback