Re: [Libjpeg-turbo-users] libjpeg in Delphi
SIMD-accelerated libjpeg-compatible JPEG codec library
Brought to you by:
dcommander
From: DRC <dco...@us...> - 2016-03-11 15:10:01
|
Again, I'm not a Delphi programmer, but the C version of the function (jpeg_read_scanlines()) takes an array of pointers as the second argument. Each pointer in this array points to a different scanline ("row") in the output image, so this allows you to control the mapping between rows in the input (JPEG) image and rows in the output (uncompressed) image. To do bottom-up decompression, you would just reverse the order of row pointers in the array. On 3/11/16 12:15 AM, David Brenner wrote: > Thank you, I'll have a look. > The problem is TBitmap has also its scanlines in reversed order (not just > BGR instead of RGB). > Read here: http://edn.embarcadero.com/article/29173 > That function has any "switch" for reversing the order of scanlines? |