We don't want future confusion or inconsistency between
enum values and string values
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
} dec_output_types;
/**
+ * @brief Decoder Mode.
+ */
+typedef enum
+{
+ DIRECT_VIDEO = 0,
+ IMAGE_LABELING,
+ BOUNDING_BOXES,
+ DECODE_MODE_UNKNOWN
+} dec_modes;
+
+/**
* @brief Decoder Mode string.
*/
static const gchar *mode_names[] = {
- "direct_video",
- "image_labeling",
- "bounding_boxes",
+ [DIRECT_VIDEO] = "direct_video",
+ [IMAGE_LABELING] = "image_labeling",
+ [BOUNDING_BOXES] = "bounding_boxes",
NULL
};
};
/**
- * @brief Decoder Mode.
- */
-enum
-{
- DIRECT_VIDEO,
- IMAGE_LABELING,
- BOUNDING_BOXES,
- DECODE_MODE_UNKNOWN
-};
-
-/**
* @brief Get Type function required for gst elements
*/
GType gst_tensordec_get_type (void);