Re: Output Pin Custom Allocator



On Aug 31, 3:32 pm, anand <anand.mai...@xxxxxxxxx> wrote:
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.

-missed some points
It is not XP.Itz WM6.0 so the renderer should not be VMR7 i
guess.It is the normal video
renderer( 70e102b0-5556-11ce-97c0-00aa0055595a )

regards
anand

.



Relevant Pages

  • Re: Output Pin Custom Allocator
    ... -And i want the downstream default video renderer to take this buffer. ... insist on its own allocator as stated in the docs. ... -I am using my own transform filter using a CTransformFilter ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: A question about outpin delivering sample
    ... The input data is a network stream, ... received and put into my buffer. ... Then, downstream filter will call ... DoBufferProcessingLoopand FillBuffer() on my OutPin to get the ...
    (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: 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: IMediaSample
    ... into the smaple and expect the downstream filter to recognize it. ... it loads the codec and video render like I ... video can it be any size buffer I want. ... I'd like to do is take first 4096 bytes, put in the "payload" or this ...
    (microsoft.public.win32.programmer.directx.video)