Results 1 to 4 of 4

Thread: (powerpc, ATI Rage 128) fbgrab produces bad colors

  1. #1
    Join Date
    Sep 2008
    Beans
    49

    Question (powerpc, ATI Rage 128) fbgrab produces bad colors

    I'm using CLI almost for anything (okay, links2 -g isn't CLI). And to make screenshots somebody recommended me 'fbgrab'. But this small (1 source file, as I saw) utility produces distorted colors (in both 16 and 32 bit modes) or even anything in grayscale (when capturing terminal screens). Does anybody have a solution?
    Last edited by paul_mcl; September 2nd, 2008 at 05:16 PM. Reason: typo

  2. #2
    Join Date
    Sep 2008
    Beans
    49

    Re: (powerpc, ATI Rage 128) fbgrab produces bad colors

    Blue & White G3 / ATI Rage Orion... Same thing (screenshot attached). Hard-coded color conversion tables in fbgrab? Can anybody suggest a correct table(s)?
    Attached Images Attached Images

  3. #3
    Join Date
    Sep 2008
    Beans
    Hidden!

    Re: (powerpc, ATI Rage 128) fbgrab produces bad colors

    I can suggest that it is endianess problem. You can to do the following to test it:
    1. Change to 32-bit mode (use fbset, for example).
    2.
    Code:
    cp /dev/fb0 dump
    3. Convert this dump file so each 32-bit number in it, for example $12345678, becomes $78563412 and so on (for more information, visit http://en.wikipedia.org/wiki/Endianness).
    4.
    Code:
    fbgrab -w 1024(replace with your screen's width) -h 768 -b 32 -f dump fb.png
    5.
    Code:
    fbi fb.png
    to see the result.

  4. #4
    Join Date
    Sep 2008
    Beans
    49

    Re: (powerpc, ATI Rage 128) fbgrab produces bad colors

    > I can suggest that it is endianess problem.
    > You can to do the following to test it:
    > ...

    No, it is not. I checked it even before my post #2 in this thread. Almost nothing changes by swapping bytes. But anyway, thanks for response.
    Linux -on- Apple PPC Mac users, I just can't be the only one with this problem (as I saw, all of three [different!] macintoshes shows color distortion). But I can't find any information on that, google doesn't know it too. Can't understand...
    Last edited by paul_mcl; September 13th, 2008 at 08:30 PM.

Tags for this Thread

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
  •