il_hdr.h
Upload User: wmy0603
Upload Date: 2022-05-02
Package Size: 1808k
Code Size: 1k
Development Platform:

Visual C++

  1. //-----------------------------------------------------------------------------
  2. //
  3. // ImageLib Sources
  4. // Copyright (C) 2000-2004 by Denton Woods (this file by thakis)
  5. // Last modified: 06/09/2004
  6. //
  7. // Filename: src-IL/include/il_hdr.h
  8. //
  9. // Description: Reads a RADIANCE High Dynamic Range Image
  10. //
  11. //-----------------------------------------------------------------------------
  12. #ifndef HDR_H
  13. #define HDR_H
  14. #include "il_internal.h"
  15. #ifdef _WIN32
  16. #pragma pack(push, gif_struct, 1)
  17. #endif
  18. typedef struct HDRHEADER
  19. {
  20. char Signature[10]; //must be "#?RADIANCE"
  21. ILuint Width, Height;
  22. } IL_PACKSTRUCT HDRHEADER;
  23. #ifdef _WIN32
  24. #pragma pack(pop, gif_struct)
  25. #endif
  26. // Internal functions
  27. ILboolean ilIsValidF_HDR(ILHANDLE file);
  28. ILboolean iIsValidHdr();
  29. ILboolean iCheckHdr(HDRHEADER *Header);
  30. ILboolean ilLoadF_HDR(ILHANDLE file);
  31. ILboolean iLoadHdrInternal();
  32. ILboolean iSaveHdrInternal();
  33. void ReadScanline(ILubyte *scanline, ILuint w);
  34. #endif//HDR_H