#include <vector>
#include <inttypes.h>
#include <boost/thread/mutex.hpp>
+#include <boost/thread.hpp>
#include <sigc++/signal.h>
extern "C" {
#include <libavcodec/avcodec.h>
return _state.name;
}
+ /** @return name to give the DCP */
+ std::string dcp_name () const {
+ return _state.dcp_name ();
+ }
+
+ bool use_dci_name () const {
+ return _state.use_dci_name;
+ }
+
/** @return number of pixels to crop from the sides of the original picture */
Crop crop () const {
return _state.crop;
int still_duration () const {
return _state.still_duration;
}
+
+ bool with_subtitles () const {
+ return _state.with_subtitles;
+ }
+
+ int subtitle_offset () const {
+ return _state.subtitle_offset;
+ }
+
+ float subtitle_scale () const {
+ return _state.subtitle_scale;
+ }
void set_filters (std::vector<Filter const *> const &);
void set_dcp_ab (bool);
void set_name (std::string);
+ void set_use_dci_name (bool);
void set_content (std::string);
void set_top_crop (int);
void set_bottom_crop (int);
void set_left_crop (int);
void set_right_crop (int);
- void set_frames_per_second (float);
void set_format (Format const *);
void set_dcp_content_type (DCPContentType const *);
void set_audio_gain (float);
void set_audio_delay (int);
void set_still_duration (int);
+ void set_with_subtitles (bool);
+ void set_subtitle_offset (int);
+ void set_subtitle_scale (float);
+ void set_audio_language (std::string);
+ void set_subtitle_language (std::string);
+ void set_territory (std::string);
+ void set_rating (std::string);
+ void set_studio (std::string);
+ void set_facility (std::string);
+ void set_package_type (std::string);
/** @return size, in pixels, of the source (ignoring cropping) */
Size size () const {
AVSampleFormat audio_sample_format () const {
return _state.audio_sample_format;
}
+
+ bool has_subtitles () const {
+ return _state.has_subtitles;
+ }
+
+ std::string audio_language () const {
+ return _state.audio_language;
+ }
+
+ std::string subtitle_language () const {
+ return _state.subtitle_language;
+ }
+ std::string territory () const {
+ return _state.territory;
+ }
+
+ std::string rating () const {
+ return _state.rating;
+ }
+
+ std::string studio () const {
+ return _state.studio;
+ }
+
+ std::string facility () const {
+ return _state.facility;
+ }
+
+ std::string package_type () const {
+ return _state.package_type;
+ }
+
std::string j2k_dir () const;
std::vector<std::string> audio_files () const;
int num_thumbs () const;
int thumb_frame (int) const;
std::string thumb_file (int) const;
+ std::pair<Position, std::string> thumb_subtitle (int) const;
void copy_from_dvd_post_gui ();
void examine_content ();
FRAMES_PER_SECOND,
AUDIO_CHANNELS,
AUDIO_SAMPLE_RATE,
- STILL_DURATION
+ STILL_DURATION,
+ WITH_SUBTITLES,
+ SUBTITLE_OFFSET,
+ SUBTITLE_SCALE,
+ USE_DCI_NAME,
+ DCI_METADATA
};
boost::shared_ptr<FilmState> state_copy () const;
return _log;
}
+ int encoded_frames () const;
+
/** Emitted when some metadata property has changed */
mutable sigc::signal1<void, Property> Changed;