07.黃健興UDF &ISO9660 File System

You might also like

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 137

File

File System(ISO
System(ISO &
& UDF)
UDF)

主講人:黃健興
E-Mail : johnnyhuang@itri.org.tw
2003/5/24

1
著作權所有,非經工研院同意,不得翻印或轉載
Concept
Concept of
of DVD
DVD File
File System
System

2
著作權所有,非經工研院同意,不得翻印或轉載
DVD
DVD File
File System
System &the
&the related
related standard
standard

3
著作權所有,非經工研院同意,不得翻印或轉載
UDF&ISO0660
UDF&ISO0660 Volume
Volume Space
Space Overview
Overview

4
著作權所有,非經工研院同意,不得翻印或轉載
Reference
Reference Specification
Specification

5
著作權所有,非經工研院同意,不得翻印或轉載
ISO9660
ISO9660 &
& Micro
Micro UDF
UDF
• 使用 UDF Bridge v1.02 ,相容於 ISO9660 和 UDF v1.02
• ROM 碟片起始位址為 30000h
• Path Table 與 Directory Record 固定從 offset 257 的地區
開始擺放

6
著作權所有,非經工研院同意,不得翻印或轉載
File
File System
System on
on Disc
Disc

7
著作權所有,非經工研院同意,不得翻印或轉載
Example
Example of
of UDF
UDF File
File System
System
L e a d - in A r e a
R oot
V o lu m e S tr u c tu r e A r e a

Sub1 F ile S e t D e s c r ip to r
F ile E n tr y ( R o o t D ir e c to r y IC B )

Sub2 R o o t D ir e c to r y F ile Id e n tifie r D e s c r ip to r s : S u b 1 , R o o tF ile 1

F ile E n tr y (S u b 1 )
S u b 2 F ile 1 F ile E n tr y ( R o o tF ile 1 )
S u b 1 F ile Id e n tifie r D e s c r ip to r s : S u b 2 , S u b 1 F ile 1
F ile E n tr y (S u b 2 )
S u b 1 F ile 1
F ile E n tr y ( S u b 1 F ile 1 )
S u b 2 F ile Id e n tifie r D e s c r ip to r : S u b 2 F ile 1
F ile E n tr y ( S u b 2 F ile 1 )
R o o tF ile 1
R o o tF ile 1

S u b 1 F ile 1

S u b 2 F ile 1

8
著作權所有,非經工研院同意,不得翻印或轉載
List
List of
of acronyms
acronyms

• BP : Byte Position
• RBP : Relative Byte Position
• LBN : Logical Block Number
• LSN : Logical Sector Number
• PSN : Physical Sector Number
• ID : Identifier
• ICB : Information Control Block

9
著作權所有,非經工研院同意,不得翻印或轉載
Short
Short Allocation
Allocation Descriptor
Descriptor

short_ad
RBP Length Name Contents
0 4 Extent Length Uint32
4 4 Extent Position Uint32

10
著作權所有,非經工研院同意,不得翻印或轉載
Long
Long Allocation
Allocation Descriptor
Descriptor

long_ad
RBP Length Name Contents
0 4 Extent Length Uint32
4 6 Extent Position lb_addr
10 6 Implementation Use bytes

lb_addr
RBP Length Name Contents
0 4 Logical Block Number Uint32
4 2 Partition Reference Number Uint16

11
著作權所有,非經工研院同意,不得翻印或轉載
32-bit
32-bit Numerical
Numerical Value
Value
LB32 (Least significant byte first)
Decimal Hex LB32
305419896 12 34 56 78 78 56 34 12
MB32 (Most significant byte first)
Decimal Hex MB32
305419896 12 34 56 78 12 34 56 78
BB32 (Both-byte orders)
Decimal Hex BB32
305419896 12 34 56 78 78 56 34 12 12 34 56 78

12
著作權所有,非經工研院同意,不得翻印或轉載
2.1
2.1 Requirements
Requirements for
for DVD-ROM
DVD-ROM disc
disc

1. Complies with UDF Bridge Format


( ISO9660 + UDF 1.02).
2. Logical sector and block size: 2048 bytes.
3. Anchor Volume Descriptor Pointers:
LSN = 256 (100h)
and
LSN = Last_LSN and/or (Last_LSN –256)

13
著作權所有,非經工研院同意,不得翻印或轉載
2.2.1
2.2.1 Physical
Physical Sector
Sector Layout
Layout

1. Single layer type


PSN

Information area

Lead-in Data Lead-out


area area area

End_PSN

030000h

(inner) Radius (outer)

14
著作權所有,非經工研院同意,不得翻印或轉載
2.2.1
2.2.1 Physical
Physical Sector
Sector Layout
Layout (cont.)
(cont.)
2. Dual layer type with Parallel Track Path(PTP)

Information area
Lead-in Data Lead-out
area area area
Layer 1
Layer 0

End_PSN(0)
End_PSN(1)

030000h PSN of both layer

(inner) Radius (outer)

15
著作權所有,非經工研院同意,不得翻印或轉載
2.2.1
2.2.1 Physical
Physical Sector
Sector Layout
Layout (cont.)
(cont.)
3. Dual layer type with Opposite Track Path(OTP)
PSN
Information area
End_PSN(1) PSN of Layer 1

End_PSN(0)
Lead-out Data Middle are
area area a

Lead-in
area
End_PSN(0)

030000h PSN of Layer 0

(inner) Radius (outer)

16
著作權所有,非經工研院同意,不得翻印或轉載
2.2.2
2.2.2 Logical
Logical Sector
Sector Assignment
Assignment

1. Single layer type

030000h PSN End_PSN

(inner) (outer)

Data Area

0 LSN Last_LSN
Volume Space

17
著作權所有,非經工研院同意,不得翻印或轉載
2.2.2
2.2.2 Logical
Logical Sector
Sector Assignment
Assignment (cont.)
(cont.)

2. Dual layer type with Parallel Track Path(PTP)

030000h PSN End_PSN(0) 030000h PSN End_PSN(1)

(inner) (outer) (inner) (outer)

Data Area Layer 0 Data Area Layer 1

0 LSN Last_LSN

Volume Space

18
著作權所有,非經工研院同意,不得翻印或轉載
2.2.2
2.2.2 Logical
Logical Sector
Sector Assignment
Assignment (cont.)
(cont.)

3. Dual layer type with Opposite Track Path(OTP)

030000 PSN End_PSN(0) End_PSN(0) PSN End_PSN(1)


h
(inner) (outer) (outer) (inner)

Data Area Layer 0 Data Area Layer 1

0 LSN Last_LSN

Volume Space

19
著作權所有,非經工研院同意,不得翻印或轉載
2.2.3
2.2.3 Lead-in
Lead-in Area
Area
PSN=0
Initial zone ( All 00h)
PSN=2F000h
Reference code zone (2 ECC
blocks)
PSN=2F020h
Lead-in Buffer zone 1 (All 00h) (30 ECC blocks)
Area
PSN=2F200h
Control data zone (192 ECC blocks)

PSN=2FE00h
Buffer zone 2 (All 00h) (32 ECC block)

PSN=30000h (
Data Area LSN=0)

20
著作權所有,非經工研院同意,不得翻印或轉載
2.2.4
2.2.4 Control
Control Data
Data Zone
Zone

RPSN=0
Physical format information
RPSN=1
Disc Manufacturing Information
Control
Data
RPSN=2~15
Block

Control
Contents provider information
Data
Zone
RPSN=16

