Advertisement
So, this isn't a c++ question (again), but this tribe seems the most useful for s/w development questions.. :)
I'm using libjpeg to decode images, but I am experiencing a strange crash when having the library deliver 8bit color data with a colormap I am supplying. The crash doesn't happen during decode, but in the libjpeg memory manager during shut down of the decoder (both jpeg_abort() and jpeg_destroy_decompress()). I've tried not using the libjpeg allocator for the colormap memory, but that doesn't change the behaviour.. any tips would be appreciated..
peace
-cpr
I'm using libjpeg to decode images, but I am experiencing a strange crash when having the library deliver 8bit color data with a colormap I am supplying. The crash doesn't happen during decode, but in the libjpeg memory manager during shut down of the decoder (both jpeg_abort() and jpeg_destroy_decompress()). I've tried not using the libjpeg allocator for the colormap memory, but that doesn't change the behaviour.. any tips would be appreciated..
peace
-cpr
Advertisement
Advertisement
-
Re: libjpeg crash when supplying user colormap
Mon, November 20, 2006 - 5:02 PMwell, as usual, it was just me getting things wrong.. :)
libjpeg uses an array of pointers to lines of decoded data, and since I was decoding a single line at a time I kinda forgot this, thus using the address of the array for the data pointer, instead of pointer from the first entry in the array..
-cpr -
-
Re: libjpeg crash when supplying user colormap
Mon, November 20, 2006 - 5:10 PMStupid pointers!!!! :) -
-
Re: libjpeg crash when supplying user colormap
Mon, November 20, 2006 - 5:14 PMgood thing I've only been using pointers for 16 years.. lol.. I know I'll get a handle on them in another 16.. :) -
-
Re: libjpeg crash when supplying user colormap
Tue, November 21, 2006 - 12:54 PMYou'll be ahead of the curve I think if you do.
-
-
-