From: Kwanghoon Son Date: Wed, 2 Nov 2022 01:19:15 +0000 (-0400) Subject: Change InputMetadata class to struct X-Git-Tag: accepted/tizen/unified/20230113.091231~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4197c97d2b693dfaf0e5c142c792505ec43100dc;p=platform%2Fcore%2Fapi%2Fmediavision.git Change InputMetadata class to struct [Issue type] refactoring Metadata just hold informations. To prevent make all get/setter method, change class to struct same as OutputMetadata. Change-Id: Ib9a8246d2be26d2fe0a2d33e66abf880d75f0761 Signed-off-by: Kwanghoon Son --- diff --git a/mv_machine_learning/inference/include/InputMetadata.h b/mv_machine_learning/inference/include/InputMetadata.h index 366be75..1622a53 100644 --- a/mv_machine_learning/inference/include/InputMetadata.h +++ b/mv_machine_learning/inference/include/InputMetadata.h @@ -55,29 +55,28 @@ struct Options Quantization quantization; }; -class InputMetadata +struct InputMetadata { -public: /** - * @brief Creates an InputMetadata class instance. - * - * @since_tizen 6.5 - */ + * @brief Creates an InputMetadata class instance. + * + * @since_tizen 6.5 + */ InputMetadata(); /** - * @brief Destroys an InputMetadata class instance including - * its all resources. - * - * @since_tizen 6.5 - */ + * @brief Destroys an InputMetadata class instance including + * its all resources. + * + * @since_tizen 6.5 + */ ~InputMetadata() = default; /** - * @brief Parses an InputMetadata - * - * @since_tizen 6.5 - */ + * @brief Parses an InputMetadata + * + * @since_tizen 6.5 + */ int Parse(JsonObject *root, std::string key_name); bool IsParsed(void) { @@ -92,7 +91,6 @@ public: return option; } -private: bool parsed; std::map mSupportedShapeType; std::map mSupportedDataType;