Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 10-31-06, 03:47 PM   #1
merrick
Registered User
 
Join Date: May 2006
Posts: 8
Default how to draw to X-rotated framebuf ?

Hi nvidia gurus,

I'm using RedHat 7.3 (2.4.18, gcc2.96), for an embedded device that uses a video application which obtains the framebuffer address of the onboard VGA & draws 2d graphics directly to it.. has worked for many years on a 300Mhz platform in the field.

We're experimenting with a new hardware configuration that uses a GeForceFX PCI card & run Xorg, with nvidia drivers 76.76. This is so we can run GL, X apps.

The Twist:
The monitors are now being rotated (portrait) and using randr i can rotate the X display. But am not sure how to obtain the framebuffer address in rotated mode so the video app can draw to it.

I'd like to adapt the main video app to draw directly to a portion of the X screen (*using some direct framebuffer access technique) while running a GL app on the other half.

*I've looked at directfb, SDL etc but not sure what the fastest way to do this in Rotated mode would be.

Your tips would be much appreciated.

Regards
merrick is offline   Reply With Quote
Old 10-31-06, 05:51 PM   #2
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: how to draw to X-rotated framebuf ?

merrick,
The short answer is "don't do that!" The long answer is that you need to use either X or OpenGL to draw the data to the screen, or somehow get the driver to perform the rotation whenever you change part of the screen. You might look at XV or XShmPutImage as a reasonably fast way of uploading data in a way that the X driver knows how to rotate. This has the added benefit of being able to clip your video against sibling or child windows.
AaronP is offline   Reply With Quote
Old 11-02-06, 02:00 PM   #3
merrick
Registered User
 
Join Date: May 2006
Posts: 8
Default Re: how to draw to X-rotated framebuf ?

It took a little hacking of the Xorg drawing code; but i acheived what i wanted to do.
thanks for responding!
merrick is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
A Win? Or A Draw? StealthHawk Rumor Mill 27 08-11-02 02:06 AM

All times are GMT -5. The time now is 12:21 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.