Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
3.8 KiB

  1. /* stbi-1.29 - public domain JPEG/PNG reader - http://nothings.org/stb_image.c
  2. when you control the images you're loading
  3. no warranty implied; use at your own risk
  4. QUICK NOTES:
  5. Primarily of interest to game developers and other people who can
  6. avoid problematic images and only need the trivial interface
  7. JPEG baseline (no JPEG progressive)
  8. PNG 8-bit only
  9. TGA (not sure what subset, if a subset)
  10. BMP non-1bpp, non-RLE
  11. PSD (composited view only, no extra channels)
  12. GIF (*comp always reports as 4-channel)
  13. HDR (radiance rgbE format)
  14. PIC (Softimage PIC)
  15. - decoded from memory or through stdio FILE (define STBI_NO_STDIO to remove code)
  16. - supports installable dequantizing-IDCT, YCbCr-to-RGB conversion (define STBI_SIMD)
  17. Latest revisions:
  18. 1.29 (2010-08-16) various warning fixes from Aurelien Pocheville
  19. 1.28 (2010-08-01) fix bug in GIF palette transparency (SpartanJ)
  20. 1.27 (2010-08-01) cast-to-uint8 to fix warnings (Laurent Gomila)
  21. allow trailing 0s at end of image data (Laurent Gomila)
  22. 1.26 (2010-07-24) fix bug in file buffering for PNG reported by SpartanJ
  23. 1.25 (2010-07-17) refix trans_data warning (Won Chun)
  24. 1.24 (2010-07-12) perf improvements reading from files
  25. minor perf improvements for jpeg
  26. deprecated type-specific functions in hope of feedback
  27. attempt to fix trans_data warning (Won Chun)
  28. 1.23 fixed bug in iPhone support
  29. 1.22 (2010-07-10) removed image *writing* support to stb_image_write.h
  30. stbi_info support from Jetro Lauha
  31. GIF support from Jean-Marc Lienher
  32. iPhone PNG-extensions from James Brown
  33. warning-fixes from Nicolas Schulz and Janez Zemva
  34. 1.21 fix use of 'uint8' in header (reported by jon blow)
  35. 1.20 added support for Softimage PIC, by Tom Seddon
  36. See end of file for full revision history.
  37. TODO:
  38. stbi_info support for BMP,PSD,HDR,PIC
  39. rewrite stbi_info and load_file variations to share file handling code
  40. (current system allows individual functions to be called directly,
  41. since each does all the work, but I doubt anyone uses this in practice)
  42. ============================ Contributors =========================
  43. Image formats Optimizations & bugfixes
  44. Sean Barrett (jpeg, png, bmp) Fabian "ryg" Giesen
  45. Nicolas Schulz (hdr, psd)
  46. Jonathan Dummer (tga) Bug fixes & warning fixes
  47. Jean-Marc Lienher (gif) Marc LeBlanc
  48. Tom Seddon (pic) Christpher Lloyd
  49. Thatcher Ulrich (psd) Dave Moore
  50. Won Chun
  51. the Horde3D community
  52. Extensions, features Janez Zemva
  53. Jetro Lauha (stbi_info) Jonathan Blow
  54. James "moose2000" Brown (iPhone PNG) Laurent Gomila
  55. Aruelien Pocheville
  56. If your name should be here but isn't, let Sean know.
  57. */
  58. #ifndef STBI_INCLUDE_STB_IMAGE_H
  59. #define STBI_INCLUDE_STB_IMAGE_H
  60. // To get a header file for this, either cut and paste the header,
  61. // or create stb_image.h, #define STBI_HEADER_FILE_ONLY, and
  62. // then include stb_image.c from it.
  63. #define STBI_HEADER_FILE_ONLY
  64. #include "stb_image.c"