openjpeg/applications/codec
Mathieu Malaterre 4935eaf773 [1.5] COMP: Fix warnings identified by clang31
openjpeg/libopenjpeg/tcd.c:1884 col 48: warning: comparison of unsigned expressi
on < 0 is always false

openjpeg/applications/codec/j2k_dump.c:362 col 29: warning: equality comparison
with extraneous parentheses

openjpeg/libopenjpeg/jpwl/jpwl_lib.c:680:19: warning: format specifies type 'int
' but the argument has type 'long long' [-Wformat]
    printf("Marker@%d: %X\n", cio_tell(cio) - 2, id);
                   ~^         ~~~~~~~~~~~~~~~~~
                   %lld

openjpeg/applications/jpip/libopenjpip/byte_manager.c:58:63: warning: format spe
cifies type 'long' but the argument has type 'OPJ_OFF_T' (aka 'long long') [-Wfo
rmat]
fprintf( FCGI_stderr, "Error: error in fetch_bytes( %d, %ld, %lu)\n", fd, offset
, size);

Author: Hans Johnson <hans-johnson@uiowa.edu>
2012-08-24 08:13:17 +00:00
..
CMakeLists.txt [1.5] remove pthread dependency in JPIP client and tweak thirdparty stuff 2012-01-25 16:30:03 +00:00
Makefile.am backport r898 to r907 in openjpeg-1.5 branch 2011-09-01 12:08:10 +00:00
README re-organization of openjpeg directories hierarchy : step 1 2011-04-13 21:01:39 +00:00
convert.c [1.5] The two files in Issue145 have a precision < 8-bit: 2012-05-29 13:54:21 +00: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 Hide a warning. Since 1.5 is not large file safe (>32bits) this should be ok 2011-12-16 10:43:10 +00: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 [1.5] COMP: Fix warnings identified by clang31 2012-08-24 08:13:17 +00:00
j2k_to_image.c Remove some simple warnings about comments 2011-12-16 10:29:30 +00:00
windirent.h [1.5] Convert from DOS eol to UNIX eol 2012-03-02 09:50:30 +00:00

README

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.