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

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.  *  resource_video_skins.h
  40.  *
  41.  * Project:
  42.  * --------
  43.  *  MAUI
  44.  *
  45.  * Description:
  46.  * ------------
  47.  *  Video App customization file.
  48.  *
  49.  * Author:
  50.  * -------
  51.  * -------
  52.  *                      
  53.  *============================================================================
  54.  *             HISTORY
  55.  * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  56.  *------------------------------------------------------------------------------
  57.  * removed!
  58.  *
  59.  * removed!
  60.  * removed!
  61.  * removed!
  62.  *
  63.  * removed!
  64.  * removed!
  65.  * removed!
  66.  *
  67.  * removed!
  68.  * removed!
  69.  * removed!
  70.  *
  71.  *------------------------------------------------------------------------------
  72.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  73.  *============================================================================
  74.  ****************************************************************************/
  75. #ifndef _VIDEO_SKIN_H_
  76. #define _VIDEO_SKIN_H_
  77. #include "MMI_features.h"
  78. #if defined(__MMI_VIDEO_PLAYER__) || defined(__MMI_VIDEO_RECORDER__)
  79. /***************************************************************************** 
  80. * Define
  81. *****************************************************************************/
  82. typedef enum {
  83. VIDEO_TEXT_STYLE_NORMAL,
  84. VIDEO_TEXT_STYLE_BORDER,
  85. VIDEO_TEXT_STYLE_SHADOW
  86. } mmi_video_text_style;
  87. typedef enum {
  88. VIDEO_ALIGN_LEFT,
  89. VIDEO_ALIGN_RIGHT,
  90. VIDEO_ALIGN_TOP,
  91. VIDEO_ALIGN_BOTTOM,
  92. VIDEO_ALIGN_CENTER
  93. } mmi_video_align_style;
  94. /***************************************************************************** 
  95. * Struct
  96. *****************************************************************************/
  97. typedef struct
  98. {
  99. BOOL is_show;
  100. S32  offset_x;
  101. S32  offset_y;
  102. } video_icon_struct;
  103. typedef struct
  104. {
  105. S32 offset_x;
  106. S32 offset_y;
  107. S32 width;
  108. S32 height;
  109. } video_rect_struct;
  110. typedef struct
  111. {
  112. S32 offset_x;
  113. S32 offset_y;
  114. } video_pos_struct;
  115. typedef struct {
  116. U8 r;
  117. U8 g;
  118. U8 b;
  119. U8 style_r;
  120. U8 style_g;
  121. U8 style_b;
  122. U16 style;
  123. } video_style_text_struct;
  124. typedef struct {
  125. BOOL is_show;
  126. S32  offset_x;
  127. S32  offset_y;
  128. video_style_text_struct style_text;
  129. } video_osd_storage_struct;
  130. typedef struct {
  131. U16  h_align;
  132. U16  v_align;
  133. BOOL is_draw_app_name;
  134. BOOL is_draw_filename;
  135. video_rect_struct  rect;
  136. video_style_text_struct style_text;
  137. } video_osd_title_struct;
  138. typedef struct {
  139. video_rect_struct rect;
  140. } video_osd_play_wnd_struct;
  141. typedef struct {
  142. video_rect_struct region_0;
  143. video_rect_struct region_1;
  144. } video_osd_bg_struct;
  145. typedef struct {
  146. video_rect_struct   rect;
  147. video_pos_struct    bg;
  148. BOOL                is_draw_progress;
  149. video_pos_struct    progress;
  150. } video_osd_loading_struct;
  151. typedef struct {
  152. video_pos_struct speed;
  153. video_pos_struct speed_inc;
  154. video_pos_struct speed_dec;
  155. video_pos_struct volume;
  156. video_pos_struct volume_inc;
  157. video_pos_struct volume_dec;
  158. video_pos_struct timer;
  159. video_pos_struct progress_fill;
  160. video_pos_struct progress_empty;
  161. video_pos_struct progress_inc;
  162. video_pos_struct progress_dec;
  163. video_pos_struct snapshot;
  164. video_pos_struct fullscreen;
  165. } video_osd_vodply_panel_struct;
  166. typedef struct {
  167. video_pos_struct bg;
  168. video_pos_struct speed;
  169. video_pos_struct speed_inc;
  170. video_pos_struct speed_dec;
  171. video_pos_struct volume;
  172. video_pos_struct volume_inc;
  173. video_pos_struct volume_dec;
  174. video_pos_struct timer;
  175. video_pos_struct progress_fill;
  176. video_pos_struct progress_empty;
  177. video_pos_struct progress_inc;
  178. video_pos_struct progress_dec;
  179. } video_osd_vodply_full_panel_struct;
  180. typedef struct {
  181. video_pos_struct ev;
  182. video_pos_struct ev_inc;
  183. video_pos_struct ev_dec;
  184. video_pos_struct zoom;
  185. video_pos_struct zoom_inc;
  186. video_pos_struct zoom_dec;
  187. video_pos_struct timer;
  188. video_pos_struct state;
  189. } video_osd_vodrec_panel_struct;
  190. typedef struct {
  191. BOOL is_lsk_icon;
  192. BOOL is_rsk_icon;
  193. BOOL is_ck_icon;
  194. video_pos_struct icon_lsk_pos;
  195. video_pos_struct icon_rsk_pos;
  196. video_pos_struct icon_ck_pos;
  197. video_rect_struct rect;
  198.   video_style_text_struct lsk_text;
  199. video_style_text_struct rsk_text;
  200. } video_osd_softkey_struct;
  201. typedef struct {
  202. BOOL is_lsk_icon;
  203. BOOL is_rsk_icon;
  204. BOOL is_ck_icon;
  205. video_pos_struct icon_lsk_pos;
  206. video_pos_struct icon_rsk_pos;
  207. video_pos_struct icon_ck_pos;
  208.   video_style_text_struct lsk_text;
  209. video_style_text_struct rsk_text;
  210. } video_osd_full_softkey_struct;
  211. typedef struct {
  212. BOOL is_show;
  213. video_rect_struct rect;
  214.   video_style_text_struct style_text;
  215. } video_osd_hint_struct;
  216. typedef struct {
  217. BOOL is_show;
  218. video_rect_struct  rect;
  219. video_icon_struct night;
  220. video_icon_struct led_highlight;
  221. video_icon_struct record_aud;
  222. video_icon_struct size_limit;
  223. video_icon_struct  time_limit;
  224. } video_osd_vdorec_status_struct;
  225. typedef struct {
  226.     video_osd_bg_struct             bg;
  227. video_osd_title_struct title;
  228. video_osd_play_wnd_struct preview_wnd;
  229. video_osd_vodrec_panel_struct panel;
  230. video_osd_vdorec_status_struct status;
  231. video_osd_softkey_struct  softkey;
  232. video_osd_hint_struct hint;
  233. } vdorec_osd_vdorec_layout_struct;
  234. typedef struct {
  235.     video_osd_bg_struct             bg;
  236. video_osd_title_struct title;
  237. video_osd_play_wnd_struct play_wnd;
  238. video_osd_vodply_panel_struct panel;
  239. video_osd_softkey_struct  softkey;
  240. video_osd_loading_struct        loading;
  241. } vdoply_osd_vdoply_layout_struct;
  242. typedef struct {
  243. video_osd_vodply_full_panel_struct panel;
  244. video_osd_full_softkey_struct softkey;
  245. video_osd_loading_struct            loading;
  246. } vdoply_osd_fullscr_layout_struct;
  247. /***************************************************************************** 
  248. * Local Variable
  249. *****************************************************************************/
  250. /* video osd display cntx */
  251. extern vdoply_osd_vdoply_layout_struct g_vdoply_osd_cntx;
  252. #ifdef __VDOPLY_FEATURE_FULLSCREEN__
  253. extern vdoply_osd_fullscr_layout_struct g_vdoply_fullscr_osd_cntx;
  254. #endif
  255. extern vdorec_osd_vdorec_layout_struct g_vdorec_osd_cntx;
  256. #endif /* __MMI_VIDEO_PLAYER__ || __MMI_VIDEO_RECORDER__ */
  257. #endif /* _VIDEO_SKIN_H_ */