jpeg_ls_v2.2

所属分类:压缩解压
开发工具:Visual C++
文件大小:4297KB
下载次数:239
上传日期:2007-12-18 10:43:38
上 传 者jason_wang
说明:  实现了JPEG-LS的标准算法,可以同时对BMP,PPM,PGN 图像进行解压缩,还可以支持点交叉扫描,隔行交叉扫描,非交叉扫描三种模式
(Achieved a standard JPEG-LS algorithm, can also BMP, PPM, PGN decompressed images can also support the point of cross-scan, cross-interlaced scanning, non-cross-scanning three models)

文件列表:
jpeg_ls_v2.2\jpeg_ls_v2.2\JLSEncoder.exe (457216, 1999-03-30)
jpeg_ls_v2.2\jpeg_ls_v2.2\lena24b.jls (446342, 1999-03-13)
jpeg_ls_v2.2\jpeg_ls_v2.2\lena8b.jls (138835, 1999-03-13)
jpeg_ls_v2.2\jpeg_ls_v2.2\table24_no_red (774, 1999-03-12)
jpeg_ls_v2.2\jpeg_ls_v2.2\table_r (262, 1999-03-12)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\bitio.c (4301, 1999-06-23)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\jpegmark.h (3967, 1999-06-23)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\makefile (950, 1999-06-23)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\makefile.hpux.enc (961, 1999-03-31)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\makefile.vc (984, 1999-03-30)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\encoder.ncb (82944, 2007-10-21)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\encoder.plg (1626, 2007-10-21)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\lossy_e.c (21876, 2007-10-18)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\bitio.h (6193, 2007-10-18)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\initialize.c (7467, 2007-10-18)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\lossless_e.c (20262, 2007-10-18)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\encoder.dsw (539, 2007-10-18)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\global.c (10016, 2007-10-18)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\global.h (10609, 2007-10-18)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\melcode.c (4913, 2007-10-18)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\encoder.dsp (3853, 2007-10-18)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\Debug\vc60.idb (41984, 2007-10-21)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\Debug\vc60.pdb (53248, 2007-10-21)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\Debug\bitio.sbr (0, 2007-10-18)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\Debug\bitio.obj (4451, 2007-10-18)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\Debug\encoder.sbr (0, 2007-10-21)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\Debug\encoder.obj (50434, 2007-10-21)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\Debug\global.sbr (0, 2007-10-18)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\Debug\global.obj (16117, 2007-10-18)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\Debug\initialize.sbr (0, 2007-10-18)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\Debug\initialize.obj (8095, 2007-10-18)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\Debug\jpegmark.sbr (0, 2007-10-21)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\Debug\jpegmark.obj (14538, 2007-10-21)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\Debug\lossless_e.sbr (0, 2007-10-18)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\Debug\lossless_e.obj (22659, 2007-10-18)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\Debug\lossy_e.sbr (0, 2007-10-18)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\Debug\lossy_e.obj (24782, 2007-10-18)
jpeg_ls_v2.2\jpeg_ls_v2.2\Encoder\Debug\melcode.sbr (0, 2007-10-18)
... ...

{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fmodern\fprq6\fcharset134 \'cb\'ce\'cc\'e5;}} {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\lang2052\f0\fs40 COMPILATION INSTRUCTIONS:\par 1. Unpack archive.\par 2. Run \par \par \tab make clean "name",\par where "name" is\par \tab loco -- for encoder/decoder\par \par This program supports:\par "8 bit" images with 8 bits per color component or less.\par "16 bit" images with between 9 and 16 bits per color component.\par \tab component.\par \par 3. Executable for compressor is "locoe," decompressor is "locod".\par \par USAGE:\par \tab General remarks for multiple-component images:\par \par \tab a) Encoder input (uncompressed) or decoder output (decompressed) \par \tab images are in either PGM (grayscale) or PPM (3-color) format.\par \tab This is of course NOT part of the JPEG-LS standard, and these\par \tab input/output formats were selected for this implementation only.\par \par \tab These formats have an ASCII header consisting of 3 lines of the \par \tab following form\par \par \tab * PGM (single component):\par \par \tab\tab P5\par \tab\tab cols rows\par \tab\tab maxval\par \par \tab * PPM (3 components)\par \par \tab\tab P6\par \tab\tab cols rows\par \tab\tab maxval\par \par \tab\tab\par \tab For PGM, the header is followed by cols*rows samples in binary \par \tab format, where cols and rows are the number of columns and rows, \par \tab respectively. A test image "cmpnd2g.pgm" is included in the \par \tab archive. Samples have 8 bits if maxval < 256, or 16 bits if \par \tab 256 <= maxval < 65536. \par \par \tab For PPM, the header is followed by cols*rows TRIPLETS of symbols in\par \tab binary format. Each symbol in a triplet represents a color plane\par \tab value (viewers usually interpret PPM triplets as RGB).\par \par \tab For more than 3 components, the PPM output file\par \tab format is extended to arbitrary m-tuples,\par \tab where m is the number of components.\par \tab The first row of the header is Px, where x = 10+m \par \tab (e.g. P15 for a 5-component image). P5 (m=1), P6 (m=3),\par \tab and P7 (m=4) are used, in addition to P11, P13, and P14,\par \tab respectively.\par \par \tab A multi-component image can be specified to the encoder either\par \tab as a list of PGM files (each representing a color plane), or\par \tab a single PPM-type file.\par \par \tab b) Three modes of operation are supported for multi-component\par \tab images (images of the type RGB, CMYK, YUV, etc).\par \tab We briefly describe them now, for details see the\par \tab JPEG-LS Working Draft document.\par \par \tab * Plane-interleaved. The image components are\par \tab compressed one after the other, in a completely\par \tab independent form. Only multiple input\par \tab (one PGM file per plane) in the encoder, and multiple\par \tab output (one PGM file per plane) in the decoder are supported\par \tab in this mode. This mode also works when m=1.\par \par * Line-interleaved. One row per image component is processed\par \tab at a time, in an interleaved form.\par \tab Common context statistics for all the components\par \tab are used in this mode, and is plane independent otherwise.\par \tab Both multiple PGM and single PPM input\par \tab (output) are supported in the encoder (decoder). \par \tab Line-interleaved mode is the default mode of the encoder. \par \tab This mode also works when m=1.\par \par \tab * Sample-interleaved mode. One sample per image component is \par \tab processed at a time, using common statistics. Only single PPM \par \tab input and single PPM output are supported in this mode.\par \par \tab c) Which of the three multi-components modes runs faster depends\par \tab on the specific system (UNIX or PC).\par \tab For the line interleaved mode, the processing time relation\par \tab between the single and the multiple files input/output depends \par \tab on the system as well.\par \par d) Sub-sampled components can be specified to the encoder (e.g.,\par \tab a YUV representation with the U and V components having a fraction\par \tab of the number of columns of the Y component).\par \tab For sub-sampled files, the input to the encoder must be\par \tab given as a series of PGM files in non-increasing order of size.\par \tab Sample-interleaved mode is not supported for images with\par \tab sub-sampled components.\par \par \tab e) The output of the encoder, and input to the decoder, is\par \tab always a unique JPEG-LS compressed file, independently of the\par \tab number of image components. All the image components share the\par \tab same header in JPEG-LS.\par \par \par COMMAND LINES:\par \par encoder:\par \par \tab locoe [flags] infile1 [infile2,infile3,...] [-ooutfile]\par \par \tab DEFAULTS:\par \tab infile1 : must be in PGM or PPM format\par \tab infile2,... : additional input files for Plane Interleaved\par \tab \tab or Line Interleaved modes. Must be in PGM (P5) format\par outfile : default is locoe.out\par \par FLAGS, PARAMETERS:\par -i : alternate input-specification, use -i- for stdin\par -o : output specification, use -o- for stdout\par -c : mode for multi-component images:\par \tab \tab 0: plane interleaved\par \tab\tab 1: line interleaved (Default)\par \tab\tab 2: sample interleaved\par -n or\par -e : Max allowed loss per symbol (default = 0, lossless).\par \tab -h : print help\par \par Remarks:\par \tab\tab The following optional flags allow specification of\par \tab\tab parameters in the algorithm. These parameters,\par \tab\tab if not default, are included in the JPEG-LS \par \tab\tab header, and are part of the standard. Please\par \tab\tab refer to Working Document for details.\par \par \tab\tab -r\tab : RESET (if not compiled with FIXRESET, see below)\par \tab\tab -S : Context modeling thresholds\par -m : Use mapping table where
is a file in the \par format:\par \tab\tab 1st byte of
is the Table ID, 2nd byte\par of
is the Width of each table entry (in bytes),\par 3rd - 6th byte of
is the Max Table Index Value \par specified as an integer (4 bytes), 7th byte and on\par are the table entries.\par -t : Use Restart Markers where is the restart interval\par (ie. number of MCU's between restart markers).\\n");\par \par \tab\tab *** Use only if you know what you are doing!\par \par \tab decoder:\par \par \tab locod [flags] [infile] [outfile1 [outfile2, ...]]\par \par \tab DEFAULTS:\par \tab infile = locoe.out\par \tab outfile1 = locod.out for single output file\par \tab outfile[1,2,...] = locod[1,2,...].out for multiple output files in\par \tab\tab\tab Plane or Line Interleaved mode\par \tab FLAGS, PARAMETERS:\par \tab outfile2, ... : multiple output specification for plane- or\par \tab\tab\tab line-interleaved mode\par \tab -i : alternate input specification, use -i- for stdin\par \tab -o : alternate output specification, use -o- for stdout\par \tab -P : generate single (.ppm) output file for\par \tab \tab\tab sample/line-int. mode. Mandatory for sample-int. mode.\par \par EXAMPLES:\par \par For the examples, assume:\par * red.pgm, green.pgm, and blue.pgm are 3 color components of\par a color image, of the same size.\par * color.ppm is the color image corresponding to red.pgm, green.pgm, blue.pgm\par * hotely.pgm, hotelu.pgm, hotelv.pgm are 3 components of a color image\par sub-sampled in the horizontal direction 2:1:1\par \par \par a) locoe red.pgm green.pgm blue.pgm\par \par Compresses the three files using the default color mode (line int., c=1)\par Compressed file is in locoe.out\par \par locod\par \par Decompresses locoe.out into 3 pgm files: \par locod1.out, locod2.out, locod3.out\par \par locod locoe.out a.pgm b.pgm c.pgm\par \par Decompresses locoe.out into 3 pgm files: a.pgm, b.pgm, c.pgm\par \par locod -P\par \par Decompresses locoe.out into one ppm file: locod.out\par \par \par \par b) locoe color.ppm\par \par Same as (a), using single input\par \par c) locoe -c0 red.pgm green.pgm blue.pgm\par \par Compresses the three files using the plane interleaved color mode\par \par locod\par \par Decompresses locoe.out into 3 pgm files: locod1.out, locod2.out, \par locod3.out In this case, since c=0, the command locod -P will give \par an error.\par \par d) locoe -c2 color.ppm\par \par Compresses color.ppm with sample int. mode. Note that only one (ppm) input\par file must be given in this mode.\par Output is in locoe.out\par \par locod -P\par \par Decompresses locoe.out into locod.out. Note that -P must be given, since\par for sample int. mode, only single output file is supported.\par \par g) locoe -Sa5 -Sb9 red.pgm\par \par Compress red.pgm with Sa=5, Sb=9, and Sc=DEFAULT\par \par h) locoe -r128 green.pgm\par \par Compresses green.pgm with RESET=128.\par \par \par OTHER CAVEATS, LIMITATIONS, ANNOYANCES, BUGS (?)\par =================================================\par * The makefiles included in this version are very simple and could lead to \par a slower executable files than HP executables.\par * Annoyance: no spaces are allowed between flags and their arguments. This \par will be fixed in a future version.\par * Other bugs, annoyances: you tell us.\par \par ------------------------------------------------------------------------------ \par \par Feedback to\par -----------\par The SPMG lab at the University of British Columbia:\par ismaeil R. Ismaeil ismail@ee.ubc.ca\par Dr. Faouzi Kossentini faouzi@ece.ubc.ca, or \par }
近期下载者

相关文件


收藏者