equal
deleted
inserted
replaced
|
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: Base functionality for vgColorMatrix() based filters. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef HUIFXVG10COLORMATRIXFILTERBASE_H_ |
|
21 #define HUIFXVG10COLORMATRIXFILTERBASE_H_ |
|
22 |
|
23 #include "HuiFxVg10FilterBase.h" |
|
24 #include "HuiFxVg10.h" |
|
25 |
|
26 class CHuiFxVg10ColorMatrixFilterBase: public CHuiFxVg10FilterBase |
|
27 { |
|
28 public: |
|
29 static CHuiFxVg10ColorMatrixFilterBase* NewL(); |
|
30 protected: |
|
31 void ConstructL(); |
|
32 void DrawEffect(CHuiFxEngine& aEngine, VGImage aTargetImage, VGImage aSourceImage, TInt aWidth, TInt aHeight); |
|
33 virtual void UpdateColorMatrix(); |
|
34 void CopyFromL(const CHuiFxVg10ColorMatrixFilterBase *aOldFilter); |
|
35 CHuiFxVg10ColorMatrixFilterBase *CloneL() const; |
|
36 |
|
37 VGfloat iColorMatrix[20]; |
|
38 }; |
|
39 |
|
40 #endif /*HUIFXVG10COLORMATRIXFILTERBASE_H_*/ |