Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dumming functions part 1 #206

Merged
merged 2 commits into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading