Results 1 to 3 of 3

Thread: Qt-4.4.2: Problem with RGB Conversion on Powerpc

  1. #1
    Join Date
    Jun 2006
    Location
    San Diego, USA
    Posts
    95
    Thanks
    9
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Qt-4.4.2: Problem with RGB Conversion on Powerpc

    Hi

    I upgraded my Qt version from 4.2.2 to 4.4.2.
    When I run my application on powerpc using Qt-4.2.2 libs the application colors are perfect.
    But if the same application built and ran with Qt-4.4.2 libs the application colors are junk.
    Here is the output of examples/qws/framebuffer console output.

    The framebuffer device was opened successfully.

    Fixed screen info:
    id: vgxFB
    smem_start: 0x4f000000
    smem_len: 8388608
    type: 0
    type_aux: 0
    visual: 2
    xpanstep: 0
    ypanstep: 0
    ywrapstep: 0
    line_length: 2048
    mmio_start: 0x4ea00000
    mmio_len: 2097152
    accel: 0

    The framebuffer device was mapped to memory successfully.

    Successfully switched to graphics mode.

    Variable screen info:
    xres: 1024
    yres: 768
    xres_virtual: 1024
    yres_virtual: 768
    yoffset: 0
    xoffset: 0
    bits_per_pixel: 16
    grayscale: 0
    red: offset: 11, length: 5, msb_right: 0
    green: offset: 5, length: 6, msb_right: 0
    blue: offset: 0, length: 5, msb_right: 0
    transp: offset: 0, length: 0, msb_right: 0
    nonstd: 0
    activate: 0
    height: -1
    width: -1
    accel_flags: 0x0
    pixclock: 0
    left_margin: 0
    right_margin: 0
    upper_margin: 0
    lower_margin: 0
    hsync_len: 0
    vsync_len: 0
    sync: 0
    vmode: 0

    Will draw 3 rectangles on the screen,
    they should be colored red, green and blue (in that order).
    Done.

    Also I noticed the order of colored rectangles are not in order mentioned here, for me it was blue, red and green. So it seems the problem may be with RGB conversion.

    How to rectify it or solve it any body has such issues, any body succeeded in solving it.
    Point me in solving this problem.

    Thanks & Regards,
    Arun.

  2. #2
    Join Date
    Jun 2006
    Location
    San Diego, USA
    Posts
    95
    Thanks
    9
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qt-4.4.2: Problem with RGB Conversion on Powerpc

    I debugged and found that the problem is with endianness. Linux Frame buffer is little endian and Qt code is big-endian.
    So when I gave
    "export QWS_DISPLAY=LinuxFb::littleendian" , the colors and evrything is displaying properly.

    So if anyone has problems with colors when using Qt-4.4.x, when working for powerpc / big-endian, export as given below.

    Thanks & Regards,
    Arun.

  3. #3
    Join Date
    Jun 2006
    Location
    San Diego, USA
    Posts
    95
    Thanks
    9
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qt-4.4.2: Problem with RGB Conversion on Powerpc

    There is a typo in my earlier message, it should be "export as given above", instead of "export as given below".

    Thanks & Regards,
    Arun

Similar Threads

  1. Installation problem of Qt 4.4.2 in MACOS Leopard-Intel
    By santosh.kumar in forum Installation and Deployment
    Replies: 0
    Last Post: 3rd October 2008, 12:36
  2. Problem with PyQt 4.4.2 and Qt 4.4.0
    By tlam in forum Installation and Deployment
    Replies: 1
    Last Post: 6th August 2008, 16:34
  3. RGBComponents / QImage Conversion problem
    By sincnarf in forum Qt Programming
    Replies: 2
    Last Post: 30th July 2007, 23:41

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.