FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
textdec.c File Reference

Raw subtitles decoder. More...

#include "avcodec.h"
#include "ass.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
 
#define DECLARE_CLASS(decname)
 

Functions

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

Variables

static const AVOption options []
 

Detailed Description

Raw subtitles decoder.

Definition in file textdec.c.

Macro Definition Documentation

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

Definition at line 37 of file textdec.c.

Definition at line 38 of file textdec.c.

#define DECLARE_CLASS (   decname)
Value:
static const AVClass decname ## _decoder_class = { \
.class_name = #decname " decoder", \
.item_name = av_default_item_name, \
.option = decname ## _options, \
.version = LIBAVUTIL_VERSION_INT, \
}

Definition at line 69 of file textdec.c.

Function Documentation

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

Definition at line 44 of file textdec.c.

Variable Documentation

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

Definition at line 39 of file textdec.c.