diff options
author | Dr.Smile <vabnick@gmail.com> | 2018-12-02 22:43:52 +0300 |
---|---|---|
committer | Dr.Smile <vabnick@gmail.com> | 2019-05-19 20:25:09 +0300 |
commit | f4b0721d815de8df1e6d95be4769ffc57fe4da1d (patch) | |
tree | 5c8c04052e4d385a8ef4b4f2561e88f432e6e4e8 /libass/ass_drawing.h | |
parent | 66251384705a5bd93928680448f847298389156c (diff) | |
download | libass-f4b0721d815de8df1e6d95be4769ffc57fe4da1d.tar.bz2 libass-f4b0721d815de8df1e6d95be4769ffc57fe4da1d.tar.xz |
drawing: extract transformation from parsing
Diffstat (limited to 'libass/ass_drawing.h')
-rw-r--r-- | libass/ass_drawing.h | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/libass/ass_drawing.h b/libass/ass_drawing.h index 16d85ed..ea65ac6 100644 --- a/libass/ass_drawing.h +++ b/libass/ass_drawing.h @@ -41,24 +41,7 @@ typedef struct ass_drawing_token { struct ass_drawing_token *prev; } ASS_DrawingToken; -typedef struct { - char *text; // drawing string - int scale; // scale (1-64) for subpixel accuracy - double pbo; // drawing will be shifted in y direction by this amount - double scale_x; // FontScaleX - double scale_y; // FontScaleY - int asc; // ascender - int desc; // descender - ASS_Outline outline; // target outline - int advance; // advance (from cbox) - - // private - ASS_Library *library; - double point_scale_x; - double point_scale_y; - ASS_Rect cbox; // bounding box, or let's say... VSFilter's idea of it -} ASS_Drawing; - -ASS_Outline *ass_drawing_parse(ASS_Drawing *drawing, ASS_Library *lib, bool raw_mode); +bool ass_drawing_parse(ASS_Outline *outline, ASS_Rect *cbox, + const char *text, ASS_Library *lib); #endif /* LIBASS_DRAWING_H */ |