X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=inline;f=benchmark%2Fj2k_transcode.cc;h=71602e0b293548d067854466ac00641256d0d4be;hb=3ab56573dbfb395fea493096182dc14c09fb961f;hp=1a814b69a765229f568f240f9505a217461b9695;hpb=ec82ce2d44d5ba492a3dfa6e740ff21549d438e1;p=libdcp.git diff --git a/benchmark/j2k_transcode.cc b/benchmark/j2k_transcode.cc index 1a814b69..71602e0b 100644 --- a/benchmark/j2k_transcode.cc +++ b/benchmark/j2k_transcode.cc @@ -31,18 +31,20 @@ files in the program, then also delete it here. */ -#include "data.h" + +#include "array_data.h" +#include "j2k_transcode.h" +#include "openjpeg_image.h" #include "util.h" #include "version.h" -#include "j2k.h" -#include "openjpeg_image.h" #include #include #include + using std::cout; using std::cerr; -using boost::shared_ptr; +using std::shared_ptr; class Timer { @@ -87,12 +89,12 @@ main (int argc, char* argv[]) int const count = 100; int const j2k_bandwidth = 100000000; - dcp::Data j2k (boost::filesystem::path (argv[1]) / "thx.j2c"); + dcp::ArrayData j2k (boost::filesystem::path (argv[1]) / "thx.j2c"); Timer decompress; Timer compress; - dcp::Data recomp; + dcp::ArrayData recomp; for (int i = 0; i < count; ++i) { decompress.start (); shared_ptr xyz = dcp::decompress_j2k (j2k, 0); @@ -109,6 +111,6 @@ main (int argc, char* argv[]) cout << "Compress: " << count / compress.get() << " fps.\n"; FILE* f = fopen ("check.j2c", "wb"); - fwrite (recomp.data().get(), 1, recomp.size(), f); + fwrite (recomp.data(), 1, recomp.size(), f); fclose (f); }