?? navdef.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 B_0_87 B_0_86 B_0_84 B_0_82 B_0_81 B_0_8 A_0_5 A_0_4 A_0_3 A_0_2 A_0_1 $
$Header: /I76/I76_Common/I76_Reference/Playcore/Nav_DVD/Header/NAVDEF.H 3 12/30/03 11:28a Leonh $
$Log: /I76/I76_Common/I76_Reference/Playcore/Nav_DVD/Header/NAVDEF.H $
*
* 3 12/30/03 11:28a Leonh
* Angieh:Change for DVD AUDIO navigator header.
*
* 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
*
* 3 17/01/02 16:13 Nirm
* replaced dbprintf's.
*
* 2 8/01/02 16:24 Nirm
* Corrected Include-Paths.
Revision 1.3 2000/05/20 03:58:59Z tia
Revision 1.2 2000/04/18 18:54:42 tia
Revision 1.1 2000/04/14 02:02:10 tia
Initial revision
*/
/***********************************************************************/
#include "Config.h" // Global Configuration - do not remove!
#ifndef __NAVDEF_H
#define __NAVDEF_H
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include "Include\sysdefs.h"
//#define ULONG_MAX 0xFFFFFFFFL
// logical block (LB) size
#define LB_size 2048
//#define ASSERT( condition ) if (condition) dbg_printf(("ASSERTION ERROR\n"));
// C translation of FPOS class
typedef struct {
LBN block;
DWORD offset;
}S_FPOS;
void fpos_normalize( S_FPOS *fpos, LBN b, DWORD p );
void fpos_normalize_ulong( S_FPOS *fpos, DWORD n );
void fpos_sum( S_FPOS *sum, S_FPOS *op1, S_FPOS *op2 );
S_FPOS *fpos_sum_imm( S_FPOS *fpos_op, DWORD imm_op );
#define LBN2FPOS( fposp, val ) { (fposp)->block = val; (fposp)->offset = 0; }
// Retrives block number from any FPOS
#define FPOS2LBN( fposp ) ((fposp)->block)
// The offset in bytes between a FPOS and a logical block number
#define FPOS_OFFSET( fposp, b ) ( (DWORD) (((fposp)->block - b) << 11) + (fpos)->offset)
// Implements logical non-zero tests
#define FPOS_TEST( fposp ) ( (fposp)->block || (fposp)->offset)
#endif // __SYSDEFS_H
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -