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.

42 lines
1.7 KiB

  1. /****************************************************************************
  2. *
  3. * cappal.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. // Structure used when capturing a palette
  17. typedef struct tagCAPPAL {
  18. WORD wNumFrames;
  19. WORD wNumColors;
  20. LPBYTE lpBits;
  21. LPBYTE lp16to8;
  22. VIDEOHDR vHdr;
  23. BITMAPINFOHEADER bi16;
  24. LPHISTOGRAM lpHistogram;
  25. LPBITMAPINFO lpbiSave;
  26. } CAPPAL, FAR * LPCAPPAL;
  27. BOOL PalInit (LPCAPSTREAM lpcs);
  28. void PalFini (LPCAPSTREAM lpcs);
  29. void PalDeleteCurrentPalette (LPCAPSTREAM lpcs);
  30. BOOL PalGetPaletteFromDriver (LPCAPSTREAM lpcs);
  31. DWORD PalSendPaletteToDriver (LPCAPSTREAM lpcs, HPALETTE hpal, LPBYTE lpXlateTable);
  32. HPALETTE CopyPalette (HPALETTE hpal);
  33. DWORD CapturePaletteInit (LPCAPSTREAM lpcs, LPCAPPAL lpcp);
  34. DWORD CapturePaletteFini (LPCAPSTREAM lpcs, LPCAPPAL lpcp);
  35. DWORD CapturePaletteFrames (LPCAPSTREAM lpcs, LPCAPPAL lpCapPal, int nCount);
  36. BOOL CapturePaletteAuto (LPCAPSTREAM lpcs, int nCount, int nColors);
  37. BOOL CapturePaletteManual (LPCAPSTREAM lpcs, BOOL fGrab, int nColors);
  38. void CapturePaletteDialog (LPCAPSTREAM lpcs);
  39. LONG FAR PASCAL EXPORT cappalDlgProc(HWND hwnd, unsigned msg, UINT wParam, LONG lParam);