summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-11-28 13:15:37 +0000
committerCarl Hetherington <cth@carlh.net>2015-11-28 13:15:37 +0000
commit8ccf9e982971a8eca1027ad5c04d837b6ad068dc (patch)
treef1f4785df95a266a7d1a511729e379913096f57a /src/util.h
parent257b936e9ed24043cfc1ed6e7e762858250bc388 (diff)
Add compress_j2k method and simple benchmark.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index a56b1f4d..da1844cb 100644
--- a/src/util.h
+++ b/src/util.h
@@ -25,6 +25,7 @@
*/
#include "types.h"
+#include "data.h"
#include <boost/shared_ptr.hpp>
#include <boost/function.hpp>
#include <boost/filesystem.hpp>
@@ -54,6 +55,7 @@ extern std::string content_kind_to_string (ContentKind kind);
extern ContentKind content_kind_from_string (std::string kind);
extern bool empty_or_white_space (std::string s);
extern boost::shared_ptr<OpenJPEGImage> decompress_j2k (uint8_t* data, int64_t size, int reduce);
+extern Data compress_j2k (boost::shared_ptr<OpenJPEGImage>, int bandwith, int frames_per_second, bool threed, bool fourk);
extern bool ids_equal (std::string a, std::string b);
extern void init ();