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

« back to all changes in this revision

Viewing changes to coders/pix.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:
43
43
#include "magick/blob.h"
44
44
#include "magick/blob-private.h"
45
45
#include "magick/cache.h"
46
 
#include "magick/colormap.h"
47
46
#include "magick/exception.h"
48
47
#include "magick/exception-private.h"
49
48
#include "magick/image.h"
93
92
  IndexPacket
94
93
    index;
95
94
 
96
 
  ssize_t
 
95
  long
97
96
    y;
98
97
 
99
98
  MagickBooleanType
107
106
  register IndexPacket
108
107
    *indexes;
109
108
 
110
 
  register ssize_t
 
109
  register long
111
110
    x;
112
111
 
113
112
  register PixelPacket
116
115
  size_t
117
116
    length;
118
117
 
119
 
  size_t
 
118
  unsigned long
120
119
    bits_per_pixel,
121
120
    height,
122
121
    width;
170
169
    blue=(Quantum) 0;
171
170
    index=(IndexPacket) 0;
172
171
    length=0;
173
 
    for (y=0; y < (ssize_t) image->rows; y++)
 
172
    for (y=0; y < (long) image->rows; y++)
174
173
    {
175
174
      q=QueueAuthenticPixels(image,0,y,image->columns,1,exception);
176
175
      if (q == (PixelPacket *) NULL)
177
176
        break;
178
177
      indexes=GetAuthenticIndexQueue(image);
179
 
      for (x=0; x < (ssize_t) image->columns; x++)
 
178
      for (x=0; x < (long) image->columns; x++)
180
179
      {
181
180
        if (length == 0)
182
181
          {
202
201
        break;
203
202
      if (image->previous == (Image *) NULL)
204
203
        {
205
 
          status=SetImageProgress(image,LoadImageTag,(MagickOffsetType) y,
206
 
                image->rows);
 
204
          status=SetImageProgress(image,LoadImageTag,y,image->rows);
207
205
          if (status == MagickFalse)
208
206
            break;
209
207
        }
271
269
%
272
270
%  The format of the RegisterPIXImage method is:
273
271
%
274
 
%      size_t RegisterPIXImage(void)
 
272
%      unsigned long RegisterPIXImage(void)
275
273
%
276
274
*/
277
 
ModuleExport size_t RegisterPIXImage(void)
 
275
ModuleExport unsigned long RegisterPIXImage(void)
278
276
{
279
277
  MagickInfo
280
278
    *entry;