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.

45 lines
1.4 KiB

  1. #pragma once
  2. //==========================================================================;
  3. //
  4. // CWDMVideoCaptureStream - Video Capture Stream class declarations
  5. //
  6. // $Date: 05 Aug 1998 11:22:44 $
  7. // $Revision: 1.0 $
  8. // $Author: Tashjian $
  9. //
  10. // $Copyright: (c) 1997 - 1998 ATI Technologies Inc. All Rights Reserved. $
  11. //
  12. //==========================================================================;
  13. #include "i2script.h"
  14. #include "aticonfg.h"
  15. #include "CapStrm.h"
  16. class CWDMVideoCaptureStream : public CWDMCaptureStream
  17. {
  18. public:
  19. CWDMVideoCaptureStream(PHW_STREAM_OBJECT pStreamObject,
  20. CWDMVideoDecoder * pCWDMVideoDecoder,
  21. PKSDATAFORMAT pKSDataFormat,
  22. PUINT puiErrorCode);
  23. ~CWDMVideoCaptureStream();
  24. void * operator new(size_t size, void * pAllocation) { return(pAllocation);}
  25. void operator delete(void * pAllocation) {}
  26. private:
  27. PKS_VIDEOINFOHEADER m_pVideoInfoHeader; // format (variable size!)
  28. KS_FRAME_INFO m_FrameInfo; // PictureNumber, etc.
  29. ULONG m_everyNFields;
  30. void ResetFrameCounters();
  31. ULONG GetFrameSize() { return m_pVideoInfoHeader->bmiHeader.biSizeImage; }
  32. void GetDroppedFrames(PKSPROPERTY_DROPPEDFRAMES_CURRENT_S pDroppedFrames);
  33. BOOL GetCaptureHandle();
  34. VOID SetFrameInfo(PHW_STREAM_REQUEST_BLOCK);
  35. ULONG GetFieldInterval() { return m_everyNFields; }
  36. };