X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ffilters%2Fblur-two-pass-filter.h;h=e130897bbf2a32fd45b4a8480d7b1f4fcba803a0;hp=8c6f53b0c175ccc0560d7d261388e74f8641d7e8;hb=9598e692217c5fb541d862a3957b3efd5fd5171d;hpb=e2eda444afbe82e9591fe198eef339227f90a616 diff --git a/dali-toolkit/internal/filters/blur-two-pass-filter.h b/dali-toolkit/internal/filters/blur-two-pass-filter.h index 8c6f53b..e130897 100644 --- a/dali-toolkit/internal/filters/blur-two-pass-filter.h +++ b/dali-toolkit/internal/filters/blur-two-pass-filter.h @@ -1,26 +1,29 @@ #ifndef __DALI_TOOLKIT_INTERNAL_BLUR_TWO_PASS_FILTER_H__ #define __DALI_TOOLKIT_INTERNAL_BLUR_TWO_PASS_FILTER_H__ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://floralicense.org/license/ -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an AS IS BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* + * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ // EXTERNAL INCLUDES +#include +#include +#include // INTERNAL INCLUDES -#include #include "image-filter.h" namespace Dali @@ -59,6 +62,9 @@ public: // From ImageFilter /// @copydoc Dali::Toolkit::Internal::ImageFilter::Refresh virtual void Refresh(); + /// @copydoc Dali::Toolkit::Internal::ImageFilter::SetSize + virtual void SetSize( const Vector2& size ); + /** * Get the property index that controls the strength of the blur applied to the image. Useful for animating this property. * This property represents a value in the range [0.0 - 1.0] where 0.0 is no blur and 1.0 is full blur. @@ -66,16 +72,12 @@ public: // From ImageFilter Property::Index GetBlurStrengthPropertyIndex() const {return mBlurStrengthPropertyIndex;} /** - * Retrieve the constrainable object to animate or constrain the blur strength property - * @return the constrainable object which blend the output image according to the blur strength + * Retrieve the handle to the object in order to animate or constrain the blur strength property + * @return The hadnle to the object which blends the output image according to the blur strength */ - Constrainable GetHandleForAnimateBlurStrength(); + Handle GetHandleForAnimateBlurStrength(); private: - /** - * Setup position and parameters for camera - */ - void SetupCamera(); /** * Setup render tasks for blur @@ -88,26 +90,21 @@ private: private: // Attributes - CameraActor mCameraForBlur; - // To perform horizontal blur from mInputImage to mImageForHorz - RenderTask mRenderTaskForHorz; - ImageActor mActorForInput; - FrameBufferImage mImageForHorz; - ShaderEffect mShaderForHorz; + RenderTask mRenderTaskForHorz; + Toolkit::ImageView mActorForInput; + FrameBufferImage mImageForHorz; // To perform vertical blur from mImageForHorz to mOutputImage - RenderTask mRenderTaskForVert; - ImageActor mActorForHorz; - ShaderEffect mShaderForVert; - FrameBufferImage mBlurredImage; + RenderTask mRenderTaskForVert; + Toolkit::ImageView mActorForHorz; + FrameBufferImage mBlurredImage; // To blend the blurred image and input image according to the blur strength - RenderTask mRenderTaskForBlending; - ImageActor mActorForBlending; - Actor mRootActorForBlending; - ShaderEffect mShaderForBlending; - Property::Index mBlurStrengthPropertyIndex; + RenderTask mRenderTaskForBlending; + Toolkit::ImageView mActorForBlending; + Actor mRootActorForBlending; + Property::Index mBlurStrengthPropertyIndex; }; // class BlurTwoPassFilter