linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* how to rotate 90 the LCD image
@ 2003-03-09  9:37 irene7
  2003-03-10  2:06 ` Antonino Daplas
  0 siblings, 1 reply; 4+ messages in thread
From: irene7 @ 2003-03-09  9:37 UTC (permalink / raw)
  To: linux-fbdev-devel


 HI~ 

    i am an newbie. and i have a trouble :
    my LCD driver is working fine , but the only problem is the LCD image is rotate 90.
    what should i modified the driver to rotate it back? 
   
 Thansk ...



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread
* how to rotate 90 the LCD image
@ 2003-03-10  1:09 irene7
  0 siblings, 0 replies; 4+ messages in thread
From: irene7 @ 2003-03-10  1:09 UTC (permalink / raw)
  To: linux-fbdev-devel

[-- Attachment #1: Type: text/plain, Size: 233 bytes --]

    
 HI~ 

    i am an newbie. and i have a trouble :
    my LCD driver is working fine , but the only problem is the LCD image is rotate 90.
    what should i modified the driver to rotate it back? 
   
 Thansk ...


    

[-- Attachment #2: Type: text/html, Size: 334 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: how to rotate 90 the LCD image
@ 2003-03-10  4:43 irene7
  0 siblings, 0 replies; 4+ messages in thread
From: irene7 @ 2003-03-10  4:43 UTC (permalink / raw)
  To: adaplas; +Cc: linux-fbdev-devel


 Thank your for your comprehensive explanation .
 And i also get the information,that the embedded GUI system can support it's GUI rotate 90.
 Is that true ?
 and if it is true, maybe it's efficiency would be a probelm?

-----Original message-----
From:Antonino Daplas <adaplas@pol.net>
To:irene7@mail2000.com.tw
Cc:Linux Fbdev development list <linux-fbdev-devel@lists.sourceforge.net>
Date:10 Mar 2003 10:06:45 +0800
Subject:Re: [Linux-fbdev-devel] how to rotate 90 the LCD image

On Sun, 2003-03-09 at 17:37, irene7 wrote:
> 
>  HI~ 
> 
>     i am an newbie. and i have a trouble :
>     my LCD driver is working fine , but the only problem is the LCD image is rotate 90.
>     what should i modified the driver to rotate it back? 

Hmm, a lot of LCD hardware have this sort of problem.  If you do not
have a hardware option to change how the data is to be displayed (such
as rotate 90 degrees the other way), you can do at least two things:

1.  have your own fbcon-cfb*.c functions that draws, clears and moves
pixels from top->bottom, right->left (90 degrees CW) or bottom->top,
left->right (90 degrees CCW).  You may also want to pre-rotate
display->fontdata in your xxxfb_setup routine, so you don't degrade
performance. You also need to modify the fbcon_show_logo in fbcon.c to
do the same thing.  The advantage of this method is you're going to have
a fairly efficient framebuffer console, the disadvantage is user
applications will not work.

2.  The second method is to allocate a virtual framebuffer.  Then on a
periodic basis, you transfer the data in the virtual framebuffer to the
actual framebuffer, doing the rotating on the fly.  The advantage of
this method is user applications should work, the disadvantage is it is
not the most efficient method.

You can look at: 

ftp://ssv-embedded.de/ssv/products/trm916/sample/x86/linux/fbdev

(authored by Henry)

for a template on how to implement #2.  You still have to implement the
rotation yourself.  If you have questions rotating the data, let me
know.


Tony





-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-03-10  4:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-09  9:37 how to rotate 90 the LCD image irene7
2003-03-10  2:06 ` Antonino Daplas
  -- strict thread matches above, loose matches on Subject: below --
2003-03-10  1:09 irene7
2003-03-10  4:43 irene7

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).