dvda_amg.h
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:4k
- /****************************************************************************************
- * Copyright (c) 2000 ZORAN Corporation, All Rights Reserved
- * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
- *
- * File: "dvda_amg.h" 20/12/00
- *
- * Description:
- * ============
- * Audio manager functions and data structures
- *
- * Log:
- * ====
- * $Revision: 1 $
- * Last Modified by $Author: Leonh $ at $Modtime: 12/30/03 11:16a $
- ****************************************************************************************
- * Updates:
- ****************************************************************************************
- * $Log: /I76/I76_Common/I76_Reference/Playcore/Nav_DVD/Header/dvda_amg.h $
- *
- * 1 12/30/03 11:30a Leonh
- * Angieh:Change for DVD AUDIO navigator header.
- *
- * 4 12/30/03 10:42a Leonh
- * Angieh:Add #include "Config.h".
- *
- * 3 03-05-15 14:16 Leonh
- *
- * 2 03-05-08 17:46 Leonh
- *
- * 1 03-04-30 17:31 Leonh
- *
- * 1 10/24/02 14:20 Rinata
- *
- * 11 10/03/01 18:11 Rinata
- * Finik+ Bhupesh + Assaf + Tia : Navigation fixes
- *
- * 10 9/24/01 18:10 Rinata
- * Finik: Fixed Video/Audio content priority
- *
- * 9 9/24/01 13:49 Rinata
- * Finik: Fixes for DVD-A
- *
- * 8 8/21/01 5:22 Nirp
- *
- * 7 8/05/01 17:15 Rinata
- * Integration (cy)
- *
- * 7 7/31/01 11:37 Assafm
- * Bug fixes
- *
- * 6 7/19/01 15:55 Rinata
- * Assaf: Hidden group play
- * Time search
- * Entry search
- * Bug fixes (LinkCN etc.)
- *
- * 5 6/21/01 10:53 Rinata
- * Assaf: Stop/Resume + bug fixes.
- *
- * 4 17-04-01 11:36 Assafm
- *
- * 3 21-03-01 15:25 Assafm
- *
- * 2 20/12/00 12:24 Finik
- * Header added
- *
- * 1 28-11-00 17:59 Assafm
- Revision 1.1 2000/04/27 17:17:39 tia
- Initial revision
- */
- /***********************************************************************/
- #include "Config.h" // Global Configuration - do not remove!
- #ifdef DVD_AUDIO_SUPPORT
- #ifndef _DVDA_AMG_H
- #define _DVDA_AMG_H
- #include "PlaycoreCoremaincoremain.h"
- #include "PlaycoreNav_DVDHeadernavdef.h"
- // #define AMGI_MAT_SIZE 358
- #define ATT_SRP_SIZE 14
- #define MAX_ATT_SRP 100 /* 1 .. 99 by the spec */
- #define ATT_SRPT_SIZE MAX_ATT_SRP * ATT_SRP_SIZE
- #define MAX_GROUPS 9//100 /* 1 .. 99 */
- typedef struct {
- BYTE ATT_CAT;
- BYTE ATT_PG_Ns;
- BYTE res1;
- BYTE res2;
- BYTE ATT_PB_TM[4]; /* <- this struct is misaligned !!, that's why I use this awkward represantation */
- BYTE ATSN;
- BYTE ATS_TTN;
- BYTE ATS_SA[4]; /* <- this struct is misaligned !!, that's why I use this awkward represantation */
- } ATT_SRP;
- /* AMG structure chapter 5 (AMG) */
- typedef struct{
- WORD AP_INF; /* auto play information */
- DWORD ASVS_SA;
- WORD HGR_INF;
- BYTE NumOfVts;
- BYTE NumOfAts;
- WORD ATT_SRP_Ns; /* number of search pointers */
-
- #ifdef NO_SCPAD
- BYTE ATT_SRPT[ATT_SRPT_SIZE];
- #else
- S_SC_STORAGE att_srpt_sc_st;
- #endif
- S_DOM menu;
- #ifdef NO_SCPAD
- BYTE menu_atrt_data[ M_ATRT_SIZE ]; /* data storage for the menu attributes */
- #else
- WORD menu_atrt_data_sc_handle; /* defined here temporarely */
- #endif
- BYTE ReturnToMenu;
- #ifdef NO_SCPAD
- BYTE NumTracksInGroup[MAX_GROUPS]; /* number of tracks in each unhidden group */
- #else
- S_SC_STORAGE NumTracksInGroup_sc_st;
- #endif
- BYTE NumGroups; /* number of unhidden groups; */
- BYTE Resume_GR_TK; // when resuming, resume to GR/TK
- BYTE ResumeGroup;
- BYTE ResumeTrack;
- BOOL AllowHGR;
- BOOL initialized;
- }S_AMG;
- // AMG functions
- void amg_construct(S_FPOS *address, WORD country, WORD language);
- BOOL amg_Get_ATT_SRP( S_ATT_SRP *buffer, int group,int track, int *attn); /* TC1002 */
- void amg_GetVTS( S_FPOS *fposp, int VTSN );
- void amg_FindGroupsAndTracks(void);
- int amg_Find_Track(int pg_num);
- BOOL amg_GetPGCTime(int gr_num,int time,int *track,int *pgc_time);
- WORD amg_Get_Menu_Structure(void);
- void amg_ComputeGroupTime(int group, int track);
- #endif
- #endif