Re: Output Pin Custom Allocator



On Aug 29, 9:43 pm, "The March Hare [MVP]"
<themarchh...@xxxxxxxxxxxxxxxxxxx> wrote:
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.

-Thanx for the reply March Hare.Let me explain this more.
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.

-I am using my own transform filter using a CTransformFilter
class.the decoder(h/w) uses its physical memory for doing the
transform.
-I want to avoid the memcpy,of copying from this phy memory to virtual
for the downstream default video renderer(not VMR7)
- in the transform getpointer(o/p buffer) it should be able to point
to this phy addr,so that the default render downstream direcllty
render this buffer from the physical memory.
-I have implemented my own CTransformOutputPin with own allocator ,but
it seems the the transform filter is not taking this allocator,what am
I missing here.

regards
anand
.



Relevant Pages

  • Re: Output Pin Custom Allocator
    ... -I want the GetPointer in transform method return me a buffer using ... -And i want the downstream default video renderer to take this buffer.. ...  It is the VMR7 and the VMR7 will ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Type of memory in VMR9 allocator
    ... output buffer for transformation function from 3r party library and after ... temporary buffer to output sample. ... as a downstream filter and he provide a video memory in allocator buffers, ... It sounds to me as though you've implemented a typical "copy" transform ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Process alternating video frames
    ... be sure you are not basing your transform on an inplace (maybe you ... i did everything by hand with real transfrom filter ... ... You can also supply your own allocator. ... what does work is to first buffer then 'drop' every second frame. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Capturing to file and grabbing frames at the same time
    ... Is "In-place Transform" the right or wrong option in the DSWizard? ... me it sounds like the video stream will be edited on its current ... Graphics card surface as discussed previously). ... the result into the downstream sample. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Template Matching
    ... number of elements in your search image transform must be ... the same as the number of elements in your template ... different size to your search image. ... the blank buffer, then proceed as suggested. ...
    (comp.soft-sys.matlab)

Loading