Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

RgbDirect.h

Go to the documentation of this file.
00001 #ifndef Impala_Core_Array_Trait_RgbDirect_h
00002 #define Impala_Core_Array_Trait_RgbDirect_h
00003 
00004 #include "Core/Array/Element/E1ToVec3Int32.h"
00005 
00006 namespace Impala
00007 {
00008 namespace Core
00009 {
00010 namespace Array
00011 {
00012 namespace Trait
00013 {
00014 
00015 
00016 template<class ValT>
00017 class RgbDirectNC
00018 {
00019 public:
00021     RgbDirectNC()
00022     {
00023     }
00024 
00026     void
00027     DoIt(const ValT& pixV, UInt8* rgbPtr)
00028     {
00029         Element::Vec3Int32 v = Element::E1ToVec3Int32(pixV);
00030         *rgbPtr++ = v.X();
00031         *rgbPtr++ = v.Y();
00032         *rgbPtr++ = v.Z();
00033     }
00034 
00035 };
00036 
00037 } // namespace Trait
00038 } // namespace Array
00039 } // namespace Core
00040 } // namespace Impala
00041 
00042 #endif

Generated on Fri Mar 19 09:30:59 2010 for ImpalaSrc by  doxygen 1.5.1