Functions
vil_pixel_format.cxx File Reference
#include <complex>
#include <string>
#include "vil_pixel_format.h"
#include <cassert>

Go to the source code of this file.

Functions

unsigned vil_pixel_format_sizeof_components (enum vil_pixel_format f)
 Return the number of bytes used by each component of pixel format f. More...
 
unsigned vil_pixel_format_num_components (enum vil_pixel_format f)
 Return the number of components in pixel format f. More...
 
vil_pixel_format vil_pixel_format_component_format (enum vil_pixel_format f)
 Return the number of components in pixel format f. More...
 
std::ostream & operator<< (std::ostream &os, vil_pixel_format f)
 output a pretty string representing the pixel format. More...
 
vil_pixel_format vil_pixel_format_from_string (const char *s)
 Convert a string into a pixel format. More...
 

Detailed Description

Author
Ian Scott.
  Modifications
   23 Oct.2003 - Peter Vanroose - Added support for 64-bit int pixels

Definition in file vil_pixel_format.cxx.

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
vil_pixel_format  f 
)

output a pretty string representing the pixel format.

Output a pretty string representing the pixel format.

Definition at line 225 of file vil_pixel_format.cxx.

◆ vil_pixel_format_component_format()

vil_pixel_format vil_pixel_format_component_format ( enum vil_pixel_format  f)

Return the number of components in pixel format f.

Return the format of each component of pixel format f.

Definition at line 217 of file vil_pixel_format.cxx.

◆ vil_pixel_format_from_string()

vil_pixel_format vil_pixel_format_from_string ( const char *  s)

Convert a string into a pixel format.

This uses the same encoding as operator<<.

Definition at line 282 of file vil_pixel_format.cxx.

◆ vil_pixel_format_num_components()

unsigned vil_pixel_format_num_components ( enum vil_pixel_format  f)

Return the number of components in pixel format f.

Definition at line 209 of file vil_pixel_format.cxx.

◆ vil_pixel_format_sizeof_components()

unsigned vil_pixel_format_sizeof_components ( enum vil_pixel_format  f)

Return the number of bytes used by each component of pixel format f.

Definition at line 202 of file vil_pixel_format.cxx.