Skip to content

Commit 98a748b

Browse files
committed
Change HTJ2K compressor name to HTJ2K256
1 parent cfdfc4d commit 98a748b

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

src/lib/OpenEXR/ImfCRgbaFile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ typedef struct ImfRgba ImfRgba;
8080
#define IMF_B44A_COMPRESSION 7
8181
#define IMF_DWAA_COMPRESSION 8
8282
#define IMF_DWAB_COMPRESSION 9
83-
#define IMF_HTJ2K_COMPRESSION 10
83+
#define IMF_HTJ2K256_COMPRESSION 10
8484
#define IMF_HTJ2K32_COMPRESSION 11
8585
#define IMF_NUM_COMPRESSION_METHODS 12
8686

src/lib/OpenEXR/ImfCompression.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ static const CompressionDesc IdToDesc[] = {
177177
true,
178178
false),
179179
CompressionDesc (
180-
"htj2k",
180+
"htj2k256",
181181
"High-Throughput JPEG 2000 (OpenJPH, 256 lines)",
182182
256,
183183
true,
@@ -204,7 +204,7 @@ static const std::map<std::string, Compression> CompressionNameToId = {
204204
{"b44a", Compression::B44A_COMPRESSION},
205205
{"dwaa", Compression::DWAA_COMPRESSION},
206206
{"dwab", Compression::DWAB_COMPRESSION},
207-
{"htj2k", Compression::HTJ2K_COMPRESSION},
207+
{"htj2k256", Compression::HTJ2K256_COMPRESSION},
208208
{"htj2k32", Compression::HTJ2K32_COMPRESSION},
209209
};
210210

src/lib/OpenEXR/ImfCompression.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ enum IMF_EXPORT_ENUM Compression
5151
// wise and faster to decode full frames
5252
// than DWAA_COMPRESSION.
5353

54-
HTJ2K_COMPRESSION = 10, // High-Throughput JPEG2000 (HTJ2K), 256 scanlines
54+
HTJ2K256_COMPRESSION = 10, // High-Throughput JPEG2000 (HTJ2K), 256 scanlines
5555

56-
HTJ2K32_COMPRESSION = 11, // High-Throughput JPEG2000 (HTJ2K), 32 scanlines
56+
HTJ2K32_COMPRESSION = 11, // High-Throughput JPEG2000 (HTJ2K), 32 scanlines
5757

5858
NUM_COMPRESSION_METHODS // number of different compression methods
5959
};

src/lib/OpenEXR/ImfCompressor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ newCompressor (Compression c, size_t maxScanLineSize, const Header& hdr)
336336
DwaCompressor::STATIC_HUFFMAN);
337337
break;
338338

339-
case HTJ2K_COMPRESSION:
339+
case HTJ2K256_COMPRESSION:
340340

341341
return new HTCompressor (hdr, static_cast<int> (maxScanLineSize), 256);
342342

@@ -425,7 +425,7 @@ newTileCompressor (
425425
DwaCompressor::STATIC_HUFFMAN);
426426
break;
427427

428-
case HTJ2K_COMPRESSION:
428+
case HTJ2K256_COMPRESSION:
429429
case HTJ2K32_COMPRESSION:
430430

