Digest.h
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:4k
- /* **************************************************************************************
- * Copyright (c) 2002 ZORAN Corporation, All Rights Reserved
- * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
- *
- * File: $Workfile: Digest.h $
- * Author: Etti Malka
- *
- * Description:
- * ============
- * Implementation of the digest mechanism.
- *
- * Log:
- * ====
- * $Revision: 8 $
- * Last Modified by $Author: Johnk $ at $Modtime: 4/01/04 9:55p $
- ****************************************************************************************
- * Updates:
- ****************************************************************************************
- * $Log: /I76/I76_Common/I76_Reference/Playcore/Digest/Digest.h $
- *
- * 8 4/01/04 10:48p Johnk
- * display 6 pcs in thumnails display for S1 spec
- *
- * 7 03-01-28 2:26 Leslie
- * Support eTrackDiscView
- *
- * 6 10/30/02 17:48 Rond
- *
- * 3 11/09/02 15:47 Atai
- * Vaddis 5e production update
- *
- * 10 18/08/02 14:01 Nirm
- * - Interface changes in order to allow Error-Recovery.
- *
- * 9 7/08/02 22:50 Nirm
- * - Extended Digest capability to support more than 256 items.
- *
- * 8 1/08/02 23:37 Nirm
- * - Enhanced Digest to support initial-item selection; the initial item
- * is always presented as the first item on a Page.
- *
- * 7 23/04/02 9:29 Nirm
- * - Added dependency in "Config.h".
- *
- * 6 11/04/02 9:34 Ettim
- * Updated version with intro frames count setting on Digest_init.
- *
- * 5 10/04/02 12:23 Ettim
- * Moved the structure Digest_Unit_TAG into nav_svcd.h
- *
- * 4 3/31/02 14:43 Ettim
- * Reducing the load from the ADP by approaching it every other tick.
- * Adding the function Digest_setIntroFramesCount.
- *
- * 3 3/20/02 19:24 Ettim
- * Adding the function Digest_firstItemDisplayed() that returns the
- * indication whether the first item on screen has already been displayed.
- *
- * 2 3/10/02 17:30 Ettim
- * Added Motion Digest support.
- *
- *
- **************************************************************************************** */
- #include "Config.h" // Global Configuration - do not remove!
- #ifndef __DIGEST_H_
- #define __DIGEST_H_
- #include "Includesysdefs.h"
- /////////////////////////////////////////////////////////////////////////////
- // Constants
- #ifdef EXINO2
- #define DIGEST_MAX_FRAMES_ON_SCREEN 6
- #else
- #define DIGEST_MAX_FRAMES_ON_SCREEN 9
- #endif
- typedef enum { eTrackView, eDiscView, eTrackDiscView } enDigestMode;
- //callback function definition
- typedef enum {
- eDigestQuery_Start,
- eDigestQuery_Stop,
- eDigestQuery_IsFinished
- } enDigestQuery;
- typedef BOOL (*CallbackFuncPtr)(UINT16, enDigestQuery);
- //valid operations in the navigator while digest screen is displayed
- typedef enum {
- eDIGEST_OP_NONE = 0x00,
- eDIGEST_OP_NEXT = 0x01,
- eDIGEST_OP_PREV = 0x02
- } enDIGEST_VALID_OP;
- /////////////////////////////////////////////////////////////////////////////
- // Digest Interface
- BOOL Digest_init(CallbackFuncPtr pfCallback, UINT16 i_uDigestUnitsCnt,
- enDigestMode i_eDigestMode, UINT8 i_uIntroFramesCount);
- void Digest_terminate(void);
- void Digest_start(UINT16 i_uInitialItem);
- void Digest_next(void);
- void Digest_prev(void);
- UINT16 Digest_getCurrentDisplayed(void);
- enDigestMode Digest_getDigestMode(void);
- BOOL Digest_setFocus(UINT16 i_uItem);
- void Digest_onItemLostFocus(void);
- void Digest_getVisibleRange(UINT16 *o_pFirstItem, UINT16 *o_pLastItem);
- enDIGEST_VALID_OP Digest_getValidOp(void);
- BOOL Digest_firstItemDisplayed(void);
- BOOL Digest_IsFirstDigestWindow(void);
- #endif //__DIGEST_H_