191 * Control_Data_Block
RPSN=3071

192*16=3072 sectors 21
著作權所有,非經工研院同意,不得翻印或轉載
2.3
2.3 Volume
Volume Structure
Structure of
of UDF
UDF Bridge
Bridge FF
ormat
ormat
The volume structure of UDF Bridge format shall contain
1. A UDF Bridge Volume Recognition Sequence.
2. A Main Volume Descriptor Sequence.
3. A Reserve Volume Descriptor Sequence.
4. A Logical Volume Integrity Sequence.
5. Two Anchor Points.

22
著作權所有,非經工研院同意,不得翻印或轉載
Example
Example of
of UDF
UDF Bridge
Bridge Volume
Volume Structure
Structure
LSN Structure LBN
0 to 15 Reserved
16 to 20 UDF Bridge
Volume Recognition Sequence
21 to 31 Reserved
32 to 47 Main Volume Descriptor Sequence Not
48 to 63 Reserve Volume Descriptor Sequence Assigned
64 to 65 Logical Volume Integrity Sequence
66 to 255 Reserved
256 First Anchor Point
257 to p-1 ISO9660 File Structure
p to UDF File Structure 0 to q-1
p+(q-1)
p+q to Last File Data Structure q to Last
LSN - 1 LBN
Last LSN Second Anchor Point
23
著作權所有,非經工研院同意,不得翻印或轉載
Example
Example of
of UDF
UDF Bridge
Bridge Volume
Volume
Structure(cont.)
Structure(cont.)
LSN Descriptors Structure LBN
0 to 15 Reserved(all 00h bytes)
16 Primary Volume Descriptor
(ISO 9660)
17 Volume Descriptor set UDF Bridge
Terminator Not
18 Beginning Extended Area Volume Assigned
Descriptor Recognition
19 NSR Descriptor Sequence
20 Terminating Extended Area
Descriptor
21 to 31 Reserved ( all 00h bytes )
24
著作權所有,非經工研院同意,不得翻印或轉載
UDF
UDF Bridge
Bridge Volume
Volume Structure(cont.)
Structure(cont.)

LSN Descriptors Structure LBN


32 Primary Volume Descriptor
(UDF)
33 Implementation Use Volume Main Not
Descriptor Volume Assigned
34 Partition Descriptor Descriptor
35 Logical Volume Descriptor Sequence
36 Unallocated Space Descriptor
37 Terminating Descriptor
38 to 47 Trailing Logical Sector
(all 00h bytes)

25
著作權所有,非經工研院同意,不得翻印或轉載
UDF
UDF Bridge
Bridge Volume
Volume Structure(cont.)
Structure(cont.)

LSN Descriptors Structure LBN


48 Primary Volume Descriptor
(UDF)
49 Implementation Use Volume
Descriptor Reserve Not
50 Partition Descriptor Volume Assigned
51 Logical Volume Descriptor Descriptor
52 Unallocated SpaceDescriptor Sequence
53 Terminating Descriptor
54 to 63 Trailing Logical Sector
(all 00h bytes)
26
著作權所有,非經工研院同意,不得翻印或轉載
UDF
UDF Bridge
Bridge Volume
Volume Structure(cont.)
Structure(cont.)

LSN Descriptors Structure LBN


64 Logical Volume Integrity Logical Volume Not
Descriptor Integrity Assigned
65 Terminating Descriptor Sequence
66 to 255 Reserved (all 00h bytes)
256 Anchor Volume First Anchor
Descriptor Pointer Point
257 to Path Table / ISO 9660
p-1 Directory Record File Structure

27
著作權所有,非經工研院同意,不得翻印或轉載
UDF
UDF Bridge
Bridge Volume
Volume Structure(cont.)
Structure(cont.)

LSN Descriptors Structure LBN


File Set Descriptor/
p to Terminating Descriptor/ UDF File 0 to q-1
p+q-1 File Identifier Descriptor/ Structure
File Entery
p+q to File Data q to
Last UDF / ISO 9660 Files Structure Last_LBN
LSN-1
Last Anchor Volume Second Anchor
LSN Descriptor Pointer Point

28
著作權所有,非經工研院同意,不得翻印或轉載
3.1
3.1 Directory
Directory Structure
Structure

Example of Directory Structure


for DVD-Video and DVD-Audio

Root

VIDEO_TS

AUDIO_TS

User defined

29
著作權所有,非經工研院同意,不得翻印或轉載
3.1
3.1 Directory
Directory Structure
Structure (cont.)
(cont.)

VIDEO_TS

VIDEO_TS.IF (VMGI)
O
VIDEO_TS.VOB (VMGM_VOBS) VMG
(Video Manager)
VIDEO_TS.BUP (VMGI_BUP)

VTS_01_0.IFO (VTSI)

VTS_01_0.VOB (VTSM_VOBS)

VTS_01_1.VOB (VTS_TT_VOBS) VTS #1


(Video Title Set)
VTS_01_2.VOB (VTS_TT_VOBS)

VTS_01_0.BUP (VTSI_BUP)

30
著作權所有,非經工研院同意,不得翻印或轉載
3.1
3.1 Directory
Directory Structure
Structure (cont.)
(cont.)

AUDIO_TS

AUDIO_TS.IF (AMGI)
O AMG
AUDIO _TS.BUP (AMGI_BUP) (Audio Manager)

ATS_01_0.IFO (ATSI)

ATS_01_1.AOB (ATS_TT_AOBS) ATS


(Audio Title
ATS_01_0.BUP (ATSI_BUP) Set)

31
著作權所有,非經工研院同意,不得翻印或轉載
DVD VIDEO Disc
(Elton John Love Songs)

Directory of J:\

VIDEO_TS <DIR> 10-14-97 0:58 VIDEO_TS


0 file(s) 0 bytes
1 dir(s) 0.00 MB free

Directory of J:\VIDEO_TS

. <DIR> 10-14-97 0:58 .


.. <DIR> 10-14-97 0:58 ..
VIDEO_TS BUP 12,288 10-14-97 0:58 VIDEO_TS.BUP VMG
VIDEO_TS IFO 12,288 10-14-97 0:58 VIDEO_TS.IFO
VIDEO_TS VOB 507,904 10-14-97 0:58 VIDEO_TS.VOB
32
著作權所有,非經工研院同意,不得翻印或轉載
VTS_01_0 BUP 51,200 10-14-97 0:58 VTS_01_0.BUP
VTS_01_0 IFO 51,200 10-14-97 0:58 VTS_01_0.IFO
VTS #1
VTS_01_0 VOB 10,240 10-14-97 0:58 VTS_01_0.VOB
VTS_01_1 VOB 1,073,709,056 10-14-97 0:58 VTS_01_1.VOB
VTS_01_2 VOB 1,073,709,056 10-14-97 0:58 VTS_01_2.VOB
VTS_01_3 VOB 963,502,080 10-14-97 0:58 VTS_01_3.VOB

VTS_02_0 BUP 47,104 10-14-97 0:58 VTS_02_0.BUP


VTS #2
VTS_02_0 IFO 47,104 10-14-97 0:58 VTS_02_0.IFO
VTS_02_0 VOB 10,240 10-14-97 0:58 VTS_02_0.VOB
VTS_02_1 VOB 1,073,709,056 10-14-97 0:58 VTS_02_1.VOB
VTS_02_2 VOB 1,073,709,056 10-14-97 0:58 VTS_02_2.VOB
VTS_02_3 VOB 669,065,216 10-14-97 0:58 VTS_02_3.VOB

