/
meta_data.h
63 lines (53 loc) · 1.67 KB
/
meta_data.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
* This file is part of libbluray
* Copyright (C) 2010 fraxinas
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see
* <http://www.gnu.org/licenses/>.
*/
#if !defined(_META_DATA_H_)
#define _META_DATA_H_
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct meta_thumbnail {
char * path;
uint32_t xres;
uint32_t yres;
} META_THUMBNAIL;
typedef struct meta_title {
uint32_t title_number;
char * title_name;
} META_TITLE;
typedef struct meta_dl {
char language_code[4];
char * filename;
char * di_name;
char * di_alternative;
uint8_t di_num_sets;
uint8_t di_set_number;
uint32_t toc_count;
META_TITLE * toc_entries;
uint8_t thumb_count;
META_THUMBNAIL * thumbnails;
} META_DL;
typedef struct meta_root {
uint8_t dl_count;
META_DL * dl_entries;
} META_ROOT;
#ifdef __cplusplus
};
#endif
#endif // _META_DATA_H_