Panda3D
|
00001 // Filename: imageInfo.h 00002 // Created by: drose (13Mar03) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef IMAGEINFO_H 00016 #define IMAGEINFO_H 00017 00018 #include "pandatoolbase.h" 00019 00020 #include "programBase.h" 00021 00022 //////////////////////////////////////////////////////////////////// 00023 // Class : ImageInfo 00024 // Description : This program reads the headers of a series of one or 00025 // more images and reports their sizes to standard 00026 // output. 00027 //////////////////////////////////////////////////////////////////// 00028 class ImageInfo : public ProgramBase { 00029 public: 00030 ImageInfo(); 00031 00032 void run(); 00033 00034 protected: 00035 virtual bool handle_args(Args &args); 00036 00037 private: 00038 bool is_power_2(int value) const; 00039 00040 Args _filenames; 00041 bool _report_power_2; 00042 }; 00043 00044 #endif 00045