15 file(s) 5,653.53 MB
2 dir(s) 0.00 MB free

33
著作權所有,非經工研院同意,不得翻印或轉載
3.2
3.2 Example
Example of
of UDF
UDF File
File Structure
Structure
LBN Descriptors Structure
0 File Set Descriptor File Set Descriptor Sequence
1 Terminating Descriptor
2 File Entry ( Root Directory ) Root ICB
3 File Identifier Descriptor ( parent directory )
File Identifier Descriptor ( VIDEO_TS ) Root Directory
File Identifier Descriptor ( AUDIO_TS )
4 File Entry ( VIDEO_TS ) VIDEO_TS ICB
5 File Identifier Descriptor ( parent directory )
File Identifier Descriptor ( VIDEO_TS.IFO )
File Identifier Descriptor ( VIDEO_TS.VOB )
File Identifier Descriptor ( VIDEO_TS.BUP )
File Identifier Descriptor ( VTS_01_0.IFO ) VIDEO_TS Directory
File Identifier Descriptor ( VTS_01_0.VOB )
File Identifier Descriptor ( VTS_01_1.VOB )
File Identifier Descriptor ( VTS_01_0.VOB )
File Identifier Descriptor ( VTS_01_0.BUP )
34
著作權所有,非經工研院同意,不得翻印或轉載
3.2
3.2 Example
Example of
of UDF
UDF File
File Structure(con
Structure(con
t.)
t.)

LBN Descriptors Structure


6 File Entry ( VIDEO_TS.IFO )
7 File Entry ( VIDEO_TS.VOB )
8 File Entry ( VIDEO_TS.BUP )
9 File Entry ( VTS_01_0.IFO ) VIDEO_TS Files ICB
10 File Entry ( VTS_01_0.VOB )
11 File Entry ( VTS_01_1.VOB )
12 File Entry ( VTS_01_2.VOB )
13 File Entry ( VTS_01_0.BUP )

35
著作權所有,非經工研院同意,不得翻印或轉載
Find
Find UDF
UDF File
File Set
Set Descriptor
Descriptor
How to define P
Volume Volume Descriptor
Recognition Sequence
Sequence
Partition P
ANCHOR
ANCHOR
Partition
Descriptor
Descriptor
+ File
FileSet
Set
Descriptor
Descriptor

NSR
NSR Logical
Descriptor Logical
Descriptor Volume
Volume
Descriptor
Descriptor LBN

36
著作權所有,非經工研院同意,不得翻印或轉載
UDF
UDF File
File Reading
Reading Procedure
Procedure

ICB ICB ICB

FSD
FSD FE
FE FID
FID FE
FE FID
FID FE
FE

FID
FID FE
FE FID
FID FE
FE

FID FE FID
FID FE
FE
FID FE
FID
FID FE
FE

FILE
FILE

Root Directory Subdirectory

37
著作權所有,非經工研院同意,不得翻印或轉載
UDF
UDF File
File Reading
Reading Procedure(cont.)
Procedure(cont.)

38
著作權所有,非經工研院同意,不得翻印或轉載
How
How to
to Read
Read UDF
UDF Volume
Volume and
and File
File
Structure
Structure

PROCEDURE 1. Volume Recognition Sequence

1. A volume recognition area shall start logical sector 16.


2. Find a NSR Descriptor in which the Standard Identifier field
shall contain “NSR02”.

39
著作權所有,非經工研院同意,不得翻印或轉載
How
How to
to Read
Read UDF
UDF Volume
Volume and
and File
File
Structure
Structure (cont.)
(cont.)

PROCEDURE 2. Anchor Point

1. Read the first Anchor Point located at logical sector 256 whic
h specifies the location of a Main Volume Descriptor Sequence
.
2. If the first Anchor Point couldn’t be read, read the second Anc
hor Point located at Last LSN.

40
著作權所有,非經工研院同意,不得翻印或轉載
How
How to
to Read
Read UDF
UDF Volume
Volume and
and File
File
Structure
Structure (cont.)
(cont.)

PROCEDURE 3. Volume Descriptor Sequence

1. Read the Main Volume Descriptor Sequence, if this sequence c


ouldn’t be read, a Reserve Volume Descriptor Sequence shoul
d be read.
2. Find the location of a File Set Descriptor which is specified in a
Logical Volume Descriptor of the sequence.
3. Find the partition starting location (p) which is specified in a
Partition Descriptor of the sequence.

41
著作權所有,非經工研院同意,不得翻印或轉載
How
How to
to Read
Read UDF
UDF Volume
Volume and
and File
File
Structure
Structure (cont.)
(cont.)

PROCEDURE 4. File Set Descriptor

1. Read the File Set Descriptor.


2. Find the location and length of a File Entry (FE) describing a
root directory.

42
著作權所有,非經工研院同意,不得翻印或轉載
How
How to
to Read
Read UDF
UDF Volume
Volume and
and File
File
Structure
Structure (cont.)
(cont.)

PROCEDURE 5. Root directory File Entry

1. Read the root directory File Entry.


2. Find the attributes and location of root directory.

43
著作權所有,非經工研院同意,不得翻印或轉載
How
How to
to Read
Read UDF
UDF Volume
Volume and
and File
File
Structure
Structure (cont.)
(cont.)
PROCEDURE 6. Root directory

1. Read the root directory which is consist of File Identifier


Descriptors(FID).
2. Find the File Identifier Descriptor in which a File Identifier field
identifies VIDEO_TS and a File Characteristics field specifies
that the file is a directory.
3. Read the File Identifier Descriptor and find the location of File
Entry describing the VIDEO_TS directory.

44
著作權所有,非經工研院同意,不得翻印或轉載
How
How to
to Read
Read UDF
UDF Volume
Volume and
and File
File
Structure
Structure (cont.)
(cont.)
PROCEDURE 7. File Entry of VIDEO_TS directory

1. Read the File Entry of VIDEO_TS directory.


2. Find the location and length of the VIDEO_TS
directory.

45
著作權所有,非經工研院同意,不得翻印或轉載
How
How to
to Read
Read UDF
UDF Volume
Volume and
and File
File
Structure
Structure (cont.)
(cont.)
PROCEDURE 8. VIDEO_TS directory

1. Read the VIDEO_TS directory, which consists of File


Identifier Descriptors (FID).
2. Find the File Identifier Descriptor in which a File Identifier
field identifies VIDEO_TS.IFO and File Characteristics field
specifies that the file is not a directory.
3. Read the File Identifier Descriptor and find the location of a
File Entry describing the VIDEO_TS.IFO file.

46
著作權所有,非經工研院同意,不得翻印或轉載
How
How to
to Read
Read UDF
UDF Volume
Volume and
and File
File
Structure
Structure (cont.)
(cont.)

PROCEDURE 9. File Entry of VIDEO_TS.IFO

1. Read the File Entry of the VIDEO_TS.IFO .


2. Find the location of the VIDEO_TS.IFO file.

47
著作權所有,非經工研院同意,不得翻印或轉載
2.4
2.4 UDF
UDF Bridge
Bridge Volume
Volume Recognition
Recognition Se
Se
quence
quence

[Volume Recognition Sequence]


{
<CD-ROM Volume Descriptor Set> 1

[Extended Area]
{
<Beginning Extended Area Descriptor> 1
{<Volume Structure Descriptor>|<Boot Descriptor>} n+
<Terminating Extended Area Descriptor> 1
} 1
}

