Skip to content

Commit c835b05

Browse files
authored
Merge pull request #979 from kmilos/kmilos/sony_a7rm6
Sony ILCE-7RM6 support
2 parents d775714 + 0a4a6fd commit c835b05

4 files changed

Lines changed: 19 additions & 4 deletions

File tree

data/cameras.xml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13969,8 +13969,23 @@
1396913969
</ColorMatrix>
1397013970
</ColorMatrices>
1397113971
</Camera>
13972-
<Camera make="SONY" model="ILCE-7RM6" supported="unknown-no-samples">
13972+
<Camera make="SONY" model="ILCE-7RM6">
1397313973
<ID make="Sony" model="ILCE-7RM6">Sony ILCE-7RM6</ID>
13974+
<CFA width="2" height="2">
13975+
<Color x="0" y="0">RED</Color>
13976+
<Color x="1" y="0">GREEN</Color>
13977+
<Color x="0" y="1">GREEN</Color>
13978+
<Color x="1" y="1">BLUE</Color>
13979+
</CFA>
13980+
<Crop x="0" y="0" width="-8" height="0"/>
13981+
<Sensor black="512" white="16383"/>
13982+
<ColorMatrices>
13983+
<ColorMatrix planes="3">
13984+
<ColorMatrixRow plane="0">11765 -5595 -1192</ColorMatrixRow>
13985+
<ColorMatrixRow plane="1">-3689 11507 2485</ColorMatrixRow>
13986+
<ColorMatrixRow plane="2">51 681 5731</ColorMatrixRow>
13987+
</ColorMatrix>
13988+
</ColorMatrices>
1397413989
</Camera>
1397513990
<Camera make="SONY" model="ILCE-7S">
1397613991
<ID make="Sony" model="ILCE-7S">Sony ILCE-7S</ID>

src/librawspeed/decoders/ArwDecoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ void ArwDecoder::DecodeLJpeg(const TiffIFD* raw) {
316316
}
317317

318318
if (width == 0 || height == 0 || width % 2 != 0 || height % 2 != 0 ||
319-
width > 9728 || height > 6656)
319+
width > 10240 || height > 7168)
320320
ThrowRDE("Unexpected image dimensions found: (%u; %u)", width, height);
321321

322322
mRaw->dim = iPoint2D(width, height);

src/librawspeed/decompressors/LJpegDecoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ LJpegDecoder::LJpegDecoder(ByteStream bs, const RawImage& img)
5656

5757
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
5858
// Yeah, sure, here it would be just dumb to leave this for production :)
59-
if (mRaw->dim.x > 9728 || mRaw->dim.y > 6656) {
59+
if (mRaw->dim.x > 10240 || mRaw->dim.y > 7168) {
6060
ThrowRDE("Unexpected image dimensions found: (%i; %i)", mRaw->dim.x,
6161
mRaw->dim.y);
6262
}

src/librawspeed/decompressors/LJpegDecompressor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ LJpegDecompressor::LJpegDecompressor(RawImage img, iRectangle2D imgFrame_,
7575

7676
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
7777
// Yeah, sure, here it would be just dumb to leave this for production :)
78-
if (mRaw->dim.x > 9728 || mRaw->dim.y > 6656) {
78+
if (mRaw->dim.x > 10240 || mRaw->dim.y > 7168) {
7979
ThrowRDE("Unexpected image dimensions found: (%i; %i)", mRaw->dim.x,
8080
mRaw->dim.y);
8181
}

0 commit comments

Comments
 (0)