Let's constify mode names as they are not going to be edited in runtime, but switched between predefined strings only.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
gboolean add_padding; /**< If TRUE, zero-padding must be added during transform */
gboolean silent; /**< True if logging is minimized */
guint output_type; /**< Denotes the output type */
- gchar *mode; /** Mode for tensor decoder "direct_video" or "image_labeling" */
+ const gchar *mode; /** Mode for tensor decoder "direct_video" or "image_labeling" */
/** For Tensor */
gboolean configured; /**< TRUE if already successfully configured tensor metadata */
/**
* @brief Tensor decoder modes
*/
-gchar *Mode[] = {
+static const gchar *Mode[] = {
"direct_video",
"image_labeling"
};