#include <mo/Mobiclip.h>MOResult MOGetYUYVImage(MOInstance* pInstance, u8* pVideoBuffer, u32 strideInBytes);| pInstance | Instance of the concerned movie. |
| pVideoBuffer | Pointer to XFB buffer in YUYV packed format. |
| strideInBytes | Stride for the YUYV buffer. |
MO_RESULT_OK |
Success. |
MO_RESULT_NULL |
MOInstance pointer is NULL. |
MO_RESULT_NOT_OPENED |
A successfull call to MOOpen function have not been done before, or open process not complete yet. |
MO_RESULT_NO_VALID_IMAGE |
There are no images available in the image queue. |
That function will pop one image from the library decoded image queue, convert it to YUYV_LINEAR and put the result in the YUYV linear buffer.
Use that function if you want to put the video image directly in an XFB buffer.
The receiving buffers must be able to contain the whole decoded image (no partial overlap).
When movie resolution is the same as the XFB display buffers this function should be the prefered way to display simple video cut-scenes over MOGetYUVImage and MOGetRGBImage: it is as fast as MOGetYUVImage, faster than MOGetRGBImage and its color output is accurate.
Unlike MOGetYUVImage and MOGetRGBImage functions it does not perform any GX rendering routines.
01/03/2011 Initial version.