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
 IELIB.DLL x WIC Speed
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

wesleybobato

Brazil
367 Posts

Posted - Mar 14 2015 :  18:31:07  Show Profile  Reply
Hello Nigel.

You reported that IELib.dll been optimized, but I did several tests
and unfortunately the speed remains the same.

Including WIC with ImageEN is 2x FASTER than LoadFromFile with IELIB.dll

you can do something about it please?

Have a Great Day

uses DateUtils, iewic, imageenio;

{$R *.dfm}

procedure TForm5.Button1Click(Sender: TObject);
var
 fStart: Cardinal;
begin
 fStart := GetTickCount;
 ImageEnView1.IO.LoadFromFile('01.jpg');
 ShowMessage(FormatDateTime('hh:nn:ss.zzz', (GetTickCount - FStart) * OneMillisecond));
end;

procedure TForm5.Button2Click(Sender: TObject);
var
 fStart: Cardinal;
begin
 fStart := GetTickCount;
 with TIEWICReader.Create do
  begin
   Open('01.jpg', ioJPEG);
   GetFrame(0, ImageEnView1.IEBitmap, ImageEnView1.IO.Params);
   Free;
 end;

 ImageEnView1.Update;
 ShowMessage(FormatDateTime('hh:nn:ss.zzz', (GetTickCount - FStart) * OneMillisecond)); 
end;


attach/wesleybobato/2015314183010_WICxIELIB.DLL.zip
6006.22 KB

xequte

38610 Posts

Posted - Mar 15 2015 :  19:57:42  Show Profile  Reply
Hi Wesley

IELib is more optimized than the native Delphi code. V6.0.0 loading is no faster than V5.2.0.

I am investigating the WIC loading speed. Naturally WIC is not doing some of things that ImageEn is (e.g. loading EXIF and other meta data) and doesn't provide some of the other speed enhancement option such ioJPEG_AUTOCALC. Still the speed improvement is significant...


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

wesleybobato

Brazil
367 Posts

Posted - Mar 16 2015 :  07:30:50  Show Profile  Reply
Hello Nigel.

Now I understand why WIC is Faster than ielib.dll
is possible with imageEN load images without EXIF and Metadata?

because with this parameter will optimize the speed.

Have a Wonderful Day
Go to Top of Page

xequte

38610 Posts

Posted - Mar 17 2015 :  23:59:51  Show Profile  Reply
Hi Wesley

We will investigate some way that we can speed up loading by use of WIC when metadata is not required.

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: