aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-video-src.h
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-03-04 01:34:44 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-03-04 01:34:44 +0800
commitc6546b498b5c4528aa182651243f20b40e6ad2e7 (patch)
treeebd94bdc1064603917d1e48cf772ee66589db685 /libempathy-gtk/empathy-video-src.h
parent937bed8acb966613630e10ae83aebfacb1a52af0 (diff)
downloadgsoc2013-empathy-c6546b498b5c4528aa182651243f20b40e6ad2e7.tar
gsoc2013-empathy-c6546b498b5c4528aa182651243f20b40e6ad2e7.tar.gz
gsoc2013-empathy-c6546b498b5c4528aa182651243f20b40e6ad2e7.tar.bz2
gsoc2013-empathy-c6546b498b5c4528aa182651243f20b40e6ad2e7.tar.lz
gsoc2013-empathy-c6546b498b5c4528aa182651243f20b40e6ad2e7.tar.xz
gsoc2013-empathy-c6546b498b5c4528aa182651243f20b40e6ad2e7.tar.zst
gsoc2013-empathy-c6546b498b5c4528aa182651243f20b40e6ad2e7.zip
Add support for changing various color channels of the video device
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2562
Diffstat (limited to 'libempathy-gtk/empathy-video-src.h')
-rw-r--r--libempathy-gtk/empathy-video-src.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-video-src.h b/libempathy-gtk/empathy-video-src.h
index 48c41f457..fef0b84dd 100644
--- a/libempathy-gtk/empathy-video-src.h
+++ b/libempathy-gtk/empathy-video-src.h
@@ -29,6 +29,20 @@ G_BEGIN_DECLS
typedef struct _EmpathyGstVideoSrc EmpathyGstVideoSrc;
typedef struct _EmpathyGstVideoSrcClass EmpathyGstVideoSrcClass;
+typedef enum {
+ EMPATHY_GST_VIDEO_SRC_CHANNEL_CONTRAST = 0,
+ EMPATHY_GST_VIDEO_SRC_CHANNEL_BRIGHTNESS = 1,
+ EMPATHY_GST_VIDEO_SRC_CHANNEL_GAMMA = 2,
+ NR_EMPATHY_GST_VIDEO_SRC_CHANNELS
+} EmpathyGstVideoSrcChannel;
+
+#define EMPATHY_GST_VIDEO_SRC_SUPPORTS_CONTRAST \
+ (1 << EMPATHY_GST_VIDEO_SRC_CHANNEL_CONTRAST)
+#define EMPATHY_GST_VIDEO_SRC_SUPPORTS_BRIGHTNESS \
+ (1 << EMPATHY_GST_VIDEO_SRC_CHANNEL_BRIGHTNESS)
+#define EMPATHY_GST_VIDEO_SRC_SUPPORTS_GAMMA \
+ (1 << EMPATHY_GST_VIDEO_SRC_CHANNEL_GAMMA)
+
struct _EmpathyGstVideoSrcClass {
GstBinClass parent_class;
};
@@ -58,6 +72,16 @@ GType empathy_video_src_get_type (void);
GstElement *empathy_video_src_new (void);
+guint
+empathy_video_src_get_supported_channels (GstElement *src);
+
+void empathy_video_src_set_channel (GstElement *src,
+ EmpathyGstVideoSrcChannel channel, guint percent);
+
+guint empathy_video_src_get_channel (GstElement *src,
+ EmpathyGstVideoSrcChannel channel);
+
+
G_END_DECLS
#endif /* #ifndef __EMPATHY_GST_VIDEO_SRC_H__*/