rpcsx/rpcs3/Emu/Cell/Modules/cellPhotoDecode.cpp

65 lines
1.3 KiB
C++
Raw Normal View History

2014-07-12 09:46:14 +02:00
#include "stdafx.h"
2016-03-21 20:43:03 +01:00
#include "Emu/Cell/PPUModule.h"
2017-05-15 13:58:32 +02:00
namespace vm { using namespace ps3; }
2017-05-13 20:30:37 +02:00
logs::channel cellPhotoDecode("cellPhotoDecode");
// Return Codes
enum
{
2014-04-04 15:25:38 +02:00
CELL_PHOTO_DECODE_ERROR_BUSY = 0x8002c901,
CELL_PHOTO_DECODE_ERROR_INTERNAL = 0x8002c902,
CELL_PHOTO_DECODE_ERROR_PARAM = 0x8002c903,
CELL_PHOTO_DECODE_ERROR_ACCESS_ERROR = 0x8002c904,
CELL_PHOTO_DECODE_ERROR_INITIALIZE = 0x8002c905,
CELL_PHOTO_DECODE_ERROR_DECODE = 0x8002c906,
};
// Datatypes
struct CellPhotoDecodeSetParam
{
u32 dstBuffer_addr;
u16 width;
u16 height;
};
struct CellPhotoDecodeReturnParam
{
u16 width;
u16 height;
};
// Functions
s32 cellPhotoDecodeInitialize()
{
UNIMPLEMENTED_FUNC(cellPhotoDecode);
return CELL_OK;
}
s32 cellPhotoDecodeInitialize2()
{
UNIMPLEMENTED_FUNC(cellPhotoDecode);
return CELL_OK;
}
s32 cellPhotoDecodeFinalize()
{
UNIMPLEMENTED_FUNC(cellPhotoDecode);
return CELL_OK;
}
s32 cellPhotoDecodeFromFile()
{
UNIMPLEMENTED_FUNC(cellPhotoDecode);
return CELL_OK;
}
2016-03-21 20:43:03 +01:00
DECLARE(ppu_module_manager::cellPhotoDecode)("cellPhotoDecodeUtil", []()
{
2016-03-21 20:43:03 +01:00
REG_FUNC(cellPhotoDecodeUtil, cellPhotoDecodeInitialize);
REG_FUNC(cellPhotoDecodeUtil, cellPhotoDecodeInitialize2);
REG_FUNC(cellPhotoDecodeUtil, cellPhotoDecodeFinalize);
REG_FUNC(cellPhotoDecodeUtil, cellPhotoDecodeFromFile);
});