linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rotation
@ 2008-07-01 10:26 Hinko Kocevar
  0 siblings, 0 replies; 7+ messages in thread
From: Hinko Kocevar @ 2008-07-01 10:26 UTC (permalink / raw)
  To: linux-fbdev-devel

Hello,

We have a 320x240 color TFT LCD display attached to EPSON s1d13706 chip. Currently the display does not need rotating, but with the new LCD panel that replaced the old one a rotation of 180 degrees needs to be applied. We have our own framebuffer driver - similar to drivers/video/s1d13xxxfb.c but with some additional stuff for our architecture (cris).

The question arises where is the best place to implement this rotation?

I reckon it is the kernel, since all userspace need to use framebuffer transparently.
We don't use the fbcon at all so fbcon rotation is not an option. I've spotted fb_rotate field in struct fb_ops with the deprecated comment (seen in skeletonfb.c). I guess this is not an option too..

Then I guess I'm left with (re-)implementing the fb_mmap/fb_read/fb_write/fb_fillrect/fb_copyarea/fb_imageblit ?!?!

Any comments?

Best regards,
Hinko

-- 
ÈETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar@cetrtapot.si
Http: www.cetrtapot.si


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [Linux-fbdev-devel] rotation.
@ 2003-01-10 10:26 Antonino Daplas
  2003-01-10 19:42 ` rotation James Simmons
  0 siblings, 1 reply; 7+ messages in thread
From: Antonino Daplas @ 2003-01-10 10:26 UTC (permalink / raw)
  To: James Simmons
  Cc: Linux Fbdev development list, Linux Kernel Mailing List,
	Geert Uytterhoeven

On Fri, 2003-01-10 at 03:54, James Simmons wrote:
> 
> > However, as Geert mentioned, if you want to support rotation
> > generically, then you have to do it in the fbcon level.  The driver need
> > not know if the display is rotated or not.  All it needs to do is fill a
> > region with color, color expand a bitmap and move blocks of data, and
> > optionally 'pan' the window.  Fbcon will pass the correct (ie, oriented)
> > information for the driver.
> 
> Yes. Hardware rotation shouldn't also not effect the way accel 
> operatations are done.
 
The main difference is if the hardware supports rotation, fbcon will
present it with "normal" data.  With the generic implementation, fbcon
will present the driver with rotated data.

So we need a driver capabilities field either in fb_info or
fb_fix_screeninfo.

> 
> > This will not be too processor intensive as long as some data is
> > prepared beforehand, like a rotated fontdata.
> 
> Yeap!! The only thing is we could end up with 4 times the amount of data.
>  

Not really.  We can dynamically rotate the fontdata using the default
display->fontdata into another buffer.  I believe I have functions that
do that in the patch I submitted.  (Sorry, I lost it when one of my
drives crashed :-(.

Tony

^ permalink raw reply	[flat|nested] 7+ messages in thread
* rotation.
@ 2003-01-07 22:44 James Simmons
  2003-01-08 10:24 ` rotation Geert Uytterhoeven
  2003-01-08 16:56 ` rotation Antonino Daplas
  0 siblings, 2 replies; 7+ messages in thread
From: James Simmons @ 2003-01-07 22:44 UTC (permalink / raw)
  To: Linux Fbdev development list
  Cc: Linux Kernel Mailing List, Geert Uytterhoeven


I'm about to implement rotation which is needed for devices like the ipaq. 
The question is do we flip the xres and yres values depending on the 
rotation or do we just alter the data that will be drawn to make the 
screen appear to rotate. How does hardware rotate view the x and y axis?
Are they rotated or does just the data get rotated? 



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

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

end of thread, other threads:[~2008-07-01 10:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-01 10:26 rotation Hinko Kocevar
  -- strict thread matches above, loose matches on Subject: below --
2003-01-10 10:26 [Linux-fbdev-devel] rotation Antonino Daplas
2003-01-10 19:42 ` rotation James Simmons
2003-01-11  5:13   ` rotation Antonino Daplas
2003-01-07 22:44 rotation James Simmons
2003-01-08 10:24 ` rotation Geert Uytterhoeven
2003-01-09 19:44   ` rotation James Simmons
2003-01-08 16:56 ` rotation Antonino Daplas

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).