comparison cfg-mplayer.h @ 24105:9e71e0345c35

Automatic TV channels scanning ability for MPlayer. Code is based on patch from Otvos Attila oattila at chello dot hu
author voroshil
date Thu, 23 Aug 2007 16:09:30 +0000
parents f3db21f1963b
children 2bf8d87447d7
comparison
equal deleted inserted replaced
24104:b0a47d3bf2f3 24105:9e71e0345c35
112 m_option_t vd_conf[]={ 112 m_option_t vd_conf[]={
113 {"help", "Use MPlayer with an appropriate video file instead of live partners to avoid vd.\n", CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL}, 113 {"help", "Use MPlayer with an appropriate video file instead of live partners to avoid vd.\n", CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
114 {NULL, NULL, 0, 0, 0, 0, NULL} 114 {NULL, NULL, 0, 0, 0, 0, NULL}
115 }; 115 };
116 116
117 #ifdef USE_TV
118 m_option_t tvscan_conf[]={
119 {"autostart", &stream_tv_defaults.scan, CONF_TYPE_FLAG, 0, 0, 1, NULL},
120 {"threshold", &stream_tv_defaults.scan_threshold, CONF_TYPE_INT, CONF_RANGE, 1, 100, NULL},
121 {"period", &stream_tv_defaults.scan_period, CONF_TYPE_FLOAT, CONF_RANGE, 0.1, 2.0, NULL},
122 {NULL, NULL, 0, 0, 0, 0, NULL}
123 };
124 #endif
117 /* 125 /*
118 * CONF_TYPE_FUNC_FULL : 126 * CONF_TYPE_FUNC_FULL :
119 * allows own implementations for passing the params 127 * allows own implementations for passing the params
120 * 128 *
121 * the function receives parameter name and argument (if it does not start with - ) 129 * the function receives parameter name and argument (if it does not start with - )
385 {"noconsolecontrols", &noconsolecontrols, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, 393 {"noconsolecontrols", &noconsolecontrols, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
386 {"consolecontrols", &noconsolecontrols, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL}, 394 {"consolecontrols", &noconsolecontrols, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
387 {"mouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, 395 {"mouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
388 {"nomouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL}, 396 {"nomouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
389 {"doubleclick-time", &doubleclick_time, CONF_TYPE_INT, CONF_RANGE, 0, 1000, NULL}, 397 {"doubleclick-time", &doubleclick_time, CONF_TYPE_INT, CONF_RANGE, 0, 1000, NULL},
398 #ifdef USE_TV
399 {"tvscan", &tvscan_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
400 #else
401 {"tvscan", "MPlayer was compiled without TV interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
402 #endif
390 403
391 #define MAIN_CONF 404 #define MAIN_CONF
392 #include "cfg-common.h" 405 #include "cfg-common.h"
393 #undef MAIN_CONF 406 #undef MAIN_CONF
394 407