From f817a5dc521e9302a142cdef19488410606e6ae9 Mon Sep 17 00:00:00 2001 From: eugeni Date: Wed, 23 Jan 2008 21:18:32 +0000 Subject: Add ass_use_margins command and property to shift subtitles to margins and back on the fly. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25842 b3059339-0415-0410-9bf9-f77b7e298cf2 --- input/input.c | 3 +++ input/input.h | 1 + 2 files changed, 4 insertions(+) (limited to 'input') diff --git a/input/input.c b/input/input.c index 8cef6fd766..6073451c8b 100644 --- a/input/input.c +++ b/input/input.c @@ -98,6 +98,9 @@ static const mp_cmd_t mp_cmds[] = { { MP_CMD_SUB_FILE, "sub_file", 0, { { MP_CMD_ARG_INT,{-2} }, {-1,{0}} } }, { MP_CMD_SUB_LOG, "sub_log", 0, { {-1,{0}} } }, { MP_CMD_SUB_SCALE, "sub_scale",1, { {MP_CMD_ARG_FLOAT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } }, +#ifdef USE_ASS + { MP_CMD_ASS_USE_MARGINS, "ass_use_margins", 0, { {MP_CMD_ARG_INT,{-1}}, {-1,{0}} } }, +#endif { MP_CMD_GET_PERCENT_POS, "get_percent_pos", 0, { {-1,{0}} } }, { MP_CMD_GET_TIME_POS, "get_time_pos", 0, { {-1,{0}} } }, { MP_CMD_GET_TIME_LENGTH, "get_time_length", 0, { {-1,{0}} } }, diff --git a/input/input.h b/input/input.h index 1cfb4b23ed..c75f370ca7 100644 --- a/input/input.h +++ b/input/input.h @@ -107,6 +107,7 @@ #define MP_CMD_SUB_VOB 103 #define MP_CMD_SUB_DEMUX 104 #define MP_CMD_SWITCH_ANGLE 105 +#define MP_CMD_ASS_USE_MARGINS 106 #define MP_CMD_GUI_EVENTS 5000 #define MP_CMD_GUI_LOADFILE 5001 -- cgit v1.2.3