X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FWriteDicomAsMPEG.cxx;h=8e106e208886e864556837fc62d0803902684b12;hb=7e3167602a9c730d1c515527b0fc47fa2168e47d;hp=17a6b130fad5ca0a009559eb9cb9eddec7ce6016;hpb=77d14378a883e25a286dfdb30e815a61bcb5d8e8;p=gdcm.git diff --git a/Example/WriteDicomAsMPEG.cxx b/Example/WriteDicomAsMPEG.cxx index 17a6b130..8e106e20 100644 --- a/Example/WriteDicomAsMPEG.cxx +++ b/Example/WriteDicomAsMPEG.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: WriteDicomAsMPEG.cxx,v $ Language: C++ - Date: $Date: 2006/07/26 17:47:39 $ - Version: $Revision: 1.2 $ + Date: $Date: 2007/06/21 15:01:00 $ + Version: $Revision: 1.3 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -33,7 +33,7 @@ int main(int argc, char *argv[]) // Step 1 : Create the header of the image - gdcm::File *fileToBuild = gdcm::File::New(); + GDCM_NAME_SPACE::File *fileToBuild = GDCM_NAME_SPACE::File::New(); std::ostringstream str; // Set the image size @@ -84,7 +84,7 @@ int main(int argc, char *argv[]) * samplesPerPixel /* * img.componentSize / 8*/; uint8_t *imageData = new uint8_t[size]; - gdcm::FileHelper *fileH = gdcm::FileHelper::New(fileToBuild); + GDCM_NAME_SPACE::FileHelper *fileH = GDCM_NAME_SPACE::FileHelper::New(fileToBuild); //fileH->SetImageData(imageData,size); std::ifstream mpeg("/tmp/ts.mpg"); mpeg.seekg(0, std::ios::end);