⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 directshow帮助文档学习笔记之directshow帮助文档学习总结 - zhangxinbin的专栏 - csdnblog.htm

📁 directshow的开发过程的详细介绍
💻 HTM
📖 第 1 页 / 共 4 页
字号:
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,而</SPAN><STRONG 
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US><FONT 
face="Times New Roman">IBaseFilter</FONT></SPAN></STRONG><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">又继承自</SPAN><STRONG 
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US><FONT 
face="Times New Roman">IMediaFilter</FONT></SPAN></STRONG><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">。</SPAN></FONT></P>
<P class=MsoNormal 
style="MARGIN: 7.8pt 0cm; mso-para-margin-top: .5gd; mso-para-margin-right: 0cm; mso-para-margin-bottom: .5gd; mso-para-margin-left: 0cm"><SPAN 
lang=EN-US 
style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"><O:P><FONT 
size=3></FONT></O:P></SPAN></P>
<P class=MsoNormal 
style="MARGIN: 7.8pt 0cm; TEXT-INDENT: 21pt; mso-para-margin-top: .5gd; mso-para-margin-right: 0cm; mso-para-margin-bottom: .5gd; mso-para-margin-left: 0cm"><SPAN 
style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"><FONT 
size=3>下面的内容直接摘自帮助文档,它们是相当重要的。<SPAN 
lang=EN-US><O:P></O:P></SPAN></FONT></SPAN></P>
<P class=MsoNormal 
style="MARGIN: 7.8pt 0cm; mso-para-margin-top: .5gd; mso-para-margin-right: 0cm; mso-para-margin-bottom: .5gd; mso-para-margin-left: 0cm"><STRONG 
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US 
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"><A 
title=Filter 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Filter">Filter</A> <A 
title=Graph 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Graph">Graph</A> 
Manager<O:P></O:P></SPAN></STRONG></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT 
size=3><FONT face="Times New Roman"><SPAN 
style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>The <A 
title=Filter 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Filter">Filter</A> <A 
title=Graph 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Graph">Graph</A> 
Manager builds and controls <A title=Filter 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Filter">Filter</A> 
graphs. This object is the central component in <A title=DirectShow 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/DirectShow">DirectShow</A>. 
Applications use it to build and control <A title=Filter 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Filter">Filter</A> 
graphs. The <A title=Filter 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Filter">Filter</A> <A 
title=Graph 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Graph">Graph</A> 
Manager also handles synchronization, event notification, and other aspects of 
the controlling the <A title=Filter 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Filter">Filter</A> <A 
title=Graph 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Graph">Graph</A>. 
Create this object by calling CoCreateInstance.</FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><O:P><FONT 
face="Times New Roman" size=3></FONT></O:P></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><STRONG 
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US 
style="FONT-SIZE: 12pt"><FONT face="Times New Roman"><A title=DirectShow 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/DirectShow">DirectShow</A> 
Filters<O:P></O:P></FONT></SPAN></STRONG></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN 
lang=EN-US><FONT face="Times New Roman" size=3><A title=DirectShow 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/DirectShow">DirectShow</A> 
provides a set of default filters that install automatically with Microsoft® <A 
title=Windows 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Windows">Windows</A>®. 
These filters support many data formats while providing a high degree of 
hardware independence. An application can also register and install custom 
filters on the target system.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN 
lang=EN-US><FONT face="Times New Roman" size=3>The ACM Wrapper, AVI Decompressor 
and AVI Compressor filters work with the Audio and Video Compression Managers to 
enable various codecs to be used in a <A title=DirectShow 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/DirectShow">DirectShow</A> 
<A title=Filter 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Filter">Filter</A> <A 
title=Graph 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Graph">Graph</A>.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN 
lang=EN-US><FONT face="Times New Roman" size=3>All the filters supported by the 
<A title=DirectShow 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/DirectShow">DirectShow</A> 
Software Development Kit (SDK) are listed here. If a <A title=Filter 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Filter">Filter</A> 
appears in GraphEdit but is not documented in this reference section, it means 
the <A title=Filter 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Filter">Filter</A> has 
either been installed by a third party or else is used internally by some other 
Microsoft technology such as <A title=Windows 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Windows">Windows</A> 
Media™ Player or TAPI. Such filters are not supported by the <A title=DirectShow 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/DirectShow">DirectShow</A> 
SDK.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><O:P><FONT 
face="Times New Roman" size=3></FONT></O:P></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><STRONG 
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US 
style="FONT-SIZE: 12pt"><FONT 
face="Times New Roman">Interfaces<O:P></O:P></FONT></SPAN></STRONG></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN 
lang=EN-US><FONT face="Times New Roman" size=3>This topic contains reference 
information for the Microsoft® <A title=DirectShow 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/DirectShow">DirectShow</A>® 
core interfaces. To provide broad support for various types of hardware, file 
formats, and stream operations, implements a large number of interfaces. Some 
are used by applications; others are used internally by filters and other <A 
title=DirectShow 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/DirectShow">DirectShow</A> 
components.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><O:P><FONT 
face="Times New Roman" size=3></FONT></O:P></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><STRONG 
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US 
style="FONT-SIZE: 12pt"><FONT face="Times New Roman"><A title=Filter 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Filter">Filter</A> 
Categories<O:P></O:P></FONT></SPAN></STRONG></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN 
lang=EN-US><FONT face="Times New Roman" size=3>The following tables list the 
CLSIDs for the standard <A title=DirectShow 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/DirectShow">DirectShow</A> 
<A title=Filter 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Filter">Filter</A> 
categories. To enumerate the filters in a given category, pass the corresponding 
CLSID to the ICreateDevEnum::CreateClassEnumerator method. These categories also 
appear in GraphEdit when you choose Insert Filters from the <A title=Graph 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Graph">Graph</A> menu. 
</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><O:P><FONT 
face="Times New Roman" size=3></FONT></O:P></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><STRONG 
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US 
style="FONT-SIZE: 12pt"><FONT face="Times New Roman">DVD Event Notification 
Codes<O:P></O:P></FONT></SPAN></STRONG></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN 
lang=EN-US><FONT face="Times New Roman" size=3>Note<SPAN 
style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>This introductory material applies 
only to C++ developers. </FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN 
lang=EN-US><FONT face="Times New Roman" size=3>Microsoft® <A title=DirectShow 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/DirectShow">DirectShow</A>® 
supports system-defined events, which filters in the <A title=Filter 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Filter">Filter</A> <A 
title=Graph 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Graph">Graph</A> pass 
to the <A title=Filter 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Filter">Filter</A> <A 
title=Graph 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Graph">Graph</A> 
manager. Filters pass these events to the <A title=Filter 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Filter">Filter</A> <A 
title=Graph 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Graph">Graph</A> 
manager by using the IMediaEventSink::Notify method, and the application 
retrieves them with the IMediaEvent::GetEvent method. </FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN 
lang=EN-US><FONT face="Times New Roman" size=3>When you retrieve an event by 
calling GetEvent, the event can contain interface pointers or pointers to 
allocated memory. Code that uses GetEvent should, therefore, call 
IMediaEvent::FreeEventParams to free any resources associated with the event's 
parameters after it handles the event. </FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN 
lang=EN-US><FONT face="Times New Roman" size=3>The DVD event notification codes 
are listed in Dvdevcod.h. See Event Notification Codes for non-DVD event 
notification codes. The following list shows the available DVD event 
notification codes in alphabetical order. </FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><O:P><FONT 
face="Times New Roman" size=3></FONT></O:P></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><STRONG 
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US 
style="FONT-SIZE: 12pt"><FONT face="Times New Roman">Event Notification 
Codes<O:P></O:P></FONT></SPAN></STRONG></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN 
lang=EN-US><FONT face="Times New Roman" size=3>This sections lists the <A 
title=DirectShow 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/DirectShow">DirectShow</A> 
events that are not specific to DVD. For events specific to DVD, see DVD Event 
Notification Codes.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN 
lang=EN-US><FONT face="Times New Roman" size=3>Filters send events to the <A 
title=Filter 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Filter">Filter</A> <A 
title=Graph 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Graph">Graph</A> 
Manager by calling the IMediaEventSink::Notify method. The <A title=Filter 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Filter">Filter</A> <A 
title=Graph 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Graph">Graph</A> 
Manager handles some events and queues others for the application. The 
application retrieves them by calling the IMediaEvent::GetEvent method. 
</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN 
lang=EN-US><FONT face="Times New Roman" size=3>In the sections that follow, each 
entry lists the event code, the meaning of the event parameters, and the <A 
title=Filter 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Filter">Filter</A> <A 
title=Graph 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Graph">Graph</A> 
Manager's default action for the event, if any. To override the default action, 
call IMediaEvent::CancelDefaultHandling. Event codes are defined in the header 
files Evcode.h and Audevcod.h. If there is no default action, the <A 
title=Filter 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Filter">Filter</A> <A 
title=Graph 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Graph">Graph</A> 
Manager automatically forwards the event to the application (through the event 
queue). </FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT 
face="Times New Roman" size=3>Custom Events</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN 
lang=EN-US><FONT face="Times New Roman" size=3>Filters can define custom events 
with event codes in the range EC_USER and higher. The <A title=Filter 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Filter">Filter</A> <A 
title=Graph 
href="http://blog.csdn.net/zhangxinbin/archive/2006/10/22/Graph">Graph</A> 
Manager will place these directly in the event queue. However, the following 
caveats apply: </FONT></SPAN></P>
<P class=MsoNormal 
style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 42.0pt"><SPAN 
lang=EN-US 
style="FONT-FAMILY: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings"><SPAN 
style="mso-list: Ignore"><FONT size=3>l</FONT><SPAN 
style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -