62 int prev_chr_is_space = 0;
89 if (!strncmp(p,
" ", 6)) {
103 while (*p && *p !=
'>')
113 else if (!prev_chr_is_space)
138 int *got_sub_ptr,
const AVPacket *avpkt)
140 const char *ptr = avpkt->
data;
143 if (ptr && avpkt->
size > 0) {
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
const FFCodec ff_sami_decoder
static av_cold void close(AVCodecParserContext *s)
int ff_ass_subtitle_header_default(AVCodecContext *avctx)
Generate a suitable AVCodecContext.subtitle_header for SUBTITLE_ASS with default style.
int ff_ass_add_rect(AVSubtitle *sub, const char *dialog, int readorder, int layer, const char *style, const char *speaker)
Add an ASS dialog to a subtitle.
void av_bprintf(AVBPrint *buf, const char *fmt,...)
void av_bprint_init(AVBPrint *buf, unsigned size_init, unsigned size_max)
#define CODEC_LONG_NAME(str)
#define FF_CODEC_DECODE_SUB_CB(func)
int(* init)(AVBSFContext *ctx)
#define AV_CODEC_FLAG2_RO_FLUSH_NOOP
Do not reset ASS ReadOrder field on flush (subtitles decoding)
int av_bprint_finalize(AVBPrint *buf, char **ret_str)
Finalize a print buffer.
void av_bprint_chars(AVBPrint *buf, char c, unsigned n)
Append char c n times to a print buffer.
void av_bprint_clear(AVBPrint *buf)
Reset the string to "" but keep internal allocated data.
char * av_stristr(const char *s1, const char *s2)
Locate the first case-independent occurrence in the string haystack of the string needle.
char * av_strtok(char *s, const char *delim, char **saveptr)
Split the string into several tokens which can be accessed by successive calls to av_strtok().
static av_const int av_isspace(int c)
Locale-independent conversion of ASCII isspace.
int av_strncasecmp(const char *a, const char *b, size_t n)
Locale-independent case-insensitive compare.
int ff_htmlmarkup_to_ass(void *log_ctx, AVBPrint *dst, const char *in)
static av_cold int sami_init(AVCodecContext *avctx)
static av_cold void sami_flush(AVCodecContext *avctx)
static int sami_paragraph_to_ass(AVCodecContext *avctx, const char *src)
static av_cold int sami_close(AVCodecContext *avctx)
static int sami_decode_frame(AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, const AVPacket *avpkt)
Macro definitions for various function/variable attributes.
Memory handling functions.
main external API structure.
int flags2
AV_CODEC_FLAG2_*.
This structure stores compressed data.