Lines Matching defs:xsize
690 DecodeImage (FILE * file, int planes, int bpp, int xsize, int ysize,
698 /* xsize is byte width, not pixel width */
699 xsize /= planes * bpp;
702 "DecodeImage(planes=%d,bpp=%d,xsize=%d,ysize=%d) => %d (file=%s)\n",
703 planes, bpp, xsize, ysize, planes * bpp * xsize * ysize, filename);
705 in = malloc (planes * (xsize * bpp + 1));
708 p[i] = in + i * (xsize * bpp + 1);
710 buf = malloc (3 * xsize * bpp);
714 fprintf (output, "P%d\n%d %d\n", (planes == 3) ? 6 : 5, xsize, ysize);
719 fread (in, planes * (xsize * bpp + 1), 1, file);
721 for (j = 0; j < xsize; j++)
736 fwrite (buf, planes * xsize * bpp, 1, output);
753 HP5400_DBG (DBG_MSG, " xsize=%d htonl-> %d\n", resp->xsize,
754 htonl (resp->xsize));
785 length = htonl (res.xsize) / 6;
795 buffer = malloc (htonl (res.xsize) + 1);
850 fprintf (file, "P%d\n%d %d\n", 6, htonl (res->xsize) / 3,
854 buffer = malloc (htonl (res->xsize) + 1);
859 fwrite (buffer, htonl (res->xsize), 1, file);
1054 params->iBytesPerLine = htonl (res.xsize);
1184 pParams->iBytesPerLine = htonl (res.xsize);
1336 htonl (res.transfersize), htonl (res.xsize), htons (res.ysize));
1368 htonl (res.xsize), bpp, iColourOffset, 0xF000,