TTML subtitle encoder.
More...
Go to the source code of this file.
◆ 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_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 75 of file ttmlenc.c.
Referenced by ttml_encode_frame().
◆ ff_ttml_encoder
Initial value:= {
.name = "ttml",
}
static av_cold int init(AVCodecContext *avctx)
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
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)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition at line 200 of file ttmlenc.c.