Skip to content

Commit 8fec742

Browse files
committed
Preserve CFA pattern for rotated RAFs
Before 91bcae1 the CFA was set after applying corrections, this fixes another fallout on rotated SuperCCD sensors by ensuring it is preserved.
1 parent b620c24 commit 8fec742

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librawspeed/decoders/RafDecoder.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ void RafDecoder::applyCorrections(const Camera* cam) {
244244
iPoint2D final_size(rotatedsize, rotatedsize - 1);
245245
RawImage rotated = RawImage::create(final_size, RawImageType::UINT16, 1);
246246
rotated->clearArea(iRectangle2D(iPoint2D(0, 0), rotated->dim));
247+
rotated->cfa = mRaw->cfa;
247248
rotated->metadata = mRaw->metadata;
248249
rotated->metadata.fujiRotationPos = rotationPos;
249250

0 commit comments

Comments
 (0)