vitasdk
Documentation of the vitasdk

Detailed Description

Exports for User.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceAudiodec_stub



Functions

 VITASDK_BUILD_ASSERT_EQ (8, SceAudiodecInitStreamParam)
 
 VITASDK_BUILD_ASSERT_EQ (8, SceAudiodecInitChParam)
 
 VITASDK_BUILD_ASSERT_EQ (8, SceAudiodecInitParam)
 
 VITASDK_BUILD_ASSERT_EQ (0x1C, SceAudiodecInfoAt9)
 
 VITASDK_BUILD_ASSERT_EQ (0xC, SceAudiodecInfoMp3)
 
 VITASDK_BUILD_ASSERT_EQ (0x14, SceAudiodecInfoAac)
 
 VITASDK_BUILD_ASSERT_EQ (0x14, SceAudiodecInfoCelp)
 
 VITASDK_BUILD_ASSERT_EQ (0x1C, SceAudiodecInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x28, SceAudiodecCtrl)
 
SceInt32 sceAudiodecInitLibrary (SceUInt32 codecType, SceAudiodecInitParam *pInitParam)
 
SceInt32 sceAudiodecTermLibrary (SceUInt32 codecType)
 
SceInt32 sceAudiodecCreateDecoder (SceAudiodecCtrl *pCtrl, SceUInt32 codecType)
 
SceInt32 sceAudiodecDeleteDecoder (SceAudiodecCtrl *pCtrl)
 
SceInt32 sceAudiodecDecode (SceAudiodecCtrl *pCtrl)
 
SceInt32 sceAudiodecDecodeNFrames (SceAudiodecCtrl *pCtrl, SceUInt32 nFrames)
 
SceInt32 sceAudiodecDecodeNStreams (SceAudiodecCtrl *pCtrls[], SceUInt32 nStreams)
 
SceInt32 sceAudiodecClearContext (SceAudiodecCtrl *pCtrl)
 
SceInt32 sceAudiodecGetInternalError (SceAudiodecCtrl *pCtrl, SceInt32 *pInternalError)
 
SceInt32 sceAudiodecGetContextSize (SceAudiodecCtrl *pCtrl, SceUInt32 codecType)
 
SceInt32 sceAudiodecCreateDecoderExternal (SceAudiodecCtrl *pCtrl, SceUInt32 codecType, SceUIntVAddr vaContext, SceUInt32 contextSize)
 
SceInt32 sceAudiodecDeleteDecoderExternal (SceAudiodecCtrl *pCtrl, SceUIntVAddr *pvaContext)
 

Macros

#define SCE_AUDIODEC_ALIGNMENT_SIZE   0x100U
 
#define SCE_AUDIODEC_ROUND_UP(size)   ((size + SCE_AUDIODEC_ALIGNMENT_SIZE - 1) & ~(SCE_AUDIODEC_ALIGNMENT_SIZE - 1))
 
#define SCE_AUDIODEC_WORD_LENGTH_16BITS   16
 
#define SCE_AUDIODEC_AT9_MAX_CH_IN_LIBRARY   16
 
#define SCE_AUDIODEC_MP3_MAX_STREAMS   8
 
#define SCE_AUDIODEC_AAC_MAX_STREAMS   8
 
#define SCE_AUDIODEC_CELP_MAX_STREAMS   8
 
#define SCE_AUDIODEC_AT9_MAX_CH_IN_DECODER   2
 
#define SCE_AUDIODEC_MP3_MAX_CH_IN_DECODER   2
 
#define SCE_AUDIODEC_AAC_MAX_CH_IN_DECODER   2
 
#define SCE_AUDIODEC_CELP_MAX_CH_IN_DECODER   1
 
#define SCE_AUDIODEC_AT9_MAX_SAMPLES   256
 
#define SCE_AUDIODEC_MP3_MAX_SAMPLES   1152
 
#define SCE_AUDIODEC_AAC_MAX_SAMPLES   2048
 
#define SCE_AUDIODEC_CELP_MAX_SAMPLES   320
 
#define SCE_AUDIODEC_AT9_MAX_ES_SIZE   1024
 
#define SCE_AUDIODEC_MP3_MAX_ES_SIZE   1441
 
