Skip to content

Commit

Permalink
Merge pull request #770 from darktable-org/kmilos/fix_raf_odd_crop
Browse files Browse the repository at this point in the history
RafDecoder: set CFA pattern before cropping correction
  • Loading branch information
kmilos authored Jan 19, 2025
2 parents d9c9d35 + 0e3159a commit 91bcae1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/librawspeed/decoders/RafDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ void RafDecoder::decodeMetaDataInternal(const CameraMetaData* meta) {

assert(cam != nullptr);

mRaw->cfa = cam->cfa;

applyCorrections(cam);

// at least the (bayer sensor) X100 comes with a tag like this:
Expand Down Expand Up @@ -342,7 +344,7 @@ void RafDecoder::decodeMetaDataInternal(const CameraMetaData* meta) {
}

mRaw->blackAreas = cam->blackAreas;
mRaw->cfa = cam->cfa;

if (!cam->color_matrix.empty())
mRaw->metadata.colorMatrix = cam->color_matrix;
mRaw->metadata.canonical_make = cam->canonical_make;
Expand Down

0 comments on commit 91bcae1

Please sign in to comment.