libcdio 2.1.1
dvd.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2004, 2010 Rocky Bernstein <rocky@gnu.org>
3 Modeled after GNU/Linux definitions in linux/cdrom.h
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
30#ifndef CDIO_DVD_H_
31#define CDIO_DVD_H_
32
33#include <cdio/types.h>
34
46
64
65typedef struct cdio_dvd_layer {
66 unsigned int book_version : 4;
67 unsigned int book_type : 4;
68 unsigned int min_rate : 4;
69 unsigned int disc_size : 4;
70 unsigned int layer_type : 4;
71 unsigned int track_path : 1;
72 unsigned int nlayers : 2;
73 unsigned int track_density : 4;
74 unsigned int linear_density : 4;
75 unsigned int bca : 1;
76 uint32_t start_sector;
77 uint32_t end_sector;
78 uint32_t end_sector_l0;
80
84#define CDIO_DVD_MAX_LAYERS 4
85
91
92typedef struct cdio_dvd_copyright {
93 uint8_t type;
94
95 uint8_t layer_num;
96 uint8_t cpst;
97 uint8_t rmi;
99
100typedef struct cdio_dvd_disckey {
101 uint8_t type;
102
103 unsigned agid : 2;
104 uint8_t value[2048];
106
107typedef struct cdio_dvd_bca {
108 uint8_t type;
109
110 int len;
111 uint8_t value[188];
113
114typedef struct cdio_dvd_manufact {
115 uint8_t type;
116
117 uint8_t layer_num;
118 int len;
119 uint8_t value[2048];
121
131
132#endif /* CDIO_DVD_H_ */
struct cdio_dvd_bca cdio_dvd_bca_t
#define CDIO_DVD_MAX_LAYERS
Definition dvd.h:84
struct cdio_dvd_disckey cdio_dvd_disckey_t
struct cdio_dvd_layer cdio_dvd_layer_t
struct cdio_dvd_physical cdio_dvd_physical_t
struct cdio_dvd_manufact cdio_dvd_manufact_t
cdio_dvd_book
Definition dvd.h:51
@ CDIO_DVD_BOOK_HD_DVD_R
Definition dvd.h:58
@ CDIO_DVD_BOOK_DVD_RW
Definition dvd.h:55
@ CDIO_DVD_BOOK_DVD_PR
Definition dvd.h:60
@ CDIO_DVD_BOOK_DVD_PR_DL
Definition dvd.h:62
@ CDIO_DVD_BOOK_HD_DVD_RAM
Definition dvd.h:57
@ CDIO_DVD_BOOK_DVD_ROM
Definition dvd.h:52
@ CDIO_DVD_BOOK_DVD_RAM
Definition dvd.h:53
@ CDIO_DVD_BOOK_DVD_PRW_DL
Definition dvd.h:61
@ CDIO_DVD_BOOK_DVD_PRW
Definition dvd.h:59
@ CDIO_DVD_BOOK_DVD_R
Definition dvd.h:54
@ CDIO_DVD_BOOK_HD_DVD_ROM
Definition dvd.h:56
struct cdio_dvd_copyright cdio_dvd_copyright_t
cdio_dvd_structure
Definition dvd.h:39
@ CDIO_DVD_STRUCT_PHYSICAL
Definition dvd.h:40
@ CDIO_DVD_STRUCT_DISCKEY
Definition dvd.h:42
@ CDIO_DVD_STRUCT_COPYRIGHT
Definition dvd.h:41
@ CDIO_DVD_STRUCT_MANUFACT
Definition dvd.h:44
@ CDIO_DVD_STRUCT_BCA
Definition dvd.h:43
Definition dvd.h:107
int len
Definition dvd.h:110
uint8_t value[188]
Definition dvd.h:111
uint8_t type
Definition dvd.h:108
Definition dvd.h:100
uint8_t value[2048]
Definition dvd.h:104
uint8_t type
Definition dvd.h:101
unsigned agid
Definition dvd.h:103
Definition dvd.h:65
unsigned int book_type
Definition dvd.h:67
uint32_t end_sector
Definition dvd.h:77
unsigned int nlayers
Definition dvd.h:72
unsigned int book_version
Definition dvd.h:66
unsigned int linear_density
Definition dvd.h:74
unsigned int track_path
Definition dvd.h:71
unsigned int track_density
Definition dvd.h:73
unsigned int min_rate
Definition dvd.h:68
unsigned int disc_size
Definition dvd.h:69
uint32_t start_sector
Definition dvd.h:76
unsigned int bca
Definition dvd.h:75
unsigned int layer_type
Definition dvd.h:70
uint32_t end_sector_l0
Definition dvd.h:78
Definition dvd.h:114
uint8_t value[2048]
Definition dvd.h:119
uint8_t layer_num
Definition dvd.h:117
int len
Definition dvd.h:118
uint8_t type
Definition dvd.h:115
Definition dvd.h:86
uint8_t type
Definition dvd.h:87
uint8_t layer_num
Definition dvd.h:88
cdio_dvd_layer_t layer[CDIO_DVD_MAX_LAYERS]
Definition dvd.h:89
Common type definitions used pervasively in libcdio.
Definition dvd.h:122
cdio_dvd_disckey_t disckey
Definition dvd.h:127
cdio_dvd_manufact_t manufact
Definition dvd.h:129
cdio_dvd_copyright_t copyright
Definition dvd.h:126
uint8_t type
Definition dvd.h:123
cdio_dvd_physical_t physical
Definition dvd.h:125
cdio_dvd_bca_t bca
Definition dvd.h:128