wgui_categories_multimedia.h
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:11k
源码类别:

MTK

开发平台:

C/C++

  1. /*****************************************************************************
  2. *  Copyright Statement:
  3. *  --------------------
  4. *  This software is protected by Copyright and the information contained
  5. *  herein is confidential. The software may not be copied and the information
  6. *  contained herein may not be used or disclosed except with the written
  7. *  permission of MediaTek Inc. (C) 2005
  8. *
  9. *  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
  10. *  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
  11. *  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
  12. *  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
  13. *  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
  14. *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
  15. *  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
  16. *  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
  17. *  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
  18. *  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
  19. *  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
  20. *  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
  21. *
  22. *  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
  23. *  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
  24. *  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
  25. *  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
  26. *  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. 
  27. *
  28. *  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
  29. *  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
  30. *  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
  31. *  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
  32. *  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
  33. *
  34. *****************************************************************************/
  35. /*****************************************************************************
  36. *
  37.  * Filename:
  38.  * ---------
  39.  *  wgui_categories_multimedia.h
  40.  * Project:
  41.  * --------
  42.  *  MAUI
  43.  *
  44.  * Description:
  45.  * ------------
  46.  *  MultiMedia related categories.
  47.  *
  48.  *  [Category221]       Empty Screen
  49.  *  [Category222]       View Image Screen
  50.  *  [Category223]       Play Audio Screen
  51.  *  [Category224]       Play Video Full Screen
  52.  *  [Category225]       Play Video Standard Screen (With title & softkey)
  53.  *
  54.  *  [Category331][SUB]  Emptry Sublcd Screen
  55.  *  [Category332][SUB]  Draw a image at center of Sublcd Screen
  56.  *  [Category333][SUB]  Play Audio Sublcd Screen
  57.  *
  58.  * Author:
  59.  * -------
  60.  * -------
  61.  *
  62.  *============================================================================
  63.  *             HISTORY
  64.   * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! 
  65.  *------------------------------------------------------------------------------
  66.  * removed!
  67.  *
  68.  * removed!
  69.  * removed!
  70.  * removed!
  71.  *
  72.  * removed!
  73.  * removed!
  74.  * removed!
  75.  *
  76.  * removed!
  77.  * removed!
  78.  * removed!
  79.  *
  80.  * removed!
  81.  * removed!
  82.  * removed!
  83.  *
  84.  * removed!
  85.  * removed!
  86.  * removed!
  87.  *
  88.  * removed!
  89.  * removed!
  90.  * removed!
  91.  *
  92.  * removed!
  93.  * removed!
  94.  * removed!
  95.  *
  96.  * removed!
  97.  * removed!
  98.  * removed!
  99.  *
  100.  * removed!
  101.  * removed!
  102.  * removed!
  103.  *
  104.  * removed!
  105.  * removed!
  106.  * removed!
  107.  *
  108.  *------------------------------------------------------------------------------
  109.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  110.  *============================================================================
  111.  ****************************************************************************/
  112. #ifndef __WGUI_CATEGORIES_MULTIMEDIA_H__
  113. #define __WGUI_CATEGORIES_MULTIMEDIA_H__
  114. /***************************************************************************** 
  115. * Define
  116. *****************************************************************************/
  117. #ifdef __MMI_VIDEO_PLAYER__//061506 double buffer
  118. #include "lcd_sw_rnd.h"
  119. #include "gdi_lcd_config.h"
  120. #include "gdi_include.h"
  121. #define BLACK_BUFFER_SIZE   ((GDI_LCD_WIDTH*GDI_LCD_HEIGHT*GDI_MAINLCD_BIT_PER_PIXEL)>>3)
  122. #else
  123. #define BLACK_BUFFER_SIZE   (0)
  124. #endif
  125. #include "Gui_Setting.h"
  126. #include "wgui.h"
  127. #define STATUS_ICON_BAR_DOUBLE_BUFFER_SIZE  (((MAIN_LCD_DEVICE_WIDTH*MMI_STATUS_BAR_HEIGHT*GDI_MAINLCD_BIT_PER_PIXEL)>>3)*2)
  128. typedef enum _cat226_screen_layout_enum
  129. {
  130.     VERTICAL_NORMAL,
  131.     VERTICAL_FULLSCREEN,
  132.     HORIZONTAL_NORMAL,
  133.     HORIZONTAL_FULLSCREEN
  134. } cat226_screen_layout_enum;
  135. /***************************************************************************** 
  136. * Extern Global Function
  137. *****************************************************************************/
  138. /* Empty screen category - With title bar and softkey */
  139. extern void ShowCategory221Screen(
  140.                 U16 title,
  141.                 U16 title_icon,
  142.                 U16 left_softkey,
  143.                 U16 left_softkey_icon,
  144.                 U16 right_softkey,
  145.                 U16 right_softkey_icon,
  146.                 gdi_color background_color,
  147.                 FuncPtr redraw_content_callback);
  148. /* View image category */
  149. gdi_handle cat222_get_image_handle(void);//070706
  150. extern void ShowCategory222Screen(U16 title,
  151.                                   U16 title_icon,
  152.                                   U16 left_softkey,
  153.                                   U16 left_softkey_icon,
  154.                                   U16 right_softkey,
  155.                                   U16 right_softkey_icon,
  156.                                   gdi_color background_color,
  157.                                   S8 *button_string,
  158.                                   S8 *file_name_ptr, BOOL is_short, void (*decode_result_callback) (S32));
  159. /* Play audio category */
  160. extern void ShowCategory223Screen(
  161.                 U16 title,
  162.                 U16 title_icon,
  163.                 U16 left_softkey,
  164.                 U16 left_softkey_icon,
  165.                 U16 right_softkey,
  166.                 U16 right_softkey_icon,
  167.                 U16 message_icon,
  168.                 U16 flag,
  169.                 U32 duration,
  170.                 U8 *history_buffer);
  171. /* play fullscreen video */
  172. extern void ShowCategory224Screen(U16 video_id,
  173.                                   PS8 video_filename,
  174.                                   U16 repeat_count,
  175.                                   BOOL is_visaul_update,
  176.                                   BOOL is_play_audio,
  177.                                   BOOL is_lcd_no_sleep,
  178.                                   GDI_COLOR bg_color, void (*play_finish_callback) (S32), void *gui_buffer);
  179. extern void StopCategory224Video(void);
  180. /* play video on standard screen (title & softkey) */
  181. extern void ShowCategory225Screen(U16 title_str,
  182.                                   U16 title_icon,
  183.                                   U16 lsk_str,
  184.                                   U16 lsk_icon,
  185.                                   U16 rsk_str,
  186.                                   U16 rsk_icon,
  187.                                   U16 video_id,
  188.                                   PS8 video_filename,
  189.                                   U16 repeat_count,
  190.                                   BOOL is_visual_update,
  191.                                   BOOL is_play_audio,
  192.                                   BOOL is_lcd_no_sleep,
  193.                                   GDI_COLOR bg_color, void (*play_finish_callback) (S32), void *gui_buffer);
  194. /* [Category 226] */
  195. extern void ShowCategory226Screen(U16 left_softkey, U16 left_softkey_icon, U16 right_softkey, U16 right_softkey_icon,
  196.                                   U16 bg_image_id, UI_string_type str_1, UI_string_type str_2,
  197.                                   U16 left_arrow_up, U16 left_arrow_down, FuncPtr event_callback1,
  198.                                   U16 right_arrow_up, U16 right_arrow_down, FuncPtr event_callback2,
  199.                                   U16 icon1_up, U16 icon1_down, FuncPtr event_callback3,
  200.                                   U16 icon2_up, U16 icon2_down, FuncPtr event_callback4,
  201.                                   U16 icon3_up, U16 icon3_down, FuncPtr event_callback5,
  202.                                   U16 icon4_up, U16 icon4_down, FuncPtr event_callback6,
  203.                                   GDI_HANDLE *area1_layer, void (*area1_call_back) (dm_coordinates *coordinate),
  204.                                   GDI_HANDLE *area2_layer, void (*area2_call_back) (dm_coordinates *coordinate),
  205.                                   cat226_screen_layout_enum layout);
  206. extern void ShowCategory227Screen(U8 *title_string,
  207.                                   U16 title_icon,
  208.                                   U16 left_softkey,
  209.                                   U16 left_softkey_icon,
  210.                                   U16 right_softkey,
  211.                                   U16 right_softkey_icon, void (*display_call_back) (dm_coordinates *coordinate));
  212. #ifdef __MMI_TOUCH_SCREEN__
  213. #include "wgui_touch_screen.h"
  214. extern void Cat226RegisterPenHandlers(U16 ctrl_area_idx, mmi_pen_handler pen_hdlr, mmi_pen_event_type_enum event_type);
  215. #endif /* __MMI_TOUCH_SCREEN__ */ 
  216. /* Empty Sublcd category */
  217. extern void ShowCategory331Screen(void);
  218. /* Draw a image at center Sublcd category */
  219. extern void ShowCategory332Screen(MMI_ID_TYPE image_id);
  220. /* Play audio Sublcd category */
  221. extern void ShowCategory333Screen(void);
  222. #ifdef __MMI_VIDEO_PLAYER__
  223. extern void ResumeCategory224Video(void);
  224. extern void PauseCategory224Video(void);
  225. #endif /* __MMI_VIDEO_PLAYER__ */ 
  226. #ifdef __MMI_SWFLASH__
  227. extern void SetSWFlashPlayerLayer(GDI_HANDLE layer_handle);
  228. extern void CatSWFlashPlayEnd(void);
  229. extern void ShowCategory229Screen(
  230.             U8 *title_str,
  231.             U16 title_icon,
  232.             U16 lsk_str,
  233.             U16 lsk_icon,
  234.             U16 rsk_str,
  235.             U16 rsk_icon,
  236.             U16 resource_id,
  237.             PS8 resource_filename,
  238.             U16 repeat_count,
  239.             MMI_BOOL is_play_audio,
  240.             MMI_BOOL is_vibrate_on,
  241.             MMI_BOOL is_interaction_on,
  242.             MMI_BOOL is_lcd_no_sleep,
  243.             MMI_BOOL is_full_screen,
  244.             GDI_COLOR bg_color,
  245.             void (*play_finish_callback) (S32 ret),
  246.             void *gui_buffer);
  247. extern void ExitCategorySWFlashScreen(void);
  248. extern S32 GetCat34MediaType(void);
  249. extern void SetCat34MediaType(S32 media_type);
  250. extern void ShowCategory34Screen(
  251.         U16 left_softkey,
  252.         U16 left_softkey_icon,
  253.         U16 right_softkey,
  254.         U16 right_softkey_icon,
  255.         U16 bg_media_id,
  256.         S8 *bg_media_filename,
  257.         U8 *history_buffer);
  258. extern void HandleCat34MediaPlayFailed(void);
  259. #endif
  260. #endif /* __WGUI_CATEGORIES_MULTIMEDIA_H__ */