[trunk] FolderReorgProposal task: rename cli tools

Update issue 177
This commit is contained in:
Mathieu Malaterre 2012-09-28 09:12:22 +00:00
parent a4fa18e92d
commit 3bf4d635f2
9 changed files with 28 additions and 35 deletions

View File

@ -18,7 +18,8 @@ if(NOT OPENJPEG_NAMESPACE)
set(OPENJPEG_STANDALONE 1) set(OPENJPEG_STANDALONE 1)
endif() endif()
# In all cases: # In all cases:
string(TOLOWER ${OPENJPEG_NAMESPACE} OPENJPEG_LIBRARY_NAME) #string(TOLOWER ${OPENJPEG_NAMESPACE} OPENJPEG_LIBRARY_NAME)
set(OPENJPEG_LIBRARY_NAME openjp2)
project(${OPENJPEG_NAMESPACE} C) project(${OPENJPEG_NAMESPACE} C)

View File

@ -29,10 +29,10 @@
.SP .SP
.fi .fi
.. ..
.TH image_to_j2k 1 "Version 1.4.0" "image_to_j2k" "converts to jpeg2000 files" .TH opj_compress 1 "Version 1.4.0" "opj_compress" "converts to jpeg2000 files"
.P .P
.SH NAME .SH NAME
image_to_j2k - opj_compress -
This program reads in an image of a certain type and converts it to a This program reads in an image of a certain type and converts it to a
jpeg2000 file. It is part of the OpenJPEG library. jpeg2000 file. It is part of the OpenJPEG library.
.SP .SP
@ -43,11 +43,11 @@ Valid output image extensions are
.B .j2k, .jp2 .B .j2k, .jp2
.SH SYNOPSIS .SH SYNOPSIS
.P .P
.B image_to_j2k -i \fRinfile.bmp \fB-o \fRoutfile.j2k .B opj_compress -i \fRinfile.bmp \fB-o \fRoutfile.j2k
.P .P
.B image_to_j2k -ImgDir \fRdirectory_name \fB-OutFor \fRjp2 .B opj_compress -ImgDir \fRdirectory_name \fB-OutFor \fRjp2
.P .P
.B image_to_j2k -h \fRPrint a help message and exit. .B opj_compress -h \fRPrint a help message and exit.
.P .P
.R See JPWL OPTIONS for special options .R See JPWL OPTIONS for special options
.SH OPTIONS .SH OPTIONS
@ -194,13 +194,13 @@ Options usable only if the library has been compiled with \fB-DUSE_JPWL\fR
.P .P
.SH EXAMPLES .SH EXAMPLES
.P .P
.B image_to_j2k -i \fRfile.bmp \fB-o \fRfile.j2k \fB-r \fR20,10,1 (compress 20x, then 10x, then lossless). .B opj_compress -i \fRfile.bmp \fB-o \fRfile.j2k \fB-r \fR20,10,1 (compress 20x, then 10x, then lossless).
.P .P
.B image_to_j2k -i \fRfile.ppm \fB-o \fRfile.j2k \fB-q \fR30,40,50 .B opj_compress -i \fRfile.ppm \fB-o \fRfile.j2k \fB-q \fR30,40,50
.P .P
.B image_to_j2k -i \fRfile.pgx \fB-o \fRfile.j2k \fB-POC \fRT1=0,0,1,5,3,CPRL .B opj_compress -i \fRfile.pgx \fB-o \fRfile.j2k \fB-POC \fRT1=0,0,1,5,3,CPRL
.P .P
.B image_to_j2k -i \fRlena.raw \fB-o \fRlena.j2k \fB-F \fR512,512,3,8,u .B opj_compress -i \fRlena.raw \fB-o \fRlena.j2k \fB-F \fR512,512,3,8,u
.P .P
.SH AUTHORS .SH AUTHORS
Copyright (c) 2002-2007, Communications and Remote Sensing Laboratory, Universite catholique de Louvain (UCL), Belgium Copyright (c) 2002-2007, Communications and Remote Sensing Laboratory, Universite catholique de Louvain (UCL), Belgium
@ -218,5 +218,5 @@ Copyright (c) 2005, Herve Drolon, FreeImage Team
Copyright (c) 2006-2007, Parvatha Elangovan Copyright (c) 2006-2007, Parvatha Elangovan
.P .P
.SH "SEE ALSO" .SH "SEE ALSO"
j2k_to_image(1) j2k_dump(1) opj_decompress(1) opj_dump(1)

View File

