ConvectionKernels_Util.h 596 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include "ConvectionKernels_ParallelMath.h"
  3. namespace cvtt
  4. {
  5. struct PixelBlockU8;
  6. struct PixelBlockS8;
  7. struct Options;
  8. }
  9. namespace cvtt
  10. {
  11. namespace Util
  12. {
  13. // Signed input blocks are converted into unsigned space, with the maximum value being 254
  14. void BiasSignedInput(PixelBlockU8 inputNormalized[ParallelMath::ParallelSize], const PixelBlockS8 inputSigned[ParallelMath::ParallelSize]);
  15. void FillWeights(const Options &options, float channelWeights[4]);
  16. void ComputeTweakFactors(int tweak, int range, float *outFactors);
  17. }
  18. }