summaryrefslogtreecommitdiffstats
path: root/libass/ass_render.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-21 00:32:28 +0100
committerwm4 <wm4@nowhere>2014-01-24 01:01:13 +0100
commit97f74166cfc6e2884c405846b030215331c37a75 (patch)
treeb9ffe7816220122737771b53c52f8ea205dac477 /libass/ass_render.c
parent5114ff4f2cef1846fbcc9ffcdfddea32bddb0657 (diff)
downloadlibass-97f74166cfc6e2884c405846b030215331c37a75.tar.bz2
libass-97f74166cfc6e2884c405846b030215331c37a75.tar.xz
Remove some ass_msg() calls
These aren't very useful for debugging due to the high volume of the log output in problem cases. In fact, all they do is making the code slower (the message callback can easily appear in the profiler output, even if the callback doesn't actually print the messages).
Diffstat (limited to 'libass/ass_render.c')
-rw-r--r--libass/ass_render.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c
index ca89e76..12f5701 100644
--- a/libass/ass_render.c
+++ b/libass/ass_render.c
@@ -372,22 +372,18 @@ render_glyph(ASS_Renderer *render_priv, Bitmap *bm, int dst_x, int dst_y,
tmp = dst_x - clip_x0;
if (tmp < 0) {
- ass_msg(render_priv->library, MSGL_DBG2, "clip left");
b_x0 = -tmp;
}
tmp = dst_y - clip_y0;
if (tmp < 0) {
- ass_msg(render_priv->library, MSGL_DBG2, "clip top");
b_y0 = -tmp;
}
tmp = clip_x1 - dst_x - bm->w;
if (tmp < 0) {
- ass_msg(render_priv->library, MSGL_DBG2, "clip right");
b_x1 = bm->w + tmp;
}
tmp = clip_y1 - dst_y - bm->h;
if (tmp < 0) {
- ass_msg(render_priv->library, MSGL_DBG2, "clip bottom");
b_y1 = bm->h + tmp;
}
@@ -583,10 +579,6 @@ static void blend_vector_clip(ASS_Renderer *render_priv,
FT_Outline_Translate(outline, trans.x, trans.y);
}
- ass_msg(render_priv->library, MSGL_DBG2,
- "Parsed vector clip: scales (%f, %f) string [%s]\n",
- drawing->scale_x, drawing->scale_y, drawing->text);
-
clip_bm = outline_to_bitmap(render_priv->library,
render_priv->ftlibrary, outline, 0);
@@ -1601,9 +1593,6 @@ wrap_lines_smart(ASS_Renderer *render_priv, double max_text_width)
run_offset++;
pen_shift_x = d6_to_double(-cur->pos.x);
pen_shift_y += height + render_priv->settings.line_spacing;
- ass_msg(render_priv->library, MSGL_DBG2,
- "shifting from %d to %d by (%f, %f)", i,
- text_info->length - 1, pen_shift_x, pen_shift_y);
}
cur->bm_run_id += run_offset;
cur->pos.x += double_to_d6(pen_shift_x);
@@ -2108,8 +2097,6 @@ ass_render_event(ASS_Renderer *render_priv, ASS_Event *event,
if (render_priv->state.evt_type == EVENT_POSITIONED) {
double base_x = 0;
double base_y = 0;
- ass_msg(render_priv->library, MSGL_DBG2, "positioned event at %f, %f",
- render_priv->state.pos_x, render_priv->state.pos_y);
get_base_point(&bbox, alignment, &base_x, &base_y);
device_x =
x2scr_pos(render_priv, render_priv->state.pos_x) - base_x;