431431
return new HTCompressor (

src/wrappers/python/Imath.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ class Compression(Enumerated):
9494
B44A_COMPRESSION = 7
9595
DWAA_COMPRESSION = 8
9696
DWAB_COMPRESSION = 9
97-
HTJ2K_COMPRESSION = 10
97+
HTJ2K256_COMPRESSION = 10
9898
HTJ2K32_COMPRESSION = 11
9999
names = [
100100
"NO_COMPRESSION", "RLE_COMPRESSION", "ZIPS_COMPRESSION", "ZIP_COMPRESSION", "PIZ_COMPRESSION", "PXR24_COMPRESSION",
101-
"B44_COMPRESSION", "B44A_COMPRESSION", "DWAA_COMPRESSION", "DWAB_COMPRESSION", "HTJ2K_COMPRESSION", "HTJ2K32_COMPRESSION"
101+
"B44_COMPRESSION", "B44A_COMPRESSION", "DWAA_COMPRESSION", "DWAB_COMPRESSION", "HTJ2K256_COMPRESSION", "HTJ2K32_COMPRESSION"
102102
]
103103

104104
class PixelType(Enumerated):

src/wrappers/python/PyOpenEXR.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2360,7 +2360,7 @@ PYBIND11_MODULE(OpenEXR, m)
23602360
.value("B44A_COMPRESSION", B44A_COMPRESSION)
23612361
.value("DWAA_COMPRESSION", DWAA_COMPRESSION)
23622362
.value("DWAB_COMPRESSION", DWAB_COMPRESSION)
2363-
.value("HTJ2K_COMPRESSION", HTJ2K_COMPRESSION)
2363+
.value("HTJ2K256_COMPRESSION", HTJ2K256_COMPRESSION)
23642364
.value("HTJ2K32_COMPRESSION", HTJ2K32_COMPRESSION)
23652365
.value("NUM_COMPRESSION_METHODS", NUM_COMPRESSION_METHODS)
23662366
.export_values();
@@ -2714,7 +2714,7 @@ PYBIND11_MODULE(OpenEXR, m)
27142714
B44A_COMPRESSION
27152715
DWAA_COMPRESSION
27162716
DWAB_COMPRESSION
2717-
HTJ2K_COMPRESSION
2717+
HTJ2K256_COMPRESSION
27182718
HTJ2K32_COMPRESSION
27192719
)pbdoc")
27202720
.def_readwrite("header", &PyPart::header,

website/OpenEXRFileLayout.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ per block depends on how the pixel data are compressed:
696696
- 32
697697
* - ``DWAB_COMPRESSION``
698698
- 256
699-
* - ``HTJ2K_COMPRESSION``
699+
* - ``HTJ2K256_COMPRESSION``
700700
- 256
701701
* - ``HTJ2K32_COMPRESSION``
702702
- 32
@@ -936,7 +936,7 @@ The OpenEXR library predefines the following attribute types:
936936
| | * ``B44A_COMPRESSION`` = 7 |
937937
| | * ``DWAA_COMPRESSION`` = 8 |
938938
| | * ``DWAB_COMPRESSION`` = 9 |
939-
| | * ``HTJ2K_COMPRESSION`` = 10 |
939+
| | * ``HTJ2K256_COMPRESSION`` = 10 |
940940
| | * ``HTJ2K32_COMPRESSION`` = 11 |
941941
| | |
942942
+--------------------+-----------------------------------------------------------------+

website/StandardAttributes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Basic Attributes
151151
<li> <tt> B44A_COMPRESSION </tt> - lossy 4-by-4 pixel block compression, flat fields are compressed more </li>
152152
<li> <tt> DWAA_COMPRESSION </tt> - lossy DCT based compression, in blocks of 32 scanlines. More efficient for partial buffer access. </li>
153153
<li> <tt> DWAB_COMPRESSION </tt> - lossy DCT based compression, in blocks of 256 scanlines. More efficient space wise and faster to decode full frames than <tt>DWAA_COMPRESSION</tt>. </li>
154-
<li> <tt> HTJ2K_COMPRESSION </tt> - JPEG 2000 lossless coding, in blocks of 256 scanlines and using the High-Throughput (HT) blocker. Offers both speed and high-coding efficiency. </li>
154+
<li> <tt> HTJ2K256_COMPRESSION </tt> - JPEG 2000 lossless coding, in blocks of 256 scanlines and using the High-Throughput (HT) blocker. Offers both speed and high-coding efficiency. </li>
155155
<li> <tt> HTJ2K32_COMPRESSION </tt> - JPEG 2000 lossless coding, in blocks of 32 scanlines and using the High-Throughput (HT) blocker. Offers both speed and high-coding efficiency. </li>
156156
</ul>
157157
</p>

website/python.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ The OpenEXR module has enumerated types for certain attributes:
228228
<li> <tt> OpenEXR.B44A_COMPRESSION </tt>
229229
<li> <tt> OpenEXR.DWAA_COMPRESSION </tt>
230230
<li> <tt> OpenEXR.DWAB_COMPRESSION </tt>
231-
<li> <tt> OpenEXR.HTJ2K_COMPRESSION </tt>
231+
<li> <tt> OpenEXR.HTJ2K256_COMPRESSION </tt>
232232
<li> <tt> OpenEXR.HTJ2K32_COMPRESSION </tt>
233233
<li> <tt> OpenEXR.NUM_COMPRESSION_METHODS </tt>
234234
</ul>

0 commit comments

Comments
 (0)