2 '\" The line above instructs most `man' programs to invoke tbl
4 '\" Separate paragraphs; not the same as PP which resets indent level.
10 '\" Replacement em-dash for nroff (default is too short).
14 '\" Placeholder macro for if longer nroff arrow is needed.
17 '\" Decimal point set slightly raised
18 .if t .ds d \v'-.15m'.\v'+.15m'
21 '\" Enclosure macro for examples
32 .TH opj_compress 1 "Version 1.4.0" "opj_compress" "converts to jpeg2000 files"
36 This program reads in an image of a certain type and converts it to a
37 jpeg2000 file. It is part of the OpenJPEG library.
39 Valid input image extensions are
40 .B .bmp, .pgm, .pgx, .png, .pnm, .ppm, .raw, .tga, .tif \fR. For PNG resp. TIF it needs libpng resp. libtiff .
42 Valid output image extensions are
46 .B opj_compress -i \fRinfile.bmp \fB-o \fRoutfile.j2k
48 .B opj_compress -ImgDir \fRdirectory_name \fB-OutFor \fRjp2
50 .B opj_compress -h \fRPrint a help message and exit.
52 .R See JPWL OPTIONS for special options
56 (Size of code block (e.g. -b 32,32). Default: 64 x 64)
59 (Size of precinct (e.g. -c 128,128). Default: 2^15 x 2^15)
61 .B \-\^cinema2K " fps"
62 Digital Cinema 2K profile compliant codestream. Valid \fBfps\fR values are 24 or 48.
65 Digital Cinema 4K profile compliant codestream. Does not need an fps: default is 24 fps.
68 (Offset of image origin (e.g. -d 150,300))
71 Print a help message and exit.
77 (Number of resolutions. Default: 6)
83 Progression order. \fBname\fR can be one out of:LRCP, RLCP, RPCL, PCRL, CPRL. Default: LRCP.
86 different psnr for successive layers
88 .B Note: \fR(options -r and -q cannot be used together)
91 different compression ratio(s) for successive layers. The rate specified for each quality level is the desired compression factor.
93 .B Note: \fR(options -r and -q cannot be used together)
96 sub-sampling factor (e.g. -s 2,2). Default: No sub-sampling in x or y direction.
98 .B Remark: \fRsub-sampling bigger than 2 can produce errors.
101 (Size of tile (e.g. -t 512,512) )
104 (Create index file and fill it. Default: no index file)
107 (Write EPH marker after each header packet. Default:no EPH)
109 .B \-\^F " rawWidth,rawHeight,rawComp,rawBitDepth,s_or_u"
110 characteristics of the raw input image
113 (Use the irreversible DWT 9-7. Default: Reversible DWT 5-3)
115 .B \-\^ImgDir " directory_name"
116 (directory containing input files)
119 mode switch with values: 1, 2, 4, 8, 16, 32. Default:No mode switch activated.
135 Values can be added: RESTART(4) + RESET(2) + SEGMARK(32) = -M 38
138 (extension for output files)
140 .B \-\^POC "TtileNr=resolutionStart, componentStart, layerEnd, resolutionEnd, componentEnd, progressionOrder"
144 quantization indices upshifted for component c (0 or 1 or 2) with a value of U (>= 0 and <= 37)
146 e.g. \fB-ROI c=0,U=25\fR
149 (Write SOP marker before each packet. Default: No SOP marker in the codestream.)
152 (Offset of the origin of the tiles (e.g. -T 100,75) )
158 Options usable only if the library has been compiled with \fB-DUSE_JPWL\fR
160 .B -W h<tilepart><=type>, s<tilepart><=method>, a=<addr>, z=<size>, g=<range>, p<tilepart:pack><=type>
162 .B h\fR selects the header error protection (EPB): \fBtype\fR can be
163 [0=none 1,absent=predefined 16=CRC-16 32=CRC-32 37-128=RS]
164 if \fBtilepart\fR is absent, it is for main and tile headers
165 if \fBtilepart\fR is present, it applies from that tile
166 onwards, up to the next h<> spec, or to the last tilepart
167 in the codestream (max. 16 specs)
169 .B p \fRselects the packet error protection (EEP/UEP with EPBs)
170 to be applied to raw data: \fBtype\fR can be
171 [0=none 1,absent=predefined 16=CRC-16 32=CRC-32 37-128=RS]
172 if \fBtilepart:pack\fR is absent, it is from tile 0, packet 0
173 if \fBtilepart:pack\fR is present, it applies from that tile
174 and that packet onwards, up to the next packet spec
175 or to the last packet in the last tilepart in the stream
178 .B s \fRenables sensitivity data insertion (ESD): \fBmethod\fR can be
179 [-1=NO ESD 0=RELATIVE ERROR 1=MSE 2=MSE REDUCTION 3=PSNR
180 4=PSNR INCREMENT 5=MAXERR 6=TSE 7=RESERVED]
181 if \fBtilepart\fR is absent, it is for main header only
182 if \fBtilepart\fR is present, it applies from that tile
183 onwards, up to the next s<> spec, or to the last tilepart
184 in the codestream (max. 16 specs)
186 .B g \fRdetermines the addressing mode: \fBrange\fR can be
187 [0=PACKET 1=BYTE RANGE 2=PACKET RANGE]
189 .B a \fRdetermines the size of data addressing: \fBaddr\fR can be
190 2/4 bytes (small/large codestreams). If not set, auto-mode
192 .B z \fRdetermines the size of sensitivity values: \fBsize\fR can be
193 1/2 bytes, for the transformed pseudo-floating point value
197 .B opj_compress -i \fRfile.bmp \fB-o \fRfile.j2k \fB-r \fR20,10,1 (compress 20x, then 10x, then lossless).
199 .B opj_compress -i \fRfile.ppm \fB-o \fRfile.j2k \fB-q \fR30,40,50
201 .B opj_compress -i \fRfile.pgx \fB-o \fRfile.j2k \fB-POC \fRT1=0,0,1,5,3,CPRL
203 .B opj_compress -i \fRlena.raw \fB-o \fRlena.j2k \fB-F \fR512,512,3,8,u
206 Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium
208 Copyright (c) 2002-2014, Professor Benoit Macq
210 Copyright (c) 2001-2003, David Janssens
212 Copyright (c) 2002-2003, Yannick Verschueren
214 Copyright (c) 2003-2007, Francois-Olivier Devaux and Antonin Descampe
216 Copyright (c) 2005, Herve Drolon, FreeImage Team
218 Copyright (c) 2006-2007, Parvatha Elangovan
221 opj_decompress(1) opj_dump(1)