dec_transforms_testonly.cc (1374B)
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 #include "lib/jxl/dec_transforms_testonly.h" 7 8 #undef HWY_TARGET_INCLUDE 9 #define HWY_TARGET_INCLUDE "lib/jxl/dec_transforms_testonly.cc" 10 #include <hwy/foreach_target.h> 11 #include <hwy/highway.h> 12 13 #include "lib/jxl/dct_scales.h" 14 #include "lib/jxl/dec_transforms-inl.h" 15 16 namespace jxl { 17 18 #if HWY_ONCE 19 HWY_EXPORT(TransformToPixels); 20 void TransformToPixels(AcStrategy::Type strategy, 21 float* JXL_RESTRICT coefficients, 22 float* JXL_RESTRICT pixels, size_t pixels_stride, 23 float* scratch_space) { 24 HWY_DYNAMIC_DISPATCH(TransformToPixels) 25 (strategy, coefficients, pixels, pixels_stride, scratch_space); 26 } 27 28 HWY_EXPORT(LowestFrequenciesFromDC); 29 void LowestFrequenciesFromDC(const jxl::AcStrategy::Type strategy, 30 const float* dc, size_t dc_stride, float* llf, 31 float* JXL_RESTRICT scratch) { 32 HWY_DYNAMIC_DISPATCH(LowestFrequenciesFromDC) 33 (strategy, dc, dc_stride, llf, scratch); 34 } 35 36 HWY_EXPORT(AFVIDCT4x4); 37 void AFVIDCT4x4(const float* JXL_RESTRICT coeffs, float* JXL_RESTRICT pixels) { 38 HWY_DYNAMIC_DISPATCH(AFVIDCT4x4)(coeffs, pixels); 39 } 40 #endif // HWY_ONCE 41 42 } // namespace jxl