Skip to content
Snippets Groups Projects
  1. Jan 13, 2022
  2. Feb 15, 2013
    • Søren Sandmann Pedersen's avatar
      gtk-utils.c: Use cairo in show_image() rather than GdkPixbuf · 2156fb51
      Søren Sandmann Pedersen authored
      GdkPixbufs are not premultiplied, so when using them to display pixman
      images, there is some unecessary conversions going on: First the image
      is converted to non-premultiplied, and then GdkPixbuf premultiplies
      before sending the result to the X server. These conversions may cause
      the displayed image to not be exactly identical to the original.
      
      This patch just uses a cairo image surface instead, which avoids these
      conversions.
      
      Also make the comment about sRGB a little more concise.
      2156fb51
  3. Dec 08, 2012
  4. Aug 09, 2012
    • Søren Sandmann Pedersen's avatar
      Make show_image() cope with more formats · 04e878c2
      Søren Sandmann Pedersen authored
      This makes show_image() deal with more formats than just a8r8g8b8, in
      particular, a8r8g8b8_sRGB can now be handled.
      
      Images that are passed to show_image with a format of a8r8g8b8_sRGB
      are displayed without modification under the assumption that the
      monitor is approximately sRGB.
      
      Images with a format of a8r8g8b8 are also displayed without
      modification since many other users of show_image() have been
      generating essentially sRGB data with this format. Other formats are
      also assumed to be gamma compressed; these are converted to a8r8g8b8
      before being displayed.
      
      With these changes, srgb-test.c doesn't need to do its own conversion
      anymore.
      04e878c2
  5. Apr 02, 2012
  6. Feb 15, 2011
  7. May 05, 2010
  8. Nov 17, 2009
  9. May 04, 2009
Loading