movtextenc.c File Reference
#include <stdarg.h>
#include "avcodec.h"
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/intreadwrite.h"
#include "ass_split.h"
#include "ass.h"
Include dependency graph for movtextenc.c:

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
 

Function Documentation

static int mov_text_encode_close ( AVCodecContext avctx)
static

Definition at line 149 of file movtextenc.c.

static int mov_text_encode_frame ( AVCodecContext avctx,
unsigned char *  buf,
int  bufsize,
const AVSubtitle sub 
)
static

Definition at line 110 of file movtextenc.c.

static av_cold int mov_text_encode_init ( AVCodecContext avctx)
static

Definition at line 38 of file movtextenc.c.

static void mov_text_new_line_cb ( void priv,
int  forced 
)
static

Definition at line 96 of file movtextenc.c.

static void mov_text_text_cb ( void priv,
const char *  text,
int  len 
)
static

Definition at line 88 of file movtextenc.c.

Variable Documentation

AVCodec ff_movtext_encoder
Initial value:
= {
.name = "mov_text",
.long_name = NULL_IF_CONFIG_SMALL("3GPP Timed Text subtitle"),
.priv_data_size = sizeof(MovTextContext),
.encode_sub = mov_text_encode_frame,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int mov_text_encode_init(AVCodecContext *avctx)
Definition: movtextenc.c:38
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int mov_text_encode_frame(AVCodecContext *avctx, unsigned char *buf, int bufsize, const AVSubtitle *sub)
Definition: movtextenc.c:110
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:375
static int mov_text_encode_close(AVCodecContext *avctx)
Definition: movtextenc.c:149

Definition at line 156 of file movtextenc.c.

const ASSCodesCallbacks mov_text_callbacks
static
Initial value:
= {
.new_line = mov_text_new_line_cb,
}
static void mov_text_text_cb(void *priv, const char *text, int len)
Definition: movtextenc.c:88
static void mov_text_new_line_cb(void *priv, int forced)
Definition: movtextenc.c:96

Definition at line 105 of file movtextenc.c.