imageInfo.h 799 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /**
  2. * PANDA 3D SOFTWARE
  3. * Copyright (c) Carnegie Mellon University. All rights reserved.
  4. *
  5. * All use of this software is subject to the terms of the revised BSD
  6. * license. You should have received a copy of this license along
  7. * with this source code in a file named "LICENSE."
  8. *
  9. * @file imageInfo.h
  10. * @author drose
  11. * @date 2003-03-13
  12. */
  13. #ifndef IMAGEINFO_H
  14. #define IMAGEINFO_H
  15. #include "pandatoolbase.h"
  16. #include "programBase.h"
  17. /**
  18. * This program reads the headers of a series of one or more images and
  19. * reports their sizes to standard output.
  20. */
  21. class ImageInfo : public ProgramBase {
  22. public:
  23. ImageInfo();
  24. void run();
  25. protected:
  26. virtual bool handle_args(Args &args);
  27. private:
  28. bool is_power_2(int value) const;
  29. Args _filenames;
  30. bool _report_power_2;
  31. };
  32. #endif