[Common] change type name - text
authorJaeyun <jy1210.jung@samsung.com>
Wed, 13 Feb 2019 03:12:38 +0000 (12:12 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 14 Feb 2019 07:02:04 +0000 (16:02 +0900)
change type name for text/x-raw

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
gst/nnstreamer/tensor_common.c
gst/nnstreamer/tensor_converter/tensor_converter.c
gst/nnstreamer/tensor_typedef.h

index 0bd964f..37036aa 100644 (file)
@@ -66,7 +66,7 @@ gst_tensor_media_type_from_structure (const GstStructure * structure)
   }
 
   if (g_str_has_prefix (name, "text/")) {
-    return _NNS_STRING;
+    return _NNS_TEXT;
   }
 
   if (g_str_equal (name, "application/octet-stream")) {
@@ -892,7 +892,7 @@ gst_tensor_config_from_structure (GstTensorConfig * config,
     case _NNS_AUDIO:
       gst_tensor_config_from_audio_info (config, structure);
       break;
-    case _NNS_STRING:
+    case _NNS_TEXT:
       gst_tensor_config_from_text_info (config, structure);
       break;
     case _NNS_OCTET:
index ef70be4..81c3db0 100644 (file)
@@ -634,7 +634,7 @@ gst_tensor_converter_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
       frames_in = buf_size / frame_size;
       break;
 
-    case _NNS_STRING:
+    case _NNS_TEXT:
       frame_size = GST_TENSOR_STRING_SIZE;
       frames_in = 1; /** supposed 1 frame in buffer */
 
@@ -1154,7 +1154,7 @@ gst_tensor_converter_parse_caps (GstTensorConverter * self,
       self->in_info.audio = info;
       break;
     }
-    case _NNS_STRING:
+    case _NNS_TEXT:
       frames_dim = 1;
       break;
     case _NNS_OCTET:
index 2e0f913..81e68b0 100644 (file)
@@ -133,7 +133,7 @@ typedef enum _nns_media_type
 {
   _NNS_VIDEO = 0, /**< supposedly video/x-raw */
   _NNS_AUDIO, /**< supposedly audio/x-raw */
-  _NNS_STRING, /**< supposedly text/x-raw */
+  _NNS_TEXT, /**< supposedly text/x-raw */
   _NNS_OCTET, /**< supposedly application/octet-stream */
 
   _NNS_MEDIA_END, /**< End Marker */