48
著作權所有,非經工研院同意,不得翻印或轉載
2.4.1
2.4.1 Beginning
Beginning Extended
Extended Area
Area Descrip
Descrip
tor
tor
BP Length Field Name Contents
0 1 Structure Type Uint8 = 0
1 5 Structure Identifier bytes = “BEA01”
6 1 Structure Version Uint8 = 1
7 2041 Structure Data 00h bytes

Total = 2048 bytes

49
著作權所有,非經工研院同意,不得翻印或轉載
2.4.2
2.4.2 NSR
NSR Descriptor
Descriptor
(Non-Sequential-Recording)
(Non-Sequential-Recording)
BP Length Field Name Contents
0 1 Structure Type Uint8 = 0
1 5 Structure Identifier bytes = “NSR02”
6 1 Structure Version Uint8 = 1
7 1 Reserved 00h byte
8 2040 Structure Data 00h bytes

Total = 2048 bytes

50
著作權所有,非經工研院同意,不得翻印或轉載
NSR
NSR Descriptor(LSN=13h)
Descriptor(LSN=13h)

51
著作權所有,非經工研院同意,不得翻印或轉載
2.4.3
2.4.3 Terminating
Terminating Extended
Extended Area
Area Descr
Descr
iptor
iptor
BP Length Field Name Contents
0 1 Structure Type Uint8 = 0
1 5 Structure Identifier bytes = “TEA01”
6 1 Structure Version Uint8 = 1
7 2041 Structure Data 00h bytes

Total = 2048 bytes

52
著作權所有,非經工研院同意,不得翻印或轉載
2.5
2.5 Anchor
Anchor Point
Point

BP Length Field Name Contents


0 16 Descriptor Tag Tag ( Tag ID = 2 )
16 8 Main volume Descriptor extent_ad
Sequence Extent
24 8 Reserve Volume Descriptor extent_ad
Sequence Extent
32 480 Reserved 00h byte

Total = 512 bytes

53
著作權所有,非經工研院同意,不得翻印或轉載
Anchor
Anchor Point(LSN=100h)
Point(LSN=100h)

54
著作權所有,非經工研院同意,不得翻印或轉載
Descriptor
Descriptor Tag
Tag of
of Anchor
Anchor Point
Point

55
著作權所有,非經工研院同意,不得翻印或轉載
2.6
2.6 Volume
Volume Descriptor
Descriptor Sequence
Sequence
[Volume Descriptor Sequence Extent]
{
<Volume Descriptor> 5

[Terminator]
{
<Terminating Descriptor>
}
<Trailing Logical Sector> 0+
}

56
著作權所有,非經工研院同意,不得翻印或轉載
2.6
2.6 Volume
Volume Descriptor
Descriptor Sequence
Sequence (cont.)
(cont.)

A volume descriptor shall be one of the following types :

1. Primary Volume Descriptor


2. Implementation Use Volume Descriptor
3. Partition Descriptor
4. Logical Volume Descriptor
5. Unallocated Space Descriptor

57
著作權所有,非經工研院同意,不得翻印或轉載
Descriptor
Descriptor Tag
Tag
RBP Length Name Contents
0 2 Tag Identifier Uint16 (ECMA167/1/7.1.3)
2 2 Descriptor Version Uint16
4 1 Tag CheckSum Uint8 (ECMA167/1/7.1.1)
5 1 Reserved #00 byte
6 2 Tag Serial Number Uint16
8 2 Descriptor CRC Uint16
10 2 Descriptor CRC Length Uint16
12 4 Tag Location Uint32 (ECMA167/1/7.1.5)

58
著作權所有,非經工研院同意,不得翻印或轉載
Tag
Tag Identifier
Identifier
Tag_ID Interpretation
1 Primary Volume Descriptor ( ECMA167/3/10.1)
2 Anchor Volume Descriptor Pointer (ECMA167/3/10.2)
3 Volume Descriptor Pointer (ECMA167/3/10.3)
4 Implementation Use Volume Descriptor (ECMA167/3/10.4)
5 Partition Descriptor (ECMA167/3/10.5)
6 Logical Volume Descriptor (ECMA167/3/10.6)
7 Unallocated SpaceDescriptor (ECMA167/3/10.8)
8 Terminating Descriptor (ECMA167/3/10.9 and 4/14.2)
9 Logical Volume Integrity Descriptor (ECMA167/3/10.10)

59
著作權所有,非經工研院同意,不得翻印或轉載
2.6.1
2.6.1 Primary
Primary Volume
Volume Descriptor
Descriptor (UD
(UD
F)
F)
BP Length Field Name Contents
0 16 Descriptor Tag Tag (Tag Identifier =1 )
16 4 Volume Descriptor Sequence LB32
Number
20 4 Primary Volume Descriptor Number LB32
24 32 Volume Identifier dstring
56 2 Volume Sequence Number LB16=1 (DVD-ROM)
58 2 Maximum Volume Sequence Number LB16=1 (DVD-ROM)
60 2 Interchange Level LB16=2 (DVD-ROM)
62 2 Maximum Interchange Level LB16=2 (DVD-ROM)
64 4 Character Set Identifier LB32=1 (UDF 2.2.2.3)
68 4 Maximum Character Set Identifier LB32=1 (UDF 2.2.2.3)
72 128 Volume Set Identifier dstring
200 64 Descriptor Character Set Charspec(UDF 2.1.2)
264 64 Explanatory Character Set Charspec(UDF 2.1.2)

60
著作權所有,非經工研院同意,不得翻印或轉載
2.6.1
2.6.1 Primary
Primary Volume
Volume Descriptor
Descriptor (UD
(UD
F)
F) (cont.)
(cont.)
BP Length Field Name Contents
328 8 Volume Abstract extent_ad
336 8 Volume Copyright Notice extent_ad
344 32 Application Identifier EntityID
376 12 Recording Date and Time timestamp
388 32 Implementation Identifier EntityID(see UDF 2.1.5)
420 64 Implementation Use bytes
484 4 Predecessor Volume Descriptor LB32
Sequence Location
488 2 Flags LB16
490 22 Reserved 00h bytes

61
著作權所有,非經工研院同意,不得翻印或轉載
Primary
Primary Volume
Volume Descriptor(LSN=20h)
Descriptor(LSN=20h)

62
著作權所有,非經工研院同意,不得翻印或轉載
2.6.2
2.6.2 Implementation
Implementation Use
Use Volume
Volume Desc
Desc
riptor
riptor
BP Length Field Name Contents
0 16 Descriptor Tag tag (Tag Identifier = 4 )
16 4 Volume Descriptor LB32
Sequence Number
20 32 Implementation EntityID (see UDF 2.1.5
Identifier and 2.2.7.1)
52 460 Implementation Use bytes (see 2.6.3)

Total = 512 bytes

63
著作權所有,非經工研院同意,不得翻印或轉載
2.6.3
2.6.3 Implementation
Implementation Use
Use field
field

RBP Length Field Name Contents


0 64 LVI Charset Charspec (see UDF 2.1.2)
64 128 Logical VolumeIdentifier dstring
192 36 LV Info1 dstring
228 36 LV Info2 dstring
264 36 LV Info3 dstring
300 32 Implementation ID EntityID (see UDF 2.1.5)
332 128 Implementation Use bytes

Total = 460bytes

64
著作權所有,非經工研院同意,不得翻印或轉載
Implementation
Implementation Use
Use Volume
Volume
Descriptor(LSN=21h)
Descriptor(LSN=21h)

