FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions
srtdec.c File Reference
#include "libavutil/avstring.h"
#include "libavutil/common.h"
#include "libavutil/intreadwrite.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 void rstrip_spaces_buf (AVBPrint *buf)
 
static void srt_to_ass (AVCodecContext *avctx, AVBPrint *dst, const char *in, int x1, int y1, int x2, int y2)
 
static int srt_decode_frame (AVCodecContext *avctx, void *data, int *got_sub_ptr, AVPacket *avpkt)
 

Enumeration Type Documentation

anonymous enum
Enumerator:
PARAM_UNKNOWN 
PARAM_SIZE 
PARAM_COLOR 
PARAM_FACE 
PARAM_NUMBER 

Definition at line 37 of file srtdec.c.

Function Documentation

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

Definition at line 29 of file srtdec.c.

Referenced by srt_to_ass().

static void rstrip_spaces_buf ( AVBPrint buf)
static

Definition at line 50 of file srtdec.c.

Referenced by srt_to_ass().

static void srt_to_ass ( AVCodecContext avctx,
AVBPrint dst,
const char *  in,
int  x1,
int  y1,
int  x2,
int  y2 
)
static

Definition at line 56 of file srtdec.c.

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

Definition at line 188 of file srtdec.c.