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:

SceAudioenc_stub



Functions

 VITASDK_BUILD_ASSERT_EQ (8, SceAudioencInitStreamParam)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceAudioencInfoCelp)
 
 VITASDK_BUILD_ASSERT_EQ (0x2C, SceAudioencOptInfoCelp)
 
 VITASDK_BUILD_ASSERT_EQ (8, SceAudioencInitParam)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceAudioencInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x2C, SceAudioencOptInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x2C, SceAudioencCtrl)
 
int sceAudioencInitLibrary (int codecType, SceAudioencInitParam *pInitParam)
 
int sceAudioencTermLibrary (unsigned int codecType)
 
int sceAudioencCreateEncoder (SceAudioencCtrl *pCtrl, int codecType)
 
int sceAudioencDeleteEncoder (SceAudioencCtrl *pCtrl)
 
int sceAudioencEncode (SceAudioencCtrl *pCtrl)
 
int sceAudioencClearContext (SceAudioencCtrl *pCtrl)
 
int sceAudioencGetOptInfo (SceAudioencCtrl *pCtrl)
 
int sceAudioencGetInternalError (SceAudioencCtrl *pCtrl, int *pInternalError)
 

Macros

#define SCE_AUDIOENC_WORD_LENGTH_16BITS   16
 Definition of wordlength. More...
 
#define SCE_AUDIOENC_TYPE_CELP   0x2006U
 Audio encoder type. More...
 
#define SCE_AUDIOENC_CELP_MAX_STREAMS   1
 Max number of streams. More...
 
#define SCE_AUDIOENC_CELP_MAX_SAMPLES   320
 Max number of samples. More...
 
#define SCE_AUDIOENC_CELP_MAX_ES_SIZE   24
 Max elementary stream size. More...
 
#define SCE_AUDIOENC_CELP_MPE   (0)
 CELP encoder default excitation mode. More...
 
#define SCE_AUDIOENC_CELP_SAMPLING_RATE_8KHZ   (8000)
 CELP encoder default sampling rate. More...
 

Data Structure Documentation

◆ SceAudioencInitStreamParam

struct SceAudioencInitStreamParam

Initialization structure to provide to SceAudioencInitParam.

Data Fields
SceSize size sizeof(SceAudioencInitStreamParam)
unsigned int totalStreams Total number of audio streams.

◆ SceAudioencInfoCelp

struct SceAudioencInfoCelp

Information structure for CELP.

Data Fields
SceSize size sizeof(SceAudioencInfoCelp)
unsigned int excitationMode Excitation mode.
unsigned int samplingRate Sampling rate.
unsigned int bitRate Bit rate (one of SceAudioencCelpBitrate)

◆ SceAudioencOptInfoCelp

struct SceAudioencOptInfoCelp

Optional information structure for CELP.

Data Fields
SceSize size sizeof(SceAudioencOptInfoCelp)
uint8_t header[32] Header buffer.
SceSize headerSize Header size.
unsigned int encoderVersion Encoder version.

◆ SceAudioencInitParam

union SceAudioencInitParam

Initialization structure to pass as argument to sceAudioencInitLibrary.

Data Fields
SceSize size sizeof(SceAudioencInitParam)
SceAudioencInitStreamParam celp See SceAudioencInitStreamParam.

◆ SceAudioencInfo

union SceAudioencInfo

Audio encoder info.

Data Fields
SceSize size sizeof(SceAudioencInfo)
SceAudioencInfoCelp celp Information structure for CELP.

◆ SceAudioencOptInfo

union SceAudioencOptInfo

Audio encoder optional info.

Data Fields
SceSize size sizeof(SceAudioencOptInfo)
SceAudioencOptInfoCelp celp Optional information structure for CELP.

◆ SceAudioencCtrl

struct SceAudioencCtrl
Data Fields
SceSize size sizeof(SceAudioencCtrl)
int handle Encoder handle.
void * pInputPcm Pointer to elementary stream.
SceSize inputPcmSize Size of elementary stream used actually (in byte)
SceSize maxPcmSize Max size of elementary stream used (in byte)
void * pOutputEs Pointer to PCM.
SceSize outputEsSize Size of PCM output actually (in byte)
SceSize maxEsSize Max size of PCM output (in byte)
SceSize wordLength PCM bit depth.
SceAudioencInfo * pInfo Pointer to SceAudioencInfo.
SceAudioencOptInfo * pOptInfo Pointer to SceAudioencOptInfo.

Macro Definition Documentation

◆ SCE_AUDIOENC_WORD_LENGTH_16BITS

#define SCE_AUDIOENC_WORD_LENGTH_16BITS   16

Definition of wordlength.

◆ SCE_AUDIOENC_TYPE_CELP

#define SCE_AUDIOENC_TYPE_CELP   0x2006U

Audio encoder type.

◆ SCE_AUDIOENC_CELP_MAX_STREAMS

#define SCE_AUDIOENC_CELP_MAX_STREAMS   1

Max number of streams.

◆ SCE_AUDIOENC_CELP_MAX_SAMPLES

#define SCE_AUDIOENC_CELP_MAX_SAMPLES   320

Max number of samples.

