|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef HUIFXVG10BLURFILTER_H_ |
|
21 #define HUIFXVG10BLURFILTER_H_ |
|
22 |
|
23 #include "HuiFxVg10FilterBase.h" |
|
24 |
|
25 class CHuiFxVg10BlurFilter : public CHuiFxVg10FilterBase |
|
26 { |
|
27 public: |
|
28 static CHuiFxVg10BlurFilter* NewL(); |
|
29 TBool Draw(CHuiFxEngine& aEngine, CHuiGc& aGc, |
|
30 CHuiFxRenderbuffer& aTarget, CHuiFxRenderbuffer& aSource, |
|
31 const TRect& aTargetRect, const TRect& aSourceRect); |
|
32 |
|
33 void DrawEffect(CHuiFxEngine& aEngine, VGImage aTargetImage, VGImage aSourceImage, TInt aWidth, TInt aHeight); |
|
34 void CalculateMargin(TMargins &aMargin) const; |
|
35 CHuiFxVg10BlurFilter *CloneL() const; |
|
36 protected: |
|
37 void ConstructL(); |
|
38 private: |
|
39 void UpdateAlphaLUT(); |
|
40 TBool OpacityChanged(); |
|
41 |
|
42 TReal32 iOldOpacity; |
|
43 TReal32 iBlurX; |
|
44 TReal32 iBlurY; |
|
45 const static VGubyte iColorLUT[256]; |
|
46 VGubyte iAlphaLUT[256]; |
|
47 }; |
|
48 |
|
49 #endif /*HUIFXVG10BLURFILTER_H_*/ |