diff options
author | Boyuan Yang <byang@debian.org> | 2021-11-07 08:50:20 -0500 |
---|---|---|
committer | Boyuan Yang <byang@debian.org> | 2021-11-07 08:50:20 -0500 |
commit | 513fcf1cd0dca1a6cbef9ff6e38e22237e75ba44 (patch) | |
tree | 249280ac94eb2b871de89cd1b166fff4ee00ab09 /src/dsp/cdef.cc | |
parent | 3c21ceac2f6a5adfab07d3d458880561543d0a31 (diff) | |
parent | 320ef65362608ee1148c299d8d5d7618af34e470 (diff) | |
download | libgav1-513fcf1cd0dca1a6cbef9ff6e38e22237e75ba44.tar.gz libgav1-513fcf1cd0dca1a6cbef9ff6e38e22237e75ba44.tar.bz2 libgav1-513fcf1cd0dca1a6cbef9ff6e38e22237e75ba44.zip |
Update upstream source from tag 'upstream/0.17.0'
Update to upstream version '0.17.0'
with Debian dir 5b612b6a2d67788b0c85bac59e50edc1545bfd7e
Diffstat (limited to 'src/dsp/cdef.cc')
-rw-r--r-- | src/dsp/cdef.cc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/dsp/cdef.cc b/src/dsp/cdef.cc index 0b50517..ca2adfd 100644 --- a/src/dsp/cdef.cc +++ b/src/dsp/cdef.cc @@ -40,8 +40,10 @@ constexpr int16_t kDivisionTable[] = {840, 420, 280, 210, 168, 140, 120, 105}; int32_t Square(int32_t x) { return x * x; } template <int bitdepth, typename Pixel> -void CdefDirection_C(const void* const source, ptrdiff_t stride, - uint8_t* const direction, int* const variance) { +void CdefDirection_C(const void* LIBGAV1_RESTRICT const source, + ptrdiff_t stride, + uint8_t* LIBGAV1_RESTRICT const direction, + int* LIBGAV1_RESTRICT const variance) { assert(direction != nullptr); assert(variance != nullptr); const auto* src = static_cast<const Pixel*>(source); @@ -121,10 +123,11 @@ int Constrain(int diff, int threshold, int damping) { // constant large value (kCdefLargeValue) if at the boundary. template <int block_width, int bitdepth, typename Pixel, bool enable_primary = true, bool enable_secondary = true> -void CdefFilter_C(const uint16_t* src, const ptrdiff_t src_stride, - const int block_height, const int primary_strength, - const int secondary_strength, const int damping, - const int direction, void* const dest, +void CdefFilter_C(const uint16_t* LIBGAV1_RESTRICT src, + const ptrdiff_t src_stride, const int block_height, + const int primary_strength, const int secondary_strength, + const int damping, const int direction, + void* LIBGAV1_RESTRICT const dest, const ptrdiff_t dest_stride) { static_assert(block_width == 4 || block_width == 8, "Invalid CDEF width."); static_assert(enable_primary || enable_secondary, ""); |