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.

63 lines
1.7 KiB

  1. /*
  2. * @DEC_COPYRIGHT@
  3. */
  4. /*
  5. * HISTORY
  6. * $Log: h26x.h,v $
  7. * $EndLog$
  8. */
  9. /*
  10. **++
  11. ** FACILITY: Workstation Multimedia (WMM) v1.0
  12. **
  13. ** FILE NAME: h26x.h
  14. ** MODULE NAME: h26x.h
  15. **
  16. ** MODULE DESCRIPTION: h261/h263 include file.
  17. **
  18. ** DESIGN OVERVIEW:
  19. **
  20. **--
  21. */
  22. #ifndef _H26X_H_
  23. #define _H26X_H_
  24. #define VIDEO_FORMAT_DIGITAL_H261 mmioFOURCC('D', '2', '6', '1')
  25. #define VIDEO_FORMAT_DIGITAL_H263 mmioFOURCC('D', '2', '6', '3')
  26. /* H.263 encoder controls */
  27. #define DECH26X_CUSTOM_ENCODER_CONTROL 0x6009
  28. #define EC_RTP_HEADER 0
  29. #define EC_RESILIENCY 1
  30. #define EC_PACKET_SIZE 2
  31. #define EC_PACKET_LOSS 3
  32. #define EC_BITRATE_CONTROL 4
  33. #define EC_BITRATE 5
  34. #define EC_SET_CURRENT 0
  35. #define EC_GET_FACTORY_DEFAULT 1
  36. #define EC_GET_FACTORY_LIMITS 2
  37. #define EC_GET_CURRENT 3
  38. #define EC_RESET_TO_FACTORY_DEFAULTS 4
  39. /***** Settings for EC_RTP_HEADER ******/
  40. #define EC_RTP_MODE_OFF 0
  41. #define EC_RTP_MODE_A 1
  42. #define EC_RTP_MODE_B 2
  43. #define EC_RTP_MODE_C 4
  44. /***** example Custom Encoder call ******
  45. lRet = ICSendMessage(hIC,
  46. DECH26X_CUSTOM_ENCODER_CONTROL,
  47. MAKELPARAM(EC_RTP_HEADER, EC_SET_CURRENT),
  48. (LPARAM)EC_RTP_MODE_A
  49. );
  50. DWORD retval;
  51. lRet = ICSendMessage(hIC,
  52. DECH26X_CUSTOM_ENCODER_CONTROL,
  53. MAKELPARAM(EC_PACKET_SIZE, EC_GET_CURRENT),
  54. (LPARAM)&retval
  55. );
  56. *****************************************/
  57. #endif /* _H26X_H_ */