Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - rodobot

#1
I also changed fseek on Line 39 to fsseko.

But I must say that I don't know if this works on windows.

*********
I tested updated rwa2dng.c in repository, and it worked.
So I guess you don't need to replace 2nd one on Line 39 (Guess why I am not a programmer lol).
#2
First of all, thanks for great tools!

I am not a programmer, so this is probably not a correct way to do (In fact, I had a problem even with simple type casting ending up hardcoding..), but I hope this will help you iron out the issue with raw2dng.

First, I guessed that fseek does not support files larger than 4 gb on OSX, and after little googling, I decided to replace "fseek" with "fseeko".

I compiled and tried... failed...

Next, I guessed the second parameter of the first fseeko (i.e. -sizeof(lv_rec_file_footer_t)) is not casted correctly. After inserting printf's to see actual values, I found out that lv_rec_file_footer_t is 192.

So I replaced the parameter -sizeof(lv_rec_file_footer_t) with -192 and compiled (I don't know a correct way to cast sizeof to off_t (or long long?)).

Now, with these changes, raw2dng seems to be processing raw files larger than 4gb on OSX.

I used the file provided by zachnfine (thanks a lot!) and was able to extract 1416 files (to 001415.dng).

I have checked that 001415.dng opens normally using PhotoShop.

Again, thanks a lot for great tools and I hope this is useful.