ACTION.H
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:3k
- /****************************************************************************************
- * Copyright (c) 2002 ZORAN Corporation, All Rights Reserved
- * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
- *
- * File: $Workfile: ACTION.H $
- *
- * Description:
- * ============
- *
- *
- * Log:
- * ====
- * $Revision: 2 $
- * Last Modified by $Author: Leonh $ at $Modtime: 12/30/03 11:16a $
- ****************************************************************************************
- * Updates:
- ****************************************************************************************
- * $Log: /I76/I76_Common/I76_Reference/Playcore/Nav_DVD/Header/ACTION.H $
- *
- * 2 12/30/03 11:26a Leonh
- * Angieh:Change for DVD AUDIO navigator header.
- *
- * 1 03-04-28 11:15 Fwang
- * Initial for DVDA
- *
- * 2 23/04/02 9:34 Nirm
- * - Added dependency in "Config.h".
- *
- * 1 2/17/02 12:12 Rinata
- *
- * 1 2/17/02 11:38 Rinata
- *
- * 2 9/01/02 16:40 Nirm
- * Corrected Include-Paths.
- ****************************************************************************************/
- #include "Config.h" // Global Configuration - do not remove!
- #ifndef __ACTION_H
- #define __ACTION_H
- #include "PlaycoreNav_DVDHeadernvgation.h"
- #define nc_CmdID_1( ncp ) ((CmdID)( (ncp->st.buffer[ 0 ] & 0xE0) >> 5))
- #define nc_CmdID_2( ncp ) ((ncp->st.buffer[ 0 ] & 0x10) >> 4)
- #define nc_I_flagSet( ncp ) ((ncp->st.buffer[ 0 ] & 0x10) >> 4)
- #define nc_SetField( ncp ) ((CmdOpt) (ncp->st.buffer[ 0 ] & 0x0F))
- #define nc_I_flagCmp( ncp ) ((ncp->st.buffer[ 1 ] & 0x80) >> 7)
- #define nc_CompField( ncp ) ((CmdOpt)((ncp->st.buffer[ 1 ] & 0x70) >> 4))
- #define nc_BranchFld( ncp ) ((CmdOpt)((ncp->st.buffer[ 1 ] & 0x0F) ))
- #define nc_SCG( ncp ) ( ncp->st.buffer[ 1 ] & 0x0F)
- #define nc_SDG( ncp, offset ) ( (int) (ncp->st.buffer[ offset ] & 0x0F))
- BOOL TemporaryParentalLevelChange( void );
- // OK to inherit these non-exportable classes because they are
- // completely defined inline.
- BOOL act_is_nothing( S_Action *ap );
- char *act_name( CmdID ci ) ;
- void act_Set2( S_Action *ap, CmdID ci, BYTE *rawcmd );
- void act_Set1( S_Action *ap, CmdID ci, CmdOpt co, DWORD a );
- void act_Init( S_Action *ap, CmdID ci, CmdOpt co, DWORD a );
- char* ema_GetErrorMessage( S_EmitAction *eap);
- CmdOpt ema_GetLastErrorCode( S_EmitAction *eap );
- CmdOpt ema_ResetLastError( S_EmitAction *eap );
- BOOL ema_report_error( S_EmitAction *eap, CmdOpt co );
- BOOL ema_init2 ( S_EmitAction *eap, CmdID ci, BYTE *rawcmd );
- BOOL ema_init1( S_EmitAction *eap, CmdID ci, CmdOpt co, DWORD a );
- int nc_compare( S_NavigationCommand *ncp, int l_arg, int r_arg );
- BOOL nc_jump( S_NavigationCommand *ncp );
- BOOL nc_link( S_NavigationCommand *ncp, CmdOpt branch_field );
- BOOL nc_go_to( S_NavigationCommand *ncp );
- BOOL nc_Decode( S_NavigationCommand *ncp, BYTE *cmd, S_Action *action );
- void nc_set( S_NavigationCommand *ncp, int l_arg, int r_arg );
- void nc_set_system( S_NavigationCommand *ncp );
- #endif //__ACTION_H