dec_transforms_testonly.h (1076B)
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_DEC_TRANSFORMS_TESTONLY_H_ 7 #define LIB_JXL_DEC_TRANSFORMS_TESTONLY_H_ 8 9 // Facade for (non-inlined) inverse integral transforms. 10 11 #include <cstddef> 12 #include <cstdint> 13 14 #include "lib/jxl/base/compiler_specific.h" 15 16 namespace jxl { 17 18 enum class AcStrategyType : uint32_t; 19 20 void TransformToPixels(AcStrategyType strategy, 21 float* JXL_RESTRICT coefficients, 22 float* JXL_RESTRICT pixels, size_t pixels_stride, 23 float* JXL_RESTRICT scratch_space); 24 25 // Equivalent of the above for DC image. 26 void LowestFrequenciesFromDC(AcStrategyType strategy, const float* dc, 27 size_t dc_stride, float* llf, 28 float* JXL_RESTRICT scratch); 29 30 void AFVIDCT4x4(const float* JXL_RESTRICT coeffs, float* JXL_RESTRICT pixels); 31 32 } // namespace jxl 33 34 #endif // LIB_JXL_DEC_TRANSFORMS_TESTONLY_H_