65
著作權所有,非經工研院同意,不得翻印或轉載
2.6.4
2.6.4 Partition
Partition Descriptor
Descriptor
BP Length Field Name Contents
0 16 Descriptor Tag Tag ( Tag Identifier = 5 )
16 4 Volume Descriptor Sequence LB32
Number
20 2 Partition Flags LB16
22 2 Partition Number LB16
24 32 Partition Contents EntityID
56 128 Partition Contents Use Bytes
184 4 Access Type LB32 = 1 (DVD-ROM)
188 4 Partition Starting Location LB32
192 4 Partition Length LB32
196 32 Implementation Identifier EntityID
228 128 Implementation Use Bytes
356 156 Reserved 00h bytes

66
著作權所有,非經工研院同意,不得翻印或轉載
2.6.5
2.6.5 Partition
Partition Contents
Contents field
field

RBP Length Field Name Contents


0 1 Flags Uint8 = 00000010b (DVD-ROM)
1 23 Identifier bytes = “+NSR02” (DVD-ROM)
24 8 Identifier Suffix bytes

Total = 32 bytes

67
著作權所有,非經工研院同意,不得翻印或轉載
2.6.6
2.6.6 Partition
Partition Header
Header Descriptor
Descriptor of
of Pa
Pa
rtition
rtition Contents
Contents Use
Use field
field
RBP Length Field Name Contents
0 8 Unallocated Space Table Short_ad = all 0’s (DVD-ROM)
8 8 Unallocated Space Bitmap Short_ad = all 0’s (DVD-ROM)
16 8 Partition Integrity Table Short_ad = all 0’s (UDF 2.3.3.1)
24 8 Freed Space Table Short_ad = all 0’s (DVD-ROM)
32 8 Freed Space Bitmap Short_ad = all 0’s (DVD-ROM)
40 88 Reserved 00h bytes

Total = 128 bytes

68
著作權所有,非經工研院同意,不得翻印或轉載
Partition
Partition Descriptor(LSN=22h)
Descriptor(LSN=22h)

69
著作權所有,非經工研院同意,不得翻印或轉載
2.6.7
2.6.7 Logical
Logical Volume
Volume Descriptor
Descriptor
BP Length Field Name Contents
0 16 Descriptor Tag Tag(Tag Identifier = 6 )
16 4 Volume Descriptor Sequence Number LB32
20 64 Descriptor Character Set charspec
84 128 Logical Volume Identifier dstring
212 4 Logical Block Size LB32 = 2048
216 32 Domain Identifier EntityID
248 16 Logical Volume Contents Use long_ad
264 4 Map Table Length LB32 = 6
268 4 Number of Partition Maps LB32 = 1
272 32 Implementation Identifier EntityID
304 128 Implementation Use bytes
432 8 Integrity Sequence Extent extent_ad
440 6 Partition Map(s) bytes

70
著作權所有,非經工研院同意,不得翻印或轉載
Logical
Logical Volume
Volume Descriptor
Descriptor (LSN=23h)
(LSN=23h)

71
著作權所有,非經工研院同意,不得翻印或轉載
2.6.8
2.6.8 Type
Type 11 Partition
Partition Map
Map
RBP Length Field Name Contents
0 1 Partition Map Type Uint8 = 1 (UDF2.2.4.6)
1 1 Partition Map Length Uint8 = 6
2 2 Volume Sequence Number LB16 = 1 (DVD-ROM)
4 2 Partition Number LB16

Total = 6 bytes

72
著作權所有,非經工研院同意,不得翻印或轉載
2.6.9
2.6.9 Unallocated
Unallocated Space
Space Descriptor
Descriptor
BP Length Field Name Contents
0 16 Descriptor Tag tag ( Tag Identifier = 7 )
16 4 Volume Descriptor LB32
Sequence Number
20 4 Number of Allocation LB32 = 0 (DVD-ROM)
Descriptor
24 0 Allocation Descriptors Extent_ad

Total = 24 bytes

73
著作權所有,非經工研院同意,不得翻印或轉載
2.6.10
2.6.10 Terminating
Terminating Descriptor
Descriptor
BP Length Field Name Contents
0 16 Descriptor Tag Tag ( Tag Identifier =8 )
16 496 Reserved 00h bytes

Total = 512 bytes

74
著作權所有,非經工研院同意,不得翻印或轉載
2.7
2.7 Logical
Logical Volume
Volume Integrity
Integrity Sequence
Sequence

[Logical Volume Integrity Descriptor Sequence Extent]


{
<Close Logical Volume Integrity Descriptor> 1+

[Terminator]
{
<Terminating Descriptor> | <empty logical sector>
} 0+
}1

75
著作權所有,非經工研院同意,不得翻印或轉載
2.7.1
2.7.1 Logical
Logical Volume
Volume Integrity
Integrity Descriptor
Descriptor
BP Length Field Name Contents
0 16 Descriptor Tag Tag(Tag Identifier = 9 )
16 12 Recording Date timestamp
28 4 Integrity Type LB32 = 1(DVD-ROM)
32 8 Next Integrity Extent Extent_ad=0h(DVD-ROM)
40 32 Logical Volume Contents Use (2.7.2) bytes
72 4 Number of Partitions LB32 = 1(DVD-ROM)
76 4 Length of Implementation Use(L_IU) LB32
80 4 Free Space Table LB32 = 0(DVD-ROM)
84 4 Size Table LB32
88 L_IU Implementation Use (2.7.3) bytes

Total = 88+L_IU bytes

76
著作權所有,非經工研院同意,不得翻印或轉載
2.7.2
2.7.2 Logical
Logical Volume
Volume Header
Header Descriptor
Descriptor
of
of Logical
Logical Volume
Volume Contents
Contents Use
Use field
field
RBP Length Field Name Contents
0 8 Unique ID LB64
8 24 Reserved 00h bytes

Total = 32 bytes

77
著作權所有,非經工研院同意,不得翻印或轉載
2.7.3
2.7.3 Implementation
Implementation Use
Use field
field

RBP Length Field Name Contents


0 32 Implementation ID Entity ID (UDF 2.1.5)
32 4 Number of Files LB32
36 4 Number of Directories LB32
40 2 Minimum UDF Read Revision LB16
42 2 Minimum UDF Write Revision LB16
44 2 Maximum UDF Write Revision LB16
46 a Implementation Use bytes

a = L_IU – 46
Total = L_IU bytes

78
著作權所有,非經工研院同意,不得翻印或轉載
2.8
2.8 CD-ROM
CD-ROM Volume
Volume Descriptor
Descriptor Set
Set

[CD-ROM Volume Descriptor Sequence]


{
<CD-ROM Volume Descriptor> 1+

[Terminator]
{
<Volume Descriptor Set Terminator> 1+
}
}

79
著作權所有,非經工研院同意,不得翻印或轉載
2.8
2.8 CD-ROM
CD-ROM Volume
Volume Descriptor
Descriptor Set
Set (con
(con
t.)
t.)

A CD-ROM Volume Descriptor shall be one of the


following types:

1. Primary Volume Descriptor.


2. Supplementary Volume Descriptor.(ISO9660 8.5)
3. Volume Descriptor Set Terminator.
4. Boot Record.(ISO9660 8.2)
5. Volume Partition Descriptor.( ISO9660 8.6)

80
著作權所有,非經工研院同意,不得翻印或轉載
2.8.1
2.8.1 Primary
Primary Volume
Volume Descriptor
Descriptor (ISO9660)
(ISO9660)

