Filters.cs
Upload User: wuming6209
Upload Date: 2013-06-06
Package Size: 161k
Code Size: 2k
Category:

Video Capture

Development Platform:

Visual C++

  1. // ------------------------------------------------------------------
  2. // DirectX.Capture
  3. //
  4. // History:
  5. // 2003-Jan-24 BL - created
  6. //
  7. // Copyright (c) 2003 Brian Low
  8. // ------------------------------------------------------------------
  9. using System;
  10. using DShowNET;
  11. namespace DirectX.Capture
  12. {
  13. /// <summary>
  14. ///  Provides collections of devices and compression codecs
  15. ///  installed on the system. 
  16. /// </summary>
  17. /// <example>
  18. ///  Devices and compression codecs are implemented in DirectShow 
  19. ///  as filters, see the <see cref="Filter"/> class for more 
  20. ///  information. To list the available video devices:
  21. ///  <code><div style="background-color:whitesmoke;">
  22. ///   Filters filters = new Filters();
  23. ///   foreach ( Filter f in filters.VideoInputDevices )
  24. ///   {
  25. /// Debug.WriteLine( f.Name );
  26. ///   }
  27. ///  </div></code>
  28. ///  <seealso cref="Filter"/>
  29. /// </example>
  30. public class Filters
  31. {
  32. // ------------------ Public Properties --------------------
  33. /// <summary> Collection of available video capture devices. </summary>
  34. public FilterCollection VideoInputDevices = new FilterCollection( FilterCategory.VideoInputDevice ); 
  35. /// <summary> Collection of available audio capture devices. </summary>
  36. public FilterCollection AudioInputDevices = new FilterCollection( FilterCategory.AudioInputDevice ); 
  37. /// <summary> Collection of available video compressors. </summary>
  38. public FilterCollection VideoCompressors = new FilterCollection( FilterCategory.VideoCompressorCategory ); 
  39. /// <summary> Collection of available audio compressors. </summary>
  40. public FilterCollection AudioCompressors = new FilterCollection( FilterCategory.AudioCompressorCategory ); 
  41. }
  42. }