#include <gst/video/video-format.h>
#include <nnstreamer_plugin_api_decoder.h>
+#define DECODER_DV_VIDEO_CAPS_STR \
+ GST_VIDEO_CAPS_MAKE ("{ RGB, BGRx, GRAY8 }") \
+ ", views = (int) 1, interlace-mode = (string) progressive"
+
/** @brief tensordec-plugin's TensorDecDef callback */
static int
dv_init (void **pdata)
GST_INFO ("Num Tensors = %d", config->info.num_tensors);
g_return_val_if_fail (config->info.num_tensors >= 1, NULL);
- caps = gst_caps_from_string (GST_TENSOR_VIDEO_CAPS_STR);
+ caps = gst_caps_from_string (DECODER_DV_VIDEO_CAPS_STR);
/* Direct video uses the first tensor only even if it's multi-tensor */
switch (config->info.info[0].dimension[0]) {
#include <nnstreamer_plugin_api_decoder.h>
#include <nnstreamer_plugin_api.h>
+#define DECODER_IL_TEXT_CAPS_STR \
+ "text/x-raw, format = (string) utf8"
+
/** @brief Internal data structure for image labeling */
typedef struct
{
return NULL;
}
- return gst_caps_from_string (GST_TENSOR_TEXT_CAPS_STR);
+ return gst_caps_from_string (DECODER_IL_TEXT_CAPS_STR);
}
/** @brief tensordec-plugin's TensorDecDef callback */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
-#include <gst/gstinfo.h>
#include <stdio.h>
#include <glib.h>
#include <string.h>
}
if (result == NULL) {
- /** raw caps for supported media types */
- result = gst_caps_from_string (GST_TENSOR_MEDIA_CAPS_STR);
+ /* we cannot specify the media type */
+ result = gst_caps_new_any ();
}
return result;