diff options
author | jstebbins <[email protected]> | 2014-04-13 16:22:16 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-04-13 16:22:16 +0000 |
commit | 6db1a1e531ad62ba977f4587fb9011b0fd0b3416 (patch) | |
tree | 2c6882e9344b8181a11238835ae163d52e98e49e /libhb/decssasub.h | |
parent | e6ca45c979ec69bd1736bc943063083b08ce1914 (diff) |
Convert all text subtitles to ASS subs
Add support for font color to tx3g.
Allow more than one style flag at time in tx3g.
Add positioning support to CC subs
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6163 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/decssasub.h')
-rw-r--r-- | libhb/decssasub.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/libhb/decssasub.h b/libhb/decssasub.h new file mode 100644 index 000000000..65bc39187 --- /dev/null +++ b/libhb/decssasub.h @@ -0,0 +1,35 @@ +/* decssasub.h + * + * Copyright (c) 2003-2014 HandBrake Team + * This file is part of the HandBrake source code + * Homepage: <http://handbrake.fr/>. + * It may be used under the terms of the GNU General Public License v2. + * For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html + */ + +#ifndef __DECSSASUB_H__ +#define __DECSSASUB_H__ + +typedef struct +{ + uint32_t flags; + + uint32_t fg_rgb; // forground color + uint32_t alt_rgb; // secondary color + uint32_t ol_rgb; // outline color + uint32_t bg_rgb; // background color + + uint32_t fg_alpha; // forground alpha + uint32_t alt_alpha; // secondary alpha + uint32_t ol_alpha; // outline alpha + uint32_t bg_alpha; // background alpha +} hb_subtitle_style_t; + +#define HB_STYLE_FLAG_ITALIC 0x0001 +#define HB_STYLE_FLAG_BOLD 0x0002 +#define HB_STYLE_FLAG_UNDERLINE 0x0004 + +char * hb_ssa_to_text(char *in, int *consumed, hb_subtitle_style_t *style); +void hb_ssa_style_init(hb_subtitle_style_t *style); + +#endif // __DECSSASUB_H__ |