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

Go to the source code of this file.

Functions

static int subviewer_event_to_ass (AVBPrint *buf, const char *p)
 
static int subviewer_decode_frame (AVCodecContext *avctx, void *data, int *got_sub_ptr, AVPacket *avpkt)
 

Variables

AVCodec ff_subviewer_decoder
 

Detailed Description

SubViewer subtitle decoder

See also
https://en.wikipedia.org/wiki/SubViewer

Definition in file subviewerdec.c.

Function Documentation

◆ subviewer_event_to_ass()

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

Definition at line 31 of file subviewerdec.c.

Referenced by subviewer_decode_frame().

◆ subviewer_decode_frame()

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

Definition at line 49 of file subviewerdec.c.

Variable Documentation

◆ ff_subviewer_decoder

AVCodec ff_subviewer_decoder
Initial value:
= {
.name = "subviewer",
.long_name = NULL_IF_CONFIG_SMALL("SubViewer subtitle"),
.priv_data_size = sizeof(FFASSDecoderContext),
}

Definition at line 68 of file subviewerdec.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:97
AV_CODEC_ID_SUBVIEWER
@ AV_CODEC_ID_SUBVIEWER
Definition: codec_id.h:540
subviewer_decode_frame
static int subviewer_decode_frame(AVCodecContext *avctx, void *data, int *got_sub_ptr, AVPacket *avpkt)
Definition: subviewerdec.c:49
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:141
FFASSDecoderContext
Definition: ass.h:46