Searched refs:fileHeight (Results 1 - 19 of 19) sorted by relevance

/macosx-10.9.5/tcl-102/tk/tk/generic/
H A DtkImgPPM.c146 int fileWidth, fileHeight, maxIntensity;
151 type = ReadPPMFileHeader(chan, &fileWidth, &fileHeight, &maxIntensity);
157 if ((fileWidth <= 0) || (fileHeight <= 0)) {
174 if ((srcY + height) > fileHeight) {
175 height = fileHeight - srcY;
178 || (srcX >= fileWidth) || (srcY >= fileHeight)) {
484 int fileWidth, fileHeight, maxIntensity;
489 type = ReadPPMStringHeader(dataObj, &fileWidth, &fileHeight,
496 if ((fileWidth <= 0) || (fileHeight <= 0)) {
514 if ((srcY + height) > fileHeight) {
144 int fileWidth, fileHeight, maxIntensity; local
478 int fileWidth, fileHeight, maxIntensity; local
[all...]
H A DtkImgGIF.c261 int fileWidth, fileHeight, imageWidth, imageHeight;
312 if (!ReadGIFHeader(gifConfPtr, chan, &fileWidth, &fileHeight)) {
317 if ((fileWidth <= 0) || (fileHeight <= 0)) {
342 if ((srcY + height) > fileHeight) {
343 height = fileHeight - srcY;
346 || (srcX >= fileWidth) || (srcY >= fileHeight)) {
440 nBytes = fileWidth * fileHeight * 3;
259 int fileWidth, fileHeight, imageWidth, imageHeight; local
/macosx-10.9.5/tcl-102/tk84/tk/generic/
H A DtkImgPPM.c155 int fileWidth, fileHeight, maxIntensity;
160 type = ReadPPMFileHeader(chan, &fileWidth, &fileHeight, &maxIntensity);
166 if ((fileWidth <= 0) || (fileHeight <= 0)) {
183 if ((srcY + height) > fileHeight) {
184 height = fileHeight - srcY;
187 || (srcX >= fileWidth) || (srcY >= fileHeight)) {
486 int fileWidth, fileHeight, maxIntensity;
491 type = ReadPPMStringHeader(dataObj, &fileWidth, &fileHeight,
498 if ((fileWidth <= 0) || (fileHeight <= 0)) {
516 if ((srcY + height) > fileHeight) {
153 int fileWidth, fileHeight, maxIntensity; local
480 int fileWidth, fileHeight, maxIntensity; local
[all...]
H A DtkImgGIF.c248 int fileWidth, fileHeight, imageWidth, imageHeight;
280 if (!ReadGIFHeader(chan, &fileWidth, &fileHeight)) {
285 if ((fileWidth <= 0) || (fileHeight <= 0)) {
307 if ((srcY + height) > fileHeight) {
308 height = fileHeight - srcY;
311 || (srcX >= fileWidth) || (srcY >= fileHeight)) {
402 nBytes = fileWidth * fileHeight * 3;
474 imageHeight, colorMap, fileWidth, fileHeight, srcX, srcY,
246 int fileWidth, fileHeight, imageWidth, imageHeight; local
/macosx-10.9.5/tcl-102/tcl_ext/tkimg/tkimg/ico/
H A Dico.c609 int fileWidth, fileHeight; local
626 if (!CommonMatch(handle, &fileWidth, &fileHeight, &icoHeader)) {
674 fileHeight = infoHeader.height / 2;
683 if (fileWidth != icoHeaderWidth || fileHeight != icoHeaderHeight) {
685 fileWidth, fileHeight,
692 outHeight = fileHeight;
693 if (fileWidth != width || fileHeight != height) {
700 if ((srcY + height) > fileHeight) {
701 outHeight = fileHeight - srcY;
708 || (srcX >= fileWidth) || (srcY >= fileHeight)) {
[all...]
/macosx-10.9.5/tcl-102/tcl_ext/tkimg/tkimg/ppm/
H A Dppm.c744 Int fileWidth, fileHeight, maxIntensity;
767 type = ReadPPMFileHeader (handle, &fileWidth, &fileHeight, &maxIntensity, &isAscii);
774 if ((fileWidth <= 0) || (fileHeight <= 0)) {
794 printImgInfo (fileWidth, fileHeight, maxIntensity, isAscii, type==PGM? 1: 3,
800 if ((srcY + height) > fileHeight) {
801 height = fileHeight - srcY;
804 || (srcX >= fileWidth) || (srcY >= fileHeight)) {
827 tf.ushortBuf = (UShort *)ckalloc (fileWidth*fileHeight*block.pixelSize*sizeof (UShort));
828 if (!readUShortFile(interp, handle, tf.ushortBuf, fileWidth, fileHeight, block.pixelSize,
836 tf.ubyteBuf = (UByte *)ckalloc (fileWidth*fileHeight*bloc
742 Int fileWidth, fileHeight, maxIntensity; local
[all...]
/macosx-10.9.5/tcl-102/tcl_ext/tkimg/tkimg/window/
H A Dwindow.c223 int fileWidth, fileHeight, depth, nBytes, x, y; local
259 fileHeight = Tk_Height(tkwin);
264 if ((srcY + height) > fileHeight) {
265 height = fileHeight - srcY;
/macosx-10.9.5/tcl-102/tcl_ext/tkimg/tkimg/pcx/
H A Dpcx.c250 int fileWidth, int fileHeight, int bytesPerLine, int compr)
261 indBuf = (UByte *) ckalloc (fileWidth * fileHeight);
319 int fileWidth, int fileHeight, int bytesPerLine, int compr)
371 int fileWidth, int fileHeight, int bytesPerLine, int compr)
645 int fileWidth, fileHeight; local
656 CommonMatch(handle, &fileWidth, &fileHeight, &ph);
665 if ((srcY + height) > fileHeight) {
666 outHeight = fileHeight - srcY;
671 || (srcX >= fileWidth) || (srcY >= fileHeight)) {
686 outWidth, outHeight, srcX, srcY, fileWidth, fileHeight,
247 load_8(Tcl_Interp *interp, tkimg_MFile *ifp, Tk_PhotoHandle imageHandle, int destX, int destY, int width, int height, int srcX, int srcY, int fileWidth, int fileHeight, int bytesPerLine, int compr) argument
316 load_24(Tcl_Interp *interp, tkimg_MFile *ifp, Tk_PhotoHandle imageHandle, int destX, int destY, int width, int height, int srcX, int srcY, int fileWidth, int fileHeight, int bytesPerLine, int compr) argument
368 load_1(Tcl_Interp *interp, tkimg_MFile *ifp, Tk_PhotoHandle imageHandle, int destX, int destY, int width, int height, int srcX, int srcY, int fileWidth, int fileHeight, int bytesPerLine, int compr) argument
[all...]
/macosx-10.9.5/tcl-102/tcl_ext/tkimg/tkimg/xbm/
H A Dxbm.c165 int fileWidth, fileHeight; local
171 ReadXBMFileHeader(parseInfo, &fileWidth, &fileHeight);
176 if ((srcY + height) > fileHeight) {
177 height = fileHeight - srcY;
180 || (srcX >= fileWidth) || (srcY >= fileHeight)) {
/macosx-10.9.5/tcl-102/tcl_ext/tkimg/tkimg/sun/
H A Dsun.c503 int fileWidth, int fileHeight, int type)
594 int fileWidth, int fileHeight,
709 int fileWidth, int fileHeight,
1034 int fileWidth, fileHeight; local
1046 CommonMatch(handle, &fileWidth, &fileHeight, &sh);
1055 if ((srcY + height) > fileHeight) {
1056 outHeight = fileHeight - srcY;
1061 || (srcX >= fileWidth) || (srcY >= fileHeight)) {
1127 fileWidth, fileHeight, sh.ras_type))
1134 fileWidth, fileHeight, s
500 load_sun_d1(Tcl_Interp *interp, tkimg_MFile *ifp, Tk_PhotoHandle imageHandle, int destX, int destY, int width, int height, int srcX, int srcY, int fileWidth, int fileHeight, int type) argument
591 load_sun_d8(Tcl_Interp *interp, tkimg_MFile *ifp, Tk_PhotoHandle imageHandle, int destX, int destY, int width, int height, int srcX, int srcY, int fileWidth, int fileHeight, int type, UByte *suncolmap, int maplength) argument
706 load_rgb(Tcl_Interp *interp, tkimg_MFile *ifp, Tk_PhotoHandle imageHandle, int destX, int destY, int width, int height, int srcX, int srcY, int fileWidth, int fileHeight, int nchan, int type, int showMatte) argument
[all...]
/macosx-10.9.5/tcl-102/tcl_ext/tkimg/tkimg/ps/
H A Dps.c239 int len, i, j, fileWidth, fileHeight, maxintensity, index; local
261 fileHeight = height + srcY;
266 fileHeight += (strtoul(p, &p, 0) * zoomy + 36) / 72;
281 sprintf(papersize, "-g%dx%d", srcX+width, fileHeight);
323 srcY += (fileHeight = strtoul(p, &p, 0));
328 if ((srcY + height) > fileHeight) {
329 height = fileHeight - srcY;
/macosx-10.9.5/tcl-102/tcl_ext/tkimg/tkimg/xpm/
H A Dxpm.c220 int fileWidth = 0, fileHeight = 0, numColors = 0, byteSize = 0; local
249 type = ReadXPMFileHeader(handle, &fileWidth, &fileHeight, &numColors, &byteSize);
254 if ((fileWidth <= 0) || (fileHeight <= 0)) {
268 if ((srcY + height) > fileHeight) {
269 height = fileHeight - srcY;
272 || (srcX >= fileWidth) || (srcY >= fileHeight)) {
/macosx-10.9.5/tcl-102/tcl_ext/tkimg/tkimg/raw/
H A Draw.c1173 Int fileWidth, fileHeight; local
1193 CommonMatch (interp, handle, format, &fileWidth, &fileHeight, &tf.th);
1209 if ((srcY + height) > fileHeight) {
1210 outHeight = fileHeight - srcY;
1215 || (srcX >= fileWidth) || (srcY >= fileHeight)) {
1227 tf.floatBuf = (Float *)ckalloc (fileWidth*fileHeight*tf.th.nChans*sizeof (Float));
1228 readFloatFile (handle, tf.floatBuf, fileWidth, fileHeight, tf.th.nChans,
1233 tf.ushortBuf = (UShort *)ckalloc (fileWidth*fileHeight*tf.th.nChans*sizeof (UShort));
1234 readUShortFile (handle, tf.ushortBuf, fileWidth, fileHeight, tf.th.nChans,
1239 tf.ubyteBuf = (UByte *)ckalloc (fileWidth*fileHeight*t
[all...]
/macosx-10.9.5/tcl-102/tcl_ext/tkimg/tkimg/dted/
H A Ddted.c891 Int fileWidth, fileHeight; local
903 CommonMatch (interp, handle, format, &fileWidth, &fileHeight, &tf.th);
919 if ((srcY + height) > fileHeight) {
920 outHeight = fileHeight - srcY;
925 || (srcX >= fileWidth) || (srcY >= fileHeight)) {
931 tf.rawbuf = (Short *)ckalloc (fileWidth * fileHeight *
933 readDtedFile (handle, tf.rawbuf, fileWidth, fileHeight, opts.nchan,
946 remapShortValues (tf.rawbuf, fileWidth, fileHeight, opts.nchan,
971 rawbufPtr = tf.rawbuf + (fileHeight - 1 - y) * fileWidth * opts.nchan;
/macosx-10.9.5/tcl-102/tcl_ext/tkimg/tkimg/bmp/
H A Dbmp.c321 int fileWidth, fileHeight; local
329 CommonMatch(handle, &fileWidth, &fileHeight, &colorMap, &numBits,
373 for(y=srcY+height; y<fileHeight; y++) {
487 y = fileHeight - 1;
/macosx-10.9.5/tcl-102/tcl_ext/tkimg/tkimg/gif/
H A Dgif.c243 int fileWidth, fileHeight, imageWidth, imageHeight;
273 if (!ReadGIFHeader(gifConfPtr, &fileWidth, &fileHeight)) {
278 if ((fileWidth <= 0) || (fileHeight <= 0)) {
304 if ((srcY + height) > fileHeight) {
305 height = fileHeight - srcY;
308 || (srcX >= fileWidth) || (srcY >= fileHeight)) {
393 nBytes = fileWidth * fileHeight * 3;
467 colorMap, fileWidth, fileHeight, srcX, srcY,
242 int fileWidth, fileHeight, imageWidth, imageHeight; local
/macosx-10.9.5/tcl-102/tcl_ext/tkimg/tkimg/tga/
H A Dtga.c791 int fileWidth, fileHeight; local
803 if (!CommonMatch(handle, &fileWidth, &fileHeight, &tf.th))
813 if ((srcY + height) > fileHeight) {
814 outHeight = fileHeight - srcY;
819 || (srcX >= fileWidth) || (srcY >= fileHeight)) {
871 for (y=fileHeight-1; y>=0; y--) {
/macosx-10.9.5/tcl-102/tcl_ext/tkimg/tkimg/jpeg/
H A Djpeg.c528 int fileWidth, fileHeight, stopY, curY, outY, outWidth, outHeight; local
576 fileHeight = (int) cinfo->output_height;
582 if ((srcY + height) > fileHeight) {
583 outHeight = fileHeight - srcY;
588 || (srcX >= fileWidth) || (srcY >= fileHeight)) {
/macosx-10.9.5/tcl-102/tcl_ext/tkimg/tkimg/sgi/
H A Dsgi.c1543 int fileWidth, fileHeight; local
1554 CommonMatch(handle, &fileWidth, &fileHeight, &tf.th);
1563 if ((srcY + height) > fileHeight) {
1564 outHeight = fileHeight - srcY;
1569 || (srcX >= fileWidth) || (srcY >= fileHeight)) {
1612 sgiReadScan (interp, handle, &tf, fileHeight-1-y);

Completed in 112 milliseconds