Source code of Windows XP (NT5)
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.

31 lines
1.3 KiB

  1. /****************************************************************************
  2. *
  3. * dibmap.h
  4. *
  5. * Microsoft Video for Windows Sample Capture Class
  6. *
  7. * Copyright (c) 1992-1994 Microsoft Corporation. All Rights Reserved.
  8. *
  9. * You have a royalty-free right to use, modify, reproduce and
  10. * distribute the Sample Files (and/or any modified version) in
  11. * any way you find useful, provided that you agree that
  12. * Microsoft has no warranty obligations or liability for any
  13. * Sample Application Files which are modified.
  14. *
  15. ***************************************************************************/
  16. #ifndef _LPHISTOGRAM_DEFINED
  17. #define _LPHISTOGRAM_DEFINED
  18. typedef DWORD HUGE * LPHISTOGRAM;
  19. #endif
  20. #define RGB16(r,g,b) (\
  21. (((WORD)(r) >> 3) << 10) | \
  22. (((WORD)(g) >> 3) << 5) | \
  23. (((WORD)(b) >> 3) << 0) )
  24. LPHISTOGRAM InitHistogram(LPHISTOGRAM lpHistogram);
  25. void FreeHistogram(LPHISTOGRAM lpHistogram);
  26. HPALETTE HistogramPalette(LPHISTOGRAM lpHistogram, LPBYTE lp16to8, int nColors);
  27. BOOL DibHistogram(LPBITMAPINFOHEADER lpbi, LPBYTE lpBits, int x, int y, int dx, int dy, LPHISTOGRAM lpHistogram);
  28. HANDLE DibReduce(LPBITMAPINFOHEADER lpbi, LPBYTE lpBits, HPALETTE hpal, LPBYTE lp16to8);