diff options
author | rcombs <rcombs@rcombs.me> | 2022-07-26 22:12:40 -0500 |
---|---|---|
committer | rcombs <rcombs@rcombs.me> | 2022-11-15 21:14:37 -0600 |
commit | cc36da778afd1a6e94fda1f21c57648141182f29 (patch) | |
tree | 8c56a3bd0d60954858e1fef0604c41afbc8c7415 /libass/ass_render.h | |
parent | 04d48faa652fe649a3d664b1640acfcea7f4b3e0 (diff) | |
download | libass-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.h | 13 |
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; |