OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:kernelWidth
(Results
1 - 6
of
6
) sorted by null
/external/webkit/Source/WebCore/platform/graphics/gpu/
ConvolutionShader.h
40
static PassOwnPtr<ConvolutionShader> create(GraphicsContext3D*, int
kernelWidth
);
42
void use(const AffineTransform&, const AffineTransform& texTransform, const float* kernel, int
kernelWidth
, float imageIncrement[2]);
45
ConvolutionShader(GraphicsContext3D*, unsigned program, int
kernelWidth
);
ConvolutionShader.cpp
42
ConvolutionShader::ConvolutionShader(GraphicsContext3D* context, unsigned program, int
kernelWidth
)
44
, m_kernelWidth(
kernelWidth
)
54
PassOwnPtr<ConvolutionShader> ConvolutionShader::create(GraphicsContext3D* context, int
kernelWidth
)
71
snprintf(vertexShaderSource, sizeof(vertexShaderSource), vertexShaderRaw,
kernelWidth
);
91
snprintf(fragmentShaderSource, sizeof(fragmentShaderSource), fragmentShaderRaw,
kernelWidth
);
96
return new ConvolutionShader(context, program,
kernelWidth
);
99
void ConvolutionShader::use(const AffineTransform& transform, const AffineTransform& texTransform, const float* kernel, int
kernelWidth
, float imageIncrement[2])
115
if (
kernelWidth
> m_kernelWidth)
116
kernelWidth
= m_kernelWidth;
117
m_context->uniform1fv(m_kernelLocation, const_cast<float*>(kernel),
kernelWidth
);
[
all
...]
SharedGraphicsContext3D.cpp
406
void SharedGraphicsContext3D::useConvolutionProgram(const AffineTransform& transform, const AffineTransform& texTransform, const float* kernel, int
kernelWidth
, float imageIncrement[2])
408
ASSERT(
kernelWidth
>= 1 &&
kernelWidth
<= cMaxKernelWidth);
409
m_convolutionShaders[
kernelWidth
- 1]->use(transform, texTransform, kernel,
kernelWidth
, imageIncrement);
SharedGraphicsContext3D.h
113
void useConvolutionProgram(const AffineTransform&, const AffineTransform& texTransform, const float* kernel, int
kernelWidth
, float imageIncrement[2]);
/external/webkit/Source/WebCore/platform/graphics/chromium/
GLES2Canvas.cpp
448
void GLES2Canvas::convolveRect(unsigned texture, const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, float imageIncrement[2], const float* kernel, int
kernelWidth
)
466
m_context->useConvolutionProgram(matrix, texMatrix, kernel,
kernelWidth
, imageIncrement);
476
static void buildKernel(float sigma, float* kernel, int
kernelWidth
)
478
float halfWidth = (
kernelWidth
- 1.0f) / 2.0f;
480
for (int i = 0; i <
kernelWidth
; ++i) {
486
for (int i = 0; i <
kernelWidth
; ++i)
822
int
kernelWidth
= halfWidth * 2 + 1;
823
OwnArrayPtr<float> kernel = adoptArrayPtr(new float[
kernelWidth
]);
824
buildKernel(sigma, kernel.get(),
kernelWidth
);
827
scissorClear(srcRect.maxX(), srcRect.y(),
kernelWidth
, srcRect.height())
[
all
...]
GLES2Canvas.h
108
void convolveRect(unsigned texture, const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, float imageIncrement[2], const float* kernel, int
kernelWidth
);
Completed in 99 milliseconds