Mercurial > mplayer.hg
annotate libmpdemux/tv.h @ 5352:cf2882606e72
Fileslist support for mf demuxer, delemited by ',' and change mf fps to float.
author | atmos4 |
---|---|
date | Tue, 26 Mar 2002 05:25:15 +0000 |
parents | b884521bf7f9 |
children | 8cd761968f35 |
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 |
2819
2e58962dc9fe
cleaned up some warnings, and tv_param_on moved out from #ifdef USE_TV
alex
parents:
2818
diff
changeset
|
4 extern int tv_param_on; |
2e58962dc9fe
cleaned up some warnings, and tv_param_on moved out from #ifdef USE_TV
alex
parents:
2818
diff
changeset
|
5 |
2790 | 6 #ifdef USE_TV |
2830 | 7 //#include "../libao2/afmt.h" |
8 //#include "../libvo/img_format.h" | |
9 //#include "../libvo/fastmemcpy.h" | |
10 //#include "mp_msg.h" | |
2802 | 11 |
2837 | 12 extern char *tv_param_freq; |
2790 | 13 extern char *tv_param_channel; |
2941
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
14 extern char *tv_param_chanlist; |
2790 | 15 extern char *tv_param_norm; |
16 extern char *tv_param_device; | |
17 extern char *tv_param_driver; | |
18 extern int tv_param_width; | |
19 extern int tv_param_height; | |
2802 | 20 extern int tv_param_input; |
2817 | 21 extern char *tv_param_outfmt; |
3285 | 22 extern float tv_param_fps; |
5098 | 23 extern int tv_param_noaudio; |
2790 | 24 |
25 typedef struct tvi_info_s | |
26 { | |
27 const char *name; | |
28 const char *short_name; | |
29 const char *author; | |
30 const char *comment; | |
31 } tvi_info_t; | |
32 | |
33 typedef struct tvi_functions_s | |
34 { | |
35 int (*init)(); | |
2802 | 36 int (*uninit)(); |
2790 | 37 int (*control)(); |
2802 | 38 int (*start)(); |
2790 | 39 int (*grab_video_frame)(); |
40 int (*get_video_framesize)(); | |
41 int (*grab_audio_frame)(); | |
42 int (*get_audio_framesize)(); | |
43 } tvi_functions_t; | |
44 | |
45 typedef struct tvi_handle_s { | |
2802 | 46 tvi_info_t *info; |
47 tvi_functions_t *functions; | |
48 void *priv; | |
49 int seq; | |
2941
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
50 |
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
51 /* specific */ |
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
52 int norm; |
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
53 int chanlist; |
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
54 struct CHANLIST *chanlist_s; |
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
55 int channel; |
2790 | 56 } tvi_handle_t; |
57 | |
2802 | 58 |
2790 | 59 #define TVI_CONTROL_FALSE 0 |
60 #define TVI_CONTROL_TRUE 1 | |
61 #define TVI_CONTROL_NA -1 | |
62 #define TVI_CONTROL_UNKNOWN -2 | |
63 | |
2802 | 64 /* ======================== CONTROLS =========================== */ |
2790 | 65 |
2802 | 66 /* GENERIC controls */ |
67 #define TVI_CONTROL_IS_AUDIO 0x1 | |
68 #define TVI_CONTROL_IS_VIDEO 0x2 | |
69 #define TVI_CONTROL_IS_TUNER 0x3 | |
70 | |
71 /* VIDEO controls */ | |
72 #define TVI_CONTROL_VID_GET_FPS 0x101 | |
73 #define TVI_CONTROL_VID_GET_PLANES 0x102 | |
74 #define TVI_CONTROL_VID_GET_BITS 0x103 | |
75 #define TVI_CONTROL_VID_CHK_BITS 0x104 | |
76 #define TVI_CONTROL_VID_SET_BITS 0x105 | |
77 #define TVI_CONTROL_VID_GET_FORMAT 0x106 | |
78 #define TVI_CONTROL_VID_CHK_FORMAT 0x107 | |
79 #define TVI_CONTROL_VID_SET_FORMAT 0x108 | |
80 #define TVI_CONTROL_VID_GET_WIDTH 0x109 | |
81 #define TVI_CONTROL_VID_CHK_WIDTH 0x110 | |
82 #define TVI_CONTROL_VID_SET_WIDTH 0x111 | |
83 #define TVI_CONTROL_VID_GET_HEIGHT 0x112 | |
84 #define TVI_CONTROL_VID_CHK_HEIGHT 0x113 | |
85 #define TVI_CONTROL_VID_SET_HEIGHT 0x114 | |
2937 | 86 #define TVI_CONTROL_VID_GET_BRIGHTNESS 0x115 |
87 #define TVI_CONTROL_VID_SET_BRIGHTNESS 0x116 | |
88 #define TVI_CONTROL_VID_GET_HUE 0x117 | |
89 #define TVI_CONTROL_VID_SET_HUE 0x118 | |
90 #define TVI_CONTROL_VID_GET_SATURATION 0x119 | |
91 #define TVI_CONTROL_VID_SET_SATURATION 0x11a | |
92 #define TVI_CONTROL_VID_GET_CONTRAST 0x11b | |
93 #define TVI_CONTROL_VID_SET_CONTRAST 0x11c | |
94 #define TVI_CONTROL_VID_GET_PICTURE 0x11d | |
95 #define TVI_CONTROL_VID_SET_PICTURE 0x11e | |
2790 | 96 |
2802 | 97 /* TUNER controls */ |
98 #define TVI_CONTROL_TUN_GET_FREQ 0x201 | |
99 #define TVI_CONTROL_TUN_SET_FREQ 0x202 | |
100 #define TVI_CONTROL_TUN_GET_TUNER 0x203 /* update priv->tuner struct for used input */ | |
101 #define TVI_CONTROL_TUN_SET_TUNER 0x204 /* update priv->tuner struct for used input */ | |
102 #define TVI_CONTROL_TUN_GET_NORM 0x205 | |
103 #define TVI_CONTROL_TUN_SET_NORM 0x206 | |
104 | |
105 /* AUDIO controls */ | |
106 #define TVI_CONTROL_AUD_GET_FORMAT 0x301 | |
107 #define TVI_CONTROL_AUD_GET_SAMPLERATE 0x302 | |
108 #define TVI_CONTROL_AUD_GET_SAMPLESIZE 0x303 | |
109 #define TVI_CONTROL_AUD_GET_CHANNELS 0x304 | |
110 | |
111 /* SPECIFIC controls */ | |
112 #define TVI_CONTROL_SPC_GET_INPUT 0x401 /* set input channel (tv,s-video,composite..) */ | |
113 #define TVI_CONTROL_SPC_SET_INPUT 0x402 /* set input channel (tv,s-video,composite..) */ | |
114 | |
115 extern tvi_handle_t *tv_begin(void); | |
116 extern int tv_init(tvi_handle_t *tvh); | |
2931 | 117 extern int tv_uninit(tvi_handle_t *tvh); |
2790 | 118 |
2941
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
119 int tv_set_color_options(tvi_handle_t *tvh, int opt, int val); |
2937 | 120 #define TV_COLOR_BRIGHTNESS 1 |
121 #define TV_COLOR_HUE 2 | |
122 #define TV_COLOR_SATURATION 3 | |
123 #define TV_COLOR_CONTRAST 4 | |
124 | |
2941
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
125 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
|
126 #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
|
127 #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
|
128 |
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
129 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
|
130 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
|
131 |
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
132 #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
|
133 #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
|
134 #define TV_NORM_SECAM 3 |
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
135 |
2790 | 136 #endif /* USE_TV */ |
2941
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
137 |
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2937
diff
changeset
|
138 #endif /* TV_H */ |