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