~ubuntu-branches/ubuntu/oneiric/imagemagick/oneiric-updates

« back to all changes in this revision

Viewing changes to magick/image-private.h

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2011-06-15 11:05:28 UTC
  • mfrom: (6.2.11 sid)
  • Revision ID: james.westby@ubuntu.com-20110615110528-08jgo07a4846xh8d
Tags: 8:6.6.0.4-3ubuntu1
* Resynchronise with Debian (LP: #797595).  Remaining changes:
  - Make ufraw-batch (universe) a suggestion instead of a recommendation.
  - Make debian/rules install target depend on check; they cannot reliably
    be run in parallel.
  - Don't set MAKEFLAGS in debian/rules; just pass it to the build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
  return(180.0*radians/MagickPI);
61
61
}
62
62
 
63
 
static inline unsigned char ScaleColor5to8(const unsigned int color)
 
63
static inline unsigned char ScaleColor5to8(const unsigned long color)
64
64
{
65
65
  return((unsigned char) (((color) << 3) | ((color) >> 2)));
66
66
}
67
67
 
68
 
static inline unsigned char ScaleColor6to8(const unsigned int color)
 
68
static inline unsigned char ScaleColor6to8(const unsigned long color)
69
69
{
70
70
  return((unsigned char) (((color) << 2) | ((color) >> 4)));
71
71
}
72
72
 
73
 
static inline unsigned int ScaleColor8to5(const unsigned char color)
 
73
static inline unsigned long ScaleColor8to5(const unsigned char color)
74
74
{
75
 
  return((unsigned int) (((color) & ~0x07) >> 3));
 
75
  return((unsigned long) (((color) & ~0x07) >> 3));
76
76
}
77
77
 
78
 
static inline unsigned int ScaleColor8to6(const unsigned char color)
 
78
static inline unsigned long ScaleColor8to6(const unsigned char color)
79
79
{
80
 
  return((unsigned int) (((color) & ~0x03) >> 2));
 
80
  return((unsigned long) (((color) & ~0x03) >> 2));
81
81
}
82
82
 
83
83
#if defined(__cplusplus) || defined(c_plusplus)