Lines Matching defs:baseFrequencyY
53 FETurbulence::FETurbulence(Filter* filter, TurbulenceType type, float baseFrequencyX, float baseFrequencyY, int numOctaves, float seed, bool stitchTiles)
57 , m_baseFrequencyY(baseFrequencyY)
64 PassRefPtr<FETurbulence> FETurbulence::create(Filter* filter, TurbulenceType type, float baseFrequencyX, float baseFrequencyY, int numOctaves, float seed, bool stitchTiles)
66 return adoptRef(new FETurbulence(filter, type, baseFrequencyX, baseFrequencyY, numOctaves, seed, stitchTiles));
82 float FETurbulence::baseFrequencyY() const
87 bool FETurbulence::setBaseFrequencyY(float baseFrequencyY)
89 if (m_baseFrequencyY == baseFrequencyY)
91 m_baseFrequencyY = baseFrequencyY;
268 unsigned char FETurbulence::calculateTurbulenceValueForPoint(int channel, PaintingData& paintingData, StitchData& stitchData, const FloatPoint& point, float baseFrequencyX, float baseFrequencyY)
286 if (baseFrequencyY) {
287 float lowFrequency = floorf(tileHeight * baseFrequencyY) / tileHeight;
288 float highFrequency = ceilf(tileHeight * baseFrequencyY) / tileHeight;
289 if (baseFrequencyY / lowFrequency < highFrequency / baseFrequencyY)
290 baseFrequencyY = lowFrequency;
292 baseFrequencyY = highFrequency;
297 stitchData.height = roundf(tileHeight * baseFrequencyY);
301 FloatPoint noiseVector(point.x() * baseFrequencyX, point.y() * baseFrequencyY);
330 inline void FETurbulence::fillRegion(Uint8ClampedArray* pixelArray, PaintingData& paintingData, int startY, int endY, float baseFrequencyX, float baseFrequencyY)
344 pixelArray->set(indexOfPixelChannel, calculateTurbulenceValueForPoint(channel, paintingData, stitchData, filter()->mapAbsolutePointToLocalPoint(point), baseFrequencyX, baseFrequencyY));
351 parameters->filter->fillRegion(parameters->pixelArray, *parameters->paintingData, parameters->startY, parameters->endY, parameters->baseFrequencyX, parameters->baseFrequencyY);
391 params.baseFrequencyY = m_baseFrequencyY;
414 float baseFrequencyY = m_baseFrequencyY / absoluteTransform.d();
417 SkFloatToScalar(baseFrequencyY), numOctaves(), SkFloatToScalar(seed()),
420 SkFloatToScalar(baseFrequencyY), numOctaves(), SkFloatToScalar(seed()),
453 << "baseFrequency=\"" << baseFrequencyX() << ", " << baseFrequencyY() << "\" "