aboutsummaryrefslogtreecommitdiff
path: root/src/dsp/super_res.cc
diff options
context:
space:
mode:
authorqinxialei <xialeiqin@gmail.com>2021-04-22 11:20:15 +0800
committerqinxialei <xialeiqin@gmail.com>2021-04-22 11:20:15 +0800
commit2381d803c76105f44717d75f089ec37f51e5cfe4 (patch)
tree33f40fb4dfd1039ac262d5f1c1065d298578ddc1 /src/dsp/super_res.cc
parente8d277081293b6fb2a5d469616baaa7a06f52496 (diff)
downloadlibgav1-2381d803c76105f44717d75f089ec37f51e5cfe4.tar.gz
libgav1-2381d803c76105f44717d75f089ec37f51e5cfe4.tar.bz2
libgav1-2381d803c76105f44717d75f089ec37f51e5cfe4.zip
New upstream version 0.16.3
Diffstat (limited to 'src/dsp/super_res.cc')
-rw-r--r--src/dsp/super_res.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dsp/super_res.cc b/src/dsp/super_res.cc
index d041bd1..abb01a1 100644
--- a/src/dsp/super_res.cc
+++ b/src/dsp/super_res.cc
@@ -26,10 +26,10 @@ namespace {
template <int bitdepth, typename Pixel>
void SuperRes_C(const void* /*coefficients*/, void* const source,
- const ptrdiff_t stride, const int height,
+ const ptrdiff_t source_stride, const int height,
const int downscaled_width, const int upscaled_width,
- const int initial_subpixel_x, const int step,
- void* const dest) {
+ const int initial_subpixel_x, const int step, void* const dest,
+ ptrdiff_t dest_stride) {
assert(step <= 1 << kSuperResScaleBits);
auto* src = static_cast<Pixel*>(source) - DivideBy2(kSuperResFilterTaps);
auto* dst = static_cast<Pixel*>(dest);
@@ -61,8 +61,8 @@ void SuperRes_C(const void* /*coefficients*/, void* const source,
(1 << bitdepth) - 1);
subpixel_x += step;
} while (++x < upscaled_width);
- src += stride;
- dst += stride;
+ src += source_stride;
+ dst += dest_stride;
} while (--y != 0);
}