Program: gdcm
Module: $RCSfile: gdcmMpeg.cxx,v $
Language: C++
- Date: $Date: 2005/06/24 10:55:59 $
- Version: $Revision: 1.5 $
+ Date: $Date: 2007/08/22 16:14:04 $
+ Version: $Revision: 1.13 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
static void Initialize_Sequence _ANSI_ARGS_((void));
static void Initialize_Decoder _ANSI_ARGS_((void));
static void Deinitialize_Sequence _ANSI_ARGS_((void));
-//static void Process_Options _ANSI_ARGS_((int argc, char *argv[]));
+//static void Process_Options _ANSI_ARGS_((int argc, char *argv[]));
/* IMPLEMENTATION specific routines */
static void Initialize_Decoder()
if ( !(auxframe[cc] = (unsigned char *)malloc(size)) )
Error("auxframe[] malloc failed\n");
- if ( Ersatz_Flag )
+ if ( Ersatz_Flag )
if ( !(substitute_frame[cc] = (unsigned char *)malloc(size)) )
Error("substitute_frame[] malloc failed\n");
int ret;
ld = &base;
-
+
/* return when end of sequence (0) or picture
header has been parsed (1) */
#endif
}
-
static int video_sequence(int *Bitstream_Framenumber)
{
int Bitstream_Framenum;
* @param length length
* @return 1 on success, 0 on error
*/
-
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();