正研究MPC-HP开源项目的源码,里面用到的很重要的DirectX技术,由于初识DirectX,所以一切得从零开始.
从定义开始,下面为维基百科对DirectX的定义,我觉得还是比较容易理解的:
Microsoft DirectX is a collection of application programming interfaces (APIs) for handling tasks related to multimedia, especially game programming and video, on Microsoft platforms.
还有关于Dirextshow维基的解释:
DirectShow (sometimes abbreviated as DS or DShow), codename Quartz, is a multimedia framework and API produced by Microsoft for software developers to perform various operations with media files or streams.
上面也只是摘抄下来的,现在开始分析DirectShow,用于编写流媒体应用程序,可以自己编写Filter.进一步分析还有等更新.(10-06-04)
directshow com基础:
用到的com东西不算多,满足COM写法,可以从.def中定义可以而知:
EXPORTS
DllCanUnloadNow PRIVATE // load
DllGetClassObject PRIVATE //factory class
DllRegisterServer PRIVATE //com register
DllUnregisterServer PRIVATE//com unregister
COM:IUnknown