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.

28 lines
1.2 KiB

  1. /****************************************************************************
  2. *
  3. * dibmap.h
  4. *
  5. * Microsoft Video for Windows Sample Capture Class
  6. *
  7. * Copyright (c) 1992, 1993 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. typedef DWORD huge * LPHISTOGRAM;
  17. #define RGB16(r,g,b) (\
  18. (((WORD)(r) >> 3) << 10) | \
  19. (((WORD)(g) >> 3) << 5) | \
  20. (((WORD)(b) >> 3) << 0) )
  21. LPHISTOGRAM InitHistogram(LPHISTOGRAM lpHistogram);
  22. void FreeHistogram(LPHISTOGRAM lpHistogram);
  23. HPALETTE HistogramPalette(LPHISTOGRAM lpHistogram, LPBYTE lp16to8, int nColors);
  24. BOOL DibHistogram(LPBITMAPINFOHEADER lpbi, LPBYTE lpBits, int x, int y, int dx, int dy, LPHISTOGRAM lpHistogram);
  25. HANDLE DibReduce(LPBITMAPINFOHEADER lpbi, LPBYTE lpBits, HPALETTE hpal, LPBYTE lp16to8);