-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with DNG SDK & GPR SDK #286
Comments
to make sure the problem is not with GPR file, could you please share it? |
No problem |
Hi, I vote also for a backward DNG sdk compatibility. In digiKam we still use DNG 1.3 and libraw 0.20.0-beta1 do not compile with it. Note : i tried to update to last DNG 1.5, and changes are not small. I successfully compile digiKam with 1.5 in a dedicated branch but It crash quickly at DNG processing calls. So we will still under 1.3 for a while until we found the problem in implementation. Best Regards Gilles Caulier |
@cgilles, this is not possible: we've implemented additional possibilities when dealing w/ DNG files (LIBRAW_PROCESSING_DNG_ADD_ENHANCED, LIBRAW_PROCESSING_DNG_ADD_PREVIEWS, LIBRAW_PROCESSING_DNG_PREFER_LARGEST_IMAGE flags, also Stage2/stage3 processing) If LibRaw is compiled w/ DNG SDK, it uses dng_info data fields to find specific IFD and extract/process specific subframe. LibRaw relies on (modern) DNG SDK 1.4/1.5 internals. May be we'll support (old version of) DNG 1.4, we definitely have no plans for older versions support. BTW DNG 1.4 was released 8 years ago (1.3 is 11 years old), time to move forward. |
@Jamaika1, dcraw_emu binary is hardly useful without debug symbols. So, could you please see yourself what decoder is called for GPR file. |
Giles, yes, for what it's worth I had major problems updating my software to the new versions of the DNK SDK; my experience was that the way Adobe have used C++ vectors, etc is C++ version dependent. So you have to play around with C++ dialects and library versions. Although, once I got it to compile, there were no run-time issues. |
Finally: (older) DNG SDK 1.4 (dated May 2012) and (modern) DNG 1.4 (dated June 2015) have different dng_info fields (older one do not have fChainedSubIFD array). So, implementing right sub-IFD search using old one will require full-scale testing (already performed for newer version compatibility). It's not worth time wasted: DNG 1.4 is very stable (no problem reports right now) and available from Adobe. I do not close the issue right now, but I do not know how I could help:
It may be useful to run debugger to narrow the problem search. |
Updated DNG/GPR readmes with latest findings: 21641da |
I don't know what's going on. Does converter not select decoder by default for GoPro? dcraw_emu.exe -v -o 0 -dngsdk -T -g 1.0 4.5 GOPR0024.GPR |
Warnings are from DNG SDK if built with qDNGValidate defined GoPro DNG (GPR) files have defaultcrop* tags set to full active area, that's why DNG SDK worries |
BTW, it looks like you're succeeded w/ LibRaw + DNG + GPR combo. Can I close the issue, or something else need to be clarified? |
In my opinion, this requires further refinement. To use the free conversion of libRAW from source image to tiff, it is recommended to buy Adobe Photoshop. |
@Jamaika1 |
I added gopro .diff corrections. Unfortunately photos don't want to be created.
My commands and added libraries are below
for %%f in ("dng_*.cpp") do g++.exe -std=gnu++11 -ftree-vectorize -g0 -O3 -fPIC -D_DEBUG -DWIN32 -DqWinOS=1 -DqDNG64Bit=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DqDNGValidateTarget=1 -DqDNGUseConditionVariable=1 -DqDNGThreadSafe=1 -DWIN_ENV=1 -DNDEBUG -DLIBRAW_NODLL -DXMP_StaticBuild=1 -DBanAllEntityUsage -DXML_STATIC -DSUPPORT_SHARED_POINTERS_IN_STD=1 -DNO_PTHREAD=1 -DLIBRAW_USE_OPENMP=1 -DUSE_GPRSDK=1 -DUSE_DNGSDK=1 -DUSE_X3FTOOLS=1 -DUSE_6BY9RPI=1 -DNLIBRAW_USE_AUTOPTR=1 -DUSE_ZLIB=1 -DUSE_JPEG=1 -DUSE_JASPER=1 -DUSE_LCMS2=1 -DBITS_IN_JSAMPLE=8 -DEXCLUDE_MIF_SUPPORT -DEXCLUDE_PNM_SUPPORT -DEXCLUDE_BMP_SUPPORT -DEXCLUDE_RAS_SUPPORT -DEXCLUDE_JP2_SUPPORT -DEXCLUDE_JPG_SUPPORT -DEXCLUDE_PGX_SUPPORT -DINLINE=__inline -DLOCAL(type)="static type" -c %%f -o %%~nf.o
https://github.com/Jamaika1/dng_sdk_1.5.1_-_gpr_sdk_1.0.0
dcraw_emu.exe -v -o 0 -T -g 1.0 4.5 GOPR0024.GPR
Cannot unpack GOPR0024.GPR: Corrupted data or unexpected EOF
The text was updated successfully, but these errors were encountered: