ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ielib32.dll and LoadFromStreamJPEG
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

egrobler

42 Posts

Posted - May 30 2014 :  18:04:46  Show Profile  Reply
Hi Nigel,

I load around 300 thumbs from a stream and whether I enable the dll or not, it always takes exactly 6.5 seconds.

Does io.LoadFromStreamJPEG make use of the dll?

Thanks & Regards
Eric



procedure TIEBitmapEx.LoadFromStream_JPEG_Thumb(const aStream: TStream);
var io: TImageEnIO;
begin
  FreeImage;
  if aStream=nil then Exit;
  if aStream.Size<1 then Exit;
  aStream.Position := 0;

  io := TImageEnIO.Create(nil);
  try
    io.AttachedIEBitmap := Self;
    io.LoadFromStreamJPEG(aStream);
  finally
    io.Free;
  end;
end;

{$define IEUSEDLLJPEGLIB}
{$define IEUSEDLLPNGLIB}
{$define IEUSEDLLJPEG2000LIB}
{$define IEUSEDLLRAWLIB}

xequte

38514 Posts

Posted - May 30 2014 :  22:32:08  Show Profile  Reply
Hi

Yes, LoadFromStreamJPEG does use the DLL. Are you testing a variety of different JPEGs? Have you confirmed that your test EXE was using the DLL?

What version of Delphi are you using? Perhaps the newer ones have better optimization.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - May 31 2014 :  13:02:59  Show Profile  Reply
Hi Nigel is not possible to create an option in iesettings.pas
Add and IEGlobalSettings().IEUSEDLL

For whenever I update ImageEN have to change these lines in ie.inc

{$define IEUSEDLLJPEGLIB}
{$define IEUSEDLLPNGLIB}
{$define IEUSEDLLJPEG2000LIB}
{$define IEUSEDLLRAWLIB}

Thank you for your attention
Go to Top of Page

xequte

38514 Posts

Posted - Jun 01 2014 :  23:01:24  Show Profile  Reply
Hi Wesley

That could be useful. We'll investigate the practicality of that for a coming update.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: