Results 1 to 4 of 4

Thread: QT Framebuffer endianess issue

  1. #1
    Join Date
    Jun 2009
    Location
    India
    Posts
    143
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Question QT Framebuffer endianess issue

    QT Framebuffer endianess issue with Caramine graphice GPU + PowerPC Target


    Caramine graphice GPU ---Little Endian

    Power PC --Big Endian ,32 Bit ARGB data

    For 16 Bit color depth RGB format -- conversion from little to Big Endian is written in qscreen_qws.cpp

    But for 32 Bit Color depth -- conversion from little to Bigendian is not implemented in qscreen_qws.cpp.

    Somebody who faced this problem help us.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT Framebuffer endianess issue

    Is there a question here somewhere?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jun 2009
    Location
    India
    Posts
    143
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Question Re: QT Framebuffer endianess issue

    Quote Originally Posted by wysota View Post
    Is there a question here somewhere?

    My graphics output from GPU is little endian but my power pc is Big endian.

    So the colors in my applications are swapped. Red and Blue.

    How do i make my application to run in Power PC Endian format?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT Framebuffer endianess issue

    Implement the conversion yourself. By the way... As far as I remember PowerPC (at least some of the chips) is both big endian and little endian so it might be easier to just switch your CPU to little endian mode. There is a bit in the MSR registry that controls it, maybe you can just flip it and ignore the problem.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Framebuffer conflict
    By Vidar Bøe in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 21st November 2008, 10:33
  2. framebuffer
    By damien in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 22nd September 2008, 21:27
  3. OpenGL Framebuffer
    By ^NyAw^ in forum Qt Programming
    Replies: 10
    Last Post: 25th March 2008, 12:42
  4. Framebuffer Error
    By rajeshs in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 7th March 2008, 12:47
  5. Qt without X11/xorg? Framebuffer?
    By stodge in forum Newbie
    Replies: 4
    Last Post: 12th April 2007, 17:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.