GStreamer plugin to convert media types to tensors (as a filter for other general neural network filters) More...
#include <gst/gst.h>
#include <tensor_common.h>
#include "nnstreamer_plugin_api_converter.h"
#include "tensor_converter_custom.h"
Go to the source code of this file.
Classes | |
struct | converter_custom_cb_s |
struct | _GstTensorConverter |
Internal data structure for tensor_converter instances. More... | |
struct | _GstTensorConverterClass |
GstTensorConverterClass data structure. More... | |
Macros | |
#define | GST_TYPE_TENSOR_CONVERTER (gst_tensor_converter_get_type()) |
#define | GST_TENSOR_CONVERTER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TENSOR_CONVERTER,GstTensorConverter)) |
#define | GST_TENSOR_CONVERTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TENSOR_CONVERTER,GstTensorConverterClass)) |
#define | GST_IS_TENSOR_CONVERTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TENSOR_CONVERTER)) |
#define | GST_IS_TENSOR_CONVERTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TENSOR_CONVERTER)) |
Typedefs | |
typedef struct _GstTensorConverter | GstTensorConverter |
typedef struct _GstTensorConverterClass | GstTensorConverterClass |
Enumerations | |
enum | tensor_converter_mode { _CONVERTER_MODE_NONE = 0, _CONVERTER_MODE_CUSTOM_CODE = 1, _CONVERTER_MODE_CUSTOM_SCRIPT = 2 } |
tensor converter mode More... | |
Functions | |
GType | gst_tensor_converter_get_type (void) |
Get Type function required for gst elements. More... | |
GStreamer plugin to convert media types to tensors (as a filter for other general neural network filters)
GStreamer Copyright (C) 2005 Thomas Vander Stichele thoma Copyright (C) 2005 Ronald S. Bultje s@ap estaa rt.o rgrbult Copyright (C) 2018 MyungJoo Ham je@r onald .bit freak .netmyung joo. ham@s amsu ng.co m
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; version 2.1 of the License.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
Be careful: this filter assumes that the user has attached other GST converters as a preprocessor for this filter so that the incoming buffer is nicely aligned in the array of uint8[height][width][RGB]. Note that if rstride=RU4, you need to add the case in "remove_stride_padding_per_row".
Definition in file gsttensor_converter.h.
#define GST_IS_TENSOR_CONVERTER | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TENSOR_CONVERTER)) |
Definition at line 50 of file gsttensor_converter.h.
#define GST_IS_TENSOR_CONVERTER_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TENSOR_CONVERTER)) |
Definition at line 52 of file gsttensor_converter.h.
#define GST_TENSOR_CONVERTER | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TENSOR_CONVERTER,GstTensorConverter)) |
Definition at line 46 of file gsttensor_converter.h.
#define GST_TENSOR_CONVERTER_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TENSOR_CONVERTER,GstTensorConverterClass)) |
Definition at line 48 of file gsttensor_converter.h.
#define GST_TYPE_TENSOR_CONVERTER (gst_tensor_converter_get_type()) |
Definition at line 44 of file gsttensor_converter.h.
typedef struct _GstTensorConverter GstTensorConverter |
Definition at line 55 of file gsttensor_converter.h.
typedef struct _GstTensorConverterClass GstTensorConverterClass |
Definition at line 56 of file gsttensor_converter.h.
tensor converter mode
Enumerator | |
---|---|
_CONVERTER_MODE_NONE | Normal mode (default) |
_CONVERTER_MODE_CUSTOM_CODE | Custom mode (callback type) |
_CONVERTER_MODE_CUSTOM_SCRIPT | Custom mode (script type) |
Definition at line 66 of file gsttensor_converter.h.
GType gst_tensor_converter_get_type | ( | void | ) |
Get Type function required for gst elements.