summaryrefslogtreecommitdiffstats
path: root/libass/ass_render.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-06-01 04:35:24 +0200
committerwm4 <wm4@nowhere>2014-06-01 04:35:24 +0200
commit014837c4a138ae37addeaf72f90c131fcb3ea1fc (patch)
treeb412bd6076b34c2b03f31f126998f8fb5a792e3f /libass/ass_render.c
parent18f02cba283171d5010815a7021ecd76d006d4c8 (diff)
downloadlibass-014837c4a138ae37addeaf72f90c131fcb3ea1fc.tar.bz2
libass-014837c4a138ae37addeaf72f90c131fcb3ea1fc.tar.xz
Remove bitmap restriding
It turns out we don't need this.
Diffstat (limited to 'libass/ass_render.c')
-rw-r--r--libass/ass_render.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c
index 0d08dd9..85c6aec 100644
--- a/libass/ass_render.c
+++ b/libass/ass_render.c
@@ -90,7 +90,6 @@ ASS_Renderer *ass_renderer_init(ASS_Library *library)
priv->mul_bitmaps_func = mul_bitmaps_c;
priv->be_blur_func = be_blur_c;
#endif
- priv->restride_bitmap_func = restride_bitmap_c;
#if CONFIG_RASTERIZER
#if CONFIG_LARGE_TILES
@@ -732,29 +731,6 @@ static ASS_Image *render_text(ASS_Renderer *render_priv, int dst_x, int dst_y)
*tail = 0;
blend_vector_clip(render_priv, head);
- for (ASS_Image* cur = head; cur; cur = cur->next) {
- unsigned w = cur->w,
- h = cur->h,
- s = cur->stride;
- if(w + 31 < (unsigned)cur->stride){ // Larger value? Play with this.
- // Allocate new buffer and add to free list
- unsigned align = (w >= 32) ? 32 : ((w >= 16) ? 16 : 1);
- unsigned ns = ass_align(align, w);
- uint8_t* nbuffer = ass_aligned_alloc(align, ns * cur->h);
- if (!nbuffer) continue;
- free_list_add(render_priv, nbuffer);
-
- // Copy
- render_priv->restride_bitmap_func(nbuffer, ns,
- cur->bitmap, s,
- w, h);
- cur->w = w;
- cur->h = h;
- cur->stride = ns;
- cur->bitmap = nbuffer;
- }
- }
-
return head;
}