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.

51 lines
2.6 KiB

  1. /* Copyright (c) 2000-2001 Microsoft Corporation. All Rights Reserved. */
  2. #ifndef __CCFORMATCODES_H
  3. #define __CCFORMATCODES_H
  4. // No-op / NULL
  5. #define CC_NOP 0x80 // 0x00 with odd parity
  6. // Extended Data Packet Control Codes, First Byte
  7. #define CC_XDS_START_CURRENT 0x01
  8. #define CC_XDS_CONTINUE_CURRENT 0x02
  9. #define CC_XDS_START_FUTURE 0x03
  10. #define CC_XDS_CONTINUE_FUTURE 0x04
  11. #define CC_XDS_START_CHANNEL 0x05
  12. #define CC_XDS_CONTINUE_CHANNEL 0x06
  13. #define CC_XDS_START_MISC 0x07
  14. #define CC_XDS_CONTINUE_MISC 0x08
  15. #define CC_XDS_START_PUBLIC_SERVICE 0x09
  16. #define CC_XDS_CONTINUE_PUBLIC_SERVICE 0x0A
  17. #define CC_XDS_START_RESERVED 0x0B
  18. #define CC_XDS_CONTINUE_RESERVED 0x0C
  19. #define CC_XDS_START_UNDEFINED 0x0D
  20. #define CC_XDS_CONTINUE_UNDEFINED 0x0E
  21. #define CC_XDS_END 0x0F
  22. // Miscellaneous Control Codes, First Byte
  23. #define CC_MCC_FIELD1_DC1 0x14 // Field 1, Data Channel 1
  24. #define CC_MCC_FIELD1_DC2 0x1C // Field 1, Data Channel 2
  25. #define CC_MCC_FIELD2_DC1 0x15 // Field 2, Data Channel 1
  26. #define CC_MCC_FIELD2_DC2 0x1D // Field 2, Data Channel 2
  27. // Miscellaneous Control Codes, Second Byte
  28. #define CC_MCC_RCL 0x20 // Resume Caption Loading
  29. #define CC_MCC_BS 0x21 // BackSpace
  30. #define CC_MCC_AOF 0x22 // reserved (was: Alarm OFf)
  31. #define CC_MCC_AON 0x23 // reserved (was: Alarm ON)
  32. #define CC_MCC_DER 0x24 // Delete to End of Row
  33. #define CC_MCC_RU2 0x25 // Roll-Up captions - 2 rows
  34. #define CC_MCC_RU3 0x26 // Roll-Up captions - 3 rows
  35. #define CC_MCC_RU4 0x27 // Roll-Up captions - 4 rows
  36. #define CC_MCC_FON 0x28 // Flash ON
  37. #define CC_MCC_RDC 0x29 // Resume Direct Captioning
  38. #define CC_MCC_TR 0x2A // Text Restart
  39. #define CC_MCC_RTD 0x2B // Resume Text Display
  40. #define CC_MCC_EDM 0x2C // Erase Displayed Memory
  41. #define CC_MCC_CR 0x2D // Carriage Return
  42. #define CC_MCC_ENM 0x2E // Erase Non-displayed Memory
  43. #define CC_MCC_EOC 0x2F // End Of Caption (flip memories)
  44. #endif /*__CCFORMATCODES_H*/