#define SCE_AUDIODEC_AAC_MAX_ES_SIZE   1536
 
#define SCE_AUDIODEC_CELP_MAX_ES_SIZE   24
 
#define SCE_AUDIODEC_AT9_EXTRA_ACCESS_SIZE   0
 
#define SCE_AUDIODEC_MP3_EXTRA_ACCESS_SIZE   0
 
#define SCE_AUDIODEC_AAC_EXTRA_ACCESS_SIZE   0
 
#define SCE_AUDIODEC_CELP_EXTRA_ACCESS_SIZE   0
 
#define SCE_AUDIODEC_AT9_MAX_NFRAMES   8
 
#define SCE_AUDIODEC_MP3_MAX_NFRAMES   1
 
#define SCE_AUDIODEC_AAC_MAX_NFRAMES   1
 
#define SCE_AUDIODEC_CELP_MAX_NFRAMES   1
 
#define SCE_AUDIODEC_AT9_MAX_NSTREAMS   6
 
#define SCE_AUDIODEC_MP3_MAX_NSTREAMS   6
 
#define SCE_AUDIODEC_AAC_MAX_NSTREAMS   6
 
#define SCE_AUDIODEC_CELP_MAX_NSTREAMS   7
 
#define SCE_AUDIODEC_CELP_MPE   0
 
#define SCE_AUDIODEC_CELP_SAMPLING_RATE_8KHZ   8000
 

Data Structure Documentation

◆ SceAudiodecInitStreamParam

struct SceAudiodecInitStreamParam
Data Fields
SceUInt32 size
SceUInt32 totalStreams

◆ SceAudiodecInitChParam

struct SceAudiodecInitChParam
Data Fields
SceUInt32 size
SceUInt32 totalCh

◆ SceAudiodecInitParam

◆ SceAudiodecInfoAt9

struct SceAudiodecInfoAt9
Data Fields
SceUInt32 size
SceUInt8 configData[4]
SceUInt32 ch
SceUInt32 bitRate
SceUInt32 samplingRate
SceUInt32 superFrameSize
SceUInt32 framesInSuperFrame

◆ SceAudiodecInfoMp3

struct SceAudiodecInfoMp3
Data Fields
SceUInt32 size sizeof(SceAudiodecInfoMp3)
SceUInt32 ch number of channels (mono: 1, stereo/joint stereo/two mono: 2)
SceUInt32 version MPEG version (MPEG1: 3, MPEG2: 2, MPEG2.5: 0)

◆ SceAudiodecInfoAac

struct SceAudiodecInfoAac
Data Fields
SceUInt32 size
SceUInt32 isAdts
SceUInt32 ch
SceUInt32 samplingRate
SceUInt32 isSbr

◆ SceAudiodecInfoCelp

struct SceAudiodecInfoCelp

Information structure for CELP.

Data Fields
SceUInt32 size sizeof(SceAudiodecInfoCelp)
SceUInt32 excitationMode Excitation mode.
SceUInt32 samplingRate Sampling rate.
SceUInt32 bitRate Bit rate (one of SceAudiodecCelpBitrate)
SceUInt32 lostCount

◆ SceAudiodecInfo

union SceAudiodecInfo

◆ SceAudiodecCtrl

struct SceAudiodecCtrl
Data Fields
SceUInt32 size
SceInt32 handle
SceUInt8 * pEs pointer to elementary stream
SceUInt32 inputEsSize size of elementary stream used actually (in byte)
SceUInt32 maxEsSize maximum size of elementary stream used (in byte)
void * pPcm pointer to PCM
SceUInt32 outputPcmSize size of PCM output actually (in byte)
SceUInt32 maxPcmSize maximum size of PCM output (in byte)
SceUInt32 wordLength PCM bit depth.
SceAudiodecInfo * pInfo pointer to SceAudiodecInfo

Macro Definition Documentation

◆ SCE_AUDIODEC_ALIGNMENT_SIZE

#define SCE_AUDIODEC_ALIGNMENT_SIZE   0x100U

◆ SCE_AUDIODEC_ROUND_UP

#define SCE_AUDIODEC_ROUND_UP (   size)    ((size + SCE_AUDIODEC_ALIGNMENT_SIZE - 1) & ~(SCE_AUDIODEC_ALIGNMENT_SIZE - 1))

◆ SCE_AUDIODEC_WORD_LENGTH_16BITS

#define SCE_AUDIODEC_WORD_LENGTH_16BITS   16

◆ SCE_AUDIODEC_AT9_MAX_CH_IN_LIBRARY

#define SCE_AUDIODEC_AT9_MAX_CH_IN_LIBRARY   16

◆ SCE_AUDIODEC_MP3_MAX_STREAMS

#define SCE_AUDIODEC_MP3_MAX_STREAMS   8

◆ SCE_AUDIODEC_AAC_MAX_STREAMS

#define SCE_AUDIODEC_AAC_MAX_STREAMS   8

◆ SCE_AUDIODEC_CELP_MAX_STREAMS

#define SCE_AUDIODEC_CELP_MAX_STREAMS   8

◆ SCE_AUDIODEC_AT9_MAX_CH_IN_DECODER

#define SCE_AUDIODEC_AT9_MAX_CH_IN_DECODER   2

◆ SCE_AUDIODEC_MP3_MAX_CH_IN_DECODER

#define SCE_AUDIODEC_MP3_MAX_CH_IN_DECODER   2

◆ SCE_AUDIODEC_AAC_MAX_CH_IN_DECODER

#define SCE_AUDIODEC_AAC_MAX_CH_IN_DECODER   2

◆ SCE_AUDIODEC_CELP_MAX_CH_IN_DECODER

#define SCE_AUDIODEC_CELP_MAX_CH_IN_DECODER   1

◆ SCE_AUDIODEC_AT9_MAX_SAMPLES

#define SCE_AUDIODEC_AT9_MAX_SAMPLES   256

◆ SCE_AUDIODEC_MP3_MAX_SAMPLES

#define SCE_AUDIODEC_MP3_MAX_SAMPLES   1152

◆ SCE_AUDIODEC_AAC_MAX_SAMPLES

#define SCE_AUDIODEC_AAC_MAX_SAMPLES   2048

◆ SCE_AUDIODEC_CELP_MAX_SAMPLES

#define SCE_AUDIODEC_CELP_MAX_SAMPLES   320

◆ SCE_AUDIODEC_AT9_MAX_ES_SIZE

#define SCE_AUDIODEC_AT9_MAX_ES_SIZE   1024

◆ SCE_AUDIODEC_MP3_MAX_ES_SIZE

#define SCE_AUDIODEC_MP3_MAX_ES_SIZE   1441

◆ SCE_AUDIODEC_AAC_MAX_ES_SIZE

#define SCE_AUDIODEC_AAC_MAX_ES_SIZE   1536

◆ SCE_AUDIODEC_CELP_MAX_ES_SIZE

#define SCE_AUDIODEC_CELP_MAX_ES_SIZE   24

◆ SCE_AUDIODEC_AT9_EXTRA_ACCESS_SIZE

#define SCE_AUDIODEC_AT9_EXTRA_ACCESS_SIZE   0

◆ SCE_AUDIODEC_MP3_EXTRA_ACCESS_SIZE

#define SCE_AUDIODEC_MP3_EXTRA_ACCESS_SIZE   0

◆ SCE_AUDIODEC_AAC_EXTRA_ACCESS_SIZE

#define SCE_AUDIODEC_AAC_EXTRA_ACCESS_SIZE   0

◆ SCE_AUDIODEC_CELP_EXTRA_ACCESS_SIZE

#define SCE_AUDIODEC_CELP_EXTRA_ACCESS_SIZE   0

◆ SCE_AUDIODEC_AT9_MAX_NFRAMES

#define SCE_AUDIODEC_AT9_MAX_NFRAMES   8

◆ SCE_AUDIODEC_MP3_MAX_NFRAMES

#define SCE_AUDIODEC_MP3_MAX_NFRAMES   1

◆ SCE_AUDIODEC_AAC_MAX_NFRAMES

#define SCE_AUDIODEC_AAC_MAX_NFRAMES   1

◆ SCE_AUDIODEC_CELP_MAX_NFRAMES

#define SCE_AUDIODEC_CELP_MAX_NFRAMES   1

◆ SCE_AUDIODEC_AT9_MAX_NSTREAMS

#define SCE_AUDIODEC_AT9_MAX_NSTREAMS   6

◆ SCE_AUDIODEC_MP3_MAX_NSTREAMS

#define SCE_AUDIODEC_MP3_MAX_NSTREAMS   6

◆ SCE_AUDIODEC_AAC_MAX_NSTREAMS

#define SCE_AUDIODEC_AAC_MAX_NSTREAMS   6

◆ SCE_AUDIODEC_CELP_MAX_NSTREAMS

#define SCE_AUDIODEC_CELP_MAX_NSTREAMS   7

◆ SCE_AUDIODEC_CELP_MPE

#define SCE_AUDIODEC_CELP_MPE   0

◆ SCE_AUDIODEC_CELP_SAMPLING_RATE_8KHZ

#define SCE_AUDIODEC_CELP_SAMPLING_RATE_8KHZ   8000

Enumeration Type Documentation

◆ SceAudiodecErrorCode

Enumerator
SCE_AUDIODEC_ERROR_API_FAIL 
SCE_AUDIODEC_ERROR_INVALID_TYPE 
SCE_AUDIODEC_ERROR_INVALID_INIT_PARAM 
SCE_AUDIODEC_ERROR_ALREADY_INITIALIZED 
SCE_AUDIODEC_ERROR_OUT_OF_MEMORY 
SCE_AUDIODEC_ERROR_NOT_INITIALIZED 
SCE_AUDIODEC_ERROR_A_HANDLE_IN_USE 
SCE_AUDIODEC_ERROR_ALL_HANDLES_IN_USE 
SCE_AUDIODEC_ERROR_INVALID_PTR 
SCE_AUDIODEC_ERROR_INVALID_HANDLE 
SCE_AUDIODEC_ERROR_NOT_HANDLE_IN_USE 
SCE_AUDIODEC_ERROR_CH_SHORTAGE 
SCE_AUDIODEC_ERROR_INVALID_WORD_LENGTH 
SCE_AUDIODEC_ERROR_INVALID_SIZE 
SCE_AUDIODEC_ERROR_UNSUPPORTED 
SCE_AUDIODEC_ERROR_INVALID_NFRAMES 
SCE_AUDIODEC_ERROR_INVALID_NSTREAMS 
SCE_AUDIODEC_ERROR_DIFFERENT_TYPES 
SCE_AUDIODEC_ERROR_SAME_HANDLES 
SCE_AUDIODEC_ERROR_BUSY 
SCE_AUDIODEC_AT9_ERROR_INVALID_CONFIG 
SCE_AUDIODEC_MP3_ERROR_INVALID_CH 
SCE_AUDIODEC_MP3_ERROR_INVALID_MPEG_VERSION 
SCE_AUDIODEC_AAC_ERROR_INVALID_CH 
SCE_AUDIODEC_CELP_ERROR_INVALID_CONFIG 

◆ SceAudiodecType

Enumerator
SCE_AUDIODEC_TYPE_AT9 
SCE_AUDIODEC_TYPE_MP3 
SCE_AUDIODEC_TYPE_AAC 
SCE_AUDIODEC_TYPE_CELP 

◆ SceAudiodecMpegVersion

Enumerator
SCE_AUDIODEC_MP3_MPEG_VERSION_2_5 
SCE_AUDIODEC_MP3_MPEG_VERSION_RESERVED 
SCE_AUDIODEC_MP3_MPEG_VERSION_2 
SCE_AUDIODEC_MP3_MPEG_VERSION_1 

◆ SceAudiodecCelpBitrate

Enumerator
SCE_AUDIODEC_CELP_BIT_RATE_3850BPS 
SCE_AUDIODEC_CELP_BIT_RATE_4650BPS 
SCE_AUDIODEC_CELP_BIT_RATE_5700BPS 
SCE_AUDIODEC_CELP_BIT_RATE_6600BPS 
SCE_AUDIODEC_CELP_BIT_RATE_7300BPS 
SCE_AUDIODEC_CELP_BIT_RATE_8700BPS 
SCE_AUDIODEC_CELP_BIT_RATE_9900BPS 
SCE_AUDIODEC_CELP_BIT_RATE_10700BPS 
SCE_AUDIODEC_CELP_BIT_RATE_11800BPS 
SCE_AUDIODEC_CELP_BIT_RATE_12200BPS 

