
DirectX
文章平均质量分 69
阜哥
雄心的一半是耐心
展开
-
JAVASCRIPT调用OCX获取字符串数组参数
//OCX的函数实现VARIANT MyOcx::ReturnStringArray(){VARIANT vaResult;VariantInit(&vaResult);vaResult.vt = VT_VARIANT | VT_ARRAY;CString item1 = L"item1";CString item2 = L"item2";SAFEARRAYBOUND mSAB[1]; mSAB[原创 2012-05-12 16:28:22 · 4113 阅读 · 0 评论 -
[DirectShow] 037 - Using the Filter Mapper
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE翻译 2009-08-19 20:43:00 · 845 阅读 · 0 评论 -
[DirectShow] 035 - Responding to Events
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE翻译 2009-08-17 20:46:00 · 1254 阅读 · 0 评论 -
[DirectShow] 036 - Using the System Device Enumerator
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE翻译 2009-08-18 20:53:00 · 1142 阅读 · 0 评论 -
[DirectShow] 033 - Using Windowed Mode
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE翻译 2009-08-07 16:39:00 · 2767 阅读 · 1 评论 -
[DirectShow] 032 - About Video Rendering in DirectShow
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE翻译 2009-08-07 15:10:00 · 1458 阅读 · 2 评论 -
[DirectShow] 025 - Filter Chains
<!--v/:* {behavior:url(#default#VML);}o/:* {behavior:url(#default#VML);}w/:* {behavior:url(#default#VML);}.shape {behavior:url(#default#VML);}--> Normal 0 false 7.翻译 2009-08-06 17:03:00 · 861 阅读 · 0 评论 -
[DirectShow] 034 - Using Windowless Mode
The Video Mixing Renderer filters (VMR-7 andVMR-9) both support windowless mode, which represents a majorimprovement over the IVideoWindow interface. This article describes the diffe翻译 2009-08-10 14:27:00 · 3036 阅读 · 1 评论 -
[DirectShow] 026 - Plug-in Distributors
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE翻译 2009-08-06 18:23:00 · 595 阅读 · 0 评论 -
[DirectShow] 024 - Dynamic Reconnection
<!--v/:* {behavior:url(#default#VML);}o/:* {behavior:url(#default#VML);}w/:* {behavior:url(#default#VML);}.shape {behavior:url(#default#VML);}--> Normal 0 false 7.翻译 2009-08-06 14:49:00 · 1052 阅读 · 0 评论 -
[DirectShow] 023 - Live Sources
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE翻译 2009-08-06 14:47:00 · 1264 阅读 · 0 评论 -
[DirectShow] 022 - Time Stamps
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE翻译 2009-08-05 16:06:00 · 1064 阅读 · 0 评论 -
[DirectShow] 038 - Enumerating Filters
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE翻译 2009-08-20 20:22:00 · 954 阅读 · 0 评论 -
[DirectShow] 039 - Enumerating Pins
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE翻译 2009-08-22 12:21:00 · 916 阅读 · 0 评论 -
Direct3D 半透明渲染
Direct3D半透明渲染图片文件原创 2011-05-27 15:17:00 · 3521 阅读 · 0 评论 -
DirectShow基础编程 最简单transform filter 编写步骤
目标编写一个transform filter,功能是对图像进行翻转。原创 2010-06-07 16:06:00 · 6057 阅读 · 4 评论 -
DirectShow基础编程 采集视频数据
视频数据采集大致可以分为四个步骤:1、创建Capture Graph Builder 和Filter Graph Manager,将两者关联。2、创建Filter,并添加到Graph中。3、根据媒体类型等信息连接Filter。4、运行Graph。 CComPtr pCapture; CComPtr pGB;CComPtr pMC; CComPtr原创 2010-04-26 10:43:00 · 1736 阅读 · 0 评论 -
注册DirectShow Filter信息
编写自己的DirectShow Filter,除了编写实现功能的代码之外,要使自己的DLL称为一个Filter,还有一个重要的工作需要做,那就是注册信息。DirectShow Filter有两种信息注册,一种是包含Filter的DLL作为COM组件的注册信息,一种是注册Filter种类信息。当应用程序通过CoCreateInstane创建Filter的时候,通过第一中注册信息定位DLL。第原创 2010-04-09 16:07:00 · 2406 阅读 · 4 评论 -
获取Filter的三种途径
一、通过CLSIDIBaseFilter *pF = 0;HRESULT hr = CoCreateInstance(clsid, 0, CLSCTX_INPROC_SERVER, IID_IBaseFilter, reinterpret_cast(&pF)); 二、通过系统枚举器ICreateDevEnum *pSysDevEnum = NULL;hr原创 2010-04-10 10:16:00 · 1713 阅读 · 0 评论 -
DirectShow基础编程 最简单的源Filter的编写步骤
1.创建一个空的Dll工程,添加5个空文件分别名为:MyOutputPin.h、MySourceFilter.h、MyOutputPin.cpp、MySourceFilter.cpp和MySourceFilter.def。 2.声明两个类,一个是Filter的实现类,一个是输出Pin的实现类,由于是最简单的源Filter,因此Filter只有一个输出Pin。实现的功能是从本地磁盘读取三个图原创 2010-04-08 19:05:00 · 5559 阅读 · 23 评论 -
DirectShow基础编程 源Filter CSource CSourceStream
DirectShow是微软定义的一套接口集合,由不同的接口组成,例如:IBaseFilter,IPin。这些接口之间的关系形成了DirectShow的架构。DirectX SDK提供了一个C++的BaseClasses,是这些接口的实现。这些实现已经很成熟完善,因此我们不需要重新开发一套类库去实现DirctShow的接口,直接使用就可以。DirectShow编程就是Filter编程,根据功原创 2010-04-01 17:08:00 · 3549 阅读 · 1 评论 -
[DirectShow]041 - The Streaming and Application Threads
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE翻译 2009-09-25 09:28:00 · 959 阅读 · 0 评论 -
[DirectShow] 抓拍图片
“源于DirectShow自带的例子StillCap”DirectShow抓拍图片需要用到两个接口:ISampleGrabberCB和ISampleGrabber。"CB"的意思就是Callback,顾名思义,ISampleGrabberCB接口为ISampleGrabber接口提供回调,其中ISampleGrabberCB接口的两个方法就是两中回调函数。实现抓拍,根据以下步骤:1./原创 2009-09-22 17:19:00 · 4652 阅读 · 0 评论 -
[DirectShow]put_Owner返回E_NOINTERFACE的思考
MSDN一开始介绍DirectShwo的时候就给出了一个列子“How To Play a File“,代码如下:#include void main(void){ IGraphBuilder *pGraph = NULL; IMediaControl *pControl = NULL; IMediaEvent *pEvent = NULL;原创 2009-09-17 14:12:00 · 4701 阅读 · 1 评论 -
[DirectShow] 040 - Enumerating Media Types
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE翻译 2009-08-22 12:24:00 · 866 阅读 · 0 评论 -
[DirectShow] 020 - Reference Clocks
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE翻译 2009-08-03 17:04:00 · 1116 阅读 · 0 评论 -
[DirectShow] 018 - Retrieving Events
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE翻译 2009-07-31 10:47:00 · 616 阅读 · 0 评论 -
[DirectShow] 005 - About the Filter Graph Manager
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE翻译 2009-07-22 19:31:00 · 748 阅读 · 0 评论 -
[DirectShow] 001 - Introduction to DirectShow Application Programming
The building block of DirectShow is a software component called a filter.A filter is a software component that performs some operation on a multimediastream. For example, DirectShow filters can翻译 2009-07-21 16:48:00 · 874 阅读 · 2 评论 -
[DirectShow] 007 - About Media Samples and Allocators
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE翻译 2009-07-23 20:45:00 · 707 阅读 · 1 评论 -
[DirectShow] 004 - About DirectShow Filters
DirectShow uses a modular architecture, where each stage of processing is done by a COM object called a filter. DirectShow provides a set of standard filters for applications to use, and devel翻译 2009-07-22 19:24:00 · 831 阅读 · 0 评论 -
[DirectShow] 003 - DirectShow System Overview
Working with multimedia presents several major challenges。<!-- /* Style Definitions */ table.MsoNormalTable {mso-style-name:普通表格; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0;翻译 2009-07-22 10:26:00 · 593 阅读 · 0 评论 -
[DirectShow] 002 - How To Play a File
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE翻译 2009-07-22 10:21:00 · 857 阅读 · 0 评论 -
[DirectShow] 简单了解通知事件
DirectShow中,Filter会向Filter Graph Manager发送通知事件,Filter Graph Manager会处理一些事件,也会将一些事件发送给应用程序来处理。最常见的三个事件: EC_COMPLETE:当播放正常结束时的通知事件EC_USERABORT:用户中断播放,例如用户关闭窗口导致播放中断 EC_ERRORABORT:播放发生的错误而停止下来原创 2009-04-28 16:48:00 · 993 阅读 · 0 评论 -
DirectShow 配置环境
从网上下了DirectX 9.0 SDK,运行里面的的BaseClasses的时候出现了N多错误,在网上找到了相应的方法。就是上面那个链接啦,哈哈~~ 1. 编译基类源代码 BaseClasses编译生成路径:/Samples/C++/DirectShow/BaseClasses环境:VS2005为了正确编译,需修改以下文件:(a) ctlutil.hD:转载 2009-04-24 12:42:00 · 6729 阅读 · 2 评论 -
[DirectShow] DirectShow的窗口
DirectShow提供两种窗口模式:Windowed Mode 和 Windowless Mode。 Windowed Mode:DS创建一个属于自己的窗口,在自己创建的窗口上显示视频。通过IVideoWindow接口来管理这个窗口,适用于Video Renderer filter。Windowless Mode:DS不提供自己创建的窗口,而是要应用程序提供窗口,用户可以将视频显示在原创 2009-04-28 12:22:00 · 1493 阅读 · 0 评论 -
[DirectShow] 从一个小程序开始
在DirectX 9.0文档中给出了一个简单的例子,用来播放多媒体文件。int _tmain(int argc, _TCHAR* argv[]){ IGraphBuilder *pGraph = NULL; IMediaControl *pControl = NULL; IMediaEvent *pEvent = NULL; // Initialize the CO原创 2009-04-27 12:14:00 · 913 阅读 · 2 评论 -
DirectX SDK 部分版本信息
DirectX 9.0 Complete Software Development Kit (SDK) :(2002-12-19)http://www.microsoft.com/downloads/details.aspx?familyid=124552FF-8363-47FD-8F3B-36C226E04C85&displaylang=enDirectX 9.0 SDK Update转载 2009-04-23 19:49:00 · 1637 阅读 · 0 评论 -
[DirectShow] 006 - About Media Types
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE翻译 2009-07-23 17:36:00 · 1383 阅读 · 0 评论 -
[DirectShow] 009 - Graph-Building Components
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE翻译 2009-07-24 15:52:00 · 583 阅读 · 0 评论