AuxCache.h
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:2k
- /* **************************************************************************************
- * Copyright (c) 2004 ZORAN Corporation, All Rights Reserved
- * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
- *
- * File: $Workfile: AuxCache.h $
- *
- * Description:
- * ============
- * Auxilary Data Caching Interface.
- *
- * Log:
- * ====
- * $Revision: $
- * Last Modified by $Author: $ at $Modtime: $
- ****************************************************************************************
- * Updates:
- ****************************************************************************************
- * $Log: /I76/I76_Common/I76_Reference/Playcore/AuxCache/AuxCache.h $
- *
- **************************************************************************************** */
- #include "Config.h" // Global Configuration - do not remove!
- #ifndef _AUX_CACHE_H
- #define _AUX_CACHE_H
- #include "Includesysdefs.h"
- #include "CustomerMercury_Referencedecoder_settingsdram_config.h"
- /////////////////////////////////////////////////////////////////////////////////////////////////
- // Constants and Defines
- #define MAX_CACHED_CD_SECTOR (NAV_BUFFER_SIZE_CD_AUX >> 1)
- #define MAX_CACHED_DVD_SECTOR (NAV_BUFFER_SIZE_DVD_AUX >> 1)
- #if (MAX_CACHED_CD_SECTOR > MAX_CACHED_DVD_SECTOR)
- #define MAX_CACHED_SECTORS MAX_CACHED_CD_SECTOR
- #else
- #define MAX_CACHED_SECTORS MAX_CACHED_DVD_SECTOR
- #endif
- #define NAV_BUFF_SIZE_IN_SECTORS ((IS_DVD_PHYSICAL_MEDIA) ? MAX_CACHED_DVD_SECTOR : MAX_CACHED_CD_SECTOR)
- /////////////////////////////////////////////////////////////////////////////////////////////////
- // Public Services
- BOOL AuxCache_DiscReadBlock(DWORD dwLBN, WORD wCount);
- BOOL AuxCache_GetBytes(DWORD dwLBN, DWORD dwOffset, WORD wNumOfBytes, BYTE *buff);
- BOOL AuxCache_GetFile(DWORD dwLBN, DWORD dwOffset, WORD wNumOfBytes,
- DWORD dwTotalRequestedSize, BOOL bRestart, BYTE *buff);
- void AuxCache_GetFileTerminate(void);
- #endif // _AUX_CACHE_H