textdec.c File Reference

Raw subtitles decoder. More...

#include "avcodec.h"
#include "ass.h"
#include "libavutil/bprint.h"
#include "libavutil/opt.h"
Include dependency graph for textdec.c:

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_event_to_ass (const AVCodecContext *avctx, AVBPrint *buf, const char *p, const char *p_end)
 
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 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, \
}
av_default_item_name
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:55
LIBAVUTIL_VERSION_INT
Definition: eval.c:55
Describe the class of an AVClass context structure.
Definition: log.h:50

Definition at line 108 of file textdec.c.

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

Definition at line 37 of file textdec.c.

Definition at line 38 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 84 of file textdec.c.

static int text_event_to_ass ( const AVCodecContext avctx,
AVBPrint buf,
const char *  p,
const char *  p_end 
)
static

Definition at line 44 of file textdec.c.

Referenced by text_decode_frame().

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 }
}
NULL
Definition: eval.c:55
#define OFFSET(x)
Definition: textdec.c:37
#define SD
Definition: textdec.c:38

Definition at line 39 of file textdec.c.