Searched defs:ConvolutionFixed (Results 1 - 1 of 1) sorted by relevance

/external/skia/src/core/
H A DSkConvolver.h27 // Entries are stored in ConvolutionFixed point, shifted left by kShiftBits.
30 typedef short ConvolutionFixed; typedef in class:SkConvolutionFilter1D
32 // The number of bits that ConvolutionFixed point values are shifted by.
38 // Convert between floating point and our ConvolutionFixed point representation.
39 static ConvolutionFixed FloatToFixed(float f) {
40 return static_cast<ConvolutionFixed>(f * (1 << kShiftBits));
42 static unsigned char FixedToChar(ConvolutionFixed x) {
45 static float FixedToFloat(ConvolutionFixed x) {
46 // The cast relies on ConvolutionFixed being a short, implying that on
49 SK_COMPILE_ASSERT(sizeof(ConvolutionFixed)
[all...]

Completed in 86 milliseconds