• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GStreamer
2  * Copyright (C) 2020 Collabora Ltd.
3  *   Author: Nicolas Dufresne <nicolas.dufresne@collabora.com>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef _GST_V4L2_CODEC_DEVICE_H_
22 #define _GST_V4L2_CODEC_DEVICE_H_
23 
24 #include <gst/gst.h>
25 
26 #define GST_TYPE_V4L2_CODEC_DEVICE     (gst_v4l2_codec_device_get_type())
27 #define GST_IS_V4L2_CODEC_DEVICE(obj)  (GST_IS_MINI_OBJECT_TYPE(obj, GST_TYPE_V4L2_CODEC_DEVICE))
28 #define GST_V4L2_CODEC_DEVICE(obj)     ((GstV4l2CodecDevice *)(obj))
29 
30 typedef struct {
31   GstMiniObject mini_object;
32 
33   gchar *name;
34   guint32 function;
35   gchar *media_device_path;
36   gchar *video_device_path;
37 } GstV4l2CodecDevice;
38 
39 GType  gst_v4l2_codec_device_get_type (void);
40 GList *gst_v4l2_codec_find_devices (void);
41 void   gst_v4l2_codec_device_list_free (GList *devices);
42 
43 #endif /* _GST_V4L2_CODECS_DEVICE_H_ */
44