Hi Karim, On Wed, Sep 12, 2012 at 7:36 PM, Karim 'Kasi Mir' Senoucci <direc...@tvetc.de> wrote: > Hi, > Am 12.09.2012 19:25, schrieb Ilyes Gouta: > > Have you grepped into the code to see what happens when the > layer-rotate=<x> option is passed? > > Into the code of DirectFB itself? No, I haven't done that so far. As I have > no knowledge of the DirectFB sources whatsoever, this would probably take > many, many hours, which is why I tried asking those with said knowledge > first who can tell me whether I'm doing anything wrong right away. As it > seems, it's not that simple. :-)
code is usually the ultimate documentation. > Unfortunately, I can't find any documentation on directfb.org or elsewhere > which tells me what is needed for layer-rotate to work, which leads to your > next question: > > > Are you using a DirectFB system module that do actually support such a > configuration option? > > Short answer: I have no idea (though my guess at the moment would be no, as > it obviously doesn't work). I can't find any documentation from which I can > deduct the answer to your question, which again is my reason for asking > here. > > Actually, I'm not even sure what you mean by "DirectFB system module" - a > hardware-specific rendering module within DirectFB, the actual frame butter > driver, or something else entirely. > > Let's start from the other direction - I tell you what I'm using: > > I'm running my software on a variety of Mini-ITX boards: > > VIA EPIA 6000ML (VIA C7 CPU) > VIA EPIA 10000ML ( " ) > Intel D945 (Intel Atom 1st generation) > Intel D410 (Intel Atom 2nd generation) > Intel D425 (Intel Atom 3rd generation) > Intel D2700 (Intel Atom 4th generation) > > On the via boards, I'm using the viafb frame buffer kernel driver, on the > D945, I'm using intelfb. For the D410 and D425, as there is no > hardware-specific kernel driver, I use uvesafb. Finally, the D2700 supports > the newer kernel-modesetting and DRI, so I use the inteldrmfb driver. The DirectFB system module is what interfaces with the framebuffer driver, such as what you listed here viafb, vesafb and inteldrmfb. DirectFB would be using fbdev system module to talk to those. > Of those frame buffers, as far as I could find out, DirectFB has specific > drivers only for the VIA boards (UniChrome), for all others, the "MMX Yeah, that would be an acceleration module, not a system module. An acceleration module is what accelerates the drawing operations: Draw(), Fill(), Blit(), etc. > Software Rasterizer" is used. As I have no videos or animations to display, The software rasterizer is the fallback, all CPU rendering module. When something can't get accelerated, DirectFB falls back to a s/w routine. > this is fine by me. My program opens a primary, full-screen surface onto > which everything is painted via DrawRectangle(), DrawString(), Blit() etc. > directly. There are no windows, everything is a fixed full-screen layout. > > By the way: if there is another way to rotate the display (i.e. everything > that is displayed on screen) by 90 or 270 degrees, I'll happily give it a > try. I don't have to use the "layer-rotate" command-line parameter, it's > just the only thing I could find that at least is documented. Yes. You could use (you UI and rendering code) IDirectFBWindow(s) and rotate these 90°, 180° and 270°. If you have an acceleration module that's able to handle rotation, then the composition will be h/w accelerated. -Ilyes > I hope the above info helps in getting closer to a solution. If any > additional information is necessary, feel free to ask. Thank you very much > in advance for your efforts. > > Greetings > Kasi Mir _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev