Doxygen Book
gsttensor_converter.h File Reference

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"
Include dependency graph for gsttensor_converter.h:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

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.nosp@m.s@ap.nosp@m.estaa.nosp@m.rt.o.nosp@m.rg Copyright (C) 2005 Ronald S. Bultje rbult.nosp@m.je@r.nosp@m.onald.nosp@m..bit.nosp@m.freak.nosp@m..net Copyright (C) 2018 MyungJoo Ham myung.nosp@m.joo..nosp@m.ham@s.nosp@m.amsu.nosp@m.ng.co.nosp@m.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.

Date
26 Mar 2018
           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".
See also
https://github.com/nnstreamer/nnstreamer
Author
MyungJoo Ham myung.nosp@m.joo..nosp@m.ham@s.nosp@m.amsu.nosp@m.ng.co.nosp@m.m
Bug:
No known bugs except for NYI items

Definition in file gsttensor_converter.h.

Macro Definition Documentation

◆ GST_IS_TENSOR_CONVERTER

#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.

◆ GST_IS_TENSOR_CONVERTER_CLASS

#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.

◆ GST_TENSOR_CONVERTER

#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.

◆ GST_TENSOR_CONVERTER_CLASS

#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.

◆ GST_TYPE_TENSOR_CONVERTER

#define GST_TYPE_TENSOR_CONVERTER   (gst_tensor_converter_get_type())

Definition at line 44 of file gsttensor_converter.h.

Typedef Documentation

◆ GstTensorConverter

Definition at line 55 of file gsttensor_converter.h.

◆ GstTensorConverterClass

Definition at line 56 of file gsttensor_converter.h.

Enumeration Type Documentation

◆ tensor_converter_mode

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.

Function Documentation

◆ gst_tensor_converter_get_type()

GType gst_tensor_converter_get_type ( void  )

Get Type function required for gst elements.