From: Tae-Young Chung Date: Fri, 21 Jan 2022 07:53:22 +0000 (+0900) Subject: Add stereoConfigPath to get stereoConfig information for point cloud generation X-Git-Tag: accepted/tizen/unified/20220701.055248~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a16b475945b5e8c17af772f96883f28180ed7137;p=platform%2Fcore%2Fmultimedia%2Fdfs-adaptation.git Add stereoConfigPath to get stereoConfig information for point cloud generation Signed-off-by: Tae-Young Chung --- diff --git a/include/dfs_adaptation.h b/include/dfs_adaptation.h index 64c67a3..c637c94 100644 --- a/include/dfs_adaptation.h +++ b/include/dfs_adaptation.h @@ -38,7 +38,8 @@ namespace DfsAdaptation size_t width, size_t height, size_t minDisp, - size_t maxDisp) = 0; + size_t maxDisp, + std::string stereoConfigPath) = 0; /** * @brief Run dfs adaptor. diff --git a/include/dfs_adaptation_impl.h b/include/dfs_adaptation_impl.h index 89dbd3e..020634b 100644 --- a/include/dfs_adaptation_impl.h +++ b/include/dfs_adaptation_impl.h @@ -36,7 +36,7 @@ namespace DfsAdaptation void Unbind(); void Initialize(DfsParameter& param, size_t width, size_t height, - size_t minDisp, size_t maxDisp); + size_t minDisp, size_t maxDisp, std::string stereoConfigPath); void Run(DfsData& base, DfsData& extra); DfsData& GetDepthData(); }; diff --git a/include/dfs_parameter.h b/include/dfs_parameter.h index 61cb198..14991a4 100644 --- a/include/dfs_parameter.h +++ b/include/dfs_parameter.h @@ -18,6 +18,7 @@ #define __DFS_PARAMETER_H__ #include +#include /** * @file dfs_parameter.h * @brief This file contains the depth parameter structure. @@ -47,6 +48,10 @@ namespace DfsAdaptation size_t height; size_t stride; + std::vector> pointCloud; + double *pointCloudData; + size_t pointCloudSize; + DfsData() { data = nullptr; diff --git a/packaging/dfs-adaptation.spec b/packaging/dfs-adaptation.spec index bc66eec..d46dd0b 100644 --- a/packaging/dfs-adaptation.spec +++ b/packaging/dfs-adaptation.spec @@ -1,6 +1,6 @@ Name: dfs-adaptation Summary: Adaptation of depth-from-stereo -Version: 1.0.1 +Version: 1.0.2 Release: 0 Group: Multimedia/Framework License: Apache-2.0 diff --git a/src/dfs_adaptation_impl.cpp b/src/dfs_adaptation_impl.cpp index c16b637..6dc82d1 100644 --- a/src/dfs_adaptation_impl.cpp +++ b/src/dfs_adaptation_impl.cpp @@ -117,13 +117,13 @@ namespace DfsAdaptation } void DfsAdaptor::Initialize(DfsParameter& param, size_t width, size_t height, - size_t minDisp, size_t maxDisp) + size_t minDisp, size_t maxDisp, std::string stereoConfigPath) { LOGI("ENTER"); CHECK_INSTANCE(mDfsAdaptorHandle); - mDfsAdaptorHandle->Initialize(param, width, height, minDisp, maxDisp); + mDfsAdaptorHandle->Initialize(param, width, height, minDisp, maxDisp, stereoConfigPath); LOGI("LEAVE"); }