tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

dec_transforms_testonly.cc (1338B)


      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/dec_transforms-inl.h"
     14 
     15 namespace jxl {
     16 
     17 #if HWY_ONCE
     18 HWY_EXPORT(TransformToPixels);
     19 void TransformToPixels(AcStrategyType strategy,
     20                       float* JXL_RESTRICT coefficients,
     21                       float* JXL_RESTRICT pixels, size_t pixels_stride,
     22                       float* scratch_space) {
     23  HWY_DYNAMIC_DISPATCH(TransformToPixels)
     24  (strategy, coefficients, pixels, pixels_stride, scratch_space);
     25 }
     26 
     27 HWY_EXPORT(LowestFrequenciesFromDC);
     28 void LowestFrequenciesFromDC(const jxl::AcStrategyType strategy,
     29                             const float* dc, size_t dc_stride, float* llf,
     30                             float* JXL_RESTRICT scratch) {
     31  HWY_DYNAMIC_DISPATCH(LowestFrequenciesFromDC)
     32  (strategy, dc, dc_stride, llf, scratch);
     33 }
     34 
     35 HWY_EXPORT(AFVIDCT4x4);
     36 void AFVIDCT4x4(const float* JXL_RESTRICT coeffs, float* JXL_RESTRICT pixels) {
     37  HWY_DYNAMIC_DISPATCH(AFVIDCT4x4)(coeffs, pixels);
     38 }
     39 #endif  // HWY_ONCE
     40 
     41 }  // namespace jxl