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.

52 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1995-1996 Microsoft Corporation
  3. Module Name:
  4. vidpackt.h
  5. Abstract:
  6. Contains prototypes for the VideoPacket class, which encapsulates a video buffer in
  7. its various states: recorded/encoded/network/decoded/playing etc.
  8. --*/
  9. #ifndef _VIDPACKT_H_
  10. #define _VIDPACKT_H_
  11. #include <pshpack8.h> /* Assume 8 byte packing throughout */
  12. #define VP_NUM_PREAMBLE_PACKETS 6
  13. #define MAX_CIF_VIDEO_FRAGMENTS 40
  14. #define MAX_QCIF_VIDEO_FRAGMENTS 20
  15. #define MAX_VIDEO_FRAGMENTS MAX_CIF_VIDEO_FRAGMENTS
  16. class VideoPacket : public MediaPacket
  17. {
  18. private:
  19. IBitmapSurface *m_pBS;
  20. public:
  21. virtual HRESULT Initialize ( MEDIAPACKETINIT * p );
  22. virtual HRESULT Play ( MMIODEST *pmmioDest, UINT uDataType );
  23. virtual HRESULT Record ( void );
  24. virtual HRESULT Interpolate ( MediaPacket * pPrev, MediaPacket * pNext);
  25. virtual HRESULT GetSignalStrength ( PDWORD pdwMaxStrength );
  26. virtual HRESULT MakeSilence ( void );
  27. virtual HRESULT Recycle ( void );
  28. virtual HRESULT Open ( UINT uType, DPHANDLE hdl ); // called by RxStream or TxStream
  29. virtual HRESULT Close ( UINT uType ); // called by RxStream or TxStream
  30. virtual BOOL IsBufferDone ( void );
  31. virtual BOOL IsSameMediaFormat(PVOID fmt1,PVOID fmt2);
  32. virtual DWORD GetDevDataSamples();
  33. void WriteToFile (MMIODEST *pmmioDest);
  34. void ReadFromFile (MMIOSRC *pmmioSrc );
  35. HRESULT SetSurface (IBitmapSurface *pBS);
  36. };
  37. #include <poppack.h> /* End byte packing */
  38. #endif