FFmpeg
Data Structures | Functions | Variables
samidec.c File Reference
#include "ass.h"
#include "libavutil/avstring.h"
#include "libavutil/bprint.h"
#include "codec_internal.h"
#include "htmlsubtitles.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, AVSubtitle *sub, int *got_sub_ptr, const 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 FFCodec 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,
AVSubtitle sub,
int got_sub_ptr,
const 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 154 of file samidec.c.

◆ sami_close()

static av_cold int sami_close ( AVCodecContext avctx)
static

Definition at line 165 of file samidec.c.

◆ sami_flush()

static void sami_flush ( AVCodecContext avctx)
static

Definition at line 176 of file samidec.c.

Variable Documentation

◆ ff_sami_decoder

const FFCodec ff_sami_decoder
Initial value:
= {
.p.name = "sami",
CODEC_LONG_NAME("SAMI subtitle"),
.priv_data_size = sizeof(SAMIContext),
.close = sami_close,
.flush = sami_flush,
}

Definition at line 183 of file samidec.c.

AVMEDIA_TYPE_SUBTITLE
@ AVMEDIA_TYPE_SUBTITLE
Definition: avutil.h:204
sami_decode_frame
static int sami_decode_frame(AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, const AVPacket *avpkt)
Definition: samidec.c:135
sami_close
static av_cold int sami_close(AVCodecContext *avctx)
Definition: samidec.c:165
sami_init
static av_cold int sami_init(AVCodecContext *avctx)
Definition: samidec.c:154
sami_flush
static void sami_flush(AVCodecContext *avctx)
Definition: samidec.c:176
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts_bsf.c:365
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:272
AV_CODEC_ID_SAMI
@ AV_CODEC_ID_SAMI
Definition: codec_id.h:562
SAMIContext
Definition: samidec.c:33
FF_CODEC_DECODE_SUB_CB
#define FF_CODEC_DECODE_SUB_CB(func)
Definition: codec_internal.h:309