Doxygen Book
gsttensor_reposink.c File Reference

GStreamer plugin to handle tensor repository. More...

#include <nnstreamer_util.h>
#include "gsttensor_repo.h"
#include "gsttensor_reposink.h"
Include dependency graph for gsttensor_reposink.c:

Go to the source code of this file.

Macros

#define GST_CAT_DEFAULT   gst_tensor_reposink_debug
 
#define DEFAULT_SIGNAL_RATE   0
 
#define DEFAULT_SILENT   TRUE
 
#define DEFAULT_QOS   TRUE
 
#define DEFAULT_INDEX   0
 
#define gst_tensor_reposink_parent_class   parent_class
 

Enumerations

enum  { PROP_0, PROP_SIGNAL_RATE, PROP_SLOT, PROP_SILENT }
 tensor_reposink properties More...
 

Functions

 GST_DEBUG_CATEGORY_STATIC (gst_tensor_reposink_debug)
 
static void gst_tensor_reposink_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec)
 set property vmethod More...
 
static void gst_tensor_reposink_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec)
 get property vmethod More...
 
static void gst_tensor_reposink_dispose (GObject *object)
 dispose vmethod implementation More...
 
static gboolean gst_tensor_reposink_start (GstBaseSink *sink)
 start vmethod implementation More...
 
static gboolean gst_tensor_reposink_stop (GstBaseSink *sink)
 stop vmethod implementation More...
 
static gboolean gst_tensor_reposink_event (GstBaseSink *sink, GstEvent *event)
 Handle events. More...
 
static gboolean gst_tensor_reposink_query (GstBaseSink *sink, GstQuery *query)
 query vmethod implementation More...
 
static GstFlowReturn gst_tensor_reposink_render (GstBaseSink *sink, GstBuffer *buffer)
 render vmethod implementation More...
 
static GstFlowReturn gst_tensor_reposink_render_list (GstBaseSink *sink, GstBufferList *buffer_list)
 render list vmethod implementation More...
 
static gboolean gst_tensor_reposink_set_caps (GstBaseSink *sink, GstCaps *caps)
 set_caps vmethod implementation More...
 
static GstCaps * gst_tensor_reposink_get_caps (GstBaseSink *sink, GstCaps *filter)
 get_caps vmethod implementation More...
 
 G_DEFINE_TYPE (GstTensorRepoSink, gst_tensor_reposink, GST_TYPE_BASE_SINK)
 
static void gst_tensor_reposink_class_init (GstTensorRepoSinkClass *klass)
 class initialization of tensor_reposink More...
 
static void gst_tensor_reposink_init (GstTensorRepoSink *self)
 initialization of tensor_reposink More...
 
static gboolean gst_tensor_reposink_render_buffer (GstTensorRepoSink *self, GstBuffer *buffer)
 Push GstBuffer. More...
 

Detailed Description

GStreamer plugin to handle tensor repository.

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 Samsung Electronics Co., Ltd.

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. SECTION: element-tensor_reposink

Set element to handle tensor repo

Date
19 Nov 2018
See also
https://github.com/nnstreamer/nnstreamer
Author
Jijoong Moon jijoo.nosp@m.ng.m.nosp@m.oon@s.nosp@m.amsu.nosp@m.ng.co.nosp@m.m
Bug:
No known bugs except for NYI items

Definition in file gsttensor_reposink.c.

Macro Definition Documentation

◆ DEFAULT_INDEX

#define DEFAULT_INDEX   0

Definition at line 56 of file gsttensor_reposink.c.

◆ DEFAULT_QOS

#define DEFAULT_QOS   TRUE

Definition at line 55 of file gsttensor_reposink.c.

◆ DEFAULT_SIGNAL_RATE

#define DEFAULT_SIGNAL_RATE   0

Definition at line 53 of file gsttensor_reposink.c.

◆ DEFAULT_SILENT

#define DEFAULT_SILENT   TRUE

Definition at line 54 of file gsttensor_reposink.c.

◆ GST_CAT_DEFAULT

#define GST_CAT_DEFAULT   gst_tensor_reposink_debug

Definition at line 40 of file gsttensor_reposink.c.

◆ gst_tensor_reposink_parent_class

#define gst_tensor_reposink_parent_class   parent_class

Definition at line 79 of file gsttensor_reposink.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

tensor_reposink properties

Enumerator
PROP_0 
PROP_SIGNAL_RATE 
PROP_SLOT 
PROP_SILENT 

Definition at line 45 of file gsttensor_reposink.c.

Function Documentation

◆ G_DEFINE_TYPE()

G_DEFINE_TYPE ( GstTensorRepoSink  ,
gst_tensor_reposink  ,
GST_TYPE_BASE_SINK   
)

◆ GST_DEBUG_CATEGORY_STATIC()

GST_DEBUG_CATEGORY_STATIC ( gst_tensor_reposink_debug  )

◆ gst_tensor_reposink_class_init()

static void gst_tensor_reposink_class_init ( GstTensorRepoSinkClass klass)
static

class initialization of tensor_reposink

Definition at line 86 of file gsttensor_reposink.c.

Here is the call graph for this function:

◆ gst_tensor_reposink_dispose()

static void gst_tensor_reposink_dispose ( GObject *  object)
static

dispose vmethod implementation

Definition at line 240 of file gsttensor_reposink.c.

Here is the caller graph for this function:

◆ gst_tensor_reposink_event()

static gboolean gst_tensor_reposink_event ( GstBaseSink *  sink,
GstEvent *  event 
)
static

Handle events.

GstBaseSink method implementation.

Definition at line 278 of file gsttensor_reposink.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gst_tensor_reposink_get_caps()

static GstCaps * gst_tensor_reposink_get_caps ( GstBaseSink *  sink,
GstCaps *  filter 
)
static

get_caps vmethod implementation

Definition at line 448 of file gsttensor_reposink.c.

Here is the caller graph for this function:

◆ gst_tensor_reposink_get_property()

static void gst_tensor_reposink_get_property ( GObject *  object,
guint  prop_id,
GValue *  value,
GParamSpec *  pspec 
)
static

get property vmethod

Definition at line 213 of file gsttensor_reposink.c.

Here is the caller graph for this function:

◆ gst_tensor_reposink_init()

static void gst_tensor_reposink_init ( GstTensorRepoSink self)
static

initialization of tensor_reposink

Definition at line 148 of file gsttensor_reposink.c.

Here is the call graph for this function:

◆ gst_tensor_reposink_query()

static gboolean gst_tensor_reposink_query ( GstBaseSink *  sink,
GstQuery *  query 
)
static

query vmethod implementation

Definition at line 303 of file gsttensor_reposink.c.

Here is the caller graph for this function:

◆ gst_tensor_reposink_render()

static GstFlowReturn gst_tensor_reposink_render ( GstBaseSink *  sink,
GstBuffer *  buffer 
)
static

render vmethod implementation

Definition at line 377 of file gsttensor_reposink.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gst_tensor_reposink_render_buffer()

static gboolean gst_tensor_reposink_render_buffer ( GstTensorRepoSink self,
GstBuffer *  buffer 
)
static

Push GstBuffer.

Definition at line 330 of file gsttensor_reposink.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gst_tensor_reposink_render_list()

static GstFlowReturn gst_tensor_reposink_render_list ( GstBaseSink *  sink,
GstBufferList *  buffer_list 
)
static

render list vmethod implementation

Definition at line 392 of file gsttensor_reposink.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gst_tensor_reposink_set_caps()

static gboolean gst_tensor_reposink_set_caps ( GstBaseSink *  sink,
GstCaps *  caps 
)
static

set_caps vmethod implementation

Definition at line 416 of file gsttensor_reposink.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gst_tensor_reposink_set_property()

static void gst_tensor_reposink_set_property ( GObject *  object,
guint  prop_id,
const GValue *  value,
GParamSpec *  pspec 
)
static

set property vmethod

Definition at line 175 of file gsttensor_reposink.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gst_tensor_reposink_start()

static gboolean gst_tensor_reposink_start ( GstBaseSink *  sink)
static

start vmethod implementation

Definition at line 256 of file gsttensor_reposink.c.

Here is the caller graph for this function:

◆ gst_tensor_reposink_stop()

static gboolean gst_tensor_reposink_stop ( GstBaseSink *  sink)
static

stop vmethod implementation

Definition at line 266 of file gsttensor_reposink.c.

Here is the caller graph for this function: