blob: 319262b736a194102b429780fbfcd1a2a15015ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/* ssautil.h
*
* Copyright (c) 2003-2019 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 __SSAUTIL_H__
#define __SSAUTIL_H__
typedef struct hb_subtitle_style_s hb_subtitle_style_t;
typedef struct hb_subtitle_style_context_s hb_subtitle_style_context_t;
typedef struct hb_tx3g_output_buf_s hb_tx3g_output_buf_t;
typedef struct hb_tx3g_style_context_s hb_tx3g_style_context_t;
#define HB_STYLE_FLAG_ITALIC 0x0001
#define HB_STYLE_FLAG_BOLD 0x0002
#define HB_STYLE_FLAG_UNDERLINE 0x0004
hb_subtitle_style_context_t * hb_subtitle_style_init(const char * ssa_header);
hb_tx3g_style_context_t * hb_tx3g_style_init(
int height, const char * ssa_header);
void hb_subtitle_style_close(hb_subtitle_style_context_t ** ctx);
void hb_tx3g_style_close(hb_tx3g_style_context_t ** ctx);
void hb_muxmp4_process_subtitle_style(
hb_tx3g_style_context_t * ctx,
uint8_t * input, uint8_t ** output,
uint8_t ** style, uint16_t * stylesize);
#endif // __SSAUTIL_H__
|