@ -29,10 +29,10 @@
.SP .SP
.fi .fi
.. ..
.TH j2k_to_image 1 "Version 1.4.0" "j2k_to_image" "converts jpeg2000 files" .TH opj_decompress 1 "Version 1.4.0" "opj_decompress" "converts jpeg2000 files"
.P .P
.SH NAME .SH NAME
j2k_to_image - opj_decompress -
This program reads in a jpeg2000 image and converts it to another This program reads in a jpeg2000 image and converts it to another
image type. It is part of the OpenJPEG library. image type. It is part of the OpenJPEG library.
.SP .SP
@ -43,11 +43,11 @@ Valid output image extensions are
.B .bmp, .pgm, .pgx, .png, .pnm, .ppm, .raw, .tga, .tif \fR. For PNG resp. TIF it needs libpng resp. libtiff . .B .bmp, .pgm, .pgx, .png, .pnm, .ppm, .raw, .tga, .tif \fR. For PNG resp. TIF it needs libpng resp. libtiff .
.SH SYNOPSIS .SH SYNOPSIS
.P .P
.B j2k_to_image -i \fRinfile.j2k \fB-o \fRoutfile.png .B opj_decompress -i \fRinfile.j2k \fB-o \fRoutfile.png
.P .P
.B j2k_to_image -ImgDir \fRimages/ \fB-OutFor \fRbmp .B opj_decompress -ImgDir \fRimages/ \fB-OutFor \fRbmp
.P .P
.B j2k_to_image -h \fRPrint help message and exit .B opj_decompress -h \fRPrint help message and exit
.P .P
.R See JPWL OPTIONS for special options .R See JPWL OPTIONS for special options
.SH OPTIONS .SH OPTIONS
@ -106,4 +106,4 @@ Copyright (c) 2005, Herve Drolon, FreeImage Team
Copyright (c) 2006-2007, Parvatha Elangovan Copyright (c) 2006-2007, Parvatha Elangovan
.P .P
.SH "SEE ALSO" .SH "SEE ALSO"
image_to_j2k(1) j2k_dump(1) opj_compress(1) opj_dump(1)

View File

@ -29,10 +29,10 @@
.SP .SP
.fi .fi
.. ..
.TH j2k_dump 1 "Version 1.4.0" "j2k_dump" "dumps jpeg2000 files" .TH opj_dump 1 "Version 1.4.0" "opj_dump" "dumps jpeg2000 files"
.P .P
.SH NAME .SH NAME
j2k_dump - opj_dump -
This program reads in a jpeg2000 image and dumps the contents to stdout. It is part of the OpenJPEG library. This program reads in a jpeg2000 image and dumps the contents to stdout. It is part of the OpenJPEG library.
.SP .SP
Valid input image extensions are Valid input image extensions are
@ -40,11 +40,11 @@ Valid input image extensions are
.SP .SP
.SH SYNOPSIS .SH SYNOPSIS
.P .P
.B j2k_dump -i \fRinfile.j2k .B opj_dump -i \fRinfile.j2k
.P .P
.B j2k_dump -ImgDir \fRimages/ \fRDump all files in images/ .B opj_dump -ImgDir \fRimages/ \fRDump all files in images/
.P .P
.B j2k_dump -h \fRPrint help message and exit .B opj_dump -h \fRPrint help message and exit
.P .P
.SH OPTIONS .SH OPTIONS
.TP .TP
@ -59,4 +59,4 @@ Valid input image extensions are
Copyright (c) 20010, Mathieu Malaterre Copyright (c) 20010, Mathieu Malaterre
.P .P
.SH "SEE ALSO" .SH "SEE ALSO"
image_to_j2k(1) j2k_to_image(1) opj_compress(1) opj_decompress(1)

View File

@ -27,7 +27,7 @@ if(WIN32)
endif() endif()
# Loop over all executables: # Loop over all executables:
foreach(exe j2k_to_image image_to_j2k j2k_dump) foreach(exe opj_decompress opj_compress opj_dump)
add_executable(${exe} ${exe}.c ${common_SRCS}) add_executable(${exe} ${exe}.c ${common_SRCS})
target_link_libraries(${exe} ${OPENJPEG_LIBRARY_NAME} target_link_libraries(${exe} ${OPENJPEG_LIBRARY_NAME}
${PNG_LIBNAME} ${TIFF_LIBNAME} ${LCMS_LIBNAME} ${PNG_LIBNAME} ${TIFF_LIBNAME} ${LCMS_LIBNAME}
@ -52,9 +52,9 @@ endforeach()
# Install man pages # Install man pages
install( install(
FILES ${OPENJPEG_SOURCE_DIR}/doc/man/man1/image_to_j2k.1 FILES ${OPENJPEG_SOURCE_DIR}/doc/man/man1/opj_compress.1
${OPENJPEG_SOURCE_DIR}/doc/man/man1/j2k_dump.1 ${OPENJPEG_SOURCE_DIR}/doc/man/man1/opj_decompress.1
${OPENJPEG_SOURCE_DIR}/doc/man/man1/j2k_to_image.1 ${OPENJPEG_SOURCE_DIR}/doc/man/man1/opj_dump.1
DESTINATION ${OPENJPEG_INSTALL_MAN_DIR}/man1) DESTINATION ${OPENJPEG_INSTALL_MAN_DIR}/man1)
# #

View File

@ -1,8 +0,0 @@
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.