Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ext/tiovx/gsttiovxdlcolorblend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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},
};
Expand Down
3 changes: 3 additions & 0 deletions gst-libs/gst/tiovx/gsttiovxutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
14 changes: 12 additions & 2 deletions tests/check/gsttiovxdlcolorblend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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] = {
Expand All @@ -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,
};

Expand Down Expand Up @@ -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);
Expand Down