]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-video-src.h
Add en_GB in gitignore
[empathy.git] / libempathy-gtk / empathy-video-src.h
index 3af2efe8b82c4552dd1e42a3feba0f52ffb8a443..fef0b84ddfc50fd5cdd07af42eea8060dcad7a23 100644 (file)
@@ -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;
 };
@@ -37,7 +51,7 @@ struct _EmpathyGstVideoSrc {
     GstBin parent;
 };
 
-GType empathy_video_src_get_type(void);
+GType empathy_video_src_get_type (void);
 
 /* TYPE MACROS */
 #define EMPATHY_TYPE_GST_VIDEO_SRC \
@@ -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__*/