Delphi Pages Forums

Delphi Pages Forums (
-   General (
-   -   libjpeg turbo 64 bit problem (

Cosmin 08-12-2016 11:30 AM

libjpeg turbo 64 bit problem

I'm trying to use libjpeg turbo in 64 bit with this header conversion:
Here is a test project:
Just load ReadJPEG.dpr from the Sample folder.
In 32 bit works fine.
In 64 bit I get an access violation on the first call to jpeg_read_header if the debugger is on or on the second call if the debugger is off.

On a russian forum I found half of the answer: (last message)
Google translation:


Thank you, but the problem was not in the header (with Linux, I figured), and in the line:
jpeg.src: = jpeg.mem ^ .alloc_small (@jpeg, JPOOL_PERMANENT, SizeOf (TMySourceMgr));
I skopipastil it from some examples. Under the 32-bit all works under 64 seem to allocate memory, but then falls to jpeg_read_header. Replaced in the allocation standard Delphic means - working.
Could someone help me solve the problem?
Thank you.

Tecnosak 12-19-2018 11:05 AM


Did anyone solve this problem or could suggest valid alternatives for 64bit very fast jpeg decoding?



All times are GMT. The time now is 09:05 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.