[CodeClean] fix indent
authorJaeyun Jung <jy1210.jung@samsung.com>
Mon, 6 Nov 2023 11:21:41 +0000 (20:21 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 7 Nov 2023 10:45:36 +0000 (19:45 +0900)
Trivial, fix indent and remove unnecessary space.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
ext/nnstreamer/tensor_decoder/tensordec-boundingbox.c
ext/nnstreamer/tensor_decoder/tensordec-directvideo.c
gst/nnstreamer/elements/gsttensor_trainer.c
gst/nnstreamer/nnstreamer_plugin_api_impl.c
gst/nnstreamer/nnstreamer_plugin_api_util_impl.c
jni/nnstreamer.mk
tests/nnstreamer_example/custom_example_LSTM/dummy_LSTM.c

index cbfd528..07afddb 100644 (file)
@@ -1923,7 +1923,7 @@ bb_decode (void **pdata, const GstTensorsConfig * config,
     goto error_free;
   }
 
-                                                                /** reset the buffer with alpha 0 / black */
+  /* reset the buffer with alpha 0 / black */
   memset (out_info.data, 0, size);
 
   if (_check_mode_is_mobilenet_ssd (bdata->mode)) {
index 07cb5b2..e67c224 100644 (file)
@@ -35,8 +35,8 @@
 #include <nnstreamer_util.h>
 #include "tensordecutil.h"
 
-void init_dv (void) __attribute__ ((constructor));
-void fini_dv (void) __attribute__ ((destructor));
+void init_dv (void) __attribute__((constructor));
+void fini_dv (void) __attribute__((destructor));
 
 #define DECODER_DV_VIDEO_CAPS_STR \
     GST_VIDEO_CAPS_MAKE ("{ GRAY8, RGB, BGR, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, GRAY16_BE, GRAY16_LE }") \
@@ -273,7 +273,7 @@ static size_t
 _get_video_xraw_bufsize (const tensor_dim dim, gsize data_size)
 {
   /* dim[0] is bpp and there is zeropadding only when dim[0]%4 > 0 */
-  return (size_t)((dim[0] * dim[1] - 1) / 4 + 1) * 4 * dim[2] * data_size;
+  return (size_t) ((dim[0] * dim[1] - 1) / 4 + 1) * 4 * dim[2] * data_size;
 }
 
 /** @brief tensordec-plugin's GstTensorDecoderDef callback */
@@ -291,7 +291,7 @@ dv_getTransformSize (void **pdata, const GstTensorsConfig * config,
   UNUSED (othercaps);
 
   if (direction == GST_PAD_SINK)
-    transform_size =  _get_video_xraw_bufsize (dim, data_size);
+    transform_size = _get_video_xraw_bufsize (dim, data_size);
 
   return transform_size;
 }
index 365840d..81d02a0 100644 (file)
@@ -18,7 +18,7 @@
  * ]|
  *
  * Total number of data to be received is 1000((num-training-samples + num-validation-samples) * epochs)
- * 
+ *
  * output tensors : dimensions=1:1:4, types=float64.
  * values are training loss, training accuracy, validation loss and validation accuracy.
  * -INFINITY value is stored if the value fetched from the sub-plugin is not greater than 0.
@@ -566,7 +566,7 @@ gst_tensor_trainer_wait_for_epoch_completion (GstTensorTrainer * trainer)
 }
 
 /**
- * @brief Check if current epochs is complete, 
+ * @brief Check if current epochs is complete,
  * tensor_trainer wait for one of epochs to complete before getting the results from the subplugin
  */
 static gboolean
index f9c1452..0a7efeb 100644 (file)
@@ -1803,7 +1803,6 @@ gst_tensor_buffer_get_count (GstBuffer * buffer)
  *
  * @note This API is intended to be used by gst_tensor_parse_config_file ()
  */
-
 static void
 set_property_value (GValue * prop_value, const GParamSpec * param_spec,
     const gchar * property_value)
index 436f22e..75bc589 100644 (file)
@@ -1070,8 +1070,7 @@ gst_tensor_parse_dimension (const gchar * dimstr, tensor_dim dim)
     return 0;
 
   /* remove spaces */
-  dim_string = g_strdup (dimstr);
-  g_strstrip (dim_string);
+  dim_string = g_strstrip (g_strdup (dimstr));
 
   strv = g_strsplit (dim_string, ":", NNS_TENSOR_RANK_LIMIT);
   num_dims = g_strv_length (strv);
index 443860e..162b2f9 100644 (file)
@@ -143,7 +143,7 @@ NNSTREAMER_DECODER_BB_SRCS := \
     $(NNSTREAMER_EXT_HOME)/tensor_decoder/tensordecutil.c \
     $(NNSTREAMER_EXT_HOME)/tensor_decoder/tensordec-font.c
 
-#decoder tensorRegion 
+#decoder tensorRegion
 NNSTREAMER_DECODER_TR_SRCS := \
     $(NNSTREAMER_EXT_HOME)/tensor_decoder/tensordec-tensor_region.c \
     $(NNSTREAMER_EXT_HOME)/tensor_decoder/tensordecutil.c \
index c6fdec0..662eb8c 100644 (file)
@@ -89,7 +89,7 @@ pt_exit (void *private_data, const GstTensorFilterProperties * prop)
     assert (0 < num_tensors && num_tensors <= NNS_TENSOR_SIZE_LIMIT); \
     for (i = 0; i < num_tensors; ++i) { \
       _info->info[i] = _data->info[i]; \
-      _info->info[i].name = g_strdup(_data->info[i].name); \
+      _info->info[i].name = g_strdup (_data->info[i].name); \
     } \
   } while (0)