summaryrefslogtreecommitdiffstats
path: root/stream/tv.h
diff options
context:
space:
mode:
authorvoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-29 10:11:24 +0000
committervoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-29 10:11:24 +0000
commitb7adae655fe83b1b6609ba1f699b6e61c9a7bf12 (patch)
treeb68bb9eb20c5334239fd2b173ca4d1d35dd1bcbf /stream/tv.h
parent487d4927e2562ea937c455184506134240ba36a4 (diff)
downloadmpv-b7adae655fe83b1b6609ba1f699b6e61c9a7bf12.tar.bz2
mpv-b7adae655fe83b1b6609ba1f699b6e61c9a7bf12.tar.xz
Removing global variables from tv://
Step 1: introducing new structure, fixing tv:// stream git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23902 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/tv.h')
-rw-r--r--stream/tv.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/stream/tv.h b/stream/tv.h
index 2f43820eb4..2b3e2e52a1 100644
--- a/stream/tv.h
+++ b/stream/tv.h
@@ -47,6 +47,52 @@ extern int tv_param_contrast;
extern int tv_param_hue;
extern int tv_param_saturation;
+typedef struct tv_param_s {
+ char *freq;
+ char *channel;
+ char *chanlist;
+ char *norm;
+ int automute;
+#ifdef HAVE_TV_V4L2
+ int normid;
+#endif
+ char *device;
+ char *driver;
+ int width;
+ int height;
+ int input;
+ int outfmt;
+ float fps;
+ char **channels;
+ int noaudio;
+ int immediate;
+ int audiorate;
+ int audio_id;
+#if defined(HAVE_TV_V4L)
+ int amode;
+ int volume;
+ int bass;
+ int treble;
+ int balance;
+ int forcechan;
+ int force_audio;
+ int buffer_size;
+ int mjpeg;
+ int decimation;
+ int quality;
+#if defined(HAVE_ALSA9) || defined(HAVE_ALSA1X)
+ int alsa;
+#endif
+ char* adevice;
+#endif
+ int brightness;
+ int contrast;
+ int hue;
+ int saturation;
+} tv_param_t;
+
+extern tv_param_t stream_tv_defaults;
+
typedef struct tvi_info_s
{
struct tvi_handle_s * (*tvi_init)(char *device,char *adevice);
@@ -78,6 +124,7 @@ typedef struct tvi_handle_s {
int chanlist;
const struct CHANLIST *chanlist_s;
int channel;
+ tv_param_t * tv_param;
} tvi_handle_t;
typedef struct tv_channels_s {