diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-07-02 11:06:56 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-03-21 16:41:13 +0000 |
| commit | 92078affea8d93960709db3fee2c661105102418 (patch) | |
| tree | 726bf04ed686a847f1f02bce463e959520e11a67 /test | |
| parent | b0849ca5ee5b26e72f78c5b5601a9a9a40177e01 (diff) | |
Various hacks.
Diffstat (limited to 'test')
| -rw-r--r-- | test/poznan.cc | 9 | ||||
| -rw-r--r-- | test/wscript | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/test/poznan.cc b/test/poznan.cc index d96dcae1b..fe18667d1 100644 --- a/test/poznan.cc +++ b/test/poznan.cc @@ -28,20 +28,21 @@ int main () for (int x = 666; x < 1332; ++x) { for (int y = 0; y < 1080; ++y) { - rgb->data()[0][y * line_size + x * 3] = 255; - rgb->data()[0][y * line_size + x * 3 + 1] = 0; + rgb->data()[0][y * line_size + x * 3] = 0; + rgb->data()[0][y * line_size + x * 3 + 1] = 255; rgb->data()[0][y * line_size + x * 3 + 2] = 0; } } for (int x = 1332; x < 1998; ++x) { for (int y = 0; y < 1080; ++y) { - rgb->data()[0][y * line_size + x * 3] = 255; + rgb->data()[0][y * line_size + x * 3] = 0; rgb->data()[0][y * line_size + x * 3 + 1] = 0; - rgb->data()[0][y * line_size + x * 3 + 2] = 0; + rgb->data()[0][y * line_size + x * 3 + 2] = 255; } } 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); + j2k.write ("poznan.j2k"); } diff --git a/test/wscript b/test/wscript index b424ed22c..fe4a7dfaf 100644 --- a/test/wscript +++ b/test/wscript @@ -31,7 +31,7 @@ def build(bld): obj = bld(features='cxx cxxprogram') obj.name = 'unit-tests' obj.uselib = 'BOOST_TEST BOOST_THREAD BOOST_FILESYSTEM BOOST_DATETIME SNDFILE SAMPLERATE DCP FONTCONFIG CAIROMM PANGOMM XMLPP ' - obj.uselib += 'AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC CXML MAGICK SUB GLIB CURL SSH XMLSEC BOOST_REGEX ICU ' + obj.uselib += 'AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC CXML MAGICK SUB GLIB CURL SSH XMLSEC BOOST_REGEX ICU CUDA ' if bld.env.TARGET_WINDOWS: obj.uselib += 'WINSOCK2' obj.use = 'libdcpomatic2' @@ -102,7 +102,7 @@ def build(bld): obj = bld(features='cxx cxxprogram') obj.name = 'poznan' - obj.uselib = 'DCP' + obj.uselib = 'DCP CUDA' obj.use = 'libdcpomatic2' obj.source = "poznan.cc" obj.target = 'poznan' |
