-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbluray_player.h
More file actions
33 lines (28 loc) · 819 Bytes
/
bluray_player.h
File metadata and controls
33 lines (28 loc) · 819 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
#ifndef BLURAY_PLAYER_H
#define BLURAY_PLAYER_H
#include <limits.h>
#if defined(__linux__)
#include <linux/limits.h>
#endif
#define BLURAY_PLAYER_CONFIG_DIR_STRLEN 23
#define BLURAY_PLAYER_PATH_MAX ( PATH_MAX - 1 )
#define BLURAY_PLAYER_LANG_STRLEN 4
#define BLURAY_PLAYER_CHAPTER_STRLEN 5
#define BLURAY_PLAYER_TITLE_STRLEN 10
struct bluray_player {
char config_dir[BLURAY_PLAYER_CONFIG_DIR_STRLEN];
char mpv_config_dir[BLURAY_PLAYER_PATH_MAX];
};
struct bluray_playback {
uint32_t title;
bool fullscreen;
bool detelecine;
char audio_lang[BLURAY_PLAYER_LANG_STRLEN];
char subtitles_lang[BLURAY_PLAYER_LANG_STRLEN];
char chapter_start[BLURAY_PLAYER_CHAPTER_STRLEN];
char chapter_end[BLURAY_PLAYER_CHAPTER_STRLEN];
uint8_t video_stream_id;
uint8_t audio_stream_id;
uint8_t subtitle_stream_id;
};
#endif