2014-07-12 09:46:14 +02:00
|
|
|
#include "stdafx.h"
|
2015-07-29 18:08:10 +02:00
|
|
|
#include "Emu/Memory/Memory.h"
|
|
|
|
|
#include "Emu/SysCalls/Modules.h"
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2015-09-08 15:53:28 +02:00
|
|
|
extern Module<> cellPngEnc;
|
2013-09-28 04:36:57 +02:00
|
|
|
|
|
|
|
|
// Error Codes
|
|
|
|
|
enum
|
|
|
|
|
{
|
2014-04-04 15:25:38 +02:00
|
|
|
CELL_PNGENC_ERROR_ARG = 0x80611291,
|
|
|
|
|
CELL_PNGENC_ERROR_SEQ = 0x80611292,
|
|
|
|
|
CELL_PNGENC_ERROR_BUSY = 0x80611293,
|
|
|
|
|
CELL_PNGENC_ERROR_EMPTY = 0x80611294,
|
|
|
|
|
CELL_PNGENC_ERROR_RESET = 0x80611295,
|
|
|
|
|
CELL_PNGENC_ERROR_FATAL = 0x80611296,
|
2013-09-28 04:36:57 +02:00
|
|
|
};
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellPngEncQueryAttr()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellPngEnc);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellPngEncOpen()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellPngEnc);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellPngEncOpenEx()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellPngEnc);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellPngEncClose()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellPngEnc);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellPngEncWaitForInput()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellPngEnc);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellPngEncEncodePicture()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellPngEnc);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellPngEncWaitForOutput()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellPngEnc);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellPngEncGetStreamInfo()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellPngEnc);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellPngEncReset()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellPngEnc);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-09-08 15:53:28 +02:00
|
|
|
Module<> cellPngEnc("cellPngEnc", []()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-02-20 14:58:40 +01:00
|
|
|
REG_FUNC(cellPngEnc, cellPngEncQueryAttr);
|
|
|
|
|
REG_FUNC(cellPngEnc, cellPngEncOpen);
|
|
|
|
|
REG_FUNC(cellPngEnc, cellPngEncOpenEx);
|
|
|
|
|
REG_FUNC(cellPngEnc, cellPngEncClose);
|
|
|
|
|
REG_FUNC(cellPngEnc, cellPngEncWaitForInput);
|
|
|
|
|
REG_FUNC(cellPngEnc, cellPngEncEncodePicture);
|
|
|
|
|
REG_FUNC(cellPngEnc, cellPngEncWaitForOutput);
|
|
|
|
|
REG_FUNC(cellPngEnc, cellPngEncGetStreamInfo);
|
|
|
|
|
REG_FUNC(cellPngEnc, cellPngEncReset);
|
2015-07-29 18:08:10 +02:00
|
|
|
});
|