#include <mo/Mobiclip.h>MO_MEDIUM_COOKIE *(*Open)(const void *movie);| movie | Filename or pointer to the structure describing the movie to open. The structure is medium dependant. |
That function is used to ask the medium control block to open a movie.
#include <mo/Mobiclip.h>MO_MEDIUM_STATE (*GetStatus)(MO_MEDIUM_COOKIE* cookie);| cookie | Instance of stream. |
That function returns the current state of a stream. For local medium such as DVD and CNT, it is safe to always return READY.
#include <mo/Mobiclip.h>void (*Close)(MO_MEDIUM_COOKIE* cookie);| cookie | Instance of stream. |
That function closes an opened stream.
#include <mo/Mobiclip.h>s32 (*GetSize)(MO_MEDIUM_COOKIE* cookie);| cookie | Instance of stream. |
Size of the movie in bytes, 0 if unknown
That function returns the size of the movie in bytes or 0 if it cannot be obtained.
#include <mo/Mobiclip.h>s32 (*Tell)(MO_MEDIUM_COOKIE* cookie);| cookie | Instance of stream. |
Current position in bytes into the stream
That function returns the current position in bytes into the stream.
#include <mo/Mobiclip.h>MOResult (*Seek)(MO_MEDIUM_COOKIE* cookie,u32 position);| cookie | Instance of stream. |
| position | Absolute position to seek to. |
That function requests a seek to the position given as parameter.
If the return value is MO_RESULT_FATAL, it means the seek request has been rejected.
If the return value is MO_RESULT_OK, it means the seek request has been accepted. It does not mean that the seek is complete!.
The user has to call GetStatus until it reaches the READY or ERROR states.
#include <mo/Mobiclip.h>s32 (*Read)(MO_MEDIUM_COOKIE* cookie,u8* buffer,u32 size);| cookie | Instance of stream. |
| buffer | Buffer to put data to. |
| size | Number of bytes to read. |
s32
That function requests to read a given number of bytes into a buffer.
The return value is the number of bytes actually read.
The return value can be :
07/29/2008 Initial version.