Array.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: Array.h $
- *
- * Description: Interface for creating and manipulating a generic Array.
- * ============
- *
- *
- * Log:
- * ====
- * $Revision: 3 $
- * Last Modified by $Author: Leslie $ at $Modtime: 03-01-30 16:34 $
- ****************************************************************************************
- * Updates:
- ****************************************************************************************
- * $Log: /SourceCode/I64_Common/I64_Reference/Playcore/DataStructures/Array.h $
- *
- * 3 03-01-30 23:16 Leslie
- *
- * 6 27/05/02 18:50 Nirm
- * - Cleaned-up compilation-warnings.
- *
- * 5 23/05/02 14:09 Ettim
- * Adding support for an absolute 32 bit address on the scratch pad.
- *
- * 4 23/04/02 9:28 Nirm
- * - Added dependency in "Config.h".
- *
- * 3 4/02/02 12:53 Nirm
- * Added Array_freeExtra().
- *
- * 2 9/01/02 14:48 Nirm
- * Corrected Include-Paths.
- *
- * 1 26/12/01 14:57 Nirm
- ****************************************************************************************/
- #include "Config.h" // Global Configuration - do not remove!
- #ifndef __ARRAY_H_
- #define __ARRAY_H_
- /////////////////////////////////////////////////////////////////////////////
- // Array.h - Public Interface of a generic Array
- //
- // Author: Nir Milstein
- #include "IncludeSysDefs.h"
- /////////////////////////////////////////////////////////////////////////////
- // Generic Array Interface
- UINT32 Array_construct(UINT16 i_uElementsCnt, UINT16 i_cbElementSize,
- WORD *io_pExternalMemoryPoolAddress);
- UINT32 Array_constructEx(UINT16 i_uElementsCnt, UINT16 i_cbElementSize,
- DWORD *io_pExternalMemoryPoolAddress);
- void Array_destruct(UINT32 hArray);
- void Array_freeExtra(UINT32 hArray);
- UINT16 Array_getSize(UINT32 hArray);
- void ArrayInitBound(UINT32 hArray,UINT16 num);
- void Array_clear(UINT32 hArray);
- BOOL Array_getAt(UINT32 hArray, UINT16 uIndex, BYTE *o_pElementContainer);
- BOOL Array_setAt(UINT32 hArray, UINT16 uIndex, const BYTE *i_pElement);
- #ifdef DVD_VR_SUPPORT
- UINT32 Array_reconstruct(UINT32 hArray, UINT16 i_uNewElementsCnt);
- UINT16 Array_getCapacity(UINT32 hArray);
- #endif //DVD_VR_SUPPORT
- #endif //__ARRAY_H_