2014-07-12 09:46:14 +02:00
|
|
|
#include "stdafx.h"
|
2015-07-29 14:57:46 +02:00
|
|
|
#include "Emu/Memory/Memory.h"
|
|
|
|
|
#include "Emu/System.h"
|
|
|
|
|
#include "Emu/SysCalls/Modules.h"
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2015-09-08 15:53:28 +02:00
|
|
|
extern Module<> cellCelpEnc;
|
2013-09-28 04:36:57 +02:00
|
|
|
|
|
|
|
|
// Return Codes
|
|
|
|
|
enum
|
|
|
|
|
{
|
2014-04-04 15:25:38 +02:00
|
|
|
CELL_CELPENC_ERROR_FAILED = 0x80614001,
|
|
|
|
|
CELL_CELPENC_ERROR_SEQ = 0x80614002,
|
|
|
|
|
CELL_CELPENC_ERROR_ARG = 0x80614003,
|
|
|
|
|
CELL_CELPENC_ERROR_CORE_FAILED = 0x80614081,
|
|
|
|
|
CELL_CELPENC_ERROR_CORE_SEQ = 0x80614082,
|
|
|
|
|
CELL_CELPENC_ERROR_CORE_ARG = 0x80614083,
|
2013-09-28 04:36:57 +02:00
|
|
|
};
|
|
|
|
|
|
2015-07-29 14:57:46 +02:00
|
|
|
s32 cellCelpEncQueryAttr()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellCelpEnc);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 14:57:46 +02:00
|
|
|
s32 cellCelpEncOpen()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellCelpEnc);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 14:57:46 +02:00
|
|
|
s32 cellCelpEncOpenEx()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellCelpEnc);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 14:57:46 +02:00
|
|
|
s32 cellCelpEncClose()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellCelpEnc);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 14:57:46 +02:00
|
|
|
s32 cellCelpEncStart()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellCelpEnc);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 14:57:46 +02:00
|
|
|
s32 cellCelpEncEnd()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellCelpEnc);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 14:57:46 +02:00
|
|
|
s32 cellCelpEncEncodeFrame()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellCelpEnc);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 14:57:46 +02:00
|
|
|
s32 cellCelpEncWaitForOutput()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellCelpEnc);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 14:57:46 +02:00
|
|
|
s32 cellCelpEncGetAu()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellCelpEnc);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-09-08 15:53:28 +02:00
|
|
|
Module<> cellCelpEnc("cellCelpEnc", []()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-02-20 14:58:40 +01:00
|
|
|
REG_FUNC(cellCelpEnc, cellCelpEncQueryAttr);
|
|
|
|
|
REG_FUNC(cellCelpEnc, cellCelpEncOpen);
|
|
|
|
|
REG_FUNC(cellCelpEnc, cellCelpEncOpenEx);
|
|
|
|
|
REG_FUNC(cellCelpEnc, cellCelpEncClose);
|
|
|
|
|
REG_FUNC(cellCelpEnc, cellCelpEncStart);
|
|
|
|
|
REG_FUNC(cellCelpEnc, cellCelpEncEnd);
|
|
|
|
|
REG_FUNC(cellCelpEnc, cellCelpEncEncodeFrame);
|
|
|
|
|
REG_FUNC(cellCelpEnc, cellCelpEncWaitForOutput);
|
|
|
|
|
REG_FUNC(cellCelpEnc, cellCelpEncGetAu);
|
2015-07-29 14:57:46 +02:00
|
|
|
});
|