Simone Gotti
bd118a4a40
dcraw: use the right black levels for linear DNGs ( #6444 )
...
Linear dng (like the one created by Adobe DNG Converter) contains
multiple tiff subifd with different kind of images (the Primary Image
and multiple previews), these defines different kind of black levels.
Currently dcraw has a global cblack array that is overwritten by the
last parsed tiff ifd. With such kind of linear dng it's the last subifd.
The causes the use of the wrong black levels with the image having
usually a magenta color cast.
The dng spec uses the NewSubFileType tag to define the primary image
with tag value as 0.
This patch reads also the NewSubFileType tag and populates the cblack
array provided by the other tags only if it's the primary image.
2022-03-26 11:28:05 +01:00
..
2021-03-17 08:37:19 +01:00
2020-01-21 00:16:27 +01:00
2019-10-31 10:20:50 +01:00
2019-09-10 22:55:20 +02:00
2019-09-10 22:55:20 +02:00
2019-12-12 18:45:18 +01:00
2021-02-22 18:40:38 +01:00
2021-02-25 09:49:27 -05:00
2021-02-25 09:49:27 -05:00
2020-01-13 19:51:38 -08:00
2021-05-22 11:32:10 +02:00
2020-09-14 19:32:50 +02:00
2019-11-01 21:20:52 +01:00
2019-11-17 13:58:43 +01:00
2019-09-26 15:03:09 +02:00
2020-07-26 13:28:21 +02:00
2021-02-24 22:39:23 +01:00
2019-11-24 16:44:25 +01:00
2019-10-31 10:20:50 +01:00
2020-03-09 10:33:56 +01:00
2020-03-09 10:33:56 +01:00
2022-02-11 01:39:04 +01:00
2021-08-07 13:06:02 +02:00
2020-09-17 14:12:59 +02:00
2019-10-30 14:07:49 +01:00
2021-12-21 07:43:59 +01:00
2021-12-21 07:43:59 +01:00
2019-10-28 15:43:58 +01:00
2020-01-24 14:53:41 +01:00
2019-11-21 21:36:57 +01:00
2019-12-19 20:46:35 -05:00
2019-10-30 09:30:21 +01:00
2019-10-29 21:06:27 +01:00
2021-05-16 12:44:45 -07:00
2021-05-16 06:18:25 +02:00
2021-12-21 07:43:59 +01:00
2020-06-18 14:53:04 -04:00
2020-03-06 10:41:58 +01:00
2019-10-31 10:20:50 +01:00
2019-09-10 12:34:57 +02:00
2019-10-31 10:20:50 +01:00
2019-09-10 12:34:57 +02:00
2020-06-14 22:03:26 +02:00
2020-02-02 13:32:37 +01:00
2019-11-17 13:58:43 +01:00
2021-12-21 07:43:59 +01:00
2021-06-12 21:07:44 +02:00
2021-05-22 12:26:46 +02:00
2021-05-22 12:26:46 +02:00
2022-03-26 11:28:05 +01:00
2022-03-26 11:28:05 +01:00
2021-12-21 07:43:59 +01:00
2021-05-22 21:50:38 +02:00
2021-01-04 10:37:48 +01:00
2021-08-07 13:06:02 +02:00
2020-01-24 14:53:41 +01:00
2021-06-12 21:11:45 +02:00
2019-10-31 20:41:08 +01:00
2020-07-16 21:44:00 +02:00
2020-09-14 19:32:50 +02:00
2020-12-16 12:17:50 +01:00
2019-11-01 01:03:30 +01:00
2020-02-27 19:56:42 +01:00
2021-05-22 11:15:35 +02:00
2021-05-22 11:15:35 +02:00
2020-07-16 21:44:00 +02:00
2020-01-21 00:16:27 +01:00
2020-01-24 14:53:41 +01:00
2020-11-21 13:29:47 +01:00
2019-09-10 12:34:57 +02:00
2019-10-31 20:41:08 +01:00
2021-05-10 22:02:49 -07:00
2021-04-18 13:40:44 +02:00
2019-10-31 08:56:38 +01:00
2019-10-31 08:56:38 +01:00
2019-10-27 17:09:53 +01:00
2019-11-04 23:01:33 +01:00
2020-01-21 00:16:27 +01:00
2020-07-30 16:04:22 +02:00
2020-02-04 08:22:26 +01:00
2021-04-08 19:38:10 +02:00
2021-04-08 19:38:10 +02:00
2021-02-18 13:36:54 +01:00
2020-10-26 11:28:15 +01:00
2019-12-25 14:45:47 -08:00
2020-01-18 10:59:57 -08:00
2019-12-12 18:45:18 +01:00
2021-03-17 08:37:19 +01:00
2019-10-31 10:20:50 +01:00
2020-09-15 13:48:47 +02:00
2020-09-15 13:48:47 +02:00
2019-11-04 15:11:49 +01:00
2021-05-15 22:57:06 -07:00
2020-05-18 14:54:30 +02:00
2020-11-24 17:16:41 +01:00
2020-11-24 17:16:41 +01:00
2020-11-24 17:16:41 +01:00
2021-06-05 07:37:09 +02:00
2020-02-07 17:06:30 +01:00
2019-09-14 23:31:02 +02:00
2019-09-14 23:31:02 +02:00
2020-11-24 17:16:41 +01:00
2020-11-24 17:16:41 +01:00
2019-10-31 10:20:50 +01:00
2021-07-15 12:43:33 +03:00
2021-05-15 22:57:06 -07:00
2021-05-22 11:09:26 +02:00
2021-12-21 07:43:59 +01:00
2021-12-21 07:43:59 +01:00
2021-12-21 07:43:59 +01:00
2021-12-21 07:43:59 +01:00
2021-02-24 22:39:23 +01:00
2019-11-03 14:52:42 +01:00
2021-09-19 12:27:07 +02:00
2021-08-13 14:37:29 +02:00
2021-08-13 14:37:29 +02:00
2020-01-21 00:16:27 +01:00
2020-06-18 14:53:04 -04:00
2021-12-21 11:21:25 +01:00
2021-06-05 07:37:09 +02:00
2021-05-16 06:18:25 +02:00
2020-02-24 11:05:55 +01:00
2021-02-24 22:39:23 +01:00
2020-02-09 14:14:46 +01:00
2019-11-04 23:01:33 +01:00
2019-10-31 10:20:50 +01:00
2022-01-08 12:02:25 -08:00
2020-03-19 13:40:11 +01:00
2021-06-19 18:36:20 +02:00
2019-09-10 12:34:57 +02:00
2020-10-14 09:10:58 +02:00
2019-10-31 10:20:50 +01:00
2020-06-27 16:52:53 +02:00
2020-06-27 16:52:53 +02:00
2021-03-17 08:37:19 +01:00
2020-06-25 10:39:21 -07:00
2020-07-14 21:05:41 +02:00
2019-09-10 12:34:57 +02:00
2021-02-14 17:48:10 +01:00
2019-09-10 12:34:57 +02:00
2020-01-22 00:11:39 +01:00
2021-08-07 13:06:02 +02:00
2021-08-07 13:06:02 +02:00
2019-11-27 18:55:20 +01:00
2019-09-10 12:34:57 +02:00
2021-06-08 07:38:47 +02:00
2019-11-21 21:36:57 +01:00
2020-03-08 14:12:23 +01:00
2019-11-26 15:25:11 +01:00
2020-07-05 16:37:49 -07:00
2020-07-12 15:19:10 -07:00
2020-01-21 00:16:27 +01:00
2019-10-28 17:17:15 +01:00
2021-05-22 11:31:48 +02:00
2021-11-10 17:54:57 +01:00
2019-09-10 12:34:57 +02:00
2019-11-03 14:52:42 +01:00
2020-01-17 23:18:48 +01:00
2019-09-10 12:34:57 +02:00
2020-01-23 22:18:46 +01:00
2021-12-21 07:43:59 +01:00
2021-12-21 07:43:59 +01:00
2022-01-08 12:02:25 -08:00
2019-10-30 22:12:06 +01:00
2019-11-01 14:51:33 +01:00
2021-01-31 14:09:41 +01:00
2020-09-15 17:12:03 +02:00
2020-06-19 17:07:49 +02:00
2019-12-12 18:45:18 +01:00
2021-08-29 19:04:58 +02:00
2021-02-18 13:36:54 +01:00
2019-10-31 10:20:50 +01:00
2021-01-24 11:26:04 +01:00
2021-12-21 07:43:59 +01:00
2021-05-23 14:37:26 +02:00
2021-02-18 13:36:54 +01:00
2021-12-01 15:01:27 +01:00
2020-11-17 15:40:49 +01:00
2020-02-29 14:19:06 +01:00
2021-12-21 07:43:59 +01:00
2020-10-13 13:27:20 +02:00
2020-01-02 18:33:35 -08:00
2021-12-21 07:43:59 +01:00
2020-11-21 13:29:47 +01:00
2019-11-03 14:52:42 +01:00
2021-12-21 07:43:59 +01:00
2020-02-10 16:22:42 +01:00
2020-03-19 13:40:11 +01:00
2021-12-21 07:43:59 +01:00
2019-10-31 10:20:50 +01:00
2021-06-08 07:38:47 +02:00
2021-04-08 19:38:10 +02:00
2021-08-13 14:37:29 +02:00
2020-03-01 11:50:58 +01:00
2020-11-21 13:29:47 +01:00
2019-09-10 12:34:57 +02:00
2020-07-29 13:38:17 +02:00
2021-08-13 14:37:29 +02:00
2020-01-18 23:46:48 +01:00
2019-09-10 12:34:57 +02:00
2020-07-14 21:05:41 +02:00
2020-09-05 13:50:50 +02:00