libbluray
player_settings.h
Go to the documentation of this file.
1 /*
2  * This file is part of libbluray
3  * Copyright (C) 2014-2017 VideoLAN
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library 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 GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library. If not, see
17  * <http://www.gnu.org/licenses/>.
18  */
19 
25 #ifndef BD_PLAYER_SETTINGS_H_
26 #define BD_PLAYER_SETTINGS_H_
27 
34 enum {
35 
36  /* LPCM capability */
37 
38  /* 48/96kHz (mandatory) */
42  /* 192kHz (optional) */
47  /* Dolby Digital Plus capability */
48 
49  /* independent substream (mandatory) */
53  /* dependent substream (optional) */
58  /* DTS-HD */
59 
60  /* Core substream (mandatory) */
64  /* Extension substream (optional) */
69  /* Dolby lossless (TrueHD) */
70 
71  /* Dolby Digital (mandatory) */
75  /* MLP (optional) */
79 };
80 
81 
89 enum {
92 
98 };
99 
100 
107 enum {
110 };
111 
112 
113 /*
114  * BLURAY_PLAYER_SETTING_DISPLAY_CAP (PSR23)
115  *
116  * Display capability (bit mask) and display size
117  */
118 
119 #define BLURAY_DCAP_1080p_720p_3D 0x01
120 #define BLURAY_DCAP_720p_50Hz_3D 0x02
121 #define BLURAY_DCAP_NO_3D_CLASSES_REQUIRED 0x04
122 #define BLURAY_DCAP_INTERLACED_3D 0x08
124 /* horizontal display size in centimeters */
125 #define BLURAY_DCAP_DISPLAY_SIZE_UNDEFINED 0
126 #define BLURAY_DCAP_DISPLAY_SIZE_MASK 0xfff00
127 #define BLURAY_DCAP_DISPLAY_SIZE(cm) (((cm) > 0xfff ? 0xfff : (cm)) << 8)
135 enum {
138 };
139 
150 enum {
151  BLURAY_PLAYER_PROFILE_1_v1_0 = ((0x00 << 16) | (0x0100)),
152  BLURAY_PLAYER_PROFILE_1_v1_1 = ((0x01 << 16) | (0x0110)),
153  BLURAY_PLAYER_PROFILE_2_v2_0 = ((0x03 << 16) | (0x0200)),
154  BLURAY_PLAYER_PROFILE_3_v2_0 = ((0x08 << 16) | (0x0200)),
155  BLURAY_PLAYER_PROFILE_5_v2_4 = ((0x13 << 16) | (0x0240)),
156  BLURAY_PLAYER_PROFILE_6_v3_0 = ((0x00 << 16) | (0x0300)),
157  BLURAY_PLAYER_PROFILE_6_v3_1 = ((0x00 << 16) | (0x0310)),
158 };
159 
160 /* Player profile flags and version mask */
161 
162 #define BLURAY_PLAYER_PROFILE_3D_FLAG 0x100000
163 #define BLURAY_PLAYER_PROFILE_VERSION_MASK 0xffff
165 
172 enum {
175 };
176 
177 
190 enum {
193 };
194 
195 #endif /* BD_PLAYER_SETTINGS_H_ */
@ BLURAY_PERSISTENT_STORAGE_ENABLE
enable persistent storage
Definition: player_settings.h:192
@ BLURAY_PERSISTENT_STORAGE_DISABLE
disable persistent storage between playback sessions
Definition: player_settings.h:191
@ BLURAY_PLAYER_PROFILE_5_v2_4
Profile 5, version 2.4 (3D)
Definition: player_settings.h:155
@ BLURAY_PLAYER_PROFILE_6_v3_0
Profile 6, version 3.0 (UHD)
Definition: player_settings.h:156
@ BLURAY_PLAYER_PROFILE_2_v2_0
Profile 2, version 2.0 (network access, BdLive)
Definition: player_settings.h:153
@ BLURAY_PLAYER_PROFILE_6_v3_1
Profile 6, version 3.1 (UHD)
Definition: player_settings.h:157
@ BLURAY_PLAYER_PROFILE_3_v2_0
Profile 3, version 2.0 (audio only player)
Definition: player_settings.h:154
@ BLURAY_PLAYER_PROFILE_1_v1_1
Profile 1, version 1.1 (secondary stream support)
Definition: player_settings.h:152
@ BLURAY_PLAYER_PROFILE_1_v1_0
Profile 1, version 1.0 (Initial Standard Profile)
Definition: player_settings.h:151
@ BLURAY_PG_TEXTST_DECODER_DISABLE
disable both decoders
Definition: player_settings.h:173
@ BLURAY_PG_TEXTST_DECODER_ENABLE
enable both decoders
Definition: player_settings.h:174
@ BLURAY_REGION_B
Region B: Africa, Europe, Oceania, the Middle East, the Kingdom of the Netherlands,...
Definition: player_settings.h:95
@ BLURAY_REGION_C
Region C: Central and South Asia, Mongolia, Russia, and the People's Republic of China.
Definition: player_settings.h:97
@ BLURAY_REGION_A
Region A: the Americas, East and Southeast Asia, U.S.
Definition: player_settings.h:91
@ BLURAY_OUTPUT_PREFER_2D
2D output preferred
Definition: player_settings.h:108
@ BLURAY_OUTPUT_PREFER_3D
3D output preferred
Definition: player_settings.h:109
@ BLURAY_VCAP_SECONDARY_HD
player can play secondary stream in HD
Definition: player_settings.h:136
@ BLURAY_VCAP_25Hz_50Hz
player can play 25Hz and 50Hz video
Definition: player_settings.h:137
@ BLURAY_ACAP_DD_SURROUND
Dolby Digital audio surround capable.
Definition: player_settings.h:73
@ BLURAY_ACAP_LPCM_192_SURROUND
LPCM 192kHz surround capable.
Definition: player_settings.h:45
@ BLURAY_ACAP_DDPLUS_SURROUND
DD Plus independent substream surround capable.
Definition: player_settings.h:51
@ BLURAY_ACAP_DDPLUS_DEP_SURROUND
DD Plus dependent substream surround capable.
Definition: player_settings.h:56
@ BLURAY_ACAP_DTSHD_EXT_NONE
DTS-HD extension substream not supported.
Definition: player_settings.h:65
@ BLURAY_ACAP_LPCM_192_NONE
LPCM 192kHz not supported.
Definition: player_settings.h:43
@ BLURAY_ACAP_DTSHD_CORE_STEREO_ONLY
DTS-HD Core stereo capable.
Definition: player_settings.h:61
@ BLURAY_ACAP_LPCM_48_96_SURROUND
LPCM 48kHz and 96kHz surround capable.
Definition: player_settings.h:40
@ BLURAY_ACAP_LPCM_192_STEREO_ONLY
LPCM 192kHz stereo capable.
Definition: player_settings.h:44
@ BLURAY_ACAP_DTSHD_CORE_SURROUND
DTS-HD Core surround capable.
Definition: player_settings.h:62
@ BLURAY_ACAP_DDPLUS_DEP_NONE
DD Plus dependent substream not supported.
Definition: player_settings.h:54
@ BLURAY_ACAP_MLP_STEREO_ONLY
MLP stereo capable.
Definition: player_settings.h:77
@ BLURAY_ACAP_LPCM_48_96_STEREO_ONLY
LPCM 48kHz and 96kHz stereo capable.
Definition: player_settings.h:39
@ BLURAY_ACAP_MLP_SURROUND
MLP surround capable.
Definition: player_settings.h:78
@ BLURAY_ACAP_DDPLUS_STEREO_ONLY
DD Plus independent substream stereo capable.
Definition: player_settings.h:50
@ BLURAY_ACAP_DDPLUS_DEP_STEREO_ONLY
DD Plus dependent substream stereo capable.
Definition: player_settings.h:55
@ BLURAY_ACAP_MLP_NONE
MLP not supported.
Definition: player_settings.h:76
@ BLURAY_ACAP_DTSHD_EXT_SURROUND
DTS-HD extension substream surround capable.
Definition: player_settings.h:67
@ BLURAY_ACAP_DD_STEREO_ONLY
Dolby Digital audio stereo capable.
Definition: player_settings.h:72
@ BLURAY_ACAP_DTSHD_EXT_STEREO_ONLY
DTS-HD extension substream stereo capable.
Definition: player_settings.h:66