Leaked source code of windows server 2003
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.

38 lines
1.3 KiB

  1. //==========================================================================;
  2. //
  3. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. // PURPOSE.
  7. //
  8. // Copyright (c) 1992 - 1999 Microsoft Corporation. All Rights Reserved.
  9. //
  10. //==========================================================================;
  11. #ifndef __VBIXFER_H__
  12. #define __VBIXFER_H__
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif // __cplusplus
  16. // Bit-array manipulation
  17. #define BIT(n) (((unsigned long)1)<<(n))
  18. #define BITSIZE(v) (sizeof(v)*8)
  19. #define SETBIT(array,n) (array[(n)/BITSIZE(*array)] |= BIT((n)%BITSIZE(*array)))
  20. #define CLEARBIT(array,n) (array[(n)/BITSIZE(*array)] &= ~BIT((n)%BITSIZE(*array)))
  21. #define TESTBIT(array,n) (BIT((n)%BITSIZE(*array)) == (array[(n)/BITSIZE(*array)] & BIT((n)%BITSIZE(*array))))
  22. void CC_ImageSynth(IN OUT PHW_STREAM_REQUEST_BLOCK pSrb);
  23. void CC_EncodeWaveform(
  24. unsigned char *waveform, unsigned char cc1, unsigned char cc2);
  25. void NABTS_ImageSynth(IN OUT PHW_STREAM_REQUEST_BLOCK pSrb);
  26. void VBI_ImageSynth(IN OUT PHW_STREAM_REQUEST_BLOCK pSrb);
  27. #ifdef __cplusplus
  28. }
  29. #endif // __cplusplus
  30. #endif //__VBIXFER_H__