All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
samidec.c File Reference

SAMI subtitle decoder. More...

#include "ass.h"
#include "libavutil/avstring.h"
#include "libavutil/bprint.h"
#include "htmlsubtitles.h"

Go to the source code of this file.

Data Structures

struct  SAMIContext


static int sami_paragraph_to_ass (AVCodecContext *avctx, const char *src)
static int sami_decode_frame (AVCodecContext *avctx, void *data, int *got_sub_ptr, AVPacket *avpkt)
static av_cold int sami_init (AVCodecContext *avctx)
static av_cold int sami_close (AVCodecContext *avctx)
static void sami_flush (AVCodecContext *avctx)


AVCodec ff_sami_decoder

Detailed Description

SAMI subtitle decoder.

See Also

Definition in file samidec.c.

Function Documentation

static int sami_paragraph_to_ass ( AVCodecContext avctx,
const char *  src 

Definition at line 41 of file samidec.c.

Referenced by sami_decode_frame().

static int sami_decode_frame ( AVCodecContext avctx,
void data,
int got_sub_ptr,
AVPacket avpkt 

Definition at line 131 of file samidec.c.

static av_cold int sami_init ( AVCodecContext avctx)

Definition at line 148 of file samidec.c.

static av_cold int sami_close ( AVCodecContext avctx)

Definition at line 159 of file samidec.c.

static void sami_flush ( AVCodecContext avctx)

Definition at line 170 of file samidec.c.

Variable Documentation

AVCodec ff_sami_decoder
Initial value:
= {
.name = "sami",
.long_name = NULL_IF_CONFIG_SMALL("SAMI subtitle"),
.priv_data_size = sizeof(SAMIContext),
.close = sami_close,
static int sami_decode_frame(AVCodecContext *avctx, void *data, int *got_sub_ptr, AVPacket *avpkt)
Definition: samidec.c:131
static void flush(AVCodecContext *avctx)
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
static av_cold int sami_init(AVCodecContext *avctx)
Definition: samidec.c:148
static av_cold int sami_close(AVCodecContext *avctx)
Definition: samidec.c:159
static void sami_flush(AVCodecContext *avctx)
Definition: samidec.c:170
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179

Definition at line 177 of file samidec.c.