/usr/include/cheese/cheese-camera.h is in libcheese-dev 3.14.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | /*
* Copyright © 2007,2008 Jaap Haitsma <jaap@haitsma.org>
* Copyright © 2007-2009 daniel g. siegel <dgsiegel@gnome.org>
* Copyright © 2008 Ryan zeigler <zeiglerr@gmail.com>
* Copyright © 2010 Yuvaraj Pandian T <yuvipanda@yuvi.in>
*
* Licensed under the GNU General Public License Version 2
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __CHEESE_CAMERA_H__
#define __CHEESE_CAMERA_H__
#include <glib-object.h>
#include <clutter/clutter.h>
#include <cheese-camera-device.h>
#include <cheese-effect.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
G_BEGIN_DECLS
#define CHEESE_TYPE_CAMERA (cheese_camera_get_type ())
#define CHEESE_CAMERA(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CHEESE_TYPE_CAMERA, CheeseCamera))
#define CHEESE_CAMERA_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), CHEESE_TYPE_CAMERA, CheeseCameraClass))
#define CHEESE_IS_CAMERA(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CHEESE_TYPE_CAMERA))
#define CHEESE_IS_CAMERA_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), CHEESE_TYPE_CAMERA))
#define CHEESE_CAMERA_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CHEESE_TYPE_CAMERA, CheeseCameraClass))
typedef struct _CheeseCameraPrivate CheeseCameraPrivate;
typedef struct _CheeseCameraClass CheeseCameraClass;
typedef struct _CheeseCamera CheeseCamera;
/**
* CheeseCameraClass:
* @photo_saved: invoked when a photo was saved to disk
* @photo_taken: invoked when a photo was taken
* @video_saved: invoked when a video was saved to disk
* @state_flags_changed: invoked when the state of the camera #GstElement
* changed
*
* Class for #CheeseCamera.
*/
struct _CheeseCameraClass
{
/*< private >*/
GObjectClass parent_class;
/*< public >*/
void (*photo_saved)(CheeseCamera *camera);
void (*photo_taken)(CheeseCamera *camera, GdkPixbuf *pixbuf);
void (*video_saved)(CheeseCamera *camera);
void (*state_flags_changed)(CheeseCamera *camera, GstState new_state);
};
/**
* CheeseCamera:
*
* Use the accessor functions below.
*/
struct _CheeseCamera
{
/*< private >*/
GObject parent;
CheeseCameraPrivate *priv;
};
/**
* CheeseCameraError:
* @CHEESE_CAMERA_ERROR_UNKNOWN: unknown error
* @CHEESE_CAMERA_ERROR_ELEMENT_NOT_FOUND: a required GStreamer element was not
* found
* @CHEESE_CAMERA_ERROR_NO_DEVICE: a #CheeseCameraDevice was not found
*
* Errors that can occur during camera setup, when calling
* cheese_camera_setup().
*/
typedef enum
{
CHEESE_CAMERA_ERROR_UNKNOWN,
CHEESE_CAMERA_ERROR_ELEMENT_NOT_FOUND,
CHEESE_CAMERA_ERROR_NO_DEVICE
} CheeseCameraError;
GType cheese_camera_get_type (void) G_GNUC_CONST;
CheeseCamera *cheese_camera_new (ClutterTexture *video_texture,
const gchar *camera_device_node,
gint x_resolution,
gint y_resolution);
const CheeseVideoFormat *cheese_camera_get_current_video_format (CheeseCamera *camera);
void cheese_camera_setup (CheeseCamera *camera, const gchar *uuid, GError **error);
void cheese_camera_play (CheeseCamera *camera);
void cheese_camera_stop (CheeseCamera *camera);
void cheese_camera_set_effect (CheeseCamera *camera, CheeseEffect *effect);
void cheese_camera_connect_effect_texture (CheeseCamera *camera,
CheeseEffect *effect,
ClutterTexture *texture);
void cheese_camera_start_video_recording (CheeseCamera *camera, const gchar *filename);
void cheese_camera_stop_video_recording (CheeseCamera *camera);
gboolean cheese_camera_take_photo (CheeseCamera *camera, const gchar *filename);
gboolean cheese_camera_take_photo_pixbuf (CheeseCamera *camera);
CheeseCameraDevice *cheese_camera_get_selected_device (CheeseCamera *camera);
GPtrArray * cheese_camera_get_camera_devices (CheeseCamera *camera);
void cheese_camera_set_device_by_device_node (CheeseCamera *camera, const gchar *file);
void cheese_camera_switch_camera_device (CheeseCamera *camera);
GList * cheese_camera_get_video_formats (CheeseCamera *camera);
void cheese_camera_set_video_format (CheeseCamera *camera,
CheeseVideoFormat *format);
gboolean cheese_camera_get_balance_property_range (CheeseCamera *camera,
const gchar *property,
gdouble *min, gdouble *max, gdouble *def);
void cheese_camera_set_balance_property (CheeseCamera *camera, const gchar *property, gdouble value);
void cheese_camera_toggle_effects_pipeline (CheeseCamera *camera, gboolean active);
gchar *cheese_camera_get_recorded_time (CheeseCamera *camera);
G_END_DECLS
#endif /* __CHEESE_CAMERA_H__ */
|