Backup/dshow/Core/IMediaControl.cs
(完整代码) 1KBnamespace dshow.Core
{
using System;
using System.Runtime.InteropServices;
// IMediaControl interface
//
// The IMediaControl interface provides methods for controlling
// the flow of data through the filter graph
//
[ComImport,
Guid("56A868B1-0AD4-11CE-B03A-0020AF0BA770"),
InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IMediaControl
{
// Switches the entire filter graph into running mode
[PreserveSig]
int Run();
// Pauses all filters in the filter graph
[PreserveSig]
int Pause();
// Switches all filters in the filter graph to a stopped state
[PreserveSig]
int Stop();
// Retrieves the state of the filter graph
[PreserveSig]
int GetState(
int msTimeout,
out int pfs);
// Adds and connects filters needed to play the specified file
[PreserveSig]
int RenderFile(
string strFilename);
// Adds to the graph the source filter that can read the given file name
[PreserveSig]
int AddSourceFilter(
[In] string strFilename,
[Out, MarshalAs(UnmanagedType.IDispatch)] out object ppUnk);
//
[PreserveSig]
int get_FilterCollection(
[Out, MarshalAs(UnmanagedType.IDispatch)] out object ppUnk);
//
[PreserveSig]
int get_RegFilterCollection(
[Out, MarshalAs(UnmanagedType.IDispatch)] out object ppUnk);
// Waits for an operation such as Pause to complete,
// allowing filters to queue up data, then stops the filter graph
[PreserveSig]
int StopWhenReady();
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。