-
Notifications
You must be signed in to change notification settings - Fork 4
/
dvd_vts.h
38 lines (30 loc) · 871 Bytes
/
dvd_vts.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
#ifndef DVD_INFO_VTS_H
#define DVD_INFO_VTS_H
#include <unistd.h>
#include <stdint.h>
#include <stdbool.h>
#include <math.h>
#include <dvdread/dvd_reader.h>
#include <dvdread/ifo_read.h>
#include "dvd_specs.h"
#include "dvd_vmg_ifo.h"
#include "dvd_vob.h"
struct dvd_vts {
uint16_t vts;
bool valid;
char id[DVD_VTS_ID + 1];
ssize_t blocks;
ssize_t filesize;
double filesize_mbs;
int vobs;
uint16_t tracks;
uint16_t valid_tracks;
uint16_t invalid_tracks;
struct dvd_vob dvd_vobs[99];
};
ssize_t dvd_vts_blocks(dvd_reader_t *dvdread_dvd, uint16_t vts_number);
ssize_t dvd_vts_filesize(dvd_reader_t *dvdread_dvd, uint16_t vts_number);
double dvd_vts_filesize_mbs(dvd_reader_t *dvdread_dvd, uint16_t vts_number);
int dvd_vts_vobs(dvd_reader_t *dvdread_dvd, uint16_t vts_number);
struct dvd_vts dvd_vts_open(dvd_reader_t *dvdread_dvd, uint16_t vts);
#endif