Re: Output Pin Custom Allocator



On Fri, 29 Aug 2008 06:18:52 -0700 (PDT), anand wrote:

- i have a transform filter using a CTransformFilter class
-I want the GetPointer in transform method return me a buffer using
custom allocator(maybe a physical address,which i have allocated)
-And i want the downstream default video renderer to take this buffer.

See the tips in the link below for writing an effective post. You have not
provided enough information to answer the question.

Possible answer:

The default renderer on XP and above is different than for earlier versions
of Windows, as described in the docs. It is the VMR7 and the VMR7 will
insist on its own allocator as stated in the docs. So, you cannot do this
with the VMR7.


--
Please read this before replying:
1. Dshow & posting help: http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others: follow up if you are helped or you found a solution
.



Relevant Pages

  • Re: Scrolling through large view area.
    ... the spike was at the allocator. ... buffer has to be", so they called the allocator to allocate a buffer of the correct ... In a third case, I had put a "bubble sort" into my program, knowing I could replace it ... Ten minutes later, it was still sorting. ...
    (microsoft.public.vc.mfc)
  • Re: How to correctly buffer (FIFO) a number of samples to create a time-shifting filter ?
    ... If you do not have your own allocator you are at the mercy of downstream ... It seams that this will happen anyway also with transinplace filters ... real copy the samples and manage my own buffer:(... ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: sort(1) memory usage
    ... The buffer size allocated in that case ... nbuf = realloc; ... With a good allocator - and depending to some extent on the memory usage ... I think you're bashing GNU just because you feel ...
    (freebsd-hackers)
  • Re: Benchmark: STLs list vs. hand-coded one
    ... And having 64MB buffer allocated you will need to write your own new, ... or malloc() implementations to manage memory in the buffer and do ... unlikely that a custom memory allocator can be any faster than a generic ...
    (comp.arch.embedded)
  • Re: [RFC v13][PATCH 05/14] x86 support for checkpoint/restart
    ... Using the slab allocator would: ... allow an optimization that will reduce application downtime during checkpoint. ... all the pieces together as a long buffer. ... I do insist that the wrappers remain. ...
    (Linux-Kernel)