home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectShow / DMO / DMOSample / util.h < prev   
Encoding:
Text File  |  2001-10-08  |  804 b   |  27 lines

  1. //------------------------------------------------------------------------------
  2. // File: Util.h
  3. //
  4. // Desc: DirectShow sample code - prototypes of utility routines.
  5. //
  6. // Copyright (c) 1999-2001 Microsoft Corporation.  All rights reserved.
  7. //------------------------------------------------------------------------------
  8.  
  9.  
  10. void GetVideoInfoParameters(
  11.     const VIDEOINFOHEADER *pvih, 
  12.     PBYTE pbData,
  13.     DWORD *pdwWidth, 
  14.     DWORD *pdwHeight, 
  15.     LONG *plStrideInBytes,
  16.     BYTE **ppbTop             
  17. );
  18.  
  19. void OurFillRect(const VIDEOINFOHEADER *pvih, PBYTE pbData, WORD wVal);
  20.  
  21. void DrawOurText(const VIDEOINFOHEADER * pvih, PBYTE pbData, LPCTSTR szBuffer);
  22.  
  23. PBYTE TextBitmap(LPCTSTR lpsz, SIZE *pSize);
  24.  
  25. //  Helper
  26. bool TypesMatch(const DMO_MEDIA_TYPE *pmt1, const DMO_MEDIA_TYPE *pmt2);
  27.