Skip to content

Commit c7f2bd8

Browse files
committed
Minimal support for deflated image frame compression TS
1 parent 3f11cfb commit c7f2bd8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Source/DataStructureAndEncodingDefinition/gdcmTransferSyntax.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ static const char *TSStrings[] = {
8787
"1.2.840.10008.1.2.4.202",
8888
// High-Throughput JPEG 2000 Image Compression
8989
"1.2.840.10008.1.2.4.203",
90+
// Deflated Image Frame Compression
91+
"1.2.840.10008.1.2.8.1",
9092
// Unknown
9193
"Unknown Transfer Syntax", // Pretty sure we never use this case... until a new transfer syntax is added
9294
nullptr // Compilers have no obligation to finish by NULL, do it ourselves
@@ -195,6 +197,7 @@ bool TransferSyntax::CanStoreLossy() const
195197
TSField == JPEGLSLossless ||
196198
TSField == JPEG2000Lossless ||
197199
TSField == JPEG2000Part2Lossless ||
200+
TSField == DeflatedImageFrameCompression ||
198201
TSField == RLELossless
199202
)
200203
{
@@ -311,6 +314,7 @@ bool TransferSyntax::IsEncapsulated() const
311314
case HTJ2KLossless:
312315
case HTJ2KRPCLLossless:
313316
case HTJ2K:
317+
case DeflatedImageFrameCompression:
314318

315319
ret = true;
316320
break;

Source/DataStructureAndEncodingDefinition/gdcmTransferSyntax.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ class GDCM_EXPORT TransferSyntax
8989
HTJ2KLossless,
9090
HTJ2KRPCLLossless,
9191
HTJ2K,
92+
DeflatedImageFrameCompression,
9293
TS_END
9394
} TSType;
9495

0 commit comments

Comments
 (0)