sinek/include gtkxine.h,1.5,1.6
[email protected] Fri, 17 Jan 2003 00:50:55 -0800
| Newsgroups | gmane.comp.video.sinek.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/sinek/sinek/include
In directory sc8-pr-cvs1:/tmp/cvs-serv9970a/include
Modified Files:
gtkxine.h
Log Message:
synch w/ cvs
Index: gtkxine.h
===================================================================
RCS file: /cvsroot/sinek/sinek/include/gtkxine.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- gtkxine.h 14 Jan 2003 10:44:24 -0000 1.5
+++ gtkxine.h 17 Jan 2003 08:50:52 -0000 1.6
@@ -27,10 +27,12 @@
typedef struct _GtkXine GtkXine;
typedef struct _GtkXineClass GtkXineClass;
+typedef enum _GtkXineConfigType GtkXineConfigType;
typedef enum _GtkXineStatus GtkXineStatus;
typedef enum _GtkXinePlaybackSpeed GtkXinePlaybackSpeed;
typedef enum _GtkXineVisualType GtkXineVisualType;
typedef enum _GtkXineAspectRatio GtkXineAspectRatio;
+typedef enum _GtkXinePalette GtkXinePalette;
typedef enum _GtkXineEventType GtkXineEventType;
typedef struct _GtkXineEvent GtkXineEvent;
typedef enum _GtkXineVersion GtkXineVersion;
@@ -53,6 +55,17 @@
GTK_XINE_STATUS_QUIT = XINE_STATUS_QUIT,
};
+enum _GtkXineConfigType
+{
+ GTK_XINE_CONFIG_TYPE_NONE = -1,
+ GTK_XINE_CONFIG_TYPE_UNKNOWN = XINE_CONFIG_TYPE_UNKNOWN,
+ GTK_XINE_CONFIG_TYPE_RANGE,
+ GTK_XINE_CONFIG_TYPE_STRING,
+ GTK_XINE_CONFIG_TYPE_ENUM,
+ GTK_XINE_CONFIG_TYPE_NUM,
+ GTK_XINE_CONFIG_TYPE_BOOL,
+};
+
enum _GtkXinePlaybackSpeed
{
GTK_XINE_PLAYBACK_SPEED_PAUSE = XINE_SPEED_PAUSE,
@@ -75,6 +88,19 @@
GTK_XINE_ASPECT_DONT_TOUCH = XINE_VO_ASPECT_DONT_TOUCH,
};
+/*
+** Text color, border color/type, and background type. For example,
+** GTK_XINE_PALETTE_WHITE_NONE_TRANSPARENT is a palette with white text,
+** no border, and transparent background.
+*/
+enum _GtkXinePalette
+{
+ GTK_XINE_PALETTE_WHITE_BLACK_TRANSPARENT = XINE_TEXTPALETTE_WHITE_BLACK_TRANSPARENT,
+ GTK_XINE_PALETTE_WHITE_NONE_TRANSPARENT = XINE_TEXTPALETTE_WHITE_NONE_TRANSPARENT,
+ GTK_XINE_PALETTE_WHITE_NONE_TRANSLUCID = XINE_TEXTPALETTE_WHITE_NONE_TRANSLUCID,
+ GTK_XINE_PALETTE_YELLOW_BLACK_TRANSPARENT = XINE_TEXTPALETTE_YELLOW_BLACK_TRANSPARENT,
+};
+
enum _GtkXineEventType
{
/* received from the backend */
@@ -173,15 +199,21 @@
int gtk_xine_config_register_bool (GtkXine *xine, const char *key, int default_value);
int gtk_xine_config_set (GtkXine *xine, const char *key, void *value);
-int gtk_xine_config_get (GtkXine *xine, const char *key, void **value);
+GtkXineConfigType gtk_xine_config_get (GtkXine *xine, const char *key, void **value);
+GtkXineConfigType gtk_xine_config_get_first (GtkXine *xine, const char **key, const void **value);
+GtkXineConfigType gtk_xine_config_get_next (GtkXine *xine, const char *key, const char **nextkey, const void **value);
+int gtk_xine_config_get_min_max (GtkXine *xine, const char *key, int *min, int *max);
+int gtk_xine_config_get_enums (GtkXine *xine, const char *key, const char ***enums);
/* media handling */
int gtk_xine_load (GtkXine *xine, const char *mrl);
+const char* gtk_xine_get_current_mrl (GtkXine *xine);
int gtk_xine_play (GtkXine *xine);
int gtk_xine_play_from_position (GtkXine *xine, int start);
int gtk_xine_play_from_time (GtkXine *xine, time_t start);
int gtk_xine_stop (GtkXine *xine);
+
GtkXineStatus gtk_xine_get_status (GtkXine *xine);
void gtk_xine_event_listener (GtkXine *xine, gtk_xine_event_cb event_cb, void *user_data);
@@ -206,6 +238,12 @@
int gtk_xine_set_volume (GtkXine *xine, int volume);
int gtk_xine_get_volume (GtkXine *xine);
+
+static inline int gtk_xine_adjust_volume (GtkXine *xine, int level)
+{
+ return gtk_xine_set_volume (xine, gtk_xine_get_volume (xine) + level);
+}
+
int gtk_xine_set_mute (GtkXine *xine, int muted);
int gtk_xine_get_mute (GtkXine *xine);
@@ -216,6 +254,8 @@
int gtk_xine_get_deinterlace (GtkXine *xine);
int gtk_xine_set_tvmode (GtkXine *xine, int tvmode);
int gtk_xine_get_tvmode (GtkXine *xine);
+int gtk_xine_set_fullscreen (GtkXine *xine, int fullscreen);
+int gtk_xine_get_fullscreen (GtkXine *xine);
/* XXX: get_{audio,spu}_lang */
@@ -231,6 +271,20 @@
int gtk_xine_get_major_version (GtkXine *xine);
int gtk_xine_get_minor_version (GtkXine *xine);
int gtk_xine_get_sub_version (GtkXine *xine);
+
+int gtk_xine_osd_reset (GtkXine *xine, int x, int y, int width, int height, const char *font, int font_size, GtkXinePalette palette);
+
+int gtk_xine_osd_set_position (GtkXine *xine, int x, int y);
+//int gtk_xine_osd_set_palette (GtkXine *xine, const uint32_t *const color, const uint8_t *const trans);
+
+int gtk_xine_osd_draw_text (GtkXine *xine, const char *text, int x, int y);
+
+int gtk_xine_osd_show (GtkXine *xine, int64_t vpts);
+int gtk_xine_osd_hide (GtkXine *xine, int64_t vpts);
+int gtk_xine_osd_clear (GtkXine *xine);
+
+char** gtk_xine_get_autoplay_input_plugin_ids (GtkXine *xine);
+char** gtk_xine_get_autoplay_mrls (GtkXine *xine, const char *id, int *count);
#ifdef __cplusplus
}
-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en