BP Length Field Name Contents


0 1 Volume Descriptor Type UINT8 =1
1 5 Standard Identifier Bytes = “CD001”
6 1 Volume Descriptor Version UINT8 =1
7 1 Unused Field 00h bytes
8 32 System Identifier a-characters
40 32 Volume Identifier d-characters
72 8 Unused Field 00h bytes
80 8 Volume Space Size BB32
88 32 Unused Field 00h bytes

81
著作權所有,非經工研院同意,不得翻印或轉載
2.8.1
2.8.1 Primary
Primary Volume
Volume Descriptor
Descriptor (ISO9
(ISO9
660)
660) (cont.)
(cont.)
BP Length Field Name Contents
120 4 Volume Set Size BB16=1 (DVD-ROM)
124 4 Volume Sequence Number BB16=1 (DVD-ROM)
128 4 Logical Block Size BB16=2048 (DVD-ROM)
132 8 Path Table Size BB32
140 4 Location of Occurrence of Type LB32
L Path Table
144 4 Location of Optional Occurrence LB32
of Type L Path Table
148 4 Location of Occurrence of Type MB32
M Path Table
152 4 Location of Optional Occurrence MB32
of Type M Path Table

82
著作權所有,非經工研院同意,不得翻印或轉載
2.8.1
2.8.1 Primary
Primary Volume
Volume Descriptor
Descriptor (ISO9
(ISO9
660)
660) (cont.)
(cont.)
BP Length Field Name Contents
156 34 Directory Record for Root bytes
Directory
190 128 Volume Set Identifier d-characters
318 128 Publisher Identifier a-characters
446 128 Data Preparer Identifier a-characters
574 128 Application Identifier a-characters
702 37 Copyright File Identifier d-characters,
separator 1, separator 2
739 37 Abstract File Identifier d-characters,
separator 1, separator 2
776 37 Bibliographic File Identifier d-characters,
separator 1, separator 2

83
著作權所有,非經工研院同意,不得翻印或轉載
2.8.1
2.8.1 Primary
Primary Volume
Volume Descriptor
Descriptor (ISO9
(ISO9
660)
660) (cont.)
(cont.)
BP Length Field Name Contents
813 17 Volume Creation Date and Time Digits
830 17 Volume Modification Date and Time Digits
847 17 Volume Expiration Date and Time Digits
864 17 Volume Effective Date and Time Digits
881 1 File Structure Version Uint8 = 1
882 1 Reserved 00h bytes
883 512 Application Use Not specified
1395 653 Reserved 00h bytes

Total = 2048 bytes

84
著作權所有,非經工研院同意,不得翻印或轉載
Example
Example of
of ISO9660
ISO9660 PVD(LBN=10h)
PVD(LBN=10h)

85
著作權所有,非經工研院同意,不得翻印或轉載
Volume
Volume Descriptor
Descriptor Type
Type

• 0 : Boot Record
• 1 : Primary Volume Descriptor
• 2 :Supplementary Volume Descriptor
• 3 :Volume Partition Descriptor
• 255 :Volume Descriptor Set Terminator

86
著作權所有,非經工研院同意,不得翻印或轉載
2.8.2
2.8.2 Volume
Volume Descriptor
Descriptor Set
Set Terminator
Terminator

BP Length Field Name Contents


0 1 Volume Descriptor Type Uint8 =255
1 5 Standard Identifier bytes = “CD001”
6 1 Volume Descriptor Version Uint8 = 1
7 2041 Reserved 00h bytes

Total = 2048 bytes

87
著作權所有,非經工研院同意,不得翻印或轉載
3.3
3.3 UDF
UDF File
File Set
Set Descriptor
Descriptor Sequence
Sequence

[File Set Descriptor Sequence Extent]


{
<File Set Descriptor> 1

[Terminator]
{
<Terminating Descriptor > | <empty logical block >
} 0+
}

88
著作權所有,非經工研院同意,不得翻印或轉載
3.3.1
3.3.1 File
File Set
Set Descriptor
Descriptor
BP Length Field Name Contents
0 16 Descriptor Tag tag(Tag ID = 256 )
16 12 Recording Date and Time timestamp
28 2 Interchange Level LB16 = 3
30 2 Maximum Interchange Level LB16 = 3
32 4 Character Set List LB32 = 00000001h
36 4 Maximum Character Set List LB32 = 00000001h
40 4 File Set Number LB32 = 0
44 4 File Set descriptor Number LB32 = 0
48 64 Logical Volume Identifier charaspec
Character Set
112 128 Logical Volume Identifier dstring

89
著作權所有,非經工研院同意,不得翻印或轉載
3.3.1
3.3.1 File
File Set
Set Descriptor
Descriptor (cont.)
(cont.)
BP Length Field Name Contents
240 64 File Set Character Set charaspec
304 32 File Set Identifier dstring
336 32 Copyright File Identifier dstring
368 32 Abstract File Identifier dstring
400 16 Root Directory ICB long_ad
416 32 Domain Identifier EntityID
448 16 Next Extent long_ad = all 0’s
464 1584 Reserved 00h bytes

Total = 2048 bytes

90
著作權所有,非經工研院同意,不得翻印或轉載
File
File Set
Set Descriptor
Descriptor (LSN=105h)
(LSN=105h) page1
page1

91
著作權所有,非經工研院同意,不得翻印或轉載
File
File Set
Set Descriptor
Descriptor (LSN=105h)
(LSN=105h) page2
page2

92
著作權所有,非經工研院同意,不得翻印或轉載
3.3.2
3.3.2 Terminating
Terminating Descriptor
Descriptor

BP Length Field Name Contents


0 16 Descriptor Tag Tag ( Tag Identifier =8 )
16 496 Reserved 00h bytes

Total = 512 bytes

93
著作權所有,非經工研院同意,不得翻印或轉載
3.4.1
3.4.1 File
File Identifier
Identifier Descriptor
Descriptor
RBP Length Field Name Contents
0 16 Descriptor Tag tag ( Tag ID = 257 )
16 2 File Version Number LB16 = 1
18 1 File Characteristics Uint8
19 1 Length of File Identifier(=L_FI) Uint8
20 16 ICB long_ad
36 2 Length of Implementation Use LB16
( L_IU )
38 L_IU Implementation Use EntityID
a L_FI File Identifier d-characters
b c Padding 00h bytes
a=L_IU+38
b=L_FI+L_IU+38
c=4*ip((L_FI+L_IU+38+3)/4)-( L_FI+L_IU+38)
94
著作權所有,非經工研院同意,不得翻印或轉載
3.5.1
3.5.1 File
File Entry
Entry

BP Length Field Name Contents


0 16 Descriptor Tag tag(Tag Identifier = 261)
16 20 ICB Tag (3.5.2) icbtag
36 4 Uid LB32
40 4 Gid LB32
44 4 Permissions (3.5.4) LB32
48 2 File Link Count LB16
50 1 Recorded Format Uint8 = 0
51 1 Recorded Display Attributes Uint8 = 0
52 4 Record Length LB32 = 0
56 8 Information Length LB64
64 8 Logical Block Recorded LB64

