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.

85 lines
2.2 KiB

  1. /*++
  2. Copyright (c) 1996, 1997, 1998 Philips CE-I&C
  3. Module Name:
  4. mcodec.h
  5. Abstract:
  6. This module converts the raw USB data to standard video data.
  7. Original Author:
  8. Ronald v.d.Meer
  9. Environment:
  10. Kernel mode only
  11. Revision History:
  12. Date Change
  13. 14-04-1998 Initial version
  14. --*/
  15. #ifndef __MCODEC_H__
  16. #define __MCODEC_H__
  17. #include <stdio.h>
  18. #include "mcamdrv.h"
  19. #include "resource.h"
  20. /*******************************************************************************
  21. *
  22. * START DEFINES
  23. *
  24. ******************************************************************************/
  25. /* defines for I420 space */
  26. #define I420_NO_Y(w, h) ((w) * (h))
  27. #define I420_NO_Y_CIF (CIF_X * CIF_Y)
  28. #define I420_NO_U_CIF ((CIF_X * CIF_Y) / 4)
  29. #define I420_NO_V_CIF ((CIF_X * CIF_Y) / 4)
  30. #define I420_NO_Y_SIF (SIF_X * SIF_Y)
  31. #define I420_NO_U_SIF ((SIF_X * SIF_Y) / 4)
  32. #define I420_NO_V_SIF ((SIF_X * SIF_Y) / 4)
  33. #define I420_NO_Y_SSIF (SSIF_X * SSIF_Y)
  34. #define I420_NO_U_SSIF ((SSIF_X * SSIF_Y) / 4)
  35. #define I420_NO_V_SSIF ((SSIF_X * SSIF_Y) / 4)
  36. #define I420_NO_Y_SCIF (SCIF_X * SCIF_Y)
  37. #define I420_NO_U_SCIF ((SCIF_X * SCIF_Y) / 4)
  38. #define I420_NO_V_SCIF ((SCIF_X * SCIF_Y) / 4)
  39. /*******************************************************************************
  40. *
  41. * START FUNCTION DECLARATIONS
  42. *
  43. ******************************************************************************/
  44. extern NTSTATUS
  45. PHILIPSCAM_DecodeUsbData(PPHILIPSCAM_DEVICE_CONTEXT DeviceContext,
  46. PUCHAR frameBuffer,
  47. ULONG frameLength,
  48. PUCHAR rawFrameBuffer,
  49. ULONG rawFrameLength);
  50. extern NTSTATUS
  51. PHILIPSCAM_StartCodec(PPHILIPSCAM_DEVICE_CONTEXT DeviceContext);
  52. extern NTSTATUS
  53. PHILIPSCAM_StopCodec(PPHILIPSCAM_DEVICE_CONTEXT DeviceContext);
  54. extern NTSTATUS
  55. PHILIPSCAM_FrameRateChanged(PPHILIPSCAM_DEVICE_CONTEXT DeviceContext);
  56. #endif // __MCODEC_H__