59 lines
2.3 KiB
Text
59 lines
2.3 KiB
Text
[SCE CONFIDENTIAL DOCUMENT]
|
|
Custom libdepth library
|
|
Copyright (C) 2015 Sony Computer Entertainment Inc.
|
|
All Rights Reserved.
|
|
======================================================================
|
|
This package includes files to update PlayStation4 sdk.
|
|
|
|
----------------------------------------------------------------------
|
|
System Requirements
|
|
----------------------------------------------------------------------
|
|
- PS4 SDK : 2.500 or later
|
|
|
|
|
|
----------------------------------------------------------------------
|
|
Package contents
|
|
----------------------------------------------------------------------
|
|
readme.txt
|
|
sdk\
|
|
+---target\
|
|
+---include\vision\depth_sk,h
|
|
+---lib\libSceDepth_stub_03_weak.a
|
|
+---samples\
|
|
+---sample_code\
|
|
+---engines\
|
|
+---api_libdepth\
|
|
+---depth_simple_sk
|
|
+---depth_simple_sk.vcxproj
|
|
+---api_libdepth_sk.sln
|
|
|
|
----------------------------------------------------------------------
|
|
Introduction
|
|
----------------------------------------------------------------------
|
|
***NOTE***
|
|
|
|
*Build and run samples.
|
|
1. Copy "sdk\target" folder to %SCE_ORBIS_SDK_DIR%.
|
|
1. Build and run or "depth_simple_sk/depth_simple_sk.vcxproj".
|
|
|
|
*How to use custom libDepth
|
|
1. Use libSceDepth_stub_03_weak.a.
|
|
2. Include "vision/depth_sk.h".
|
|
3. Add following code after sceSysmoduleLoadModule( SCE_SYSMODULE_DEPTH ).
|
|
|
|
sceDepthEnableExtendedMode( 1 );
|
|
|
|
4. set depthProfile of SceDepthProcessingInformation to following.
|
|
|
|
SceDepthInitializeParameter depthInitializeParameter;
|
|
depthInitializeParameter.m_processingInfo.depthProfile = (SceDepthProfile)(SCE_DEPTH_GENERATOR_TYPE_OF_DEPTH_MAP_2);
|
|
|
|
|
|
*Appendix
|
|
The SCE_DEPTH_GENERATOR_TYPE_OF_DEPTH_MAP_2 profile, the application can get the result of the low noise by providing the calculating the optimal parameters to libDepth.
|
|
The following is the API for that.
|
|
|
|
int sceDepthSetPreFilterParameter( int handle, const SceDepthPreFilterParameter* preFilterParameter );
|
|
int sceDepthSetDepthMapGeneratorParameter( int handle, const SceDepthGeneratorParameter* depthMapGeneratorParameter );
|
|
|
|
Examples is located in the 54 line and 308 line of depth_executor.cpp.
|