Core_Err.h
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:2k
- /****************************************************************************************
- * Copyright (c) 2002 ZORAN Corporation, All Rights Reserved
- * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
- *
- * File: $Workfile: Core_Err.h $
- *
- * Description: Interface for creating and manipulating a generic Array.
- * ============
- *
- *
- * Log:
- * ====
- * $Revision: 2 $
- * Last Modified by $Author: Janeg $ at $Modtime: 03-04-02 10:37 $
- ****************************************************************************************
- * Updates:
- ****************************************************************************************
- * $Log: /SourceCode/I64_Common/I64_Reference/Playcore/Coremain/Core_Err.h $
- *
- * 2 03-04-02 11:30 Janeg
- * Add clips navigator error code.
- *
- * 3 23/04/02 9:28 Nirm
- * - Added dependency in "Config.h".
- *
- * 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 _CORE_ERR_H_
- #define _CORE_ERR_H_
- //
- // core_err.h
- //
- // Defines core error classes ( base values )
- //
- #define CORE_ERROR_BASE 0x0100
- #define DEC_ERROR_BASE 0x0200
- #define DRIVE_ERROR_BASE 0x0300
- #define DVDNAV_ERROR_BASE 0x0400
- #define CDNAV_ERROR_BASE 0x0500
- #define CLIPSNAV_ERROR_BASE 0x0600
- // Form an error code from a base value and error number
- #define MAKE_ERROR_CODE(_base_,_error_num_)
- ( (_base_) | (((WORD) (_error_num_)) & 0x00ff) )
- #define EXTRACT_ERROR_BASE(_error_code_) ( (_error_code_) & 0xff00 )
- #define EXTRACT_ERROR_NUM(_error_num_) ( (_error_code_) & 0x00ff )
- //
- // Examples
- //
- #define CORE_ERROR_GENERAL MAKE_ERROR_CODE(CORE_ERROR_BASE, 0)
- #define DEC_ERROR_GENERAL MAKE_ERROR_CODE(DEC_ERROR_BASE, 0)
- #define DRIVE_ERROR_GENERAL MAKE_ERROR_CODE(DRIVE_ERROR_BASE, 0)
- #define CLIPSNAV_ERR_PROHIBITED_UOP MAKE_ERROR_CODE(CLIPSNAV_ERROR_BASE, 1 )
- #define CLIPSNAV_ERR_WRONGFILE_UOP MAKE_ERROR_CODE(CLIPSNAV_ERROR_BASE, 2 )
- // Robin_0125_2005, display more info
- #define CLIPSNAV_ERR_MP4_UNSUPPORTPROFILE_UOP MAKE_ERROR_CODE(CLIPSNAV_ERROR_BASE, 3)
- #define CLIPSNAV_ERR_MP4_DRMDISABLE_UOP MAKE_ERROR_CODE(CLIPSNAV_ERROR_BASE, 4 )
- #endif // _CORE_ERR_H_