diff options
author | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-02-07 01:13:07 +0000 |
---|---|---|
committer | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-02-07 01:13:07 +0000 |
commit | 4fdc9591b4c176098f0388198389ce5b74bb5fee (patch) | |
tree | 08a7a0310967098d1945edfa6696f2e550b4655e | |
parent | 94ea507ec23433fe594fec19e41bd96f89cd8083 (diff) | |
download | mpv-4fdc9591b4c176098f0388198389ce5b74bb5fee.tar.bz2 mpv-4fdc9591b4c176098f0388198389ce5b74bb5fee.tar.xz |
Add stubs for a few unimplemented tags.
Patch by Grigori G, greg at chown ath cx.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28472 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libass/ass_render.c | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c index a526f3e56c..d41878b69e 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -694,7 +694,45 @@ static char* parse_tag(char* p, double pwr) { if ((*p == '}') || (*p == 0)) return p; - if (mystrcmp(&p, "blur")) { + // New tags introduced in vsfilter 2.39 + if (mystrcmp(&p, "xbord")) { + double val; + if (mystrtod(&p, &val)) + mp_msg(MSGT_ASS, MSGL_V, "stub: \\xbord%.2f\n", val); + } else if (mystrcmp(&p, "ybord")) { + double val; + if (mystrtod(&p, &val)) + mp_msg(MSGT_ASS, MSGL_V, "stub: \\ybord%.2f\n", val); + } else if (mystrcmp(&p, "xshad")) { + int val; + if (mystrtoi(&p, 10, &val)) + mp_msg(MSGT_ASS, MSGL_V, "stub: \\xshad%d\n", val); + } else if (mystrcmp(&p, "yshad")) { + int val; + if (mystrtoi(&p, 10, &val)) + mp_msg(MSGT_ASS, MSGL_V, "stub: \\yshad%d\n", val); + } else if (mystrcmp(&p, "fax")) { + int val; + if (mystrtoi(&p, 10, &val)) + mp_msg(MSGT_ASS, MSGL_V, "stub: \\fax%d\n", val); + } else if (mystrcmp(&p, "fay")) { + int val; + if (mystrtoi(&p, 10, &val)) + mp_msg(MSGT_ASS, MSGL_V, "stub: \\fay%d\n", val); + } else if (mystrcmp(&p, "iclip")) { + int x0, y0, x1, y1; + int res = 1; + skip('('); + res &= mystrtoi(&p, 10, &x0); + skip(','); + res &= mystrtoi(&p, 10, &y0); + skip(','); + res &= mystrtoi(&p, 10, &x1); + skip(','); + res &= mystrtoi(&p, 10, &y1); + skip(')'); + mp_msg(MSGT_ASS, MSGL_V, "stub: \\iclip(%d,%d,%d,%d)\n", x0, y0, x1, y1); + } else if (mystrcmp(&p, "blur")) { double val; if (mystrtod(&p, &val)) { val = (val < 0) ? 0 : val; |