input.h File Reference

Input related definitions. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int testEndian (void)
void initInput (ImageParameters *p_Img, FrameFormat *source, FrameFormat *output)
void AllocateFrameMemory (ImageParameters *p_Img, InputParameters *p_Inp, FrameFormat *source)
void DeleteFrameMemory (ImageParameters *p_Img)
int ReadOneFrame (ImageParameters *p_Img, InputParameters *p_Inp, VideoDataFile *input_file, int FrameNoInFile, int HeaderSize, FrameFormat *source, FrameFormat *output, imgpel **pImage[3])
void PaddAutoCropBorders (FrameFormat output, int img_size_x, int img_size_y, int img_size_x_cr, int img_size_y_cr, imgpel **pImage[3])


Detailed Description

Input related definitions.

Author:

Definition in file input.h.


Function Documentation

void AllocateFrameMemory ( ImageParameters p_Img,
InputParameters p_Inp,
FrameFormat *  source 
)

Create Frame Memory buffer.

Definition at line 545 of file input.c.

References inp_par_enc::input_file1, and no_mem_exit().

Referenced by init_img().

Here is the call graph for this function:

void DeleteFrameMemory ( ImageParameters p_Img  ) 

Delete Frame Memory buffer.

Definition at line 563 of file input.c.

Referenced by free_img().

void initInput ( ImageParameters p_Img,
FrameFormat *  source,
FrameFormat *  output 
)

checks if the System is big- or little-endian

Returns:
0, little-endian (e.g. Intel architectures) 1, big-endian (e.g. SPARC, MIPS, PowerPC)

Definition at line 41 of file input.c.

References buf2img_basic(), buf2img_bitshift(), buf2img_endian(), and testEndian().

Referenced by init_img().

Here is the call graph for this function:

void PaddAutoCropBorders ( FrameFormat  output,
int  img_size_x,
int  img_size_y,
int  img_size_x_cr,
int  img_size_y_cr,
imgpel **  pImage[3] 
)

Padding of automatically added border for picture sizes that are not multiples of macroblock/macroblock pair size.

Parameters:
output Image dimensions
img_size_x coded image horizontal size (luma)
img_size_y code image vertical size (luma)
img_size_x_cr coded image horizontal size (chroma)
img_size_y_cr code image vertical size (chroma)
pImage image planes

Definition at line 679 of file input.c.

References YUV400.

Referenced by encode_one_frame().

int ReadOneFrame ( ImageParameters p_Img,
InputParameters p_Inp,
VideoDataFile *  input_file,
int  FrameNoInFile,
int  HeaderSize,
FrameFormat *  source,
FrameFormat *  output,
imgpel **  pImage[3] 
)

Reads one new frame from file.

Parameters:
p_Img image encoding parameters for current picture
p_Inp Input configuration parameters
input_file structure containing information (filename, format) about the source file
FrameNoInFile Frame number in the source file
HeaderSize Number of bytes in the source file to be skipped
source source file (on disk) information
output output file (for encoding) information
pImage Image planes

Definition at line 594 of file input.c.

References deinterleave(), inp_par_enc::grayscale, ReadFrameConcatenated(), ReadFrameSeparate(), ReadTIFFImage(), YUV400, and YUV444.

Referenced by encode_one_frame().

Here is the call graph for this function:

int testEndian ( void   ) 

checks if the System is big- or little-endian

Returns:
0, little-endian (e.g. Intel architectures) 1, big-endian (e.g. SPARC, MIPS, PowerPC)

Definition at line 64 of file input.c.

Referenced by buf2img_bitshift(), img2buf(), and initInput().


Documentation generated with DoxyGen