#include <psptypes.h>
Go to the source code of this file.
#define SCE_MPEG_AVC_FORMAT_4444 2 |
#define SCE_MPEG_AVC_FORMAT_5551 1 |
#define SCE_MPEG_AVC_FORMAT_5650 0 |
#define SCE_MPEG_AVC_FORMAT_8888 3 |
#define SCE_MPEG_AVC_FORMAT_DEFAULT -1 |
typedef SceInt32(*) sceMpegRingbufferCB(ScePVoid pData, SceInt32 iNumPackets, ScePVoid pParam) |
Ringbuffer callback.
typedef SceVoid SceMpegStream |
some structure
sceMpegAtracDecode
Mpeg | - SceMpeg handle | |
pAu | - video Au | |
pBuffer | - buffer that will contain the decoded frame | |
iInit | - set this to 1 on first call |
SceInt32 sceMpegAvcDecode | ( | SceMpeg * | Mpeg, | |
SceMpegAu * | pAu, | |||
SceInt32 | iFrameWidth, | |||
ScePVoid | pBuffer, | |||
SceInt32 * | iInit | |||
) |
sceMpegAvcDecode
Mpeg | - SceMpeg handle | |
pAu | - video Au | |
iFrameWidth | - output buffer width, set to 512 if writing to framebuffer | |
pBuffer | - buffer that will contain the decoded frame | |
iInit | - will be set to 0 on first call, then 1 |
SceInt32 sceMpegAvcDecodeMode | ( | SceMpeg * | Mpeg, | |
SceMpegAvcMode * | pMode | |||
) |
sceMpegAvcDecodeMode
Mpeg | - SceMpeg handle | |
pMode | - pointer to SceMpegAvcMode struct defining the decode mode (pixelformat) |
SceInt32 sceMpegAvcDecodeStop | ( | SceMpeg * | Mpeg, | |
SceInt32 | iFrameWidth, | |||
ScePVoid | pBuffer, | |||
SceInt32 * | iStatus | |||
) |
sceMpegAvcDecodeStop
Mpeg | - SceMpeg handle | |
iFrameWidth | - output buffer width, set to 512 if writing to framebuffer | |
pBuffer | - buffer that will contain the decoded frame | |
iFrameNum | - frame number |
SceInt32 sceMpegCreate | ( | SceMpeg * | Mpeg, | |
ScePVoid | pData, | |||
SceInt32 | iSize, | |||
SceMpegRingbuffer * | Ringbuffer, | |||
SceInt32 | iFrameWidth, | |||
SceInt32 | iUnk1, | |||
SceInt32 | iUnk2 | |||
) |
sceMpegCreate
Mpeg | - will be filled | |
pData | - pointer to allocated memory of size = sceMpegQueryMemSize() | |
iSize | - size of data, should be = sceMpegQueryMemSize() | |
Ringbuffer | - a ringbuffer | |
iFrameWidth | - display buffer width, set to 512 if writing to framebuffer | |
iUnk1 | - unknown, set to 0 | |
iUnk2 | - unknown, set to 0 |
SceVoid sceMpegFinish | ( | ) |
sceMpegFinish
SceInt32 sceMpegGetAtracAu | ( | SceMpeg * | Mpeg, | |
SceMpegStream * | pStream, | |||
SceMpegAu * | pAu, | |||
ScePVoid | pUnk | |||
) |
sceMpegGetAtracAu
Mpeg | - SceMpeg handle | |
pStream | - associated stream | |
pAu | - will contain pointer to Au | |
pUnk | - unknown |
SceInt32 sceMpegGetAvcAu | ( | SceMpeg * | Mpeg, | |
SceMpegStream * | pStream, | |||
SceMpegAu * | pAu, | |||
SceInt32 * | iUnk | |||
) |
sceMpegGetAvcAu
Mpeg | - SceMpeg handle | |
pStream | - associated stream | |
pAu | - will contain pointer to Au | |
iUnk | - unknown |
SceInt32 sceMpegInit | ( | ) |
sceMpegInit
sceMpegInitAu
Mpeg | - SceMpeg handle | |
pEsBuffer | - prevously allocated Es buffer | |
pAu | - will contain pointer to Au |
sceMpegMallocAvcEsBuf
sceMpegQueryAtracEsSize
Mpeg | - SceMpeg handle | |
iEsSize | - will contain size of Es | |
iOutSize | - will contain size of decoded data |
SceInt32 sceMpegQueryMemSize | ( | int | iUnk | ) |
sceMpegQueryMemSize
iUnk | - Unknown, set to 0 |
sceMpegQueryStreamOffset
Mpeg | - SceMpeg handle | |
pBuffer | - pointer to file header | |
iOffset | - will contain stream offset in bytes, usually 2048 |
sceMpegQueryStreamSize
pBuffer | - pointer to file header | |
iSize | - will contain stream size in bytes |
SceMpegStream* sceMpegRegistStream | ( | SceMpeg * | Mpeg, | |
SceInt32 | iStreamID, | |||
SceInt32 | iUnk | |||
) |
sceMpegRegistStream
Mpeg | - SceMpeg handle | |
iStreamID | - stream id, 0 for video, 1 for audio | |
iUnk | - unknown, set to 0 |
SceInt32 sceMpegRingbufferAvailableSize | ( | SceMpegRingbuffer * | Ringbuffer | ) |
sceMpegQueryMemSize
Ringbuffer | - pointer to a sceMpegRingbuffer struct |
SceInt32 sceMpegRingbufferConstruct | ( | SceMpegRingbuffer * | Ringbuffer, | |
SceInt32 | iPackets, | |||
ScePVoid | pData, | |||
SceInt32 | iSize, | |||
sceMpegRingbufferCB | Callback, | |||
ScePVoid | pCBparam | |||
) |
sceMpegRingbufferConstruct
Ringbuffer | - pointer to a sceMpegRingbuffer struct | |
iPackets | - number of packets in the ringbuffer | |
pData | - pointer to allocated memory | |
iSize | - size of allocated memory, shoud be sceMpegRingbufferQueryMemSize(iPackets) | |
Callback | - ringbuffer callback | |
pCBparam | - param passed to callback |
SceVoid sceMpegRingbufferDestruct | ( | SceMpegRingbuffer * | Ringbuffer | ) |
sceMpegRingbufferDestruct
Ringbuffer | - pointer to a sceMpegRingbuffer struct |
SceInt32 sceMpegRingbufferPut | ( | SceMpegRingbuffer * | Ringbuffer, | |
SceInt32 | iNumPackets, | |||
SceInt32 | iAvailable | |||
) |
sceMpegRingbufferPut
Ringbuffer | - pointer to a sceMpegRingbuffer struct | |
iNumPackets | - num packets to put into the ringbuffer | |
iAvailable | - free packets in the ringbuffer, should be sceMpegRingbufferAvailableSize() |
sceMpegRingbufferQueryMemSize
iPackets | - number of packets in the ringbuffer |
SceVoid sceMpegUnRegistStream | ( | SceMpeg | Mpeg, | |
SceMpegStream * | pStream | |||
) |
sceMpegUnRegistStream
Mpeg | - SceMpeg handle | |
pStream | - pointer to stream |