Re: IVMRSurface9 success?



On 6 Oct 2005 10:37:01 -0700, squidish wrote:

> Hi,
> I've read a lot of posts from people who have not been able to get
> this interface to work correctly, either failure to query the interface
> or lock the D3D surface.
>
> Just wondering if anyone has successfully used it and if so in what
> environment? Any tricks required to get it to work?
>
> I'm trying to access the D3D surface that is being rendered too,
> without having to implement an allocator/presenter.
>
> Thanks for any suggestions.

THere seem to be a number of gotchas with this interface.

The main thing seems to be that it won't work with BeginScene/EndScene,
only with copying surfaces (which is how the single MS filter that I have
looked at uses it). This is apparently due to the surface being created on
a separate thread which DX9 doesn't like. The work-around is to set to YUV
Mixing mode, but I haven't been able to check this yet.

In my (limited) testing I was not able to get a pointer to the bits that I
could write to directly (with LockSurface), though I didn't try too hard!

Iain
--
Iain Downs (DirectShow MVP)
Commercial Software Therapist
www.idcl.co.uk
.



Relevant Pages

  • Re: How to get filters properties??
    ... Most 'modern' Direct Show objects will have an interface. ... Iain Downs (DirectShow MVP) ... Software Product Consultant ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: How to get filters properties??
    ... >> How to get filter's properties in application without open propertypage? ... > interface on the object which supports the properties of interest). ... > Iain Downs (DirectShow MVP) ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Setting the output filename
    ... > queried this for it IMediaControl interface. ... > After successfully adding the filters to the graph and connecting the pins ... Media FOrmat SDK and has no relationship to filters. ... Iain Downs ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: How to handle WM_SIZE message in Doc/View architecture???
    ... First I would set all interface pointers to null in the constructor. ... before calling functions on it. ... Iain Downs ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: I want to write a source filter,it can receive a buffer of char* type supersede a *.wav file,ple
    ... > buffer to a method of the interface. ... >> You need to at least implement the abstract FillBuffer() ... >> complete samples onthe use of CSource and CSourceStream. ... Iain Downs ...
    (microsoft.public.win32.programmer.directx.audio)

Loading