Skip to content
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

TiffParser::parse(): retain already-parsed IFD's on IFD parse failure (Blackmagic oddities) #701

Merged

Conversation

LebedevRI
Copy link
Member

This happens in some Blackmagic cases:

./Blackmagic Design/Pocket Cinema Camera 6k Pro/A010_04101355_S068.dng: starting decoding ...
./Blackmagic Design/Pocket Cinema Camera 6k Pro/A010_04101355_S068.dng failed: virtual std::unique_ptr<RawDecoder> rawspeed::RawParser::getDecoder(const CameraMetaData *), line 97: No decoder found. Sorry.
./Blackmagic/Blackmagic Pocket Cinema Camera 4k/4k_DCI_uncompressed.dng: starting decoding ...
./Blackmagic/Blackmagic Pocket Cinema Camera 4k/4k_DCI_uncompressed.dng failed: virtual std::unique_ptr<RawDecoder> rawspeed::RawParser::getDecoder(const CameraMetaData *), line 97: No decoder found. Sorry.
./Blackmagic/Blackmagic Pocket Cinema Camera 4k/BMPCC_4k_DCI_uncompressed.dng: starting decoding ...
./Blackmagic/Blackmagic Pocket Cinema Camera 4k/BMPCC_4k_DCI_uncompressed.dng failed: virtual std::unique_ptr<RawDecoder> rawspeed::RawParser::getDecoder(const CameraMetaData *), line 97: No decoder found. Sorry.

... these now decode successfully, but the rest do not:

./Blackmagic/Blackmagic Pocket Cinema Camera 4k/BMPCC_4k_DCI_3-1.dng: starting decoding ...
./Blackmagic/Blackmagic Pocket Cinema Camera 4k/BMPCC_4k_DCI_3-1.dng failed: void rawspeed::AbstractDngDecompressor::decompress() const, line 249: Too many errors encountered. Giving up. First Error:
void rawspeed::AbstractLJpegDecoder::decodeSOI(), line 111: Not a valid RAW file.
./Blackmagic/Blackmagic Pocket Cinema Camera 4k/BMPCC_4k_DCI_4-1.dng: starting decoding ...
./Blackmagic/Blackmagic Pocket Cinema Camera 4k/BMPCC_4k_DCI_4-1.dng failed: void rawspeed::AbstractDngDecompressor::decompress() const, line 249: Too many errors encountered. Giving up. First Error:
void rawspeed::AbstractLJpegDecoder::decodeSOI(), line 111: Not a valid RAW file.

<- define quantization tables. WHY?

./Blackmagic/Blackmagic Pocket Cinema Camera 4k/BMPCC_4k_DCI_lossless.dng: starting decoding ...
./Blackmagic/Blackmagic Pocket Cinema Camera 4k/BMPCC_4k_DCI_lossless.dng failed: void rawspeed::AbstractDngDecompressor::decompress() const, line 249: Too many errors encountered. Giving up. First Error:
virtual Buffer::size_type rawspeed::LJpegDecoder::decodeScan(), line 108: Unsupported predictor mode: 6
./Blackmagic/Pocket Cinema Camera/Blackmagic_Pocket_Cinema_Camera_1_2016-09-17_0053_C0022_000007.dng: starting decoding ...
./Blackmagic/Pocket Cinema Camera/Blackmagic_Pocket_Cinema_Camera_1_2016-09-17_0053_C0022_000007.dng failed: void rawspeed::AbstractDngDecompressor::decompress() const, line 249: Too many errors encountered. Giving up. First Error:
virtual Buffer::size_type rawspeed::LJpegDecoder::decodeScan(), line 108: Unsupported predictor mode: 6
./Blackmagic/URSA 4K/Blackmagic URSA_1_1999-12-31_2153_C0003_000001.dng: starting decoding ...
./Blackmagic/URSA 4K/Blackmagic URSA_1_1999-12-31_2153_C0003_000001.dng failed: void rawspeed::AbstractDngDecompressor::decompress() const, line 249: Too many errors encountered. Giving up. First Error:
virtual Buffer::size_type rawspeed::LJpegDecoder::decodeScan(), line 108: Unsupported predictor mode: 6

<- sound promising, but we'll see...

… (Blackmagic oddities)

