00001 //*************************************************************************************** 00002 // 00003 // File supervisor: Crosswalk team 00004 // 00005 // Copyright 2008 Autodesk, Inc. All rights reserved. 00006 // Use of this software is subject to the terms of the Autodesk license agreement 00007 // provided at the time of installation or download, or which otherwise accompanies 00008 // this software in either electronic or hard copy form. 00009 // 00010 //*************************************************************************************** 00011 00012 //*************************************************************************************** 00013 // Defines 00014 //*************************************************************************************** 00015 #ifndef __CSIILJPGFileDriver_H__ 00016 #define __CSIILJPGFileDriver_H__ 00017 00018 //*************************************************************************************** 00019 // Includes 00020 //*************************************************************************************** 00021 #include <SIBCPixMap.h> 00022 00023 00024 //*************************************************************************************** 00025 // Typedefs 00026 //*************************************************************************************** 00027 00029 class XSIEXPORT CSIILJPGFileDriver : public CSIBCPixMapDriver 00030 { 00031 public: 00035 CSIILJPGFileDriver(); 00036 00039 virtual ~CSIILJPGFileDriver(); 00040 00047 virtual SI_Bool Supported( CSIBCString &in_Filename ); 00048 00057 virtual SI_Error Load( CSIBCString &in_filename, CSIBCPixMap &in_PixMap ); 00058 00062 static CSIILJPGFileDriver *Driver(); 00063 private: 00064 00065 SI_Error ReadPixels(_SI_FILE *filePtr, CSIBCPixMap &); 00066 00067 // shielding from any lib dependencies 00068 void *jpgInfo; 00069 }; 00070 00071 00072 00073 00074 #endif // CSIILJPGFileDriver