FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
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"

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 av_cold int mov_text_encode_init ( AVCodecContext avctx)
static

Definition at line 38 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.

static void mov_text_new_line_cb ( void priv,
int  forced 
)
static

Definition at line 96 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 int mov_text_encode_close ( AVCodecContext avctx)
static

Definition at line 149 of file movtextenc.c.

Variable Documentation

const ASSCodesCallbacks mov_text_callbacks
static
Initial value:
= {
.new_line = mov_text_new_line_cb,
}

Definition at line 105 of file movtextenc.c.

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,
}

Definition at line 156 of file movtextenc.c.