diff --git a/src/ps4_libscecamera.pas b/src/ps4_libscecamera.pas index 1270e6fe..bac36c08 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: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 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..7d5e504c 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(param1:DWORD):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