v4l2bufferpool: support orphaning
[platform/upstream/gst-plugins-good.git] / sys / v4l2 / gstv4l2fwhtenc.h
1 /*
2  * Copyright (C) 2018 Collabora Inc.
3  *    Authors:
4  *    Nicolas Dufresne <nicolas.dufresne@collabora.com>
5  *    Ezequiel Garcia <ezequiel@collabora.com>
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
24 #ifndef __GST_V4L2_FWHT_ENC_H__
25 #define __GST_V4L2_FWHT_ENC_H__
26
27 #include <gst/gst.h>
28 #include "gstv4l2videoenc.h"
29
30 G_BEGIN_DECLS
31 #define GST_TYPE_V4L2_FWHT_ENC \
32   (gst_v4l2_fwht_enc_get_type())
33 #define GST_V4L2_FWHT_ENC(obj) \
34   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_V4L2_FWHT_ENC,GstV4l2FWHTEnc))
35 #define GST_V4L2_FWHT_ENC_CLASS(klass) \
36   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_V4L2_FWHT_ENC,GstV4l2FWHTEncClass))
37 #define GST_IS_V4L2_FWHT_ENC(obj) \
38   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_V4L2_FWHT_ENC))
39 #define GST_IS_V4L2_FWHT_ENC_CLASS(obj) \
40   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_V4L2_FWHT_ENC))
41 typedef struct _GstV4l2FWHTEnc GstV4l2FWHTEnc;
42 typedef struct _GstV4l2FWHTEncClass GstV4l2FWHTEncClass;
43
44 struct _GstV4l2FWHTEnc
45 {
46   GstV4l2VideoEnc parent;
47 };
48
49 struct _GstV4l2FWHTEncClass
50 {
51   GstV4l2VideoEncClass parent_class;
52 };
53
54 GType gst_v4l2_fwht_enc_get_type (void);
55
56 gboolean gst_v4l2_is_fwht_enc (GstCaps * sink_caps, GstCaps * src_caps);
57
58 void gst_v4l2_fwht_enc_register (GstPlugin * plugin, const gchar * basename,
59     const gchar * device_path, GstCaps * sink_caps, GstCaps * src_caps);
60
61 G_END_DECLS
62 #endif /* __GST_V4L2_FWHT_ENC_H__ */