X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmMpeg.cxx;h=301ba84f380f35571bf79d9002f6861e325c3591;hb=24394a63b18810c791af1c913e1a6fc712d3d3a0;hp=854d241c0e4fb358cc40fce38d2728e99d7b5b79;hpb=8e2b9f42a777285d09024aaecb1a38327c767cff;p=gdcm.git diff --git a/src/gdcmMpeg.cxx b/src/gdcmMpeg.cxx index 854d241c..301ba84f 100644 --- a/src/gdcmMpeg.cxx +++ b/src/gdcmMpeg.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmMpeg.cxx,v $ Language: C++ - Date: $Date: 2005/11/04 15:46:52 $ - Version: $Revision: 1.9 $ + Date: $Date: 2006/05/30 08:19:25 $ + Version: $Revision: 1.10 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -64,14 +64,7 @@ int my_close(istream *infile) namespace gdcm { -/** - * \brief routine for MPEG decompression - * @param fp pointer to an already open file descriptor - * 8 significant bits per pixel - * @param image_buffer to receive uncompressed pixels - * @param length length - * @return 1 on success, 0 on error - */ + static int Headers(); static void DeInitialize_Decoder() { @@ -321,6 +314,14 @@ static void Initialize_Decoder() } +/** + * \brief routine for MPEG decompression + * @param fp pointer to an already open file descriptor + * 8 significant bits per pixel + * @param image_buffer to receive uncompressed pixels + * @param length length + * @return 1 on success, 0 on error + */ bool ReadMPEGFile (std::ifstream *fp, char *image_buffer, size_t length) { std::streampos mpeg_start = fp->tellg(); // the MPEG stream in our case does not start at 0