libavcodec/srtdec.c File Reference

#include "libavutil/avstring.h"
#include "libavutil/parseutils.h"
#include "avcodec.h"
#include "ass.h"

Go to the source code of this file.

Data Structures

struct  SrtStack

Enumerations

enum  {
  PARAM_UNKNOWN = -1, PARAM_SIZE, PARAM_COLOR, PARAM_FACE,
  PARAM_NUMBER
}

Functions

static int html_color_parse (AVCodecContext *avctx, const char *str)
static const char * srt_to_ass (AVCodecContext *avctx, char *out, char *out_end, const char *in, int x1, int y1, int x2, int y2)
static const char * read_ts (const char *buf, int *ts_start, int *ts_end, int *x1, int *y1, int *x2, int *y2)
static int srt_decode_frame (AVCodecContext *avctx, void *data, int *got_sub_ptr, AVPacket *avpkt)

Variables

AVCodec ff_srt_decoder


Enumeration Type Documentation

anonymous enum

Enumerator:
PARAM_UNKNOWN 
PARAM_SIZE 
PARAM_COLOR 
PARAM_FACE 
PARAM_NUMBER 

Definition at line 35 of file srtdec.c.


Function Documentation

static int html_color_parse ( AVCodecContext avctx,
const char *  str 
) [static]

Definition at line 27 of file srtdec.c.

Referenced by srt_to_ass().

static const char* read_ts ( const char *  buf,
int *  ts_start,
int *  ts_end,
int *  x1,
int *  y1,
int *  x2,
int *  y2 
) [static]

Definition at line 186 of file srtdec.c.

Referenced by srt_decode_frame().

static int srt_decode_frame ( AVCodecContext avctx,
void *  data,
int *  got_sub_ptr,
AVPacket avpkt 
) [static]

Definition at line 207 of file srtdec.c.

static const char* srt_to_ass ( AVCodecContext avctx,
char *  out,
char *  out_end,
const char *  in,
int  x1,
int  y1,
int  x2,
int  y2 
) [static]

Definition at line 48 of file srtdec.c.

Referenced by srt_decode_frame().


Variable Documentation

Initial value:

 {
    .name         = "srt",
    .long_name    = NULL_IF_CONFIG_SMALL("SubRip subtitle"),
    .type         = AVMEDIA_TYPE_SUBTITLE,
    .id           = CODEC_ID_SRT,
    .init         = ff_ass_subtitle_header_default,
    .decode       = srt_decode_frame,
}

Definition at line 232 of file srtdec.c.


Generated on Fri Oct 26 02:43:49 2012 for FFmpeg by  doxygen 1.5.8