comparison stream/tv.h @ 23882:d5be90343fac

Removing global variables from tv:// Step 1: introducing new structure, fixing tv:// stream
author voroshil
date Sun, 29 Jul 2007 10:11:24 +0000
parents 5a5c7866921f
children d65439444b75
comparison
equal deleted inserted replaced
23881:5a5c7866921f 23882:d5be90343fac
45 extern int tv_param_brightness; 45 extern int tv_param_brightness;
46 extern int tv_param_contrast; 46 extern int tv_param_contrast;
47 extern int tv_param_hue; 47 extern int tv_param_hue;
48 extern int tv_param_saturation; 48 extern int tv_param_saturation;
49 49
50 typedef struct tv_param_s {
51 char *freq;
52 char *channel;
53 char *chanlist;
54 char *norm;
55 int automute;
56 #ifdef HAVE_TV_V4L2
57 int normid;
58 #endif
59 char *device;
60 char *driver;
61 int width;
62 int height;
63 int input;
64 int outfmt;
65 float fps;
66 char **channels;
67 int noaudio;
68 int immediate;
69 int audiorate;
70 int audio_id;
71 #if defined(HAVE_TV_V4L)
72 int amode;
73 int volume;
74 int bass;
75 int treble;
76 int balance;
77 int forcechan;
78 int force_audio;
79 int buffer_size;
80 int mjpeg;
81 int decimation;
82 int quality;
83 #if defined(HAVE_ALSA9) || defined(HAVE_ALSA1X)
84 int alsa;
85 #endif
86 char* adevice;
87 #endif
88 int brightness;
89 int contrast;
90 int hue;
91 int saturation;
92 } tv_param_t;
93
94 extern tv_param_t stream_tv_defaults;
95
50 typedef struct tvi_info_s 96 typedef struct tvi_info_s
51 { 97 {
52 struct tvi_handle_s * (*tvi_init)(char *device,char *adevice); 98 struct tvi_handle_s * (*tvi_init)(char *device,char *adevice);
53 const char *name; 99 const char *name;
54 const char *short_name; 100 const char *short_name;
76 /* specific */ 122 /* specific */
77 int norm; 123 int norm;
78 int chanlist; 124 int chanlist;
79 const struct CHANLIST *chanlist_s; 125 const struct CHANLIST *chanlist_s;
80 int channel; 126 int channel;
127 tv_param_t * tv_param;
81 } tvi_handle_t; 128 } tvi_handle_t;
82 129
83 typedef struct tv_channels_s { 130 typedef struct tv_channels_s {
84 int index; 131 int index;
85 char number[5]; 132 char number[5];