diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-30 11:55:53 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-03-21 16:41:12 +0000 |
| commit | b0849ca5ee5b26e72f78c5b5601a9a9a40177e01 (patch) | |
| tree | 9a5aba33a596270ab772f88ad070f9f5cb56d5f5 /test | |
| parent | 11da1ba251863bb17bdfc52ab2b226f0d1929be4 (diff) | |
Fix build.
Diffstat (limited to 'test')
| -rw-r--r-- | test/poznan.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/poznan.cc b/test/poznan.cc index 67769dd8e..d96dcae1b 100644 --- a/test/poznan.cc +++ b/test/poznan.cc @@ -11,7 +11,7 @@ using boost::shared_ptr; int main () { JPEG2000Encoder::setup_encoders (); - + shared_ptr<JPEG2000Encoder> encoder = JPEG2000Encoder::from_id ("poznan"); shared_ptr<Image> rgb (new Image (PIX_FMT_RGB24, dcp::Size (1998, 1080), false)); @@ -42,8 +42,6 @@ int main () } } - vector<PresetColourConversion> presets = Config::instance()->colour_conversions (); - shared_ptr<const dcp::XYZImage> xyz = dcp::rgb_to_xyz (rgb->data()[0], rgb->size(), rgb->stride()[0], presets.front().conversion); - - shared_ptr<EncodedData> j2k = encoder->encode (xyz, 100000000, 24, RESOLUTION_2K, false); + shared_ptr<const dcp::OpenJPEGImage> xyz = dcp::rgb_to_xyz (rgb->data()[0], rgb->size(), rgb->stride()[0], ColourConversion::rec709_to_xyz ()); + Data j2k = encoder->encode (xyz, 100000000, 24, RESOLUTION_2K, false); } |
