summaryrefslogtreecommitdiffstats
path: root/libass/ass_parse.h
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2009-09-01 23:15:48 +0200
committerGrigori Goronzy <greg@blackbox>2009-09-01 23:21:24 +0200
commitcf7c6e4cc8cd8cec37041179239554905a4a7517 (patch)
treeb27b420d8c66bf7ac02c94a5cccee657b14de0ec /libass/ass_parse.h
parenta854a325a2586ee1d947493036b188acadbaaef2 (diff)
downloadlibass-cf7c6e4cc8cd8cec37041179239554905a4a7517.tar.bz2
libass-cf7c6e4cc8cd8cec37041179239554905a4a7517.tar.xz
Refactor: move event parsing code into separate file
Move all code related to parsing event lines and processing override tags into a separate file (ass_parse.c).
Diffstat (limited to 'libass/ass_parse.h')
-rw-r--r--libass/ass_parse.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/libass/ass_parse.h b/libass/ass_parse.h
new file mode 100644
index 0000000..eac2bae
--- /dev/null
+++ b/libass/ass_parse.h
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2009 Grigori Goronzy <greg@geekmind.org>
+ *
+ * This file is part of libass.
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef LIBASS_PARSE_H
+#define LIBASS_PARSE_H
+
+#define BLUR_MAX_RADIUS 100.0
+
+#define _r(c) ((c) >> 24)
+#define _g(c) (((c) >> 16) & 0xFF)
+#define _b(c) (((c) >> 8) & 0xFF)
+#define _a(c) ((c) & 0xFF)
+
+void update_font(ASS_Renderer *render_priv);
+void change_border(ASS_Renderer *render_priv, double border_x,
+ double border_y);
+unsigned get_next_char(ASS_Renderer *render_priv, char **str);
+inline void change_alpha(uint32_t *var, uint32_t new, double pwr);
+inline uint32_t mult_alpha(uint32_t a, uint32_t b);
+
+
+#endif /* LIBASS_PARSE_H */