mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 15:36:26 +00:00
PSV modules refactoring
This commit is contained in:
parent
8229c0ed3d
commit
bc9481db1b
129 changed files with 5000 additions and 4588 deletions
|
|
@ -2,36 +2,7 @@
|
|||
#include "Emu/System.h"
|
||||
#include "Emu/ARMv7/PSVFuncList.h"
|
||||
|
||||
extern psv_log_base sceJpeg;
|
||||
|
||||
struct SceJpegOutputInfo
|
||||
{
|
||||
s32 colorSpace;
|
||||
u16 imageWidth;
|
||||
u16 imageHeight;
|
||||
u32 outputBufferSize;
|
||||
u32 tempBufferSize;
|
||||
u32 coefBufferSize;
|
||||
|
||||
struct { u32 x, y; } pitch[4];
|
||||
};
|
||||
|
||||
struct SceJpegSplitDecodeCtrl
|
||||
{
|
||||
vm::psv::ptr<u8> pStreamBuffer;
|
||||
u32 streamBufferSize;
|
||||
vm::psv::ptr<u8> pWriteBuffer;
|
||||
u32 writeBufferSize;
|
||||
s32 isEndOfStream;
|
||||
s32 decodeMode;
|
||||
|
||||
SceJpegOutputInfo outputInfo;
|
||||
|
||||
vm::psv::ptr<void> pOutputBuffer;
|
||||
vm::psv::ptr<void> pCoefBuffer;
|
||||
|
||||
u32 internalData[3];
|
||||
};
|
||||
#include "sceJpeg.h"
|
||||
|
||||
s32 sceJpegInitMJpeg(s32 maxSplitDecoder)
|
||||
{
|
||||
|
|
@ -44,34 +15,34 @@ s32 sceJpegFinishMJpeg()
|
|||
}
|
||||
|
||||
s32 sceJpegDecodeMJpeg(
|
||||
vm::psv::ptr<const u8> pJpeg,
|
||||
vm::ptr<const u8> pJpeg,
|
||||
u32 isize,
|
||||
vm::psv::ptr<void> pRGBA,
|
||||
vm::ptr<void> pRGBA,
|
||||
u32 osize,
|
||||
s32 decodeMode,
|
||||
vm::psv::ptr<void> pTempBuffer,
|
||||
vm::ptr<void> pTempBuffer,
|
||||
u32 tempBufferSize,
|
||||
vm::psv::ptr<void> pCoefBuffer,
|
||||
vm::ptr<void> pCoefBuffer,
|
||||
u32 coefBufferSize)
|
||||
{
|
||||
throw __FUNCTION__;
|
||||
}
|
||||
|
||||
s32 sceJpegDecodeMJpegYCbCr(
|
||||
vm::psv::ptr<const u8> pJpeg,
|
||||
vm::ptr<const u8> pJpeg,
|
||||
u32 isize,
|
||||
vm::psv::ptr<u8> pYCbCr,
|
||||
vm::ptr<u8> pYCbCr,
|
||||
u32 osize,
|
||||
s32 decodeMode,
|
||||
vm::psv::ptr<void> pCoefBuffer,
|
||||
vm::ptr<void> pCoefBuffer,
|
||||
u32 coefBufferSize)
|
||||
{
|
||||
throw __FUNCTION__;
|
||||
}
|
||||
|
||||
s32 sceJpegMJpegCsc(
|
||||
vm::psv::ptr<void> pRGBA,
|
||||
vm::psv::ptr<const u8> pYCbCr,
|
||||
vm::ptr<void> pRGBA,
|
||||
vm::ptr<const u8> pYCbCr,
|
||||
s32 xysize,
|
||||
s32 iFrameWidth,
|
||||
s32 colorOption,
|
||||
|
|
@ -81,26 +52,26 @@ s32 sceJpegMJpegCsc(
|
|||
}
|
||||
|
||||
s32 sceJpegGetOutputInfo(
|
||||
vm::psv::ptr<const u8> pJpeg,
|
||||
vm::ptr<const u8> pJpeg,
|
||||
u32 isize,
|
||||
s32 outputFormat,
|
||||
s32 decodeMode,
|
||||
vm::psv::ptr<SceJpegOutputInfo> pOutputInfo)
|
||||
vm::ptr<SceJpegOutputInfo> pOutputInfo)
|
||||
{
|
||||
throw __FUNCTION__;
|
||||
}
|
||||
|
||||
s32 sceJpegCreateSplitDecoder(vm::psv::ptr<SceJpegSplitDecodeCtrl> pCtrl)
|
||||
s32 sceJpegCreateSplitDecoder(vm::ptr<SceJpegSplitDecodeCtrl> pCtrl)
|
||||
{
|
||||
throw __FUNCTION__;
|
||||
}
|
||||
|
||||
s32 sceJpegDeleteSplitDecoder(vm::psv::ptr<SceJpegSplitDecodeCtrl> pCtrl)
|
||||
s32 sceJpegDeleteSplitDecoder(vm::ptr<SceJpegSplitDecodeCtrl> pCtrl)
|
||||
{
|
||||
throw __FUNCTION__;
|
||||
}
|
||||
|
||||
s32 sceJpegSplitDecodeMJpeg(vm::psv::ptr<SceJpegSplitDecodeCtrl> pCtrl)
|
||||
s32 sceJpegSplitDecodeMJpeg(vm::ptr<SceJpegSplitDecodeCtrl> pCtrl)
|
||||
{
|
||||
throw __FUNCTION__;
|
||||
}
|
||||
|
|
@ -113,6 +84,7 @@ psv_log_base sceJpeg("SceJpeg", []()
|
|||
sceJpeg.on_load = nullptr;
|
||||
sceJpeg.on_unload = nullptr;
|
||||
sceJpeg.on_stop = nullptr;
|
||||
sceJpeg.on_error = nullptr;
|
||||
|
||||
REG_FUNC(0xB030773B, sceJpegInitMJpeg);
|
||||
REG_FUNC(0x62842598, sceJpegFinishMJpeg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue