camerauis/cameraapp/generic/inc/cameracontroller/camcameracontrollerflags.hrh
changeset 0 1ddebce53859
equal deleted inserted replaced
-1:000000000000 0:1ddebce53859
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Build flags concerning Camera Controller
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CAM_CAMERACONTROLLERFLAGS_H
       
    20 #define CAM_CAMERACONTROLLERFLAGS_H
       
    21 
       
    22 // ===========================================================================
       
    23 
       
    24 #if ( defined(__WINSCW__) || defined(__WINS__) || defined(WINSCW) || defined(WINS) )
       
    25   #define CAMERAAPP_EMULATOR_BUILD
       
    26 #endif
       
    27 
       
    28 
       
    29 // ---------------------------------------------------------
       
    30 // In emulator build need to emulate CCamera
       
    31 #ifdef CAMERAAPP_EMULATOR_BUILD
       
    32   #define CAMERAAPP_CAPI_EMULATOR
       
    33 #endif
       
    34 
       
    35 // ---------------------------------------------------------
       
    36 // Camera API details
       
    37 // 
       
    38 // CAMERAAPP_CAPI_V2     : ECam Camera API v2 support.
       
    39 //                        Use MCameraObserver2 interface,
       
    40 //                        New2L and New2DuplicateL
       
    41 //
       
    42 // CAMERAAPP_CAPI_V2_SS  : ECam snapshot support 
       
    43 //                        (CCameraSnapshot).
       
    44 //
       
    45 // CAMERAAPP_CAPI_V2_ADV : ECam advanced settings support 
       
    46 //                        (CCameraAdvancedSettings).
       
    47 //
       
    48 // CAMERAAPP_CAPI_V2_DVF : ECam direct viewfinding support
       
    49 //                        (CCameraDirectViewFinder).
       
    50 //
       
    51 // CAMERAAPP_CAPI_V2_OL  : ECam overlays support (CCameraOverlay). 
       
    52 //                        Should be defined if direct vf enabled.
       
    53 //
       
    54 // CAMERAAPP_CAPI_V2_IP  : ECam image processing support
       
    55 //                        (CCameraImageProcessing). 
       
    56 //
       
    57 
       
    58 
       
    59 // Camera API v2
       
    60 #if! defined( CAMERAAPP_CAPI_EMULATOR )
       
    61   // Emulator does not have implementation for new ECam classes.
       
    62   // Only define CAPI v2 for hw.
       
    63     
       
    64     #define CAMERAAPP_CAPI_V2
       
    65 
       
    66 #endif
       
    67 
       
    68 // These should only be enabled if Camera API v2 is in use.
       
    69 #ifdef  CAMERAAPP_CAPI_V2
       
    70 
       
    71   // Snapshot --------------------------
       
    72   #define  CAMERAAPP_CAPI_V2_SS
       
    73   
       
    74   // Advanced settings -----------------
       
    75   #define  CAMERAAPP_CAPI_V2_ADV
       
    76 
       
    77   // Image processing ------------------
       
    78   #ifdef CAMERAAPP_CAPI_V2_ADV
       
    79     #define  CAMERAAPP_CAPI_V2_IP
       
    80   #endif
       
    81 
       
    82   // Direct viewfinder -----------------
       
    83   #define   CAMERAAPP_CAPI_V2_DVF
       
    84 
       
    85   // Overlays --------------------------
       
    86   #ifdef CAMERAAPP_CAPI_V2_DVF
       
    87     #define  CAMERAAPP_CAPI_V2_OL
       
    88   #endif
       
    89   
       
    90   // Histogram -------------------------
       
    91   #undef  CAMERAAPP_CAPI_V2_HG
       
    92 
       
    93 #endif
       
    94 
       
    95 // Flash simulation 
       
    96 //   - need Advanced settings
       
    97 #ifdef CAMERAAPP_CAPI_V2_ADV
       
    98   #undef CAMERAAPP_FLASH_SIMULATOR
       
    99 #endif
       
   100 
       
   101 // ---------------------------------------------------------
       
   102 // CAE flags:
       
   103 //
       
   104 //   CAMERAAPP_CAE_FOR_VIDEO : CCaeEngine is used for video recording
       
   105 //   CAMERAAPP_CAE_FIX       : Release CCamera before using CCaeEngine
       
   106 //                            and vice versa.
       
   107 #define CAMERAAPP_CAE_FOR_VIDEO
       
   108 #ifdef  CAMERAAPP_CAE_FOR_VIDEO
       
   109 
       
   110 #ifdef CAMERAAPP_EMULATOR_BUILD
       
   111   #define CAMERAAPP_CAE_FIX
       
   112 #else
       
   113   #undef CAMERAAPP_CAE_FIX
       
   114 #endif
       
   115 
       
   116 #endif // CAMERAAPP_CAE_FOR_VIDEO
       
   117 // ---------------------------------------------------------
       
   118 
       
   119 
       
   120 
       
   121 // ---------------------------------------------------------
       
   122 // Performance tests flags
       
   123 // 
       
   124 // CAMERAAPP_PERFORMANCE_CONTROLLER : Enable measuring time for 
       
   125 //                               Camera Controller operations.
       
   126 #ifdef _DEBUG
       
   127   #define CAMERAAPP_PERFORMANCE_CONTROLLER
       
   128 #endif
       
   129 // ---------------------------------------------------------
       
   130 
       
   131 
       
   132 // moved from camproductvariant.h to here.
       
   133 // For simulating errors & delays in CAE callbacks
       
   134 #undef CAMERAAPP_CAE_ERR_SIMULATION
       
   135 
       
   136 // ===========================================================================
       
   137 #endif
       
   138 
       
   139 // end of file