2 Copyright (C) 2012-2020 Carl Hetherington <cth@carlh.net>
4 This file is part of DCP-o-matic.
6 DCP-o-matic is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 DCP-o-matic is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef DCPOMATIC_CONSTANTS_H
23 #define DCPOMATIC_CONSTANTS_H
26 /** The maximum number of audio channels that we can have in a DCP */
27 #define MAX_DCP_AUDIO_CHANNELS 16
28 /** Message broadcast to find possible encoding servers */
29 #define DCPOMATIC_HELLO "I mean really, Ray, it's used."
30 /** Number of films to keep in history */
31 #define HISTORY_SIZE 10
32 #define REPORT_PROBLEM _("Please report this problem by using Help -> Report a problem or via email to carl@dcpomatic.com")
33 #define TEXT_FONT_ID "font"
34 /** Largest KDM size (in bytes) that will be accepted */
35 #define MAX_KDM_SIZE (256 * 1024)
36 /** Number of lines that closed caption viewers will display */
37 #define MAX_CLOSED_CAPTION_LINES 3
38 /** Maximum line length of closed caption viewers, according to SMPTE Bv2.1 */
39 #define MAX_CLOSED_CAPTION_LENGTH 32
40 /** Maximum size of a subtitle / closed caption MXF in bytes, according to SMPTE Bv2.1 */
41 #define MAX_TEXT_MXF_SIZE (115 * 1024 * 1024)
42 #define MAX_TEXT_MXF_SIZE_TEXT "115MB"
43 /** Maximum size of a font file, in bytes */
44 #define MAX_FONT_FILE_SIZE (640 * 1024)
45 #define MAX_FONT_FILE_SIZE_TEXT "640KB"
46 /** Maximum size of the XML part of a closed caption file, according to SMPTE Bv2.1 */
47 #define MAX_CLOSED_CAPTION_XML_SIZE (256 * 1024)
48 #define MAX_CLOSED_CAPTION_XML_SIZE_TEXT "256KB"
49 #define CERTIFICATE_VALIDITY_PERIOD (10 * 365)