summaryrefslogtreecommitdiff
path: root/src/j2k.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-11-07 15:57:12 +0000
committerCarl Hetherington <cth@carlh.net>2016-11-07 15:57:12 +0000
commit77d3d8217a55e100a45fb65d489875c6a9b1b620 (patch)
tree7daac66e4a99e73028529139409d4f9ff2eb58b7 /src/j2k.cc
parent4e15f606b7c268727b34603dabd1f2dbe368fbef (diff)
Add copy constructor for OpenJPEGImage.
Diffstat (limited to 'src/j2k.cc')
-rw-r--r--src/j2k.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/j2k.cc b/src/j2k.cc
index 4c29abfc..15f360c5 100644
--- a/src/j2k.cc
+++ b/src/j2k.cc
@@ -257,6 +257,9 @@ error_callback (char const * msg, void *)
throw MiscError (msg);
}
+/** @xyz Picture to compress. Parts of xyz's data WILL BE OVERWRITTEN by libopenjpeg so xyz cannot be re-used
+ * after this call; see opj_j2k_encode where if l_reuse_data is false it will set l_tilec->data = l_img_comp->data.
+ */
Data
dcp::compress_j2k (shared_ptr<const OpenJPEGImage> xyz, int bandwidth, int frames_per_second, bool threed, bool fourk)
{