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


ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ParamsFromFile and raw files

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List


Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

Check here to subscribe to this topic.

T O P I C    R E V I E W
yeohray2 Posted - Jul 24 2022 : 03:42:05
Hi, I need to read only the EXIF details from raw files, so I'm using ParamsFromFile and it works. However, it's rather slow and looking at the Task Manager, the disk where the raw files are stored in is running at 100%. This suggests that almost the entire RAW file, which is ~30 MB each, is being read.

I was hoping that ParamsFromFile would need to read only a portion of the RAW file. Is there any setting that I can use to speed up the process? I'm using ImageEn 10.2, and the ielibx.dll. Using the WIC option is even slower. I've also tried using the thumbnail options like these:

FWorkImage.IO.Params.RAW_GetExifThumbnail := False;
FWorkImage.IO.Params.RAW_GetEmbeddedJpeg := False;
FWorkImage.IO.Params.RAW_HalfSize := True;

FWorkImage.IO.ParamsFromFile(AFileName, True);

but it makes no difference.

Should add that using ParamsFromFile on jpeg files is extremely fast, and doesn't seem to read the entire file (though I might be wrong).

Thanks in advance.

5   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 28 2022 : 02:15:48
Yes, the speeds above are for an SSD. On a slower WD drive I get about the same speed as you.

Xequte Software
yeohray2 Posted - Jul 28 2022 : 02:04:32
Hi Nigel,

I guess you're using an SSD drive? If libraw has to read the entire file even if I only need the metadata, then processing 6 files/second on my IDE hard disk drive is normal then. Thanks.

xequte Posted - Jul 28 2022 : 00:47:56
Hi Ray

On my test system the all 17 files are processed in a total of 0.5 seconds:

But I am reading from a local hard drive. LibRaw will be reading the whole file into memory to process it (even if it only reads the header data). So this may be slow for files located on a network device.

Xequte Software
yeohray2 Posted - Jul 25 2022 : 03:58:28
Hi Nigel,

It's using the ielib DLL. I've uploaded some sample image files and the source for a simple test application here -

The problem with running the test is that the image files might already be cached by Windows when you download and extract the files, so the test completes very fast without touching the disk at all.

This is the result on my PC when newly rebooted:

It averages about 5 - 6 files every second, and you can see the disk reads maxing out in Task Manager.

Thanks in advance.

xequte Posted - Jul 24 2022 : 18:29:36
Hi Ray

I cannot reproduce that.

Is the ielib DLL in the exe folder? What is the value of IEGlobalSettings().ActiveCameraRawEngine

Xequte Software