◆ SCE_AUDIOENC_CELP_MAX_ES_SIZE

#define SCE_AUDIOENC_CELP_MAX_ES_SIZE   24

Max elementary stream size.

◆ SCE_AUDIOENC_CELP_MPE

#define SCE_AUDIOENC_CELP_MPE   (0)

CELP encoder default excitation mode.

◆ SCE_AUDIOENC_CELP_SAMPLING_RATE_8KHZ

#define SCE_AUDIOENC_CELP_SAMPLING_RATE_8KHZ   (8000)

CELP encoder default sampling rate.

Enumeration Type Documentation

◆ SceAudioencErrorCode

Enumerator
SCE_AUDIOENC_ERROR_API_FAIL 
SCE_AUDIOENC_ERROR_INVALID_TYPE 
SCE_AUDIOENC_ERROR_INVALID_INIT_PARAM 
SCE_AUDIOENC_ERROR_ALREADY_INITIALIZED 
SCE_AUDIOENC_ERROR_OUT_OF_MEMORY 
SCE_AUDIOENC_ERROR_NOT_INITIALIZED 
SCE_AUDIOENC_ERROR_A_HANDLE_IN_USE 
SCE_AUDIOENC_ERROR_ALL_HANDLES_IN_USE 
SCE_AUDIOENC_ERROR_INVALID_PTR 
SCE_AUDIOENC_ERROR_INVALID_HANDLE 
SCE_AUDIOENC_ERROR_NOT_HANDLE_IN_USE 
SCE_AUDIOENC_ERROR_CH_SHORTAGE 
SCE_AUDIOENC_ERROR_INVALID_WORD_LENGTH 
SCE_AUDIOENC_ERROR_INVALID_SIZE 
SCE_AUDIOENC_ERROR_INVALID_ALIGNMENT 
SCE_AUDIOENC_ERROR_UNSUPPORTED 

◆ SceAudioencCelpErrorCode

Enumerator
SCE_AUDIOENC_CELP_ERROR_INVALID_CONFIG 

◆ SceAudioencCelpBitrate

Enumerator
SCE_AUDIOENC_CELP_BIT_RATE_3850BPS 
SCE_AUDIOENC_CELP_BIT_RATE_4650BPS 
SCE_AUDIOENC_CELP_BIT_RATE_5700BPS 
SCE_AUDIOENC_CELP_BIT_RATE_6600BPS 
SCE_AUDIOENC_CELP_BIT_RATE_7300BPS 
SCE_AUDIOENC_CELP_BIT_RATE_8700BPS 
SCE_AUDIOENC_CELP_BIT_RATE_9900BPS 
SCE_AUDIOENC_CELP_BIT_RATE_10700BPS 
SCE_AUDIOENC_CELP_BIT_RATE_11800BPS 
SCE_AUDIOENC_CELP_BIT_RATE_12200BPS 

Function Documentation

◆ VITASDK_BUILD_ASSERT_EQ() [1/7]

VITASDK_BUILD_ASSERT_EQ ( ,
SceAudioencInitStreamParam   
)

◆ VITASDK_BUILD_ASSERT_EQ() [2/7]

VITASDK_BUILD_ASSERT_EQ ( 0x10  ,
SceAudioencInfoCelp   
)

◆ VITASDK_BUILD_ASSERT_EQ() [3/7]

VITASDK_BUILD_ASSERT_EQ ( 0x2C  ,
SceAudioencOptInfoCelp   
)

◆ VITASDK_BUILD_ASSERT_EQ() [4/7]

VITASDK_BUILD_ASSERT_EQ ( ,
SceAudioencInitParam   
)

◆ VITASDK_BUILD_ASSERT_EQ() [5/7]

VITASDK_BUILD_ASSERT_EQ ( 0x10  ,
SceAudioencInfo   
)

◆ VITASDK_BUILD_ASSERT_EQ() [6/7]

VITASDK_BUILD_ASSERT_EQ ( 0x2C  ,
SceAudioencOptInfo   
)

◆ VITASDK_BUILD_ASSERT_EQ() [7/7]

VITASDK_BUILD_ASSERT_EQ ( 0x2C  ,
SceAudioencCtrl   
)

◆ sceAudioencInitLibrary()

int sceAudioencInitLibrary ( int  codecType,
SceAudioencInitParam pInitParam 
)

◆ sceAudioencTermLibrary()

int sceAudioencTermLibrary ( unsigned int  codecType)

◆ sceAudioencCreateEncoder()

int sceAudioencCreateEncoder ( SceAudioencCtrl pCtrl,
int  codecType 
)

◆ sceAudioencDeleteEncoder()

int sceAudioencDeleteEncoder ( SceAudioencCtrl pCtrl)

◆ sceAudioencEncode()

int sceAudioencEncode ( SceAudioencCtrl pCtrl)

◆ sceAudioencClearContext()

int sceAudioencClearContext ( SceAudioencCtrl pCtrl)

◆ sceAudioencGetOptInfo()

int sceAudioencGetOptInfo ( SceAudioencCtrl pCtrl)

◆ sceAudioencGetInternalError()

int sceAudioencGetInternalError ( SceAudioencCtrl pCtrl,
int *  pInternalError 
)