FFmpeg
 All Data Structures Namespaces 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,
}
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.

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. ...
Definition: internal.h:175
static int mov_text_encode_frame(AVCodecContext *avctx, unsigned char *buf, int bufsize, const AVSubtitle *sub)
Definition: movtextenc.c:110
static int mov_text_encode_close(AVCodecContext *avctx)
Definition: movtextenc.c:149

Definition at line 156 of file movtextenc.c.