libavcodec/subviewerdec.c File Reference

SubViewer subtitle decoder. More...

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

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 libavcodec/subviewerdec.c.

Function Documentation

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

Definition at line 50 of file libavcodec/subviewerdec.c.

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

Definition at line 31 of file libavcodec/subviewerdec.c.

Referenced by subviewer_decode_frame().

Variable Documentation

AVCodec ff_subviewer_decoder
Initial value:
= {
.name = "subviewer",
.long_name = NULL_IF_CONFIG_SMALL("SubViewer subtitle"),
}
static int subviewer_decode_frame(AVCodecContext *avctx, void *data, int *got_sub_ptr, AVPacket *avpkt)
int ff_ass_subtitle_header_default(AVCodecContext *avctx)
Generate a suitable AVCodecContext.subtitle_header for SUBTITLE_ASS with default style.
Definition: ass.c:54
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...

Definition at line 76 of file libavcodec/subviewerdec.c.