FFmpeg
Loading...
Searching...
No Matches
textdec.c File Reference

Raw subtitles decoder. More...

#include "config_components.h"
#include "avcodec.h"
#include "ass.h"
#include "codec_internal.h"
#include "libavutil/attributes.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)
 
#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 av_cold 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)
Value:
offsetof(TextContext, x)

Definition at line 42 of file textdec.c.

◆ SD

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

◆ text_flush()

static av_cold void text_flush ( AVCodecContext * avctx)
static

Definition at line 69 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 }
}
#define SD
#define NULL
Definition coverity.c:32
#define OFFSET(x)
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
Definition opt.h:326

Definition at line 44 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,
}
const char * av_default_item_name(void *ptr)
Return the context name.
Definition log.c:241
#define LIBAVUTIL_VERSION_INT
Definition version.h:85

Definition at line 76 of file textdec.c.