lab_gamut.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*************************************************************************
  2. * Copyright (c) 2014 AT&T Intellectual Property
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v1.0
  5. * which accompanies this distribution, and is available at
  6. * https://www.eclipse.org/legal/epl-v10.html
  7. *
  8. * Contributors: Details at https://graphviz.org
  9. *************************************************************************/
  10. #pragma once
  11. #include <stddef.h>
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #ifdef GVDLL
  16. #ifdef LAB_GAMUT_EXPORTS
  17. #define LAB_GAMUT_API __declspec(dllexport)
  18. #else
  19. #define LAB_GAMUT_API __declspec(dllimport)
  20. #endif
  21. #endif
  22. #ifndef LAB_GAMUT_API
  23. #define LAB_GAMUT_API /* nothing */
  24. #endif
  25. /** lookup table for the visible spectrum of the CIELAB color space
  26. *
  27. * This table is entries of 4-tuples of the form (L*, a*, b* lower bound,
  28. * b* upper bound). A plain lookup table and/or the use of structs is avoided to
  29. * save memory during compilation. Without this, MSVC ~2019 exhausts memory in
  30. * CI.
  31. *
  32. * More information about CIELAB:
  33. * https://en.wikipedia.org/wiki/CIELAB_color_space
  34. */
  35. LAB_GAMUT_API extern const signed char lab_gamut_data[];
  36. LAB_GAMUT_API extern const size_t lab_gamut_data_size;
  37. #undef LAB_GAMUT_API
  38. #ifdef __cplusplus
  39. }
  40. #endif