dshow/Core/IBaseFilter.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

namespace dshow.Core
{
	using System;
	using System.Runtime.InteropServices;

	// IBaseFilter interface
	//
	// The IBaseFilter interface provides methods for controlling a filter
	//
	[ComImport,
	Guid("56A86895-0AD4-11CE-B03A-0020AF0BA770"),
	InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
	public interface IBaseFilter
	{
		// --- IPersist Methods

		// Retrieves the class identifier (CLSID) of an object
		[PreserveSig]
		int GetClassID(
			[Out] out Guid pClassID);

		// --- IMediaFilter Methods

		// Informs the filter to transition to the new state
		[PreserveSig]
		int Stop();

		// Informs the filter to transition to the new (paused) state
		[PreserveSig]
		int Pause();

		// Informs the filter to transition to the new (running) state
		[PreserveSig]
		int Run(
			long tStart);

		// Determines the state of the filter
		[PreserveSig]
		int GetState(
			int dwMilliSecsTimeout,
			[Out] out int filtState);

		// Identifies the reference clock to which the
		// filter should synchronize activity
		[PreserveSig]
//		int SetSyncSource(
//			[In] IReferenceClock pClock);
		int SetSyncSource(
			[In] IntPtr pClock);

		// Retrieves the current reference clock in use by this filter
		[PreserveSig]
//		int GetSyncSource(
//			[Out] out IReferenceClock pClock);
		int GetSyncSource(
			[Out] out IntPtr pClock);

		// --- IBaseFilter Methods

		// Enumerates the pins on this filter
后面还有 27 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。