Searched refs:paintingData (Results 1 – 7 of 7) sorted by relevance
/external/webkit/Source/WebCore/platform/graphics/filters/ |
D | SpotLightSource.cpp | 45 void SpotLightSource::initPaintingData(PaintingData& paintingData) in initPaintingData() argument 47 paintingData.privateColorVector = paintingData.colorVector; in initPaintingData() 48 paintingData.directionVector.setX(m_direction.x() - m_position.x()); in initPaintingData() 49 paintingData.directionVector.setY(m_direction.y() - m_position.y()); in initPaintingData() 50 paintingData.directionVector.setZ(m_direction.z() - m_position.z()); in initPaintingData() 51 paintingData.directionVector.normalize(); in initPaintingData() 54 paintingData.coneCutOffLimit = 0.0f; in initPaintingData() 55 paintingData.coneFullLight = -antiAliasTreshold; in initPaintingData() 62 paintingData.coneCutOffLimit = cosf(deg2rad(180.0f - limitingConeAngle)); in initPaintingData() 63 paintingData.coneFullLight = paintingData.coneCutOffLimit - antiAliasTreshold; in initPaintingData() [all …]
|
D | FETurbulence.cpp | 180 inline void FETurbulence::initPaint(PaintingData& paintingData) in initPaint() argument 185 if (paintingData.seed <= 0) in initPaint() 186 paintingData.seed = -(paintingData.seed % (s_randMaximum - 1)) + 1; in initPaint() 187 if (paintingData.seed > s_randMaximum - 1) in initPaint() 188 paintingData.seed = s_randMaximum - 1; in initPaint() 193 paintingData.latticeSelector[i] = i; in initPaint() 194 gradient = paintingData.gradient[channel][i]; in initPaint() 195 …gradient[0] = static_cast<float>((paintingData.random() % (2 * s_blockSize)) - s_blockSize) / s_bl… in initPaint() 196 …gradient[1] = static_cast<float>((paintingData.random() % (2 * s_blockSize)) - s_blockSize) / s_bl… in initPaint() 203 int k = paintingData.latticeSelector[i]; in initPaint() [all …]
|
D | FEConvolveMatrix.cpp | 240 ALWAYS_INLINE void FEConvolveMatrix::fastSetInteriorPixels(PaintingData& paintingData, int clipRigh… in fastSetInteriorPixels() argument 243 int pixel = (m_targetOffset.y() * paintingData.width + m_targetOffset.x()) * 4; in fastSetInteriorPixels() 266 …totals[0] += m_kernelMatrix[kernelValue] * static_cast<float>(paintingData.srcPixelArray->get(kern… in fastSetInteriorPixels() 267 …totals[1] += m_kernelMatrix[kernelValue] * static_cast<float>(paintingData.srcPixelArray->get(kern… in fastSetInteriorPixels() 268 …totals[2] += m_kernelMatrix[kernelValue] * static_cast<float>(paintingData.srcPixelArray->get(kern… in fastSetInteriorPixels() 270 …totals[3] += m_kernelMatrix[kernelValue] * static_cast<float>(paintingData.srcPixelArray->get(kern… in fastSetInteriorPixels() 279 …nationPixels<preserveAlphaValues>(paintingData.dstPixelArray, pixel, totals, m_divisor, paintingDa… in fastSetInteriorPixels() 287 ALWAYS_INLINE int FEConvolveMatrix::getPixelValue(PaintingData& paintingData, int x, int y) in getPixelValue() argument 289 if (x >= 0 && x < paintingData.width && x >= 0 && y < paintingData.height) in getPixelValue() 290 return (y * paintingData.width + x) << 2; in getPixelValue() [all …]
|
D | FELighting.cpp | 182 …FELighting::inlineSetPixel(int offset, LightingData& data, LightSource::PaintingData& paintingData, in inlineSetPixel() argument 185 …m_lightSource->updatePaintingData(paintingData, lightX, lightY, static_cast<float>(data.pixels->ge… in inlineSetPixel() 191 … lightStrength = m_diffuseConstant * paintingData.lightVector.z() / paintingData.lightVectorLength; in inlineSetPixel() 193 FloatPoint3D halfwayVector = paintingData.lightVector; in inlineSetPixel() 194 halfwayVector.setZ(halfwayVector.z() + paintingData.lightVectorLength); in inlineSetPixel() 209 …rength = m_diffuseConstant * (normalVector * paintingData.lightVector) / (normalVectorLength * pai… in inlineSetPixel() 211 FloatPoint3D halfwayVector = paintingData.lightVector; in inlineSetPixel() 212 halfwayVector.setZ(halfwayVector.z() + paintingData.lightVectorLength); in inlineSetPixel() 226 …data.pixels->set(offset, static_cast<unsigned char>(lightStrength * paintingData.colorVector.x())); in inlineSetPixel() 227 …data.pixels->set(offset + 1, static_cast<unsigned char>(lightStrength * paintingData.colorVector.y… in inlineSetPixel() [all …]
|
D | PointLightSource.cpp | 44 void PointLightSource::updatePaintingData(PaintingData& paintingData, int x, int y, float z) in updatePaintingData() argument 46 paintingData.lightVector.setX(m_position.x() - x); in updatePaintingData() 47 paintingData.lightVector.setY(m_position.y() - y); in updatePaintingData() 48 paintingData.lightVector.setZ(m_position.z() - z); in updatePaintingData() 49 paintingData.lightVectorLength = paintingData.lightVector.length(); in updatePaintingData()
|
D | DistantLightSource.cpp | 40 void DistantLightSource::initPaintingData(PaintingData& paintingData) in initPaintingData() argument 44 paintingData.lightVector.setX(cosf(azimuth) * cosf(elevation)); in initPaintingData() 45 paintingData.lightVector.setY(sinf(azimuth) * cosf(elevation)); in initPaintingData() 46 paintingData.lightVector.setZ(sinf(elevation)); in initPaintingData() 47 paintingData.lightVectorLength = 1; in initPaintingData()
|
D | FEConvolveMatrix.h | 103 ALWAYS_INLINE void setInteriorPixels(PaintingData& paintingData, int clipRight, int clipBottom); 104 ALWAYS_INLINE void setOuterPixels(PaintingData& paintingData, int x1, int y1, int x2, int y2);
|