Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

Extract information from header.
[Functions operating on pfspd header]


Detailed Description

No error codes are returned since the header should contain legal values i.e. created by p_read_header() or p_create_header().


Functions

int p_get_num_frames (const pT_header *header)
int p_is_interlaced (const pT_header *header)
int p_is_progressive (const pT_header *header)
int p_get_frame_width (const pT_header *header)
int p_get_frame_height (const pT_header *header)
void p_get_y_buffer_size (const pT_header *header, int *width, int *height)
void p_get_uv_buffer_size (const pT_header *header, int *width, int *height)
void p_get_rgb_buffer_size (const pT_header *header, int *width, int *height)
void p_get_s_buffer_size (const pT_header *header, int *width, int *height)
pT_color p_get_color_format (const pT_header *header)
void p_get_all_freqs (const pT_header *header, double *image_freq, double *line_freq, double *pixel_freq)
pT_freq p_get_image_freq (const pT_header *header)
pT_size p_get_image_size (const pT_header *header)
pT_asp_rat p_get_aspect_ratio (const pT_header *header)
pT_data_fmt p_get_file_data_format (const pT_header *header)
char * p_get_file_description (const pT_header *header)


Function Documentation

int p_get_num_frames const pT_header header  ) 
 

Return number of frames.

int p_is_interlaced const pT_header header  ) 
 

Return 1 if interlaced, 0 if progressive.

int p_is_progressive const pT_header header  ) 
 

Return 0 if interlaced, 1 if progressive.

int p_get_frame_width const pT_header header  ) 
 

Return frame width.

int p_get_frame_height const pT_header header  ) 
 

Return frame height.

void p_get_y_buffer_size const pT_header header,
int *  width,
int *  height
 

Return height and width of an Y buffer.

  • This is the minimum size of a buffer that can be used by the read/write field/frame functions.
  • For interlaced files this is the size of a field.
  • For progressive files this is the size of a frame.

void p_get_uv_buffer_size const pT_header header,
int *  width,
int *  height
 

Return height and width of a U/V buffer For planar U/V this is the size of one U or V buffer; for multiplexed U/V this is the size of the combined U/V buffer).

  • This is the minimum size of a buffer that can be used by the read/write field/frame functions.
  • For interlaced files this is the size of a field.
  • For progressive files this is the size of a frame.

void p_get_rgb_buffer_size const pT_header header,
int *  width,
int *  height
 

Return height and width of an R, G or B buffer.

  • This is the minimum size of a buffer that can be used by the read/write field/frame functions.
  • For interlaced files this is the size of a field.
  • For progressive files this is the size of a frame.

void p_get_s_buffer_size const pT_header header,
int *  width,
int *  height
 

Return height and width of an S buffer.

  • This is the minimum size of a buffer that can be used by the read/write frame functions.

pT_color p_get_color_format const pT_header header  ) 
 

Return color format.

void p_get_all_freqs const pT_header header,
double *  image_freq,
double *  line_freq,
double *  pixel_freq
 

Return image, line, and pixel frequencies as doubles.

pT_freq p_get_image_freq const pT_header header  ) 
 

Return image frequency.

pT_size p_get_image_size const pT_header header  ) 
 

Return image size.

pT_asp_rat p_get_aspect_ratio const pT_header header  ) 
 

Return aspect ratio.

pT_data_fmt p_get_file_data_format const pT_header header  ) 
 

Return data format.

char* p_get_file_description const pT_header header  ) 
 

Return the file description string The returned string is valid as long as the header structure exists.


Generated on Thu Nov 19 16:28:20 2009 for cpfspd by  doxygen 1.3.9.1