summaryrefslogtreecommitdiffstats
path: root/libass/ass_render.h
diff options
context:
space:
mode:
authorrcombs <rcombs@rcombs.me>2022-07-26 22:12:40 -0500
committerrcombs <rcombs@rcombs.me>2022-11-15 21:14:37 -0600
commitcc36da778afd1a6e94fda1f21c57648141182f29 (patch)
tree8c56a3bd0d60954858e1fef0604c41afbc8c7415 /libass/ass_render.h
parent04d48faa652fe649a3d664b1640acfcea7f4b3e0 (diff)
downloadlibass-cc36da778afd1a6e94fda1f21c57648141182f29.tar.bz2
libass-cc36da778afd1a6e94fda1f21c57648141182f29.tar.xz
ass_render: move (font|border|blur)_scale to RenderContext
Diffstat (limited to 'libass/ass_render.h')
-rw-r--r--libass/ass_render.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/libass/ass_render.h b/libass/ass_render.h
index 7034078..6438e48 100644
--- a/libass/ass_render.h
+++ b/libass/ass_render.h
@@ -283,6 +283,12 @@ typedef struct {
int apply_font_scale;
// whether this is assumed to be explicitly positioned
int explicit;
+
+ double screen_scale_x;
+ double screen_scale_y;
+ double border_scale_x;
+ double border_scale_y;
+ double blur_scale;
} RenderContext;
typedef struct {
@@ -320,12 +326,7 @@ struct ass_renderer {
double fit_width; // content frame width without zoom & pan (fit to screen & letterboxed)
ASS_Track *track;
long long time; // frame's timestamp, ms
- double screen_scale_x;
- double screen_scale_y;
- double par_scale_x; // x scale applied to e.g. glyphs to preserve text aspect ratio
- double border_scale_x;
- double border_scale_y;
- double blur_scale;
+ double par_scale_x; // x scale applied to all glyphs to preserve text aspect ratio
RenderContext state;
TextInfo text_info;