FFmpeg
Data Structures | Macros | Functions | Variables
textdec.c File Reference
#include "avcodec.h"
#include "ass.h"
#include "internal.h"
#include "libavutil/bprint.h"
#include "libavutil/opt.h"

Go to the source code of this file.

Data Structures

struct  TextContext
 

Macros

#define OFFSET(x)   offsetof(TextContext, x)
 
#define SD   AV_OPT_FLAG_SUBTITLE_PARAM | AV_OPT_FLAG_DECODING_PARAM
 

Functions

static int text_decode_frame (AVCodecContext *avctx, void *data, int *got_sub_ptr, AVPacket *avpkt)
 
static void text_flush (AVCodecContext *avctx)
 

Variables

static const AVOption options []
 
static const AVClass textsub_decoder_class
 

Detailed Description

Raw subtitles decoder

Definition in file textdec.c.

Macro Definition Documentation

◆ OFFSET

#define OFFSET (   x)    offsetof(TextContext, x)

Definition at line 39 of file textdec.c.

◆ SD

Definition at line 40 of file textdec.c.

Function Documentation

◆ text_decode_frame()

static int text_decode_frame ( AVCodecContext avctx,
void *  data,
int got_sub_ptr,
AVPacket avpkt 
)
static

Definition at line 46 of file textdec.c.

◆ text_flush()

static void text_flush ( AVCodecContext avctx)
static

Definition at line 67 of file textdec.c.

Variable Documentation

◆ options

const AVOption options[]
static
Initial value:
= {
{ "keep_ass_markup", "Set if ASS tags must be escaped", OFFSET(keep_ass_markup), AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1, .flags=SD },
{ NULL }
}

Definition at line 41 of file textdec.c.

◆ textsub_decoder_class

const AVClass textsub_decoder_class
static
Initial value:
= {
.class_name = "text/vplayer/stl/pjs/subviewer1 decoder",
.item_name = av_default_item_name,
.option = options,
}

Definition at line 74 of file textdec.c.

options
static const AVOption options[]
Definition: textdec.c:41
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
NULL
#define NULL
Definition: coverity.c:32
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:235
SD
#define SD
Definition: textdec.c:40
OFFSET
#define OFFSET(x)
Definition: textdec.c:39
AV_OPT_TYPE_BOOL
@ AV_OPT_TYPE_BOOL
Definition: opt.h:241