#include <gst/check/gstharness.h>
#include <tensor_common.h>
+#include "../gst/nnstreamer/tensor_transform/tensor_transform.h"
+
/**
* @brief Macro for debug mode.
*/
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "typecast", "option", "uint32", NULL);
+ g_object_set (h->element, "mode", GTT_TYPECAST, "option", "uint32", NULL);
g_object_set (h->element, "acceleration", (gboolean) FALSE, NULL);
/* input tensor info */
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "typecast", "option", "uint32", NULL);
+ g_object_set (h->element, "mode", GTT_TYPECAST, "option", "uint32", NULL);
g_object_set (h->element, "acceleration", (gboolean) TRUE, NULL);
/* input tensor info */
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "typecast", "option", "float64", NULL);
+ g_object_set (h->element, "mode", GTT_TYPECAST, "option", "float64", NULL);
g_object_set (h->element, "acceleration", (gboolean) FALSE, NULL);
/* input tensor info */
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "typecast", "option", "float64", NULL);
+ g_object_set (h->element, "mode", GTT_TYPECAST, "option", "float64", NULL);
g_object_set (h->element, "acceleration", (gboolean) TRUE, NULL);
/* input tensor info */
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "typecast", "option", "float32", NULL);
+ g_object_set (h->element, "mode", GTT_TYPECAST, "option", "float32", NULL);
g_object_set (h->element, "acceleration", (gboolean) FALSE, NULL);
/* input tensor info */
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "typecast", "option", "float32", NULL);
+ g_object_set (h->element, "mode", GTT_TYPECAST, "option", "float32", NULL);
g_object_set (h->element, "acceleration", (gboolean) TRUE, NULL);
/* input tensor info */
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "typecast", "option", "float32", NULL);
+ g_object_set (h->element, "mode", GTT_TYPECAST, "option", "float32", NULL);
g_object_set (h->element, "acceleration", (gboolean) FALSE, NULL);
/* input tensor info */
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "typecast", "option", "float32", NULL);
+ g_object_set (h->element, "mode", GTT_TYPECAST, "option", "float32", NULL);
g_object_set (h->element, "acceleration", (gboolean) TRUE, NULL);
/* input tensor info */
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "typecast", "option", "float32", NULL);
+ g_object_set (h->element, "mode", GTT_TYPECAST, "option", "float32", NULL);
g_object_set (h->element, "acceleration", (gboolean) FALSE, NULL);
/* input tensor info */
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "typecast", "option", "float32", NULL);
+ g_object_set (h->element, "mode", GTT_TYPECAST, "option", "float32", NULL);
g_object_set (h->element, "acceleration", (gboolean) TRUE, NULL);
/* input tensor info */
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "typecast", "option", "float32", NULL);
+ g_object_set (h->element, "mode", GTT_TYPECAST, "option", "float32", NULL);
g_object_set (h->element, "acceleration", (gboolean) FALSE, NULL);
/* input tensor info */
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "typecast", "option", "float32", NULL);
+ g_object_set (h->element, "mode", GTT_TYPECAST, "option", "float32", NULL);
g_object_set (h->element, "acceleration", (gboolean) TRUE, NULL);
/* input tensor info */
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "typecast", "option", "float32", NULL);
+ g_object_set (h->element, "mode", GTT_TYPECAST, "option", "float32", NULL);
g_object_set (h->element, "acceleration", (gboolean) FALSE, NULL);
/* input tensor info */
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "typecast", "option", "float32", NULL);
+ g_object_set (h->element, "mode", GTT_TYPECAST, "option", "float32", NULL);
g_object_set (h->element, "acceleration", (gboolean) TRUE, NULL);
/* input tensor info */
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "arithmetic", "option", "add:.5", NULL);
+ g_object_set (h->element, "mode", GTT_ARITHMETIC, "option", "add:.5", NULL);
g_object_set (h->element, "acceleration", (gboolean) FALSE, NULL);
/* input tensor info */
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "arithmetic", "option", "add:.5", NULL);
+ g_object_set (h->element, "mode", GTT_ARITHMETIC, "option", "add:.5", NULL);
g_object_set (h->element, "acceleration", (gboolean) TRUE, NULL);
/* input tensor info */
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "arithmetic", "option", "mul:.5", NULL);
+ g_object_set (h->element, "mode", GTT_ARITHMETIC, "option", "mul:.5", NULL);
g_object_set (h->element, "acceleration", (gboolean) FALSE, NULL);
/* input tensor info */
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "arithmetic", "option", "mul:.5", NULL);
+ g_object_set (h->element, "mode", GTT_ARITHMETIC, "option", "mul:.5", NULL);
g_object_set (h->element, "acceleration", (gboolean) TRUE, NULL);
/* input tensor info */
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "arithmetic",
+ g_object_set (h->element, "mode", GTT_ARITHMETIC,
"option", "typecast:float32,add:.5,mul:0.2", NULL);
g_object_set (h->element, "acceleration", (gboolean) FALSE, NULL);
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "arithmetic",
+ g_object_set (h->element, "mode", GTT_ARITHMETIC,
"option", "typecast:float32,add:.5,mul:0.2", NULL);
g_object_set (h->element, "acceleration", (gboolean) TRUE, NULL);
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "arithmetic",
+ g_object_set (h->element, "mode", GTT_ARITHMETIC,
"option", "typecast:float64,add:0.2,add:0.1,typecast:uint16", NULL);
g_object_set (h->element, "acceleration", (gboolean) FALSE, NULL);
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "arithmetic",
+ g_object_set (h->element, "mode", GTT_ARITHMETIC,
"option", "typecast:float64,add:0.2,add:0.1,typecast:uint16", NULL);
g_object_set (h->element, "acceleration", (gboolean) TRUE, NULL);
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "arithmetic",
+ g_object_set (h->element, "mode", GTT_ARITHMETIC,
"option", "typecast:int32,mul:2,div:2,add:-1", NULL);
g_object_set (h->element, "acceleration", (gboolean) FALSE, NULL);
h = gst_harness_new ("tensor_transform");
- g_object_set (h->element, "mode", "arithmetic",
+ g_object_set (h->element, "mode", GTT_ARITHMETIC,
"option", "typecast:int32,mul:2,div:2,add:-1", NULL);
g_object_set (h->element, "acceleration", (gboolean) TRUE, NULL);