imageeditorengine/filters/FilterRedEye/Inc/CFilterRedEye.h
changeset 1 edfc90759b9f
equal deleted inserted replaced
0:57d4cdd99204 1:edfc90759b9f
       
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "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 * Ixonos Plc
       
    14 *
       
    15 * Description:  
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __CFilterRedEye_H__
       
    21 #define __CFilterRedEye_H__
       
    22 
       
    23 #include <e32base.h>
       
    24 #include "MImageFilter.h"
       
    25 
       
    26 class CFilterRedEye
       
    27 	: public CBase
       
    28 	, public MImageFilter
       
    29 	{
       
    30 	public:
       
    31 		IMPORT_C static TInt Create();
       
    32 		virtual ~CFilterRedEye();
       
    33 	
       
    34 	private:
       
    35 		static CFilterRedEye* NewL();
       
    36 		CFilterRedEye();
       
    37 		void ConstructL();
       
    38 	
       
    39 	public: // MImageFilter
       
    40 		virtual TRect Rect();
       
    41         virtual TReal Scale();
       
    42         virtual TSize ViewPortSize();
       
    43 		virtual TBlock * GetBlockL ( const TRect & aRect );
       
    44 		virtual void SetParent( MImageFilter* aParent );
       
    45 		virtual void SetChild( MImageFilter* aChild );
       
    46 		virtual TInt CmdL( const TDesC16& aCmd );
       
    47 		virtual const char* Type();
       
    48 
       
    49 	private: // Data
       
    50 
       
    51 		TUint8 Hue ( TUint32 aPixel ) const;
       
    52 		TUint8 Saturation ( TUint32 aPixel ) const;
       
    53 
       
    54 
       
    55 		TRect iRedEyeRect;
       
    56 		TRect iRedEyeRectSc;
       
    57 	};
       
    58 
       
    59 #endif