]> granicus.if.org Git - libass/commitdiff
Add Blur field to ASS_Style
authorwm4 <wm4@nowhere>
Thu, 10 Jan 2013 23:47:32 +0000 (00:47 +0100)
committerGrigori Goronzy <greg@monster>
Fri, 11 Jan 2013 01:43:38 +0000 (02:43 +0100)
Useful when applications specify the style manually for non-ASS
subtitles.

libass/ass.c
libass/ass_render.c
libass/ass_types.h

index 6e0f21ca2a9b2205a719d6a5df5c1846d1318bd6..678a9a3b39f0518b0c5caaed61e07cfe31bb198c 100644 (file)
@@ -424,6 +424,7 @@ void ass_process_force_style(ASS_Track *track)
                     FPVAL(ScaleY)
                     FPVAL(Outline)
                     FPVAL(Shadow)
+                    FPVAL(Blur)
                 }
             }
         }
index 63186562bee70a1827850b7150072c75e514dc37..aa8c2e4b51878f61fcd4f0366e282c6759c51de2 100644 (file)
@@ -864,7 +864,7 @@ void reset_render_context(ASS_Renderer *render_priv, ASS_Style *style)
     render_priv->state.scale_y = style->ScaleY;
     render_priv->state.hspacing = style->Spacing;
     render_priv->state.be = 0;
-    render_priv->state.blur = 0.0;
+    render_priv->state.blur = style->Blur;
     render_priv->state.shadow_x = style->Shadow;
     render_priv->state.shadow_y = style->Shadow;
     render_priv->state.frx = render_priv->state.fry = 0.;
index 3be1029c3a6a6cf965f57064ccc3af2581445ba6..677ba9648d4e4946e9672c95b77a7d21784fd5d3 100644 (file)
@@ -60,6 +60,7 @@ typedef struct ass_style {
     int MarginV;
     int Encoding;
     int treat_fontname_as_pattern;
+    double Blur;
 } ASS_Style;
 
 /*