FFmpeg
Data Structures | Macros | Functions | Variables
textdec.c File Reference
#include "config_components.h"
#include "avcodec.h"
#include "ass.h"
#include "codec_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, AVSubtitle *sub, int *got_sub_ptr, const 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 41 of file textdec.c.

◆ SD

Definition at line 42 of file textdec.c.

Function Documentation

◆ text_decode_frame()

static int text_decode_frame ( AVCodecContext avctx,
AVSubtitle sub,
int got_sub_ptr,
const AVPacket avpkt 
)
static

Definition at line 48 of file textdec.c.

◆ text_flush()

static void text_flush ( AVCodecContext avctx)
static

Definition at line 68 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 43 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 75 of file textdec.c.

options
static const AVOption options[]
Definition: textdec.c:43
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:237
SD
#define SD
Definition: textdec.c:42
OFFSET
#define OFFSET(x)
Definition: textdec.c:41
AV_OPT_TYPE_BOOL
@ AV_OPT_TYPE_BOOL
Definition: opt.h:244