From: Antonino Daplas <adaplas@pol.net>
To: irene7@mail2000.com.tw
Cc: Linux Fbdev development list <linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: how to rotate 90 the LCD image
Date: 10 Mar 2003 10:06:45 +0800 [thread overview]
Message-ID: <1047261897.1266.27.camel@localhost.localdomain> (raw)
In-Reply-To: <1047202665.2653.irene7@mail2000.com.tw>
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
next prev parent reply other threads:[~2003-03-10 2:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-09 9:37 how to rotate 90 the LCD image irene7
2003-03-10 2:06 ` Antonino Daplas [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-03-10 1:09 irene7
2003-03-10 4:43 irene7
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1047261897.1266.27.camel@localhost.localdomain \
--to=adaplas@pol.net \
--cc=irene7@mail2000.com.tw \
--cc=linux-fbdev-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).