Lines Matching refs:src
74 static inline deUint32 readUnorm8 (const tcu::ConstPixelBufferAccess& src, int x, int y)
76 const deUint8* ptr = (const deUint8*)src.getDataPtr() + src.getRowPitch()*y + x*NumChannels;
90 inline deUint32 readUnorm8<4> (const tcu::ConstPixelBufferAccess& src, int x, int y)
92 return *(const deUint32*)((const deUint8*)src.getDataPtr() + src.getRowPitch()*y + x*4);
124 inline deUint32 bilinearSample (const ConstPixelBufferAccess& src, float u, float v)
126 int w = src.getWidth();
127 int h = src.getHeight();
142 deUint32 p00 = readUnorm8<NumChannels>(src, i0, j0);
143 deUint32 p10 = readUnorm8<NumChannels>(src, i1, j0);
144 deUint32 p01 = readUnorm8<NumChannels>(src, i0, j1);
145 deUint32 p11 = readUnorm8<NumChannels>(src, i1, j1);
162 static void separableConvolve (const PixelBufferAccess& dst, const ConstPixelBufferAccess& src, int shiftX, int shiftY, const std::vector<float>& kernelX, const std::vector<float>& kernelY)
164 DE_ASSERT(dst.getWidth() == src.getWidth() && dst.getHeight() == src.getHeight());
174 for (int j = 0; j < src.getHeight(); j++)
176 for (int i = 0; i < src.getWidth(); i++)
183 deUint32 p = readUnorm8<SrcChannels>(src, de::clamp(i+kx-shiftX, 0, src.getWidth()-1), j);
193 for (int j = 0; j < src.getHeight(); j++)
195 for (int i = 0; i < src.getWidth(); i++)