95
著作權所有,非經工研院同意,不得翻印或轉載
3.5.1
3.5.1 File
File Entry
Entry (cont.)
(cont.)
BP Length Field Name Contents
72 12 Access Time timestamp
84 12 Modification Time timestamp
96 12 Attribute Time timestamp
108 4 Checkpoint LB32=1
112 16 Extended Attribute ICB long_ad = all 0’s
128 32 Implementation Identifier EntityID
160 8 Unique Id LB64
168 4 Length of Extended Attributes LB32 = 0
(L_EA)
172 4 Length of Allocation Descriptors LB32 = 8
(L_AD)
176 L_EA Extended Attributes (3.6) bytes
a L_AD Allocation Descriptors bytes
a = L_EA + 176
96
著作權所有,非經工研院同意,不得翻印或轉載
File
File Entry
Entry of
of Root
Root Dir.(LSN=107h)
Dir.(LSN=107h) page1
page1

97
著作權所有,非經工研院同意,不得翻印或轉載
File
File Entry
Entry of
of Root
Root Dir.(LSN=107h)
Dir.(LSN=107h) page2
page2

98
著作權所有,非經工研院同意,不得翻印或轉載
3.5.2
3.5.2 ICB
ICB Tag
Tag

RBP Length Field Name Contents


0 4 Prior Recorded Number of Direct Entries LB32
4 2 Strategy Type LB16
6 2 Strategy Parameter LB16
8 2 Maximum Number of Entries LB16
10 1 Reserved 00h bytes
11 1 File Type Uint8
12 6 Parent ICB Location lb_addr
18 2 Flags (see 3.5.3) LB16

99
著作權所有,非經工研院同意,不得翻印或轉載
3.5.3
3.5.3 Flags
Flags field
field in
in ICB
ICB Tag
Tag
Bit Description Contents
0-2 Type of Allocation Descriptor 0
3 Directory Sort 0
4 Non-relocatable 0 or 1
5 Archive 0 or 1
6 Setuid 0 or 1
7 Setgid 0 or 1
8 Sticky 0 or 1
9 Contiguous 0 or 1
10 System 0 or 1
11 Transformed 0
12 Multi-versions 0
13-15 Reserved 0

100
著作權所有,非經工研院同意,不得翻印或轉載
3.5.4
3.5.4 Permissions
Permissions field
field in
in File
File Entry
Entry
Bit Description Contents
0 Other Execute 0 or 1
1 Other Write 0
2 Other Read 0 or 1
3 Other Change Attribute 0
4 Other Delete 0
5 Group Execute 0 or 1
6 Group Write 0
7 Group Read 0 or 1
8 Group Change Attribute 0
9 Group Delete 0
10 Owner Execute 0 or 1
11 Owner Write 0
12 Owner Read 0 or 1
13 Owner Change Attribute 0
14 Owner Delete 0
15-31 Reserved 0

101
著作權所有,非經工研院同意,不得翻印或轉載
3.6.1
3.6.1 Extended
Extended Attribute
Attribute Header
Header Descri
Descri
ptor
ptor
RBP Length Field Name Contents
0 16 Descriptor Tag tag(Tag ID = 262)
16 4 Implementation Attributes LB32
Location
20 4 Application Attributes Location LB32

Total = 24 bytes

102
著作權所有,非經工研院同意,不得翻印或轉載
3.6.2
3.6.2 Implementation
Implementation Use
Use Extended
Extended Attr
Attr
ibute
ibute
RBP Length Field Name Contents
0 4 Attribute Type LB32 = 2048
4 1 Attribute Subtype Uint8 = 1
5 3 Reserved 00h bytes
8 4 Attribute Length LB32
12 4 Implementation Use Length LB32
16 32 Implementation Identifier EntityID(UDF2.1.5)
48 IU_L Implementation Use bytes

103
著作權所有,非經工研院同意,不得翻印或轉載
3.6.3
3.6.3 Free
Free Extended
Extended Attribute
Attribute Space
Space of
of
Implementation
Implementation Use
Use field
field
RBP Length Field Name Contents
0 2 Header Checksum (UDF 3.3.4.5) LB16
2 2 Free EA Space bytes = 0

Total = 4 bytes

104
著作權所有,非經工研院同意,不得翻印或轉載
3.6.4
3.6.4 Copyright
Copyright Management
Management Information
Information
of
of Implementation
Implementation Use
Use field
field
RBP Length Field Name Contents
0 2 Header Checksum (UDF 3.3.4.5) LB16
2 1 CGMS Information byte
3 1 Data Structure Type Uint8
4 4 Protection System Information bytes

Total = 8
bytes

105
著作權所有,非經工研院同意,不得翻印或轉載
Root
Root Directory(LSN=108h)
Directory(LSN=108h) page1
page1

Ref. p.80
3.4.1 File Identifier
著作權所有,非經工研院同意,不得翻印或轉載 Descriptor
106
Root
Root Directory(LSN=108h)
Directory(LSN=108h) page2
page2

107
著作權所有,非經工研院同意,不得翻印或轉載
Root
Root Directory(LSN=108h)
Directory(LSN=108h) page3
page3

108
著作權所有,非經工研院同意,不得翻印或轉載
File
File Entry
Entry of
of VIDEO_TS
VIDEO_TS (LSN=109h)
(LSN=109h) page1
page1

109
著作權所有,非經工研院同意,不得翻印或轉載
File
File Entry
Entry of
of VIDEO_TS
VIDEO_TS (LSN=109h)
(LSN=109h) page2
page2

110
著作權所有,非經工研院同意,不得翻印或轉載
VIDEO_TS
VIDEO_TS Dir.(LSN=10Ah)
Dir.(LSN=10Ah) page1
page1

111
著作權所有,非經工研院同意,不得翻印或轉載
VIDEO_TS
VIDEO_TS Dir.(LSN=10Ah)
Dir.(LSN=10Ah) page2
page2

112
著作權所有,非經工研院同意,不得翻印或轉載
File
File Entry:VIDEO_TS.IFO(LSN=10Ch)
Entry:VIDEO_TS.IFO(LSN=10Ch) page1
page1

113
著作權所有,非經工研院同意,不得翻印或轉載
File
File Entry:VIDEO_TS.IFO(LSN=10Ch)
Entry:VIDEO_TS.IFO(LSN=10Ch) page2
page2

114
著作權所有,非經工研院同意,不得翻印或轉載
VIDEO_TS.IFO(LSN=11Ah)
VIDEO_TS.IFO(LSN=11Ah)

115
著作權所有,非經工研院同意,不得翻印或轉載
ISO9660
ISO9660 Structure
Structure

116
著作權所有,非經工研院同意,不得翻印或轉載
ISO9660
ISO9660 L-Type
L-Type Path
Path Table(LBN=16h)
Table(LBN=16h)

117
著作權所有,非經工研院同意,不得翻印或轉載
ISO9660
ISO9660 M-Type
M-Type Path
Path
Table(LBN=14h)
Table(LBN=14h)

118
著作權所有,非經工研院同意,不得翻印或轉載
ISO9660
ISO9660 Root
Root Dir.
Dir. Descriptor(LBN=18h)
Descriptor(LBN=18h)

119
著作權所有,非經工研院同意,不得翻印或轉載
File
File Flags
Flags

• Bit 0 : Existence
• Bit 1 : Directory
• Bit 2 : Associated File
• Bit 3 : Record
• Bit 4 : Protection
• Bit 5 ~6 : Reserved
• Bit 7 : Multi-extent

120
著作權所有,非經工研院同意,不得翻印或轉載
ISO9660
ISO9660 Dir.
Dir. Record(LBN=1Ah)
Record(LBN=1Ah)

121
著作權所有,非經工研院同意,不得翻印或轉載
File(Makefile)(LBN=AAh)
File(Makefile)(LBN=AAh)

