Skip to content

Commit e99419b

Browse files
committed
Merge branch 'release-0.5.2' into main
2 parents 7542dd1 + 6594c50 commit e99419b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+6487
-981
lines changed

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,26 +67,33 @@ Plugin Details:
6767
Name tiovx
6868
Description GStreamer plugin for TIOVX
6969
Filename /usr/lib/gstreamer-1.0/libgsttiovx.so
70-
Version 0.4.1
70+
Version 0.5.2
7171
License Proprietary
7272
Source module GstTIOVX
7373
Binary package GstTIOVX source release
7474
Origin URL http://ti.com
7575

76-
tiovxcolorconvert: TIOVX ColorConvert
77-
tiovxdlcolorblend: TIOVX DL ColorBlend
78-
tiovxdlpreproc: TIOVX DL PreProc
76+
tiovxdemux: TIOVX Demux
77+
tiovxmux: TIOVX Mux
7978
tiovxmultiscaler: TIOVX MultiScaler
8079
tiovxmosaic: TIOVX Mosaic
80+
tiovxldc: TIOVX LDC
81+
tiovxisp: TIOVX ISP
82+
tiovxdlpreproc: TIOVX DL PreProc
83+
tiovxdlcolorblend: TIOVX DL ColorBlend
84+
tiovxcolorconvert: TIOVX ColorConvert
85+
86+
9 features:
87+
+-- 9 elements
8188

