Update Chinese (Taiwan) translation
[cheese.git] / libcheese / cheese-camera-device.h
blob4f5d819f16678ee21148a7f79ae900e3e1ed1d79
1 /*
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>
27 #include <gst/gst.h>
29 G_BEGIN_DECLS
31 /**
32 * CheeseCameraDevice:
34 * Use the accessor functions below.
36 struct _CheeseCameraDevice
38 /*< private >*/
39 GObject parent;
40 void *unused;
43 #define CHEESE_TYPE_VIDEO_FORMAT (cheese_video_format_get_type ())
45 /**
46 * CheeseVideoFormat:
47 * @width: the width of of the video, in pixels
48 * @height: the height of the video, in pixels
50 * A description of the resolution, in pixels, of the format to capture with a
51 * #CheeseCameraDevice.
53 struct _CheeseVideoFormat
55 /*< public >*/
56 gint width;
57 gint height;
60 typedef struct _CheeseVideoFormat CheeseVideoFormat;
62 GType cheese_video_format_get_type (void);
64 #define CHEESE_TYPE_CAMERA_DEVICE (cheese_camera_device_get_type ())
65 G_DECLARE_FINAL_TYPE (CheeseCameraDevice, cheese_camera_device, CHEESE, CAMERA_DEVICE, GObject)
67 CheeseCameraDevice *cheese_camera_device_new (GstDevice *device,
68 GError **error);
70 GstCaps *cheese_camera_device_get_caps_for_format (CheeseCameraDevice *device,
71 CheeseVideoFormat *format);
72 CheeseVideoFormat *cheese_camera_device_get_best_format (CheeseCameraDevice *device);
73 GList * cheese_camera_device_get_format_list (CheeseCameraDevice *device);
75 const gchar *cheese_camera_device_get_name (CheeseCameraDevice *device);
76 GstElement * cheese_camera_device_get_src (CheeseCameraDevice *device);
78 G_END_DECLS
80 #endif /* CHEESE_CAMERA_DEVICE_H_ */