app_guiobj_subtitlemenu.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /********************************************************************
  2. ** File Name: app_gui_object_subtitlemenu.h
  3. **
  4. ** File Description: The header file of dvb channel manager gui object
  5. **
  6. ** Copyright(c) 2009 Sunplus Technologies - All Rights Reserved
  7. **
  8. ** History Information Description
  9. ** Date Author Modification
  10. **
  11. ********************************************************************/
  12. #ifndef _APP_GUIOBJ_SUBTITLEMENU_H_
  13. #define _APP_GUIOBJ_SUBTITLEMENU_H_
  14. /********************************************************************
  15. Including Files
  16. ********************************************************************/
  17. #include "app_com_list.h"
  18. #include "app_guiobj_subtitle.h"
  19. #include "al_subtitle.h"
  20. /********************************************************************
  21. Macros
  22. ********************************************************************/
  23. #define SUBTITLE_PAGE_SIZE (5)
  24. #define MAX_TTX_HI_LEN (6)
  25. #define MAX_SUBTITLE_NAME (APP_DATA_LANG_NAME_LENGTH + MAX_TTX_HI_LEN)
  26. /********************************************************************
  27. Type definitions
  28. ********************************************************************/
  29. typedef struct _subtitle_data
  30. {
  31. DVB_COM_LIST stList;
  32. AL_Subtitle_Desc_Info_t SubTitleData[MAX_SUBTITLE_NUM];
  33. HWND h_List_SubTitle;
  34. HWND h_SubTitleType;
  35. HWND h_Scrollbarbg;
  36. HWND h_Scrollbar;
  37. HWND h_HHFlag;
  38. INT16 sdHHIconList[SUBTITLE_PAGE_SIZE+1];
  39. }SUBTITLE_DATA;
  40. typedef enum
  41. {
  42. Select_SUBTITLE_TYPE_NULL=0,
  43. Select_SUBTITLE_TYPE_DVB_SUBTITLE, /**< dvb subtitle type */
  44. Select_SUBTITLE_TYPE_TTX_SUBTITLE /**< teletext subtitle type */
  45. }User_Select_Sub_Type_t;
  46. #ifdef SUPPORT_NORDIG_SUBTITLE
  47. /*store the user select subtitle information for new nording spec.*/
  48. typedef struct
  49. {
  50. AL_Subtitle_Type_t SubType;
  51. al_uint8 Lang[LANG_CODE_SIZE];
  52. al_bool HearingImpaired;
  53. }USER_SELECT_SUB_INFO;
  54. #endif
  55. /**< the subtitle spec describes the subtitle language code for 3 bytes, but the subtitle
  56. menu need display the entire language for orion spec, so the app layer need change
  57. 3 bytes language to the 15 bytes language with iso639 */
  58. typedef struct _subtitle_language_data
  59. {
  60. al_uint8 Language[APP_DATA_LANG_NAME_LENGTH];
  61. }SUBTITLE_LANGUAGE_DATA;
  62. #ifdef SUPPORT_NORDIG_SUBTITLE
  63. void APP_GUIOBJ_SubTitleMenu_SetUserSubInfo(USER_SELECT_SUB_INFO *SubInfo);
  64. USER_SELECT_SUB_INFO APP_GUIOBJ_SubTitleMenu_GetUserSubInfo(void);
  65. #endif
  66. #endif //#ifndef _DVB_GUI_OBJECT_SUBTITLEMENU_H_