This happens in some Blackmagic cases:
```
./Blackmagic Design/Pocket Cinema Camera 6k Pro/A010_04101355_S068.dng: starting decoding ...
./Blackmagic Design/Pocket Cinema Camera 6k Pro/A010_04101355_S068.dng failed: virtual std::unique_ptr<RawDecoder> rawspeed::RawParser::getDecoder(const CameraMetaData *), line 97: No decoder found. Sorry.
./Blackmagic/Blackmagic Pocket Cinema Camera 4k/4k_DCI_uncompressed.dng: starting decoding ...
./Blackmagic/Blackmagic Pocket Cinema Camera 4k/4k_DCI_uncompressed.dng failed: virtual std::unique_ptr<RawDecoder> rawspeed::RawParser::getDecoder(const CameraMetaData *), line 97: No decoder found. Sorry.
./Blackmagic/Blackmagic Pocket Cinema Camera 4k/BMPCC_4k_DCI_uncompressed.dng: starting decoding ...
./Blackmagic/Blackmagic Pocket Cinema Camera 4k/BMPCC_4k_DCI_uncompressed.dng failed: virtual std::unique_ptr<RawDecoder> rawspeed::RawParser::getDecoder(const CameraMetaData *), line 97: No decoder found. Sorry.
```
... these now decode successfully, but the rest do not:
```
./Blackmagic/Blackmagic Pocket Cinema Camera 4k/BMPCC_4k_DCI_3-1.dng: starting decoding ...
./Blackmagic/Blackmagic Pocket Cinema Camera 4k/BMPCC_4k_DCI_3-1.dng failed: void rawspeed::AbstractDngDecompressor::decompress() const, line 249: Too many errors encountered. Giving up. First Error:
void rawspeed::AbstractLJpegDecoder::decodeSOI(), line 111: Not a valid RAW file.
./Blackmagic/Blackmagic Pocket Cinema Camera 4k/BMPCC_4k_DCI_4-1.dng: starting decoding ...
./Blackmagic/Blackmagic Pocket Cinema Camera 4k/BMPCC_4k_DCI_4-1.dng failed: void rawspeed::AbstractDngDecompressor::decompress() const, line 249: Too many errors encountered. Giving up. First Error:
void rawspeed::AbstractLJpegDecoder::decodeSOI(), line 111: Not a valid RAW file.
```
<- `define quantization tables`. WHY?

```
./Blackmagic/Blackmagic Pocket Cinema Camera 4k/BMPCC_4k_DCI_lossless.dng: starting decoding ...
./Blackmagic/Blackmagic Pocket Cinema Camera 4k/BMPCC_4k_DCI_lossless.dng failed: void rawspeed::AbstractDngDecompressor::decompress() const, line 249: Too many errors encountered. Giving up. First Error:
virtual Buffer::size_type rawspeed::LJpegDecoder::decodeScan(), line 108: Unsupported predictor mode: 6
./Blackmagic/Pocket Cinema Camera/Blackmagic_Pocket_Cinema_Camera_1_2016-09-17_0053_C0022_000007.dng: starting decoding ...
./Blackmagic/Pocket Cinema Camera/Blackmagic_Pocket_Cinema_Camera_1_2016-09-17_0053_C0022_000007.dng failed: void rawspeed::AbstractDngDecompressor::decompress() const, line 249: Too many errors encountered. Giving up. First Error:
virtual Buffer::size_type rawspeed::LJpegDecoder::decodeScan(), line 108: Unsupported predictor mode: 6
./Blackmagic/URSA 4K/Blackmagic URSA_1_1999-12-31_2153_C0003_000001.dng: starting decoding ...
./Blackmagic/URSA 4K/Blackmagic URSA_1_1999-12-31_2153_C0003_000001.dng failed: void rawspeed::AbstractDngDecompressor::decompress() const, line 249: Too many errors encountered. Giving up. First Error:
virtual Buffer::size_type rawspeed::LJpegDecoder::decodeScan(), line 108: Unsupported predictor mode: 6
```
<- sound promising, but we'll see...
@LebedevRI LebedevRI merged commit 7e5fe8c into darktable-org:develop Mar 26, 2024
52 checks passed
@LebedevRI LebedevRI deleted the blackmagic-tiff-is-broken branch March 26, 2024 23:02
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.

1 participant