diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-05-10 21:28:26 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-05-10 21:28:26 +0100 |
| commit | 540aac0bc5ca6cbf393c650e97236a9677124a30 (patch) | |
| tree | c926d65d63a48f0096e84d333cd15f7f8212dddc /src/lib/transcoder.cc | |
| parent | f6c5598ba6b18d5be753139ea5a8f30781468afc (diff) | |
Remove gain/delay_line/matcher/trimmer.
Diffstat (limited to 'src/lib/transcoder.cc')
| -rw-r--r-- | src/lib/transcoder.cc | 34 |
1 files changed, 2 insertions, 32 deletions
diff --git a/src/lib/transcoder.cc b/src/lib/transcoder.cc index f8fe0c8d5..d4c5210dc 100644 --- a/src/lib/transcoder.cc +++ b/src/lib/transcoder.cc @@ -29,13 +29,9 @@ #include "transcoder.h" #include "encoder.h" #include "film.h" -#include "matcher.h" -#include "delay_line.h" -#include "gain.h" #include "video_decoder.h" #include "audio_decoder.h" #include "player.h" -#include "trimmer.h" #include "job.h" using std::string; @@ -52,45 +48,19 @@ Transcoder::Transcoder (shared_ptr<Film> f, shared_ptr<Job> j) , _player (f->player ()) , _encoder (new Encoder (f, j)) { - _matcher.reset (new Matcher (f->log(), f->audio_frame_rate(), f->video_frame_rate())); - _delay_line.reset (new DelayLine (f->log(), f->audio_delay() * f->audio_frame_rate() / 1000)); - _gain.reset (new Gain (f->log(), f->audio_gain())); - - int const trim_start = f->trim_type() == Film::ENCODE ? f->trim_start() : 0; - int const trim_end = f->trim_type() == Film::ENCODE ? f->trim_end() : 0; - _trimmer.reset (new Trimmer ( - f->log(), trim_start, trim_end, f->content_length(), - f->audio_frame_rate(), f->video_frame_rate(), f->dcp_frame_rate() - )); - if (!f->with_subtitles ()) { _player->disable_subtitles (); } - _player->connect_video (_delay_line); - _delay_line->connect_video (_matcher); - _matcher->connect_video (_trimmer); - _trimmer->connect_video (_encoder); - - _player->connect_audio (_delay_line); - _delay_line->connect_audio (_matcher); - _matcher->connect_audio (_gain); - _gain->connect_audio (_trimmer); - _trimmer->connect_audio (_encoder); + _player->connect_video (_encoder); + _player->connect_audio (_encoder); } void Transcoder::go () { _encoder->process_begin (); - while (!_player->pass ()) {} - - _delay_line->process_end (); - if (_matcher) { - _matcher->process_end (); - } - _gain->process_end (); _encoder->process_end (); } |
