Mercurial > mplayer.hg
comparison input/input.c @ 27341:e7c989f7a7c9
Start unifying names of internal preprocessor directives.
Replace all USE_ prefixes by CONFIG_ prefixes to indicate
options which are configurable.
author | diego |
---|---|
date | Wed, 30 Jul 2008 12:01:30 +0000 |
parents | d7e0e33c546f |
children | 5fe6a8adf569 |
comparison
equal
deleted
inserted
replaced
27340:33274ce3cce0 | 27341:e7c989f7a7c9 |
---|---|
49 | 49 |
50 /// For the args, the first field is the type (actually int, float or string), the second | 50 /// For the args, the first field is the type (actually int, float or string), the second |
51 /// is the default value wich is used for optional arguments | 51 /// is the default value wich is used for optional arguments |
52 | 52 |
53 static const mp_cmd_t mp_cmds[] = { | 53 static const mp_cmd_t mp_cmds[] = { |
54 #ifdef USE_RADIO | 54 #ifdef CONFIG_RADIO |
55 { MP_CMD_RADIO_STEP_CHANNEL, "radio_step_channel", 1, { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }}, | 55 { MP_CMD_RADIO_STEP_CHANNEL, "radio_step_channel", 1, { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }}, |
56 { MP_CMD_RADIO_SET_CHANNEL, "radio_set_channel", 1, { { MP_CMD_ARG_STRING, {0}}, {-1,{0}} }}, | 56 { MP_CMD_RADIO_SET_CHANNEL, "radio_set_channel", 1, { { MP_CMD_ARG_STRING, {0}}, {-1,{0}} }}, |
57 { MP_CMD_RADIO_SET_FREQ, "radio_set_freq", 1, { {MP_CMD_ARG_FLOAT,{0}}, {-1,{0}} } }, | 57 { MP_CMD_RADIO_SET_FREQ, "radio_set_freq", 1, { {MP_CMD_ARG_FLOAT,{0}}, {-1,{0}} } }, |
58 { MP_CMD_RADIO_STEP_FREQ, "radio_step_freq", 1, { {MP_CMD_ARG_FLOAT,{0}}, {-1,{0}} } }, | 58 { MP_CMD_RADIO_STEP_FREQ, "radio_step_freq", 1, { {MP_CMD_ARG_FLOAT,{0}}, {-1,{0}} } }, |
59 #endif | 59 #endif |
97 { MP_CMD_SUB_VOB, "sub_vob", 0, { { MP_CMD_ARG_INT,{-2} }, {-1,{0}} } }, | 97 { MP_CMD_SUB_VOB, "sub_vob", 0, { { MP_CMD_ARG_INT,{-2} }, {-1,{0}} } }, |
98 { MP_CMD_SUB_DEMUX, "sub_demux", 0, { { MP_CMD_ARG_INT,{-2} }, {-1,{0}} } }, | 98 { MP_CMD_SUB_DEMUX, "sub_demux", 0, { { MP_CMD_ARG_INT,{-2} }, {-1,{0}} } }, |
99 { MP_CMD_SUB_FILE, "sub_file", 0, { { MP_CMD_ARG_INT,{-2} }, {-1,{0}} } }, | 99 { MP_CMD_SUB_FILE, "sub_file", 0, { { MP_CMD_ARG_INT,{-2} }, {-1,{0}} } }, |
100 { MP_CMD_SUB_LOG, "sub_log", 0, { {-1,{0}} } }, | 100 { MP_CMD_SUB_LOG, "sub_log", 0, { {-1,{0}} } }, |
101 { MP_CMD_SUB_SCALE, "sub_scale",1, { {MP_CMD_ARG_FLOAT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } }, | 101 { MP_CMD_SUB_SCALE, "sub_scale",1, { {MP_CMD_ARG_FLOAT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } }, |
102 #ifdef USE_ASS | 102 #ifdef CONFIG_ASS |
103 { MP_CMD_ASS_USE_MARGINS, "ass_use_margins", 0, { {MP_CMD_ARG_INT,{-1}}, {-1,{0}} } }, | 103 { MP_CMD_ASS_USE_MARGINS, "ass_use_margins", 0, { {MP_CMD_ARG_INT,{-1}}, {-1,{0}} } }, |
104 #endif | 104 #endif |
105 { MP_CMD_GET_PERCENT_POS, "get_percent_pos", 0, { {-1,{0}} } }, | 105 { MP_CMD_GET_PERCENT_POS, "get_percent_pos", 0, { {-1,{0}} } }, |
106 { MP_CMD_GET_TIME_POS, "get_time_pos", 0, { {-1,{0}} } }, | 106 { MP_CMD_GET_TIME_POS, "get_time_pos", 0, { {-1,{0}} } }, |
107 { MP_CMD_GET_TIME_LENGTH, "get_time_length", 0, { {-1,{0}} } }, | 107 { MP_CMD_GET_TIME_LENGTH, "get_time_length", 0, { {-1,{0}} } }, |
120 { MP_CMD_GET_META_TRACK, "get_meta_track", 0, { {-1,{0}} } }, | 120 { MP_CMD_GET_META_TRACK, "get_meta_track", 0, { {-1,{0}} } }, |
121 { MP_CMD_GET_META_GENRE, "get_meta_genre", 0, { {-1,{0}} } }, | 121 { MP_CMD_GET_META_GENRE, "get_meta_genre", 0, { {-1,{0}} } }, |
122 { MP_CMD_SWITCH_AUDIO, "switch_audio", 0, { { MP_CMD_ARG_INT,{-1} }, {-1,{0}} } }, | 122 { MP_CMD_SWITCH_AUDIO, "switch_audio", 0, { { MP_CMD_ARG_INT,{-1} }, {-1,{0}} } }, |
123 { MP_CMD_SWITCH_ANGLE, "switch_angle", 0, { { MP_CMD_ARG_INT,{-1} }, {-1,{0}} } }, | 123 { MP_CMD_SWITCH_ANGLE, "switch_angle", 0, { { MP_CMD_ARG_INT,{-1} }, {-1,{0}} } }, |
124 { MP_CMD_SWITCH_TITLE, "switch_title", 0, { { MP_CMD_ARG_INT,{-1} }, {-1,{0}} } }, | 124 { MP_CMD_SWITCH_TITLE, "switch_title", 0, { { MP_CMD_ARG_INT,{-1} }, {-1,{0}} } }, |
125 #ifdef USE_TV | 125 #ifdef CONFIG_TV |
126 { MP_CMD_TV_START_SCAN, "tv_start_scan", 0, { {-1,{0}} }}, | 126 { MP_CMD_TV_START_SCAN, "tv_start_scan", 0, { {-1,{0}} }}, |
127 { MP_CMD_TV_STEP_CHANNEL, "tv_step_channel", 1, { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }}, | 127 { MP_CMD_TV_STEP_CHANNEL, "tv_step_channel", 1, { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }}, |
128 { MP_CMD_TV_STEP_NORM, "tv_step_norm",0, { {-1,{0}} } }, | 128 { MP_CMD_TV_STEP_NORM, "tv_step_norm",0, { {-1,{0}} } }, |
129 { MP_CMD_TV_STEP_CHANNEL_LIST, "tv_step_chanlist", 0, { {-1,{0}} } }, | 129 { MP_CMD_TV_STEP_CHANNEL_LIST, "tv_step_chanlist", 0, { {-1,{0}} } }, |
130 { MP_CMD_TV_SET_CHANNEL, "tv_set_channel", 1, { { MP_CMD_ARG_STRING, {0}}, {-1,{0}} }}, | 130 { MP_CMD_TV_SET_CHANNEL, "tv_set_channel", 1, { { MP_CMD_ARG_STRING, {0}}, {-1,{0}} }}, |
168 { MP_CMD_GUI_PLAYLIST, "gui_playlist", 0, { {-1,{0}} } }, | 168 { MP_CMD_GUI_PLAYLIST, "gui_playlist", 0, { {-1,{0}} } }, |
169 { MP_CMD_GUI_PREFERENCES, "gui_preferences", 0, { {-1,{0}} } }, | 169 { MP_CMD_GUI_PREFERENCES, "gui_preferences", 0, { {-1,{0}} } }, |
170 { MP_CMD_GUI_SKINBROWSER, "gui_skinbrowser", 0, { {-1,{0}} } }, | 170 { MP_CMD_GUI_SKINBROWSER, "gui_skinbrowser", 0, { {-1,{0}} } }, |
171 #endif | 171 #endif |
172 | 172 |
173 #ifdef USE_DVDNAV | 173 #ifdef CONFIG_DVDNAV |
174 { MP_CMD_DVDNAV, "dvdnav", 1, { {MP_CMD_ARG_STRING, {0}}, {-1,{0}} } }, | 174 { MP_CMD_DVDNAV, "dvdnav", 1, { {MP_CMD_ARG_STRING, {0}}, {-1,{0}} } }, |
175 #endif | 175 #endif |
176 | 176 |
177 #ifdef HAVE_MENU | 177 #ifdef HAVE_MENU |
178 { MP_CMD_MENU, "menu",1, { {MP_CMD_ARG_STRING, {0}}, {-1,{0}} } }, | 178 { MP_CMD_MENU, "menu",1, { {MP_CMD_ARG_STRING, {0}}, {-1,{0}} } }, |
344 { { MOUSE_BTN3, 0 }, "seek 10" }, | 344 { { MOUSE_BTN3, 0 }, "seek 10" }, |
345 { { MOUSE_BTN4, 0 }, "seek -10" }, | 345 { { MOUSE_BTN4, 0 }, "seek -10" }, |
346 { { MOUSE_BTN5, 0 }, "volume 1" }, | 346 { { MOUSE_BTN5, 0 }, "volume 1" }, |
347 { { MOUSE_BTN6, 0 }, "volume -1" }, | 347 { { MOUSE_BTN6, 0 }, "volume -1" }, |
348 | 348 |
349 #ifdef USE_DVDNAV | 349 #ifdef CONFIG_DVDNAV |
350 { { KEY_KP8, 0 }, "dvdnav up" }, // up | 350 { { KEY_KP8, 0 }, "dvdnav up" }, // up |
351 { { KEY_KP2, 0 }, "dvdnav down" }, // down | 351 { { KEY_KP2, 0 }, "dvdnav down" }, // down |
352 { { KEY_KP4, 0 }, "dvdnav left" }, // left | 352 { { KEY_KP4, 0 }, "dvdnav left" }, // left |
353 { { KEY_KP6, 0 }, "dvdnav right" }, // right | 353 { { KEY_KP6, 0 }, "dvdnav right" }, // right |
354 { { KEY_KP5, 0 }, "dvdnav menu" }, // menu | 354 { { KEY_KP5, 0 }, "dvdnav menu" }, // menu |
413 { { 'F', 0 }, "forced_subs_only" }, | 413 { { 'F', 0 }, "forced_subs_only" }, |
414 { { '#', 0 }, "switch_audio" }, | 414 { { '#', 0 }, "switch_audio" }, |
415 { { '_', 0 }, "step_property switch_video" }, | 415 { { '_', 0 }, "step_property switch_video" }, |
416 { { KEY_TAB, 0 }, "step_property switch_program" }, | 416 { { KEY_TAB, 0 }, "step_property switch_program" }, |
417 { { 'i', 0 }, "edl_mark" }, | 417 { { 'i', 0 }, "edl_mark" }, |
418 #ifdef USE_TV | 418 #ifdef CONFIG_TV |
419 { { 'h', 0 }, "tv_step_channel 1" }, | 419 { { 'h', 0 }, "tv_step_channel 1" }, |
420 { { 'k', 0 }, "tv_step_channel -1" }, | 420 { { 'k', 0 }, "tv_step_channel -1" }, |
421 { { 'n', 0 }, "tv_step_norm" }, | 421 { { 'n', 0 }, "tv_step_norm" }, |
422 { { 'u', 0 }, "tv_step_chanlist" }, | 422 { { 'u', 0 }, "tv_step_chanlist" }, |
423 #endif | 423 #endif |