Mercurial > mplayer.hg
annotate stream/tv.h @ 24558:97eaba07ef9d
Fix a few typos
author | reimar |
---|---|
date | Wed, 19 Sep 2007 12:54:10 +0000 |
parents | d6bba2781d01 |
children | d81eef9beb1b |
rev | line source |
---|---|
2941
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
1 #ifndef TV_H |
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
2 #define TV_H |
2790 | 3 |
17012 | 4 //#include "libao2/afmt.h" |
19431
ac69ba536915
Explicitly include libmpcodecs/img_format.h and libvo/fastmemcpy.h.
diego
parents:
19271
diff
changeset
|
5 //#include "libmpcodecs/img_format.h" |
2830 | 6 //#include "mp_msg.h" |
2802 | 7 |
23882 | 8 typedef struct tv_param_s { |
9 char *freq; | |
10 char *channel; | |
11 char *chanlist; | |
12 char *norm; | |
13 int automute; | |
14 #ifdef HAVE_TV_V4L2 | |
15 int normid; | |
16 #endif | |
17 char *device; | |
18 char *driver; | |
19 int width; | |
20 int height; | |
21 int input; | |
22 int outfmt; | |
23 float fps; | |
24 char **channels; | |
25 int noaudio; | |
26 int immediate; | |
27 int audiorate; | |
28 int audio_id; | |
29 #if defined(HAVE_TV_V4L) | |
30 int amode; | |
31 int volume; | |
32 int bass; | |
33 int treble; | |
34 int balance; | |
35 int forcechan; | |
36 int force_audio; | |
37 int buffer_size; | |
38 int mjpeg; | |
39 int decimation; | |
40 int quality; | |
41 #if defined(HAVE_ALSA9) || defined(HAVE_ALSA1X) | |
42 int alsa; | |
43 #endif | |
24034 | 44 #endif |
23882 | 45 char* adevice; |
46 int brightness; | |
47 int contrast; | |
48 int hue; | |
49 int saturation; | |
24553
d6bba2781d01
Implement setting gain control for video devices (usually webcams)
voroshil
parents:
24344
diff
changeset
|
50 int gain; |
23900 | 51 char *tdevice; ///< teletext device |
52 int tformat; ///< teletext display format | |
53 int tpage; ///< start teletext page | |
24290 | 54 int tlang; ///< primary language code |
24105
9e71e0345c35
Automatic TV channels scanning ability for MPlayer.
voroshil
parents:
24034
diff
changeset
|
55 |
9e71e0345c35
Automatic TV channels scanning ability for MPlayer.
voroshil
parents:
24034
diff
changeset
|
56 int scan; |
9e71e0345c35
Automatic TV channels scanning ability for MPlayer.
voroshil
parents:
24034
diff
changeset
|
57 int scan_threshold; |
9e71e0345c35
Automatic TV channels scanning ability for MPlayer.
voroshil
parents:
24034
diff
changeset
|
58 float scan_period; |
23882 | 59 } tv_param_t; |
60 | |
61 extern tv_param_t stream_tv_defaults; | |
62 | |
2790 | 63 typedef struct tvi_info_s |
64 { | |
23883 | 65 struct tvi_handle_s * (*tvi_init)(tv_param_t* tv_param); |
2790 | 66 const char *name; |
67 const char *short_name; | |
68 const char *author; | |
69 const char *comment; | |
70 } tvi_info_t; | |
71 | |
72 typedef struct tvi_functions_s | |
73 { | |
74 int (*init)(); | |
2802 | 75 int (*uninit)(); |
2790 | 76 int (*control)(); |
2802 | 77 int (*start)(); |
5572
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5098
diff
changeset
|
78 double (*grab_video_frame)(); |
2790 | 79 int (*get_video_framesize)(); |
5572
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5098
diff
changeset
|
80 double (*grab_audio_frame)(); |
2790 | 81 int (*get_audio_framesize)(); |
82 } tvi_functions_t; | |
83 | |
84 typedef struct tvi_handle_s { | |
2802 | 85 tvi_functions_t *functions; |
86 void *priv; | |
87 int seq; | |
2941
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
88 |
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
89 /* specific */ |
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
90 int norm; |
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
91 int chanlist; |
18032
de6740c3ab2a
10l: huge amount of constant crap in data segment
rfelker
parents:
17012
diff
changeset
|
92 const struct CHANLIST *chanlist_s; |
2941
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
93 int channel; |
23882 | 94 tv_param_t * tv_param; |
24105
9e71e0345c35
Automatic TV channels scanning ability for MPlayer.
voroshil
parents:
24034
diff
changeset
|
95 void * scan; |
2790 | 96 } tvi_handle_t; |
97 | |
8627
14ab71b47a58
user friendly channel tuning + 10L fix in tvi_v4l (by Stephane Jourdois)
henry
parents:
8494
diff
changeset
|
98 typedef struct tv_channels_s { |
14ab71b47a58
user friendly channel tuning + 10L fix in tvi_v4l (by Stephane Jourdois)
henry
parents:
8494
diff
changeset
|
99 int index; |
14ab71b47a58
user friendly channel tuning + 10L fix in tvi_v4l (by Stephane Jourdois)
henry
parents:
8494
diff
changeset
|
100 char number[5]; |
14ab71b47a58
user friendly channel tuning + 10L fix in tvi_v4l (by Stephane Jourdois)
henry
parents:
8494
diff
changeset
|
101 char name[20]; |
14ab71b47a58
user friendly channel tuning + 10L fix in tvi_v4l (by Stephane Jourdois)
henry
parents:
8494
diff
changeset
|
102 int freq; |
14ab71b47a58
user friendly channel tuning + 10L fix in tvi_v4l (by Stephane Jourdois)
henry
parents:
8494
diff
changeset
|
103 struct tv_channels_s *next; |
14ab71b47a58
user friendly channel tuning + 10L fix in tvi_v4l (by Stephane Jourdois)
henry
parents:
8494
diff
changeset
|
104 struct tv_channels_s *prev; |
14ab71b47a58
user friendly channel tuning + 10L fix in tvi_v4l (by Stephane Jourdois)
henry
parents:
8494
diff
changeset
|
105 } tv_channels_t; |
14ab71b47a58
user friendly channel tuning + 10L fix in tvi_v4l (by Stephane Jourdois)
henry
parents:
8494
diff
changeset
|
106 |
14607
7a80c6ac5058
several sets of headers declare global variables in them, which causes multiple definition errors with gcc 4.x
iive
parents:
13978
diff
changeset
|
107 extern tv_channels_t *tv_channel_list; |
7a80c6ac5058
several sets of headers declare global variables in them, which causes multiple definition errors with gcc 4.x
iive
parents:
13978
diff
changeset
|
108 extern tv_channels_t *tv_channel_current, *tv_channel_last; |
7a80c6ac5058
several sets of headers declare global variables in them, which causes multiple definition errors with gcc 4.x
iive
parents:
13978
diff
changeset
|
109 extern char *tv_channel_last_real; |
2802 | 110 |
24105
9e71e0345c35
Automatic TV channels scanning ability for MPlayer.
voroshil
parents:
24034
diff
changeset
|
111 typedef struct { |
9e71e0345c35
Automatic TV channels scanning ability for MPlayer.
voroshil
parents:
24034
diff
changeset
|
112 unsigned int scan_timer; |
9e71e0345c35
Automatic TV channels scanning ability for MPlayer.
voroshil
parents:
24034
diff
changeset
|
113 int channel_num; |
9e71e0345c35
Automatic TV channels scanning ability for MPlayer.
voroshil
parents:
24034
diff
changeset
|
114 int new_channels; |
9e71e0345c35
Automatic TV channels scanning ability for MPlayer.
voroshil
parents:
24034
diff
changeset
|
115 } tv_scan_t; |
9e71e0345c35
Automatic TV channels scanning ability for MPlayer.
voroshil
parents:
24034
diff
changeset
|
116 |
2790 | 117 #define TVI_CONTROL_FALSE 0 |
118 #define TVI_CONTROL_TRUE 1 | |
119 #define TVI_CONTROL_NA -1 | |
120 #define TVI_CONTROL_UNKNOWN -2 | |
121 | |
2802 | 122 /* ======================== CONTROLS =========================== */ |
2790 | 123 |
2802 | 124 /* GENERIC controls */ |
125 #define TVI_CONTROL_IS_AUDIO 0x1 | |
126 #define TVI_CONTROL_IS_VIDEO 0x2 | |
127 #define TVI_CONTROL_IS_TUNER 0x3 | |
7058
2e5c07262861
new v4l capture patch by Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>:
arpi
parents:
5572
diff
changeset
|
128 #define TVI_CONTROL_IMMEDIATE 0x4 |
2802 | 129 |
130 /* VIDEO controls */ | |
131 #define TVI_CONTROL_VID_GET_FPS 0x101 | |
132 #define TVI_CONTROL_VID_GET_PLANES 0x102 | |
133 #define TVI_CONTROL_VID_GET_BITS 0x103 | |
134 #define TVI_CONTROL_VID_CHK_BITS 0x104 | |
135 #define TVI_CONTROL_VID_SET_BITS 0x105 | |
136 #define TVI_CONTROL_VID_GET_FORMAT 0x106 | |
137 #define TVI_CONTROL_VID_CHK_FORMAT 0x107 | |
138 #define TVI_CONTROL_VID_SET_FORMAT 0x108 | |
139 #define TVI_CONTROL_VID_GET_WIDTH 0x109 | |
140 #define TVI_CONTROL_VID_CHK_WIDTH 0x110 | |
141 #define TVI_CONTROL_VID_SET_WIDTH 0x111 | |
142 #define TVI_CONTROL_VID_GET_HEIGHT 0x112 | |
143 #define TVI_CONTROL_VID_CHK_HEIGHT 0x113 | |
144 #define TVI_CONTROL_VID_SET_HEIGHT 0x114 | |
2937 | 145 #define TVI_CONTROL_VID_GET_BRIGHTNESS 0x115 |
146 #define TVI_CONTROL_VID_SET_BRIGHTNESS 0x116 | |
147 #define TVI_CONTROL_VID_GET_HUE 0x117 | |
148 #define TVI_CONTROL_VID_SET_HUE 0x118 | |
149 #define TVI_CONTROL_VID_GET_SATURATION 0x119 | |
150 #define TVI_CONTROL_VID_SET_SATURATION 0x11a | |
151 #define TVI_CONTROL_VID_GET_CONTRAST 0x11b | |
152 #define TVI_CONTROL_VID_SET_CONTRAST 0x11c | |
153 #define TVI_CONTROL_VID_GET_PICTURE 0x11d | |
154 #define TVI_CONTROL_VID_SET_PICTURE 0x11e | |
24553
d6bba2781d01
Implement setting gain control for video devices (usually webcams)
voroshil
parents:
24344
diff
changeset
|
155 #define TVI_CONTROL_VID_SET_GAIN 0x11f |
d6bba2781d01
Implement setting gain control for video devices (usually webcams)
voroshil
parents:
24344
diff
changeset
|
156 #define TVI_CONTROL_VID_GET_GAIN 0x120 |
2790 | 157 |
2802 | 158 /* TUNER controls */ |
159 #define TVI_CONTROL_TUN_GET_FREQ 0x201 | |
160 #define TVI_CONTROL_TUN_SET_FREQ 0x202 | |
161 #define TVI_CONTROL_TUN_GET_TUNER 0x203 /* update priv->tuner struct for used input */ | |
162 #define TVI_CONTROL_TUN_SET_TUNER 0x204 /* update priv->tuner struct for used input */ | |
163 #define TVI_CONTROL_TUN_GET_NORM 0x205 | |
164 #define TVI_CONTROL_TUN_SET_NORM 0x206 | |
24105
9e71e0345c35
Automatic TV channels scanning ability for MPlayer.
voroshil
parents:
24034
diff
changeset
|
165 #define TVI_CONTROL_TUN_GET_SIGNAL 0x207 |
2802 | 166 |
167 /* AUDIO controls */ | |
168 #define TVI_CONTROL_AUD_GET_FORMAT 0x301 | |
169 #define TVI_CONTROL_AUD_GET_SAMPLERATE 0x302 | |
170 #define TVI_CONTROL_AUD_GET_SAMPLESIZE 0x303 | |
171 #define TVI_CONTROL_AUD_GET_CHANNELS 0x304 | |
5572
8cd761968f35
BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>
arpi
parents:
5098
diff
changeset
|
172 #define TVI_CONTROL_AUD_SET_SAMPLERATE 0x305 |
2802 | 173 |
174 /* SPECIFIC controls */ | |
175 #define TVI_CONTROL_SPC_GET_INPUT 0x401 /* set input channel (tv,s-video,composite..) */ | |
176 #define TVI_CONTROL_SPC_SET_INPUT 0x402 /* set input channel (tv,s-video,composite..) */ | |
13978 | 177 #define TVI_CONTROL_SPC_GET_NORMID 0x403 /* get normid from norm name */ |
2802 | 178 |
23900 | 179 //tvi_* ioctl (not tvi_vbi.c !!!) |
180 #define TVI_CONTROL_VBI_INIT 0x501 ///< vbi init | |
181 | |
182 /* | |
183 TELETEXT controls (through tv_teletext_control() ) | |
184 NOTE: | |
185 _SET_ should be _GET_ +1 | |
186 _STEP_ should be _GET_ +2 | |
187 */ | |
188 #define TV_VBI_CONTROL_GET_MODE 0x510 ///< get current mode teletext | |
189 #define TV_VBI_CONTROL_SET_MODE 0x511 ///< on/off grab teletext | |
190 | |
191 #define TV_VBI_CONTROL_GET_PAGE 0x513 ///< get grabbed teletext page | |
192 #define TV_VBI_CONTROL_SET_PAGE 0x514 ///< set grab teletext page number | |
193 #define TV_VBI_CONTROL_STEP_PAGE 0x515 ///< step grab teletext page number | |
194 | |
195 #define TV_VBI_CONTROL_GET_SUBPAGE 0x516 ///< get grabbed teletext page | |
196 #define TV_VBI_CONTROL_SET_SUBPAGE 0x517 ///< set grab teletext page number | |
197 | |
198 #define TV_VBI_CONTROL_GET_FORMAT 0x519 ///< get eletext format | |
199 #define TV_VBI_CONTROL_SET_FORMAT 0x51a ///< set teletext format | |
200 | |
201 #define TV_VBI_CONTROL_GET_HALF_PAGE 0x51c ///< get current half page | |
202 #define TV_VBI_CONTROL_SET_HALF_PAGE 0x51d ///< switch half page | |
203 | |
24342
8873c972c6aa
Decrease teletext page rendering frequency from 1/frame to about 4/sec.
voroshil
parents:
24292
diff
changeset
|
204 #define TV_VBI_CONTROL_IS_CHANGED 0x540 ///< teletext page is changed |
8873c972c6aa
Decrease teletext page rendering frequency from 1/frame to about 4/sec.
voroshil
parents:
24292
diff
changeset
|
205 #define TV_VBI_CONTROL_MARK_UNCHANGED 0x541 ///< teletext page is changed |
8873c972c6aa
Decrease teletext page rendering frequency from 1/frame to about 4/sec.
voroshil
parents:
24292
diff
changeset
|
206 |
23900 | 207 #define TV_VBI_CONTROL_ADD_DEC 0x550 ///< add page number with dec |
208 #define TV_VBI_CONTROL_GO_LINK 0x551 ///< go link (1..6) NYI | |
209 #define TV_VBI_CONTROL_GET_VBIPAGE 0x552 ///< get vbi_image for grabbed teletext page | |
210 #define TV_VBI_CONTROL_RESET 0x553 ///< vbi reset | |
211 #define TV_VBI_CONTROL_START 0x554 ///< vbi start | |
212 #define TV_VBI_CONTROL_STOP 0x555 ///< vbi stop | |
213 #define TV_VBI_CONTROL_DECODE_PAGE 0x556 ///< decode vbi page | |
24232
d0290b80e612
Implement 8/30 format 1 teletext packet decoding
voroshil
parents:
24183
diff
changeset
|
214 #define TV_VBI_CONTROL_GET_NETWORKNAME 0x557 ///< get current network name |
23900 | 215 |
2941
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
216 int tv_set_color_options(tvi_handle_t *tvh, int opt, int val); |
18172
90b62d7c0fca
Implement tv_get_color_options() and make tv_set_color_options() return
albeu
parents:
18032
diff
changeset
|
217 int tv_get_color_options(tvi_handle_t *tvh, int opt, int* val); |
2937 | 218 #define TV_COLOR_BRIGHTNESS 1 |
219 #define TV_COLOR_HUE 2 | |
220 #define TV_COLOR_SATURATION 3 | |
221 #define TV_COLOR_CONTRAST 4 | |
222 | |
8627
14ab71b47a58
user friendly channel tuning + 10L fix in tvi_v4l (by Stephane Jourdois)
henry
parents:
8494
diff
changeset
|
223 int tv_step_channel_real(tvi_handle_t *tvh, int direction); |
2941
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
224 int tv_step_channel(tvi_handle_t *tvh, int direction); |
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
225 #define TV_CHANNEL_LOWER 1 |
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
226 #define TV_CHANNEL_HIGHER 2 |
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
227 |
8627
14ab71b47a58
user friendly channel tuning + 10L fix in tvi_v4l (by Stephane Jourdois)
henry
parents:
8494
diff
changeset
|
228 int tv_last_channel(tvi_handle_t *tvh); |
14ab71b47a58
user friendly channel tuning + 10L fix in tvi_v4l (by Stephane Jourdois)
henry
parents:
8494
diff
changeset
|
229 |
14ab71b47a58
user friendly channel tuning + 10L fix in tvi_v4l (by Stephane Jourdois)
henry
parents:
8494
diff
changeset
|
230 int tv_set_channel_real(tvi_handle_t *tvh, char *channel); |
8494 | 231 int tv_set_channel(tvi_handle_t *tvh, char *channel); |
232 | |
2941
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
233 int tv_step_norm(tvi_handle_t *tvh); |
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
234 int tv_step_chanlist(tvi_handle_t *tvh); |
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
235 |
10521
141141fdd250
I'd like to change tv tuner frequency in the slave mode. So this patch
gabucino
parents:
9663
diff
changeset
|
236 int tv_set_freq(tvi_handle_t *tvh, unsigned long freq); |
141141fdd250
I'd like to change tv tuner frequency in the slave mode. So this patch
gabucino
parents:
9663
diff
changeset
|
237 int tv_get_freq(tvi_handle_t *tvh, unsigned long *freq); |
24105
9e71e0345c35
Automatic TV channels scanning ability for MPlayer.
voroshil
parents:
24034
diff
changeset
|
238 int tv_get_signal(tvi_handle_t *tvh); |
22667 | 239 int tv_step_freq(tvi_handle_t *tvh, float step_interval); |
10521
141141fdd250
I'd like to change tv tuner frequency in the slave mode. So this patch
gabucino
parents:
9663
diff
changeset
|
240 |
141141fdd250
I'd like to change tv tuner frequency in the slave mode. So this patch
gabucino
parents:
9663
diff
changeset
|
241 int tv_set_norm(tvi_handle_t *tvh, char* norm); |
141141fdd250
I'd like to change tv tuner frequency in the slave mode. So this patch
gabucino
parents:
9663
diff
changeset
|
242 |
24105
9e71e0345c35
Automatic TV channels scanning ability for MPlayer.
voroshil
parents:
24034
diff
changeset
|
243 void tv_start_scan(tvi_handle_t *tvh, int start); |
9e71e0345c35
Automatic TV channels scanning ability for MPlayer.
voroshil
parents:
24034
diff
changeset
|
244 |
2941
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
245 #define TV_NORM_PAL 1 |
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
246 #define TV_NORM_NTSC 2 |
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
247 #define TV_NORM_SECAM 3 |
8477 | 248 #define TV_NORM_PALNC 4 |
249 #define TV_NORM_PALM 5 | |
250 #define TV_NORM_PALN 6 | |
251 #define TV_NORM_NTSCJP 7 | |
2941
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
252 |
23900 | 253 #define VBI_TFORMAT_TEXT 0 ///< text mode |
254 #define VBI_TFORMAT_BW 1 ///< back&white mode | |
255 #define VBI_TFORMAT_GRAY 2 ///< grayscale mode | |
256 #define VBI_TFORMAT_COLOR 3 ///< color mode (require color_spu patch!) | |
257 | |
258 #define VBI_MAX_PAGES 0x800 ///< max sub pages number | |
259 #define VBI_MAX_SUBPAGES 64 ///< max sub pages number | |
260 | |
24183
820df52200db
Enable decoding of packet X/24, it is usual teletext line
voroshil
parents:
24105
diff
changeset
|
261 #define VBI_ROWS 25 ///< teletext page height in rows |
820df52200db
Enable decoding of packet X/24, it is usual teletext line
voroshil
parents:
24105
diff
changeset
|
262 #define VBI_COLUMNS 40 ///< teletext page width in chars |
23900 | 263 #define VBI_TIME_LINEPOS 26 ///< time line pos in page header |
264 | |
265 typedef | |
266 enum{ | |
267 TT_FORMAT_OPAQUE=0, ///< opaque | |
268 TT_FORMAT_TRANSPARENT, ///< translarent | |
269 TT_FORMAT_OPAQUE_INV, ///< opaque with inverted colors | |
270 TT_FORMAT_TRANSPARENT_INV ///< translarent with inverted colors | |
271 } teletext_format; | |
272 | |
273 typedef | |
274 enum{ | |
275 TT_ZOOM_NORMAL=0, | |
276 TT_ZOOM_TOP_HALF, | |
277 TT_ZOOM_BOTTOM_HALF | |
278 } teletext_zoom; | |
279 | |
280 typedef struct tt_char_s{ | |
281 unsigned int unicode; ///< unicode (utf8) character | |
282 unsigned char fg; ///< foreground color | |
283 unsigned char bg; ///< background color | |
284 unsigned char gfx; ///< 0-no gfx, 1-solid gfx, 2-separated gfx | |
24292
ca146808e926
Proper support for flashing chars in teletext pages.
voroshil
parents:
24290
diff
changeset
|
285 unsigned char flh; ///< 0-no flash, 1-flash |
24344 | 286 unsigned char hidden; ///< char is hidden (for subtitle pages) |
23900 | 287 unsigned char ctl; ///< control character |
24290 | 288 unsigned char lng; ///< lang: 0-secondary language,1-primary language |
23900 | 289 unsigned char raw; ///< raw character (as received from device) |
290 } tt_char; | |
291 | |
24244 | 292 typedef struct tt_link_s{ |
293 int pagenum; ///< page number | |
294 int subpagenum; ///< subpage number | |
295 } tt_link_t; | |
296 | |
23900 | 297 typedef struct tt_page_s{ |
298 int pagenum; ///< page number | |
299 int subpagenum; ///< subpage number | |
24290 | 300 unsigned char primary_lang; ///< primary language code |
301 unsigned char secondary_lang; ///< secondary language code | |
23900 | 302 unsigned char active; ///< page is complete and ready for rendering |
24344 | 303 unsigned char flags; ///< page flags |
23900 | 304 unsigned char raw[VBI_ROWS*VBI_COLUMNS]; ///< page data |
305 struct tt_page_s* next_subpage; | |
24244 | 306 struct tt_link_s links[6]; |
23900 | 307 } tt_page; |
308 | |
24344 | 309 #define TT_PGFL_SUPPRESS_HEADER 0x01 |
310 #define TT_PGFL_UPDATE_INDICATOR 0x02 | |
311 #define TT_PGFL_INTERRUPTED_SEQ 0x04 | |
312 #define TT_PGFL_INHIBIT_DISPLAY 0x08 | |
313 #define TT_PGFL_NEWFLASH 0x10 | |
314 #define TT_PGFL_SUBTITLE 0x20 | |
315 #define TT_PGFL_ERASE_PAGE 0x40 | |
316 #define TT_PGFL_MAGAZINE_SERIAL 0x80 | |
317 | |
23900 | 318 typedef struct tt_stream_props_s{ |
319 int sampling_rate; | |
320 int samples_per_line; | |
321 int offset; | |
322 int count[2]; ///< number of lines in first and second fields | |
323 int interlaced; ///< vbi data are interlaced | |
324 int bufsize; ///< required buffer size | |
325 } tt_stream_props; | |
326 | |
2941
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
327 #endif /* TV_H */ |