#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.
References report_stats_on_error().
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.
References report_stats_on_error().
Referenced by ReadTIFFImage().
static void ReadTIFFHeader | ( | int | vfile, | |
TIFFHeader * | tiff | |||
) | [static] |
Reads Tiff File Header.
Definition at line 121 of file io_tiff.c.
References report_stats_on_error().
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(), and report_stats_on_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(), ReadTIFFSize(), report_stats_on_error(), and inp_par_enc::start_frame.
Referenced by ReadOneFrame().
static int64 ReadTIFFSize | ( | int | video_file | ) | [static] |