📄 stream.h
字号:
/***********************************************************************/
/* File: */
/* ===== */
/* Descripton: */
/* =========== */
/* */
/* Log: */
/* ===== */
/*
$Name: V_1_11 V_1_10 V_1_08 V_1_06 V_1_05 V_1_04 V_1_03 V_1_02 V_1_01 V_1_00 B_0_90.1 B_0_90 $
$Header: /I76/I76_Common/I76_Reference/Playcore/Nav_DVD/Header/STREAM.H 2 12/30/03 11:29a Leonh $
$Log: /I76/I76_Common/I76_Reference/Playcore/Nav_DVD/Header/STREAM.H $
*
* 2 12/30/03 11:29a Leonh
* Angieh:Change for DVD AUDIO navigator header.
*
* 2 10/16/03 10:52a Leslie
* add protoype define
*
* 1 03-04-28 11:15 Fwang
* Initial for DVDA
*
* 2 23/04/02 9:34 Nirm
* - Added dependency in "Config.h".
*
* 1 2/17/02 12:12 Rinata
*
* 1 2/17/02 11:38 Rinata
*
* 2 8/01/02 16:25 Nirm
* Corrected Include-Paths.
Revision 1.6 2001/01/20 05:16:52Z tia
Fix for Bonus Disc Toy Story.
Revision 1.5 2000/06/14 02:46:38 tia
Revision 1.4 2000/05/17 02:41:50 tia
Revision 1.3 2000/05/16 03:12:26 tia
Revision 1.2 2000/05/13 02:20:52 tia
Revision 1.1 2000/04/14 02:02:19 tia
Initial revision
*/
/***********************************************************************/
#include "Config.h" // Global Configuration - do not remove!
#ifndef __STREAM_H
#define __STREAM_H
#include "Include\sysdefs.h"
DWORD DWORD_SWAP( void* data );
WORD WORD_SWAP ( void* data );
DWORD TIME_DECOD( char hTime, char mTime, char sTime, char fTime );
typedef struct{
BYTE* buffer;
WORD size;
}S_STORAGE;
typedef struct{
BYTE* sc_handle;
WORD size;
}S_SC_STORAGE;
#define buff2dword( buff, offs ) DWORD_SWAP( buff + offs )
#define buff2word( buff, offs ) WORD_SWAP( buff + offs)
BOOL fs_GetData( S_FPOS *from, long bytes, PBYTE buffer );
void fs_AllocMem( S_SC_STORAGE *st, int size );
void fs_FreeMem( S_SC_STORAGE *st );
BOOL fs_CopyFromDisc( S_FPOS *from, int size, BYTE* sc_handle );
WORD fs_GetWord( S_SC_STORAGE *st, int offset );
DWORD fs_GetDword( S_SC_STORAGE *st, int offset );
BYTE fs_scGetByte( BYTE* sc_handle, int offset );
WORD fs_scGetWord( BYTE* sc_handle, int offset );
DWORD fs_scGetDword( BYTE* sc_handle, int offset );
/* <<< ZORAN TC0116 : Add new methods */
BYTE fs_ReadByte( S_FPOS *from );
WORD fs_ReadWord( S_FPOS *from );
DWORD fs_ReadDword( S_FPOS *from );
/* ZORAN TC0116 >>> */
#ifdef DISC_CACHE_ENABLE
BOOL fs_PreCacheData( S_FPOS *from, long bytes );
#endif
#endif // __STREAM_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -