2 Copyright (C) 2014 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/>.
21 /** @file src/lib/dcp_examiner.h
22 * @brief DCPExaminer class.
25 #include "video_examiner.h"
26 #include "audio_examiner.h"
31 class DCPExaminer : public DCP, public VideoExaminer, public AudioExaminer
34 DCPExaminer (boost::shared_ptr<const DCPContent>);
36 boost::optional<double> video_frame_rate () const {
37 return _video_frame_rate;
40 dcp::Size video_size () const {
41 return _video_size.get_value_or (dcp::Size (1998, 1080));
44 Frame video_length () const {
52 std::string name () const {
56 bool has_subtitles () const {
57 return _has_subtitles;
60 bool encrypted () const {
64 bool needs_assets () const {
68 int audio_channels () const {
69 return _audio_channels.get_value_or (0);
72 Frame audio_length () const {
76 int audio_frame_rate () const {
77 return _audio_frame_rate.get_value_or (48000);
80 bool kdm_valid () const {
84 boost::optional<dcp::Standard> standard () const {
88 bool three_d () const {
92 std::string cpl () const {
96 std::list<int64_t> reel_lengths () const {
101 boost::optional<double> _video_frame_rate;
102 boost::optional<dcp::Size> _video_size;
104 boost::optional<int> _audio_channels;
105 boost::optional<int> _audio_frame_rate;
112 boost::optional<dcp::Standard> _standard;
115 std::list<int64_t> _reel_lengths;