mv_machine_learning: code refactoring to GetPoseLandmarkDetectionResults function 29/264729/5
authorInki Dae <inki.dae@samsung.com>
Mon, 27 Sep 2021 09:27:31 +0000 (18:27 +0900)
committerInki Dae <inki.dae@samsung.com>
Wed, 29 Sep 2021 06:00:26 +0000 (15:00 +0900)
commit0c378702f0df8a004e1bb9e4d75574e210045ce6
tree2920b2a4a80ee529080de0681cf2bd88f0b53ced
parenta5b26916ebcaa205613ef3794445c2d53b33c74d
mv_machine_learning: code refactoring to GetPoseLandmarkDetectionResults function

Did code refactoring to GetPoseLandmarkDetectionResults function of
Inference class by dropping Inference class dependency to mPoseResult object.

What this path did are,
 - use smart pointer instead of new operator, and make postResult
   object to be valid only in mv_inference_pose_landmark_detect_open
   function context.
 - drop some unnecessary local variables.
 - and code sliding.

The biggest change of this patch is to drop Inference class dependency
of mPoseResult object for next code refactoring. As as result,
it drops one brace from GetPoseLandmarkDetectionResults function and makes
the function to be more simplified for code readability enhancement.

Change-Id: I25d1a175571d407404c088713a14e485496b2920
Signed-off-by: Inki Dae <inki.dae@samsung.com>
include/mv_inference_private.h
mv_machine_learning/mv_inference/inference/include/Inference.h
mv_machine_learning/mv_inference/inference/include/PoseDecoder.h
mv_machine_learning/mv_inference/inference/src/Inference.cpp
mv_machine_learning/mv_inference/inference/src/mv_inference_open.cpp
packaging/capi-media-vision.spec