Skip to content

Conversation

@LebedevRI
Copy link
Member

Based on #482 & #386,
and an alternative take to that of #483,
one that does not require fusing everything into the LJpegDecompressor.

da-phil and others added 16 commits June 5, 2023 00:19
* Support large-resolution ARW from ILCE-7RM5
* Generalize sonyArrange in LJPEG arrangement to support 1x2

Co-authored-by: Artemis Tosini <me@artem.ist>
Recap: due to crop size roundup to multiples of tile size (512)
Sony lossless files exhibit black areas if not further cropped down
to actual pixel area, which is covered by the sensor.

Exif.SubImage1.0x7038 seems to reliably provide the true crop size,
whereas Exif.SubImage1.DefaultCropSize only crops to OOC jpeg size
losing some pixel area
* upstream/pr/482:
  Do not apply crop from cameras.xml and set crop origin to 0,0
  Boyscout: make sony exif tag naming consistent
  Use Exif.SubImage1.0x7038 field for Sony lossless compression crop
  ARW: Support new LJPEG compression on ILCE-7M4 and ILCE-7R5
`#pragma omp for` is non-sensical on itself.
Looks like UBSan sanitizes even the OpenMP-produced synthetic computations,
and thus `rwDecoder.cpp:337:5: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned int'`.
@codecov
Copy link

codecov bot commented Jun 8, 2023

Codecov Report

Patch coverage: 60.75% and project coverage change: +20.53 🎉

Comparison is base (1ea45d9) 38.54% compared to head (d884d12) 59.07%.

❗ Current head d884d12 differs from pull request most recent head 2420171. Consider uploading reports for the commit 2420171 to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##           develop     #484       +/-   ##
============================================
+ Coverage    38.54%   59.07%   +20.53%     
============================================
  Files          643      232      -411     
  Lines        36905    13886    -23019     
  Branches      5073     1944     -3129     
============================================
- Hits         14224     8203     -6021     
+ Misses       22106     5550    -16556     
+ Partials       575      133      -442     
Flag Coverage Δ
benchmarks 8.25% <0.00%> (-0.30%) ⬇️
integration 47.52% <84.21%> (+0.15%) ⬆️
linux 56.96% <78.68%> (+0.09%) ⬆️
macOS 18.76% <0.00%> (-4.89%) ⬇️
rpu_u 47.52% <84.21%> (+0.15%) ⬆️
unittests 18.19% <0.00%> (-0.69%) ⬇️
windows ∅ <ø> (∅)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/librawspeed/decoders/ArwDecoder.h 60.00% <ø> (ø)
src/librawspeed/decoders/ArwDecoder.cpp 49.17% <60.75%> (+2.62%) ⬆️

... and 412 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@LebedevRI LebedevRI merged commit c38746d into darktable-org:develop Jun 8, 2023
@LebedevRI LebedevRI deleted the sony-ljpeg-approach-2 branch June 8, 2023 22:13
@kmilos kmilos mentioned this pull request Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants