Reply by Thomas Richter●November 23, 20072007-11-23
John Costella schrieb:
> 12:30 pm CST, November 22, 2007
>
>
> I am pleased to announce the release of a new image format, which I
> have somewhat mischievously dubbed "JPEG-Clear", which is optimized
> for the following uses, among others:
Update to that:
1) Please add a Makefile. Here's one:
CFLAGS = -Wall -pedantic -O3
CC = gcc
LDFLAGS = -lm
all: bmp_to_jpc jpc_to_bmp
bmp_to_jpc: bmp_to_jpc.o costella_base.o costella_bitstream.o
costella_bmp.o costella_eimage.o costella_eimage_convert.o
costella_eimage_esimage.o costella_eimage_esimage_convert.o
costella_esimage.o costella_esimage_convert.o costella_esimage_magic.o
costella_huffman_1.o costella_huffman_2.o costella_huffman_3.o
costella_huffman_4.o costella_image.o costella_image_chrominance.o
costella_image_convert.o costella_image_simage.o
costella_image_simage_convert.o costella_jpc.o costella_quadword.o
costella_quantize.o costella_simage.o costella_simage_convert.o
costella_simage_magic.o costella_sort.o costella_wrap.o
jpc_to_bmp: jpc_to_bmp.o costella_base.o costella_bitstream.o
costella_bmp.o costella_eimage.o costella_eimage_convert.o
costella_eimage_esimage.o costella_eimage_esimage_convert.o
costella_esimage.o costella_esimage_convert.o costella_esimage_magic.o
costella_huffman_1.o costella_huffman_2.o costella_huffman_3.o
costella_huffman_4.o costella_image.o costella_image_chrominance.o
costella_image_convert.o costella_image_simage.o
costella_image_simage_convert.o costella_jpc.o costella_quadword.o
costella_quantize.o costella_simage.o costella_simage_convert.o
costella_simage_magic.o costella_sort.o costella_wrap.o
2) Please make sure the thing works:
thor@rusime04:~/src/jclear> bmp_to_jpc s.bmp s.jpc 163813
Costella library error tree:
----------------------------
CostellaJpcOutAll: Writing scale
CostellaJpcOutScale: Writing out Y channel
CostellaJpcChannelOutScale: Quantizing delta image
CostellaJpcChannelOutDownquantize: Starting next pass for
COSTELLA_QUANTIZE_OUT object
CostellaQuantizeOutStartNextPass: Creating new Huffman-4 object for
quantized level trial
CostellaHuffman4OutNew: Creating Huffman-3 object (message)
CostellaHuffman3OutNew: Creating standard Huffman-2 mode object
CostellaHuffman2OutNew: Creating output Huffman-1 object
CostellaHuffman1OutNew: Allocating frequency table
ERROR: Could not write out the JPC file.
thor@rusime04:~/src/jclear> uname -a
Linux rusime04 2.6.18.8-0.3-default #1 SMP Tue Apr 17 08:42:35 UTC 2007
x86_64 x86_64 x86_64 GNU/Linux
Ehem. That's not very usable in this way.
Happy debugging,
Thomas