darktable-org / darktable-org/rawspeed

Phase One decode error

Open
#727 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
456
Forks
147
PR merge metrics
No merged PRs in 30d

Description

P25 IIQ sample sample throws

ERROR: [rawspeed] C:/msys64/home/kmilos/rawspeed/src/librawspeed/decompressors/PhaseOneDecompressor.cpp:165: void rawspeed::PhaseOneDecompressor::decompress() const: Too many errors encountered. Giving up. First Error:
C:/msys64/home/kmilos/rawspeed/src/librawspeed/decompressors/PhaseOneDecompressor.cpp:112: void rawspeed::PhaseOneDecompressor::decompressStrip(const rawspeed::PhaseOneStrip&) const: Can not initialize lengths. Data is corrupt.

The P30 and P45 .TIF samples decode fine (as do the P25+ and P45+ .IIQ ones). I can also decode the P25 one using LibRaw's unprocessed_raw tool.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the P25 IIQ sample and inspect PhaseOneDecompressor.cpp at the reported lines 112 and 165. Compare behavior with the P30 and P45 samples and LibRaw's unprocessed_raw tool. Done means the P25 IIQ sample decodes successfully without the corrupt-data error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-vision
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.