122
著作權所有,非經工研院同意,不得翻印或轉載
3.7
3.7 ISO9660
ISO9660 Directory
Directory Structure
Structure and
and PP
ath
ath Table
Table
LSN Contents
257 Type L Path Table Record for Root Directory Type L
Type L Path Table Record for AUDIO_TS Path Table
Type L Path Table Record for VIDEO_TS
258 Type M Path Table Record for Root Directory Type M
Type M Path Table Record for AUDIO_TS Path Table
Type M Path Table Record for VIDEO_TS
259 Directory Record for Root Directory (1st) Directory
Directory Record for Root Directory (2 nd) Records of
Directory Record for AUDIO_TS Root
Directory Record for VIDEO_TS

123
著作權所有,非經工研院同意,不得翻印或轉載
3.7
3.7 ISO9660
ISO9660 Directory
Directory Structure
Structure and
and PP
ath
ath Table
Table (cont.)
(cont.)
LSN Contents
260 Directory Record for VIDEO_TS
Directory Record for Parent Directory
Directory Record for VIDEO_TS.BUP
Directory Record for VIDEO_TS.IFO Directory
Directory Record for VIDEO_TS.VOB Records
Directory Record for VTS_01_0.BUP of
Directory Record for VTS_01_0.IFO VIDEO_TS
Directory Record for VTS_01_0.VOB
Directory Record for VTS_01_1.VOB
Directory Record for VTS_01_2.VOB
124
著作權所有,非經工研院同意,不得翻印或轉載
3.7
3.7 ISO9660
ISO9660 Directory
Directory Structure
Structure and
and PP
ath
ath Table
Table (cont.)
(cont.)
LSN Contents
261 Directory Record for AUDIO_TS
Directory Record for Parent Directory Directory
Directory Record for ATS_01_0.BUP Records
Directory Record for ATS_01_0.IFO of
Directory Record for ATS_01_1.AOB AUDIO_TS
Directory Record for AUDIO_TS.BUP
Directory Record for AUDIO_TS.IFO

125
著作權所有,非經工研院同意,不得翻印或轉載
3.7.1
3.7.1 Directory
Directory Record
Record

RBP Length Field Name Contents


0 1 Length of Directory Record Uint8
(LEN_DR)
1 1 Extended Attribute Record Length Uint8
2 8 Location of Extent BB32
10 8 Data Length BB32
18 7 Recording Date and Time Numerical value
25 1 File Flags 8 bits
26 1 File Unit Size Uint8
27 1 Interleave Gap Size Uint8
28 4 Volume Sequence Number BB16 = 1

126
著作權所有,非經工研院同意,不得翻印或轉載
3.7.1
3.7.1 Directory
Directory Record
Record (cont.)
(cont.)
RBP Length Field Name Contents
32 1 Length of File Identifier Uint8
(LEN_FI)
33 LEN_FI File Identifier d-characters,
d1-characters,
SEPARATOR 1,
SEPARATOR 2,
00h or 01h byte
a b Padding 00h byte
c d System Use (3.7.2) bytes
a = 33 + LEN_FI
b = 0 if the length if the File Identifier field is an odd number.
b = 1 if the length if the File Identifier field is an even number.
c = a+b
d = LEN_DR - c
127
著作權所有,非經工研院同意,不得翻印或轉載
3.7.2
3.7.2 Copyright
Copyright Management
Management Informati
Informati
on
on of
of System
System Use
Use field
field
RBP Length Field Name Contents
0 1 CGMS Information byte
1 1 Data Structure Type Uint8
2 4 Protection System Information bytes

Total = 6 bytes

128
著作權所有,非經工研院同意,不得翻印或轉載
3.7.3
3.7.3 Path
Path Table
Table Record
Record
RBP Length Field Name Contents
0 1 Length of Directory Identifier Uint8
(LEN_DI)
1 1 Extended Attribute Uint8
Record Length
2 4 Location of Extent LB32 or MB32
6 2 Parent Directory Number LB16 or MB16
8 LEN_DI Directory Identifier d-characters,
d1-characters,
00h byte
a b Padding 00h byte
a = 8 + LEN_DI
b = 0 if the Length of Directory Identifier field is even number.
b = 1 if the Length of Directory Identifier field is an odd number.
129
著作權所有,非經工研院同意,不得翻印或轉載
ISO9660
ISO9660 File
File Reading
Reading Procedure(1)
Procedure(1)

VIDEO_TS
PATH
PATH
PTR Directory
TABLE
TABLE PTR(Root)
(Root)
Location
Location PTR
PTR(VIDEO_TS)
(VIDEO_TS) DR
DR(VIDEO_TS)
(VIDEO_TS)
PTR
Files
PTR(AUDIO_TS)
(AUDIO_TS) DR
DR(Parent)
(Parent)

Primary DR
DR(VIDEO_TS.BUP)
(VIDEO_TS.BUP) VIDEO_TS.BUP
VIDEO_TS.BUP
Volume PATH TABLE
DR
DR(VIDEO_TS.IFO)
(VIDEO_TS.IFO) VIDEO_TS.IFO
VIDEO_TS.IFO
Descriptor
DR
DR(VIDEO_TS.VOB)
(VIDEO_TS.VOB) VIDEO_TS.VBO
VIDEO_TS.VBO

130
著作權所有,非經工研院同意,不得翻印或轉載
ISO9660
ISO9660 File
File Reading
Reading Procedure(2)
Procedure(2)

VIDEO_TS
DR DR
DR(Root)
(Root) Directory
DR
for
for
Root DR
DR(Root)
(Root)
Root DR
Directory
Directory DR(VIDEO_TS)
(VIDEO_TS)
DR
DR(AUDIO_TS)
(AUDIO_TS) Files
DR
DR(Parent)
(Parent)
Primary DR
DR(VIDEO_TS)
(VIDEO_TS)
Volume DR
DR(VIDEO_TS.BUP)
(VIDEO_TS.BUP) VIDEO_TS.BUP
VIDEO_TS.BUP
Descriptor DR
Root Directory DR(VIDEO_TS.IFO)
(VIDEO_TS.IFO) VIDEO_TS.IFO
VIDEO_TS.IFO
DR
DR(VIDEO_TS.VOB)
(VIDEO_TS.VOB) VIDEO_TS.VBO
VIDEO_TS.VBO

131
著作權所有,非經工研院同意,不得翻印或轉載
ISO9660
ISO9660 L-Type
L-Type Path
Path Table(LBN=101h)
Table(LBN=101h)

132
著作權所有,非經工研院同意,不得翻印或轉載
ISO9660
ISO9660 L-Type
L-Type Path
Path Table(LBN=101h)
Table(LBN=101h)

133
著作權所有,非經工研院同意,不得翻印或轉載
ISO9660
ISO9660 M-Type
M-Type Path
Path Table(LBN=102h)
Table(LBN=102h)

134
著作權所有,非經工研院同意,不得翻印或轉載
ISO9660
ISO9660 M-Type
M-Type Path
Path Table(LBN=102h)
Table(LBN=102h)

135
著作權所有,非經工研院同意,不得翻印或轉載
File
File System
System Write
Write Code
Code

• Show UDF1.02 Write to Disc Source Code

• Show ISO9660 Write to Disc Source Code

136
著作權所有,非經工研院同意,不得翻印或轉載
Q&A
Q&A

137
著作權所有,非經工研院同意,不得翻印或轉載

You might also like