Doxygen Book
gsttensor_reposrc.c File Reference

GStreamer plugin to handle tensor repository. More...

#include <string.h>
#include "gsttensor_repo.h"
#include "gsttensor_reposrc.h"
Include dependency graph for gsttensor_reposrc.c:

Go to the source code of this file.

Macros

#define GST_CAT_DEFAULT   gst_tensor_reposrc_debug
 
#define CAPS_STRING   GST_TENSOR_CAP_DEFAULT "; " GST_TENSORS_CAP_DEFAULT
 
#define DEFAULT_SILENT   TRUE
 
#define DEFAULT_INDEX   0
 
#define INVALID_INDEX   G_MAXUINT
 
#define gst_tensor_reposrc_parent_class   parent_class
 

Enumerations

enum  { PROP_0, PROP_CAPS, PROP_SLOT_ID, PROP_SILENT }
 tensor_reposrc properties More...
 

Functions

 GST_DEBUG_CATEGORY_STATIC (gst_tensor_reposrc_debug)
 
static void gst_tensor_reposrc_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec)
 set property of tensor_reposrc More...
 
static void gst_tensor_reposrc_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec)
 get property of tensor_reposrc More...
 
static void gst_tensor_reposrc_dispose (GObject *object)
 object dispose of tensor_reposrc More...
 
static GstCaps * gst_tensor_reposrc_getcaps (GstBaseSrc *src, GstCaps *filter)
 get cap of tensor_reposrc More...
 
static GstFlowReturn gst_tensor_reposrc_create (GstPushSrc *src, GstBuffer **buffer)
 create func of tensor_reposrc More...
 
 G_DEFINE_TYPE (GstTensorRepoSrc, gst_tensor_reposrc, GST_TYPE_PUSH_SRC)
 
static void gst_tensor_reposrc_class_init (GstTensorRepoSrcClass *klass)
 class initialization of tensor_reposrc More...
 
static void gst_tensor_reposrc_init (GstTensorRepoSrc *self)
 object initialization of tensor_reposrc More...
 
static GstBuffer * gst_tensor_reposrc_gen_dummy_buffer (GstTensorRepoSrc *self)
 create dummy buffer for initialization 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_reposrc

Pop 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_reposrc.c.

Macro Definition Documentation

◆ CAPS_STRING

#define CAPS_STRING   GST_TENSOR_CAP_DEFAULT "; " GST_TENSORS_CAP_DEFAULT

Definition at line 41 of file gsttensor_reposrc.c.

◆ DEFAULT_INDEX

#define DEFAULT_INDEX   0

Definition at line 55 of file gsttensor_reposrc.c.

◆ DEFAULT_SILENT

#define DEFAULT_SILENT   TRUE

Definition at line 54 of file gsttensor_reposrc.c.

◆ GST_CAT_DEFAULT

#define GST_CAT_DEFAULT   gst_tensor_reposrc_debug

Definition at line 40 of file gsttensor_reposrc.c.

◆ gst_tensor_reposrc_parent_class

#define gst_tensor_reposrc_parent_class   parent_class

Definition at line 67 of file gsttensor_reposrc.c.

◆ INVALID_INDEX

#define INVALID_INDEX   G_MAXUINT

Definition at line 56 of file gsttensor_reposrc.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

tensor_reposrc properties

Enumerator
PROP_0 
PROP_CAPS 
PROP_SLOT_ID 
PROP_SILENT 

Definition at line 46 of file gsttensor_reposrc.c.

Function Documentation

◆ G_DEFINE_TYPE()

G_DEFINE_TYPE ( GstTensorRepoSrc  ,
gst_tensor_reposrc  ,
GST_TYPE_PUSH_SRC   
)

◆ GST_DEBUG_CATEGORY_STATIC()

GST_DEBUG_CATEGORY_STATIC ( gst_tensor_reposrc_debug  )

◆ gst_tensor_reposrc_class_init()

static void gst_tensor_reposrc_class_init ( GstTensorRepoSrcClass klass)
static

class initialization of tensor_reposrc

Definition at line 74 of file gsttensor_reposrc.c.

Here is the call graph for this function:

◆ gst_tensor_reposrc_create()

static GstFlowReturn gst_tensor_reposrc_create ( GstPushSrc *  src,
GstBuffer **  buffer 
)
static

create func of tensor_reposrc

Definition at line 325 of file gsttensor_reposrc.c.

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

◆ gst_tensor_reposrc_dispose()

static void gst_tensor_reposrc_dispose ( GObject *  object)
static

object dispose of tensor_reposrc

Definition at line 141 of file gsttensor_reposrc.c.

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

◆ gst_tensor_reposrc_gen_dummy_buffer()

static GstBuffer* gst_tensor_reposrc_gen_dummy_buffer ( GstTensorRepoSrc self)
static

create dummy buffer for initialization

Definition at line 290 of file gsttensor_reposrc.c.

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

◆ gst_tensor_reposrc_get_property()

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

get property of tensor_reposrc

Definition at line 265 of file gsttensor_reposrc.c.

Here is the caller graph for this function:

◆ gst_tensor_reposrc_getcaps()

static GstCaps * gst_tensor_reposrc_getcaps ( GstBaseSrc *  src,
GstCaps *  filter 
)
static

get cap of tensor_reposrc

Definition at line 160 of file gsttensor_reposrc.c.

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

◆ gst_tensor_reposrc_init()

static void gst_tensor_reposrc_init ( GstTensorRepoSrc self)
static

object initialization of tensor_reposrc

Definition at line 126 of file gsttensor_reposrc.c.

Here is the call graph for this function:

◆ gst_tensor_reposrc_set_property()

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

set property of tensor_reposrc

Definition at line 201 of file gsttensor_reposrc.c.

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