analytics: Fix transfer annotations of gst_tensor_check_type()

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9293>
This commit is contained in:
Sebastian Dröge 2025-06-26 18:19:27 +03:00 committed by GStreamer Marge Bot
parent 46df60ed1d
commit bebec6d965
3 changed files with 5 additions and 5 deletions

View File

@ -1365,7 +1365,7 @@ Otherwise FALSE will be returned.</doc>
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/analytics/gsttensor.c">The data type of the tensor</doc>
<type name="TensorDataType" c:type="GstTensorDataType"/>
</parameter>
<parameter name="data" transfer-ownership="full">
<parameter name="data" transfer-ownership="none">
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/analytics/gsttensor.c">#GstBuffer holding tensor data</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
@ -1628,7 +1628,7 @@ Otherwise NULL will be returned.</doc>
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/analytics/gsttensormeta.c">The data type of the tensor</doc>
<type name="TensorDataType" c:type="GstTensorDataType"/>
</parameter>
<parameter name="data" transfer-ownership="full">
<parameter name="data" transfer-ownership="none">
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/analytics/gsttensormeta.c">#GstBuffer holding tensor data</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>

View File

@ -263,7 +263,7 @@ gst_tensor_data_type_get_name (GstTensorDataType data_type)
* @order: The order of the tensor to read from the memory
* @num_dims: The number of dimensions that the tensor can have
* @data_type: The data type of the tensor
* @data: (transfer full): #GstBuffer holding tensor data
* @data: #GstBuffer holding tensor data
*
* Validate the tensor whether it mathces the reading order, dimensions and the data type.
* Validate whether the #GstBuffer has enough size to hold the tensor data.

View File

@ -213,13 +213,13 @@ gst_tensor_meta_get_by_id (GstTensorMeta * tmeta, GQuark id)
* @order: The order of the tensor to read from the memory
* @num_dims: The number of dimensions that the tensor can have
* @data_type: The data type of the tensor
* @data: (transfer full): #GstBuffer holding tensor data
* @data: #GstBuffer holding tensor data
*
* Get the first tensor from the #GstTensorMeta identified by @tensor_id, mathcing
* the reading order, dimensions and the data type.
* Validate whether the #GstBuffer has enough size to hold the tensor data.
*
* Return: (nullable)(transfer none): a GstTensor with id matching @tensor_id,
* Return: (nullable) (transfer none): a GstTensor with id matching @tensor_id,
* reading order from the memory matching @order, dimensions matching @num_dims,
* data type matching @data_type. The #GstBuffer mathcing @data should
* have enough size to hold the tensor data.