Repository navigation
Commit 0ca91a2
LR-IMP-FORMATS: coloured highlights keep their edges, refreshes never downgrade a newer proxy (storytold#1328 review)
Review of 52f6b7e8:
P2. A pixel next to a strongly coloured clipped highlight (the blue sample
at an orange sun's rim, a neon tube's edge) had its interpolated channels
rebuilt from its weakest, measured channel, mostly with a neutral colour
where the content around was clipped: a dark checkerboard line just inside
the edge (public sunset ARW (2973, 1267): linear Y 0.874 -> 0.213). The
rebuild may now darken a pixel only to 0.8 of the luminance its
reconstruction told by value gives (highlight::CONTINUITY), else it keeps
the latter; it may brighten it by as much among strongly coloured content,
and further among pale content (a white sky behind twigs, where the value
keeps the demosaic's cyan and magenta). That pixel is Y 0.874 again, the
neon's (1491, 1210) 0.912 (main 0.979, 52f6b7e8 0.287); no pixel of either
frame goes from Y > 0.8 to below 0.4 (52f6b7e8: 132 and 495). The Canon 80D
twigs stay dark. Treating only the channels with their own FROM bit as
unknown was tried: the mean colour spread around clipped areas went from
under 3 % to 8.5 % and X-Trans lifted dark lines, so the other
interpolated channel stays unknown with them.
P2. Build Smart Previews rebuilt a stale proxy from the session's source,
which is the old proxy's when it was decoded while the original was
offline: it kept the proxy. P2. A rebuilt proxy left the session's decoded
sources and rendered previews made from the old one. On storytold#1400 both are
covered by its machinery, which this commit uses instead of its own: jobs
read the original afresh (origin_ref), and a replaced proxy takes storytold#1400's
invalidation (a marker before the first change, the thumbnail clear at the
end of the run, decoded sources following the cache generation, late
results refused by generation). The tests below pass on it.
P2. A refresh rewrote a proxy whose other version came from a newer build
(look 5 / source 0 -> 4 / 1). Ages::stale reads both versions together and
leaves any proxy with a newer one alone; the folder markers only go up.
With storytold#850 on storytold#1400, a Compact proxy's encode version (`enc`) counts the
same way (smart::from_newer_build), staleness for the look includes an
older Compact encoding (storytold#850's is_stale), and the look marker keeps its two
versions, each never going back.
P2. Finite samples too large for the scaling (a float DNG of 1e37 at gains
64 : 1 : 1) overflowed. The scaling pass now also checks every sample: one
that is not finite, or whose magnitude times the largest gain (or divided
by the smallest) exceeds 1e30 (MAX_BALANCED), makes the mosaic, read
afresh, develop unbalanced. The MAX_GAIN doc no longer claims more.
P3. Docs: previews bin_factor can't bin are Bayer under about 4600 px and
X-Trans under about 5760 px on the long side (the 16 MP X-E1 changes).
Tests: coloured suns and tubes keep their brightness at the edges (every
method, phase and X-Trans), and a decoded F32 DNG of 1e37 develops
unbalanced and finite (1.5e28 at the extreme gains balanced and finite),
both failing on 52f6b7e8; proxies with a newer look or source version are
never rewritten and the markers stay, failing without this commit. Build
Smart Previews refreshes with the old proxy still cached, and a refreshed
proxy replaces the session's source, cached render and late results and
the reopened library's: these pass through storytold#1400's machinery.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 744edd8 commit 0ca91a2
10 files changed
Lines changed: 527 additions & 114 deletions
File tree
- crates
- engine/src
- cmd
- raw
- src
- tests
- docs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
206 | 209 | | |
207 | | - | |
| 210 | + | |
208 | 211 | | |
209 | 212 | | |
210 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
411 | 412 | | |
412 | 413 | | |
413 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
414 | 433 | | |
415 | 434 | | |
416 | 435 | | |
| |||
437 | 456 | | |
438 | 457 | | |
439 | 458 | | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
440 | 469 | | |
441 | 470 | | |
442 | 471 | | |
| |||
453 | 482 | | |
454 | 483 | | |
455 | 484 | | |
456 | | - | |
| 485 | + | |
457 | 486 | | |
458 | | - | |
459 | | - | |
460 | | - | |
| 487 | + | |
461 | 488 | | |
462 | 489 | | |
463 | | - | |
| 490 | + | |
464 | 491 | | |
465 | | - | |
466 | | - | |
| 492 | + | |
467 | 493 | | |
468 | 494 | | |
469 | 495 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1670 | 1670 | | |
1671 | 1671 | | |
1672 | 1672 | | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
1673 | 1866 | | |
1674 | 1867 | | |
1675 | 1868 | | |
| |||
0 commit comments