TTML subtitle encoder.
More...
Go to the source code of this file.
|
| static void | ttml_text_cb (void *priv, const char *text, int len) |
| |
| static void | ttml_new_line_cb (void *priv, int forced) |
| |
| static int | ttml_encode_frame (AVCodecContext *avctx, uint8_t *buf, int bufsize, const AVSubtitle *sub) |
| |
| static av_cold int | ttml_encode_close (AVCodecContext *avctx) |
| |
| static const char * | ttml_get_display_alignment (int alignment) |
| |
| static const char * | ttml_get_text_alignment (int alignment) |
| |
| static void | ttml_get_origin (ASSScriptInfo script_info, ASSStyle style, int *origin_left, int *origin_top) |
| |
| static void | ttml_get_extent (ASSScriptInfo script_info, ASSStyle style, int *width, int *height) |
| |
| static int | ttml_write_region (AVCodecContext *avctx, AVBPrint *buf, ASSScriptInfo script_info, ASSStyle style) |
| |
| static int | ttml_write_header_content (AVCodecContext *avctx) |
| |
| static av_cold int | ttml_encode_init (AVCodecContext *avctx) |
| |
◆ ttml_text_cb()
| static void ttml_text_cb |
( |
void * | priv, |
|
|
const char * | text, |
|
|
int | len ) |
|
static |
◆ ttml_new_line_cb()
| static void ttml_new_line_cb |
( |
void * | priv, |
|
|
int | forced ) |
|
static |
◆ ttml_encode_frame()
◆ ttml_encode_close()
◆ ttml_get_display_alignment()
| static const char * ttml_get_display_alignment |
( |
int | alignment | ) |
|
|
static |
◆ ttml_get_text_alignment()
| static const char * ttml_get_text_alignment |
( |
int | alignment | ) |
|
|
static |
◆ ttml_get_origin()
| static void ttml_get_origin |
( |
ASSScriptInfo | script_info, |
|
|
ASSStyle | style, |
|
|
int * | origin_left, |
|
|
int * | origin_top ) |
|
static |
◆ ttml_get_extent()
◆ ttml_write_region()
◆ ttml_write_header_content()
◆ ttml_encode_init()
◆ ttml_callbacks
Initial value:= {
}
static void ttml_text_cb(void *priv, const char *text, int len)
static void ttml_new_line_cb(void *priv, int forced)
Definition at line 74 of file ttmlenc.c.
Referenced by ttml_encode_frame().
◆ ff_ttml_encoder
Initial value:= {
.p.name = "ttml",
}
#define FF_CODEC_ENCODE_SUB_CB(func)
#define CODEC_LONG_NAME(str)
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
int(* init)(AVBSFContext *ctx)
static int ttml_encode_frame(AVCodecContext *avctx, uint8_t *buf, int bufsize, const AVSubtitle *sub)
static av_cold int ttml_encode_close(AVCodecContext *avctx)
static av_cold int ttml_encode_init(AVCodecContext *avctx)
Definition at line 382 of file ttmlenc.c.