ScrMemMgr.h
资源名称:mmi.rar [点击查看]
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:19k
源码类别:
MTK
开发平台:
C/C++
- /*****************************************************************************
- * Copyright Statement:
- * --------------------
- * This software is protected by Copyright and the information contained
- * herein is confidential. The software may not be copied and the information
- * contained herein may not be used or disclosed except with the written
- * permission of MediaTek Inc. (C) 2005
- *
- * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
- * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
- * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
- * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
- * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
- * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
- * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
- * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
- * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
- * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
- *
- * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
- * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
- * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
- * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
- * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
- *
- * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
- * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
- * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
- * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
- * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
- *
- *****************************************************************************/
- /*****************************************************************************
- *
- * Filename:
- * ---------
- * ScrMemMgr.h
- *
- * Project:
- * --------
- * MAUI
- *
- * Description:
- * ------------
- * Register Screen-Based ASM
- *
- * Author:
- * -------
- * -------
- *
- *============================================================================
- * HISTORY
- * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *------------------------------------------------------------------------------
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- *------------------------------------------------------------------------------
- * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *============================================================================
- ****************************************************************************/
- #ifndef _SCR_MEM_MGR_H_
- #define _SCR_MEM_MGR_H_
- /*****************************************************************************
- * Include
- *****************************************************************************/
- #ifndef __MMI_FEATURES__
- #error "Please include MMI_features.h first"
- #endif
- #include "app_mem.h" /* macro for computing pool size */
- /*****************************************************************************
- * Define
- *****************************************************************************/
- /*
- * WARNING!!!
- * After modifying this file, please notify the file owner to review your changes.
- */
- /* NOTE: We use byte to calculate buffer size */
- /* Video Category */ //061506 double buffer
- #ifdef __MMI_VIDEO_PLAYER__
- #include "wgui_categories_multimedia.h"
- #define VIDEO_CATEGORY_POOL_SIZE (BLACK_BUFFER_SIZE+STATUS_ICON_BAR_DOUBLE_BUFFER_SIZE)
- S32 vdo_cat_mem = (VIDEO_CATEGORY_POOL_SIZE);
- #else
- #define VIDEO_CATEGORY_POOL_SIZE (0)
- #endif
- /* Camera */
- #ifdef __MMI_CAMERA__
- #include "lcd_sw_rnd.h"
- #include "gdi_include.h"
- #include "mdi_datatype.h"
- #include "mdi_camera.h"
- #include "MMI_features_camera.h"
- #include "CameraApp.h"
- #define SCRMEM_CAMERA_POOL_SIZE (CAMERA_OSD_BUFFER_SIZE+CAMERA_TILE_RESULT_BUFFER_SIZE+CAMERA_OVERLAY_FRAME_BUFFER_SIZE)
- S32 cam_mem = (SCRMEM_CAMERA_POOL_SIZE);
- #else /* __MMI_CAMERA__ */
- #define SCRMEM_CAMERA_POOL_SIZE (0)
- #endif /* __MMI_CAMERA__ */
- /* Imageviewer */
- #ifdef __MMI_IMAGE_VIEWER__
- #include "lcd_sw_rnd.h"
- #include "gdi_include.h"
- #include "FileManagerGprot.h"
- #include "filemgr.h"
- #include "Imageviewer.h"
- #define SCRMEM_IMAGEVIEWER_POOL_SIZE (MMI_IMGADV_TOTAL_MEMORY_SIZE)
- S32 imageviewer_mem = (SCRMEM_IMAGEVIEWER_POOL_SIZE);
- #else /* __MMI_IMAGE_VIEWER__ */
- #define SCRMEM_CAMERA_POOL_SIZE (0)
- #endif /* __MMI_IMAGE_VIEWER__ */
- /* Video Player */
- #ifdef __MMI_VIDEO_PLAYER__
- #include "lcd_sw_rnd.h"
- #include "gdi_include.h"
- #include "VdoPlyGProt.h"
- #define SCRMEM_VDOPLY_POOL_SIZE (VDOPLY_OSD_BUFFER_SIZE)
- S32 vdoply_mem = (SCRMEM_VDOPLY_POOL_SIZE);
- #else /* __MMI_VIDEO_PLAYER__ */
- #define SCRMEM_VDOPLY_POOL_SIZE (0)
- #endif /* __MMI_VIDEO_PLAYER__ */
- /* Video Recorder */
- #ifdef __MMI_VIDEO_RECORDER__
- #include "lcd_sw_rnd.h"
- #include "gdi_include.h"
- #include "VdoRecGProt.h"
- #define SCRMEM_VDOREC_POOL_SIZE (VDOREC_OSD_BUFFER_SIZE+VDOREC_OVERLAY_FRAME_BUFFER_SIZE)
- S32 vdorec_mem = (SCRMEM_VDOREC_POOL_SIZE);
- #else /* __MMI_VIDEO_RECORDER__ */
- #define SCRMEM_VDOREC_POOL_SIZE (0)
- #endif /* __MMI_VIDEO_RECORDER__ */
- /* AUDPLY LYRICS */
- #ifdef __MMI_AUDIO_PLAYER_LYRIC_SCREEN_BASED_ASM__
- #include "AudioPlayerDef.h"
- #define SCRMEM_LYRICS_POOL_SIZE (AUDPLY_LYRIC_STR_BUFF_MAX_SIZE)
- S32 lyrics_mem = (SCRMEM_LYRICS_POOL_SIZE);
- #else /* __MMI_AUDIO_PLAYER_LYRIC_SCREEN_BASED_ASM__ */
- #define SCRMEM_LYRICS_POOL_SIZE (0)
- #endif /* __MMI_AUDIO_PLAYER_LYRIC_SCREEN_BASED_ASM__ */
- /* AUDPLY Progress Bar */
- #ifdef __MMI_AUDIO_PLAYER__
- #include "AudioPlayerDef.h"
- #define SCRMEM_AUDPLY_PROGRESS_POOL_SIZE (BUILD_CACHE_FILE_BUF_SIZE + BUILD_CACHE_PROC_BUF_SIZE)
- S32 audply_progrss_mem = (SCRMEM_AUDPLY_PROGRESS_POOL_SIZE);
- #else /* __MMI_AUDIO_PLAYER__ */
- #define SCRMEM_AUDPLY_PROGRESS_POOL_SIZE (0)
- #endif /* __MMI_AUDIO_PLAYER__ */
- /* File Manager UI */
- #if defined(__MMI_FILE_MANAGER__) && !defined(__MMI_SLIM_FILE_MANAGER__)
- #include "FileManagerGProt.h"
- #define SCRMEM_FMGR_POOL_SIZE (FMGR_THUMB_IMAGE_BUFFER_SIZE)
- S32 fmgr_mem = (SCRMEM_FMGR_POOL_SIZE);
- #else /* defined(__MMI_FILE_MANAGER__) && !defined(__MMI_SLIM_FILE_MANAGER__) */
- #define SCRMEM_FMGR_POOL_SIZE (0)
- #endif /* defined(__MMI_FILE_MANAGER__) && !defined(__MMI_SLIM_FILE_MANAGER__) */
- /* Touch Ring Composer */
- #ifdef __MMI_TOUCH_RING_COMPOSER__
- #include "lcd_sw_rnd.h"
- #include "gdi_include.h"
- #ifdef __MMI_ALPHA_LAYER_SUPPORT__
- #ifdef __MMI_MAINLCD_176X220__
- #define SCRMEM_TOUCH_RING_COMP_POOL_SIZE (41*23*__MMI_MAIN_BASE_LAYER_FORMAT__)
- #elif defined (__MMI_MAINLCD_240X320__)
- #define SCRMEM_TOUCH_RING_COMP_POOL_SIZE (63*31*__MMI_MAIN_BASE_LAYER_FORMAT__)
- #else
- #define SCRMEM_TOUCH_RING_COMP_POOL_SIZE (41*23*__MMI_MAIN_BASE_LAYER_FORMAT__)
- #endif /* __MMI_MAINLCD_176X220 __*/
- #else
- #ifdef __MMI_MAINLCD_176X220__
- #define SCRMEM_TOUCH_RING_COMP_POOL_SIZE ((41*23*GDI_MAINLCD_BIT_PER_PIXEL)>>3)
- #elif defined (__MMI_MAINLCD_240X320__)
- #define SCRMEM_TOUCH_RING_COMP_POOL_SIZE ((63*31*GDI_MAINLCD_BIT_PER_PIXEL)>>3)
- #else
- #define SCRMEM_TOUCH_RING_COMP_POOL_SIZE ((41*23*GDI_MAINLCD_BIT_PER_PIXEL)>>3)
- #endif /* __MMI_MAINLCD_176X220 __*/
- #endif /*__MMI_ALPHA_LAYER_SUPPORT__ */
- S32 touch_ring_comp_mem = (SCRMEM_TOUCH_RING_COMP_POOL_SIZE);
- #else /* __MMI_TOUCH_RING_COMPOSER__ */
- #define SCRMEM_TOUCH_RING_COMP_POOL_SIZE (0)
- #endif /* __MMI_TOUCH_RING_COMPOSER__ */
- /* Handwriting Stroke Layer */
- #if defined(__MMI_TOUCH_SCREEN__) || defined(__MMI_HANDWRITING_PAD__)
- #include "lcd_sw_rnd.h"
- #include "gdi_include.h"
- #define SCRMEM_HANDWRITING_STROKE_LAYER_POOL_SIZE ((GDI_LCD_WIDTH *GDI_LCD_HEIGHT * (GDI_MAINLCD_BIT_PER_PIXEL>>3) + 3) & (~3))
- S32 handwriting_stroke_layer_mem = (SCRMEM_HANDWRITING_STROKE_LAYER_POOL_SIZE);
- #else /* defined(__MMI_TOUCH_SCREEN__) || defined(__MMI_HANDWRITING_PAD__) */
- #define SCRMEM_HANDWRITING_STROKE_LAYER_POOL_SIZE (0)
- #endif /* defined(__MMI_TOUCH_SCREEN__) || defined(__MMI_HANDWRITING_PAD__) */
- /* Barcode Reader */
- #ifdef __MMI_BARCODEREADER__
- #include "lcd_sw_rnd.h"
- #include "gdi_include.h"
- #include "BarcodeReaderGprot.h"
- #define SCRMEM_BARCODEREADER_POOL_SIZE (BR_SCR_TOTAL_SIZE)
- S32 barcodereader_mem = (SCRMEM_BARCODEREADER_POOL_SIZE);
- #else /* __MMI_BARCODEREADER__ */
- #define SCRMEM_BARCODEREADER_POOL_SIZE (0)
- #endif /* __MMI_BARCODEREADER__ */
- /* 062206 EMS category Start */
- /* EMS category */
- #ifdef __MMI_MESSAGES_EMS__
- #include "wgui_categories_ems.h"
- #define EMS_CATEGORY_POOL_SIZE (CAT_144_DATA_FILE_SIZE)
- S32 ems_category_mem = (EMS_CATEGORY_POOL_SIZE);
- #else
- #define EMS_CATEGORY_POOL_SIZE (0)
- #endif
- /* 062206 EMS buffer End */
- #ifdef __MMI_MESSAGES_CHAT__
- #include "wgui_categories_inputs.h"
- #define SCRMEM_CHATMSG_BUFFER_SIZE CHAT_MESSAGE_BUFFER
- S32 chat_msg_buffer_mem = SCRMEM_CHATMSG_BUFFER_SIZE;
- #else /* __MMI_MESSAGES_CHAT__ */
- #define SCRMEM_CHATMSG_BUFFER_SIZE (0)
- #endif /* __MMI_MESSAGES_CHAT__ */
- /* M3D */
- #if defined(M3D_MMI_SUPPORT)
- #include "gdi_include.h"
- #define SCRMEM_M3D_POOL_SIZE (400*1024)
- S32 m3d_mem = (SCRMEM_M3D_POOL_SIZE);
- #else /* defined(__MMI_TOUCH_SCREEN__) || defined(__MMI_HANDWRITING_PAD__) */
- #define SCRMEM_M3D_POOL_SIZE (0)
- #endif /* defined(__MMI_TOUCH_SCREEN__) || defined(__MMI_HANDWRITING_PAD__) */
- /* NEW APPLICATIONS: add here! */
- /* Calendar */
- #ifdef __MMI_UI_INTEGRATED_CALENDAR_SUPPORT__
- #include "wgui_calendar.h"
- #define CALENDAR_POOL_SIZE (CALENDAR_CACHE_CELL_SIZE+CALENDAR_CACHE_POPUP_SIZE)
- S32 calendar_mem = CALENDAR_POOL_SIZE;
- #else /* __MMI_UI_INTEGRATED_CALENDAR_SUPPORT__ */
- #define CALENDAR_POOL_SIZE (0)
- #endif /* __MMI_UI_INTEGRATED_CALENDAR_SUPPORT__ */
- /*Birthday Reminder*/
- #ifdef __MMI_BIRTHDAY_REMINDER__
- #include "nvram_common_defs.h"
- #define BIRTHDAY_REMINDER_POOL_SIZE (NVRAM_EF_PHB_BIRTHDAY_SIZE * NVRAM_EF_PHB_BIRTHDAY_TOTAL)
- #else /*__MMI_BIRTHDAY_REMINDER__*/
- #define BIRTHDAY_REMINDER_POOL_SIZE (0)
- #endif /*__MMI_BIRTHDAY_REMINDER__*/
- /* Unified Composer */
- #ifdef __MMI_UNIFIED_COMPOSER__
- #include "UnifiedMessageGProt.h"
- #include "UnifiedComposerGProt.h"
- #define SCRMEM_UC_POOL_SIZE MMI_UC_UTF8_TEXT_BUFFER_SIZE
- S32 uc_mem = (SCRMEM_UC_POOL_SIZE);
- #else /* __MMI_UNIFIED_COMPOSER__ */
- #define SCRMEM_UC_POOL_SIZE (0)
- #endif /* __MMI_UNIFIED_COMPOSER__ */
- /* PS_EMS */
- #if defined(__EMS_REL5__)
- #include "customer_ps_inc.h"
- #define EMS_BUFFER_SIZE (MMI_SMS_MAX_MSG_SEG * 140 * EMS_RATIO_OF_OBJ_PDU_BUFF) /* EMS_ONE_MSG_OCTET = 140 */
- S32 ems_buffer_mem = EMS_BUFFER_SIZE;
- #else /* __EMS_REL5__ */
- #define EMS_BUFFER_SIZE (0)
- #endif /* __EMS_REL5__ */
- /*
- * Define MMI_FRM_SCRMEM_POOL_SIZE
- */
- #define SCRMEM_POOL_MAX (0)
- /* Video Category *///061506 double buffer
- #if (VIDEO_CATEGORY_POOL_SIZE > SCRMEM_POOL_MAX)
- #undef SCRMEM_POOL_MAX
- #define SCRMEM_POOL_MAX VIDEO_CATEGORY_POOL_SIZE
- #endif /* (VIDEO_CATEGORY_POOL_SIZE > SCRMEM_POOL_MAX) */
- /* Camera */
- #if (SCRMEM_CAMERA_POOL_SIZE > SCRMEM_POOL_MAX)
- #undef SCRMEM_POOL_MAX
- #define SCRMEM_POOL_MAX SCRMEM_CAMERA_POOL_SIZE
- #endif /* (SCRMEM_CAMERA_POOL_SIZE > SCRMEM_POOL_MAX) */
- /* Imageviewer */
- #if (SCRMEM_IMAGEVIEWER_POOL_SIZE > SCRMEM_POOL_MAX)
- #undef SCRMEM_POOL_MAX
- #define SCRMEM_POOL_MAX SCRMEM_IMAGEVIEWER_POOL_SIZE
- #endif /* (SCRMEM_IMAGEVIEWER_POOL_SIZE > SCRMEM_POOL_MAX) */
- /* Video Player */
- #if (SCRMEM_VDOPLY_POOL_SIZE > SCRMEM_POOL_MAX)
- #undef SCRMEM_POOL_MAX
- #define SCRMEM_POOL_MAX SCRMEM_VDOPLY_POOL_SIZE
- #endif /* (SCRMEM_VDOPLY_POOL_SIZE > SCRMEM_POOL_MAX) */
- /* Video Recorder */
- #if (SCRMEM_VDOREC_POOL_SIZE > SCRMEM_POOL_MAX)
- #undef SCRMEM_POOL_MAX
- #define SCRMEM_POOL_MAX SCRMEM_VDOREC_POOL_SIZE
- #endif /* (SCRMEM_VDOREC_POOL_SIZE > SCRMEM_POOL_MAX) */
- /* Audply Lyrics */
- #if (SCRMEM_LYRICS_POOL_SIZE > SCRMEM_POOL_MAX)
- #undef SCRMEM_POOL_MAX
- #define SCRMEM_POOL_MAX SCRMEM_LYRICS_POOL_SIZE
- #endif /* (SCRMEM_LYRICS_POOL_SIZE > SCRMEM_POOL_MAX) */
- /* Audply Progress Bar */
- #if (SCRMEM_AUDPLY_PROGRESS_POOL_SIZE > SCRMEM_POOL_MAX)
- #undef SCRMEM_POOL_MAX
- #define SCRMEM_POOL_MAX SCRMEM_AUDPLY_PROGRESS_POOL_SIZE
- #endif /* (SCRMEM_AUDPLY_PROGRESS_POOL_SIZE > SCRMEM_POOL_MAX) */
- /* File Manager UI */
- #if (SCRMEM_FMGR_POOL_SIZE > SCRMEM_POOL_MAX)
- #undef SCRMEM_POOL_MAX
- #define SCRMEM_POOL_MAX SCRMEM_FMGR_POOL_SIZE
- #endif /* (SCRMEM_FMGR_POOL_SIZE > SCRMEM_POOL_MAX) */
- /* Touch Ring Composer */
- #if ( SCRMEM_TOUCH_RING_COMP_POOL_SIZE > SCRMEM_POOL_MAX )
- #undef SCRMEM_POOL_MAX
- #define SCRMEM_POOL_MAX SCRMEM_TOUCH_RING_COMP_POOL_SIZE
- #endif /* ( SCRMEM_TOUCH_RING_COMP_POOL_SIZE > SCRMEM_POOL_MAX ) */
- /* Handwriting Stroke Layer */
- #if ( SCRMEM_HANDWRITING_STROKE_LAYER_POOL_SIZE > SCRMEM_POOL_MAX )
- #undef SCRMEM_POOL_MAX
- #define SCRMEM_POOL_MAX SCRMEM_HANDWRITING_STROKE_LAYER_POOL_SIZE
- #endif /* ( SCRMEM_HANDWRITING_STROKE_LAYER_POOL_SIZE > SCRMEM_POOL_MAX ) */
- /* Barcode Reader*/
- #if ( SCRMEM_BARCODEREADER_POOL_SIZE > SCRMEM_POOL_MAX )
- #undef SCRMEM_POOL_MAX
- #define SCRMEM_POOL_MAX SCRMEM_BARCODEREADER_POOL_SIZE
- #endif /* ( SCRMEM_BARCODEREADER_POOL_SIZE > SCRMEM_POOL_MAX ) */
- /* 062206 EMS category Start */
- /* EMS category */
- #if (EMS_CATEGORY_POOL_SIZE > SCRMEM_POOL_MAX)
- #undef SCRMEM_POOL_MAX
- #define SCRMEM_POOL_MAX EMS_CATEGORY_POOL_SIZE
- #endif /* ( EMS_CATEGORY_POOL_SIZE > SCRMEM_POOL_MAX ) */
- /* 062206 EMS buffer End */
- #if (SCRMEM_CHATMSG_BUFFER_SIZE > SCRMEM_POOL_MAX )
- #undef SCRMEM_POOL_MAX
- #define SCRMEM_POOL_MAX SCRMEM_CHATMSG_BUFFER_SIZE
- #endif /* (SCRMEM_CHATMSG_BUFFER_SIZE > SCRMEM_POOL_MAX ) */
- /* M3D */
- #if ( (SCRMEM_M3D_POOL_SIZE + ((GDI_LCD_WIDTH*GDI_LCD_HEIGHT*GDI_MAINLCD_BIT_PER_PIXEL)>>3)) > SCRMEM_POOL_MAX )
- #undef SCRMEM_POOL_MAX
- #define SCRMEM_POOL_MAX (SCRMEM_M3D_POOL_SIZE + ((GDI_LCD_WIDTH*GDI_LCD_HEIGHT*GDI_MAINLCD_BIT_PER_PIXEL)>>3))
- #endif /* ( SCRMEM_HANDWRITING_STROKE_LAYER_POOL_SIZE > SCRMEM_POOL_MAX ) */
- /* NEW APPLICATIONS: add here! */
- /* Calendar */
- #if ( CALENDAR_POOL_SIZE > SCRMEM_POOL_MAX )
- #undef SCRMEM_POOL_MAX
- #define SCRMEM_POOL_MAX CALENDAR_POOL_SIZE
- #endif /* ( CALENDAR_POOL_SIZE > SCRMEM_POOL_MAX ) */
- /*BIRTHDAY_REMINDER*/
- #if ( BIRTHDAY_REMINDER_POOL_SIZE > SCRMEM_POOL_MAX )
- #undef SCRMEM_POOL_MAX
- #define SCRMEM_POOL_MAX BIRTHDAY_REMINDER_POOL_SIZE
- #endif /* ( CALENDAR_POOL_SIZE > SCRMEM_POOL_MAX ) */
- /* Unified Composer */
- #if ( SCRMEM_UC_POOL_SIZE > SCRMEM_POOL_MAX )
- #undef SCRMEM_POOL_MAX
- #define SCRMEM_POOL_MAX SCRMEM_UC_POOL_SIZE
- #endif /* ( SCRMEM_UC_POOL_SIZE > SCRMEM_POOL_MAX ) */
- /* PS_EMS */
- #if ( EMS_BUFFER_SIZE > SCRMEM_POOL_MAX )
- #undef SCRMEM_POOL_MAX
- #define SCRMEM_POOL_MAX EMS_BUFFER_SIZE
- #endif /* ( EMS_BUFFER_SIZE > SCRMEM_POOL_MAX ) */
- /* Round to multiple of 4 */
- #define SCRMEM_ALIGN_TO_4(_x) (((_x) + 3) & ~3)
- /* Finally, compute MMI_FRM_SCRMEM_POOL_SIZE */
- #if (APPLIB_MEM_SCREEN_MIN_POOL_SIZE > SCRMEM_POOL_MAX)
- /* All unregistered screen can use memory up to APPLIB_MEM_SCREEN_MIN_POOL_SIZE
- Add extra size for overheads of 3 blocks per screen */
- #define MMI_FRM_SCRMEM_POOL_SIZE (APPLIB_MEM_SCREEN_MIN_POOL_SIZE + APPLIB_MEM_GET_POOL_EXTRA_SIZE(3))
- #else /* (APPLIB_MEM_SCREEN_MIN_POOL_SIZE > SCRMEM_POOL_MAX) */
- /* Image viewer may allocate 50 image cache entries */
- #ifdef LOW_COST_SUPPORT
- #define MMI_FRM_SCRMEM_POOL_SIZE (SCRMEM_ALIGN_TO_4(SCRMEM_POOL_MAX) + APPLIB_MEM_GET_POOL_EXTRA_SIZE(10))
- #else
- #define MMI_FRM_SCRMEM_POOL_SIZE (SCRMEM_ALIGN_TO_4(SCRMEM_POOL_MAX) + APPLIB_MEM_GET_POOL_EXTRA_SIZE(50))
- #endif
- #endif /* (APPLIB_MEM_SCREEN_MIN_POOL_SIZE > SCRMEM_POOL_MAX) */
- /*****************************************************************************
- * Typedef
- *****************************************************************************/
- /*****************************************************************************
- * Extern Global Variable
- *****************************************************************************/
- /*****************************************************************************
- * Extern Global Function
- *****************************************************************************/
- #endif /* _SCR_MEM_MGR_H_ */