home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectShow / Common / dshowutil.h < prev    next >
Encoding:
Text File  |  2001-10-08  |  2.0 KB  |  52 lines

  1. //------------------------------------------------------------------------------
  2. // File: DShowUtil.h
  3. //
  4. // Desc: DirectShow sample code - prototypes for utility functions
  5. //
  6. // Copyright (c) 2000-2001 Microsoft Corporation.  All rights reserved.
  7. //------------------------------------------------------------------------------
  8.  
  9.  
  10. //
  11. // Function prototypes for DirectShow applications
  12. //
  13. HRESULT GetPin(IBaseFilter * pFilter, PIN_DIRECTION dirrequired, 
  14.                int iNum, IPin **ppPin);
  15.     
  16. HRESULT FindOtherSplitterPin(IPin *pPinIn, GUID guid, 
  17.                int nStream, IPin **ppSplitPin);
  18.     
  19. HRESULT SeekNextFrame(IMediaSeeking * pSeeking, double FPS, long Frame );
  20.     
  21. IPin * GetInPin ( IBaseFilter *pFilter, int Num );
  22. IPin * GetOutPin( IBaseFilter *pFilter, int Num );
  23.  
  24. HRESULT CountFilterPins(IBaseFilter *pFilter, ULONG *pulInPins, ULONG *pulOutPins);
  25. HRESULT CountTotalFilterPins(IBaseFilter *pFilter, ULONG *pulPins);
  26.  
  27. // Find a renderer filter in an existing graph
  28. HRESULT FindRenderer(IGraphBuilder *pGB, const GUID *mediatype, IBaseFilter **ppFilter);
  29. HRESULT FindAudioRenderer(IGraphBuilder *pGB, IBaseFilter **ppFilter);
  30. HRESULT FindVideoRenderer(IGraphBuilder *pGB, IBaseFilter **ppFilter);
  31.  
  32. // Finds a filter's server name
  33. void ShowFilenameByCLSID(REFCLSID clsid, TCHAR *szFilename);
  34.  
  35. // Media file information
  36. HRESULT GetFileDurationString(IMediaSeeking *pMS, TCHAR *szDuration);
  37.  
  38. // Property pages and capabilities
  39. BOOL SupportsPropertyPage(IBaseFilter *pFilter);
  40. HRESULT ShowFilterPropertyPage(IBaseFilter *pFilter, HWND hwndParent);
  41. BOOL CanFrameStep(IGraphBuilder *pGB);
  42.  
  43. // Debug helper functions
  44. void TurnOnDebugDllDebugging( );
  45. void DbgPrint( char * pText );
  46. void ErrPrint( char * pText );
  47.  
  48. // Adds/removes a DirectShow filter graph from the Running Object Table,
  49. // allowing GraphEdit to "spy" on a remote filter graph if enabled.
  50. HRESULT AddGraphToRot(IUnknown *pUnkGraph, DWORD *pdwRegister);
  51. void RemoveGraphFromRot(DWORD pdwRegister);
  52.