From 6db1a1e531ad62ba977f4587fb9011b0fd0b3416 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Sun, 13 Apr 2014 16:22:16 +0000 Subject: 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 --- libhb/decssasub.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 libhb/decssasub.h (limited to 'libhb/decssasub.h') 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: . + * 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__ -- cgit v1.2.3