*/
+
/** @file src/encoder.cc
* @brief A class which takes a Film and some Options, then uses those to encode the film
* into some output format.
* as a parameter to the constructor.
*/
+
#include "encoder.h"
#include "player.h"
#include "i18n.h"
-using boost::weak_ptr;
-using boost::shared_ptr;
/** Construct an encoder.
* @param film Film that we are encoding.
* @param job Job that this encoder is being used in.
*/
-Encoder::Encoder (shared_ptr<const Film> film, weak_ptr<Job> job)
+Encoder::Encoder (std::shared_ptr<const Film> film, std::weak_ptr<Job> job)
: _film (film)
, _job (job)
- , _player (new Player (film, film->playlist ()))
+ , _player(film, Image::Alignment::PADDED)
{
- _player_video_connection = _player->Video.connect (bind (&Encoder::video, this, _1, _2));
- _player_audio_connection = _player->Audio.connect (bind (&Encoder::audio, this, _1, _2));
- _player_subtitle_connection = _player->Subtitle.connect (bind (&Encoder::subtitle, this, _1, _2));
+
}