Page 1 of 1

RGB Bitmap Orientation (biHeight) Flipped top-down

Posted: 24 Mar 2009 14:31
by Rich77
When creating RAW RGB capture images from my WDM streaming driver the “"Bitmap Orientation and biHeight" link at http://www.fourcc.org/
specifies RGB formats exposed from my capture driver should be/can be negative, top-down bitmap. This works correctly with the Video Overlay, VMR7 and VMR9 Microsoft renderers. However this does not seem to be the case for the drawing mechanism of VLC? The stream image appears vertically flipped? Can anybody help or point me at the drawing code for VLC DirectShow default drawing? I seem to be missing a trick with VLC only. Cheers, Rich.

Re: RGB Bitmap Orientation (biHeight) Flipped top-down

Posted: 31 Mar 2009 20:37
by Rémi Denis-Courmont
modules/access/dshow/

Re: RGB Bitmap Orientation (biHeight) Flipped top-down

Posted: 06 Apr 2009 18:00
by Rich77
Hi Rémi,

I am unsure how the open source VLC project hangs together.

modules/access/dshow/ project uses the DirectShows CaptureGraphBuilder2->RenderStream. This is correct orientation as the graph manager, based on merit will connect to a Microsoft VMR.

The VLC media player application 0.9.2 does not use this mechanism for rendering?
I would guess it creates a render surface and draws to the video card itself?

Thanks.

Re: RGB Bitmap Orientation (biHeight) Flipped top-down

Posted: 06 Apr 2009 19:43
by Rémi Denis-Courmont
I know nothing about DirectShow.

Re: RGB Bitmap Orientation (biHeight) Flipped top-down

Posted: 11 Apr 2009 21:07
by digital02
The VLC media player application 0.9.2 does not use this mechanism for rendering?
I would guess it creates a render surface and draws to the video card itself?

Re: RGB Bitmap Orientation (biHeight) Flipped top-down

Posted: 11 Apr 2009 22:02
by Rémi Denis-Courmont
Eh no, DirectShow is only used as an input. VLC uses Direct3D, DirectDraw, GDI or OpenGL to output the video.