~ubuntu-branches/debian/jessie/cheese/jessie

« back to all changes in this revision

Viewing changes to libcheese/cheese-camera-device.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2010-05-04 17:37:18 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20100504173718-k2rx3nryi4vd0xyx
Tags: 2.30.1-1
* New upstream release.
  - HAL dependency has been dropped. Use (g)udev for v4l capability probing
    on Linux. Closes: #573774
  - Split code into separate libraries.
* debian/control.in
  - Drop Build-Depends on libhal-dev.
  - Drop Build-Depends on libebook1.2-dev.
  - Bump Build-Depends on libgtk2.0-dev to (>= 2.19.1).
  - Bump Build-Depends on libgstreamer*-dev to (>= 0.10.23).
  - Add Build-Depends on libcanberra-gtk-dev.
  - Add Build-Depends on libxtst-dev.
  - Add Build-Depends on libgudev-1.0-dev on Linux.
  - Bump Standards-Version to 3.8.4. No further changes.
* Switch to source format 3.0 (quilt)
  - Add debian/source/format.
* debian/rules
  - Drop lpia specific configure flags, lpia is dead.
* Update package layout (based on work by Ubuntu)
  - Move data files into new cheese-common package.
  - Keep binary along with its desktop and dbus service file in the cheese
    package.
  - Add libcheese-gtk18 and libcheese-gtk-dev package for the new
    libcheese-gtk library. Use a symbols file for improved shlibs
    dependencies.
  - Add Conflicts/Replaces to cheese-common to ensure proper upgrades from
    previous versions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>
 
6
 *
 
7
 * Licensed under the GNU General Public License Version 2
 
8
 *
 
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.
 
13
 *
 
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.
 
18
 *
 
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/>.
 
21
 */
 
22
 
 
23
#ifndef __CHEESE_CAMERA_DEVICE_H__
 
24
#define __CHEESE_CAMERA_DEVICE_H__
 
25
 
 
26
#include <glib-object.h>
 
27
#include <gst/gst.h>
 
28
 
 
29
G_BEGIN_DECLS
 
30
 
 
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, \
 
33
                                                                       CheeseCameraDevice))
 
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))
 
40
 
 
41
typedef struct
 
42
{
 
43
  GObject parent;
 
44
} CheeseCameraDevice;
 
45
 
 
46
typedef struct
 
47
{
 
48
  GObjectClass parent_class;
 
49
} CheeseCameraDeviceClass;
 
50
 
 
51
#define CHEESE_TYPE_VIDEO_FORMAT (cheese_video_format_get_type ())
 
52
 
 
53
typedef struct
 
54
{
 
55
  int width;
 
56
  int height;
 
57
} CheeseVideoFormat;
 
58
 
 
59
GType cheese_video_format_get_type (void) G_GNUC_CONST;
 
60
 
 
61
GType cheese_camera_device_get_type (void) G_GNUC_CONST;
 
62
 
 
63
CheeseCameraDevice *cheese_camera_device_new (const gchar *device_id,
 
64
                                              const gchar *device_file,
 
65
                                              const gchar *product_name,
 
66
                                              gint         api_version,
 
67
                                              GError **error);
 
68
 
 
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);
 
73
 
 
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);
 
78
 
 
79
 
 
80
 
 
81
G_END_DECLS
 
82
 
 
83
#endif /* __CHEESE_CAMERA_DEVICE_H__ */