00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * 00008 * Mark Alexander 00009 * Side Effects 00010 * 477 Richmond Street West 00011 * Toronto, Ontario 00012 * Canada M5V 3E7 00013 * 416-504-9876 00014 * 00015 * NAME: PXL_Convert.h 00016 * 00017 * COMMENTS: 00018 * Conversion routines for converting a pixel to other pixel types. 00019 */ 00020 00021 #ifndef PXL_CONVERT_H 00022 #define PXL_CONVERT_H 00023 00024 #include "PXL_API.h" 00025 #include "PXL_Pixel.h" 00026 00027 template<class ToType, int fast1, class FromType, int fast2> 00028 class PXL_Convert 00029 { 00030 public: 00031 // conversion function from any type to any type. 00032 inline static void convert( PXL_Pixel<ToType, fast1> &, 00033 const PXL_Pixel<FromType,fast2> &); 00034 }; 00035 00036 #include "PXL_ConvertImpl.h" 00037 00038 #endif
1.5.9