Function Documentation

◆ VITASDK_BUILD_ASSERT_EQ() [1/9]

VITASDK_BUILD_ASSERT_EQ ( ,
SceAudiodecInitStreamParam   
)

◆ VITASDK_BUILD_ASSERT_EQ() [2/9]

VITASDK_BUILD_ASSERT_EQ ( ,
SceAudiodecInitChParam   
)

◆ VITASDK_BUILD_ASSERT_EQ() [3/9]

VITASDK_BUILD_ASSERT_EQ ( ,
SceAudiodecInitParam   
)

◆ VITASDK_BUILD_ASSERT_EQ() [4/9]

VITASDK_BUILD_ASSERT_EQ ( 0x1C  ,
SceAudiodecInfoAt9   
)

◆ VITASDK_BUILD_ASSERT_EQ() [5/9]

VITASDK_BUILD_ASSERT_EQ ( 0xC  ,
SceAudiodecInfoMp3   
)

◆ VITASDK_BUILD_ASSERT_EQ() [6/9]

VITASDK_BUILD_ASSERT_EQ ( 0x14  ,
SceAudiodecInfoAac   
)

◆ VITASDK_BUILD_ASSERT_EQ() [7/9]

VITASDK_BUILD_ASSERT_EQ ( 0x14  ,
SceAudiodecInfoCelp   
)

◆ VITASDK_BUILD_ASSERT_EQ() [8/9]

VITASDK_BUILD_ASSERT_EQ ( 0x1C  ,
SceAudiodecInfo   
)

◆ VITASDK_BUILD_ASSERT_EQ() [9/9]

VITASDK_BUILD_ASSERT_EQ ( 0x28  ,
SceAudiodecCtrl   
)

◆ sceAudiodecInitLibrary()

SceInt32 sceAudiodecInitLibrary ( SceUInt32  codecType,
SceAudiodecInitParam pInitParam 
)

◆ sceAudiodecTermLibrary()

SceInt32 sceAudiodecTermLibrary ( SceUInt32  codecType)

◆ sceAudiodecCreateDecoder()

SceInt32 sceAudiodecCreateDecoder ( SceAudiodecCtrl pCtrl,
SceUInt32  codecType 
)

◆ sceAudiodecDeleteDecoder()

SceInt32 sceAudiodecDeleteDecoder ( SceAudiodecCtrl pCtrl)

◆ sceAudiodecDecode()

SceInt32 sceAudiodecDecode ( SceAudiodecCtrl pCtrl)

◆ sceAudiodecDecodeNFrames()

SceInt32 sceAudiodecDecodeNFrames ( SceAudiodecCtrl pCtrl,
SceUInt32  nFrames 
)

◆ sceAudiodecDecodeNStreams()

SceInt32 sceAudiodecDecodeNStreams ( SceAudiodecCtrl pCtrls[],
SceUInt32  nStreams 
)

◆ sceAudiodecClearContext()

SceInt32 sceAudiodecClearContext ( SceAudiodecCtrl pCtrl)

◆ sceAudiodecGetInternalError()

SceInt32 sceAudiodecGetInternalError ( SceAudiodecCtrl pCtrl,
SceInt32 pInternalError 
)

◆ sceAudiodecGetContextSize()

SceInt32 sceAudiodecGetContextSize ( SceAudiodecCtrl pCtrl,
SceUInt32  codecType 
)

◆ sceAudiodecCreateDecoderExternal()

SceInt32 sceAudiodecCreateDecoderExternal ( SceAudiodecCtrl pCtrl,
SceUInt32  codecType,
SceUIntVAddr  vaContext,
SceUInt32  contextSize 
)

◆ sceAudiodecDeleteDecoderExternal()

SceInt32 sceAudiodecDeleteDecoderExternal ( SceAudiodecCtrl pCtrl,
SceUIntVAddr pvaContext 
)