82-
5 features:
83-
+-- 5 elements
8489
```
8590

8691
| Extended Documentation |
8792
| ----------- |
8893
| [GstTIOVXColorConvert](https://github.com/TexasInstruments/edgeai-gst-plugins/wiki/tiovxcolorconvert) |
8994
| [GstTIOVXDLColorBlend](https://github.com/TexasInstruments/edgeai-gst-plugins/wiki/tiovxdlcolorblend) |
9095
| [GstTIOVXDLPreProc](https://github.com/TexasInstruments/edgeai-gst-plugins/wiki/tiovxdlpreproc) |
96+
| [GstTIOVXISP](https://github.com/TexasInstruments/edgeai-gst-plugins/wiki/tiovxisp) |
97+
| [GstTIOVXLDC](https://github.com/TexasInstruments/edgeai-gst-plugins/wiki/tiovxldc) |
9198
| [GstTIOVXMultiScaler](https://github.com/TexasInstruments/edgeai-gst-plugins/wiki/tiovxmultiscaler) |
9299
| [GstTIOVXMosaic](https://github.com/TexasInstruments/edgeai-gst-plugins/wiki/tiovxmosaic) |

ext/tiovx/gsttiovx.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,14 @@
6666
#include <gst/gst.h>
6767

6868
#include "gsttiovxcolorconvert.h"
69+
#include "gsttiovxdemux.h"
6970
#include "gsttiovxdlcolorblend.h"
7071
#include "gsttiovxdlpreproc.h"
7172
#include "gsttiovxisp.h"
7273
#include "gsttiovxldc.h"
7374
#include "gsttiovxmosaic.h"
7475
#include "gsttiovxmultiscaler.h"
76+
#include "gsttiovxmux.h"
7577
#include "gst-libs/gst/tiovx/gsttiovxutils.h"
7678

7779
/* entry point to initialize the plug-in
@@ -132,6 +134,20 @@ ti_ovx_init (GstPlugin * plugin)
132134
goto out;
133135
}
134136

137+
ret = gst_element_register (plugin, "tiovxmux", GST_RANK_NONE,
138+
GST_TYPE_TIOVX_MUX);
139+
if (!ret) {
140+
GST_ERROR ("Failed to register the tiovxmux element");
141+
goto out;
142+
}
143+
144+
ret = gst_element_register (plugin, "tiovxdemux", GST_RANK_NONE,
145+
GST_TYPE_TIOVX_DEMUX);
146+
if (!ret) {
147+
GST_ERROR ("Failed to register the tiovxdemux element");
148+
goto out;
149+
}
150+
135151
gst_tiovx_init_debug ();
136152

137153
ret = TRUE;

ext/tiovx/gsttiovxcolorconvert.c

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -110,22 +110,33 @@ enum
110110
#define TIOVX_COLOR_CONVERT_SUPPORTED_FORMATS_SINK "{RGB, RGBx, NV12, NV21, UYVY, YUY2, I420}"
111111
#define TIOVX_COLOR_CONVERT_SUPPORTED_WIDTH "[1 , 8192]"
112112
#define TIOVX_COLOR_CONVERT_SUPPORTED_HEIGHT "[1 , 8192]"
113+
#define TIOVX_COLOR_CONVERT_SUPPORTED_CHANNELS "[1 , 16]"
113114

114115
/* Src caps */
115-
#define TIOVX_COLOR_CONVERT_STATIC_CAPS_SRC \
116-
"video/x-raw, " \
117-
"format = (string) " TIOVX_COLOR_CONVERT_SUPPORTED_FORMATS_SRC ", " \
118-
"width = " TIOVX_COLOR_CONVERT_SUPPORTED_WIDTH ", " \
119-
"height = " TIOVX_COLOR_CONVERT_SUPPORTED_HEIGHT ", " \
120-
"framerate = " GST_VIDEO_FPS_RANGE
116+
#define TIOVX_COLOR_CONVERT_STATIC_CAPS_SRC \
117+
"video/x-raw, " \
118+
"format = (string) " TIOVX_COLOR_CONVERT_SUPPORTED_FORMATS_SRC ", " \
119+
"width = " TIOVX_COLOR_CONVERT_SUPPORTED_WIDTH ", " \
120+
"height = " TIOVX_COLOR_CONVERT_SUPPORTED_HEIGHT \
121+
"; " \
122+
"video/x-raw(" GST_CAPS_FEATURE_BATCHED_MEMORY "), " \
123+
"format = (string) " TIOVX_COLOR_CONVERT_SUPPORTED_FORMATS_SRC ", " \
124+
"width = " TIOVX_COLOR_CONVERT_SUPPORTED_WIDTH ", " \
125+
"height = " TIOVX_COLOR_CONVERT_SUPPORTED_HEIGHT ", " \
126+
"num-channels = " TIOVX_COLOR_CONVERT_SUPPORTED_CHANNELS \
121127

122128
/* Sink caps */
123-
#define TIOVX_COLOR_CONVERT_STATIC_CAPS_SINK \
124-
"video/x-raw, " \
125-
"format = (string) " TIOVX_COLOR_CONVERT_SUPPORTED_FORMATS_SINK ", " \
126-
"width = " TIOVX_COLOR_CONVERT_SUPPORTED_WIDTH ", " \
127-
"height = " TIOVX_COLOR_CONVERT_SUPPORTED_HEIGHT ", " \
128-
"framerate = " GST_VIDEO_FPS_RANGE
129+
#define TIOVX_COLOR_CONVERT_STATIC_CAPS_SINK \
130+
"video/x-raw, " \
131+
"format = (string) " TIOVX_COLOR_CONVERT_SUPPORTED_FORMATS_SINK ", " \
132+
"width = " TIOVX_COLOR_CONVERT_SUPPORTED_WIDTH ", " \
133+
"height = " TIOVX_COLOR_CONVERT_SUPPORTED_HEIGHT \
134+
"; " \
135+
"video/x-raw(" GST_CAPS_FEATURE_BATCHED_MEMORY "), " \
136+
"format = (string) " TIOVX_COLOR_CONVERT_SUPPORTED_FORMATS_SINK ", " \
137+
"width = " TIOVX_COLOR_CONVERT_SUPPORTED_WIDTH ", " \
138+
"height = " TIOVX_COLOR_CONVERT_SUPPORTED_HEIGHT ", " \
139+
"num-channels = " TIOVX_COLOR_CONVERT_SUPPORTED_CHANNELS
129140

130141
/* Pads definitions */
131142
static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
@@ -495,6 +506,7 @@ gst_tiovx_color_convert_init_module (GstTIOVXSiso * trans, vx_context context,
495506
TIOVXColorConvertModuleObj *colorconvert = NULL;
496507
GstVideoInfo in_info;
497508
GstVideoInfo out_info;
509+
gboolean ret = FALSE;
498510

499511
g_return_val_if_fail (trans, FALSE);
500512
g_return_val_if_fail (VX_SUCCESS == vxGetStatus ((vx_reference) context),
@@ -510,16 +522,16 @@ gst_tiovx_color_convert_init_module (GstTIOVXSiso * trans, vx_context context,
510522

511523
if (!gst_video_info_from_caps (&in_info, in_caps)) {
512524
GST_ERROR_OBJECT (self, "Failed to get video info from input caps");
513-
return FALSE;
525+
goto exit;
514526
}
515527
if (!gst_video_info_from_caps (&out_info, out_caps)) {
516528
GST_ERROR_OBJECT (self, "Failed to get video info from output caps");
517-
return FALSE;
529+
goto exit;
518530
}
519531

520532
/* Configure TIOVXColorConvertModuleObj */
521533
colorconvert = &self->obj;
522-
colorconvert->num_channels = DEFAULT_NUM_CHANNELS;
534+
colorconvert->num_channels = num_channels;
523535
colorconvert->input.bufq_depth = num_channels;
524536
colorconvert->output.bufq_depth = num_channels;
525537

@@ -539,10 +551,13 @@ gst_tiovx_color_convert_init_module (GstTIOVXSiso * trans, vx_context context,
539551
status = tiovx_color_convert_module_init (context, colorconvert);
540552
if (VX_SUCCESS != status) {
541553
GST_ERROR_OBJECT (self, "Module init failed with error: %d", status);
542-
return FALSE;
554+
goto exit;
543555
}
556+
ret = TRUE;
544557

545-
return TRUE;
558+
exit:
559+
560+
return ret;
546561
}
547562

548563
static gboolean

0 commit comments

Comments
 (0)