[GEM-dev] [ pd-gem-Bugs-2484105 ] pix_data wrong for GL_BGRA_EXT / Apple

SourceForge.net noreply at sourceforge.net
Sat Jan 3 18:37:47 CET 2009


Bugs item #2484105, was opened at 2009-01-03 17:37
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=507079&aid=2484105&group_id=64325

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Pixes (pix_ objects)
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Thomas Grill (xovo)
Assigned to: Nobody/Anonymous (nobody)
Summary: pix_data wrong for GL_BGRA_EXT / Apple

Initial Comment:
Hi,
for 0.91.1(release, OSX) and RGB-jpegs with all channels equal (quasi-grayscale) imported with pix_image i get wrong numbers for the blue channel.
It seems that the preprocessor switch in GemPixUtil.cpp (imageStruct::getRGB) is not taken correctly and the #else branch is realized instead:

  case GL_BGRA_EXT:
#if defined __APPLE__ && defined BYTE_ORDER && defined BIG_ENDIAN && (BYTE_ORDER == BIG_ENDIAN)
    red=pixels[1];
    green=pixels[2];
    blue=pixels[3];
#else
    red=pixels[2];
    green=pixels[1];
    blue=pixels[0];
#endif



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=507079&aid=2484105&group_id=64325




More information about the GEM-dev mailing list