From d7c6f638bbd4f60a11377d2af6cf16cf2eca7116 Mon Sep 17 00:00:00 2001 From: krispy Date: Sat, 30 Mar 2024 21:14:51 +0100 Subject: [PATCH 1/2] Dumming functions part 1 sceDepthEnableExtendedMode and sceCameraSetAttribute --- src/ps4_libscecamera.pas | 24 ++++++++++++++++++++++++ src/ps4_libscedepth.pas | 6 ++++++ 2 files changed, 30 insertions(+) diff --git a/src/ps4_libscecamera.pas b/src/ps4_libscecamera.pas index 1270e6fe..5c8ab8a4 100644 --- a/src/ps4_libscecamera.pas +++ b/src/ps4_libscecamera.pas @@ -181,6 +181,24 @@ interface reserved3:DWORD; end; + pSceCameraAttribute=^SceCameraAttribute; + SceCameraAttribute=packed record + sizeThis:DWORD; + channel:Integer; + framePosition:pSceCameraFramePosition; + exposureGain:pSceCameraExposureGain; + whiteBalance:pSceCameraWhiteBalance; + gamma:pSceCameraGamma; + saturation:DWORD; + contrast:DWORD; + sharpness:DWORD; + hue:Integer; + reserved1:DWORD; + reserved2:DWORD; + reserved3:DWORD; + reserved4:DWORD; + end; + implementation function ps4_sceCameraIsAttached(index:Integer):Integer; SysV_ABI_CDecl; @@ -218,6 +236,11 @@ function ps4_sceCameraOpen(userId,_type,index:Integer;pParam:pSceCameraOpenParam Result:=333; end; +function ps4_sceCameraSetAttribute(handle:Integer;pAttribute:pSceCameraAttribute):Integer; SysV_ABI_CDecl; +begin + Result:=0; +end; + function Load_libSceCamera(Const name:RawByteString):TElf_node; var lib:PLIBRARY; @@ -232,6 +255,7 @@ function Load_libSceCamera(Const name:RawByteString):TElf_node; lib^.set_proc($F44A5160CCBBAC75,@ps4_sceCameraStart); lib^.set_proc($9B180C991FB52ABD,@ps4_sceCameraGetFrameData); lib^.set_proc($0479FCDF1AC5F761,@ps4_sceCameraOpen); + lib^.set_proc($7683E57F7DDA6FF5,@ps4_sceCameraSetAttribute); end; initialization diff --git a/src/ps4_libscedepth.pas b/src/ps4_libscedepth.pas index 0647c623..942807b6 100644 --- a/src/ps4_libscedepth.pas +++ b/src/ps4_libscedepth.pas @@ -25,6 +25,11 @@ function ps4_sceDepthInitialize(initParam:PSceDepthInitializeParameter;queryMem: Result:=0; end; +function ps4_sceDepthEnableExtendedMode():Integer; SysV_ABI_CDecl; +begin + Result:=0; +end; + function Load_libSceDepth(Const name:RawByteString):TElf_node; var lib:PLIBRARY; @@ -36,6 +41,7 @@ function Load_libSceDepth(Const name:RawByteString):TElf_node; lib^.set_proc($E4CC31224DFF80BA,@ps4_sceDepthQueryMemory); lib^.set_proc($3DA6BD7601E71E94,@ps4_sceDepthInitialize); + lib^.set_proc($CF9493F422201DAD,@ps4_sceDepthEnableExtendedMode); end; initialization From 619eb55141d30486b316933df4498509d9ed5e68 Mon Sep 17 00:00:00 2001 From: red-prig Date: Mon, 1 Apr 2024 21:20:27 +0300 Subject: [PATCH 2/2] + --- src/ps4_libscecamera.pas | 28 ++++++++++++++-------------- src/ps4_libscedepth.pas | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/ps4_libscecamera.pas b/src/ps4_libscecamera.pas index 5c8ab8a4..bac36c08 100644 --- a/src/ps4_libscecamera.pas +++ b/src/ps4_libscecamera.pas @@ -183,20 +183,20 @@ interface pSceCameraAttribute=^SceCameraAttribute; SceCameraAttribute=packed record - sizeThis:DWORD; - channel:Integer; - framePosition:pSceCameraFramePosition; - exposureGain:pSceCameraExposureGain; - whiteBalance:pSceCameraWhiteBalance; - gamma:pSceCameraGamma; - saturation:DWORD; - contrast:DWORD; - sharpness:DWORD; - hue:Integer; - reserved1:DWORD; - reserved2:DWORD; - reserved3:DWORD; - reserved4:DWORD; + sizeThis :DWORD; + channel :Integer; + framePosition:SceCameraFramePosition; + exposureGain :SceCameraExposureGain; + whiteBalance :SceCameraWhiteBalance; + gamma :SceCameraGamma; + saturation :DWORD; + contrast :DWORD; + sharpness :DWORD; + hue :Integer; + reserved1 :DWORD; + reserved2 :DWORD; + reserved3 :DWORD; + reserved4 :DWORD; end; implementation diff --git a/src/ps4_libscedepth.pas b/src/ps4_libscedepth.pas index 942807b6..7d5e504c 100644 --- a/src/ps4_libscedepth.pas +++ b/src/ps4_libscedepth.pas @@ -25,7 +25,7 @@ function ps4_sceDepthInitialize(initParam:PSceDepthInitializeParameter;queryMem: Result:=0; end; -function ps4_sceDepthEnableExtendedMode():Integer; SysV_ABI_CDecl; +function ps4_sceDepthEnableExtendedMode(param1:DWORD):Integer; SysV_ABI_CDecl; begin Result:=0; end;