summaryrefslogtreecommitdiffstats
path: root/subreader.h
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-15 13:16:52 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-15 13:16:52 +0000
commit5e00ed042b6226f53710ecc40ff6fb113ea94b6e (patch)
tree26722d82ff13bb18bb7785a1ad2433f4fa0062b7 /subreader.h
parentf6674ba8beec9612c85fea5839b1dc838cc6a078 (diff)
downloadmpv-5e00ed042b6226f53710ecc40ff6fb113ea94b6e.tar.bz2
mpv-5e00ed042b6226f53710ecc40ff6fb113ea94b6e.tar.xz
This time is a patch to improve subtitle alignment management. It
implements SSA alignment styles; note that alignment for SSA files is not actually supported, but for SAMI files (which use the same alignment codes) it is. patch by Salvatore Falco <sfalco at studenti.ing.uniroma1.it> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13344 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'subreader.h')
-rw-r--r--subreader.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/subreader.h b/subreader.h
index 36de461ed2..bcf9aed08b 100644
--- a/subreader.h
+++ b/subreader.h
@@ -30,9 +30,15 @@ extern int sub_format;
#define MAX_SUBTITLE_FILES 128
#define SUB_MAX_TEXT 10
-#define SUB_ALIGNMENT_HLEFT 1
-#define SUB_ALIGNMENT_HCENTER 0
-#define SUB_ALIGNMENT_HRIGHT 2
+#define SUB_ALIGNMENT_BOTTOMLEFT 1
+#define SUB_ALIGNMENT_BOTTOMCENTER 2
+#define SUB_ALIGNMENT_BOTTOMRIGHT 3
+#define SUB_ALIGNMENT_MIDDLELEFT 4
+#define SUB_ALIGNMENT_MIDDLECENTER 5
+#define SUB_ALIGNMENT_MIDDLERIGHT 6
+#define SUB_ALIGNMENT_TOPLEFT 7
+#define SUB_ALIGNMENT_TOPCENTER 8
+#define SUB_ALIGNMENT_TOPRIGHT 9
typedef struct {