annotate src/mplayer/xmmsmplayer.h @ 176:c93118f6ef27 trunk

[svn] - update Mosaic effect helptext.
author nenolod
date Wed, 01 Nov 2006 01:03:30 -0800
parents 33d24bd94ccc
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
135
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
1 #include <sys/types.h>
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
2 #include <sys/stat.h>
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
3 #include <unistd.h>
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
4 #include <string.h>
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
5
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
6 //#include <iconv.h>
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
7 //#include <libintl.h>
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
8
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
9 #include <glib.h>
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
10 #include <gtk/gtk.h>
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
11 #include <gdk/gdk.h>
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
12 #include <gdk/gdkx.h>
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
13 #include <audacious/plugin.h>
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
14 #include <audacious/beepctrl.h>
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
15 #include <audacious/rcfile.h>
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
16 #include <audacious/util.h>
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
17 #include <time.h>
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
18
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
19 #define MPLAYER_INFO_SIZE 128
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
20 #define MPLAYER_TITLE_SIZE 260
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
21 #define MPLAYER_AUDIO_SIZE 4096
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
22 #define MPLAYER_MAX_VECTOR 64
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
23
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
24 /* For debugging output change the define below */
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
25 #define mplayer_debugf
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
26 /* #define mplayer_debugf printf */
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
27
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
28
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
29 enum mplayer_vo{
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
30 MPLAYER_VO_NONE = 0,
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
31 MPLAYER_VO_XV,
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
32 MPLAYER_VO_X11,
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
33 MPLAYER_VO_GL,
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
34 MPLAYER_VO_SDL
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
35 };
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
36
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
37 enum mplayer_ao{
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
38 MPLAYER_AO_NONE = 0,
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
39 MPLAYER_AO_OSS,
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
40 MPLAYER_AO_ARTS,
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
41 MPLAYER_AO_ESD,
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
42 MPLAYER_AO_ALSA,
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
43 MPLAYER_AO_SDL,
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
44 MPLAYER_AO_XMMS
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
45 };
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
46 struct mplayer_info { /* Stores the info about a file */
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
47 gchar *filename;
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
48 gint vbr,abr,br; /*Video, audio and total bitrates */
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
49 gchar artist[MPLAYER_INFO_SIZE];
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
50 gchar title[MPLAYER_INFO_SIZE];
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
51 glong filesize; /* bytes */
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
52 gint length; /* in seconds */
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
53 gchar caption[MPLAYER_TITLE_SIZE];
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
54 gint rate; /*sampling rate*/
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
55 gint nch; /*no of channels */
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
56 gint x,y; /*x,y resolution */
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
57 }
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
58 ;
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
59
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
60 struct mplayer_cfg{
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
61 gint vo,ao;
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
62 gboolean zoom,framedrop,idx,onewin,xmmsaudio;
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
63 gchar *extra;
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
64 };
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
65
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
66 void mplayer_read_to_eol(char *str1,char *str2);
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
67 char **mplayer_make_vector();
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
68 void *mplayer_play_loop(void *arg);
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
69 void mplayer_vector_append(char**vector,char*param);
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
70
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
71 struct mplayer_info *mplayer_read_file_info(char *filename);
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
72 gint mplayer_is_our_file(char *filename);
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
73 void mplayer_quitting_video(GtkWidget *widget, gpointer data);
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
74 void mplayer_play_file(char *filename);
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
75 void mplayer_stop();
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
76 void mplayer_cleanup();
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
77 void mplayer_pause(short p);
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
78 void mplayer_seek(int t);
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
79 gint mplayer_get_time();
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
80 void mplayer_get_song_info(char * filename, char ** title, int * length);
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
81 void mplayer_init();
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
82 InputPlugin *get_iplugin_info(void);
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
83
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
84 void on_button_ok_clicked (GtkButton *button, gpointer user_data);
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
85 GtkWidget* mplayer_create_configure_win (void);
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
86 void mplayer_configure();
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
87 static void mplayer_about(void);
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
88 struct mplayer_cfg *mplayer_read_cfg();
33d24bd94ccc [svn] Adds mplayer controls the plugin pack. I don't know crap about
asheldon
parents:
diff changeset
89 void mplayer_quitting_video(GtkWidget *widget, gpointer data);