io_tiff.c File Reference

I/O functions related to TIFF images. More...

#include "contributors.h"
#include "global.h"
#include "report.h"
#include "io_tiff.h"

Include dependency graph for io_tiff.c:

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


Detailed Description

I/O functions related to TIFF images.

Author:
Main contributors (see contributors.h for copyright, address and affiliation details)

Definition in file io_tiff.c.


Function Documentation

int AllocateTIFFBufferMemory ( unsigned char *  buf,
int  buffersize 
)

Create Frame Memory buffer.

Definition at line 72 of file io_tiff.c.

Referenced by ReadTIFFImage().

void DeleteTiffBufferMemory ( unsigned char *  buf  ) 

Delete Frame Memory buffer.

Definition at line 87 of file io_tiff.c.

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]

Parse Tiff IFD entries.

Definition at line 177 of file io_tiff.c.

Referenced by ReadTIFFImage().

static void ReadTIFFHeader ( int  vfile,
TIFFHeader *  tiff 
) [static]

Reads Tiff File Header.

Definition at line 121 of file io_tiff.c.

Referenced by ReadTIFFImage().

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().

Here is the call graph for this function:

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.

Parameters:
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().

Here is the call graph for this function:

static int64 ReadTIFFSize ( int  video_file  )  [static]

Reads Input File Size.

Definition at line 103 of file io_tiff.c.

Referenced by ReadTIFFImage().


Documentation generated with DoxyGen