FFmpeg  4.0
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"

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 void handle_open_brace (AVBPrint *dst, const char **inp, int *an, int *closing_brace_missing)
 
int ff_htmlmarkup_to_ass (void *log_ctx, AVBPrint *dst, const char *in)
 

Macro Definition Documentation

◆ LIKELY_A_TAG_CHAR

#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

◆ html_color_parse()

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

Definition at line 28 of file htmlsubtitles.c.

Referenced by ff_htmlmarkup_to_ass().

◆ rstrip_spaces_buf()

static void rstrip_spaces_buf ( AVBPrint *  buf)
static

Definition at line 40 of file htmlsubtitles.c.

Referenced by ff_htmlmarkup_to_ass().

◆ handle_open_brace()

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

Definition at line 49 of file htmlsubtitles.c.

Referenced by ff_htmlmarkup_to_ass().

◆ ff_htmlmarkup_to_ass()

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

Definition at line 82 of file htmlsubtitles.c.

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