X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmTS.cxx;h=256758b92dc1b7a2c07b0f14428a7f25bef02901;hb=f3d69cce23405b6fb8939a7f8e20dc1b151b1619;hp=661e55971863c46188e8c389d45c1a20b01c0993;hpb=a6a5e4803507a5ff86d6ed756fe0e2ca3d03fdd3;p=gdcm.git diff --git a/src/gdcmTS.cxx b/src/gdcmTS.cxx index 661e5597..256758b9 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/04/21 07:40:00 $ - Version: $Revision: 1.44 $ + Date: $Date: 2005/06/09 21:14:43 $ + Version: $Revision: 1.47 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -256,6 +256,8 @@ bool TS::IsJPEG(TSKey const &key) { if ( IsJPEGLossy( key ) || IsJPEGLossless( key ) + || IsJPEG2000( key ) + || IsJPEGLS( key ) ) { r = true; @@ -284,6 +286,25 @@ bool TS::IsJPEGLS(TSKey const &key) return r; } +/** + * \brief Determines if the Transfer Syntax corresponds to any form + * of MPEG encoded Pixel data. + * @return True when any form of MPEG found. False otherwise. + */ +bool TS::IsMPEG(TSKey const &key) +{ + bool r = false; + // First check this is an actual transfer syntax + if( IsTransferSyntax(key) ) + { + if ( key == SpecialStrings[MPEG2MainProfile] ) + { + r = true; + } + } + return r; +} + /** * \brief GetSpecialTransferSyntax ?? * @param key TSKey const &key ??