Program: gdcm
Module: $RCSfile: gdcmMpeg.cxx,v $
Language: C++
- Date: $Date: 2005/05/21 18:43:52 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2005/05/23 13:28:19 $
+ 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
* @param statesuspension Suspension State basically it should be 3 otherwise more complex to handle
* @return 1 on success, 0 on error
*/
-bool ReadMPEGFile (std::ifstream *fp, void *image_buffer)
+
+bool ReadMPEGFile (std::ifstream *fp, void *image_buffer, size_t length)
{
int ret, code;
+#if 0
+ fp->read((char*)image_buffer, length);
+
+ ofstream out("/tmp/etiam.mpeg");
+ out.write((char*)image_buffer, length);
+ out.close();
+#endif
+
// Clear_Options();
/* decode command line arguments */