FFmpeg
Functions | Variables
mpl2dec.c File Reference
#include "avcodec.h"
#include "ass.h"
#include "codec_internal.h"
#include "libavutil/bprint.h"

Go to the source code of this file.

Functions

static int mpl2_event_to_ass (AVBPrint *buf, const char *p)
 
static int mpl2_decode_frame (AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, const AVPacket *avpkt)
 

Variables

const FFCodec ff_mpl2_decoder
 

Detailed Description

MPL2 subtitles decoder

See also
http://web.archive.org/web/20090328040233/http://napisy.ussbrowarek.org/mpl2-eng.html

Definition in file mpl2dec.c.

Function Documentation

◆ mpl2_event_to_ass()

static int mpl2_event_to_ass ( AVBPrint *  buf,
const char *  p 
)
static

Definition at line 33 of file mpl2dec.c.

Referenced by mpl2_decode_frame().

◆ mpl2_decode_frame()

static int mpl2_decode_frame ( AVCodecContext avctx,
AVSubtitle sub,
int got_sub_ptr,
const AVPacket avpkt 
)
static

Definition at line 66 of file mpl2dec.c.

Variable Documentation

◆ ff_mpl2_decoder

const FFCodec ff_mpl2_decoder
Initial value:
= {
.p.name = "mpl2",
.p.long_name = NULL_IF_CONFIG_SMALL("MPL2 subtitle"),
.priv_data_size = sizeof(FFASSDecoderContext),
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}

Definition at line 84 of file mpl2dec.c.

AVMEDIA_TYPE_SUBTITLE
@ AVMEDIA_TYPE_SUBTITLE
Definition: avutil.h:204
ff_ass_subtitle_header_default
int ff_ass_subtitle_header_default(AVCodecContext *avctx)
Generate a suitable AVCodecContext.subtitle_header for SUBTITLE_ASS with default style.
Definition: ass.c:96
mpl2_decode_frame
static int mpl2_decode_frame(AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, const AVPacket *avpkt)
Definition: mpl2dec.c:66
AV_CODEC_ID_MPL2
@ AV_CODEC_ID_MPL2
Definition: codec_id.h:545
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
ff_ass_decoder_flush
void ff_ass_decoder_flush(AVCodecContext *avctx)
Helper to flush a text subtitles decoder making use of the FFASSDecoderContext.
Definition: ass.c:164
FF_CODEC_CAP_INIT_THREADSAFE
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: codec_internal.h:31
FF_CODEC_DECODE_SUB_CB
#define FF_CODEC_DECODE_SUB_CB(func)
Definition: codec_internal.h:257
FFASSDecoderContext
Definition: ass.h:46