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