pspmpeg.h File Reference

#include <psptypes.h>

Go to the source code of this file.

Data Structures

struct  SceMpegRingbuffer
struct  SceMpegAu
struct  SceMpegAvcMode

Defines

#define SCE_MPEG_AVC_FORMAT_DEFAULT   -1
#define SCE_MPEG_AVC_FORMAT_5650   0
#define SCE_MPEG_AVC_FORMAT_5551   1
#define SCE_MPEG_AVC_FORMAT_4444   2
#define SCE_MPEG_AVC_FORMAT_8888   3

Typedefs

typedef ScePVoid SceMpeg
 points to "LIBMPEG"
typedef SceVoid SceMpegStream
 some structure
typedef SceInt32(*) sceMpegRingbufferCB (ScePVoid pData, SceInt32 iNumPackets, ScePVoid pParam)
 Ringbuffer callback.

Functions

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
SceMpegStreamsceMpegRegistStream (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


Define Documentation

#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 Documentation

typedef ScePVoid SceMpeg

points to "LIBMPEG"

typedef SceInt32(*) sceMpegRingbufferCB(ScePVoid pData, SceInt32 iNumPackets, ScePVoid pParam)

Ringbuffer callback.

typedef SceVoid SceMpegStream

some structure


Function Documentation

SceInt32 sceMpegAtracDecode ( SceMpeg Mpeg,
SceMpegAu pAu,
ScePVoid  pBuffer,
SceInt32  iInit 
)

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.

SceInt32 sceMpegAvcDecode ( SceMpeg Mpeg,
SceMpegAu pAu,
SceInt32  iFrameWidth,
ScePVoid  pBuffer,
SceInt32 iInit 
)

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.

SceInt32 sceMpegAvcDecodeMode ( SceMpeg Mpeg,
SceMpegAvcMode pMode 
)

sceMpegAvcDecodeMode

Parameters:
Mpeg - SceMpeg handle
pMode - pointer to SceMpegAvcMode struct defining the decode mode (pixelformat)
Returns:
0 if success.

SceInt32 sceMpegAvcDecodeStop ( SceMpeg Mpeg,
SceInt32  iFrameWidth,
ScePVoid  pBuffer,
SceInt32 iStatus 
)

sceMpegAvcDecodeStop

Parameters:
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
Returns:
0 if success.

SceInt32 sceMpegCreate ( SceMpeg Mpeg,
ScePVoid  pData,
SceInt32  iSize,
SceMpegRingbuffer Ringbuffer,
SceInt32  iFrameWidth,
SceInt32  iUnk1,
SceInt32  iUnk2 
)

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.

SceVoid sceMpegDelete ( SceMpeg Mpeg  ) 

sceMpegDelete

Parameters:
Mpeg - SceMpeg handle

SceVoid sceMpegFinish (  ) 

sceMpegFinish

SceInt32 sceMpegFlushAllStream ( SceMpeg Mpeg  ) 

sceMpegFlushAllStreams

Returns:
0 if success.

SceVoid sceMpegFreeAvcEsBuf ( SceMpeg Mpeg,
ScePVoid  pBuf 
)

sceMpegFreeAvcEsBuf

SceInt32 sceMpegGetAtracAu ( SceMpeg Mpeg,
SceMpegStream pStream,
SceMpegAu pAu,
ScePVoid  pUnk 
)

sceMpegGetAtracAu

Parameters:
Mpeg - SceMpeg handle
pStream - associated stream
pAu - will contain pointer to Au
pUnk - unknown
Returns:
0 if success.

SceInt32 sceMpegGetAvcAu ( SceMpeg Mpeg,
SceMpegStream pStream,
SceMpegAu pAu,
SceInt32 iUnk 
)

sceMpegGetAvcAu

Parameters:
Mpeg - SceMpeg handle
pStream - associated stream
pAu - will contain pointer to Au
iUnk - unknown
Returns:
0 if success.

SceInt32 sceMpegInit (  ) 

sceMpegInit

Returns:
0 if success.

SceInt32 sceMpegInitAu ( SceMpeg Mpeg,
ScePVoid  pEsBuffer,
SceMpegAu pAu 
)

sceMpegInitAu

Parameters:
Mpeg - SceMpeg handle
pEsBuffer - prevously allocated Es buffer
pAu - will contain pointer to Au
Returns:
0 if success.

ScePVoid sceMpegMallocAvcEsBuf ( SceMpeg Mpeg  ) 

sceMpegMallocAvcEsBuf

Returns:
0 if error else pointer to buffer.

SceInt32 sceMpegQueryAtracEsSize ( SceMpeg Mpeg,
SceInt32 iEsSize,
SceInt32 iOutSize 
)

sceMpegQueryAtracEsSize

Parameters:
Mpeg - SceMpeg handle
iEsSize - will contain size of Es
iOutSize - will contain size of decoded data
Returns:
0 if success.

SceInt32 sceMpegQueryMemSize ( int  iUnk  ) 

sceMpegQueryMemSize

Parameters:
iUnk - Unknown, set to 0
Returns:
< 0 if error else decoder data size.

SceInt32 sceMpegQueryStreamOffset ( SceMpeg Mpeg,
ScePVoid  pBuffer,
SceInt32 iOffset 
)

sceMpegQueryStreamOffset

Parameters:
Mpeg - SceMpeg handle
pBuffer - pointer to file header
iOffset - will contain stream offset in bytes, usually 2048
Returns:
0 if success.

SceInt32 sceMpegQueryStreamSize ( ScePVoid  pBuffer,
SceInt32 iSize 
)

sceMpegQueryStreamSize

Parameters:
pBuffer - pointer to file header
iSize - will contain stream size in bytes
Returns:
0 if success.

SceMpegStream* sceMpegRegistStream ( SceMpeg Mpeg,
SceInt32  iStreamID,
SceInt32  iUnk 
)

sceMpegRegistStream

Parameters:
Mpeg - SceMpeg handle
iStreamID - stream id, 0 for video, 1 for audio
iUnk - unknown, set to 0
Returns:
0 if error.

SceInt32 sceMpegRingbufferAvailableSize ( SceMpegRingbuffer Ringbuffer  ) 

sceMpegQueryMemSize

Parameters:
Ringbuffer - pointer to a sceMpegRingbuffer struct
Returns:
< 0 if error else number of free packets in the ringbuffer.

SceInt32 sceMpegRingbufferConstruct ( SceMpegRingbuffer Ringbuffer,
SceInt32  iPackets,
ScePVoid  pData,
SceInt32  iSize,
sceMpegRingbufferCB  Callback,
ScePVoid  pCBparam 
)

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.

SceVoid sceMpegRingbufferDestruct ( SceMpegRingbuffer Ringbuffer  ) 

sceMpegRingbufferDestruct

Parameters:
Ringbuffer - pointer to a sceMpegRingbuffer struct

SceInt32 sceMpegRingbufferPut ( SceMpegRingbuffer Ringbuffer,
SceInt32  iNumPackets,
SceInt32  iAvailable 
)

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.

SceInt32 sceMpegRingbufferQueryMemSize ( SceInt32  iPackets  ) 

sceMpegRingbufferQueryMemSize

Parameters:
iPackets - number of packets in the ringbuffer
Returns:
< 0 if error else ringbuffer data size.

SceVoid sceMpegUnRegistStream ( SceMpeg  Mpeg,
SceMpegStream pStream 
)

sceMpegUnRegistStream

Parameters:
Mpeg - SceMpeg handle
pStream - pointer to stream


Generated on Tue Jul 24 15:21:24 2007 for PSPSDK-Rev2272 by  doxygen 1.5.2