gstreamer/subprojects/gst-plugins-bad/gst-libs/gst/analytics
Daniel Morin 8169863f01 analytics: Make GstTensor more suitable for inline allocation
GstTensor contained two fields (data, dims) that were dynamicallay allocated. For
data it's for a GstBuffer and we have pool for efficient memory management. For
dims it's a small array to store the dimension of the tensor. The dims field
can be allocated inplace by moving it at the end of the structure. This will
allow a better memory management when GstTensor is stored in an analytics meta
which will take advantage of the _clear interface for re-use.

- New api to allocate and free GstTensor
To continue to support use-cases where GstTensor is not stored in an
analytics-meta we provide gst_tensor_alloc, gst_tensor_alloc_n and
gst_tensor_free that will facilitate memory management.
- Make GstTensor a boxed type

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6000>
2024-11-08 14:58:49 +00:00
..
analytics-meta-prelude.h analytics: Add documentation to hotdoc build 2024-03-04 17:33:00 +00:00
analytics.h analytics: Move tensor meta to the analytics library 2024-11-08 14:58:49 +00:00
gstanalyticsclassificationmtd.c analytics: Change pointers in getters to const 2024-09-02 12:27:37 +00:00
gstanalyticsclassificationmtd.h analytics: Change pointers in getters to const 2024-09-02 12:27:37 +00:00
gstanalyticsmeta.c analytics: Allow specific analytics-meta (Mtd) to handle their clear 2024-10-17 18:13:03 +00:00
gstanalyticsmeta.h analytics: Allow specific analytics-meta (Mtd) to handle their clear 2024-10-17 18:13:03 +00:00
gstanalyticsobjectdetectionmtd.c analytics: Change pointers in getters to const 2024-09-02 12:27:37 +00:00
gstanalyticsobjectdetectionmtd.h analytics: Change pointers in getters to const 2024-09-02 12:27:37 +00:00
gstanalyticsobjecttrackingmtd.c analytics: Change pointers in getters to const 2024-09-02 12:27:37 +00:00
gstanalyticsobjecttrackingmtd.h analytics: Change pointers in getters to const 2024-09-02 12:27:37 +00:00
gstanalyticssegmentationmtd.c analytics: add segmentation analytics-meta 2024-10-17 18:13:03 +00:00
gstanalyticssegmentationmtd.h analytics: add segmentation analytics-meta 2024-10-17 18:13:03 +00:00
gsttensor.c analytics: Make GstTensor more suitable for inline allocation 2024-11-08 14:58:49 +00:00
gsttensor.h analytics: Make GstTensor more suitable for inline allocation 2024-11-08 14:58:49 +00:00
gsttensormeta.c analytics: Make GstTensor more suitable for inline allocation 2024-11-08 14:58:49 +00:00
gsttensormeta.h analytics: Make GstTensor more suitable for inline allocation 2024-11-08 14:58:49 +00:00
meson.build analytics: Make GstTensor more suitable for inline allocation 2024-11-08 14:58:49 +00:00