Skip to content

Commit eff8da2

Browse files
authored
Merge pull request #785 from kmilos/kmilos/fix_rotated_raf_cfa
Preserve CFA pattern for rotated RAFs
2 parents b620c24 + 8fec742 commit eff8da2

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)