-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Sony ILCE-1 camera support - JPEG compression? #8523
Comments
I think the ARW is uploaded to raw.pixls.us - though I can't find it after uploading. |
This issue did not get any activity in the past 30 days and will be closed in 365 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue. |
Btw, I found it a bit strange that this new compression mode has
as opposed to 8672x5784 of the uncompressed or lossy compressed... Even though 512x512 tiles are used, the TIFF writing/reading libraries should handle desired size and pad/crop tiles along the right and bottom borders automatically, right? I don't think there is a requirement to set the size to be an integer number of tiles, so not sure what Sony is doing here... As a result, the generated info on RPU is a bit whacky as well (should still be 3:2, 50.16 MP and say "compressed"): |
This issue did not get any activity in the past 30 days and will be closed in 365 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue. |
Actually, this new ARW mode keeps getting weirder, I just noticed both strips and tiles related tags in SubImage1?! So one has to actually look at the JPEG bytestream to confirm what's the case here... Edit: Indeed, there are numerous tiles starting w/ I guess strip related tags should be ignored and are erroneous here (another WTH Sony?) |
@kmilos any updates available for this camera support issue? Are more raw lossless compressed samples needed? |
Nope. |
Just found out how to decode this and implemented a PoC into dnglab (will publish a clean version next days).
For step 6 pseudo code would look like:
@kmilos Hope this helps you. |
if that could help : https://github.com/lclevy/sony_raw |
@LucasRueckert @lclevy @NickLplus We don't really need other implementation details, thank you, here is already all the info we need - rawspeed already implements LJPEG92 w/ predictor 1 in https://github.com/darktable-org/rawspeed/blob/develop/src/librawspeed/decompressors/LJpegDecompressor.cpp It "just" (famous last words) needs to be adapted to 4 (2x2 interleave, not 4x1 as currently assumed) components instead of DNG's 2 (2x1) in a way that keeps the rawspeed maintainer happy, and some glue code in https://github.com/darktable-org/rawspeed/blob/develop/src/librawspeed/decoders/ArwDecoder.cpp (One can start maybe by looking at DngDecoder.) |
Canon implemented lossless jpeg in cr2 in ... 2004 |
So perhaps they can update the rawspeed code for us? 😉 |
I though I was clear: we have all the info we need, but thanks again. What we don't have is a developer up for the job. |
I hacked something together in https://github.com/artemist/rawspeed/tree/sony-ljpeg though I haven't tested it much since I don't have any Sony cameras yet. I don't think it's upstream ready but it does work on some samples from https://raw.pixls.us/ |
@artemist have you considered pushing a PR up to the |
Can you meanwhile say by when SONY A7R V uncompressed and lossless compressed RAW files will be supported? |
Sony ILCE-7RM5 uncompressed and lossy is already supported in dt 4.2, as already explained in #13183 As for the lossless mode, I'm going to start repeating @MStraeten more and more: “Grass does not grow faster if you pull it”. |
Hi Miloš,
apologies, you are right, uncompressed RAW files are also supported. I just verified it.
Best wishes,
Achim Dittrich
Homepage: achimdittrich.de / achimdittrich.com
Instagram: achimdittrich_photography
Gesendet: Mittwoch, 11. Januar 2023 um 17:34 Uhr
Von: "Miloš Komarčević" ***@***.***>
An: "darktable-org/darktable" ***@***.***>
Cc: "AchimDittrich" ***@***.***>, "Comment" ***@***.***>
Betreff: Re: [darktable-org/darktable] Sony ILCE-1 camera support - JPEG compression? (#8523)
Sony ILCE-7RM5 uncompressed and lossy is already supported in dt 4.2, as explained in #13183
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Uncompressed is supported ( A1 and A7R5 ) now i have to find the mstraeten ref - ( sounds like "never ask when!" ) |
Morning 1900mcm!
Regarding the support of uncompresed RAW files, I'm aware of it.
But in the light of the fact that lossless compressed (lossless L) files are nearly only half as large as uncompressed files it would really be useful to have that support too.
But I'll be patient and wait until that support arrives.
Best wishes,
Achim
Homepage: achimdittrich.de / achimdittrich.com
Instagram: achimdittrich_photography
Gesendet: Mittwoch, 11. Januar 2023 um 23:46 Uhr
Von: "1900mcm" ***@***.***>
An: "darktable-org/darktable" ***@***.***>
Cc: "AchimDittrich" ***@***.***>, "Comment" ***@***.***>
Betreff: Re: [darktable-org/darktable] Sony ILCE-1 camera support - JPEG compression? (#8523)
Uncompressed is supported ( A1 and A7R5 )
Compressed is supported ( A1 and A7R5 )
Lossless Compressed ( S, M, L ) do not seem to be supported in darkroom edit tab ( imbedded jpeg can be viewed in lighttable tab ) ( A1 and A7R5 - probably the A74 as well )
now i have to find the mstraeten ref - ( sounds like "never ask when!" )
may thanks for the support to date for these sony cameras
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
I think this was resolved by 1b707f3. |
Unable to open file in darktable ( maybe this needs to be in rawspeed )
[rawspeed] (ilce-1_DSC0735.ARW) virtual rawspeed::RawImage rawspeed::ArwDecoder::decodeRawInternal(), line 149: Unsupported compression
(darktable:3675): GLib-GObject-WARNING **: 17:08:02.938: invalid unclassed pointer in cast to 'GtkDarktableExpander'
** (darktable:3675): CRITICAL **: 17:08:02.938: dtgtk_expander_get_expanded: assertion 'DTGTK_IS_EXPANDER(expander)' failed
The text was updated successfully, but these errors were encountered: