X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_examiner.h;h=0558bfcfce1bc688853f6f13cb7c5ef63f3c3757;hb=234623db3306626520e06cac985eb157379eff99;hp=542f018c9eac9b806c9b41999bed8f5b247f2027;hpb=93d57d46e52e0050efda894fc3089a6410d55754;p=dcpomatic.git diff --git a/src/lib/dcp_examiner.h b/src/lib/dcp_examiner.h index 542f018c9..0558bfcfc 100644 --- a/src/lib/dcp_examiner.h +++ b/src/lib/dcp_examiner.h @@ -1,19 +1,20 @@ /* Copyright (C) 2014 Carl Hetherington - This program is free software; you can redistribute it and/or modify + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + DCP-o-matic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with DCP-o-matic. If not, see . */ @@ -23,10 +24,11 @@ #include "video_examiner.h" #include "audio_examiner.h" +#include "dcp.h" class DCPContent; -class DCPExaminer : public VideoExaminer, public AudioExaminer +class DCPExaminer : public DCP, public VideoExaminer, public AudioExaminer { public: DCPExaminer (boost::shared_ptr); @@ -59,6 +61,10 @@ public: return _encrypted; } + bool needs_assets () const { + return _needs_assets; + } + int audio_channels () const { return _audio_channels.get_value_or (0); } @@ -79,6 +85,14 @@ public: return _standard; } + bool three_d () const { + return _three_d; + } + + std::string cpl () const { + return _cpl; + } + private: boost::optional _video_frame_rate; boost::optional _video_size; @@ -89,6 +103,9 @@ private: std::string _name; bool _has_subtitles; bool _encrypted; + bool _needs_assets; bool _kdm_valid; boost::optional _standard; + bool _three_d; + std::string _cpl; };