Dali 3D User Interface Engine
Functions | Variables
Dali::Toolkit::Internal::anonymous_namespace{blur-two-pass-filter.cpp} Namespace Reference

Functions

std::string GetOffsetUniformName (int index)
 
std::string GetWeightUniformName (int index)
 
std::string GetBlurStrengthUniformName ()
 

Variables

const float DEFAULT_KERNEL0 [] = { 12.0f/16.0f, 2.0f/16.0f, 2.0f/16.0f }
 
const float DEFAULT_KERNEL1 []
 
const float DEFAULT_KERNEL2 []
 
const float DEFAULT_KERNEL3 []
 
const float DEFAULT_KERNEL4 []
 
const float ARBITRARY_FIELD_OF_VIEW = Math::PI / 4.0f
 
const char * BLUR_TWO_PASS_FRAGMENT_SOURCE
 
const char * BLEND_TWO_IMAGES_FRAGMENT_SOURCE
 

Function Documentation

std::string Dali::Toolkit::Internal::anonymous_namespace{blur-two-pass-filter.cpp}::GetBlurStrengthUniformName ( )

Definition at line 117 of file blur-two-pass-filter.cpp.

Referenced by Dali::Toolkit::Internal::BlurTwoPassFilter::BlurTwoPassFilter().

Here is the caller graph for this function:

std::string Dali::Toolkit::Internal::anonymous_namespace{blur-two-pass-filter.cpp}::GetOffsetUniformName ( int  index)

Definition at line 92 of file blur-two-pass-filter.cpp.

Referenced by Dali::Toolkit::Internal::BlurTwoPassFilter::Enable().

Here is the caller graph for this function:

std::string Dali::Toolkit::Internal::anonymous_namespace{blur-two-pass-filter.cpp}::GetWeightUniformName ( int  index)

Definition at line 99 of file blur-two-pass-filter.cpp.

Referenced by Dali::Toolkit::Internal::BlurTwoPassFilter::Enable().

Here is the caller graph for this function:

Variable Documentation

const float Dali::Toolkit::Internal::anonymous_namespace{blur-two-pass-filter.cpp}::ARBITRARY_FIELD_OF_VIEW = Math::PI / 4.0f

Definition at line 59 of file blur-two-pass-filter.cpp.

const char* Dali::Toolkit::Internal::anonymous_namespace{blur-two-pass-filter.cpp}::BLEND_TWO_IMAGES_FRAGMENT_SOURCE
Initial value:
=
{
"precision highp float;\n"
"uniform float uBlurStrength; \n "
"void main()\n"
"{\n"
" gl_FragColor = texture2D( sTexture, vTexCoord ) * uBlurStrength"
" + texture2D( sEffect, vTexCoord )*(1.0-uBlurStrength); \n"
"}\n"
}

Definition at line 106 of file blur-two-pass-filter.cpp.

Referenced by Dali::Toolkit::Internal::BlurTwoPassFilter::BlurTwoPassFilter().

const char* Dali::Toolkit::Internal::anonymous_namespace{blur-two-pass-filter.cpp}::BLUR_TWO_PASS_FRAGMENT_SOURCE
Initial value:
=
{
"precision highp float;\n"
"uniform vec2 uSampleOffsets[NUM_SAMPLES];\n"
"uniform float uSampleWeights[NUM_SAMPLES];\n"
"void main()\n"
"{\n"
" vec4 color = vec4(0.0);\n"
"# ifdef DEBUG_RENDER\n"
" if( vTexCoord.s < 0.495 )\n"
" {\n"
"# endif //def DEBUG_RENDER\n"
" for( int i = 0; i < NUM_SAMPLES; ++i )\n"
" {\n"
" color += texture2D( sTexture, vTexCoord + uSampleOffsets[i] ) * uSampleWeights[i];\n"
" }\n"
"# ifdef DEBUG_RENDER\n"
" }\n"
" else if( vTexCoord.s > 0.505 )\n"
" {\n"
" color = texture2D( sTexture, vTexCoord );\n"
" }\n"
" else\n"
" {\n"
" color = vec4( 1.0, 0.0, 0.0, 1.0 );\n"
" }\n"
"# endif //def DEBUG_RENDER\n"
" gl_FragColor = color;\n"
"}\n"
}

Definition at line 61 of file blur-two-pass-filter.cpp.

Referenced by Dali::Toolkit::Internal::BlurTwoPassFilter::Enable().

const float Dali::Toolkit::Internal::anonymous_namespace{blur-two-pass-filter.cpp}::DEFAULT_KERNEL0[] = { 12.0f/16.0f, 2.0f/16.0f, 2.0f/16.0f }

Definition at line 41 of file blur-two-pass-filter.cpp.

const float Dali::Toolkit::Internal::anonymous_namespace{blur-two-pass-filter.cpp}::DEFAULT_KERNEL1[]
Initial value:
= { 8.0f/16.0f, 2.75f/16.0f, 2.75f/16.0f, 1.25f/16.0f,
1.25f/16.0f }

Definition at line 43 of file blur-two-pass-filter.cpp.

const float Dali::Toolkit::Internal::anonymous_namespace{blur-two-pass-filter.cpp}::DEFAULT_KERNEL2[]
Initial value:
= { 5.0f/16.0f, 2.75f/16.0f, 2.75f/16.0f, 1.75f/16.0f,
1.75f/16.0f, 1.5f/16.0f, 1.5f/16.0f }

Definition at line 46 of file blur-two-pass-filter.cpp.

const float Dali::Toolkit::Internal::anonymous_namespace{blur-two-pass-filter.cpp}::DEFAULT_KERNEL3[]
Initial value:
= { 3.0f/16.0f, 2.0f/16.0f, 2.0f/16.0f, 2.0f/16.0f,
2.0f/16.0f, 2.0f/16.0f, 2.0f/16.0f, 0.5f/16.0f,
0.5f/16.0f }

Definition at line 49 of file blur-two-pass-filter.cpp.

const float Dali::Toolkit::Internal::anonymous_namespace{blur-two-pass-filter.cpp}::DEFAULT_KERNEL4[]
Initial value:
= { 2.0f/16.0f, 1.5f/16.0f, 1.5f/16.0f, 1.5f/16.0f,
1.5f/16.0f, 1.0f/16.0f, 1.0f/16.0f, 1.0f/16.0f,
1.0f/16.0f, 1.0f/16.0f, 1.0f/16.0f, 0.5f/16.0f,
0.5f/16.0f, 0.5f/16.0f, 0.5f/16.0f }

Definition at line 53 of file blur-two-pass-filter.cpp.

Referenced by Dali::Toolkit::Internal::BlurTwoPassFilter::Enable().

Dali Docs Home
Read more about Dali