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

« back to all changes in this revision

Viewing changes to filters/analyze.c

  • 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:
61
61
%
62
62
%  The format of the analyzeImage method is:
63
63
%
64
 
%      size_t analyzeImage(Image *images,const int argc,
 
64
%      unsigned long analyzeImage(Image *images,const int argc,
65
65
%        char **argv,ExceptionInfo *exception)
66
66
%
67
67
%  A description of each parameter follows:
77
77
%    o exception: return any errors or warnings in this structure.
78
78
%
79
79
*/
80
 
ModuleExport size_t analyzeImage(Image **images,const int argc,
 
80
ModuleExport unsigned long analyzeImage(Image **images,const int argc,
81
81
  const char **argv,ExceptionInfo *exception)
82
82
{
83
83
  char
119
119
    CacheView
120
120
      *image_view;
121
121
 
122
 
    ssize_t
 
122
    long
123
123
      y;
124
124
 
125
125
    MagickBooleanType
147
147
#if defined(MAGICKCORE_OPENMP_SUPPORT)
148
148
    #pragma omp parallel for schedule(dynamic,4) shared(status)
149
149
#endif
150
 
    for (y=0; y < (ssize_t) image->rows; y++)
 
150
    for (y=0; y < (long) image->rows; y++)
151
151
    {
152
152
      register const PixelPacket
153
153
        *p;
154
154
 
155
 
      register ssize_t
 
155
      register long
156
156
        x;
157
157
 
158
158
      if (status == MagickFalse)
163
163
          status=MagickFalse;
164
164
          continue;
165
165
        }
166
 
      for (x=0; x < (ssize_t) image->columns; x++)
 
166
      for (x=0; x < (long) image->columns; x++)
167
167
      {
168
168
        ConvertRGBToHSB(p->red,p->green,p->blue,&hue,&saturation,&brightness);
169
169
        brightness*=QuantumRange;