*/
+#ifdef HAVE_NVJPEG2K_H
+#include "cuda_decoder.h"
+#endif
#include "dcpomatic_assert.h"
#include "dcpomatic_socket.h"
#include "image.h"
#include "j2k_image_proxy.h"
-#include "warnings.h"
#include <dcp/colour_conversion.h>
#include <dcp/j2k_transcode.h>
#include <dcp/mono_picture_frame.h>
#include <dcp/raw_convert.h>
#include <dcp/rgb_xyz.h>
#include <dcp/stereo_picture_frame.h>
+#include <dcp/warnings.h>
#include <libcxml/cxml.h>
-DCPOMATIC_DISABLE_WARNINGS
+LIBDCP_DISABLE_WARNINGS
#include <libxml++/libxml++.h>
-DCPOMATIC_ENABLE_WARNINGS
+LIBDCP_ENABLE_WARNINGS
#include <iostream>
#include "i18n.h"
}
try {
+#if 0
/* XXX: should check that potentially trashing _data here doesn't matter */
auto decompressed = dcp::decompress_j2k (const_cast<uint8_t*>(_data->data()), _data->size(), reduce);
_image = make_shared<Image>(_pixel_format, decompressed->size(), alignment);
++p;
}
}
+#endif
+ _image = CUDADecoder::instance()->decode(_data, 0, _pixel_format, alignment);
} catch (dcp::J2KDecompressionError& e) {
_image = make_shared<Image>(_pixel_format, _size, alignment);
_image->make_black ();