diff --git a/ext/tiovx/gsttiovxdlcolorblend.c b/ext/tiovx/gsttiovxdlcolorblend.c index fab79561d..df2bebf44 100644 --- a/ext/tiovx/gsttiovxdlcolorblend.c +++ b/ext/tiovx/gsttiovxdlcolorblend.c @@ -178,6 +178,7 @@ gst_tiovx_dl_color_blend_data_type_get_type (void) {VX_TYPE_UINT16, "VX_TYPE_UINT16", "uint16"}, {VX_TYPE_INT32, "VX_TYPE_INT32", "int32"}, {VX_TYPE_UINT32, "VX_TYPE_UINT32", "uint32"}, + {VX_TYPE_INT64, "VX_TYPE_INT64", "int64"}, {VX_TYPE_FLOAT32, "VX_TYPE_FLOAT32", "float32"}, {0, NULL, NULL}, }; diff --git a/gst-libs/gst/tiovx/gsttiovxutils.c b/gst-libs/gst/tiovx/gsttiovxutils.c index 12191218d..cb9319061 100644 --- a/gst-libs/gst/tiovx/gsttiovxutils.c +++ b/gst-libs/gst/tiovx/gsttiovxutils.c @@ -358,6 +358,9 @@ gst_tiovx_tensor_get_tensor_bit_depth (vx_enum data_type) case VX_TYPE_INT32: bit_depth = sizeof (vx_int32); break; + case VX_TYPE_INT64: + bit_depth = sizeof (vx_int64); + break; case VX_TYPE_FLOAT32: bit_depth = sizeof (vx_float32); break; diff --git a/tests/check/gsttiovxdlcolorblend.c b/tests/check/gsttiovxdlcolorblend.c index 5e32f948c..f4416c187 100644 --- a/tests/check/gsttiovxdlcolorblend.c +++ b/tests/check/gsttiovxdlcolorblend.c @@ -88,7 +88,7 @@ static const guint tiovxdlcolorblend_width[] = { 1, 2048 }; static const guint tiovxdlcolorblend_height[] = { 1, 1080 }; /* Supported data-type */ -#define TIOVXDLCOLORBLEND_DATA_TYPE_ARRAY_SIZE 7 +#define TIOVXDLCOLORBLEND_DATA_TYPE_ARRAY_SIZE 8 static const gchar * tiovxdlcolorblend_data_type[TIOVXDLCOLORBLEND_DATA_TYPE_ARRAY_SIZE] = { "int8", @@ -97,10 +97,11 @@ static const gchar "uint16", "int32", "uint32", + "int64", "float32", }; -#define TIOVXDLCOLORBLEND_DATA_TYPE_ENUM_ARRAY_SIZE 7 +#define TIOVXDLCOLORBLEND_DATA_TYPE_ENUM_ARRAY_SIZE 8 static const enum vx_type_e tiovxdlcolorblend_data_type_enum [TIOVXDLCOLORBLEND_DATA_TYPE_ENUM_ARRAY_SIZE] = { @@ -110,6 +111,7 @@ static const enum vx_type_e VX_TYPE_UINT16, VX_TYPE_INT32, VX_TYPE_UINT32, + VX_TYPE_INT64, VX_TYPE_FLOAT32, }; @@ -395,6 +397,14 @@ GST_START_TEST (test_foreach_data_type) g_random_int_range (element.tensor_pad.height[0], element.tensor_pad.height[1]); data_type = element.tensor_pad.data_type_enum[i]; + + /* + * FIXME: Test INT64 when supported by TI. + */ + if (VX_TYPE_INT64 == data_type) { + continue; + } + tensor_blocksize = gst_tiovx_dl_color_blend_get_tensor_blocksize (tensor_width, tensor_height, data_type);