Lines Matching refs:NumChannels
73 template<int NumChannels>
76 const deUint8* ptr = (const deUint8*)src.getDataPtr() + src.getRowPitch()*y + x*NumChannels; in readUnorm8()
79 for (int c = 0; c < NumChannels; c++) in readUnorm8()
82 if (NumChannels < 4) in readUnorm8()
96 template<int NumChannels>
99 deUint8* ptr = (deUint8*)dst.getDataPtr() + dst.getRowPitch()*y + x*NumChannels; in writeUnorm8()
101 for (int c = 0; c < NumChannels; c++) in writeUnorm8()
123 template<int NumChannels>
142 deUint32 p00 = readUnorm8<NumChannels>(src, i0, j0); in bilinearSample()
143 deUint32 p10 = readUnorm8<NumChannels>(src, i1, j0); in bilinearSample()
144 deUint32 p01 = readUnorm8<NumChannels>(src, i0, j1); in bilinearSample()
145 deUint32 p11 = readUnorm8<NumChannels>(src, i1, j1); in bilinearSample()
149 for (int c = 0; c < NumChannels; c++) in bilinearSample()
212 template<int NumChannels>
216 deUint32 minDist = colorDistSquared(pixel, readUnorm8<NumChannels>(surface, x, y)); in distSquaredToNeighbor()
242 minDist = de::min(minDist, colorDistSquared(pixel, readUnorm8<NumChannels>(surface, dx, dy))); in distSquaredToNeighbor()
253 deUint32 sample = bilinearSample<NumChannels>(surface, dx, dy); in distSquaredToNeighbor()