Doxygen Book
gsttensor_transform.h File Reference

GStreamer plugin to transform tensor dimension or type. More...

#include <gst/gst.h>
#include <gst/base/gstbasetransform.h>
#include <tensor_common.h>
#include <tensor_data.h>
Include dependency graph for gsttensor_transform.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _tensor_transform_dimchg
 Internal data structure for dimchg mode. More...
 
struct  _tensor_transform_typecast
 Internal data structure for typecast mode. More...
 
struct  tensor_transform_operator_s
 Internal data structure for operator of arithmetic mode. More...
 
struct  _tensor_transform_arithmetic
 Internal data structure for arithmetic mode. More...
 
struct  _tensor_transform_transpose
 Internal data structure for transpose mode. More...
 
struct  _tensor_transform_stand
 Internal data structure for stand mode. More...
 
struct  _tensor_transform_clamp
 Internal data structure for clamp mode. More...
 
struct  _tensor_transform_padding
 Internal data structure for padding mode. More...
 
struct  _GstTensorTransform
 Internal data structure for tensor_transform instances. More...
 
struct  _GstTensorTransformClass
 GstTensorTransformClass inherits GstBaseTransformClass. More...
 

Macros

#define GST_TYPE_TENSOR_TRANSFORM   (gst_tensor_transform_get_type())
 
#define GST_TENSOR_TRANSFORM(obj)   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TENSOR_TRANSFORM,GstTensorTransform))
 
#define GST_TENSOR_TRANSFORM_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TENSOR_TRANSFORM,GstTensorTransformClass))
 
#define GST_IS_TENSOR_TRANSFORM(obj)   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TENSOR_TRANSFORM))
 
#define GST_IS_TENSOR_TRANSFORM_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TENSOR_TRANSFORM))
 
#define GST_TENSOR_TRANSFORM_CAST(obj)   ((GstTensorTransform *)(obj))
 

Typedefs

typedef struct _GstTensorTransform GstTensorTransform
 
typedef struct _GstTensorTransformClass GstTensorTransformClass
 
typedef enum _tensor_transform_mode tensor_transform_mode
 
typedef struct _tensor_transform_dimchg tensor_transform_dimchg
 Internal data structure for dimchg mode. More...
 
typedef struct _tensor_transform_typecast tensor_transform_typecast
 Internal data structure for typecast mode. More...
 
typedef struct _tensor_transform_arithmetic tensor_transform_arithmetic
 Internal data structure for arithmetic mode. More...
 
typedef struct _tensor_transform_transpose tensor_transform_transpose
 Internal data structure for transpose mode. More...
 
typedef struct _tensor_transform_stand tensor_transform_stand
 Internal data structure for stand mode. More...
 
typedef struct _tensor_transform_clamp tensor_transform_clamp
 Internal data structure for clamp mode. More...
 
typedef struct _tensor_transform_padding tensor_transform_padding
 Internal data structure for padding mode. More...
 

Enumerations

enum  _tensor_transform_mode {
  GTT_DIMCHG = 0, GTT_TYPECAST, GTT_ARITHMETIC, GTT_TRANSPOSE,
  GTT_STAND, GTT_CLAMP, GTT_PADDING, GTT_UNKNOWN = -1
}
 
enum  tensor_transform_operator {
  GTT_OP_TYPECAST = 0, GTT_OP_ADD = 1, GTT_OP_MUL = 2, GTT_OP_DIV = 3,
  GTT_OP_UNKNOWN
}
 
enum  tensor_transform_stand_mode { STAND_DEFAULT = 0, STAND_DC_AVERAGE = 1, STAND_END }
 
enum  tensor_transform_padding_axis {
  PADDING_LEFT = 0, PADDING_RIGHT = 1, PADDING_TOP = 2, PADDING_BOTTOM = 3,
  PADDING_FRONT = 4, PADDING_BACK = 5, PADDING_END
}
 

Functions

GType gst_tensor_transform_get_type (void)
 Get Type function required for gst elements. More...
 

Detailed Description

GStreamer plugin to transform tensor dimension or type.

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
10 Jul 2018
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.

Definition in file gsttensor_transform.h.

Macro Definition Documentation

◆ GST_IS_TENSOR_TRANSFORM

#define GST_IS_TENSOR_TRANSFORM (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TENSOR_TRANSFORM))

Definition at line 48 of file gsttensor_transform.h.

◆ GST_IS_TENSOR_TRANSFORM_CLASS

#define GST_IS_TENSOR_TRANSFORM_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TENSOR_TRANSFORM))

Definition at line 50 of file gsttensor_transform.h.

◆ GST_TENSOR_TRANSFORM

#define GST_TENSOR_TRANSFORM (   obj)    (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TENSOR_TRANSFORM,GstTensorTransform))

Definition at line 44 of file gsttensor_transform.h.

◆ GST_TENSOR_TRANSFORM_CAST

#define GST_TENSOR_TRANSFORM_CAST (   obj)    ((GstTensorTransform *)(obj))

Definition at line 52 of file gsttensor_transform.h.

◆ GST_TENSOR_TRANSFORM_CLASS

#define GST_TENSOR_TRANSFORM_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TENSOR_TRANSFORM,GstTensorTransformClass))

Definition at line 46 of file gsttensor_transform.h.

◆ GST_TYPE_TENSOR_TRANSFORM

#define GST_TYPE_TENSOR_TRANSFORM   (gst_tensor_transform_get_type())

Definition at line 42 of file gsttensor_transform.h.

Typedef Documentation

◆ GstTensorTransform

Definition at line 54 of file gsttensor_transform.h.

◆ GstTensorTransformClass

Definition at line 55 of file gsttensor_transform.h.

◆ tensor_transform_arithmetic

Internal data structure for arithmetic mode.

◆ tensor_transform_clamp

Internal data structure for clamp mode.

◆ tensor_transform_dimchg

Internal data structure for dimchg mode.

◆ tensor_transform_mode

◆ tensor_transform_padding

Internal data structure for padding mode.

◆ tensor_transform_stand

Internal data structure for stand mode.

◆ tensor_transform_transpose

Internal data structure for transpose mode.

◆ tensor_transform_typecast

Internal data structure for typecast mode.

Enumeration Type Documentation

◆ _tensor_transform_mode

Enumerator
GTT_DIMCHG 
GTT_TYPECAST 
GTT_ARITHMETIC 
GTT_TRANSPOSE 
GTT_STAND 
GTT_CLAMP 
GTT_PADDING 
GTT_UNKNOWN 

Definition at line 57 of file gsttensor_transform.h.

◆ tensor_transform_operator

Enumerator
GTT_OP_TYPECAST 
GTT_OP_ADD 
GTT_OP_MUL 
GTT_OP_DIV 
GTT_OP_UNKNOWN 

Definition at line 70 of file gsttensor_transform.h.

◆ tensor_transform_padding_axis

Enumerator
PADDING_LEFT 
PADDING_RIGHT 
PADDING_TOP 
PADDING_BOTTOM 
PADDING_FRONT 
PADDING_BACK 
PADDING_END 

Definition at line 87 of file gsttensor_transform.h.

◆ tensor_transform_stand_mode

Enumerator
STAND_DEFAULT 
STAND_DC_AVERAGE 
STAND_END 

Definition at line 80 of file gsttensor_transform.h.

Function Documentation

◆ gst_tensor_transform_get_type()

GType gst_tensor_transform_get_type ( void  )

Get Type function required for gst elements.