mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 06:42:03 +00:00
Hi, here are slave commands:
tv_set_brightness tv_set_contrast tv_set_hue tv_set_color Patch by Kir Kostuchenko <kir@users.sourceforge.net> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10578 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
1badec0613
commit
e8a173deec
@ -80,5 +80,13 @@ tv_set_freq <frequency in MHz>
|
||||
Set the tv tuner frequency.
|
||||
tv_set_norm <norm>
|
||||
Set the tv tuner norm. PAL, SECAM, NTSC and so on..
|
||||
tv_set_brightness [-100:100]
|
||||
Set tv tuner brightness.
|
||||
tv_set_contrast [-100:100]
|
||||
Set tv tuner contrast.
|
||||
tv_set_hue [-100:100]
|
||||
Set tv tuner hue.
|
||||
tv_set_saturation [-100:100]
|
||||
Set tv tuner saturation.
|
||||
gui_[loadsubtitle|about|play|stop]
|
||||
GUI actions
|
||||
|
@ -87,6 +87,10 @@ static mp_cmd_t mp_cmds[] = {
|
||||
{ MP_CMD_TV_LAST_CHANNEL, "tv_last_channel", 0, { {-1,{0}} } },
|
||||
{ MP_CMD_TV_SET_FREQ, "tv_set_freq", 1, { {MP_CMD_ARG_FLOAT,{0}}, {-1,{0}} } },
|
||||
{ MP_CMD_TV_SET_NORM, "tv_set_norm", 1, { {MP_CMD_ARG_STRING,{0}}, {-1,{0}} } },
|
||||
{ MP_CMD_TV_SET_BRIGHTNESS, "tv_set_brightness", 1, { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }},
|
||||
{ MP_CMD_TV_SET_CONTRAST, "tv_set_contrast", 1, { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }},
|
||||
{ MP_CMD_TV_SET_HUE, "tv_set_hue", 1, { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }},
|
||||
{ MP_CMD_TV_SET_SATURATION, "tv_set_saturation", 1, { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }},
|
||||
#endif
|
||||
{ MP_CMD_VO_FULLSCREEN, "vo_fullscreen", 0, { {-1,{0}} } },
|
||||
{ MP_CMD_SCREENSHOT, "screenshot", 0, { {-1,{0}} } },
|
||||
|
@ -45,6 +45,10 @@
|
||||
#define MP_CMD_OSD_SHOW_TEXT 41
|
||||
#define MP_CMD_TV_SET_FREQ 42
|
||||
#define MP_CMD_TV_SET_NORM 43
|
||||
#define MP_CMD_TV_SET_BRIGHTNESS 44
|
||||
#define MP_CMD_TV_SET_CONTRAST 45
|
||||
#define MP_CMD_TV_SET_HUE 46
|
||||
#define MP_CMD_TV_SET_SATURATION 47
|
||||
|
||||
#define MP_CMD_GUI_EVENTS 5000
|
||||
#define MP_CMD_GUI_LOADFILE 5001
|
||||
|
16
mplayer.c
16
mplayer.c
@ -2777,6 +2777,22 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
|
||||
if (file_format == DEMUXER_TYPE_TV)
|
||||
tv_set_norm((tvi_handle_t*)(demuxer->priv), cmd->args[0].v.s);
|
||||
} break;
|
||||
case MP_CMD_TV_SET_BRIGHTNESS : {
|
||||
if (file_format == DEMUXER_TYPE_TV)
|
||||
tv_set_color_options((tvi_handle_t*)(demuxer->priv), TV_COLOR_BRIGHTNESS, cmd->args[0].v.i);
|
||||
} break;
|
||||
case MP_CMD_TV_SET_HUE : {
|
||||
if (file_format == DEMUXER_TYPE_TV)
|
||||
tv_set_color_options((tvi_handle_t*)(demuxer->priv), TV_COLOR_HUE, cmd->args[0].v.i);
|
||||
} break;
|
||||
case MP_CMD_TV_SET_SATURATION : {
|
||||
if (file_format == DEMUXER_TYPE_TV)
|
||||
tv_set_color_options((tvi_handle_t*)(demuxer->priv), TV_COLOR_SATURATION, cmd->args[0].v.i);
|
||||
} break;
|
||||
case MP_CMD_TV_SET_CONTRAST : {
|
||||
if (file_format == DEMUXER_TYPE_TV)
|
||||
tv_set_color_options((tvi_handle_t*)(demuxer->priv), TV_COLOR_CONTRAST, cmd->args[0].v.i);
|
||||
} break;
|
||||
case MP_CMD_TV_STEP_CHANNEL : {
|
||||
if (file_format == DEMUXER_TYPE_TV) {
|
||||
int v = cmd->args[0].v.i;
|
||||
|
Loading…
Reference in New Issue
Block a user