2
* Copyright © 2007,2008 Jaap Haitsma <jaap@haitsma.org>
3
* Copyright © 2007-2009 daniel g. siegel <dgsiegel@gnome.org>
4
* Copyright © 2008 Ryan zeigler <zeiglerr@gmail.com>
5
* Copyright © 2009 Filippo Argiolas <filippo.argiolas@gmail.com>
7
* Licensed under the GNU General Public License Version 2
9
* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version.
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* You should have received a copy of the GNU General Public License
20
* along with this program. If not, see <http://www.gnu.org/licenses/>.
23
#ifndef __CHEESE_CAMERA_DEVICE_H__
24
#define __CHEESE_CAMERA_DEVICE_H__
26
#include <glib-object.h>
31
#define CHEESE_TYPE_CAMERA_DEVICE (cheese_camera_device_get_type ())
32
#define CHEESE_CAMERA_DEVICE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CHEESE_TYPE_CAMERA_DEVICE, \
34
#define CHEESE_CAMERA_DEVICE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), CHEESE_TYPE_CAMERA_DEVICE, \
35
CheeseCameraDeviceClass))
36
#define CHEESE_IS_CAMERA_DEVICE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CHEESE_TYPE_CAMERA_DEVICE))
37
#define CHEESE_IS_CAMERA_DEVICE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), CHEESE_TYPE_CAMERA_DEVICE))
38
#define CHEESE_CAMERA_DEVICE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CHEESE_TYPE_CAMERA_DEVICE, \
39
CheeseCameraDeviceClass))
48
GObjectClass parent_class;
49
} CheeseCameraDeviceClass;
51
#define CHEESE_TYPE_VIDEO_FORMAT (cheese_video_format_get_type ())
59
GType cheese_video_format_get_type (void) G_GNUC_CONST;
61
GType cheese_camera_device_get_type (void) G_GNUC_CONST;
63
CheeseCameraDevice *cheese_camera_device_new (const gchar *device_id,
64
const gchar *device_file,
65
const gchar *product_name,
69
GstCaps * cheese_camera_device_get_caps_for_format (CheeseCameraDevice *device,
70
CheeseVideoFormat *format);
71
CheeseVideoFormat *cheese_camera_device_get_best_format (CheeseCameraDevice *device);
72
GList * cheese_camera_device_get_format_list (CheeseCameraDevice *device);
74
const gchar *cheese_camera_device_get_name (CheeseCameraDevice *device);
75
const gchar *cheese_camera_device_get_src (CheeseCameraDevice *device);
76
const gchar *cheese_camera_device_get_id (CheeseCameraDevice *device);
77
const gchar *cheese_camera_device_get_device_file (CheeseCameraDevice *device);
83
#endif /* __CHEESE_CAMERA_DEVICE_H__ */