]> Creatis software - gdcm.git/blobdiff - src/gdcmTS.cxx
COMP: oops could be usefull...
[gdcm.git] / src / gdcmTS.cxx
index 661e55971863c46188e8c389d45c1a20b01c0993..02be5ba1f36e6c829ec3b8d15656f2dd9250804a 100644 (file)
@@ -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/04/22 13:37:57 $
+  Version:   $Revision: 1.45 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -284,6 +284,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 ??