Skip to content

Commit

Permalink
fix whitespace to minimize diff
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Leprince <[email protected]>
  • Loading branch information
pleprince committed Feb 20, 2024
1 parent ed2d8f5 commit 555131e
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions src/lib/OpenEXR/ImfCompressor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,19 @@ newCompressor (Compression c, size_t maxScanLineSize, const Header& hdr)

case DWAA_COMPRESSION:

return new DwaCompressor (hdr, static_cast<int> (maxScanLineSize), 32, DwaCompressor::STATIC_HUFFMAN);
return new DwaCompressor (
hdr,
static_cast<int> (maxScanLineSize),
32,
DwaCompressor::STATIC_HUFFMAN);

case DWAB_COMPRESSION:

return new DwaCompressor (hdr, static_cast<int> (maxScanLineSize), 256, DwaCompressor::STATIC_HUFFMAN);
return new DwaCompressor (
hdr,
static_cast<int> (maxScanLineSize),
256,
DwaCompressor::STATIC_HUFFMAN);

default: return 0;
}
Expand All @@ -133,15 +141,11 @@ newTileCompressor (
// clang-format off
switch (c)
{
// DO NOT EDIT: See top of file for details.
case RLE_COMPRESSION:

return new RleCompressor (hdr, uiMult (tileLineSize, numTileLines));

case ZIPS_COMPRESSION:

return new ZipCompressor (hdr, tileLineSize, numTileLines);

case ZIP_COMPRESSION:

return new ZipCompressor (hdr, tileLineSize, numTileLines);
Expand All @@ -164,11 +168,19 @@ newTileCompressor (

case DWAA_COMPRESSION:

return new DwaCompressor (hdr, static_cast<int> (tileLineSize), static_cast<int> (numTileLines), DwaCompressor::DEFLATE);
return new DwaCompressor (
hdr,
static_cast<int> (tileLineSize),
static_cast<int> (numTileLines),
DwaCompressor::DEFLATE);

case DWAB_COMPRESSION:

return new DwaCompressor (hdr, static_cast<int> (tileLineSize), static_cast<int> (numTileLines), DwaCompressor::STATIC_HUFFMAN);
return new DwaCompressor (
hdr,
static_cast<int> (tileLineSize),
static_cast<int> (numTileLines),
DwaCompressor::STATIC_HUFFMAN);

default: return 0;
}
Expand Down

0 comments on commit 555131e

Please sign in to comment.