⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 eventdef.h

📁 一个完整的rtos源代码.运行在嵌入80186 cpu上.提供4个任务,信号灯,定时器,schedule等.
💻 H
📖 第 1 页 / 共 2 页
字号:
/* **************************************************************************************
 *  Copyright (c) 2002 ZORAN Corporation, All Rights Reserved
 *  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
 *
 *  File: $Workfile: EventDef.H $             
 *
 * Description:
 * ============
 * Definition of all the system events
 * 
 * Log:
 * ====
 * $Revision: 51 $
 * Last Modified by $Author: Francisw $ at $Modtime: 4/01/04 10:21a $ 
 ****************************************************************************************
 * Updates:
 ****************************************************************************************
 * $Log: /SourceCode/I64_Common/I64_Reference/Kernel/EventDef.H $
 * 
 * 51    4/01/04 10:21a Francisw
 * Avoid displaying wrong messages when TVG on. Francis.Wen_01Apr04_A
 * 
 * 50    04-03-05 19:13 Erics
 * 
 * 49    04-02-26 23:28 Leslie
 * TVG Vision Support
 * 
 * 48    1/30/04 11:50a Stephaneh
 * Integrated CDG Feature, as well as reoder properly UI event numbers
 * 
 * 47    1/06/04 3:58a Francisw
 * 
 * 46    12/01/03 2:03p Francisw
 * Changed the two line21 macro to IE_CORE_TVG_MUTE/UNMUTE.
 * FrancisW_01Dec03_A
 * 
 * 45    03-09-27 15:59 Angieh
 * Merge code from Branch.
 * FrankM_0923_2003_A:Added 20ms UI Tick Event
 * 
 * 44    03-06-30 16:38 Leslie
 * Add IE_CORE_STOP_DRIVE_SPINING
 * 
 * 43    03-06-25 17:57 Mikelv
 * 
 * 42    03-06-25 17:54 Mikelv
 * 
 * 41    03-06-24 17:59 Kennyz
 * Add code for special control.
 * 
 * 40    6/19/03 12:05p Clifflv
 * Add event IE_UI_MUTE_DISPLAY for tuner use
 * 
 * 39    03-06-17 18:26 Admin
 * Merge for ExinoII project
 * 
 * 38    03-06-06 17:20 Kennyz
 * Add code for SPDIF IN workmode.
 * 
 * 37    03-05-29 18:19 Jerryc
 * support flash card
 * 
 * 36    03-05-29 10:50 Leslie
 * Change IE_CORE_WATCHDOG to IE_CORE_PICTURE_DECODING_STUCK
 * 
 * 35    03-05-26 18:51 Leonh
 * 
 * 34    03-05-19 18:32 Kennyz
 * 
 * 33    03-05-19 17:00 Fwang
 * Add EOS event for DVD Audio.
 * 
 * 32    03-05-16 22:07 Leslie
 * Add IE_CORE_DRIVE_READ_FAIL
 * 
 * 31    03-05-15 14:08 Fwang
 * Add event for DVD Audio
 * 
 * 30    03-04-25 15:43 Kennyz
 * Clean the code .
 * 
 * 29    4/09/03 11:12a Lyncolnc
 * Added event to clear UI messages like Q1..Q5 when the current clip
 * (JPG) finished its playback.
 * 
 * 28    3/20/03 10:14a Clifflv
 * Add EVENT for AVReceiver
 * 
 * 27    03-03-14 18:18 Jerryc
 * add new event
 * 
 * 26    3/10/03 9:15p Nmaurer
 * Add drive to core messages
 * 
 * 25    03-03-05 17:38 Jerryc
 * jerryc, clean up.
 * 
 * 24    03-03-04 15:02 Jerryc
 * jerryc, add event IE_CORE_SET_CLIPS_BROWSER_STYLE
 * 
 * 23    03-03-04 11:40 Jerryc
 * jerry cai, merge new nav clips lib.
 * 
 * 22    03-01-30 20:30 Leslie
 * Add new Core events
 * 
 * 21    03-01-27 9:51 Leslie
 * Add event IE_UI_OPEN_DIGEST_MENU
 * 
 * 20    03-01-17 19:34 Leslie
 * AIN Supported
 * 
 * 19    03-01-16 14:31 Dingming
 * code clean up
 * 
 * 18    1/14/03 2:57p Lyncolnc
 * Added 2 core events:  IE_CORE_AUDIO_2CHANNEL_SELECTION and
 * IE_CORE_AUDIO_6CHANNEL_SELECTION
 * 
 * 17    03-01-09 4:37 Leslie
 * Add IE_CORE_CDNAV_INTRO
 * 
 * 16    12/09/02 5:59p Leslie
 * Add IE_UI_FP_UPDATE_ERROR
 * 
 * 15    11/10/02 16:23 Nmaurer
 * A new core message: IE_CORE_TRAY_OPENED
 * 
 * 14    5/08/02 12:34p Dingming
 * support disc time search
 * 
 * 13    29/04/02 12:13 Nirm
 * - Conditional compilation.
 * 
 * 12    23/04/02 9:26 Nirm
 * - Added dependency in "Config.h".
 * 
 * 11    31/03/02 23:16 Nirm
 * - Code cleanup.
 * 
 * 10    3/27/02 13:18 Ettim
 * Replaced D_PICTURE_CD_ENABLED with CLIPS_JPEG_SUPPORT
 * 
 * 9     3/26/02 19:14 Ettim
 * Added new clips navigation support.
 * 
 * 8     3/07/02 4:05a Dingming
 * rename jpg digest macro
 * 
 * 7     3/05/02 12:30a Dingming
 * add event to support PCD erase/restore menu
 * 
 * 6     2/28/02 2:48a Dingming
 * code porting for picture cd
 * 
 * 5     13/01/02 16:22 Atai
 * Remove old Defines
 * 
 * 4     9/01/02 18:28 Nirm
 * Corrected Include-Paths.
 * 
 * 3     12/26/01 18:51 Ettim
 * After updating nav_svcd.c & pe_cd.c
 * 
 * 2     25/12/01 15:18 Atai
 * Code cleaning
 * 
 * 
 **************************************************************************************** */

