Re: video/image gets flipped by video renderer



"geoPsyc" <mouster@xxxxxxxxx> wrote:

For example, my capture filter produces 720x480 UYVY. VMR accepts this,
but after it transitions to "run", I'm sent a new format of 768x-480 UYVY.
I have to copy my 720 pixels to the leftmost 720 pixels of this new
surface.

How do you detect the new format after transition to "run"?

In AVStream, I get another call to my SetFormat dispatch. In DirectShow, I
believe that maps to another call to your pin's SetMediaType method.

If you are unable to handle this, then you need to insert a color space
converter filter inbetween your filter and the renderer.

I manually added Color Converter and the image is still flipped,
however when I changed the desktop resolution to 16bit instead of
32bit the color converter gets inserted automatically and the video
rendered correctly. Any idea why this happens?

No. Is your output RGB? Is it top-down? Are you setting the length
negative in your media type?
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.



Relevant Pages

  • Re: video/image gets flipped by video renderer
    ... but after it transitions to "run", I'm sent a new format of 768x-480 UYVY. ... I have to copy my 720 pixels to the leftmost 720 pixels of this new ... I manually added Color Converter and the image is still flipped, ...
    (microsoft.public.win32.programmer.directx.video)
  • RE: HOW to display raw YUV data -----(problem still )???
    ... > The pixels of each line and lines in one frame is known for me. ... That being said, "converting" from one YUV format to another is very easy, ... alpha channel--we'll just skip over it. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: why 1680x1050 ?
    ... Quite a few of the earlier HD plasma screens have a ... a 16:9 panel which has a native format (a ... as "pixels" to begin with, so the panel format is mostly ... somewhat of a better match to PC standard formats (if ...
    (comp.sys.ibm.pc.hardware.video)
  • Re: Excel CopyPicture and PowerPoint
    ... Appearance as onscreen I guess means all ... > distortion if you resize the chart, and you can ungroup the chart in the ... > Printer format means bitmap, jpg, png, or gif, any format that converts ... > pixels in the image no longer line up with the pixels in the screen. ...
    (microsoft.public.excel.charting)
  • Re: Convert an Image to 8-bit grayscale
    ... --> My question is how to save this grayscale file in 8 bits. ... pixels to grayscale ones, but the image format remains the same. ... the bitmap image formats aren't very complicated. ...
    (microsoft.public.dotnet.languages.csharp)