FFmpeg
Data Structures | Functions | Variables
samidec.c File Reference
#include "ass.h"
#include "libavutil/avstring.h"
#include "libavutil/bprint.h"
#include "htmlsubtitles.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  SAMIContext
 

Functions

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)
 

Variables

const AVCodec ff_sami_decoder
 

Detailed Description

SAMI subtitle decoder

See also
http://msdn.microsoft.com/en-us/library/ms971327.aspx

Definition in file samidec.c.

Function Documentation

◆ sami_paragraph_to_ass()

static int sami_paragraph_to_ass ( AVCodecContext avctx,
const char *  src 
)
static

Definition at line 42 of file samidec.c.

Referenced by sami_decode_frame().

◆ sami_decode_frame()

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

Definition at line 135 of file samidec.c.

◆ sami_init()

static av_cold int sami_init ( AVCodecContext avctx)
static

Definition at line 155 of file samidec.c.

◆ sami_close()

static av_cold int sami_close ( AVCodecContext avctx)
static

Definition at line 166 of file samidec.c.

◆ sami_flush()

static void sami_flush ( AVCodecContext avctx)
static

Definition at line 177 of file samidec.c.

Variable Documentation

◆ ff_sami_decoder

const AVCodec ff_sami_decoder
Initial value:
= {
.name = "sami",
.long_name = NULL_IF_CONFIG_SMALL("SAMI subtitle"),
.priv_data_size = sizeof(SAMIContext),
.close = sami_close,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}

Definition at line 184 of file samidec.c.

AVMEDIA_TYPE_SUBTITLE
@ AVMEDIA_TYPE_SUBTITLE
Definition: avutil.h:204
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: internal.h:42
sami_decode_frame
static int sami_decode_frame(AVCodecContext *avctx, void *data, int *got_sub_ptr, AVPacket *avpkt)
Definition: samidec.c:135
init
static int init
Definition: av_tx.c:47
sami_close
static av_cold int sami_close(AVCodecContext *avctx)
Definition: samidec.c:166
sami_init
static av_cold int sami_init(AVCodecContext *avctx)
Definition: samidec.c:155
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
sami_flush
static void sami_flush(AVCodecContext *avctx)
Definition: samidec.c:177
flush
static void flush(AVCodecContext *avctx)
Definition: aacdec_template.c:593
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
AV_CODEC_ID_SAMI
@ AV_CODEC_ID_SAMI
Definition: codec_id.h:534
SAMIContext
Definition: samidec.c:33