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)
 
static void text_flush (AVCodecContext *avctx)
 

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

Definition at line 39 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, \
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:70
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
av_default_item_name
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 
)
static

Definition at line 45 of file textdec.c.

static void text_flush ( AVCodecContext avctx)
static

Definition at line 66 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_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.