diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-05-02 17:33:07 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-03-21 16:41:06 +0000 |
| commit | b0d41c5a78f852619cde4249860c6bbe490804ff (patch) | |
| tree | b59c902cb36a6214301e1a098ddfc690dd29d880 /src/lib/openjpeg_encoder.h | |
| parent | 82be5b24a943f1f31e0de20f0e2e2bb5a8a531bf (diff) | |
Basic classes for different JPEG2000 encoders; config to choose one.
Diffstat (limited to 'src/lib/openjpeg_encoder.h')
| -rw-r--r-- | src/lib/openjpeg_encoder.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/lib/openjpeg_encoder.h b/src/lib/openjpeg_encoder.h new file mode 100644 index 000000000..9de65b144 --- /dev/null +++ b/src/lib/openjpeg_encoder.h @@ -0,0 +1,45 @@ +/* + Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +#include "jpeg2000_encoder.h" +#include "types.h" + +class OpenJPEGEncoder : public JPEG2000Encoder +{ +public: + std::string name () const; + + std::string id () const { + return "openjpeg"; + } + +protected: + boost::shared_ptr<EncodedData> do_encode (boost::shared_ptr<const dcp::XYZImage> input, dcp::NoteHandler note_handler); + +private: + void set_bandwidth (int bandwidth); + void set_threed (bool threed); + void set_resolution (Resolution resolution); + void set_frame_rate (int frame_rate); + + int _bandwidth; + bool _threed; + Resolution _resolution; + int _frame_rate; +}; |
