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.

45 lines
1.6 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 CC_MAX_HW_DECODE_LINES
  12. ///////////////////////////////////////////////////////////////////
  13. // Hardware decoded CC stream format
  14. ///////////////////////////////////////////////////////////////////
  15. #define CC_MAX_HW_DECODE_LINES 12
  16. typedef struct _CC_BYTE_PAIR {
  17. BYTE Decoded[2];
  18. USHORT Reserved;
  19. } CC_BYTE_PAIR, *PCC_BYTE_PAIR;
  20. typedef struct _CC_HW_FIELD {
  21. VBICODECFILTERING_SCANLINES ScanlinesRequested;
  22. ULONG fieldFlags; // KS_VBI_FLAG_FIELD1,2
  23. LONGLONG PictureNumber;
  24. CC_BYTE_PAIR Lines[CC_MAX_HW_DECODE_LINES];
  25. } CC_HW_FIELD, *PCC_HW_FIELD;
  26. #endif //!defined(CC_MAX_HW_DECODE_LINES)
  27. #ifndef KS_VBIDATARATE_NABTS
  28. // VBI Sampling Rates
  29. #define KS_VBIDATARATE_NABTS (5727272)
  30. #define KS_VBIDATARATE_CC ( 503493) // ~= 1/1.986125e-6
  31. #define KS_VBISAMPLINGRATE_4X_NABTS ((int)(4*KS_VBIDATARATE_NABTS))
  32. #define KS_VBISAMPLINGRATE_47X_NABTS ((int)(27000000))
  33. #define KS_VBISAMPLINGRATE_5X_NABTS ((int)(5*KS_VBIDATARATE_NABTS))
  34. #define KS_47NABTS_SCALER (KS_VBISAMPLINGRATE_47X_NABTS/KS_VBIDATARATE_NABTS)
  35. #endif //!defined(KS_VBIDATARATE_NABTS)