claw::graphic::jpeg::reader::RGB_to_pixel32 Class Reference

List of all members.


Detailed Description

Functor converting a RGB pixel to a ARGB pixel.

Definition at line 124 of file jpeg.hpp.


Public Member Functions

pixel32 operator() (const JSAMPLE *pixel) const
 Convert a RGB pixel to a ARGB pixel.

Member Function Documentation

claw::graphic::pixel32 claw::graphic::jpeg::reader::RGB_to_pixel32::operator() ( const JSAMPLE *  pixel  )  const

Convert a RGB pixel to a ARGB pixel.

Definition at line 180 of file jpeg_reader.cpp.

References claw::graphic::pixel32::alpha, claw::graphic::pixel32::blue, claw::graphic::pixel32::components, claw::graphic::pixel32::green, and claw::graphic::pixel32::red.

00181 {
00182   pixel32 result;
00183 
00184   result.components.alpha = 255;
00185   result.components.red = pixel[0];
00186   result.components.green = pixel[1];
00187   result.components.blue = pixel[2];
00188 
00189   return result;
00190 } // jpeg::reader::RGB_to_pixel32::operator()()


The documentation for this class was generated from the following files:

Generated on Thu Jun 26 09:35:06 2008 for CLAW Library (a C++ Library Absolutely Wonderful) by  doxygen 1.5.6