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.

75 lines
2.3 KiB

  1. /******************************************************************************
  2. *
  3. * $RCSfile: MVStub.h $
  4. * $Source: u:/si/VXP/Wdm/Encore/MVision/MVStub.h $
  5. * $Author: Max $
  6. * $Date: 1998/11/05 23:15:44 $
  7. * $Revision: 1.2 $
  8. *
  9. * Written by: Max Paklin
  10. * Purpose: Declaration of MacroVision SET procedure
  11. *
  12. *******************************************************************************
  13. *
  14. * Copyright 1996-97, AuraVision Corporation. All rights reserved.
  15. *
  16. * AuraVision Corporation makes no warranty of any kind, express or implied,
  17. * with regard to this software. In no event shall AuraVision Corporation
  18. * be liable for incidental or consequential damages in connection with or
  19. * arising from the furnishing, performance, or use of this software.
  20. *
  21. *******************************************************************************/
  22. #ifndef __MVSTUB_H__
  23. #define __MVSTUB_H__
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. #ifndef TRUE
  28. #define FALSE 0
  29. #define TRUE (!FALSE)
  30. #endif
  31. // Exported function that takes care of setting MacroVision level
  32. // Prototype:
  33. // int __stdcall SetMacroVisionLevel( int nFormat, unsigned long ulLevel );
  34. // Parameters:
  35. // nFormat - TRUE (=1) stands for NTSC, FALSE (=0) - for PAL
  36. // ulLevel - MacroVision level to set
  37. // Return vale:
  38. // TRUE (=1) - success
  39. // FALSE (=0) - hardware failure
  40. int __stdcall SetMacroVisionLevel( int nFormat, unsigned long ulLevel );
  41. // Functions are exported by WDM for using by stub. Provide service for
  42. // programming video decoder using I2C protocol (set/get register)
  43. // Prototype:
  44. // int __stdcall SetI2CRegister( unsigned int uID, unsigned int uIndex, unsigned int uData );
  45. // Parameters:
  46. // uID - external chip ID
  47. // uIndex - external chip register index
  48. // uData - data to be programmed
  49. // Return value:
  50. // TRUE (=1) - success
  51. // FALSE (=0) - hardware failure
  52. int __stdcall SetI2CRegister( unsigned int uID, unsigned int uIndex, unsigned int uData );
  53. // Prototype:
  54. // unsigned int __stdcall GetI2CRegister( unsigned int uID, unsigned int uIndex );
  55. // Parameters:
  56. // uID - external chip ID
  57. // uIndex - external chip register index
  58. // Return value:
  59. // [value] - value that currently stored in specified encoder register
  60. unsigned int __stdcall GetI2CRegister( unsigned int uID, unsigned int uIndex );
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64. #endif // #ifndef __MVSTUB_H__