2 * Copyright (C) 2018 Collabora Inc.
4 * Nicolas Dufresne <nicolas.dufresne@collabora.com>
5 * Ezequiel Garcia <ezequiel@collabora.com>
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.
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.
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.
24 #ifndef __GST_V4L2_FWHT_ENC_H__
25 #define __GST_V4L2_FWHT_ENC_H__
28 #include "gstv4l2videoenc.h"
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;
44 struct _GstV4l2FWHTEnc
46 GstV4l2VideoEnc parent;
49 struct _GstV4l2FWHTEncClass
51 GstV4l2VideoEncClass parent_class;
54 GType gst_v4l2_fwht_enc_get_type (void);
56 gboolean gst_v4l2_is_fwht_enc (GstCaps * sink_caps, GstCaps * src_caps);
58 void gst_v4l2_fwht_enc_register (GstPlugin * plugin, const gchar * basename,
59 const gchar * device_path, GstCaps * sink_caps, GstCaps * src_caps);
62 #endif /* __GST_V4L2_FWHT_ENC_H__ */