Skip to content

Commit

Permalink
Dumming functions part 1 (#206)
Browse files Browse the repository at this point in the history
* Dumming functions part 1

sceDepthEnableExtendedMode and sceCameraSetAttribute

* +

---------

Co-authored-by: red-prig <[email protected]>
  • Loading branch information
kr1spy2115 and red-prig authored Apr 1, 2024
1 parent 791f68e commit b9eab2c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/ps4_libscecamera.pas
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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
Expand Down
6 changes: 6 additions & 0 deletions src/ps4_libscedepth.pas
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit b9eab2c

Please sign in to comment.