Rename member function 19/279919/1
authorTae-Young Chung <ty83.chung@samsung.com>
Fri, 19 Aug 2022 05:37:15 +0000 (14:37 +0900)
committerTae-Young Chung <ty83.chung@samsung.com>
Fri, 19 Aug 2022 05:37:19 +0000 (14:37 +0900)
[Version] 1.0.7-0
[Issue type] update

https://wiki.tizen.org/Native_Platform_Coding_Idiom_and_Style_Guide
[M05] The name should start with lowercase letters, Camel notation. Keep the style 'verb' + 'noun‘.
 Member functions
o It should starts with a lowercase letter and have a uppercase letter for each new word. No underscores

Change-Id: I3d9d4faac7893e487ab05d225280a76a896b0d37
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
include/dfs_adaptation.h
include/dfs_adaptation_impl.h
packaging/dfs-adaptation.spec
src/dfs_adaptation_impl.cpp

index 6e045bdf6b9c069f8c7dcfa9ceb9824aa998d742..0202084690b051d3a3e64ffc10803b58e56663f8 100644 (file)
@@ -34,7 +34,7 @@ namespace DfsAdaptation
                 * @brief Initialize dfs adaptor.
                 * @since_tizen 7.0
                 */
-               virtual void Initialize(DfsParameter& param,
+               virtual void initialize(DfsParameter& param,
                                                                size_t width,
                                                                size_t height,
                                                                size_t minDisp,
@@ -45,13 +45,13 @@ namespace DfsAdaptation
                 * @brief Run dfs adaptor.
                 * @since_tizen 7.0
                 */
-               virtual void Run(DfsInputData& data) = 0;
+               virtual void run(DfsInputData& data) = 0;
 
                /**
                 * @brief Run dfs adaptor.
                 * @since_tizen 7.0
                 */
-               virtual DfsOutputData& GetDepthData() = 0;
+               virtual DfsOutputData& getDepthData() = 0;
        };
 
        typedef void destroy_t(IDfsAdaptation *);
index 7a1b1a8bc788297ef3415896119bfd523a8f9dca..291a00cb1565b6e73889447a8a141efa3a7d9e0a 100644 (file)
@@ -32,13 +32,13 @@ namespace DfsAdaptation
                DfsAdaptor();
                ~DfsAdaptor();
 
-               void Bind();
-               void Unbind();
+               void bind();
+               void unBind();
 
-               void Initialize(DfsParameter& param, size_t width, size_t height,
+               void initialize(DfsParameter& param, size_t width, size_t height,
                                                size_t minDisp, size_t maxDisp, std::string stereoConfigPath);
-               void Run(DfsInputData& data);
-               DfsOutputData& GetDepthData();
+               void run(DfsInputData& data);
+               DfsOutputData& getDepthData();
        };
 
 } /* DfsAdaptation */
index b43cd3cd4500e2952b4d43feb8efd7adbf703fcc..6b3cda90023c89936ee40daa6d1a4020e0d2694f 100644 (file)
@@ -1,6 +1,6 @@
 Name:        dfs-adaptation
 Summary:     Adaptation of depth-from-stereo
-Version:     1.0.6
+Version:     1.0.7
 Release:     0
 Group:       Multimedia/Framework
 License:     Apache-2.0
index 5b9a05aef74577c2fc9a483294f24dfdf99f75cd..64213dada75e1354aff0bea44a7f9507e14d80f3 100644 (file)
@@ -55,7 +55,7 @@ namespace DfsAdaptation
        }
 
 
-       void DfsAdaptor::Bind()
+       void DfsAdaptor::bind()
        {
                LOGI("ENTER");
 
@@ -102,7 +102,7 @@ namespace DfsAdaptation
                LOGI("LEAVE");
        }
 
-       void DfsAdaptor::Unbind()
+       void DfsAdaptor::unBind()
        {
                LOGI("ENTER");
 
@@ -116,36 +116,36 @@ namespace DfsAdaptation
                LOGI("LEAVE");
        }
 
-       void DfsAdaptor::Initialize(DfsParameter& param, size_t width, size_t height,
+       void DfsAdaptor::initialize(DfsParameter& param, size_t width, size_t height,
                                                                size_t minDisp, size_t maxDisp, std::string stereoConfigPath)
        {
                LOGI("ENTER");
 
                CHECK_INSTANCE(mDfsAdaptorHandle);
 
-               mDfsAdaptorHandle->Initialize(param, width, height, minDisp, maxDisp, stereoConfigPath);
+               mDfsAdaptorHandle->initialize(param, width, height, minDisp, maxDisp, stereoConfigPath);
 
                LOGI("LEAVE");
        }
 
-       void DfsAdaptor::Run(DfsInputData& data)
+       void DfsAdaptor::run(DfsInputData& data)
        {
                LOGI("ENTER");
 
                CHECK_INSTANCE(mDfsAdaptorHandle);
 
-               mDfsAdaptorHandle->Run(data);
+               mDfsAdaptorHandle->run(data);
 
                LOGI("LEAVE");
        }
 
-       DfsOutputData& DfsAdaptor::GetDepthData()
+       DfsOutputData& DfsAdaptor::getDepthData()
        {
                LOGI("ENTER");
 
                CHECK_INSTANCE(mDfsAdaptorHandle);
 
-               return mDfsAdaptorHandle->GetDepthData();
+               return mDfsAdaptorHandle->getDepthData();
 
                LOGI("LEAVE");
        }