enc_gaborish.h (798B)
1 // Copyright (c) the JPEG XL Project Authors. All rights reserved. 2 // 3 // Use of this source code is governed by a BSD-style 4 // license that can be found in the LICENSE file. 5 6 #ifndef LIB_JXL_GABORISH_H_ 7 #define LIB_JXL_GABORISH_H_ 8 9 // Linear smoothing (3x3 convolution) for deblocking without too much blur. 10 11 #include "lib/jxl/base/data_parallel.h" 12 #include "lib/jxl/base/rect.h" 13 #include "lib/jxl/base/status.h" 14 #include "lib/jxl/image.h" 15 16 namespace jxl { 17 18 // Used in encoder to reduce the impact of the decoder's smoothing. 19 // This is not exact. Works in-place to reduce memory use. 20 // The input is typically in XYB space. 21 Status GaborishInverse(Image3F* in_out, const Rect& rect, const float mul[3], 22 ThreadPool* pool); 23 24 } // namespace jxl 25 26 #endif // LIB_JXL_GABORISH_H_