EngInc/IEImage.h
changeset 3 93fff7023be8
equal deleted inserted replaced
2:e1e28b0273b0 3:93fff7023be8
       
     1 /*
       
     2 * Copyright (c) 2009 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: Juha Kauppinen, Mika Hokkanen
       
    13 * 
       
    14 * Description: Photo Browser
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __IEIMAGE_H__
       
    19 #define __IEIMAGE_H__
       
    20 
       
    21 // Include files
       
    22 #include <e32base.h>
       
    23 #include "IEBgpsInfo.h"
       
    24 #include "ImagicConsts.h"
       
    25 
       
    26 
       
    27 //_LIT8(KFaceCoordsHeader, "Face Coordinates");
       
    28 //_LIT8(KFaceCoordsImagicVersion, "Imagic v2.0:");
       
    29 
       
    30 enum TThumbSize
       
    31 {
       
    32     ENotDefined = 0,
       
    33     ESize32x32 = 1,
       
    34     //ESize128x96 = 2,
       
    35     ESize128x128 = 4,
       
    36     ESize512x512 = 8,
       
    37     EFullSize = 16,
       
    38     EExifThumb = 32
       
    39 };
       
    40 
       
    41 enum TIEFeature
       
    42 {
       
    43 	EFeatureNone = 1,
       
    44 	EBrightness,
       
    45 	EContrast,
       
    46 	EColorAdjustment,
       
    47 	EGamma,
       
    48 	ECropping,
       
    49 	EEdgeEnhancement,
       
    50 	ERotation,
       
    51 	ELocalColorCorrection,
       
    52 	EFaceDetection,
       
    53 	EFeatureError
       
    54 };
       
    55 
       
    56 enum TIEEditingMode
       
    57 {
       
    58 	EEditModeNone = 1,
       
    59 	EEditModeWizard,
       
    60 	EEditModeAdvanced,
       
    61 	EEditModeRotate,
       
    62 	EEditModeCrop,
       
    63 	EEditModeError,
       
    64 	EEditModeBrowsing
       
    65 };
       
    66 
       
    67 enum TImageForamt
       
    68 {
       
    69 	EYuv420Planar = 1,
       
    70 	EYuv422,
       
    71 	EYuv444
       
    72 };
       
    73 
       
    74 enum TRotationAngle
       
    75 {
       
    76 	ERotationClockwise90 = 1,
       
    77 	ERotationClockwise180,
       
    78 	ERotationClockwise270
       
    79 };
       
    80 
       
    81 class TIEColorParams
       
    82 {
       
    83 public:
       
    84 	TInt iRedValue;
       
    85 	TInt iGreenValue;
       
    86 	TInt iBlueValue;
       
    87 };
       
    88 
       
    89 class TIEWizardImageParams
       
    90 {
       
    91 public:
       
    92 	TBool iIsWizardEdit;
       
    93 	TInt iBrightnessVal;
       
    94 	TInt iContrastVal;
       
    95 	TIEColorParams iColorVal;
       
    96 	TInt iGammmaVal;
       
    97 	TInt iSharpnessVal;
       
    98 	TInt iLocalColorVal;
       
    99 };
       
   100 
       
   101 class TIEImageParams
       
   102 {
       
   103 public:
       
   104 	TBool iIsNonWizardEdit;
       
   105 	TIEFeature iFeature;
       
   106 	TInt iValue;
       
   107 	TIEColorParams iColorValue;
       
   108 	TRect iCropRect;	
       
   109 };
       
   110 
       
   111 class TIEImage
       
   112 {
       
   113 public:	
       
   114 	TFileName iFileName;
       
   115 	TFileName iEditedFileName;
       
   116 	TInt iFileIndex;
       
   117 	TIEWizardImageParams iWizardParams;
       
   118 	TIEImageParams iImageParams;
       
   119 };
       
   120 
       
   121 #endif // __IEIMAGE_H__