mirror of
https://code.videolan.org/videolan/dav1d
synced 2026-06-11 04:03:05 +00:00
Invert src_w/h argument in mc.resize()
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
@@ -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
@@ -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
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user