22 #ifndef AVCODEC_ASS_SPLIT_H 23 #define AVCODEC_ASS_SPLIT_H 126 int cache,
int *number);
160 void (*new_line)(
void *priv,
int forced);
162 void (*
color)(
void *priv,
unsigned int ,
unsigned int color_id);
167 void (*cancel_overrides)(
void *priv,
const char *style);
174 void (*move)(
void *priv,
int x1,
int y1,
int x2,
int y2,
int t1,
int t2);
175 void (*origin)(
void *priv,
int x,
int y);
char * style
name of the ASSStyle to use with this dialog
float timer
time multiplier to apply to SSA clock (in %)
ASSSplitContext * ff_ass_split(const char *buf)
Split a full ASS file or a ASS header from a string buffer and store the split structure in a newly a...
fields extracted from the [Events] section
ASSDialog * dialogs
array of split out dialogs
structure containing the whole split ASS data
char * script_type
SSA script format version (eg.
int back_color
color of the subtitle outline or shadow
char * text
actual text which will be displayed as a subtitle, can include style override control codes (see ff_a...
int alignment
position of the text (left, center, top...), defined after the layout of the numpad (1-3 sub...
ASSDialog * ff_ass_split_dialog2(ASSSplitContext *ctx, const char *buf)
Split one ASS Dialogue line from a string buffer.
This struct can be casted to ASS to access to the split data.
int layer
higher numbered layers are drawn over lower numbered
int bold
whether text is bold (1) or not (0)
ASSStyle * ff_ass_style_get(ASSSplitContext *ctx, const char *style)
Find an ASSStyle structure by its name.
int play_res_x
video width that ASS coords are referring to
int end
end time of the dialog in centiseconds
int play_res_y
video height that ASS coords are referring to
typedef void(APIENTRY *FF_PFNGLACTIVETEXTUREPROC)(GLenum texture)
int italic
whether text is italic (1) or not (0)
void ff_ass_free_dialog(ASSDialog **dialogp)
Free a dialogue obtained from ff_ass_split_dialog2().
Set of callback functions corresponding to each override codes that can be encountered in a "Dialogue...
void ff_ass_split_free(ASSSplitContext *ctx)
Free all the memory allocated for an ASSSplitContext.
int primary_color
color that a subtitle will normally appear in
ASSDialog * ff_ass_split_dialog(ASSSplitContext *ctx, const char *buf, int cache, int *number)
Split one or several ASS "Dialogue" lines from a string buffer and store them in an already initializ...
static const int16_t alpha[]
int start
start time of the dialog in centiseconds
char * collisions
how subtitles are moved to prevent collisions
void(* alignment)(void *priv, int alignment)
char * font_name
font face (case sensitive)
ASSScriptInfo script_info
general information about the SSA script
fields extracted from the [V4(+) Styles] section
static const OMX_CALLBACKTYPE callbacks
int ff_ass_split_override_codes(const ASSCodesCallbacks *callbacks, void *priv, const char *buf)
Split override codes out of a ASS "Dialogue" Text field.
void(* alpha)(void *priv, int alpha, int alpha_id)
char * name
name of the tyle (case sensitive)
void(* text)(void *priv, const char *text, int len)
int dialogs_count
number of ASSDialog in the dialogs array
int styles_count
number of ASSStyle in the styles array
int outline_color
color for outline in ASS, called tertiary in SSA
fields extracted from the [Script Info] section
void(* style)(void *priv, char style, int close)
int underline
whether text is underlined (1) or not (0)
ASSStyle * styles
array of split out styles