diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2014-09-07 16:32:08 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2014-09-07 16:32:08 -0400 |
| commit | 74604d7b8ae98b125f1c800da753f8ab67474eb5 (patch) | |
| tree | f2460db085a00813cfa8381d6dd98740227c6eae /djvu.js/test_djvu.cpp | |
| parent | 17bb0e517825b4f3f1f5668f1bd1494b337655aa (diff) | |
| download | ocr-layer-curation-74604d7b8ae98b125f1c800da753f8ab67474eb5.tar.gz | |
cleanup
Diffstat (limited to 'djvu.js/test_djvu.cpp')
| -rw-r--r-- | djvu.js/test_djvu.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/djvu.js/test_djvu.cpp b/djvu.js/test_djvu.cpp deleted file mode 100644 index 5e09a64..0000000 --- a/djvu.js/test_djvu.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include <ByteStream.h> -#include <stdio.h> -#include <fcntl.h> -#include <JB2Image.h> -#include <GBitmap.h> - -int main(){ - int fh = open("image.jb2", O_RDONLY, 0); - int fh2 = open("image.pbm", O_WRONLY | O_CREAT, 0600); - GP<ByteStream> gbs = ByteStream::create(fh, "r", true); - GP<ByteStream> gbs2 = ByteStream::create(fh2, "w", true); - GP<JB2Image> img = JB2Image::create(); - img->decode(gbs, 0, 0); - int w =img->get_width(); - int h = img->get_height(); - GP<GBitmap> gbmp = img->get_bitmap(1, 1); - gbmp->save_pbm(*gbs2); - printf("taille est %d %d", w, h); -} |
