shithub: dav1d

Download patch

ref: f2f8f57bbd6dc9f529fc8ca71f701b5eb9e05edb
parent: adaa9ba6430b9c466b5b5e3421a3beff362e3690
author: Janne Grunau <[email protected]>
date: Sun Nov 4 14:50:14 EST 2018

loopfilter: use width aligned to 4 instead of 8

--- a/src/lf_apply_tmpl.c
+++ b/src/lf_apply_tmpl.c
@@ -269,7 +269,7 @@
     {
         filter_plane_cols_y(f, have_left, level_ptr, f->b4_stride,
                             lflvl[x].filter_y[0], ptr, f->cur.p.stride[0],
-                            imin(32, f->bw - x * 32), starty4, endy4);
+                            imin(32, f->w4 - x * 32), starty4, endy4);
     }
 
     level_ptr = f->lf.level + f->b4_stride * sby * sbsz;
@@ -276,7 +276,7 @@
     for (ptr = p[0], x = 0; x < f->sb128w; x++, ptr += 128, level_ptr += 32) {
         filter_plane_rows_y(f, have_top, level_ptr, f->b4_stride,
                             lflvl[x].filter_y[1], ptr, f->cur.p.stride[0],
-                            imin(32, f->bw - x * 32), starty4, endy4);
+                            imin(32, f->w4 - x * 32), starty4, endy4);
     }
 
     if (!f->frame_hdr.loopfilter.level_u && !f->frame_hdr.loopfilter.level_v)
@@ -290,7 +290,7 @@
         filter_plane_cols_uv(f, have_left, level_ptr, f->b4_stride,
                              lflvl[x].filter_uv[0],
                              &p[1][uv_off], &p[2][uv_off], f->cur.p.stride[1],
-                             (imin(32, f->bw - x * 32) + ss_hor) >> ss_hor,
+                             (imin(32, f->w4 - x * 32) + ss_hor) >> ss_hor,
                              starty4 >> ss_ver, uv_endy4, ss_ver);
     }
 
@@ -301,7 +301,7 @@
         filter_plane_rows_uv(f, have_top, level_ptr, f->b4_stride,
                              lflvl[x].filter_uv[1],
                              &p[1][uv_off], &p[2][uv_off], f->cur.p.stride[1],
-                             (imin(32, f->bw - x * 32) + ss_hor) >> ss_hor,
+                             (imin(32, f->w4 - x * 32) + ss_hor) >> ss_hor,
                              starty4 >> ss_ver, uv_endy4, ss_hor);
     }
 }