Debian Codegraph @

gst/tensordecoders/gsttensordecodebin.h

raw
1 /* GStreamer object detection overlay
2 * Copyright (C) <2025> Collabora Ltd.
3 * @author: Daniel Morin <[email protected]>
4 *
5 * gsttensordecodebin.h
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
16 *
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
21 */
22
23 #ifndef __GST_TENSOR_DECODE_BIN__
24 #define __GST_TENSOR_DECODE_BIN__
25
26 #include <gst/gst.h>
27
28 G_BEGIN_DECLS
29
30 #define GST_TYPE_TENSORDECODEBIN (gst_tensordecodebin_get_type ())
31 G_DECLARE_FINAL_TYPE (GstTensorDecodeBin, gst_tensordecodebin,
32 GST, TENSORDECODEBIN, GstBin)
33
34 struct _GstTensorDecodeBin
35 {
36 GstBin basebin;
37 GstPad *sinkpad;
38 GstPad *srcpad;
39
40 // only change under object lock
41 guint32 factories_cookie;
42
43 // only change under object lock
44 GList *tensordec_factories;
45
46 GstCaps *last_event_caps;
47 GstCaps *aggregated_caps;
48 };
49
50 struct _GstTensorDecodeBinClass
51 {
52 GstBin parent_class;
53 };
54
55 GST_ELEMENT_REGISTER_DECLARE (tensordecodebin)
56
57 G_END_DECLS
58 #endif /* __GST_TENSOR_DECODE_BIN__ */