class AnalyseAudioJob;
class ExternalAudioStream;
class Content;
+class Player;
class Playlist;
/** @class Film
bool have_dcp () const;
- boost::shared_ptr<Playlist> playlist () const;
+ boost::shared_ptr<Player> player () const;
+
+ ContentAudioFrame audio_length () const;
+ int audio_channels () const;
+ int audio_frame_rate () const;
+ int64_t audio_channel_layout () const;
+ bool has_audio () const;
+
+ float video_frame_rate () const;
+ libdcp::Size video_size () const;
+ ContentVideoFrame video_length () const;
/** Identifiers for the parts of our state;
used for signalling changes.
NONE,
NAME,
USE_DCI_NAME,
- TRUST_CONTENT_HEADER,
+ TRUST_CONTENT_HEADERS,
CONTENT,
DCP_CONTENT_TYPE,
FORMAT,
SCALER,
TRIM_START,
TRIM_END,
- DCP_AB,
+ AB,
AUDIO_GAIN,
AUDIO_DELAY,
STILL_DURATION,
return _use_dci_name;
}
- bool trust_content_header () const {
+ bool trust_content_headers () const {
boost::mutex::scoped_lock lm (_state_mutex);
- return _trust_content_header;
+ return _trust_content_headers;
}
std::list<boost::shared_ptr<Content> > content () const {
return _trim_end;
}
- bool dcp_ab () const {
+ bool ab () const {
boost::mutex::scoped_lock lm (_state_mutex);
- return _dcp_ab;
+ return _ab;
}
float audio_gain () const {
void set_directory (std::string);
void set_name (std::string);
void set_use_dci_name (bool);
- void set_trust_content_header (bool);
+ void set_trust_content_headers (bool);
void add_content (boost::shared_ptr<Content>);
void set_dcp_content_type (DCPContentType const *);
void set_format (Format const *);
void set_scaler (Scaler const *);
void set_trim_start (int);
void set_trim_end (int);
- void set_dcp_ab (bool);
+ void set_ab (bool);
void set_audio_gain (float);
void set_audio_delay (int);
void set_still_duration (int);
void analyse_audio_finished ();
std::string video_state_identifier () const;
+ boost::shared_ptr<Playlist> _playlist;
+
/** Complete path to directory containing the film metadata;
* must not be relative.
*/
bool _use_dci_name;
typedef std::list<boost::shared_ptr<Content> > ContentList;
ContentList _content;
- /** If this is true, we will believe the length specified by the content
- * file's header; if false, we will run through the whole content file
- * the first time we see it in order to obtain the length.
- */
- bool _trust_content_header;
+ bool _trust_content_headers;
/** The type of content that this Film represents (feature, trailer etc.) */
DCPContentType const * _dcp_content_type;
/** The format to present this Film in (flat, scope, etc.) */
is the video without any filters or post-processing, and the right half
has the specified filters and post-processing.
*/
- bool _dcp_ab;
+ bool _ab;
/** Gain to apply to audio in dB */
float _audio_gain;
/** Delay to apply to audio (positive moves audio later) in milliseconds */