#include "gdcmDebug.h"
#include <fstream>
#include "config.h"
#include "global.h"
Include dependency graph for gdcmMpeg.cxx:
Go to the source code of this file.
Namespaces | |
namespace | gdcm |
Classes | |
struct | istream |
Defines | |
#define | GLOBAL |
Functions | |
off_t | my_seek (istream *infile, off_t offset, int whence) |
ssize_t | my_read (istream *infile, void *buf, size_t count) |
int | my_close (istream *infile) |
static int | gdcm::Headers () |
routine for MPEG decompression | |
static void | gdcm::DeInitialize_Decoder () |
static void | gdcm::Deinitialize_Sequence () |
static void | gdcm::Initialize_Sequence () |
static int | gdcm::video_sequence (int *Bitstream_Framenumber) |
static int | gdcm::Decode_Bitstream () |
static void | gdcm::Initialize_Decoder () |
bool | gdcm::ReadMPEGFile (std::ifstream *fp, char *image_buffer, size_t length) |
|
Definition at line 28 of file gdcmMpeg.cxx. |
|
Definition at line 58 of file gdcmMpeg.cxx. References istream::InFd. Referenced by gdcm::ReadMPEGFile(). 00059 { 00060 //return fclose(infile->InFd); 00061 infile->InFd->close(); 00062 return 0; 00063 }
|
|
Definition at line 51 of file gdcmMpeg.cxx. References istream::InFd. Referenced by gdcm::ReadMPEGFile(). 00052 { 00053 //return fread(buf,1,count, infile->InFd); 00054 infile->InFd->read((char*)buf, count); 00055 return infile->InFd->gcount(); 00056 }
|
|
Definition at line 34 of file gdcmMpeg.cxx. References istream::InFd. Referenced by gdcm::ReadMPEGFile(). 00035 { 00036 //return fseek(infile->InFd,offset, whence); 00037 switch(whence) 00038 { 00039 case SEEK_SET: 00040 infile->InFd->seekg(offset, std::ios::beg); 00041 break; 00042 case SEEK_END: 00043 infile->InFd->seekg(offset, std::ios::end); 00044 break; 00045 case SEEK_CUR: 00046 infile->InFd->seekg(offset, std::ios::cur); 00047 break; 00048 } 00049 return infile->InFd->tellg(); 00050 }
|