Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Thread Tools Display Modes
Old 08-12-2016, 11:30 AM
Cosmin Cosmin is offline
Junior Member
Join Date: Mar 2016
Posts: 7
Default 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.
Reply With Quote
Old 12-19-2018, 11:05 AM
Tecnosak Tecnosak is offline
Junior Member
Join Date: Dec 2018
Posts: 1


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


Reply With Quote

64bit, libjpeg

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

All times are GMT. The time now is 06:31 AM.

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