Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vidl2_pixel_format.cxx File Reference


Detailed Description

Author:
Matt Leotta

Definition in file vidl2_pixel_format.cxx.

#include "vidl2_pixel_format.h"

Go to the source code of this file.

Classes

struct  check_types< pix_type >
 Recursive template metaprogram to generate conditionals for checking the traits of each defined pixel type. More...
struct  check_types< VIDL2_PIXEL_FORMAT_UNKNOWN >
 The base case: unknown pixel type. More...

Defines

#define vidl2_ppi_mac(FMT)   const vcl_ptrdiff_t vidl2_pixel_pack_of<VIDL2_PIXEL_FORMAT_##FMT>::offset[macro_pix_size][num_channels]

Functions

 vidl2_ppi_mac (YUYV_422)
 vidl2_ppi_mac (UYVY_422)
 vidl2_ppi_mac (UYVY_411)
unsigned vidl2_pixel_color_num_channels (vidl2_pixel_color c)
 Return the number of channels needed in a color mode.
vidl2_pixel_traits vidl2_pixel_format_traits (vidl2_pixel_format f)
 Return the set of traits for pixel format f.
vcl_ostream & operator<< (vcl_ostream &os, vidl2_pixel_format f)
 Output a pretty string representing the pixel format.
vidl2_pixel_format vidl2_pixel_format_from_string (const vcl_string &s)
 Convert a string into a pixel format.
unsigned vidl2_pixel_format_buffer_size (unsigned ni, unsigned nj, vidl2_pixel_format f)
 Compute the size (in bytes) of a ni x nj image buffer of pixel format f.


Define Documentation

#define vidl2_ppi_mac FMT   )     const vcl_ptrdiff_t vidl2_pixel_pack_of<VIDL2_PIXEL_FORMAT_##FMT>::offset[macro_pix_size][num_channels]
 

Definition at line 9 of file vidl2_pixel_format.cxx.


Function Documentation

vcl_ostream& operator<< vcl_ostream &  os,
vidl2_pixel_format  f
 

Output a pretty string representing the pixel format.

Definition at line 123 of file vidl2_pixel_format.cxx.

unsigned vidl2_pixel_color_num_channels vidl2_pixel_color  c  ) 
 

Return the number of channels needed in a color mode.

Definition at line 91 of file vidl2_pixel_format.cxx.

unsigned vidl2_pixel_format_buffer_size unsigned  ni,
unsigned  nj,
vidl2_pixel_format  f
 

Compute the size (in bytes) of a ni x nj image buffer of pixel format f.

Definition at line 146 of file vidl2_pixel_format.cxx.

vidl2_pixel_format vidl2_pixel_format_from_string const vcl_string &  s  ) 
 

Convert a string into a pixel format.

This uses the same encoding as operator<<.

Definition at line 135 of file vidl2_pixel_format.cxx.

vidl2_pixel_traits vidl2_pixel_format_traits vidl2_pixel_format  f  ) 
 

Return the set of traits for pixel format f.

Definition at line 111 of file vidl2_pixel_format.cxx.

vidl2_ppi_mac UYVY_411   ) 
 

vidl2_ppi_mac UYVY_422   ) 
 

vidl2_ppi_mac YUYV_422   ) 
 


Generated on Thu Jan 10 14:51:32 2008 for contrib/brl/bbas/vidl2 by  doxygen 1.4.4