10#ifndef LIVES_PANGOTEXT_H
11#define LIVES_PANGOTEXT_H
13#define SUB_OPACITY 20480
29typedef struct _lives_subtitle_t {
64LingoLayout *
render_text_to_cr(LiVESWidget *widget, lives_painter_t *,
const char *text,
const char *fontname,
66 boolean center,
boolean rising,
double *top,
int *start,
int dwidth,
int *dheight);
69 lives_colRGBA64_t *bg,
int dwidth,
int dheight,
double x_bg,
double y_bg,
double x_text,
double y_text);
75#define SRT_DEF_CHARSET "Windows-1252"
76#define LIVES_CHARSET_UTF8 "UTF-8"
87 char **style,
char **weight);
weed_plant_t weed_layer_t
weed_plant_t * render_text_to_layer(weed_layer_t *layer, const char *text, const char *fontname, double size, lives_text_mode_t mode, lives_colRGBA64_t *fg_col, lives_colRGBA64_t *bg_col, boolean center, boolean rising, double top)
boolean subtitles_init(lives_clip_t *sfile, char *fname, lives_subtitle_type_t)
LingoLayout * render_text_to_cr(LiVESWidget *widget, lives_painter_t *, const char *text, const char *fontname, double size, lives_text_mode_t mode, lives_colRGBA64_t *fg_col, lives_colRGBA64_t *bg_col, boolean center, boolean rising, double *top, int *start, int dwidth, int *dheight)
LingoLayout * layout_nth_message_at_bottom(int n, int width, int height, LiVESWidget *widget, int *linecount)
void subtitles_free(lives_clip_t *sfile)
@ LIVES_TEXT_MODE_PRECALCULATE
@ LIVES_TEXT_MODE_BACKGROUND_ONLY
@ LIVES_TEXT_MODE_FOREGROUND_AND_BACKGROUND
@ LIVES_TEXT_MODE_FOREGROUND_ONLY
boolean get_subt_text(lives_clip_t *sfile, double xtime)
weed_plant_t * render_text_overlay(weed_layer_t *layer, const char *text)
boolean save_srt_subtitles(lives_clip_t *sfile, double start_time, double end_time, double offset_time, const char *filename)
struct _lives_subtitle_t xlives_subtitle_t
char ** get_font_list(void)
boolean lives_parse_font_string(const char *string, char **font, int *size, char **stretch, char **style, char **weight)
boolean save_sub_subtitles(lives_clip_t *sfile, double start_time, double end_time, double offset_time, const char *filename)
void layout_to_lives_painter(LingoLayout *layout, lives_painter_t *cr, lives_text_mode_t mode, lives_colRGBA64_t *fg, lives_colRGBA64_t *bg, int dwidth, int dheight, double x_bg, double y_bg, double x_text, double y_text)
corresponds to one clip in the GUI
xlives_subtitle_t * prev
for future use
lives_subtitle_style_t * style
for future use
lives_subtitle_type_t type
lives_subtitle_t * current
pointer to current entry in index
int offset
offset in frames (default 0)