FFmpeg
Data Structures | Macros | Functions
htmlsubtitles.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/common.h"
#include "libavutil/parseutils.h"
#include "htmlsubtitles.h"
#include <ctype.h>

Go to the source code of this file.

Data Structures

struct  font_tag
 

Macros

#define LIKELY_A_TAG_CHAR(x)
 

Functions

static int html_color_parse (void *log_ctx, const char *str)
 
static void rstrip_spaces_buf (AVBPrint *buf)
 
static int scanbraces (const char *in)
 
static void handle_open_brace (AVBPrint *dst, const char **inp, int *an, int *closing_brace_missing)
 
static int scantag (const char *in, char *buffer, int *lenp)
 
int ff_htmlmarkup_to_ass (void *log_ctx, AVBPrint *dst, const char *in)
 

Macro Definition Documentation

#define LIKELY_A_TAG_CHAR (   x)
Value:
(((x) >= '0' && (x) <= '9') || \
((x) >= 'a' && (x) <= 'z') || \
((x) >= 'A' && (x) <= 'Z') || \
(x) == '_' || (x) == '/')

Referenced by ff_htmlmarkup_to_ass().

Function Documentation

static int html_color_parse ( void log_ctx,
const char *  str 
)
static

Definition at line 29 of file htmlsubtitles.c.

Referenced by ff_htmlmarkup_to_ass().

static void rstrip_spaces_buf ( AVBPrint *  buf)
static

Definition at line 41 of file htmlsubtitles.c.

Referenced by ff_htmlmarkup_to_ass().

static int scanbraces ( const char *  in)
static

Definition at line 54 of file htmlsubtitles.c.

Referenced by handle_open_brace().

static void handle_open_brace ( AVBPrint *  dst,
const char **  inp,
int an,
int closing_brace_missing 
)
static

Definition at line 69 of file htmlsubtitles.c.

Referenced by ff_htmlmarkup_to_ass().

static int scantag ( const char *  in,
char *  buffer,
int lenp 
)
static

Definition at line 102 of file htmlsubtitles.c.

Referenced by ff_htmlmarkup_to_ass().

int ff_htmlmarkup_to_ass ( void log_ctx,
AVBPrint *  dst,
const char *  in 
)

Definition at line 129 of file htmlsubtitles.c.

Referenced by main(), sami_paragraph_to_ass(), and srt_to_ass().