summaryrefslogtreecommitdiffstats
path: root/libass/ass_drawing.h
diff options
context:
space:
mode:
Diffstat (limited to 'libass/ass_drawing.h')
-rw-r--r--libass/ass_drawing.h21
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 */