diff options
author | Oleg Oshmyan <chortos@inbox.lv> | 2012-08-23 00:59:46 +0300 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2013-03-03 23:17:50 +0100 |
commit | 0e1702ad7a6a827d400c87b7a98aea11e54d2127 (patch) | |
tree | b10acef8f093190ff44eb243040b26873020bb22 /libass/ass_render.h | |
parent | 340ff8f4cbde87d2ce7d1133889e3afdd66d4e06 (diff) | |
download | libass-0e1702ad7a6a827d400c87b7a98aea11e54d2127.tar.bz2 libass-0e1702ad7a6a827d400c87b7a98aea11e54d2127.tar.xz |
Add ass_set_storage_size and fix related scaling issues
\blur radius is not scaled from script to storage resolution
but is scaled from storage to display resolution. The same
applies to borders and shadows if ScaledBorderAndShadow is "no".
(If it is "yes", borders and shadows are scaled from script
to display resolution just like before.)
Diffstat (limited to 'libass/ass_render.h')
-rw-r--r-- | libass/ass_render.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libass/ass_render.h b/libass/ass_render.h index 45d19bb..8feeadc 100644 --- a/libass/ass_render.h +++ b/libass/ass_render.h @@ -65,6 +65,8 @@ typedef struct free_list { typedef struct { int frame_width; int frame_height; + int storage_width; // width of the source image + int storage_height; // height of the source image double font_size_coeff; // font size multiplier double line_spacing; // additional line spacing (in frame pixels) double line_position; // vertical position for subtitles, 0-100 (0 = no change) @@ -264,11 +266,14 @@ struct ass_renderer { int orig_width; // frame width ( = screen width - margins ) int orig_height_nocrop; // frame height ( = screen height - margins + cropheight) int orig_width_nocrop; // frame width ( = screen width - margins + cropwidth) + int storage_height; // video height before any rescaling + int storage_width; // video width before any rescaling ASS_Track *track; long long time; // frame's timestamp, ms double font_scale; double font_scale_x; // x scale applied to all glyphs to preserve text aspect ratio double border_scale; + double blur_scale; RenderContext state; TextInfo text_info; |