GstTensorMeta

Members

meta (GstMeta) –

parent

num_tensors (gsize) –

number of tensors

tensors (GstTensor **) –
No description available

Since : 1.26


Methods

gst_tensor_meta_get

const GstTensor *
gst_tensor_meta_get (GstTensorMeta * tmeta,
                     gsize index)

Retrieves a tensor from the GstTensorMeta, the index must be smaller than num_tensors

Return: (transfer none): a GstTensor

Parameters:

tmeta

A GstTensorMeta

index

The number of the tensor to get

Returns
No description available

Since : 1.26


gst_tensor_meta_get_index_from_id

gint
gst_tensor_meta_get_index_from_id (GstTensorMeta * meta,
                                   GQuark id)

Finds the first tensor with the requsted ID in the meta

Return: The index of the tensor inthe meta, or -1 if its not found.

Parameters:

meta

a GstTensorMeta

id

The tensor id to look for

Returns
No description available

Since : 1.26


gst_tensor_meta_set

gst_tensor_meta_set (GstTensorMeta * tmeta,
                     guint num_tensors,
                     GstTensor ** tensors)

Sets tensors into the GstTensorMeta

Parameters:

tmeta

a GstTensorMeta

num_tensors

The number of tensors in the tensors array

tensors ( [in][arraylength=num_tensors][transfer: full])

An array of poiners to GstTensor

Since : 1.26


Functions

gst_tensor_meta_get_info

const GstMetaInfo *
gst_tensor_meta_get_info ()
Returns
No description available

Since : 1.26


Functions

gst_buffer_add_tensor_meta

GstTensorMeta *
gst_buffer_add_tensor_meta (GstBuffer * buffer)

Adds a GstTensorMeta to a buffer or returns the existing one

Parameters:

buffer

A writable GstBuffer

Returns ( [transfer: none])

The new GstTensorMeta

Since : 1.26


gst_buffer_get_tensor_meta

GstTensorMeta *
gst_buffer_get_tensor_meta (GstBuffer * buffer)

Gets the GstTensorMeta from a buffer

Parameters:

buffer

A GstBuffer

Returns ( [nullable][transfer: none])

The GstTensorMeta if there is wone

Since : 1.26


gst_tensor_meta_api_get_type

GType
gst_tensor_meta_api_get_type ()
Returns
No description available

Since : 1.26


Constants

GST_TENSOR_META_API_TYPE

#define GST_TENSOR_META_API_TYPE \
  (gst_tensor_meta_api_get_type())

The Tensor Meta API type

Since : 1.26


GST_TENSOR_META_INFO

#define GST_TENSOR_META_INFO \
  (gst_tensor_meta_get_info())

The Tensor Meta API Info

Since : 1.26


The results of the search are