Coremain.h
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:4k
- /****************************************************************************************
- * Copyright (c) 2002 ZORAN Corporation, All Rights Reserved
- * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
- *
- * File: $Workfile: Coremain.h $
- *
- * Description: Interface for creating and manipulating a generic Array.
- * ============
- *
- *
- * Log:
- * ====
- * $Revision: 8 $
- * Last Modified by $Author: Johnk $ at $Modtime: 3/12/04 5:24p $
- ****************************************************************************************
- * Updates:
- ****************************************************************************************
- * $Log: /I76/I76_Common/I76_Reference/Playcore/Coremain/Coremain.h $
- *
- * 8 3/12/04 5:45p Johnk
- * Merged EZVIEW function - inserted EZVIEW_ENABLE macro
- *
- * 7 2/20/04 6:09p Glenl
- * Merged S1 code
- *
- * 6 11/28/03 5:47p Fwang
- *
- * 5 9/29/03 11:49a Chaol
- * code clear
- *
- * 4 9/05/03 9:56a Stephaneh
- * Modification for Bass Management Implementation
- *
- * 3 03-05-27 22:40 Fwang
- * Add NVM bookmark.
- *
- * 2 5/01/03 8:25a Stephaneh
- * EZ View Implementation - See macro EZVIEW_ENABLED in case of problem.
- *
- * 4 23/04/02 9:28 Nirm
- * - Added dependency in "Config.h".
- *
- * 3 27/03/02 13:27 Nirm
- * - Added declaration of core_dispatch() and ui_dispatch().
- *
- * 2 9/01/02 14:44 Nirm
- * Corrected Include-Paths.
- *
- * 1 26/12/01 14:57 Nirm
- ****************************************************************************************/
- #include "Config.h" // Global Configuration - do not remove!
- #ifndef COREMAIN_H
- #define COREMAIN_H
- #include "KernelKer_API.h"
- void ui_dispatch(void);
- void core_dispatch(void);
- void core_save_NVM_setting_In_Flash( unsigned short far *flash_sa);
- /* Values for query_core */
- typedef enum {
- CQ_NONE,
- CQ_AVAILABLE_CHANNELS,
- CQ_AVAILABLE_CHAPTERS,
- CQ_VALID_ZOOM,
- #ifdef EZVIEW_ENABLED // ZKR GL031204 : Changed the macro name.
- // <<< ZKR GL031204 : Improved EZVIEW function.
- CQ_GET_EZVIEW_MODE,
- CQ_GET_NEXT_EZVIEW_MODE,
- // ZKR GL031204 >>>
- #endif
- #ifdef S1_GUI
- CQ_WIDESCREEN_MODE, // ZKR GLV778
- // <<< SEC BK.LIM062003: Check repeat a_b 5 sec
- #ifdef EXINO2
- CQ_CAN_SET_REPEATAB_B,
- CQ_CAN_SKIP_PREVIOUS,
- CQ_CAN_SKIP_NEXT,
- CQ_CAN_GOTO_BOOKMARK,
- CQ_ONE_SEQUENTIAL_PGC_TITLE, // SEC shKang080103
- #endif
- // SEC BK.LIM062003>>>
- #endif // S1_GUI
- } CORE_QUERY;
- typedef enum{
- CQ_ZOOM_VALID,
- CQ_ZOOM_INVALID,
- CQ_ZOOM_BUSY,
- } CQ_ZOOM_STATUS;
- /* Macro for constructing core error parameter */
- #define MAKE_ERROR_PARAM(_core_event_, _error_code_)
- (void *) ( (((DWORD) (_core_event_)) << 16) | ((DWORD) (_error_code_)) )
- /* Macro for extracting event from core error parameter */
- #define EXTRACT_CORE_EVENT(_pvParam_)
- (EVENT) ( ((DWORD) (_pvParam_)) >> 16 )
- /* Macro for extracting error_code from core error parameter */
- #define EXTRACT_ERROR_CODE(_pvParam_)
- (WORD) ( ((DWORD) (_pvParam_)) & 0x0000ffff)
- typedef enum{
- HDLR_ENTER = 0,
- HDLR_EXIT,
- HDLR_EVENT
- } HDLR_OP;
- int install_core_event_handler( int (*new_handler)(HDLR_OP Op, EVENT Event, void *Param));
- void remove_core_event_handler( int handler_id );
- int install_ui_event_handler( int (*new_handler)(HDLR_OP Op, EVENT Event, void *Param));
- void remove_ui_event_handler( int handler_id );
- void ui_init( void );
- void send_tick( EVENT tick_event );
- void send_remote_event( WORD keycode );
- int get_core_info_available_audio_stream( void );
- void query_core( CORE_QUERY cq, void *pvInput, void *pvOutput );
- void core_report_error( EVENT event, void *pvParam );
- void core_clear_bookmark_info( int bookmark_num ); /* bookmark_num is 1,2,3. 0 clears all bookmarks */
- void core_set_bookmark_info( int bookmark_num, WORD time_in_sec );
- #ifdef EXINO2 //ZKR JK0426
- int get_language_index( WORD lcd );
- #endif
- #endif //COREMAIN_H