Remove output type in sub-plugin definition.
Output mime-type depends on sub-plugins out caps.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
/** @brief Bounding box tensordec-plugin GstTensorDecoderDef instance */
static GstTensorDecoderDef boundingBox = {
.modename = decoder_subplugin_bounding_box,
- .type = OUTPUT_VIDEO,
.init = bb_init,
.exit = bb_exit,
.setOption = bb_setOption,
.getOutCaps = bb_getOutCaps,
.getTransformSize = bb_getTransformSize,
- .decode = bb_decode,
+ .decode = bb_decode
};
/** @brief Initialize this object for tensordec-plugin */
/** @brief Direct-Video tensordec-plugin GstTensorDecoderDef instance */
static GstTensorDecoderDef directVideo = {
.modename = decoder_subplugin_direct_video,
- .type = OUTPUT_VIDEO,
.init = dv_init,
.exit = dv_exit,
.setOption = dv_setOption,
.getOutCaps = dv_getOutCaps,
.getTransformSize = dv_getTransformSize,
- .decode = dv_decode,
+ .decode = dv_decode
};
/** @brief Initialize this object for tensordec-plugin */
/** @brief Image Labeling tensordec-plugin GstTensorDecoderDef instance */
static GstTensorDecoderDef imageLabeling = {
.modename = decoder_subplugin_image_labeling,
- .type = OUTPUT_TEXT,
.init = il_init,
.exit = il_exit,
.setOption = il_setOption,
.getOutCaps = il_getOutCaps,
.getTransformSize = il_getTransformSize,
- .decode = il_decode,
+ .decode = il_decode
};
/** @brief Initialize this object for tensordec-plugin */
#include <gst/gst.h>
/**
- * @brief Tensor Decoder Output type.
- */
-typedef enum
-{
- OUTPUT_VIDEO,
- OUTPUT_AUDIO,
- OUTPUT_TEXT,
- OUTPUT_UNKNOWN
-} GstDecMediaType;
-
-/**
* @brief Decoder definitions for different semantics of tensors
* This allows developers to create their own decoders.
*/
{
char *modename;
/**< Unique decoder name. GST users choose decoders with mode="modename". */
- GstDecMediaType type;
- /**< Output media type. VIDEO/AUDIO/TEXT are supported */
int (*init) (void **private_data);
/**< Object initialization for the decoder */
void (*exit) (void **private_data);