-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbluray_copy.h
More file actions
34 lines (29 loc) · 804 Bytes
/
bluray_copy.h
File metadata and controls
34 lines (29 loc) · 804 Bytes
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
#ifndef BLURAY_COPY_H
#define BLURAY_COPY_H
#ifdef __linux__
#include <linux/limits.h>
#else
#include <limits.h>
#endif
/**
* For packet size, use the same as libbluray. This makes doing math much
* simpler when calculating where start and end points of chapters are.
* Plus, it makes checking for one bad fetch possible, and can skip over bad
* blocks.
*
* See libbluray/src/examples/bdsplice.c for their packet sizes
*/
#define BLURAY_COPY_BUFFER_SIZE 192
/**
* This is for documentation only right now. From the Blu-ray specification,
* an MPEG-2 Transport Stream is constructed of "aligned units," where one is
* 6144 bytes, or 32 source packets.
*/
#define BLURAY_M2TS_UNIT_SIZE 6144
struct bluray_copy {
char filename[PATH_MAX];
int fd;
int64_t size;
double size_mbs;
};
#endif