equal
deleted
inserted
replaced
1025 lShGreen = __intVal(shiftGreen), |
1025 lShGreen = __intVal(shiftGreen), |
1026 lShBlue = __intVal(shiftBlue); |
1026 lShBlue = __intVal(shiftBlue); |
1027 int x, y, w; |
1027 int x, y, w; |
1028 |
1028 |
1029 unsigned char *srcPtr = _ByteArrayInstPtr(_INST(bytes))->ba_element; |
1029 unsigned char *srcPtr = _ByteArrayInstPtr(_INST(bytes))->ba_element; |
1030 char *dstPtr = _ByteArrayInstPtr(imageBits)->ba_element; |
1030 unsigned char *dstPtr = _ByteArrayInstPtr(imageBits)->ba_element; |
1031 |
1031 |
1032 w = __intVal(_INST(width)); |
1032 w = __intVal(_INST(width)); |
1033 if ((rShRed == 0) && (rShGreen == 0) && (rShBlue == 0)) { |
1033 if ((rShRed == 0) && (rShGreen == 0) && (rShBlue == 0)) { |
1034 for (y=__intVal(_INST(height)); y > 0; y--) { |
1034 for (y=__intVal(_INST(height)); y > 0; y--) { |
1035 for (x=w; x > 0; x--) { |
1035 for (x=w; x > 0; x--) { |
1095 lShGreen = __intVal(shiftGreen), |
1095 lShGreen = __intVal(shiftGreen), |
1096 lShBlue = __intVal(shiftBlue); |
1096 lShBlue = __intVal(shiftBlue); |
1097 int x, y, w; |
1097 int x, y, w; |
1098 |
1098 |
1099 unsigned char *srcPtr = _ByteArrayInstPtr(_INST(bytes))->ba_element; |
1099 unsigned char *srcPtr = _ByteArrayInstPtr(_INST(bytes))->ba_element; |
1100 char *dstPtr = _ByteArrayInstPtr(imageBits)->ba_element; |
1100 unsigned char *dstPtr = _ByteArrayInstPtr(imageBits)->ba_element; |
1101 |
1101 |
1102 w = __intVal(_INST(width)); |
1102 w = __intVal(_INST(width)); |
1103 if ((rShRed == 0) && (rShGreen == 0) && (rShBlue == 0)) { |
1103 if ((rShRed == 0) && (rShGreen == 0) && (rShBlue == 0)) { |
1104 for (y=__intVal(_INST(height)); y > 0; y--) { |
1104 for (y=__intVal(_INST(height)); y > 0; y--) { |
1105 for (x=w; x > 0; x--) { |
1105 for (x=w; x > 0; x--) { |
1169 lShGreen = __intVal(shiftGreen), |
1169 lShGreen = __intVal(shiftGreen), |
1170 lShBlue = __intVal(shiftBlue); |
1170 lShBlue = __intVal(shiftBlue); |
1171 int x, y, w; |
1171 int x, y, w; |
1172 |
1172 |
1173 unsigned char *srcPtr = _ByteArrayInstPtr(_INST(bytes))->ba_element; |
1173 unsigned char *srcPtr = _ByteArrayInstPtr(_INST(bytes))->ba_element; |
1174 char *dstPtr = _ByteArrayInstPtr(imageBits)->ba_element; |
1174 unsigned char *dstPtr = _ByteArrayInstPtr(imageBits)->ba_element; |
1175 |
1175 |
1176 w = __intVal(_INST(width)); |
1176 w = __intVal(_INST(width)); |
1177 if ((rShRed == 0) && (rShGreen == 0) && (rShBlue == 0)) { |
1177 if ((rShRed == 0) && (rShGreen == 0) && (rShBlue == 0)) { |
1178 for (y=__intVal(_INST(height)); y > 0; y--) { |
1178 for (y=__intVal(_INST(height)); y > 0; y--) { |
1179 for (x=w; x > 0; x--) { |
1179 for (x=w; x > 0; x--) { |
1318 int __bytesPerRow = __intVal(bytesPerRow); |
1318 int __bytesPerRow = __intVal(bytesPerRow); |
1319 int __bytesPerOutRow = __intVal(bytesPerOutRow); |
1319 int __bytesPerOutRow = __intVal(bytesPerOutRow); |
1320 int __pixel; |
1320 int __pixel; |
1321 int __greyLevels = __intVal(greyLevels); |
1321 int __greyLevels = __intVal(greyLevels); |
1322 |
1322 |
1323 char *__outBits = __ByteArrayInstPtr(outBits)->ba_element; |
1323 unsigned char *__outBits = __ByteArrayInstPtr(outBits)->ba_element; |
1324 unsigned char *__bytes = __ByteArrayInstPtr(__INST(bytes))->ba_element; |
1324 unsigned char *__bytes = __ByteArrayInstPtr(__INST(bytes))->ba_element; |
1325 unsigned char *__greyMap1 = __ByteArrayInstPtr(greyMap1)->ba_element; |
1325 unsigned char *__greyMap1 = __ByteArrayInstPtr(greyMap1)->ba_element; |
1326 unsigned char *__greyMap2 = __ByteArrayInstPtr(greyMap2)->ba_element; |
1326 unsigned char *__greyMap2 = __ByteArrayInstPtr(greyMap2)->ba_element; |
1327 short *__errorArray = (short *)(__ByteArrayInstPtr(errorArray)->ba_element); |
1327 short *__errorArray = (short *)(__ByteArrayInstPtr(errorArray)->ba_element); |
1328 short *__errorArray1 = (short *)(__ByteArrayInstPtr(errorArray1)->ba_element); |
1328 short *__errorArray1 = (short *)(__ByteArrayInstPtr(errorArray1)->ba_element); |
1487 int __nextSrc; |
1487 int __nextSrc; |
1488 int __bytesPerRow = __intVal(bytesPerRow); |
1488 int __bytesPerRow = __intVal(bytesPerRow); |
1489 int __bytesPerOutRow = __intVal(bytesPerOutRow); |
1489 int __bytesPerOutRow = __intVal(bytesPerOutRow); |
1490 int __pixel; |
1490 int __pixel; |
1491 |
1491 |
1492 char *__outBits = __ByteArrayInstPtr(outBits)->ba_element; |
1492 unsigned char *__outBits = __ByteArrayInstPtr(outBits)->ba_element; |
1493 unsigned char *__ditherMatrix = __ByteArrayInstPtr(ditherMatrix)->ba_element; |
1493 unsigned char *__ditherMatrix = __ByteArrayInstPtr(ditherMatrix)->ba_element; |
1494 unsigned char *__bytes = __ByteArrayInstPtr(__INST(bytes))->ba_element; |
1494 unsigned char *__bytes = __ByteArrayInstPtr(__INST(bytes))->ba_element; |
1495 unsigned char *__greyMap1 = __ByteArrayInstPtr(greyMap1)->ba_element; |
1495 unsigned char *__greyMap1 = __ByteArrayInstPtr(greyMap1)->ba_element; |
1496 unsigned char *__greyMap2 = __ByteArrayInstPtr(greyMap2)->ba_element; |
1496 unsigned char *__greyMap2 = __ByteArrayInstPtr(greyMap2)->ba_element; |
1497 |
1497 |
1615 int __nextDst; |
1615 int __nextDst; |
1616 int __nextSrc; |
1616 int __nextSrc; |
1617 int __bytesPerRow = __intVal(bytesPerRow); |
1617 int __bytesPerRow = __intVal(bytesPerRow); |
1618 int __bytesPerMonoRow = __intVal(bytesPerMonoRow); |
1618 int __bytesPerMonoRow = __intVal(bytesPerMonoRow); |
1619 |
1619 |
1620 char *__monoBits = __ByteArrayInstPtr(monoBits)->ba_element; |
1620 unsigned char *__monoBits = __ByteArrayInstPtr(monoBits)->ba_element; |
1621 unsigned char *__ditherMatrix = __ByteArrayInstPtr(ditherMatrix)->ba_element; |
1621 unsigned char *__ditherMatrix = __ByteArrayInstPtr(ditherMatrix)->ba_element; |
1622 unsigned char *__bytes = __ByteArrayInstPtr(__INST(bytes))->ba_element; |
1622 unsigned char *__bytes = __ByteArrayInstPtr(__INST(bytes))->ba_element; |
1623 |
1623 |
1624 __oY = __dY = 0; |
1624 __oY = __dY = 0; |
1625 for (__y=0; __y<__h; __y++) { |
1625 for (__y=0; __y<__h; __y++) { |
2201 ! ! |
2201 ! ! |
2202 |
2202 |
2203 !Depth24Image class methodsFor:'documentation'! |
2203 !Depth24Image class methodsFor:'documentation'! |
2204 |
2204 |
2205 version |
2205 version |
2206 ^ '$Header: /cvs/stx/stx/libview/Depth24Image.st,v 1.53 1997-06-24 20:25:38 cg Exp $' |
2206 ^ '$Header: /cvs/stx/stx/libview/Depth24Image.st,v 1.54 1997-07-18 22:41:23 cg Exp $' |
2207 ! ! |
2207 ! ! |