#include "Config.h"		// Global Configuration - do not remove!

#include "Include\SysDefs.h"

/* be sure to update 'ALL' when adding classes */
#define EVENT_CLASS_SHIFT	12
#define EVENT_CLASS_CORE	(MBX_CORE << EVENT_CLASS_SHIFT)
#define EVENT_CLASS_UI		(MBX_UI << EVENT_CLASS_SHIFT)
#define EVENT_CLASS_MASK	(0xF << EVENT_CLASS_SHIFT)


/* CORE event definition */
/* common operation */
#define IE_CORE_CMD_EJECT					(EVENT_CLASS_CORE|0x01)
#define IE_CORE_CMD_CLOSE_TRAY				(EVENT_CLASS_CORE|0x02)
#define IE_CORE_CMD_POWER					(EVENT_CLASS_CORE|0x03)		/* POWER ON: param=1; POWER OFF: param=0 */
#define IE_CORE_RESTART						(EVENT_CLASS_CORE|0x04)		/* restart disc playback in currently selected play mode */
#define IE_CORE_SEAMLESS_MODE_CHANGE		(EVENT_CLASS_CORE|0x05)	 	/* change play mode but current play is kept unchange */
#define IE_CORE_STOP						(EVENT_CLASS_CORE|0x06)		/* Stop current play, save play context for resume */
#define IE_CORE_PLAY						(EVENT_CLASS_CORE|0x07)		/* Resume play from STOP or PAUSE */
#define IE_CORE_FULL_STOP					(EVENT_CLASS_CORE|0x08)		/* Full stop, can only restart from here, play context is lost */
#define IE_CORE_PAUSE						(EVENT_CLASS_CORE|0x09)		/* Pause playback, resume with only PLAY COP */
#define IE_CORE_SCAN						(EVENT_CLASS_CORE|0x0A)		/* Scan forward or backward, parameter specifies direction and speed */
#define IE_CORE_SLOW						(EVENT_CLASS_CORE|0x0B)		/* Slow motion forward or backward, parameter specifies direction and speed */
#define IE_CORE_STEP						(EVENT_CLASS_CORE|0x0C)		/* Step frame by frame fw or bw, parameter specifies direction */
#define IE_CORE_NEXT_CHAPTER				(EVENT_CLASS_CORE|0x0D)		/* Skip to next chapter */
#define IE_CORE_PREVIOUS_CHAPTER			(EVENT_CLASS_CORE|0x0E)		/* Skip to previous chapter */
#define IE_CORE_REVERSE_PLAY				(EVENT_CLASS_CORE|0x0F)		/* Reverse play */
#define IE_CORE_ZOOM						(EVENT_CLASS_CORE|0x10)		/* Zoom operation, parameter specifies zoom factor */
#define IE_CORE_PANNING						(EVENT_CLASS_CORE|0x11)		/* Pan Zoom window */
#define IE_CORE_AB_REPEAT					(EVENT_CLASS_CORE|0x13)		/* Toggle the "AB-Repeat" Playback-Mode */
#define IE_CORE_AB_REPEAT_CANCEL			(EVENT_CLASS_CORE|0x14)		/* Cancel A2B Repeat: ZORAN LX0220*/
#define IE_CORE_SET_BOOKMARK				(EVENT_CLASS_CORE|0x15)		/* Set a certain Bookmark */
#define IE_CORE_GOTO_BOOKMARK				(EVENT_CLASS_CORE|0x16)		/* Jump to a certain Bookmark */
#define IE_CORE_GOTO_TIME					(EVENT_CLASS_CORE|0x17)		/* Jump to a certain time in the current track */
#define IE_CORE_GOTO_DISC_TIME				(EVENT_CLASS_CORE|0x18)		/* Jump to a certain time in the whole disc */
#define IE_CORE_GOTO_ENTRY					(EVENT_CLASS_CORE|0x19)		/* chapter/track search */
#define IE_CORE_MENU_NUMERICAL_SELECTION	(EVENT_CLASS_CORE|0x1A)		/* valid for disc menu or digest */
#define IE_CORE_DIGEST						(EVENT_CLASS_CORE|0x1B)		/* Track or Disc Digest, Track or disc digest indicated in parameter */
#define IE_CORE_AUDIO_STREAM_SELECTION		(EVENT_CLASS_CORE|0x1C)		/* Change current audio, parameter indicates audio stream Number 1 to Max */
#define IE_CORE_SUBPIC_STREAM_SELECTION		(EVENT_CLASS_CORE|0x1D)
#define IE_CORE_ANGLE_SELECTION				(EVENT_CLASS_CORE|0x1E)
#define IE_CORE_PM_RESET			        (EVENT_CLASS_CORE|0x1F) 	


