[squeak-dev] The Trunk: GraphicsTests-fbs.37.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Nov 26 21:53:01 UTC 2013


Frank Shearar uploaded a new version of GraphicsTests to project The Trunk:
http://source.squeak.org/trunk/GraphicsTests-fbs.37.mcz

==================== Summary ====================

Name: GraphicsTests-fbs.37
Author: fbs
Time: 26 November 2013, 9:51:06.193 pm
UUID: 5dc6ffa0-90d2-124c-a238-2615e5f53779
Ancestors: GraphicsTests-fbs.36

This is a test, even though it's not a unit test.

=============== Diff against GraphicsTests-fbs.36 ===============

Item was added:
+ ----- Method: JPEGReadWriter>>decompressionTest (in category '*GraphicsTests') -----
+ decompressionTest
+ 	"Test decompression; don't generate actual image"
+ 	
+ MessageTally spyOn:[ | x xStep yStep y |
+ 	ditherMask := DitherMasks at: 32.
+ 	residuals := WordArray new: 3.
+ 	sosSeen := false.
+ 	self parseFirstMarker.
+ 	[sosSeen] whileFalse: [self parseNextMarker].
+ 	xStep := mcuWidth * DCTSize.
+ 	yStep := mcuHeight * DCTSize.
+ 	y := 0.
+ 	1 to: mcuRowsInScan do:
+ 		[:row |
+ 		x := 0.
+ 		1 to: mcusPerRow do:
+ 			[:col |
+ 			self decodeMCU.
+ 			self idctMCU.
+ 			self colorConvertMCU.
+ 			x := x + xStep].
+ 		y := y + yStep].
+ ].!



More information about the Squeak-dev mailing list