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
 V4.1.4: DLL to speed up file loading
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

xequte

38582 Posts

Posted - Oct 23 2012 :  13:32:30  Show Profile  Reply
Hi

ImageEn v4.1.4 includes a beta of our new loading DLL, ielib32.dll. This optional library provides no functionality other than that included in the native ImageEn libraries, however due to optimized compilation you will find file loading is approximately 30% faster with it.

To use ielib32.dll you will need to edit ie.inc and change:

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

To

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

You will then need to recompile your packages. Naturally you will need to ship ielib32.dll with your application. Ideally this should be placed in the same folder as your EXE, but it can also be located on the system path.

Note: Delphi/BCB 5 and 6 are not supported


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com

jed

Australia
10 Posts

Posted - Oct 23 2012 :  15:54:28  Show Profile  Reply
Is the 30% across the board, or is it just for larger files? Is the improvement transferred to the thumbnail viewer as well?
Go to Top of Page

xequte

38582 Posts

Posted - Oct 23 2012 :  23:54:07  Show Profile  Reply
Any loading of JPEG or PNG files will be faster, whether it is for image display or thumbnails.



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

Uwe

284 Posts

Posted - Oct 24 2012 :  07:53:22  Show Profile  Reply
Hi Nigel


{$define IEUSEDLLRAWLIB}

^^
Does this include DCRAW support? Is the source code for ielib32.dll available? Will there be a 64bit version of dcrawlib.dll?

So many questions... ;)

Thx
Uwe
Go to Top of Page

fab

1310 Posts

Posted - Oct 28 2012 :  00:09:28  Show Profile  Reply
Hi Uwe,

quote:
Does this include DCRAW support? Is the source code for ielib32.dll available? Will there be a 64bit version of dcrawlib.dll?


Yes, it includes DCRAW support. Actually ielib32.dll (and ielib64.dll) includes dcrawlib.
Consider 64 bit dcrawlib in ielib64.dll.
Go to Top of Page

Uwe

284 Posts

Posted - Oct 28 2012 :  10:37:43  Show Profile  Reply
Hi Fabrizio

Thanks for the information; appreciate it. Although I see one potential issue here: where is the source for the DLL's? If they include Dcraw as you say, don't you have to provide the DLL code if it contains restricted functions according to the Dcraw licence?

Anyway, I really hope that the source will be available at a later point in time when ImageEn 4.1.4 has left the beta phase. And I would certainly like to assume that you will *not* go down the path and start selling ImageEn without providing the source for important parts of the library. Can you please elaborate on the latter?

Thanks
Uwe
Go to Top of Page

fab

1310 Posts

Posted - Nov 03 2012 :  13:58:23  Show Profile  Reply
Uwe,

quote:
If they include Dcraw as you say, don't you have to provide the DLL code if it contains restricted functions according to the Dcraw licence?


dcraw included in ielib.dll doesn't use restricted code (GPL code). This DLL is just a wrapper over dcraw, jpeg lib, png lib, etc.

quote:
Anyway, I really hope that the source will be available at a later point in time when ImageEn 4.1.4 has left the beta phase. And I would certainly like to assume that you will *not* go down the path and start selling ImageEn without providing the source for important parts of the library. Can you please elaborate on the latter?


I understand your point of view (and I agree with you). Anyway at the moment I don't know if DLL code will be available.
Specific needs are taken into account.
Go to Top of Page

Uwe

284 Posts

Posted - Nov 03 2012 :  15:19:12  Show Profile  Reply
Hi Fabrizio

Thank you so much for your feedback! I really appreciate your honesty.

Uwe
Go to Top of Page

Patrick Quinn

United Kingdom
81 Posts

Posted - Nov 07 2012 :  16:38:15  Show Profile  Reply
I'm testing this now...

regards

Patrick
Go to Top of Page

jed

Australia
10 Posts

Posted - Nov 07 2012 :  16:39:15  Show Profile  Reply
Let us know if you notice improvement in performance.
Go to Top of Page

Patrick Quinn

United Kingdom
81 Posts

Posted - Nov 07 2012 :  16:44:48  Show Profile  Reply
@jed

I just edited previous post as you posted that. I haven't timed it but loading is noticeably faster, especially on large jpegs. Impressive.

Well worth doing.
Go to Top of Page

jed

Australia
10 Posts

Posted - Nov 07 2012 :  16:48:20  Show Profile  Reply
Patrick,

Are you applying any resampling on the images loaded? I use the thumb viewer and resample the thumbs (quality selected by the user).

I guess I should just bite the bullet and see!

Means I now need to modify three installers to distribute a new file.
Go to Top of Page

Patrick Quinn

United Kingdom
81 Posts

Posted - Nov 08 2012 :  15:32:42  Show Profile  Reply
Hi jed
I do apply resampling, a rfBilinear Zoomfilter on a preview image above the thumbnails and a rfLanczos3 on a full screen image (no particular reason for using these, I will make them user selectable later).

I assume loading png files from a database stream will be 30% faster as well.
I've already been using ImageEn to stream images in png format to and from the very fast Absolute Database (a BDE replacement: http://www.componentace.com/absolute_database_features.htm ).

This new DLL is a very welcome update.

regards

Patrick
Go to Top of Page

liaotingaa

China
7 Posts

Posted - Nov 08 2012 :  23:55:55  Show Profile  Reply
Hi
Dose it support for the huge tiff file processing(eg: 14173pixel x 10630pixel,300dpi x 300dpi,24bit)? we have a tiff file of 431MB.Thank you very much.
Thanks for your time.
Go to Top of Page

xequte

38582 Posts

Posted - Nov 09 2012 :  00:35:25  Show Profile  Reply
Hi

Use of the DLL should not affect loading of large images. For loading of large images ensure use TIEBitmap.Location := ieFile

http://www.imageen.com/help/TIEBitmap.Location.html

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

Uwe

284 Posts

Posted - Nov 09 2012 :  09:25:04  Show Profile  Reply
quote:
Patrick said: This new DLL is a very welcome update.

I agree, but only if the source code will be made available. Otherwise it's definitely a step backwards in the development of ImageEn.

Uwe
Go to Top of Page

xequte

38582 Posts

Posted - Nov 10 2012 :  02:41:51  Show Profile  Reply
Hi Uwe

I was referring to the optional 32bit DLL (as that is the subject of this thread), naturally for the 64bit DLL source will be available if requested. However compilation of DLL is quite complex and not something we recommend for users.

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

Uwe

284 Posts

Posted - Nov 10 2012 :  13:28:24  Show Profile  Reply
Hi Nigel

Glad to see that I was able to bring my point across and that you've finally decided to make at least the 64bit DLL source available to your paying customers.

I will contact you in a separate e-mail for a download link.

Thanks
Uwe
Go to Top of Page

mhieta

Finland
78 Posts

Posted - Nov 13 2012 :  12:48:09  Show Profile  Reply
Yes Uwe, its harder to find clues and provide workaround when there is no source. :)

Anyway its beta lib so it will improve :) I hope that they improve also tiff image loading.


- Marko
Go to Top of Page

xequte

38582 Posts

Posted - Jan 16 2013 :  13:11:39  Show Profile  Reply

NOTE: In newer versions of ImageEn you can just use:

https://www.imageen.com/help/TIEGlobalSettings.JPEGEngine.html
https://www.imageen.com/help/TIEGlobalSettings.PNGEngine.html
https://www.imageen.com/help/TIEGlobalSettings.JPEG2000Engine.html
https://www.imageen.com/help/TIEGlobalSettings.CameraRawEngine.html




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: