diff options
author | qinxialei <xialeiqin@gmail.com> | 2021-04-22 11:20:15 +0800 |
---|---|---|
committer | qinxialei <xialeiqin@gmail.com> | 2021-04-22 11:20:15 +0800 |
commit | 2381d803c76105f44717d75f089ec37f51e5cfe4 (patch) | |
tree | 33f40fb4dfd1039ac262d5f1c1065d298578ddc1 /src/dsp/super_res.cc | |
parent | e8d277081293b6fb2a5d469616baaa7a06f52496 (diff) | |
download | libgav1-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.cc | 10 |
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); } |