#include <stdarg.h>
#include "avcodec.h"
#include "libavutil/avstring.h"
#include "libavutil/intreadwrite.h"
#include "ass_split.h"
#include "ass.h"
Go to the source code of this file.
Data Structures | |
struct | MovTextContext |
Functions | |
static av_cold int | mov_text_encode_init (AVCodecContext *avctx) |
static void | mov_text_text_cb (void *priv, const char *text, int len) |
static void | mov_text_new_line_cb (void *priv, int forced) |
static int | mov_text_encode_frame (AVCodecContext *avctx, unsigned char *buf, int bufsize, const AVSubtitle *sub) |
static int | mov_text_encode_close (AVCodecContext *avctx) |
Variables | |
static const ASSCodesCallbacks | mov_text_callbacks |
AVCodec | ff_movtext_encoder |
static int mov_text_encode_close | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 145 of file movtextenc.c.
static int mov_text_encode_frame | ( | AVCodecContext * | avctx, | |
unsigned char * | buf, | |||
int | bufsize, | |||
const AVSubtitle * | sub | |||
) | [static] |
Definition at line 106 of file movtextenc.c.
static av_cold int mov_text_encode_init | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 37 of file movtextenc.c.
static void mov_text_new_line_cb | ( | void * | priv, | |
int | forced | |||
) | [static] |
Definition at line 94 of file movtextenc.c.
static void mov_text_text_cb | ( | void * | priv, | |
const char * | text, | |||
int | len | |||
) | [static] |
Definition at line 87 of file movtextenc.c.
Initial value:
{ .name = "mov_text", .long_name = NULL_IF_CONFIG_SMALL("3GPP Timed Text subtitle"), .type = AVMEDIA_TYPE_SUBTITLE, .id = AV_CODEC_ID_MOV_TEXT, .priv_data_size = sizeof(MovTextContext), .init = mov_text_encode_init, .encode_sub = mov_text_encode_frame, .close = mov_text_encode_close, }
Definition at line 152 of file movtextenc.c.
const ASSCodesCallbacks mov_text_callbacks [static] |
Initial value:
{ .text = mov_text_text_cb, .new_line = mov_text_new_line_cb, }
Definition at line 101 of file movtextenc.c.