#include <mo/Mobiclip.h>MOResult MOGetYUVImage(MOInstance* pInstance, u8* pVideoBuffer[3], u32 strideInBytes[3]);| pInstance | Instance of the concerned movie. |
| pVideoBuffer | Pointers to Y,U and V buffers. |
| strideInBytes | Stride for the Y, U and V buffers. |
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 YUV_TILED and put the result in the 3 buffers.
The receiving buffers must be able to contain the whole decoded image (no partial overlap).
When movie resolution is different than the XFB display buffers this function should be the prefered way to display simple video cut-scenes over MOGetRGBImage: it is faster and color output is accurate.
MOGetYUYVImage function should be used in cut-scenes when movie resolution is the same as the XFB display buffers.
MOGetRGBImage function should be used in specific cases like video blitting into an RGBA texture to be used in-game.
01/03/2011 Updated description about MOGetRGBImage typical usage, added description about MOGetYUYVImage usage.
02/24/2010 Description about MO_RESULT_NO_VALID_IMAGE return value added. Removed typo errors.
03/26/2009 Parameter renaming done.
01/19/2009 Added description about MOGetRGBImage and MOGetYUVImage typical usage.
07/29/2008 Initial version.