Forward declarations.
*/
static MagickBooleanType
- TransformsRGBImage(Image *,const ColorspaceType,ExceptionInfo *);
+ TransformsRGBImage(Image *,ExceptionInfo *);
\f
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
(void) DeleteImageProfile(image,"icc");
(void) DeleteImageProfile(image,"icm");
if (IssRGBColorspace(colorspace) != MagickFalse)
- return(TransformsRGBImage(image,colorspace,exception));
+ return(TransformsRGBImage(image,exception));
status=MagickTrue;
if (IssRGBColorspace(image->colorspace) == MagickFalse)
- status=TransformsRGBImage(image,image->colorspace,exception);
+ status=TransformsRGBImage(image,exception);
if (status == MagickFalse)
return(status);
/*
% The format of the TransformsRGBImage method is:
%
% MagickBooleanType TransformsRGBImage(Image *image,
-% const ColorspaceType colorspace,ExceptionInfo *exception)
+% ExceptionInfo *exception)
%
% A description of each parameter follows:
%
% o image: the image.
%
-% o colorspace: the colorspace to transform the image to.
-%
% o exception: return any errors or warnings in this structure.
%
*/
}
static MagickBooleanType TransformsRGBImage(Image *image,
- const ColorspaceType colorspace,ExceptionInfo *exception)
+ ExceptionInfo *exception)
{
#define TransformsRGBImageTag "Transform/Image"
if (image->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
assert(pixels != (unsigned char *) NULL);
+ assert(exception != (ExceptionInfo *) NULL);
+ assert(exception->signature == MagickSignature);
table=(TableType *) AcquireQuantumMemory(1UL << 12,sizeof(*table));
if (table == (TableType *) NULL)
return(MagickFalse);
/*
Destroy distributed pixel cache.
*/
+ (void) file;
return(DeleteNodeFromSplayTree(registry,(const void *) session_key));
}
/*
Launch distributed pixel cache server.
*/
+ assert(exception != (ExceptionInfo *) NULL);
+ assert(exception->signature == MagickSignature);
(void) ResetMagickMemory(&hint,0,sizeof(hint));
hint.ai_family=AF_INET;
hint.ai_socktype=SOCK_STREAM;
ssize_t
y;
+ assert(image != (const Image *) NULL);
+ assert(image->signature == MagickSignature);
+ if (image->debug != MagickFalse)
+ (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
assert(f != (Quantum *) NULL);
assert(g != (Quantum *) NULL);
p=f+(columns+2);
alpha_pixel->alpha=(double) GetPixelAlpha(image,pixel);
}
-static inline void AssociateAlphaPixelInfo(const Image *image,
- const CubeInfo *cube_info,const PixelInfo *pixel,
- RealPixelInfo *alpha_pixel)
+static inline void AssociateAlphaPixelInfo(const CubeInfo *cube_info,
+ const PixelInfo *pixel,RealPixelInfo *alpha_pixel)
{
double
alpha;
/*
Store the error.
*/
- AssociateAlphaPixelInfo(image,&cube,image->colormap+index,&color);
+ AssociateAlphaPixelInfo(&cube,image->colormap+index,&color);
current[u].red=pixel.red-color.red;
current[u].green=pixel.green-color.green;
current[u].blue=pixel.blue-color.blue;
*/
(void) CopyMagickMemory(p->error,p->error+1,(ErrorQueueLength-1)*
sizeof(p->error[0]));
- AssociateAlphaPixelInfo(image,cube_info,image->colormap+index,&color);
+ AssociateAlphaPixelInfo(cube_info,image->colormap+index,&color);
p->error[ErrorQueueLength-1].red=pixel.red-color.red;
p->error[ErrorQueueLength-1].green=pixel.green-color.green;
p->error[ErrorQueueLength-1].blue=pixel.blue-color.blue;
register ssize_t
x;
+ assert(exception != (ExceptionInfo *) NULL);
+ assert(exception->signature == MagickSignature);
switch (quantum_info->depth)
{
case 8:
ssize_t
bit;
+ assert(exception != (ExceptionInfo *) NULL);
+ assert(exception->signature == MagickSignature);
switch (quantum_info->depth)
{
case 8:
register ssize_t
x;
+ assert(exception != (ExceptionInfo *) NULL);
+ assert(exception->signature == MagickSignature);
switch (quantum_info->depth)
{
case 8:
register ssize_t
x;
+ assert(exception != (ExceptionInfo *) NULL);
+ assert(exception->signature == MagickSignature);
switch (quantum_info->depth)
{
case 8:
ssize_t
n;
+ assert(exception != (ExceptionInfo *) NULL);
+ assert(exception->signature == MagickSignature);
n=0;
quantum=0;
switch (quantum_info->depth)
register ssize_t
x;
+ assert(exception != (ExceptionInfo *) NULL);
+ assert(exception->signature == MagickSignature);
switch (quantum_info->depth)
{
case 1:
register ssize_t
x;
+ assert(exception != (ExceptionInfo *) NULL);
+ assert(exception->signature == MagickSignature);
switch (quantum_info->depth)
{
case 1:
register ssize_t
x;
+ assert(exception != (ExceptionInfo *) NULL);
+ assert(exception->signature == MagickSignature);
switch (quantum_info->depth)
{
case 8:
register ssize_t
x;
+ assert(exception != (ExceptionInfo *) NULL);
+ assert(exception->signature == MagickSignature);
switch (quantum_info->depth)
{
case 8:
register ssize_t
x;
+ assert(exception != (ExceptionInfo *) NULL);
+ assert(exception->signature == MagickSignature);
switch (quantum_info->depth)
{
case 8:
ssize_t
bit;
+ assert(exception != (ExceptionInfo *) NULL);
+ assert(exception->signature == MagickSignature);
switch (quantum_info->depth)
{
case 8:
register ssize_t
x;
+ assert(exception != (ExceptionInfo *) NULL);
+ assert(exception->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 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:
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 8:
size_t
step;
+ assert(image != (Image *) NULL);
p=source_cells;
q=destination_cells;
for (step=1; step < p->width; step*=2)
*pixel=ScaleShortToQuantum((unsigned short) sqrt(sum_squared-(sum*sum)));
}
-static inline void InsertPixelList(const Image *image,const Quantum pixel,
- PixelList *pixel_list)
+static inline void InsertPixelList(const Quantum pixel,PixelList *pixel_list)
{
size_t
signature;
{
for (u=0; u < (ssize_t) MagickMax(width,1); u++)
{
- InsertPixelList(image,pixels[i],pixel_list[id]);
+ InsertPixelList(pixels[i],pixel_list[id]);
pixels+=GetPixelChannels(image);
}
pixels+=(image->columns-1)*GetPixelChannels(image);
/*
Determine count of values, and check syntax.
*/
+ assert(exception != (ExceptionInfo *) NULL);
+ assert(exception->signature == MagickSignature);
*count=0;
i=0;
p=string;
* we use the RGB format!
*/
static void
-get_page_image(LoadContext *lc, ddjvu_page_t *page, int x, int y, int w, int h, const ImageInfo *image_info, ExceptionInfo *exception ) {
+get_page_image(LoadContext *lc, ddjvu_page_t *page, int x, int y, int w, int h, ExceptionInfo *exception ) {
ddjvu_format_t
*format;
#if 1 /* per_line */
/* q = QueueAuthenticPixels(image,0,0,image->columns,image->rows); */
- get_page_image(lc, lc->page, 0, 0, info.width, info.height, image_info,
- exception);
+ get_page_image(lc, lc->page, 0, 0, info.width, info.height, exception);
#else
int i;
for (i = 0;i< image->rows; i++)
%
% The format of the FindColor method is:
%
-% int FindColor(const Image *image,PixelInfo *pixel)
+% int FindColor(PixelInfo *pixel)
%
% A description of each parameter follows:
%
% o pixel: a pointer to the PixelInfo to be matched.
%
*/
-static int FindColor(const Image *image,PixelInfo *packet)
+static int FindColor(PixelInfo *packet)
{
register ssize_t
i;
q=GetAuthenticPixels(image,0,y,image->columns,1,exception);
for (x=0; x < (ssize_t) image->columns; x++)
{
- SetPixelIndex(image,FindColor(image,&image->colormap[(ssize_t)
+ SetPixelIndex(image,FindColor(&image->colormap[(ssize_t)
GetPixelIndex(image,q)]),q);
q+=GetPixelChannels(image);
}
}
static MagickBooleanType GetTIFFInfo(const ImageInfo *image_info,
- const Image *image,TIFF *tiff,TIFFInfo *tiff_info)
+ TIFF *tiff,TIFFInfo *tiff_info)
{
const char
*option;
/*
Write image scanlines.
*/
- if (GetTIFFInfo(image_info,image,tiff,&tiff_info) == MagickFalse)
+ if (GetTIFFInfo(image_info,tiff,&tiff_info) == MagickFalse)
ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed");
quantum_info->endian=LSBEndian;
pixels=GetQuantumPixels(quantum_info);
CatchException(exception);
if (next_image == (Image *) NULL)
break;
- label=InterpretImageProperties(image_info,next_image,DefaultTileLabel,
- exception);
+ label=InterpretImageProperties((ImageInfo *) image_info,next_image,
+ DefaultTileLabel,exception);
(void) SetImageProperty(next_image,"label",label,exception);
label=DestroyString(label);
if (image_info->debug != MagickFalse)
Read extended header.
*/
offset=RIFF_HEADER_SIZE+TAG_SIZE+CHUNK_SIZE_BYTES+VP8X_CHUNK_SIZE;
- while (offset <= length)
+ while (offset <= (ssize_t) length)
{
uint32_t
chunk_size,
for (x=0; x < (ssize_t) image->columns; x++)
{
*q++=(uint32_t) (image->alpha_trait == BlendPixelTrait ?
- ScaleQuantumToChar(GetPixelAlpha(image,p)) << 24 : 0xff000000u) |
+ ScaleQuantumToChar(GetPixelAlpha(image,p)) << 24 : 0xff000000) |
(ScaleQuantumToChar(GetPixelRed(image,p)) << 16) |
(ScaleQuantumToChar(GetPixelGreen(image,p)) << 8) |
(ScaleQuantumToChar(GetPixelBlue(image,p)));
MagickBooleanType
status;
+ (void) quantum;
image=(Image *) context;
assert(image->signature == MagickSignature);
status=SetImageProgress(image,LoadImagesTag,TellBlob(image),
unsigned int NumOfEntries;
} WPGColorMapRec;
+ /*
typedef struct {
size_t PS_unknown1;
unsigned int PS_unknown2;
unsigned int PS_unknown3;
} WPGPSl1Record;
+ */
Image
*image,