RGB Bitmap Orientation (biHeight) Flipped top-down

This forum is about all development around libVLC.
Rich77
New Cone
New Cone
Posts: 2
Joined: 24 Mar 2009 14:19

RGB Bitmap Orientation (biHeight) Flipped top-down

Postby Rich77 » 24 Mar 2009 14:31

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15279
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 31 Mar 2009 20:37

modules/access/dshow/
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Rich77
New Cone
New Cone
Posts: 2
Joined: 24 Mar 2009 14:19

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

Postby Rich77 » 06 Apr 2009 18:00

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15279
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 06 Apr 2009 19:43

I know nothing about DirectShow.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

digital02
New Cone
New Cone
Posts: 2
Joined: 10 Apr 2009 16:59

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

Postby digital02 » 11 Apr 2009 21:07

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15279
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 11 Apr 2009 22:02

Eh no, DirectShow is only used as an input. VLC uses Direct3D, DirectDraw, GDI or OpenGL to output the video.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 32 guests