FFmpeg
|
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 |
Definition at line 149 of file movtextenc.c.
|
static |
Definition at line 110 of file movtextenc.c.
|
static |
Definition at line 38 of file movtextenc.c.
Definition at line 96 of file movtextenc.c.
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"),
.type = AVMEDIA_TYPE_SUBTITLE,
.id = AV_CODEC_ID_MOV_TEXT,
.priv_data_size = sizeof(MovTextContext),
.encode_sub = mov_text_encode_frame,
}
static av_cold int mov_text_encode_init(AVCodecContext *avctx)
Definition: movtextenc.c:38
Definition: movtextenc.c:30
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
Definition: libavcodec/avcodec.h:461
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: avutil.h:146
Definition at line 156 of file movtextenc.c.
|
static |
Initial value:
= {
.text = mov_text_text_cb,
.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.
Generated on Mon Nov 18 2024 06:52:07 for FFmpeg by 1.8.11