void as_xml (xmlpp::Node *) const;
- virtual int audio_channels () const = 0;
- virtual AudioContent::Frame audio_length () const = 0;
- virtual int content_audio_frame_rate () const = 0;
+ virtual int audio_channels () const = 0;
+ virtual AudioContent::Frame audio_length () const = 0;
+ virtual int content_audio_frame_rate () const = 0;
virtual int output_audio_frame_rate () const = 0;
virtual AudioMapping audio_mapping () const = 0;
virtual void set_audio_mapping (AudioMapping) = 0;
protected:
uint8_t* _data; ///< data
- int _size; ///< data size in bytes
+ int _size; ///< data size in bytes
};
/** @class LocallyEncodedData
private:
boost::shared_ptr<const Image> _image;
- int _frame; ///< frame index within the DCP's intrinsic duration
- int _frames_per_second; ///< Frames per second that we will use for the DCP
- int _j2k_bandwidth; ///< J2K bandwidth to use
+ int _frame; ///< frame index within the DCP's intrinsic duration
+ int _frames_per_second; ///< Frames per second that we will use for the DCP
+ int _j2k_bandwidth; ///< J2K bandwidth to use
boost::shared_ptr<Log> _log; ///< log
- opj_cparameters_t* _parameters; ///< libopenjpeg's parameters
- opj_cinfo_t* _cinfo; ///< libopenjpeg's opj_cinfo_t
- opj_cio_t* _cio; ///< libopenjpeg's opj_cio_t
+ opj_cparameters_t* _parameters; ///< libopenjpeg's parameters
+ opj_cinfo_t* _cinfo; ///< libopenjpeg's opj_cinfo_t
+ opj_cio_t* _cio; ///< libopenjpeg's opj_cio_t
};
boost::shared_ptr<AudioBuffers> deinterleave_audio (uint8_t** data, int size);
AVCodecContext* _subtitle_codec_context; ///< may be 0 if there is no subtitle
- AVCodec* _subtitle_codec; ///< may be 0 if there is no subtitle
+ AVCodec* _subtitle_codec; ///< may be 0 if there is no subtitle
std::list<boost::shared_ptr<FilterGraph> > _filter_graphs;
boost::mutex _filter_graphs_mutex;
std::string stream_name (AVStream* s) const;
boost::optional<double> frame_time (int) const;
- std::vector<boost::shared_ptr<FFmpegSubtitleStream> > _subtitle_streams;
- std::vector<boost::shared_ptr<FFmpegAudioStream> > _audio_streams;
+ std::vector<boost::shared_ptr<FFmpegSubtitleStream> > _subtitle_streams;
+ std::vector<boost::shared_ptr<FFmpegAudioStream> > _audio_streams;
boost::optional<double> _first_video;
};
/** Description of a job's state */
enum State {
- NEW, ///< the job hasn't been started yet
- RUNNING, ///< the job is running
- PAUSED, ///< the job has been paused
- FINISHED_OK, ///< the job has finished successfully
+ NEW, ///< the job hasn't been started yet
+ RUNNING, ///< the job is running
+ PAUSED, ///< the job has been paused
+ FINISHED_OK, ///< the job has finished successfully
FINISHED_ERROR, ///< the job has finished in error
FINISHED_CANCELLED ///< the job was cancelled
};
* @brief A set of content files (video and audio), with knowledge of how they should be arranged into
* a DCP.
*
- * This class holds Content objects, and it knows how they should be arranged. At the moment
+ * This class holds Content objects, and it knows how they should be arranged. At the moment
* the ordering is implicit; video content is placed sequentially, and audio content is taken
* from the video unless any sound-only files are present. If sound-only files exist, they
* are played simultaneously (i.e. they can be split up into multiple files for different channels)
void as_xml (xmlpp::Node *) const;
Time length () const;
- /* AudioContent */
- int audio_channels () const {
+ /* AudioContent */
+ int audio_channels () const {
boost::mutex::scoped_lock lm (_mutex);
return _audio_channels;
}
- AudioContent::Frame audio_length () const {
+ AudioContent::Frame audio_length () const {
boost::mutex::scoped_lock lm (_mutex);
return _audio_length;
}
- int content_audio_frame_rate () const {
+ int content_audio_frame_rate () const {
boost::mutex::scoped_lock lm (_mutex);
return _audio_frame_rate;
}
* spends in one of a set of states.
*
* Once constructed, the caller can call set_state() whenever
- * its state changes. When StateTimer is destroyed, it will
+ * its state changes. When StateTimer is destroyed, it will
* output (to cout) a summary of the time spent in each state.
*/
class StateTimer
typedef int64_t Time;
#define TIME_MAX INT64_MAX
-#define TIME_HZ ((Time) 96000)
+#define TIME_HZ ((Time) 96000)
typedef int64_t OutputAudioFrame;
-typedef int OutputVideoFrame;
+typedef int OutputVideoFrame;
/** @struct Crop
* @brief A description of the crop of an image or video.
/** true if this DCP will run its video faster or slower than the source
* without taking into account `repeat' nor `skip'.
* (e.g. change_speed will be true if
- * source is 29.97fps, DCP is 30fps
- * source is 14.50fps, DCP is 30fps
+ * source is 29.97fps, DCP is 30fps
+ * source is 14.50fps, DCP is 30fps
* but not if
- * source is 15.00fps, DCP is 30fps
- * source is 12.50fps, DCP is 25fps)
+ * source is 15.00fps, DCP is 30fps
+ * source is 12.50fps, DCP is 25fps)
*/
bool change_speed;