8e3cbe2d8f8990586218b8925f3a9b5ed1514bee
[dcpomatic.git] / src / lib / ab_transcode_job.h
1 /*
2     Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
3
4     This program is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation; either version 2 of the License, or
7     (at your option) any later version.
8
9     This program is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
13
14     You should have received a copy of the GNU General Public License
15     along with this program; if not, write to the Free Software
16     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 */
19
20 /** @file src/ab_transcode_job.h
21  *  @brief Job to run a transcoder which produces output for A/B comparison of various settings.
22  */
23
24 #include <boost/shared_ptr.hpp>
25 #include "job.h"
26 #include "options.h"
27
28 class Film;
29
30 /** @class ABTranscodeJob
31  *  @brief Job to run a transcoder which produces output for A/B comparison of various settings.
32  *
33  *  The right half of the frame will be processed using the Film supplied;
34  *  the left half will be processed using the same state but with the reference
35  *  filters and scaler.
36  */
37 class ABTranscodeJob : public Job
38 {
39 public:
40         ABTranscodeJob (
41                 boost::shared_ptr<Film> f,
42                 DecodeOptions o
43                 );
44
45         std::string name () const;
46         void run ();
47
48 private:
49         DecodeOptions _decode_opt;
50         
51         /** Copy of our Film using the reference filters and scaler */
52         boost::shared_ptr<Film> _film_b;
53 };