% MagickCore Methods to Import Quantum Pixels %
% %
% Software Design %
-% John Cristy %
+% Cristy %
% October 1998 %
% %
% %
-% Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization %
+% Copyright 1999-2014 ImageMagick Studio LLC, a non-profit organization %
% dedicated to making software imaging solutions freely available. %
% %
% You may not use this file except in compliance with the License. You may %
%
% size_t ImportQuantumPixels(const Image *image,CacheView *image_view,
% QuantumInfo *quantum_info,const QuantumType quantum_type,
-% const unsigned char *pixels,ExceptionInfo *exception)
+% const unsigned char *restrict pixels,ExceptionInfo *exception)
%
% A description of each parameter follows:
%
}
static inline const unsigned char *PushDoublePixel(QuantumInfo *quantum_info,
- const unsigned char *pixels,double *pixel)
+ const unsigned char *restrict pixels,double *pixel)
{
double
*p;
quantum[7]=(*pixels++);
quantum[6]=(*pixels++);
quantum[5]=(*pixels++);
- quantum[5]=(*pixels++);
+ quantum[4]=(*pixels++);
quantum[3]=(*pixels++);
quantum[2]=(*pixels++);
quantum[1]=(*pixels++);
}
static inline const unsigned char *PushFloatPixel(QuantumInfo *quantum_info,
- const unsigned char *pixels,float *pixel)
+ const unsigned char *restrict pixels,float *pixel)
{
float
*p;
}
static inline const unsigned char *PushQuantumPixel(QuantumInfo *quantum_info,
- const unsigned char *pixels,unsigned int *quantum)
+ const unsigned char *restrict pixels,unsigned int *quantum)
{
register ssize_t
i;
}
static inline const unsigned char *PushQuantumLongPixel(
- QuantumInfo *quantum_info,const unsigned char *pixels,unsigned int *quantum)
+ QuantumInfo *quantum_info,const unsigned char *restrict pixels,
+ unsigned int *quantum)
{
register ssize_t
i;
unsigned int
pixel;
+ assert(image != (Image *) NULL);
+ assert(image->signature == MagickSignature);
switch (quantum_info->depth)
{
case 8:
unsigned int
pixel;
+ assert(image != (Image *) NULL);
+ assert(image->signature == MagickSignature);
switch (quantum_info->depth)
{
case 8:
unsigned int
pixel;
+ assert(image != (Image *) NULL);
+ assert(image->signature == MagickSignature);
switch (quantum_info->depth)
{
case 8:
unsigned int
pixel;
+ assert(image != (Image *) NULL);
+ assert(image->signature == MagickSignature);
switch (quantum_info->depth)
{
case 8:
unsigned int
pixel;
+ assert(image != (Image *) NULL);
+ assert(image->signature == MagickSignature);
switch (quantum_info->depth)
{
case 10:
unsigned int
pixel;
+ assert(image != (Image *) NULL);
+ assert(image->signature == MagickSignature);
switch (quantum_info->depth)
{
case 1:
unsigned int
pixel;
+ assert(image != (Image *) NULL);
+ assert(image->signature == MagickSignature);
switch (quantum_info->depth)
{
case 1:
register unsigned char
pixel;
+ bit=0;
for (x=((ssize_t) number_pixels-3); x > 0; x-=4)
{
for (bit=0; bit < 8; bit+=2)
unsigned int
pixel;
+ assert(image != (Image *) NULL);
+ assert(image->signature == MagickSignature);
switch (quantum_info->depth)
{
case 8:
unsigned int
pixel;
+ assert(image != (Image *) NULL);
+ assert(image->signature == MagickSignature);
switch (quantum_info->depth)
{
case 8:
}
}
}
+
static void ImportRedQuantum(const Image *image,QuantumInfo *quantum_info,
const MagickSizeType number_pixels,const unsigned char *restrict p,
Quantum *restrict q,ExceptionInfo *exception)
unsigned int
pixel;
+ assert(image != (Image *) NULL);
+ assert(image->signature == MagickSignature);
switch (quantum_info->depth)
{
case 8:
unsigned int
pixel;
+ assert(image != (Image *) NULL);
+ assert(image->signature == MagickSignature);
switch (quantum_info->depth)
{
case 8:
unsigned int
pixel;
+ assert(image != (Image *) NULL);
+ assert(image->signature == MagickSignature);
switch (quantum_info->depth)
{
case 8:
MagickExport size_t ImportQuantumPixels(const Image *image,
CacheView *image_view,QuantumInfo *quantum_info,
- const QuantumType quantum_type,const unsigned char *pixels,
+ const QuantumType quantum_type,const unsigned char *restrict pixels,
ExceptionInfo *exception)
{
MagickSizeType
register ssize_t
i;
- if (GetPixelMask(image,q) == 0)
+ if (GetPixelReadMask(image,q) == 0)
{
q+=GetPixelChannels(image);
continue;