Skip to content

Commit b4cd27f

Browse files
committed
Remove unnecessary ColorScaleTo32Bit when decoding pixel type uint32
1 parent 51463a3 commit b4cd27f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/ImageSharp/Formats/Exr/ExrDecoderCore.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ private void DecodeUnsignedIntPixelData<TPixel>(BufferedReadStream stream, Buffe
226226

227227
for (int x = 0; x < width; x++)
228228
{
229-
pixelRow[x] = ColorScaleTo32Bit<TPixel>(redPixelData[x], greenPixelData[x], bluePixelData[x], hasAlpha ? alphaPixelData[x] : uint.MaxValue);
229+
Rgb96 pixelValue = new(redPixelData[x], greenPixelData[x], bluePixelData[x]);
230+
pixelRow[x] = TPixel.FromVector4(pixelValue.ToVector4());
230231
}
231232

232233
decodedRows++;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:bed68d2e491cad0bdd0fa668ce57328951927d722f130ba7c5c5475f6a3e0d96
3+
size 289183

0 commit comments

Comments
 (0)