diff input/input.c @ 25814:4ba9b9bdf123

Add ass_use_margins command and property to shift subtitles to margins and back on the fly.
author eugeni
date Wed, 23 Jan 2008 21:18:32 +0000
parents 6201cc9cca7f
children 883c6c3ae041
line wrap: on
line diff
--- a/input/input.c	Wed Jan 23 21:18:30 2008 +0000
+++ b/input/input.c	Wed Jan 23 21:18:32 2008 +0000
@@ -98,6 +98,9 @@
   { 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}} } },