DirectShow.NET笔记

使用 Windows Mobile 5.0 中的图片、视频和照相机

http://msdn.microsoft.com/zh-cn/library/aa454909.aspx#EEAA

 

v 2.0 - Upgrade with breaking changes (2007-07-15)

http://directshownet.sourceforge.net/

In this release, we added the new interfaces introduced into DirectShow in Vista. Obviously these interfaces will only work on Vista.

  • 432 Defined
  • 283 Tested

See interfaces.txt for the current list of tested interfaces.

Not all of the Vista interfaces can be tested, but we have tested the ones for which we have hardware. The others are included as untested.

We have added the System.Security.SuppressUnmanagedCodeSecurity attribute to the interfaces as well. This tends to improve performance in interfaces that are called frequently (ie many times a second). No code change should be required.

We have also corrected problems related 64 bit support. Primarily fixing "pack" problems on structures, but a few interfaces have been changed to support 64 bit. Primarily changing parameters from int to IntPtr. This will require code changes where you are using them, but the changes are relatively obvious, and are easily located with a re-compile.

  • IMediaEventSink
  • IMediaEvent
  • IDVDInfo2
  • IVideoWindow
  • IMediaEvent
  • IMediaEventEx

We have also changed all the IEnumXXX interfaces so that param 3 is an IntPtr rather than an "out int." This is consistent with Microsoft's implementations, and absolutely essential for cases where someone needs to *implement* the method, rather than just call it. The places we have made changes are easily located with a re-compile. If you are using any of these methods, here's what you'll need to change:

- If you are *not* using the value returned by the 3rd parameter, simply replace it with IntPtr.Zero.
- If you *are* using the value returned by the 3rd parameter, you'll need something like this:

    IntPtr p = Marshal.AllocCoTaskMem(4);
try
{
hr = em.Next(monikers.Length, monikers, p);
DsError.ThrowExceptionForHR(hr);
x = Marshal.ReadInt32(p);
}
finally
{
Marshal.FreeCoTaskMem(p);
}

We have also removed a few duplicate definitions. If you were using one of these and we deleted the one you were using, you'll need to use the other one. The compiler will complain about the missing definition in your next re-compile.

  • AtscFilterOptions & ATSCFilterOptions
  • DsmccFilterOptions & DSMCCFilterOptions
  • MpegPacketList & MPEGPacketList
  • MpegRequestType & MPEGRequestType
  • Mpeg2Filter & MPEG2Filter
  • MpegWinsock & MPEGWinsock
  • MpegBcsDemux & BCSDeMux
  • MpegContext & MPEGContext
  • MpegStreamBuffer & MPEGStreamBuffer

We have also dropped support for VS2003. Since VS2005 has been out for 2 years now (and is available for free!), it doesn't seem worth the effort to put time into keeping the vs2003 stuff active. We haven't (to our knowledge) done anything to the library that will prevent it from working with 2003, but since none of the dev team still has it installed, we haven't tried it. If you are still using vs2003, you can check the cvs tree at sourceforge for the old .csproj and .sln files.

And that's about it. Now that MS has stopped development on DirectShow, we may call this library done. Barring bug fixes, of course.

posted on 2009-02-02 16:43  Jrong 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/Jrong/archive/2009/02/02/1382572.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值