Re: Type of memory in VMR9 allocator



"deadsy" <deadsy@xxxxxxxxx> wrote in message
news:6e0b09de35cb8c82152bb4b0982@xxxxxxxxxxxxxxxxxxxxx
[...] To prevent it I create a temporary buffer and specify it as an
output buffer for transformation function from 3r party library and after
function call I copy data from
temporary buffer to output sample. This is good decision when we use VMR9
as a downstream filter and he provide a video memory in allocator buffers,
but if downstream filter is some kind of transform filter we have a
unnecessary copy operation (and as result another perfomace degradation).

It sounds to me as though you've implemented a typical "copy" transform
filter (ie not in-place). Yes, there is a small performance loss as you do
the additional copy, but if it's a significant problem compared to your
other processing, then you have something wrong with your copy operation.
It should be extremely fast, and inconsequential compared to doing actual
decompression AND post-processing (assuming the decompression and
post-processing are non-trivial).

Pete


.



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: 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: Question about the video transform filter
    ... >> I got a problem in developing a video transform filter. ... >> allocator buffer count to 2, ... >> to get the output media sample buffer, it always return the same buffer ...
    (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)
  • Re: SOS... help required in implementing pull mechanism
    ... downstream's trasform filter;s transform is being called.. ... directly to the downstream filter is if the IMediaSample2 props stream id ... only problem is with the renderer now, ... sixteen decoded frames r not being rendered and after that its working ...
    (microsoft.public.win32.programmer.directx.video)