ImageReader.st
changeset 2043 7b8d741538a0
parent 2039 00e10543cf57
child 2044 9ea84b4ba249
equal deleted inserted replaced
2042:58c0228331bb 2043:7b8d741538a0
  1146     ].
  1146     ].
  1147 
  1147 
  1148 %{
  1148 %{
  1149     if (__isByteArray(data)
  1149     if (__isByteArray(data)
  1150      && __bothSmallInteger(width, height)) {
  1150      && __bothSmallInteger(width, height)) {
  1151 	__decodeDelta__(_ByteArrayInstPtr(data)->ba_element,
  1151 	__decodeDelta__(__ByteArrayInstPtr(data)->ba_element,
  1152 		    _intVal(width), _intVal(height));
  1152 		    _intVal(width), _intVal(height));
  1153 	RETURN ( self );
  1153 	RETURN ( self );
  1154     }
  1154     }
  1155 %}
  1155 %}
  1156 .
  1156 .
  1163      Calls primitive c function for speed"
  1163      Calls primitive c function for speed"
  1164 %{
  1164 %{
  1165     if (__isByteArray(srcBytes) 
  1165     if (__isByteArray(srcBytes) 
  1166      && __isByteArray(dstBytes)
  1166      && __isByteArray(dstBytes)
  1167      && __bothSmallInteger(offset, count)) {
  1167      && __bothSmallInteger(offset, count)) {
  1168 	if (__decodeCCITTgroup3__(_ByteArrayInstPtr(srcBytes)->ba_element,
  1168 	if (__decodeCCITTgroup3__(__ByteArrayInstPtr(srcBytes)->ba_element,
  1169 			          _ByteArrayInstPtr(dstBytes)->ba_element
  1169 			          __ByteArrayInstPtr(dstBytes)->ba_element
  1170 			          + _intVal(offset) - 1,
  1170 			          + _intVal(offset) - 1,
  1171 			          _intVal(count))) {
  1171 			          _intVal(count))) {
  1172 	    RETURN ( self );
  1172 	    RETURN ( self );
  1173 	}
  1173 	}
  1174     }
  1174     }
  1955 ! !
  1955 ! !
  1956 
  1956 
  1957 !ImageReader class methodsFor:'documentation'!
  1957 !ImageReader class methodsFor:'documentation'!
  1958 
  1958 
  1959 version
  1959 version
  1960     ^ '$Header: /cvs/stx/stx/libview/ImageReader.st,v 1.60 1998-02-03 16:51:57 cg Exp $'
  1960     ^ '$Header: /cvs/stx/stx/libview/ImageReader.st,v 1.61 1998-02-05 14:22:39 cg Exp $'
  1961 ! !
  1961 ! !