Skip to content

Commit

Permalink
Mac: Log image data when flushing scanned image
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanfish committed Sep 26, 2023
1 parent d57a298 commit 4a6d8e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions NAPS2.Sdk/Scan/Internal/Apple/DeviceOperator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ public override void DidScanToBandData(ICScannerDevice scanner, ICScannerBandDat
(ICScannerPixelDataType.Rgb, 4, 8) => (ImagePixelFormat.RGB24, SubPixelType.Rgbn),
_ => (ImagePixelFormat.Unsupported, null)
};
_logger.LogDebug(
"Image data: width {Width}, height {Height}, type {Type}, comp {Comp}, " +
"bits/comp {BitsPerComp}, bits/pixel {BitsPerPixel}, bytes/row {BytesPerRow}, data len {DataLen}",
data.FullImageWidth, data.FullImageHeight, data.PixelDataType, data.NumComponents,
data.BitsPerComponent, data.BitsPerPixel, data.BytesPerRow, fullBuffer.Length);
if (data.ColorSyncProfilePath != null)
{
_logger.LogDebug($"Flushing image with color sync profile {data.ColorSyncProfilePath}");
Expand Down

0 comments on commit 4a6d8e4

Please sign in to comment.