From: jpr Date: Thu, 21 Apr 2005 07:40:00 +0000 (+0000) Subject: Taking into account Dicom MPEG X-Git-Tag: Version1.2.bp~765 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=a6a5e4803507a5ff86d6ed756fe0e2ca3d03fdd3;p=gdcm.git Taking into account Dicom MPEG --- diff --git a/src/gdcmTS.cxx b/src/gdcmTS.cxx index 598c92db..661e5597 100644 --- a/src/gdcmTS.cxx +++ b/src/gdcmTS.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmTS.cxx,v $ Language: C++ - Date: $Date: 2005/02/11 15:22:18 $ - Version: $Revision: 1.43 $ + Date: $Date: 2005/04/21 07:40:00 $ + Version: $Revision: 1.44 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -34,7 +34,7 @@ namespace gdcm { //----------------------------------------------------------------------------- -/// \brief Transfer Syntaxes gdcm deals with (internal use onky) +/// \brief Transfer Syntaxes gdcm deals with (internal use only) static const char *SpecialStrings[] = { // Implicit VR Little Endian "1.2.840.10008.1.2", @@ -71,6 +71,8 @@ static const char *SpecialStrings[] = { "1.2.840.10008.1.2.4.91", // RLE Lossless "1.2.840.10008.1.2.5", + // MPEG2 Main Profile @ Main Level + "1.2.840.10008.1.2.4.100", // Unknown "Unknown Transfer Syntax" }; @@ -282,6 +284,11 @@ bool TS::IsJPEGLS(TSKey const &key) return r; } +/** + * \brief GetSpecialTransferSyntax ?? + * @param key TSKey const &key ?? + * @return TS::SpecialType ??. + */ TS::SpecialType TS::GetSpecialTransferSyntax(TSKey const &key) { for (int i = 0; SpecialStrings[i] != NULL; i++) @@ -291,10 +298,14 @@ TS::SpecialType TS::GetSpecialTransferSyntax(TSKey const &key) return SpecialType(i); } } - return UnknownTS; } +/** + * \brief GetSpecialTransferSyntax ?? + * @param t SpecialType t ?? + * @return char* TS : SpecialStrings[t] ??. + */ const char* TS::GetSpecialTransferSyntax(SpecialType t) { return SpecialStrings[t]; diff --git a/src/gdcmTS.h b/src/gdcmTS.h index 6375a0a4..8a6ef740 100644 --- a/src/gdcmTS.h +++ b/src/gdcmTS.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmTS.h,v $ Language: C++ - Date: $Date: 2005/01/23 10:12:34 $ - Version: $Revision: 1.18 $ + Date: $Date: 2005/04/21 07:40:00 $ + Version: $Revision: 1.19 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -59,6 +59,7 @@ enum SpecialType { JPEG2000Lossless, JPEG2000, RLELossless, + MPEG2MainProfile, UnknownTS };