Mercurial > mplayer.hg
comparison libvo/sub.h @ 8534:922ce27eb683
This patch adds support for vertical subtitle alignment
control. Possible values are top, center, and bottom,
with bottom being the default. Alignment is relevant when
it comes to positioning subtitles with one line (or fewer
lines) of text relative to multi-line subtitles.
It is implemented as a new command (sub_alignment) that
without an argument cycles the alignment (between top,
center, and bottom), or with an argument sets the
alignment (0 for top, 1 for center, 2 for bottom).
The key 'i' is bound to this command.
patch by Oskar Liljeblad (oskar@osk.mine.nu)
author | arpi |
---|---|
date | Mon, 23 Dec 2002 01:37:43 +0000 |
parents | 2202c00001e3 |
children | 4c18c4e7f34e |
comparison
equal
deleted
inserted
replaced
8533:9b73b801af55 | 8534:922ce27eb683 |
---|---|
95 | 95 |
96 #ifdef USE_ICONV | 96 #ifdef USE_ICONV |
97 extern char *sub_cp; | 97 extern char *sub_cp; |
98 #endif | 98 #endif |
99 extern int sub_pos; | 99 extern int sub_pos; |
100 extern int sub_alignment; | |
100 extern int sub_visibility; | 101 extern int sub_visibility; |
101 extern int suboverlap_enabled; | 102 extern int suboverlap_enabled; |
102 | 103 |
103 //extern void vo_draw_text_osd(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)); | 104 //extern void vo_draw_text_osd(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)); |
104 //extern void vo_draw_text_progbar(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)); | 105 //extern void vo_draw_text_progbar(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)); |