Re: Output Pin Custom Allocator



Thanks Roman

Yep - I've seen this in the docs and in postings on this newsgroup - it's
the very first frame where this occurs I believe. This problem is
different, as the insertion occurs before I start the graph - And stays when
it runs.

I've tried every possible format (640x480, 640x-480, 320x240, 320x-240 etc
etc) all with an ARGB32 subtype and there's always a CSC inserted. Now I'm
beginning to think that it's because my filter insists on using it's own
allocator, so it's a way that the VMR9 can be certain that it can use it's
own allocator (ie use the CSC as an intermediary between the 2 allocators).

If this is the case - as Thore suggests, there will always be a mem copy
involved anyway, so it strikes me that the most efficient transport is to
use the allocator that the VMR9 provides, which I hadn't considered.

I hope this is the case, as I've been wrestling with it for a couple of
weeks, but never seen any mention in the docs, that the VMR9 will insist on
using it's own allocator - Thanks again Roman / Thore.

Regards
Mike Gardner
SmartSentry
Skype: Mike.Gardner
"Roman Ryl..." <ryltsov@xxxxxxxxx> wrote in message
news:1140389536.927751.193490@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
As far as I remember, VMR9 connects on ARGB32 first and once the graph
is started it attempts to reagree format with upstream filter via
dynamic reconnection (it is most likely to try 16-, 24- or 32-bit RGB
format depending on your display settings, or some FOURCC format
supported by hardware). You will have Color Space Converter inserted if
you don't support ARGB32. I remember this is mentioned in DirectX 9
.CHM doc file but unsure where exactly.



.



Relevant Pages

  • Re: Output Pin Custom Allocator
    ... subtype but wrong format, so I tried proposing every combination of format ... as a result of me trying to impose my Output Pin allocator on the VMR9. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: VMR9 and Color Space Converter
    ... > I have created a DirectShow source filter that delivers uncompressed audio ... I am trying to connect it to VMR9 directly. ... my source filter's DecideBufferSize() gets ... > called with the VMR9's allocator. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Windowless VMR9 - Any Special requirements?
    ... OK Iain ... QueryAccept and so on negotiate a format between the pins which they ... THen the allocator negotiation takes place at which ... > time the VMR allocator realises that the format is biHeight+ve and calls ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Failing to connect to VMR9 - please advise
    ... and just cannot make it attach to VMR9. ... If I try to use my own allocator, ... I can connect via a Color Space Converter filter (either by adding ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Output Pin Custom Allocator
    ... I tried everything to connect directly the VMR9, ... Space Converter inserted between my output pin and the VMR9, ... because I'm trying to force my Allocator upon it? ... when I tried to connect an infinite pin tee filter to a VMR. ...
    (microsoft.public.win32.programmer.directx.video)