Doxygen Book
tensor_converter_custom.h File Reference

NNStreamer APIs for tensor_converter custom condition. More...

#include <glib.h>
#include <gst/gst.h>
#include "tensor_typedef.h"
Include dependency graph for tensor_converter_custom.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int nnstreamer_converter_custom_register (const gchar *name, tensor_converter_custom func, void *data)
 Register the custom callback function. More...
 
int nnstreamer_converter_custom_unregister (const gchar *name)
 Unregister the custom callback function. More...
 

Variables

G_BEGIN_DECLS typedef GstBuffer *(* tensor_converter_custom )(GstBuffer *in_buf, void *data, GstTensorsConfig *config)
 Convert to tensors as customized operation. More...
 

Detailed Description

NNStreamer APIs for tensor_converter custom condition.

GStreamer/NNStreamer Tensor-Converter Copyright (C) 2021 Gichan Jang gicha.nosp@m.n2.j.nosp@m.ang@s.nosp@m.amsu.nosp@m.ng.co.nosp@m.m

Date
18 Mar 2021
See also
https://github.com/nnstreamer/nnstreamer
Author
Gichan Jang gicha.nosp@m.n2.j.nosp@m.ang@s.nosp@m.amsu.nosp@m.ng.co.nosp@m.m
Bug:
No known bugs except for NYI items

Definition in file tensor_converter_custom.h.

Function Documentation

◆ nnstreamer_converter_custom_register()

int nnstreamer_converter_custom_register ( const gchar *  name,
tensor_converter_custom  func,
void *  data 
)

Register the custom callback function.

Parameters
[in]nameThe name of tensor_converter custom callback function.
[in]funcThe custom condition function body
[in/out]data The internal data for the function
Returns
0 if success. -ERRNO if error.

Register the custom callback function.

Returns
0 if success. -ERRNO if error.

Definition at line 2473 of file gsttensor_converter.c.

Here is the call graph for this function:

◆ nnstreamer_converter_custom_unregister()

int nnstreamer_converter_custom_unregister ( const gchar *  name)

Unregister the custom callback function.

Parameters
[in]nameThe registered name of tensor_converter custom callback function.
Returns
0 if success. -ERRNO if error.

Unregister the custom callback function.

Returns
0 if success. -ERRNO if error.

Definition at line 2500 of file gsttensor_converter.c.

Here is the call graph for this function:

Variable Documentation

◆ tensor_converter_custom

G_BEGIN_DECLS typedef GstBuffer*(* tensor_converter_custom) (GstBuffer *in_buf, void *data, GstTensorsConfig *config)

Convert to tensors as customized operation.

Parameters
[in]in_bufthe input stream buffer
[in/out]data private data for the callback
[out]configtensors config structure to be filled
Returns
output buffer filled by user

Definition at line 31 of file tensor_converter_custom.h.