ImfTestFile.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. //
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. // Copyright (c) Contributors to the OpenEXR Project.
  4. //
  5. #ifndef INCLUDED_IMF_TEST_FILE_H
  6. #define INCLUDED_IMF_TEST_FILE_H
  7. //-----------------------------------------------------------------------------
  8. //
  9. // Utility routines to test quickly if a given
  10. // file is an OpenEXR file, and whether the
  11. // file is scanline-based or tiled.
  12. //
  13. //-----------------------------------------------------------------------------
  14. #include "ImfForward.h"
  15. OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
  16. IMF_EXPORT bool isOpenExrFile (const char fileName[]);
  17. IMF_EXPORT bool isOpenExrFile (const char fileName[],
  18. bool &isTiled);
  19. IMF_EXPORT bool isOpenExrFile (const char fileName[],
  20. bool &isTiled,
  21. bool &isDeep);
  22. IMF_EXPORT bool isOpenExrFile (const char fileName[],
  23. bool &isTiled,
  24. bool &isDeep,
  25. bool &isMultiPart);
  26. IMF_EXPORT bool isTiledOpenExrFile (const char fileName[]);
  27. IMF_EXPORT bool isDeepOpenExrFile (const char fileName[]);
  28. IMF_EXPORT bool isMultiPartOpenExrFile (const char fileName[]);
  29. IMF_EXPORT bool isOpenExrFile (IStream &is);
  30. IMF_EXPORT bool isOpenExrFile (IStream &is,
  31. bool &isTiled);
  32. IMF_EXPORT bool isOpenExrFile (IStream &is,
  33. bool &isTiled,
  34. bool &isDeep);
  35. IMF_EXPORT bool isOpenExrFile (IStream &is,
  36. bool &isTiled,
  37. bool &isDeep,
  38. bool &isMultiPart);
  39. IMF_EXPORT bool isTiledOpenExrFile (IStream &is);
  40. IMF_EXPORT bool isDeepOpenExrFile (IStream &is);
  41. IMF_EXPORT bool isMultiPartOpenExrFile (IStream &is);
  42. OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
  43. #endif