openjpeg/applications/codec
Antonin Descampe 32b04ad49d Makes j2k_dump focus on parsing j2k codestreams, nothing else.
Avoid processing JP2 PCLR, CMAP, CDEF boxes and J2K packets in j2k_dump.
Fixes #595
2015-09-23 17:48:30 +02:00
..
CMakeLists.txt [1.5] Create a new cmake option to choose between convienient copy of getopt and system installed one 2014-03-18 15:59:08 +00:00
convert.c Wrong TGA header generated by j2k_to_image 2015-09-16 20:28:29 +02:00
convert.h defined new type "opj_bool", and new constants OPJ_FALSE and OPJ_TRUE, to avoid having to deal with "stdbool.h" (patch from Winfried) 2011-05-18 11:02:27 +00:00
image_to_j2k.c preventde seg fault when unknown long options and fixed ability to use USE_SYSTEM_GETOPT 2015-09-15 18:00:52 +02:00
index.c [1.5] Convert from DOS eol to UNIX eol 2012-03-02 09:50:30 +00:00
index.h [1.5] Convert from DOS eol to UNIX eol 2012-03-02 09:50:30 +00:00
j2k_dump.c Makes j2k_dump focus on parsing j2k codestreams, nothing else. 2015-09-23 17:48:30 +02:00
j2k_to_image.c preventde seg fault when unknown long options and fixed ability to use USE_SYSTEM_GETOPT 2015-09-15 18:00:52 +02:00
Makefile.am [1.5] Import patch from bug tracker 2014-03-25 16:42:49 +00:00
README re-organization of openjpeg directories hierarchy : step 1 2011-04-13 21:01:39 +00:00
windirent.h [1.5] Convert from DOS eol to UNIX eol 2012-03-02 09:50:30 +00:00

Simple codec compilation
------------------------
Once you've built the library, you might want to test it with a basic codec. To do this, go to the codec directory and either use the provided Makefile or use one of the following commands to build an encoder and decoder respectively:

gcc index.c convert.c image_to_j2k.c -o image_to_j2k -lopenjpeg -I ../libopenjpeg/ -lm -ltiff
gcc index.c convert.c j2k_to_image.c -o j2k_to_image -lopenjpeg -I ../libopenjpeg/ -lm -ltiff

You should add '-L..' to those lines if you did not use the 'install' target when building the library.