/usr/include/clutter-gst-3.0/clutter-gst/clutter-gst-camera.h is in libclutter-gst-3.0-dev 3.0.26-1.
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 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | /*
* Clutter-GStreamer.
*
* GStreamer integration library for Clutter.
*
* clutter-gst-camera-actor.h - ClutterActor using GStreamer to display/manipulate a
* camera stream.
*
* Authored By Andre Moreira Magalhaes <andre.magalhaes@collabora.co.uk>
*
* Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#if !defined(__CLUTTER_GST_H_INSIDE__) && !defined(CLUTTER_GST_COMPILATION)
#error "Only <clutter-gst/clutter-gst.h> can be included directly."
#endif
#ifndef __CLUTTER_GST_CAMERA_H__
#define __CLUTTER_GST_CAMERA_H__
#include <clutter/clutter.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <glib-object.h>
#include <gst/gstelement.h>
#include <gst/pbutils/encoding-profile.h>
#include <clutter-gst/clutter-gst-camera-device.h>
#include <clutter-gst/clutter-gst-types.h>
G_BEGIN_DECLS
#define CLUTTER_GST_TYPE_CAMERA clutter_gst_camera_get_type()
#define CLUTTER_GST_CAMERA(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
CLUTTER_GST_TYPE_CAMERA, ClutterGstCamera))
#define CLUTTER_GST_CAMERA_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST ((klass), \
CLUTTER_GST_TYPE_CAMERA, ClutterGstCameraClass))
#define CLUTTER_GST_IS_CAMERA(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
CLUTTER_GST_TYPE_CAMERA))
#define CLUTTER_GST_IS_CAMERA_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), \
CLUTTER_GST_TYPE_CAMERA))
#define CLUTTER_GST_CAMERA_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
CLUTTER_GST_TYPE_CAMERA, ClutterGstCameraClass))
typedef struct _ClutterGstCamera ClutterGstCamera;
typedef struct _ClutterGstCameraClass ClutterGstCameraClass;
typedef struct _ClutterGstCameraPrivate ClutterGstCameraPrivate;
/**
* ClutterGstCamera:
*
* Implementation of #ClutterGstPlayer that displays camera streams
* using GStreamer.
*
* The #ClutterGstCamera structure contains only private data and
* should not be accessed directly.
*/
struct _ClutterGstCamera
{
/*< private >*/
GObject parent;
ClutterGstCameraPrivate *priv;
};
/**
* ClutterGstCameraClass:
*
* Base class for #ClutterGstCamera.
*/
struct _ClutterGstCameraClass
{
/*< private >*/
GObjectClass parent_class;
void (* ready_for_capture) (ClutterGstCamera *self,
gboolean ready);
void (* photo_saved) (ClutterGstCamera *self);
void (* photo_taken) (ClutterGstCamera *self,
GdkPixbuf *pixbuf);
void (* video_saved) (ClutterGstCamera *self);
/* Future padding */
void (* _clutter_reserved1) (void);
void (* _clutter_reserved2) (void);
void (* _clutter_reserved3) (void);
void (* _clutter_reserved4) (void);
void (* _clutter_reserved5) (void);
void (* _clutter_reserved6) (void);
};
GType clutter_gst_camera_get_type (void) G_GNUC_CONST;
ClutterGstCamera * clutter_gst_camera_new (void);
ClutterGstCameraDevice *
clutter_gst_camera_get_camera_device (ClutterGstCamera *self);
gboolean clutter_gst_camera_set_camera_device (ClutterGstCamera *self,
ClutterGstCameraDevice *device);
gboolean clutter_gst_camera_supports_gamma_correction
(ClutterGstCamera *self);
gboolean clutter_gst_camera_get_gamma_range (ClutterGstCamera *self,
gdouble *min_value,
gdouble *max_value,
gdouble *default_value);
gboolean clutter_gst_camera_get_gamma (ClutterGstCamera *self,
gdouble *cur_value);
gboolean clutter_gst_camera_set_gamma (ClutterGstCamera *self,
gdouble value);
gboolean clutter_gst_camera_supports_color_balance
(ClutterGstCamera *self);
gboolean clutter_gst_camera_get_color_balance_property_range
(ClutterGstCamera *self,
const gchar *property,
gdouble *min_value,
gdouble *max_value,
gdouble *default_value);
gboolean clutter_gst_camera_get_color_balance_property
(ClutterGstCamera *self,
const gchar *property,
gdouble *cur_value);
gboolean clutter_gst_camera_set_color_balance_property
(ClutterGstCamera *self,
const gchar *property,
gdouble value);
gboolean clutter_gst_camera_get_brightness_range (ClutterGstCamera *self,
gdouble *min_value,
gdouble *max_value,
gdouble *default_value);
gboolean clutter_gst_camera_get_brightness (ClutterGstCamera *self,
gdouble *cur_value);
gboolean clutter_gst_camera_set_brightness (ClutterGstCamera *self,
gdouble value);
gboolean clutter_gst_camera_get_contrast_range (ClutterGstCamera *self,
gdouble *min_value,
gdouble *max_value,
gdouble *default_value);
gboolean clutter_gst_camera_get_contrast (ClutterGstCamera *self,
gdouble *cur_value);
gboolean clutter_gst_camera_set_contrast (ClutterGstCamera *self,
gdouble value);
gboolean clutter_gst_camera_get_saturation_range (ClutterGstCamera *self,
gdouble *min_value,
gdouble *max_value,
gdouble *default_value);
gboolean clutter_gst_camera_get_saturation (ClutterGstCamera *self,
gdouble *cur_value);
gboolean clutter_gst_camera_set_saturation (ClutterGstCamera *self,
gdouble value);
gboolean clutter_gst_camera_get_hue_range (ClutterGstCamera *self,
gdouble *min_value,
gdouble *max_value,
gdouble *default_value);
gboolean clutter_gst_camera_get_hue (ClutterGstCamera *self,
gdouble *cur_value);
gboolean clutter_gst_camera_set_hue (ClutterGstCamera *self,
gdouble value);
GstElement * clutter_gst_camera_get_filter (ClutterGstCamera *self);
gboolean clutter_gst_camera_set_filter (ClutterGstCamera *self,
GstElement *filter);
gboolean clutter_gst_camera_remove_filter (ClutterGstCamera *self);
gboolean clutter_gst_camera_is_ready_for_capture (ClutterGstCamera *self);
void clutter_gst_camera_set_video_profile (ClutterGstCamera *self,
GstEncodingProfile *profile);
gboolean clutter_gst_camera_is_recording_video (ClutterGstCamera *self);
gboolean clutter_gst_camera_start_video_recording (ClutterGstCamera *self,
const gchar *filename);
void clutter_gst_camera_stop_video_recording (ClutterGstCamera *self);
void clutter_gst_camera_set_photo_profile (ClutterGstCamera *self,
GstEncodingProfile *profile);
gboolean clutter_gst_camera_take_photo (ClutterGstCamera *self,
const gchar *filename);
gboolean clutter_gst_camera_take_photo_pixbuf (ClutterGstCamera *self);
G_END_DECLS
#endif /* __CLUTTER_GST_CAMERA_H__ */
|