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


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


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


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 38 of file textdec.c.

Definition at line 39 of file textdec.c.

#define DECLARE_CLASS (   decname)
static const AVClass decname ## _decoder_class = { \
.class_name = #decname " decoder", \
.item_name = av_default_item_name, \
.option = decname ## _options, \
Definition: version.h:85
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:191
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
Definition: log.h:72
Describe the class of an AVClass context structure.
Definition: log.h:67

Definition at line 73 of file textdec.c.

Function Documentation

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

Definition at line 45 of file textdec.c.

static void text_flush ( AVCodecContext avctx)

Definition at line 66 of file textdec.c.

Variable Documentation

const AVOption options[]
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 }
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
Definition: textdec.c:38
#define SD
Definition: textdec.c:39

Definition at line 40 of file textdec.c.