/* Cursor direction and selection */
#define IE_CORE_MOVE_UP						(EVENT_CLASS_CORE|0x20)
#define IE_CORE_MOVE_DOWN					(EVENT_CLASS_CORE|0x21)
#define IE_CORE_MOVE_LEFT					(EVENT_CLASS_CORE|0x22)
#define IE_CORE_MOVE_RIGHT					(EVENT_CLASS_CORE|0x23)
#define IE_CORE_SELECT						(EVENT_CLASS_CORE|0x24)

/* DVD navigation commands */
#define IE_CORE_ROOT_MENU					(EVENT_CLASS_CORE|0x25)
#define IE_CORE_TITLE_MENU					(EVENT_CLASS_CORE|0x26)

/* SVCD Navigation Commands */
#define IE_CORE_RETURN						(EVENT_CLASS_CORE|0x27)
#define IE_CORE_NUM_SELECTION				(EVENT_CLASS_CORE|0x28)

#define IE_CORE_UPDATE_DVD_COP_MASK			(EVENT_CLASS_CORE|0x29)

/* DVD Audio event */
#define IE_CORE_PAGE_UP					(EVENT_CLASS_CORE|0x2A)
#define IE_CORE_PAGE_DOWN					(EVENT_CLASS_CORE|0x2B)
#define IE_CORE_LANG_SELECT				(EVENT_CLASS_CORE|0x2C)
#define IE_CORE_HGR_PLAY					(EVENT_CLASS_CORE|0x2D)
#define IE_CORE_HGR_TRACK_PLAY			(EVENT_CLASS_CORE|0x2E)
#define IE_CORE_HGR_GOTO_TIME				(EVENT_CLASS_CORE|0x2F)

/* Player Setting Modification Commands */
#define IE_CORE_UPDATE_PS					(EVENT_CLASS_CORE|0x30)

