gxlum.h 1.0 KB

1234567891011121314151617181920212223242526272829
  1. /* Copyright (C) 1992 Aladdin Enterprises. All rights reserved.
  2. This software is provided AS-IS with no warranty, either express or
  3. implied.
  4. This software is distributed under license and may not be copied,
  5. modified or distributed except as expressly authorized under the terms
  6. of the license contained in the file LICENSE in this distribution.
  7. For more information about licensing, please refer to
  8. http://www.ghostscript.com/licensing/. For information on
  9. commercial licensing, go to http://www.artifex.com/licensing/ or
  10. contact Artifex Software, Inc., 101 Lucas Valley Road #110,
  11. San Rafael, CA 94903, U.S.A., +1(415)492-9861.
  12. */
  13. /* $Id: gxlum.h,v 1.4 2002/02/21 22:24:53 giles Exp $ */
  14. /* Luminance computation parameters for Ghostscript */
  15. #ifndef gxlum_INCLUDED
  16. # define gxlum_INCLUDED
  17. /* Color weights used for computing luminance. */
  18. #define lum_red_weight 30
  19. #define lum_green_weight 59
  20. #define lum_blue_weight 11
  21. #define lum_all_weights (lum_red_weight + lum_green_weight + lum_blue_weight)
  22. #endif /* gxlum_INCLUDED */