Custom tensor processing interface for simple functions. More...
#include <errno.h>
#include <glib.h>
#include <tensor_filter_custom_easy.h>
#include <nnstreamer_log.h>
#include <nnstreamer_plugin_api_util.h>
#include <nnstreamer_subplugin.h>
#include <nnstreamer_util.h>
Go to the source code of this file.
Classes | |
struct | runtime_data |
The easy-filter user's data. More... | |
Functions | |
void | init_filter_custom_easy (void) |
internal_data More... | |
static void | custom_free_internal_data (internal_data *data) |
Internal function to release internal data. More... | |
int | NNS_custom_easy_register (const char *modelname, NNS_custom_invoke func, void *data, const GstTensorsInfo *in_info, const GstTensorsInfo *out_info) |
Register the custom-easy tensor function. More info in .h. More... | |
int | NNS_custom_easy_dynamic_register (const char *modelname, NNS_custom_invoke_dynamic func, void *data, const GstTensorsInfo *in_info) |
Register the custom-easy tensor function. More info in .h. More... | |
int | NNS_custom_easy_unregister (const char *modelname) |
Unregister the custom-easy tensor function. More... | |
static int | custom_open (const GstTensorFilterProperties *prop, void **private_data) |
Callback required by tensor_filter subplugin. More... | |
static void | custom_close (const GstTensorFilterProperties *prop, void **private_data) |
Callback required by tensor_filter subplugin. More... | |
static int | custom_invoke (const GstTensorFilterFramework *self, GstTensorFilterProperties *prop, void *private_data, const GstTensorMemory *input, GstTensorMemory *output) |
Callback required by tensor_filter subplugin. More... | |
static int | custom_getFrameworkInfo (const GstTensorFilterFramework *self, const GstTensorFilterProperties *prop, void *private_data, GstTensorFilterFrameworkInfo *fw_info) |
V1 tensor-filter wrapper callback function, "getFrameworkInfo". More... | |
static int | custom_getModelInfo (const GstTensorFilterFramework *self, const GstTensorFilterProperties *prop, void *private_data, model_info_ops ops, GstTensorsInfo *in_info, GstTensorsInfo *out_info) |
C V1 tensor-filter wrapper callback function, "getModelInfo". More... | |
static int | custom_eventHandler (const GstTensorFilterFramework *self, const GstTensorFilterProperties *prop, void *private_data, event_ops ops, GstTensorFilterFrameworkEventData *data) |
C V1 tensor-filter wrapper callback function, "eventHandler". More... | |
void | fini_filter_custom_easy (void) |
Destruct the subplugin. More... | |
Variables | |
internal_data | |
static GstTensorFilterFramework | NNS_support_custom_easy |
Custom tensor processing interface for simple functions.
GStreamer Tensor_Filter, Customized Module, Easy Mode Copyright (C) 2019 MyungJoo Ham myung 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.
Definition in file tensor_filter_custom_easy.c.
|
static |
Callback required by tensor_filter subplugin.
Definition at line 230 of file tensor_filter_custom_easy.c.
|
static |
C V1 tensor-filter wrapper callback function, "eventHandler".
Definition at line 319 of file tensor_filter_custom_easy.c.
|
static |
Internal function to release internal data.
Definition at line 62 of file tensor_filter_custom_easy.c.
|
static |
V1 tensor-filter wrapper callback function, "getFrameworkInfo".
Definition at line 278 of file tensor_filter_custom_easy.c.
|
static |
C V1 tensor-filter wrapper callback function, "getModelInfo".
Definition at line 300 of file tensor_filter_custom_easy.c.
|
static |
Callback required by tensor_filter subplugin.
Definition at line 243 of file tensor_filter_custom_easy.c.
|
static |
Callback required by tensor_filter subplugin.
Definition at line 165 of file tensor_filter_custom_easy.c.
void fini_filter_custom_easy | ( | void | ) |
Destruct the subplugin.
Definition at line 352 of file tensor_filter_custom_easy.c.
void init_filter_custom_easy | ( | void | ) |
internal_data
Initialize this object for tensor_filter subplugin runtime register.
< The easy-filter writer's data
Definition at line 33 of file tensor_filter_custom_easy.c.
int NNS_custom_easy_dynamic_register | ( | const char * | modelname, |
NNS_custom_invoke_dynamic | func, | ||
void * | data, | ||
const GstTensorsInfo * | in_info | ||
) |
Register the custom-easy tensor function. More info in .h.
Register the custom-easy tensor function for dynamic invoke.
Definition at line 112 of file tensor_filter_custom_easy.c.
int NNS_custom_easy_register | ( | const char * | modelname, |
NNS_custom_invoke | func, | ||
void * | data, | ||
const GstTensorsInfo * | in_info, | ||
const GstTensorsInfo * | out_info | ||
) |
Register the custom-easy tensor function. More info in .h.
Register the custom-easy tensor function.
Definition at line 76 of file tensor_filter_custom_easy.c.
int NNS_custom_easy_unregister | ( | const char * | modelname | ) |
Unregister the custom-easy tensor function.
Definition at line 144 of file tensor_filter_custom_easy.c.
Definition at line 48 of file tensor_filter_custom_easy.c.
|
static |
Definition at line 332 of file tensor_filter_custom_easy.c.