uigraphics/AknIcon/srvsrc/AknIconSrv.rss
changeset 0 05e9090e2422
equal deleted inserted replaced
-1:000000000000 0:05e9090e2422
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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:   Product specific settings, e.g. scalable icon cache configuration.
       
    15 *                This file should be configured by product programs.
       
    16 *
       
    17 */
       
    18 
       
    19 //  INCLUDES
       
    20 #include <uikon.rh>
       
    21 #include "AknIconSrv.rh"
       
    22 
       
    23 //  CONSTANTS (these are configurable)
       
    24 
       
    25 // Max memory used for dynamic icon cache in bytes.
       
    26 // Product programs should configure this according to how much memory
       
    27 // they can spare for this purpose.
       
    28 //
       
    29 #define KMaxDynamicCacheSize (5*1024*1024) // 5 MB
       
    30 				
       
    31 // -----------------------------------------------------------------------------
       
    32 // Defines whether icons are RLE compressed in RAM or not.
       
    33 // Using the compression saves RAM but has an impact to the
       
    34 // performance when loading and rendering the icons.
       
    35 // It is recommended not to compress icons, if there are
       
    36 // no problems with the RAM consumption.
       
    37 //
       
    38 // Possible values:
       
    39 //
       
    40 // 0 = No compression
       
    41 // 1 = RLE compression
       
    42 // 2 = Palette compression
       
    43 //
       
    44 #define KBitmapCompression 1
       
    45 
       
    46 
       
    47 // -----------------------------------------------------------------------------
       
    48 // These constants define color depths for
       
    49 // various image types. AknIcon itself uses the icon
       
    50 // depth constant for svg icons.
       
    51 //
       
    52 // The RAM consumption is 3 bytes per pixel with EColor16M and
       
    53 // 4 bytes per pixel with EColor16MU, whereas it is only 2 bytes per pixel with
       
    54 // EColor64K.
       
    55 //
       
    56 // Possible values:
       
    57 //
       
    58 // 0 = EColor64K
       
    59 // 1 = EColor16M
       
    60 // 2 = EColor16MU
       
    61 
       
    62 #define KPreferredIconDepth 0 // preferred depth for icons
       
    63 #define KPreferredPhotoDepth 1 // preferred depth for photos
       
    64 #define KPreferredVideoDepth 2 // preferred depth for video
       
    65 #define KPreferredOffscreenDepth 0 // preferred depth for offscreen bitmaps
       
    66 
       
    67 // -----------------------------------------------------------------------------
       
    68 // These constants define mask depths for
       
    69 // various image types. AknIcon itself uses the icon
       
    70 // depth constant for svg icons.
       
    71 //
       
    72 // Possible values:
       
    73 //
       
    74 // 0 = EGray2
       
    75 // 1 = EGray256
       
    76 
       
    77 #define KPreferredIconMaskDepth 1
       
    78 #define KPreferredOffscreenMaskDepth 1
       
    79 
       
    80 //  RESOURCE DEFINITIONS 
       
    81 
       
    82 // -----------------------------------------------------------------------------
       
    83 // r_use_bitmap_compression
       
    84 // -----------------------------------------------------------------------------
       
    85 //
       
    86 RESOURCE NUMBER_INT8 r_compress_bitmaps
       
    87     {
       
    88     value = KBitmapCompression;
       
    89     }
       
    90 
       
    91 // -----------------------------------------------------------------------------
       
    92 // r_preferred_icon_depth
       
    93 // -----------------------------------------------------------------------------
       
    94 //
       
    95 RESOURCE NUMBER_INT32 r_preferred_icon_depth
       
    96     {
       
    97     value = KPreferredIconDepth;
       
    98     }
       
    99 
       
   100 // -----------------------------------------------------------------------------
       
   101 // r_preferred_icon_mask_depth
       
   102 // -----------------------------------------------------------------------------
       
   103 //
       
   104 RESOURCE NUMBER_INT32 r_preferred_icon_mask_depth
       
   105     {
       
   106     value = KPreferredIconMaskDepth;
       
   107     }
       
   108 
       
   109 // -----------------------------------------------------------------------------
       
   110 // r_preferred_photo_depth
       
   111 // -----------------------------------------------------------------------------
       
   112 //    
       
   113 RESOURCE NUMBER_INT32 r_preferred_photo_depth
       
   114     {
       
   115     value = KPreferredPhotoDepth;
       
   116     }
       
   117 
       
   118 // -----------------------------------------------------------------------------
       
   119 // r_preferred_video_depth
       
   120 // -----------------------------------------------------------------------------
       
   121 //    
       
   122 RESOURCE NUMBER_INT32 r_preferred_video_depth
       
   123     {
       
   124     value = KPreferredVideoDepth;
       
   125     }
       
   126 
       
   127 // -----------------------------------------------------------------------------
       
   128 // r_preferred_offscreen_depth
       
   129 // -----------------------------------------------------------------------------
       
   130 //    
       
   131 RESOURCE NUMBER_INT32 r_preferred_offscreen_depth
       
   132     {
       
   133     value = KPreferredOffscreenDepth;
       
   134     }
       
   135 
       
   136 // -----------------------------------------------------------------------------
       
   137 // r_preferred_offscreen_mask_depth
       
   138 // -----------------------------------------------------------------------------
       
   139 //    
       
   140 RESOURCE NUMBER_INT32 r_preferred_offscreen_mask_depth
       
   141     {
       
   142     value = KPreferredOffscreenMaskDepth;
       
   143     }
       
   144 
       
   145 // -----------------------------------------------------------------------------
       
   146 // r_dynamic_cache_size
       
   147 // -----------------------------------------------------------------------------
       
   148 //
       
   149 RESOURCE NUMBER_INT32 r_max_dynamic_cache_size
       
   150     {
       
   151     value = KMaxDynamicCacheSize;
       
   152     }
       
   153 
       
   154 // -----------------------------------------------------------------------------
       
   155 // precacher list
       
   156 // -----------------------------------------------------------------------------
       
   157 //
       
   158 
       
   159 // Precacher is configured to accelerate following use cases:
       
   160 // 1. Text message editor startup in portrait
       
   161 // 2. Maps startup in portrait
       
   162 // 3. Wep startup in portait
       
   163 // 4. Rotation of home screen
       
   164 // 5. Text message editor startup in landscape
       
   165 // 6. Maps startup in landscape
       
   166 // 7. Wep startup in landscape
       
   167 RESOURCE ARRAY r_precache_list2
       
   168     {
       
   169     items =
       
   170         {
       
   171 	// Add the items to pre-cache here
       
   172         };
       
   173     }
       
   174 // End of File