Invert src_w/h argument in mc.resize()

This commit is contained in:
Ronald S. Bultje
2020-03-31 13:19:55 +02:00
parent 8fd5dc3a5c
commit aa1866f2ba
4 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ static void backup_lpf(const Dav1dFrameContext *const f,
while (row + stripe_h <= row_h) {
const int n_lines = 4 - (row + stripe_h + 1 == h);
f->dsp->mc.resize(dst, dst_stride, src, src_stride,
dst_w, src_w, n_lines, f->resize_step[ss_hor],
dst_w, n_lines, src_w, f->resize_step[ss_hor],
f->resize_start[ss_hor] HIGHBD_CALL_SUFFIX);
row += stripe_h; // unmodified stripe_h for the 1st stripe
stripe_h = 64 >> ss_ver;
+1 -1
View File
@@ -110,7 +110,7 @@ typedef decl_emu_edge_fn(*emu_edge_fn);
#define decl_resize_fn(name) \
void (name)(pixel *dst, ptrdiff_t dst_stride, \
const pixel *src, ptrdiff_t src_stride, \
int dst_w, int src_w, int h, int dx, int mx HIGHBD_DECL_SUFFIX)
int dst_w, int h, int src_w, int dx, int mx HIGHBD_DECL_SUFFIX)
typedef decl_resize_fn(*resize_fn);
typedef struct Dav1dMCDSPContext {
+1 -1
View File
@@ -885,7 +885,7 @@ static void emu_edge_c(const intptr_t bw, const intptr_t bh,
static void resize_c(pixel *dst, const ptrdiff_t dst_stride,
const pixel *src, const ptrdiff_t src_stride,
const int dst_w, const int src_w, int h,
const int dst_w, int h, const int src_w,
const int dx, const int mx0 HIGHBD_DECL_SUFFIX)
{
do {
+4 -3
View File
@@ -2013,9 +2013,10 @@ void bytefn(dav1d_filter_sbrow)(Dav1dFrameContext *const f, const int sby) {
const int src_w = (4 * f->bw + ss_hor) >> ss_hor;
const int img_h = (f->cur.p.h - sbsz * 4 * sby + ss_ver) >> ss_ver;
f->dsp->mc.resize(dst, dst_stride, src, src_stride, dst_w, src_w,
imin(img_h, h_end) + h_start, f->resize_step[!!pl],
f->resize_start[!!pl] HIGHBD_CALL_SUFFIX);
f->dsp->mc.resize(dst, dst_stride, src, src_stride, dst_w,
imin(img_h, h_end) + h_start, src_w,
f->resize_step[!!pl], f->resize_start[!!pl]
HIGHBD_CALL_SUFFIX);
}
}
if (f->lf.restore_planes) {