#include "contributors.h"
#include "global.h"
#include "report.h"
#include "io_tiff.h"
Go to the source code of this file.
Functions | |
void | OpenTiffFile (VideoDataFile *input_file, InputParameters *p_Inp, int FrameNumberInFile) |
int | AllocateTIFFBufferMemory (unsigned char *buf, int buffersize) |
void | DeleteTiffBufferMemory (unsigned char *buf) |
static int64 | ReadTIFFSize (int video_file) |
static void | ReadTIFFHeader (int vfile, TIFFHeader *tiff) |
static void | ReadTIFFIFDEntry (int vfile, TIFFHeader *tiffHeader, uint16 *ifd_count, TIFFIFDEntry **tiffIFD) |
static void | ParseTIFFIFD (uint16 ifd_count, TIFFIFDEntry *tiffIFD, FrameFormat *source) |
void | ReadTIFFImage (InputParameters *p_Inp, VideoDataFile *input_file, int FrameNoInFile, FrameFormat *source, unsigned char *buf) |
Variables | |
int64 | bufferSize = 0 |
Definition in file io_tiff.c.
int AllocateTIFFBufferMemory | ( | unsigned char * | buf, | |
int | buffersize | |||
) |
void DeleteTiffBufferMemory | ( | unsigned char * | buf | ) |
void OpenTiffFile | ( | VideoDataFile * | input_file, | |
InputParameters * | p_Inp, | |||
int | FrameNumberInFile | |||
) |
Open file containing a single frame.
Definition at line 30 of file io_tiff.c.
Referenced by ReadTIFFImage().
static void ParseTIFFIFD | ( | uint16 | ifd_count, | |
TIFFIFDEntry * | tiffIFD, | |||
FrameFormat * | source | |||
) | [static] |
static void ReadTIFFHeader | ( | int | vfile, | |
TIFFHeader * | tiff | |||
) | [static] |
static void ReadTIFFIFDEntry | ( | int | vfile, | |
TIFFHeader * | tiffHeader, | |||
uint16 * | ifd_count, | |||
TIFFIFDEntry ** | tiffIFD | |||
) | [static] |
Reads Tiff IFD entry.
Definition at line 137 of file io_tiff.c.
References error().
Referenced by ReadTIFFImage().
void ReadTIFFImage | ( | InputParameters * | p_Inp, | |
VideoDataFile * | input_file, | |||
int | FrameNoInFile, | |||
FrameFormat * | source, | |||
unsigned char * | buf | |||
) |
Reads entire tiff file from harddrive. Any processing is done in memory, reducing I/O processing.
p_Inp | Input configuration parameters | |
input_file | Input file to read from | |
FrameNoInFile | Frame number in the source file | |
source | source file (on disk) information | |
buf | memory buffer |
Definition at line 259 of file io_tiff.c.
References AllocateTIFFBufferMemory(), OpenTiffFile(), ParseTIFFIFD(), ReadTIFFHeader(), ReadTIFFIFDEntry(), and ReadTIFFSize().
Referenced by ReadOneFrame().
static int64 ReadTIFFSize | ( | int | video_file | ) | [static] |