Skip to content

Commit 03a5602

Browse files
committed
Change HTJ2K_COMPRESSOR chunk size to 32 lines
Signed-off-by: Pierre-Anthony Lemieux <pal@palemieux.com>
1 parent 75e917a commit 03a5602

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/lib/OpenEXR/ImfCompression.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ static const CompressionDesc IdToDesc[] = {
178178
false),
179179
CompressionDesc (
180180
"htj2k",
181-
"High-Throughput JPEG 2000 (OpenJPH, 256 lines)",
182-
256,
181+
"High-Throughput JPEG 2000 (OpenJPH, 32 lines)",
182+
32,
183183
true,
184184
false),
185185
};

src/lib/OpenEXR/ImfCompressor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ newCompressor (Compression c, size_t maxScanLineSize, const Header& hdr)
338338

339339
case HTJ2K_COMPRESSION:
340340

341-
return new HTCompressor (hdr, static_cast<int> (maxScanLineSize), 256);
341+
return new HTCompressor (hdr, static_cast<int> (maxScanLineSize), 32);
342342

343343
default: break;
344344
}

src/lib/OpenEXRCore/compression.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ int exr_compression_lines_per_chunk (exr_compression_t comptype)
227227
case EXR_COMPRESSION_B44A:
228228
case EXR_COMPRESSION_DWAA: linePerChunk = 32; break;
229229
case EXR_COMPRESSION_DWAB: linePerChunk = 256; break;
230-
case EXR_COMPRESSION_HTJ2K: linePerChunk = 256; break;
230+
case EXR_COMPRESSION_HTJ2K: linePerChunk = 32; break;
231231
case EXR_COMPRESSION_LAST_TYPE:
232232
default:
233233
/* ERROR CONDITION */

website/OpenEXRFileLayout.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ per block depends on how the pixel data are compressed:
697697
* - ``DWAB_COMPRESSION``
698698
- 256
699699
* - ``HTJ2K_COMPRESSION``
700-
- 256
700+
- 32
701701

702702
Each scan line block has a y coordinate of type ``int``. The block's y
703703
coordinate is equal to the pixel space y coordinate of the top scan line

0 commit comments

Comments
 (0)