io_raw.c File Reference

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

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

Include dependency graph for io_raw.c:

Go to the source code of this file.

Defines

#define FAST_READ   1

Functions

static void ReadData (int vfile, FrameFormat *source, unsigned char *buf)
void ReadFrameConcatenated (InputParameters *p_Inp, VideoDataFile *input_file, int FrameNoInFile, int HeaderSize, FrameFormat *source, unsigned char *buf)
void ReadFrameSeparate (InputParameters *p_Inp, VideoDataFile *input_file, int FrameNoInFile, int HeaderSize, FrameFormat *source, unsigned char *buf)


Detailed Description

I/O functions related to raw images.

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

Definition in file io_raw.c.


Function Documentation

void ReadFrameConcatenated ( InputParameters *  p_Inp,
VideoDataFile *  input_file,
int  FrameNoInFile,
int  HeaderSize,
FrameFormat *  source,
unsigned char *  buf 
)

Reads one new frame from concatenated raw file Code does not distinguish between planar and interleaved data.

Parameters:
p_Inp Input configuration parameters
input_file Input file to read from
FrameNoInFile Frame number in the source file
HeaderSize Number of bytes in the source file to be skipped
source source file (on disk) information
buf image buffer data

Definition at line 88 of file io_raw.c.

References error(), errortext, and ET_SIZE.

Referenced by ReadOneFrame().

Here is the call graph for this function:

void ReadFrameSeparate ( InputParameters *  p_Inp,
VideoDataFile *  input_file,
int  FrameNoInFile,
int  HeaderSize,
FrameFormat *  source,
unsigned char *  buf 
)

Reads one new frame from separate data files Code does not distinguish between planar and interleaved data.

Parameters:
p_Inp Input configuration parameters
input_file Input file to read from
FrameNoInFile Frame number in the source file
HeaderSize Number of bytes in the source file to be skipped
source source file (on disk) information
buf taget buffer

Definition at line 163 of file io_raw.c.

References error(), and OpenFrameFile().

Referenced by ReadOneFrame().

Here is the call graph for this function:


Documentation generated with DoxyGen