comparison libvo/vo_dxr2.c @ 7867:3dc0b71630ff

cleanup config option handling in libmpdemux. removed overcompilacted m_config_register_options() mess - export the subconfig structs instead
author arpi
date Wed, 23 Oct 2002 17:21:01 +0000
parents cb1ed89029e7
children f3a33e92e1c1
comparison
equal deleted inserted replaced
7866:732a8bfc7681 7867:3dc0b71630ff
59 static int iec958_mode = DXR2_IEC958_DECODED; 59 static int iec958_mode = DXR2_IEC958_DECODED;
60 static int mute_mode = DXR2_AUDIO_MUTE_OFF; 60 static int mute_mode = DXR2_AUDIO_MUTE_OFF;
61 static int ignore_cache = 0; 61 static int ignore_cache = 0;
62 static int update_cache = 0; 62 static int update_cache = 0;
63 63
64 static config_t dxr2_opts[] = { 64 config_t dxr2_opts[] = {
65 { "overlay", &use_ol, CONF_TYPE_FLAG, 0, 0, 1, NULL}, 65 { "overlay", &use_ol, CONF_TYPE_FLAG, 0, 0, 1, NULL},
66 { "nooverlay", &use_ol, CONF_TYPE_FLAG, 0, 1, 0, NULL}, 66 { "nooverlay", &use_ol, CONF_TYPE_FLAG, 0, 1, 0, NULL},
67 { "overlay-ratio", &ol_ratio, CONF_TYPE_INT, CONF_RANGE, 1, 2500, NULL }, 67 { "overlay-ratio", &ol_ratio, CONF_TYPE_INT, CONF_RANGE, 1, 2500, NULL },
68 { "ucode", &ucode, CONF_TYPE_STRING,0, 0, 0, NULL}, 68 { "ucode", &ucode, CONF_TYPE_STRING,0, 0, 0, NULL},
69 69
93 93
94 { "ignore-cache",&ignore_cache,CONF_TYPE_FLAG, 0, 0, 1, NULL}, 94 { "ignore-cache",&ignore_cache,CONF_TYPE_FLAG, 0, 0, 1, NULL},
95 { "update-cache",&update_cache,CONF_TYPE_FLAG, 0, 0, 1, NULL}, 95 { "update-cache",&update_cache,CONF_TYPE_FLAG, 0, 0, 1, NULL},
96 { NULL,NULL, 0, 0, 0, 0, NULL} 96 { NULL,NULL, 0, 0, 0, 0, NULL}
97 }; 97 };
98
99 static config_t dxr2_opt[] = {
100 { "dxr2", &dxr2_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
101 { NULL,NULL, 0, 0, 0, 0, NULL}
102 };
103
104 void vo_dxr2_register_options(m_config_t* cfg) {
105 m_config_register_options(cfg,dxr2_opt);
106 }
107 98
108 static vo_info_t vo_info = { 99 static vo_info_t vo_info = {
109 "DXR2 video out", 100 "DXR2 video out",
110 "dxr2", 101 "dxr2",
111 "Alban Bedel <albeu@free.fr> and Tobias Diedrich <ranma@gmx.at>", 102 "Alban Bedel <albeu@free.fr> and Tobias Diedrich <ranma@gmx.at>",