// add core event for digest
#if (defined(VCD_DIGEST_ENABLED) || defined(DVD_DIGEST_ENABLED) || defined(CLIPS_JPEG_DIGEST_SUPPORT))
#define IE_CORE_START_DIGEST				(EVENT_CLASS_CORE|0x31)
#define IE_CORE_NEXT_DIGEST					(EVENT_CLASS_CORE|0x32)
#define IE_CORE_DIGEST_NUMBER_SELECT		(EVENT_CLASS_CORE|0x33)
#define IE_CORE_DIGEST_STOP					(EVENT_CLASS_CORE|0x34)
#define IE_CORE_DIGEST_EJECT				(EVENT_CLASS_CORE|0x35)
#define IE_CORE_DIGEST_NEXT					(EVENT_CLASS_CORE|0x36)
#define IE_CORE_DIGEST_PREVIOUS				(EVENT_CLASS_CORE|0x37)
#endif // defined(VCD_DIGEST_ENABLED) || defined(DVD_DIGEST_ENABLED) || defined(CLIPS_JPEG_DIGEST_SUPPORT)

// <<< FrancisW_01Dec03_A
#define IE_CORE_TVG_MUTE					(EVENT_CLASS_CORE|0x38)
#define IE_CORE_TVG_UNMUTE					(EVENT_CLASS_CORE|0x39)
// FrancisW_01Dec03_A >>>
#define IE_CORE_CLEAN_LINE21				(EVENT_CLASS_CORE|0x40)

#define IE_CORE_TRANS_SELECTION				(EVENT_CLASS_CORE|0x41)//ZORAN DM1018
#define IE_CORE_JPG_GOTO_ENTRY				(EVENT_CLASS_CORE|0x42)//ZORAN DM1025
#define IE_CORE_JPG_START_COPY				(EVENT_CLASS_CORE|0x43)//ZORAN DM1129

#define IE_CORE_DEC_CMD						(EVENT_CLASS_CORE|0x44)

#define IE_CORE_SCENE_AGAIN					(EVENT_CLASS_CORE|0x45)

#define IE_CORE_CLIPS_TYPE_SELECTED			(EVENT_CLASS_CORE|0x46)

/* CD Navigation Events */
#define IE_CORE_CDNAV_RENDEZVOUS			(EVENT_CLASS_CORE|0x60)		/* Sent whenever a requested Rendezvous-Point is reached */
#define IE_CORE_CDNAV_FINISHED				(EVENT_CLASS_CORE|0x61)		/* Sent when the PE finishes playback of the current sequence */
#define IE_CORE_CDNAV_TRIGGER				(EVENT_CLASS_CORE|0x62) 	/* Sent when the Decoder discovers a Trigger-Bit in the stream */
#define IE_CORE_CDNAV_INTRO					(EVENT_CLASS_CORE|0x63) 	/* Indicate CDDA navigation to do intro mode operate */

/* DVD NAVIGATION EVENT */
#define IE_CORE_DVDNAV_PTM_REACHED			(EVENT_CLASS_CORE|0x70)
#define IE_CORE_DVDNAV_DSI_READY			(EVENT_CLASS_CORE|0x71)		/* Send for every new DSI, must be send prior PCI event */
#define IE_CORE_DVDNAV_PCI_READY			(EVENT_CLASS_CORE|0x72)		/* Send for every new PCI, must be send after DSI event */
#ifdef LANGUAGE_LEARNING_SUPPORT
#define IE_CORE_DISPLAY_LEARNING_SUB		(EVENT_CLASS_CORE|0x73)
#define IE_CORE_EXECUTE_GRAMMER_CMD			(EVENT_CLASS_CORE|0x74)
#endif
#define IE_CORE_DVDNAV_EOS				(EVENT_CLASS_CORE|0x75)

/* internal event core event definition */
#define IE_CORE_DEC_EOS						(EVENT_CLASS_CORE|0x7E)
#define IE_CORE_TICK_20						(EVENT_CLASS_CORE|0x7F)
#define IE_CORE_TICK_200					(EVENT_CLASS_CORE|0x80)
#define IE_CORE_TICK_250					IE_CORE_TICK_200			/* not accurate any more, mapped to 200 ms tick */
#define IE_CORE_MEDIA_IDENTIFIED			(EVENT_CLASS_CORE|0x81)
#define IE_CORE_TICK_ONE_SEC				(EVENT_CLASS_CORE|0x82)
#define IE_CORE_DRIVE_IRQ					(EVENT_CLASS_CORE|0x83)
#define IE_CORE_I_FRAME						(EVENT_CLASS_CORE|0x84)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -