Resources Contact Us Home
Browse by: INVENTOR PATENT HOLDER PATENT NUMBER DATE
 
 
Printing system and method
RE36947 Printing system and method

Patent Drawings:
Inventor: Wood, et al.
Date Issued: November 7, 2000
Application: 08/310,249
Filed: September 21, 1994
Inventors: Kochan; Stephen (Kinnelon, NJ)
Wood; Patrick (Netcong, NJ)
Assignee: Electronics for Imaging, Inc. (Foster City, CA)
Primary Examiner: Evans; Arthur G.
Assistant Examiner:
Attorney Or Agent: Glenn; Michael A.
U.S. Class: 358/1.14; 358/1.15; 358/1.16; 358/1.3
Field Of Search: 395/101; 395/103; 395/106; 395/113; 395/114; 395/115; 395/116; 395/164; 395/165; 358/296; 358/261.1; 358/427; 358/448; 358/450; 358/426; 358/453; 358/460; 358/462; 358/431; 358/432; 358/433; 358/467; 382/232; 382/233; 382/254; 382/264; 345/202; 345/203; 345/146; 345/507; 345/516
International Class: G06K 15/00
U.S Patent Documents: 3921135; 4725815; 4791680; 5068805; 5206735
Foreign Patent Documents: 0378316; 3816627 A1
Other References:

Abstract: A image is printed from a source of drawing instructions. The image is reducible to pixels arranged in a plurality of ranked image lines. The system employs a storage device having compressed and uncompressed regions. Each region has a designated capacity and each is arranged to store pixels of one more of the plurality of image lines. A drawing processor is coupled to the storage device and can be coupled to the source of drawing instructions for responding thereto. This drawing processor can store new pixels in the storage device for successively selected ones of the image lines. The drawing processor has a conditional device, a decompression device and an insertion device. The conditional device can compressively encode and move from the uncompressed region to the compressed region, a remote one of the image lines, if: a) the selected one of the image lines is in the compressed region, and b) the uncompressed region has reached its designated capacity. The decompression device can expansively decode the selected one of the image lines, if located in the compressed region. The insertion device can insert one or more new pixels according to the drawing instructions into the selected one of the image lines by storing the selected one in the uncompressed region. The printing system also has a printing engine coupled to the storage device for printing the plurality of image lines in rank order, decompressing compressed ones of the image lines from the compressed region before printing.
Claim: We claim:

1. A printing system for printing from a source of drawing instructions a two dimensional image reducible to pixels arranged in a plurality of ranked image lines, comprising:

a storage means having a compressed region and an uncompressed region, each having a designated capacity and each being arranged to store pixels of one or more of said plurality of image lines;

drawing means coupled to said storage means and adapted to be coupled to said source of drawing instructions for responding thereto, said drawing means being operable to store new pixels in said storage means for successively selected ones ofsaid image lines, said drawing means including:

(a) conditional means for compressively encoding and moving from said uncompressed region to said compressed region a remote one of said image lines, if (i) the selected one of said image lines is in said compressed region and (ii) saiduncompressed region has reached its designated capacity;

(b) decompression means for expansively decoding said selected one of said image lines, if located in said compressed region; and

(c) insertion means for inserting one or more new pixels according to said drawing instructions into said selected one of said image lines by storing said selected one in said uncompressed region; and

printing means coupled to said storage means for printing said plurality of image lines in rank order, decompressing compressed ones of said image lines from said compressed region before printing.

2. A printing system according to claim 1 wherein said drawing means is operable to store in the storage means pixels associated with a full page worth of the instructions, said printing means being operable to await the storage in said storagemeans of said full page worth of said pixels before printing the image lines of said page.

3. A printing system according to claim 2 wherein said decompression means is operable to compressively encode and move from said uncompressed region to said compressed region said remote one of said image lines together with a plurality ofother ones of said image lines proximate said remote one, so that lines are moved in groups.

4. A printing system according to claim 3 wherein said decompression means is operable to expansively decode and move from said compressed region to said uncompressed region said selected one of said image lines together with a plurality ofother ones of said image lines proximate said .[.remote.]. .Iadd.selected .Iaddend.one, so that lines are moved in groups.

5. A printing system according to claim 2 wherein said drawing means is operable to successively decompose one or more of the instructions from said source of drawing instructions into a list of simpler directions and store said list in saidstorage means, said drawing means being operable to numerically limit the instructions to keep said list within a designated size.

6. A printing system according to claim 5 wherein said two dimensional image comprises a plurality of contiguous bands and each of the image lines is allocated to a corresponding one of said bands, said drawing means being operable to scan thebands and restrict selection of said image lines to those allocated to a current one of said bands, said drawing means being operable to cyclically execute the directions of said list with a scope limited to storing pixels in the storage means for theimage lines contained within the current one of said bands.

7. A printing system according to claim 6 wherein said drawing means is operable to overwrite the list of directions by decomposing and storing in said storage means unused ones of the instructions from said source of drawing instructions, saiddrawing means being operable to rescan the bands and restrict selection of said image lines to those allocated to a current one of said bands, said drawing means being operable to again cyclically execute the latest ones of the directions with a scopelimited to storing pixels in the storage means for the image lines contained within the current one of said bands.

8. A printing system according to claim 7 wherein said conditional means is operable to compressively encode said image lines at a chosen one of a plurality of encoding densities and is operable to move said image lines to said compressed regionwith a compression code signifying said chosen one of said encoding densities.

9. A printing system according to claim 8 comprising:

means for determining at least one of the characteristics of the image, said drawing means being operable to select said chosen one of said densities in response to said one of the characteristics of said image.

10. A printing system according to claim 8 wherein said storage means has a printing region, said printing means being operable to expansively decode said image lines in rank order and store them in said printing region.

11. A printing system according to claim 8 wherein said decompression means is operable to store said selected one of said image lines after decompression in said uncompressed region with an uncompressed code signifying a lack of compression,said printing means being operable to store said image lines in said printing region without a code signifying a lack of compression.

12. A printing system according to claim 8 wherein said storage means is volatile and has a total capacity insufficient to hold all of said image lines uncompressed, the densest one of said encoding densities having the capability of reducingthe resolution of the two dimensional image and storing it at a density that enables storage in said storage means of all of said image lines, without regard to the number and arrangement of pixels in said image lines, so that nonvolatile memory isunneeded for storing said image lines.

13. A printing system according to claim 8 wherein said decompression means is operable to sense the compression code and in response thereto expansively decode said selected one of said image lines with respect to said chosen one of saidencoding densities.

14. A printing system according to claim 13 wherein said conditional means is operable if said compressed region has reached its designated capacity to compressively re-encode at least some of the image lines in said compressed region at adenser one of said densities.

15. A printing system according to claim 13 further comprising a non-volatile memory coupled to said drawing means, said conditional means being operable to move at least some of the image lines in said compressed region to said non-volatilememory, if said compressed region has reached its designated capacity and the image lines in said compressed region are encoded at the densest permissible one of said densities.

16. A printing system according to claim 13 further comprising a non-volatile memory coupled to said drawing means, said conditional means being operable to move at least some of the image lines in said compressed region to said non-volatilememory, if said compressed region has reached its designated capacity.

17. A printing system according to claim 16 wherein said decompression means is operable to expansively decode said selected one of said image lines, if located in said non-volatile memory.

18. A printing system according to claim 2 wherein said drawing means is operable to change the ratio of the capacities of said compressed and said uncompressed regions by redesignating portions of one in favor of the other in response to theavailability of storage space in one or more of the regions of said storage means.

19. A printing system according to claim 2 wherein said conditional means is operable to compressively encode said image lines at a chosen one of a plurality of encoding densities and is operable to move said image lines to said compressedregion with a compression code signifying said chosen one of said encoding densities, said drawing means being operable to change the ratio of the capacities of said compressed and said uncompressed regions by redesignating portions of one in favor ofthe other in response to the choosing of the chosen one of said encoding densities.

20. A printing system according to claim 2 wherein said drawing means is operable to change the ratio of the capacities of said compressed and said uncompressed regions by redesignating portions of one in favor of the other in response to thesize of page to be printed by said printing means.

21. A printing system according to claim 1 wherein said source of drawing instructions comprises a computer assembly having a processor and a computer memory spaced and packaged separately from said storage means, said drawing means and saidprinting means.

22. A printing system according to claim 21 further comprising:

a printer casing containing said storage means, said drawing means and said printing means.

23. A printing system according to claim 6 wherein said source of drawing instructions comprises a computer assembly having a processor and a computer memory spaced and packaged separately from said storage means, said drawing means and saidprinting means.

24. A printing system according to claim 1 wherein said source of drawing instructions includes a computer assembly having a processor and a computer memory spaced and packaged separately from said printing means, said printing system furthercomprising:

a frame attached to said computer assembly for supporting said drawing means and said storage means.

25. A printing system according to claim 24 wherein said drawing means is operable to successively decompose one or more of the instructions from said source of drawing instructions into a list of simpler directions and store said list in saidstorage means, said drawing means being operable to numerically limit the instructions to keep said list within a designated size.

26. A printing system according to claim 25 wherein said two dimensional image comprises a plurality of contiguous bands and each of the image lines is allocated to a corresponding one of said bands, said drawing means being operable to scan thebands and restrict selection of said image lines to those allocated to a current one of said bands, said drawing means being operable to cyclically execute the directions of said list with a scope limited to storing pixels in the storage means for theimage lines contained within the current one of said bands.

27. A printing method employing a storage means having a compressed region and an uncompressed region for printing from a source of drawing instructions a two dimensional image reducible to pixels arranged in a plurality of ranked image lines,comprising the steps of:

storing new pixels in said storage means for successively selected ones of said image lines by:

(a) compressively encoding and moving from said uncompressed region to said compressed region a remote one of said image lines, if (i) the selected one of said image lines is in said compressed region and (ii) said uncompressed region has reachedits capacity;

(b) expansively decoding said selected one of said image lines, if located in said compressed region; and

(c) inserting one or more new pixels according to said drawing instructions into said selected one of said image lines by storing said selected one in said uncompressed region; and

printing said plurality of image lines in rank order, decompressing compressed ones of said image lines from said compressed region before printing.

28. A printing method according to claim 27 wherein the step of storing new pixels comprises the steps of:

successively decomposing one or more of the instructions from said source of drawing instructions into a list of simpler directions, while numerically limiting the instructions to keep said list within a designated size; and

saving said list in said storage means.

29. A printing method according to claim 28 wherein said two dimensional image comprises a plurality of contiguous bands and each of the image lines is allocated to a corresponding one of said bands, the step of storing new pixels comprises thesteps of:

scanning the bands and restricting selection of said image lines to those allocated to a current one of said bands; and

cyclically executing the directions of said list with a scope limited to storing pixels in the storage means for the image lines contained within the current one of said bands.

30. A printing method according to claim 29 comprising the steps of:

overwriting the list of directions by decomposing and storing in said storage means unused ones of the instructions from said source of drawing instructions;

rescanning the bands and restricting selection of said image lines to those allocated to a current one of said bands; and

again cyclically executing the latest ones of the directions with a scope limited to storing pixels in the storage means for the image lines contained within the current one of said bands.

31. A printing method according to claim 30 comprising the steps of:

compressively encoding said image lines at a chosen one of a plurality of encoding densities; and

storing said image lines in said compressed region with a compression code signifying said chosen one of said encoding densities.

32. A printing method according to claim 31 comprising the step of:

sensing the compression code and in response thereto expansively decoding said selected one of said image lines with respect to said chosen one of said encoding densities.

33. A printing method according to claim 32 comprising the step of:

compressively re-encoding at least some of the image lines in said compressed region at a denser one of said densities, if said compressed region has reached its capacity.

34. A printing method according to claim 31 comprising the step of:

determining at least one of the characteristics of the image, said chosen one of said densities being selected in dependence upon said one of the characteristics of said image.

35. A printing method according to claim 31 wherein the step of storing said selected one of said image lines after decompression in said .[.compressed.]. .Iadd.uncompressed .Iaddend.region is performed by storing said selected one with anuncompressed code signifying a lack of compression, the step of printing being performed by storing said image lines in said storage means without a code signifying a lack of compression.

36. A printing method according to claim 31 wherein said storage means is volatile and has a total capacity insufficient to hold all of said image lines uncompressed, the densest one of said encoding densities having the capability of reducingthe resolution of the two dimensional image and storing it at a density that enables storage in said storage means of all of said image lines, without regard to the number and arrangement of pixels in said image lines, so that nonvolatile memory isunneeded for storing said image lines.

37. A printing method according to claim 27 wherein the step of compressively encoding and moving is performed by encoding and moving from said uncompressed region to said compressed region said remote one of said image lines together with aplurality of other ones of said image lines, so that lines are moved in groups.

38. A printing method according to claim 37 wherein the step of expansively decoding is performed by decoding and moving from said compressed region to said uncompressed region said selected one of said image lines together with a plurality ofother ones of said image lines, so that lines are moved in groups.

39. A printing method according to claim 27 further comprising the step of

changing the ratio of the capacities of said compressed and said uncompressed regions by redesignating portions of one in favor of the other in response to the availability of storage space in one or more of the regions of said storage means.

40. A printing method according to claim 27 further comprising the steps of:

compressively encoding said image lines at a chosen one of a plurality of encoding densities; and

moving said image lines to said compressed region with a compression code signifying said chosen one of said encoding densities; and

changing the ratio of the capacities of said compressed and said uncompressed regions by redesignating portions of one in favor of the other in response to the choosing of the chosen one of said encoding densities.

41. A printing method according to claim 27 further comprising the step of:

changing the ratio of the capacities of said compressed and said uncompressed regions by redesignating portions of one in favor of the other in dependence upon the size of page to be printed. .Iadd.

42. A method for producing image-defining data, comprising the steps of:

storing in a memory a plurality of drawing instructions;

executing a first drawing instruction of said plurality of drawing instructions to generate data;

compressing said data;

storing said compressed data in said memory;

executing a second drawing instruction of said plurality of drawing instructions, said second drawing instruction creating a need to modify said compressed data;

decompressing said compressed data in response to said need to modify said compressed data; and

modifying said decompressed data in accordance with said second drawing instruction to produce modified data..Iaddend..Iadd.43. The method of claim 42, wherein said data comprise a set of data..Iaddend..Iadd.44. The method of claim 43, whereinsaid set of data comprises an image line of data..Iaddend..Iadd.45. The method of claim 43, wherein said set of data comprises at least a portion of a band of data including a plurality of image lines of data..Iaddend..Iadd.46. The method of claim 42,wherein said data comprise pixel data..Iaddend..Iadd.47. The method of claim 42, wherein said modification step adds data to said decompressed data..Iaddend..Iadd.48. The method of claim 42, further comprising the

step of printing an image based on said modified data..Iaddend..Iadd.49. The method of claim 42, wherein said compressing step comprises:

compressing at least a portion of a set of data at a first compression density;

determining when said memory is insufficient to contain said compressed data;

further compressing said compressed portion of said set of data using a second compression density, said second compression density being denser than said first compression density..Iaddend..Iadd.50. The method of claim 49, wherein said firstcompression density is selected based on a sensed parameter..Iaddend..Iadd.51. The method of claim 50, wherein said sensed parameter is selected from the group consisting of identification of a printer, characteristics of a printer, examination ofdrawing instructions, interrogation of a printer, available memory, and combinations thereof..Iaddend..Iadd.52. The method of claim 42, wherein said compressing step comprises using a data compression technique enabling storage in said memory ofsubstantially all of said image defining data..Iaddend..Iadd.53. The method of claim 52, wherein said data compression technique compresses data to a density which results in a loss of data..Iaddend..Iadd.54. The method of claim 53, wherein said data

compression technique is a discrete cosine transform..Iaddend..Iadd.55. The method of claim 52, wherein said data compression technique compresses data to a density which results in a reduction of resolution..Iaddend..Iadd.56. The method ofclaim 42, further comprising the step of recompressing said modified data..Iaddend..Iadd.57. The method of claim 52, further comprising the step of further compressing said compressed data so that said data may be stored in said memory at a densitywhich enables storage of substantially all of said image defining data..Iaddend..Iadd.58. The method of claim 42, further comprising the step of printing an image based on a mixture of compressed and uncompressed data, said compressed data beingdecompressed prior to being printed..Iaddend..Iadd.59. A method for producing image-defining data in accordance with drawing instructions, said data capable of being used to generate an image, said method comprising the steps of:

compressing said data;

decompressing said compressed data in response to a need to modify at least a portion of said data; and

modifying at least a portion of said data to provide modified data, said modification step occurring prior to generating any image based on said data..Iaddend..Iadd.60. The method of claim 59, wherein said compressing step comprises using a datacompression technique enabling storage in a memory of substantially all of said image defining data..Iaddend..Iadd.61. The method of claim 60, wherein said data compression technique compresses said data to a density which results in a loss ofdata..Iaddend..Iadd.62. The method of claim 61, wherein said data compression technique is a discrete cosine transform..Iaddend..Iadd.63. The method of claim 62, wherein said data compression technique compresses data to a density which results in areduction of resolution..Iaddend..Iadd.64. The method of claim 59, where said data comprises a band of data..Iaddend..Iadd.65. The method of claim 64, wherein said band of data comprises a plurality of image lines of data..Iaddend..Iadd.66. The methodof claim 59, wherein said data comprise pixel data..Iaddend..Iadd.67. The method of claim 64, wherein said modification step adds data to said decompressed band of data..Iaddend..Iadd.68. The method of claim 64, further comprising the step of printingan image based on said modified band of data..Iaddend..Iadd.69. A method for producing image-defining data in accordance with drawing instructions, said data capable of being used to generate an image, said method comprising the steps of:

compressing at least a portion of said data; and

modifying at least a portion of said compressed data in accordance with a drawing instruction requiring said modification, said modifying step occurring prior to generating any image based on said

data..Iaddend..Iadd. 0. The method of claim 69, wherein said compressing step comprises using a data compression technique enabling storage of substantially all of said image defining data in a memory..Iaddend..Iadd.71. The method of claim70, wherein said data compression technique compresses data to a density which results in a loss of data..Iaddend..Iadd.72. The method of claim 70, wherein said data compression technique compresses data to a density which results in a reduction ofresolution..Iaddend..Iadd.73. The method of claim 69, wherein said modifying step comprises:

decompressing at least a portion of compressed data requiring modification; and

modifying at least a portion of said decompressed data..Iaddend..Iadd.74. The method of claim 73, further comprising the step of generating an image

based on said modified decompressed data..Iaddend..Iadd.75. The method of claim 74, wherein said generating step comprises printing an image based on said modified decompressed data..Iaddend..Iadd.76. The method of claim 69, wherein said datacomprise a set of data..Iaddend..Iadd.77. The method of claim 76, wherein said set of data comprises an image line of data..Iaddend..Iadd.78. The method of claim 69 or 73, wherein said set of data comprises a band of data including a plurality of imagelines of data..Iaddend..Iadd.79. The method of claim 69, wherein said modifying step comprises adding data to said decompressed data..Iaddend..Iadd.80. The method of claim 69, wherein said modifying step comprises:

decompressing at least the portion of compressed data requiring modification; and

modifying at least a portion of said decompressed data..Iaddend..Iadd.81. The method of claim 80, further comprising the step of generating an image based on said modified decompressed data..Iaddend..Iadd.82. The method of claim 69, furthercomprising the step of generating an image based on said

modified compressed data..Iaddend..Iadd.83. The method of claim 69, further comprising the step of generating an image based on uncompressed data and said compressed modified data..Iaddend..Iadd.84. A method for producing image-defining datain accordance with drawing instructions, said method comprising the steps of:

successively storing, in a memory having a finite capacity, data generated in accordance with successive drawing instructions, said memory having an uncompressed region and a compressed region, the relative sizes of said compressed region andsaid uncompressed region varying in response to the memory requirements of said data;

determining whether said data can be stored in said uncompressed region without exceeding said uncompressed region's capacity;

responsive to a determination that said data will exceed said capacity of said uncompressed region, compressing said data;

increasing the amount of memory devoted to said compressed region;

storing said compressed data in said compressed region;

decompressing said compressed data and storing said decompressed data in said memory in response to a second drawing instruction; and

modifying said decompressed data in accordance with said second drawing instruction to produce modified data..Iaddend..Iadd.85. The method of claim 84, further comprising the step of recompressing said modified

data..Iaddend..Iadd.86. The method of claim 85, further comprising the step of printing an image based at least in part on said recompressed data..Iaddend..Iadd.87. A method for producing a set of image-defining data in response to drawinginstructions, said method comprising the steps of:

storing a first set of data produced in accordance with a first drawing instruction in a memory having a data storage capacity, said memory also storing, in a compressed form, one or more other sets of data that were produced in accordance withother, previous drawing instructions;

compressing said first set of data in said memory in response to (i) a need to modify, in accordance with a subsequent drawing instruction, a selected one of said compressed other sets of data stored in said memory, and (ii) a determination thatsaid memory has reached a predetermined limit of its designated data storage capacity;

decompressing at least a portion of said selected one of said other sets of data to produce a second set of data; and

modifying at least a portion of said second set of data in accordance with said subsequent drawing instruction..Iaddend..Iadd.88. The method of claim 87, wherein said compressing step comprises:

compressing at least a portion of a set of data at a first compression density;

determining when said memory is insufficient to contain said compressed data;

further compressing said compressed portion of said set of data using a second compression density, said second compression density being denser than said first compression density..Iaddend..Iadd.89. The method of claim 88, wherein said firstcompression density is selected based on a sensed parameter..Iaddend..Iadd.90. The method of claim 89, wherein said sensed parameter is selected from the group consisting of identification of a printer, characteristics of a printer, examination ofdrawing instructions, interrogation of a printer, available memory, and combinations thereof..Iaddend..Iadd.91. The method of claim 87, wherein said compressing step comprises further compressing said data so that it may be stored in said memory at adensity which enables storage of substantially all of said image defining data..Iaddend..Iadd.92. The method of claim 91, wherein said data compression technique compresses data to a density which results in a reduction of imageclarity..Iaddend..Iadd.93. A method for creating image-defining data in accordance with drawing instructions, said data existing as stored sets of data in a memory and capable of being modified by subsequent ones of said drawing instructions, saidmethod comprising the steps of:

determining whether a set of data, desired to be modified in accordance with a drawing instruction, is stored in said memory in an uncompressed or a compressed form;

producing a modified set of data by:

(1) if said data are determined to be uncompressed, modifying at least a portion of said set of data in accordance with said drawing instruction, and

(2) if said data are determined to be compressed, decompressing at least a portion of said compressed data to which said drawing instruction relates and modifying at least a portion of said decompressed set of data; wherein:

said decompressing and modifying step occurs before any image is generated

based on said set of data..Iaddend..Iadd.94. A method for producing image-defining data in accordance with drawing instructions, said data organized as a plurality of raster lines stored in a plurality of bands of raster lines in a memory andcapable of being used to generate an image based on said raster lines, said method comprising the steps of:

compressing a band of raster lines;

decompressing said compressed band of raster lines in response to a drawing instruction requiring modification of at least a portion of said band of raster lines; and

modifying at least a portion of said decompressed band of raster lines to provide a modified band of raster lines, said modification step occurring prior to generating any image based on said raster lines..Iaddend..Iadd.95. The method of claim94, wherein said modification step adds raster lines to said decompressed bands of raster

lines..Iaddend..Iadd.96. The method of claim 94, further comprising the step of printing an image based on said modified bands of raster lines..Iaddend..Iadd.97. The method of claim 94, further comprising the step of printing an image based oncompressed and uncompressed raster lines..Iaddend..Iadd.98. The method of claim 94, wherein said compressing step comprises:

compressing at least a portion of a set of raster lines at a first compression density;

determining when said memory is insufficient to contain said compressed raster lines;

further compressing said compressed portion of said set of raster lines using a second compression density, said second compression density being denser than said first compression density..Iaddend..Iadd.99. The method of claim 98, wherein saidfirst compression density is selected based on a sensed parameter, said sensed parameter being selected from the group consisting of identification of a printer, characteristics of a printer, examination of drawing instructions, interrogation of aprinter, available memory, and combinations thereof..Iaddend..Iadd.100. The method of claim 94, wherein said compressing step comprises using a data compression technique enabling storage in said memory of substantially all of said rasterlines..Iaddend..Iadd.101. The method of claim 100, wherein said data compression technique compresses data to a density which results in a loss of said raster line data accuracy..Iaddend..Iadd.102. The method of claim 101, wherein said data compressiontechnique is a discrete cosine transform..Iaddend..Iadd.103. The method of claim 94, wherein said data compression technique compresses said raster line data to a density which results in a reduction of image resolution..Iaddend..Iadd.104. The methodof claim 42, 60, 70, 84, 87, or 94 further comprising the steps of:

successively decomposing drawing instructions into a display list having a simpler set of commands;

storing said display list in said memory, said memory having a finite capacity;

determining when said display list reaches a predetermined amount of said finite capacity;

responsive to a determination that said display list has reached said predetermined amount of said finite capacity, modifying or creating said data in accordance with at least one command in said display list..Iaddend..Iadd.105. The method ofclaim 104, wherein said data comprise a plurality of bands of data..Iaddend..Iadd.106. The method of claim 105, wherein modifying or creating said plurality of bands of data further comprises:

determining whether a display list command affects a successive band of said plurality of bands of data;

responsive to a determination that a display list command affects a band of data, modifying said band of data in accordance with said display list

element..Iaddend..Iadd.107. The method of claim 104, further comprising the steps of:

determining whether executing a display list command and purging said command would increase the amount of memory available; and

responsive to a determination that executing and purging said command would increase the amount of memory available, purging said command after said modifying step, thereby freeing said memory for additional display listcommands..Iaddend..Iadd.108. Apparatus for producing image-defining data, comprising:

means for storing a plurality of drawing instructions;

means for executing a first drawing instruction of said plurality of drawing instructions to generate data;

means for compressing said data;

means for storing said compressed data;

means for executing a second drawing instruction of said plurality of drawing instructions, said second drawing instruction creating a need to modify said compressed data;

means for decompressing said compressed data in response to said need to modify said compressed data; and

means for modifying said decompressed data in accordance with said second drawing instruction to produce modified data..Iaddend..Iadd.109. The apparatus of claim 108, wherein said data comprise a set of data..Iaddend..Iadd.110. The apparatus ofclaim 109, wherein said set of

data comprises an image line of data..Iaddend..Iadd.111. The apparatus of claim 109, wherein said set of data comprises at least a portion of a band of data including a plurality of image lines of data..Iaddend..Iadd.112. The apparatus ofclaim 108, wherein said data comprise pixel data..Iaddend..Iadd.113. The apparatus of claim 108, wherein said means for modifying data adds data to said decompressed data..Iaddend..Iadd.114. The apparatus of claim 108, further comprising means forprinting an image based on said modified data..Iaddend..Iadd.115. The apparatus of claim 108, wherein said compressing means comprises:

means for compressing at least a portion of a set of data at a first compression density;

means for determining when said memory is insufficient to contain said compressed data;

means for further compressing said compressed portion of said set of data using a second compression density, said second compression density being denser than said first compression density..Iaddend..Iadd.116. The apparatus of claim 115,wherein said first compression density is selected based on a sensed parameter..Iaddend..Iadd.117. The apparatus of claim 116, wherein said sensed parameter is selected from the group consisting of identification of a printer, characteristics of aprinter, examination of drawing instructions, interrogation of a printer, available memory, and combinations thereof..Iaddend..Iadd.118. The apparatus of claim 108, wherein said compressing means comprises means for using a data compression techniqueenabling storage in said memory of substantially all of said image defining data..Iaddend..Iadd.119. The apparatus of claim 118, wherein said data compression technique compresses data to a density which results in a loss of data..Iaddend..Iadd.120. The apparatus of claim 119, wherein said data compression technique is a discrete cosine transform..Iaddend..Iadd.121. The apparatus of claim 118, wherein said data compression technique compresses data to a density which results in a reduction ofresolution..Iaddend..Iadd.122. The apparatus of claim 108, further comprising means for recompressing said modified data..Iaddend..Iadd.123. The apparatus of claim 118, further comprising means for further compressing said compressed data so that saiddata may be stored in said memory at a density which enables storage of substantially all of said image defining data..Iaddend..Iadd.124. The apparatus of claim 108, further comprising means for printing an image based on a mixture of compressed anduncompressed data..Iaddend..Iadd.125. Apparatus for producing image-defining data in accordance with drawing instructions, said data capable of being used to generate an image, said apparatus comprising:

means for compressing said data;

means for decompressing said compressed data in response to a need to modify at least a particle of said data; and

means for modifying at least a portion of said data to provide modified data, said modification occurring prior to generating any image based on

said data..Iaddend..Iadd.126. The apparatus of claim 125, further comprising memory means, wherein said compressing means comprises using a data compression technique enabling storage in said memory means of substantially all of said imagedefining data..Iaddend..Iadd.127. The apparatus of claim 126, wherein said data compression technique compresses said data to a density which results in a loss of data..Iaddend..Iadd.128. The apparatus of claim 127, wherein said data compressiontechnique is a discrete cosine transform..Iaddend..Iadd.129. The apparatus of claim 128, wherein said data compression technique compresses data to a density which results in a reduction of resolution..Iaddend..Iadd.130. The apparatus of claim 125,where said data comprises a band of data..Iaddend..Iadd.131. The apparatus of claim 130, wherein said band of data comprises a

plurality of image lines of data..Iaddend..Iadd.132. The apparatus of claim 125, wherein said data comprise pixel data..Iaddend..Iadd.133. The apparatus of claim 130, wherein said modification means adds data to said decompressed band ofdata..Iaddend..Iadd.134. The apparatus of claim 130, further comprising means for printing an image based on said modified band of data..Iaddend..Iadd.135. Apparatus for producing image-defining data in accordance with drawing instructions, said datacapable of being used to generate an image, said apparatus comprising:

means for compressing at least a portion of said data; and

means for modifying at least a portion of said compressed data in accordance with a drawing instruction requiring said modification, said modifying occurring prior to generating any image based on said data..Iaddend..Iadd.136. The apparatus ofclaim 135, wherein said compressing means comprises a data compression technique for enabling storage of substantially all of said image defining data in a memory..Iaddend..Iadd.137. The apparatus of claim 136, wherein said data compression techniquecompresses data to a density which results in a loss

of data..Iaddend..Iadd.138. The apparatus of claim 136, wherein said data compression technique compresses data to a density which results in a reduction of resolution..Iaddend..Iadd.139. The apparatus of claim 135, wherein said modifyingmeans comprises:

means for decompressing at least a portion of compressed data requiring modification; and

means for modifying at least a portion of said decompressed data..Iaddend..Iadd.140. The apparatus of claim 139, further comprising means for generating an image based on said modified decompressed data..Iaddend..Iadd.141. The apparatus ofclaim 140, wherein said generating means comprises printing means for printing an image based on said modified decompressed data..Iaddend..Iadd.142. The apparatus of claim 135, wherein said data comprise a set of data..Iaddend..Iadd.143. The apparatusof claim 142, wherein said set of data comprises an image line of data..Iaddend..Iadd.144. The apparatus of claim 135 or 139, wherein said set of data comprises a band of data including a plurality of image lines of data..Iaddend..Iadd.145. Theapparatus of claim 135, wherein said modifying means comprises adding data to said decompressed data..Iaddend..Iadd.146. The apparatus of claim 145, wherein said modifying means comprises:

means for decompressing at least the portion of compressed data requiring modification; and

means for modifying at least a portion of said decompressed

data..Iaddend..Iadd.147. The apparatus of claim 146, further comprising means for generating an image based on said modified decompressed data..Iaddend..Iadd.148. The apparatus of claim 135, further comprising means for generating an imagebased on said modified compressed data..Iaddend..Iadd.149. The apparatus of claim 135, further comprising means for generating an image based on uncompressed data and said compressed modified data..Iaddend..Iadd.150. Apparatus for producingimage-defining data in accordance with drawing instructions comprising:

memory means having a finite capacity;

means for successively storing in said memory data generated in accordance with successive drawing instructions, said memory means having an uncompressed region and a compressed region, the relative sizes of said compressed region and saiduncompressed region varying in response to the memory requirements of said data;

means for determining whether said data can be stored in said uncompressed region without exceeding said uncompressed region's capacity;

means responsive to a determination that said data will exceed said capacity of said uncompressed region for compressing said data;

means for increasing the amount of memory devoted to said compressed region;

means for decompressing said compressed data and storing said decompressed data in said memory in response to a second drawing instruction; and

means for modifying said decompressed data in accordance with said second

drawing instruction to produce modified data..Iaddend..Iadd.151. The apparatus of claim 150, further comprising means for recompressing said modified data..Iaddend..Iadd.152. The apparatus of claim 151, further comprising means for printing animage based at least in part on said recompressed data..Iaddend..Iadd.153. Apparatus for producing a set of image-defining data in response to drawing instructions comprising:

memory having a data storage capacity;

means for storing a first set of data produced in accordance with a first drawing instruction in said memory, said memory also storing, in a compressed form, one or more other sets of data that were produced in accordance with other, previousdrawing instructions;

means for compressing said first set of data in said memory in response to (i) a need to modify, in accordance with a subsequent drawing instruction, a selected one of said compressed other sets of data stored in said memory, and (ii) adetermination that said memory has reached a predetermined limit of its designated data storage capacity;

means for decompressing at least a portion of said selected one of said other sets of data to produce a second set of data; and

means for modifying at least a portion of said second set of data in

accordance with said subsequent drawing instruction..Iaddend..Iadd.154. The apparatus of claim 153, wherein said compressing means comprises:

means for compressing at least a portion of a set of data at a first compression density;

means for determining when said memory is insufficient to contain said compressed data;

means for further compressing said compressed portion of said set of data using a second compression density, said second compression density being denser than said first compression density..Iaddend..Iadd.155. The apparatus of claim 154,wherein said first compression density is selected based on a sensed parameter..Iaddend..Iadd.156. The apparatus of claim 155, wherein said sensed parameter is selected from the group consisting of identification of a printer, characteristics of aprinter, examination of drawing instructions, interrogation of a printer, available memory, and combinations thereof..Iaddend..Iadd.157. The apparatus of claim 153, wherein said compressing means comprises means for further compressing said data so thatsaid data may be stored in said memory at a density which enables storage of substantially all of said image defining

data..Iaddend..Iadd.158. The apparatus of claim 157, wherein said data compression technique compresses data to a density which results in a reduction of image clarity..Iaddend..Iadd.159. Apparatus for creating image-defining data inaccordance with drawing instructions, said data existing as stored sets of data in a memory and capable of being modified by subsequent ones of said drawing instructions, said apparatus comprising:

means for determining whether a set of data, desired to be modified in accordance with said drawing instruction, is stored in said memory in an uncompressed or a compressed form;

means for producing a modified set of data by:

(1) if said data are determined to be uncompressed, modifying at least a portion of said set of data in accordance with said drawing instruction, and

(2) if said data are determined to be compressed, decompressing at least a portion of said compressed data to which said drawing instruction relates and modifying at least a portion of said decompressed set of data; wherein:

said decompressing and modifying occurs before any image is generated based on said set of data..Iaddend..Iadd.160. Apparatus for producing image-defining data in accordance with drawing instructions, said data organized as a plurality of rasterlines stored in a plurality of bands of raster lines in a memory and capable of being used to generate an image based on said raster lines, said apparatus comprising:

means for compressing a band of raster lines;

means for decompressing said compressed band of raster lines in response to a drawing instruction requiring modification of at least a portion of said band of raster lines; and

means for modifying at least a portion of said decompressed band of raster lines to provide a modified band of raster lines, said modifying occurring prior to generating any image based on said raster

lines..Iaddend..Iadd. . The apparatus of claim 160, wherein said modifying means adds raster lines to said decompressed bands of raster lines..Iaddend..Iadd.162. The apparatus of claim 160, further comprising means for printing an image basedon said modified bands of raster lines..Iaddend..Iadd.163. The apparatus of claim 160, further comprising means for printing an image based on compressed and uncompressed raster lines..Iaddend..Iadd.164. The apparatus of claim 160, wherein saidcompressing means further comprise:

means for compressing at least a portion of a set of raster lines at a first compression density;

means for determining when said memory is insufficient to contain said compressed raster lines;

means for further compressing said compressed portion of said set of raster lines using a second compression density, said second compression density being denser than said first compression density..Iaddend..Iadd.165. The apparatus of claim164, wherein said first compression density is selected based on a sensed parameter, said sensed parameter being selected from the group consisting of identification of a printer, characteristics of a printer, examination of drawing instructions,interrogation of a printer, available memory, and combinations thereof..Iaddend..Iadd.166. The apparatus of claim 160, wherein said compressing means comprises using a data compression technique enabling storage in said memory of substantially all ofsaid raster lines. .Iadd.167. The apparatus of claim 166, wherein said data compression technique compresses data to a density which results in a loss of said raster line data accuracy..Iaddend..Iadd.168. The apparatus of claim 167, wherein said datacompression technique is a discrete cosine transform..Iaddend..Iadd.169. The apparatus of claim 160, wherein said data compression technique compresses said raster line data to a density which results in a reduction of imageresolution..Iaddend..Iadd.170. The apparatus of claim 118, 126, 136, 150, 153, 159, or 160, further comprising:

memory having a finite capacity;

means for successively decomposing drawing instructions into a display list;

means for storing said display list in said memory;

means for determining when said display list reaches a predetermined amount of said finite capacity;

means for modifying or creating said data in accordance with at least one command in said display list in response to a determination that said display list has reached said predetermined amount of said finite

capacity..Iaddend..Iadd.171. The apparatus of claim 170, wherein said data comprise a plurality of bands of data..Iaddend..Iadd.172. The apparatus of claim 171, wherein said means for modifying or creating said plurality of bands of datafurther comprises:

means for determining whether a display list command affects a successive band of said plurality of bands of data;

means responsive to a determination that a display list command affects a band of data for modifying said band of data in accordance with said display list element..Iaddend..Iadd.173. The apparatus of claim 170, further comprising:

means for determining whether executing a display list command and purging said command would increase the amount of memory available; and

means responsive to a determination that executing and purging said command would increase the amount of memory available, for purging said command after said modifying said data, thereby freeing said memory for additional display listcommands..Iaddend.
Description: BACKGROUND OF THE INVENTION

The present invention relates to printing systems and methods and, in particular, to apparatus and techniques for printing an image with a reduced need for memory.

A laser printer can be a fairly complex device having a self-contained computer system, usually referred to as a microprocessor based controller. The controller can have a microprocessor, 1 Mb of read only memory (ROM) and 2 Mb of random accessmemory (RAM). In many installations, the personal computer driving the laser printer may be slower and have less memory than the printer. Moreover, some sophisticated laser printers may employ a hard disk for handling complicated, high definitionimages.

Some laser printers include an interpreter that can respond to drawing commands such as: draw a line from point x.sub.1, y.sub.1 to point x.sub.2, y.sub.2. Even more sophisticated programming languages have been incorporated in ROM in someprinters. Some fairly rich programming languages employ variables, looping, flow control, procedures (subroutines), arithmetic operations and most of the features offered by programming languages such as Basic or C. Accordingly, programs designed todrive such a sophisticated printer need only send programming commands, which then are interpreted by the printer to produce a two dimensional image.

When converting these programming instructions into an image, such a printer can produce a bit map image, that is, a pixel by pixel representation of the printed page. The term pixel refers to a small picture element, or its digitalrepresentation, large identical numbers of which are arranged to form an image. The bit map image is typically organized into a plurality of image lines each having none to many pixels. With such an organization a monochrome image at 300 dots per inch,on a 8.5" by 11" page, requires about 1 Mb of memory. The memory requirement quickly escalates for color or higher definition images.

Because of this high memory requirement, various techniques have been employed to reduce the memory demand. One known approach involves compressing the digital data in the image lines. For example, an image line may have a large amount of"white" space represented by an interval with repeating identical data bytes. Accordingly, these repeating bytes can be reduced to a code indicating the number of repetitions and the byte repeated.

Known compression techniques also include predictive encoding. Input data is scanned for repeated bytes, but is also scanned for consecutive bytes that differ by +/-1 bit from the previous byte. The compression code requires only two bytes forrepeats up to 63 and three bytes for all others. Slowly varying bit patterns are common for certain types of graphics and this predictive encoding works well with this type of information. Predictive encoding has also been employed with look up tablesand binary arithmetic coding. This type of encoding can produce a very dense compression.

Other known compression techniques have been published under the JPEG Standard, such as the discrete cosine transform. This transform guarantees a certain amount of compression, which can be arbitrarily set at the time compression begins. Thecompression ratio can be set arbitrarily high, but will eventually cause a loss of visual detail, which may or may not be acceptable depending upon the application. At compression ratios 3:1 or 4:1 very little visual detail is lost.

An unsophisticated approach to reducing the memory requirements would be to prepare a data bit map with every stored image line compressed. With the process an image is normally assembled line by line, requiring the controller to revise imagelines many times. The resulting difficulty is the large amount of time spent compressing and decompressing image lines as the image is assembled.

When all of the data is compressed at the computer and sent compressed to the printer, large amounts of memory are required at the computer, but not at the printer. Requiring that the printer decompress every line of the image can slow theprinting process unacceptably.

For example, U.S. Pat. No. 4,901,248 shows a scheme for compressing alphanumeric data being sent to a printer. Space codes are nullified and pitch data corresponding to the space code is added instead. In another example, U.S. Pat. No.4,641,263 shows a microprocessor used to emulate a local parallel printer. This microprocessor compresses the print data and transmits it serially for decompression at a remote printer. Other known techniques can magnify type fonts so that differentsizes can be printed (see for example, U.S. Pat. Nos. 4,367,533 and 4,879,666; as well as U.S. Pat. No. 4,278,359 for adjusting the lateral velocity of a dot matrix printer head).

Another known technique is to reduce the relatively high programming commands to a "display list." This display list can be a longer list of simplified directions. For example a circle is listed as a large number of very short lines forming apolygon. Next, a banding technique can be invoked to create a bit image, but only for a horizontal band at the top of the page. The printer engine then starts printing this band while a bit map is being created for a second contiguous band. The totalamount of memory required for this method depends on the height of the bands and the amount of memory reserved for the display list. In practice, the display list and bands share memory and the size of the band is determined at print time by the amountof memory that is left.

The difficulty with the banding approach is the need to completely map the next band before the prior band is done printing; otherwise the printer must stop. Although some laser printers can be stopped mid-page, a significant number of existinglaser printers should not be stopped at mid-page or a streak or blank gap will form. Thus, for relatively complex images, the banding method is unsatisfactory for general application.

Accordingly, there is a need for a printing system and method that is able to produce an image without interruption, and with a reduced memory demand.

SUMMARY OF THE INVENTION

In accordance with the illustrative embodiments, demonstrating features and advantages of the present invention, there is provided a printing system for printing from a source of drawing instructions a two dimensional image. This two dimensionalimage is reducible to pixels arranged in a plurality of ranked image lines. The printing system has a storage means with a compressed region and an uncompressed region. Each region has a designated capacity and each is arranged to store pixels of oneor more of the plurality of image lines. The system has a drawing means coupled to the storage means and adapted to be coupled to the source of drawing instructions for responding thereto. This drawing means can store new pixels in the storage meansfor successively selected ones of the image lines. The drawing means includes a conditional means, a decompression means and an insertion means. The conditional means can compressively encode and move from the uncompressed region to the compressedregion a remote one of the image lines, if a) the selected one of the image lines is in the compressed region and b) the uncompressed region has reached its designed capacity. The decompression means can expansively decode the selected one of the imagelines, if located in the compressed region. The insertion means can insert one or more new pixels according to the drawing instructions into the selected one of the image lines, by storing this selected one in the uncompressed region. The printingsystem includes a printing means coupled to the storage means for printing the plurality of image lines in ranked order, decompressing compressed ones of the image lines from the compressed region before printing.

A related printing method of the same invention employs a storage means having a compressed region and an uncompressed region for printing from a source of drawing instructions a two dimensional image reducible to pixels arranged in a pluralityof ranked image lines. The method includes the step of storing new pixels in the storage means for successively selected one of the image lines by performing three substeps: First, a remote one of the image lines is compressively encoded and moved fromthe uncompressed region to the compressed region if a) the selected one of the image lines is in the compressed region, and b) the uncompressed region has reached its capacity. Secondly, this selected one of the image lines is expansively decoded, iflocated in the compressed region. Thirdly, one or more new pixels is inserted according to the drawing instructions into the selected one of the image lines, by storing the selected one in the uncompressed region. The printing method also includes thestep of printing the plurality of the image lines in ranked order, decompressing compressed ones of the image lines from the compressed region before printing.

Accordingly, an improved system or method of the foregoing type can employ a memory with two regions for storing compressed and uncompressed data. When working with detailed commands from an interpreter (such as: draw three specified dots on aspecified line) and memory is short, the program will first compress data on lines that are remote from the area where the image is currently being assembled. If the information for the affected line is already compressed, the system will decompressbefore modifying the line.

In the preferred embodiment, image lines are compressed only to the extent needed to free additional memory for writing new pixels. Accordingly, the region being drawn can remain uncompressed, so that processing occurs quickly.

When thus compressed or decompressed, data are transferred from one designated memory region to the other. The system can employ a table to keep track of where various lines are stored in memory and whether they are compressed or not. In someembodiments, the ratio of the size of the compressed and uncompressed regions can be altered dynamically, depending upon the amount of data and the extent of compression. For example, as space in the compressed region dwindles, the uncompressed regioncan be reduced to give the compressed region additional memory.

The preferred embodiment employs several compression techniques. At the start, the drawing instructions are examined to estimate the appropriate compression density. The system will typically restrict itself to a limited number of compressiontechniques that appear appropriate based upon sensed printer parameters, such as paper size, memory capacity etc. The sensed parameters may originate from user identification of the printer, from examination of the drawing instructions, from selectionswitches on the printer or elsewhere etc. On the other hand, the system can initially check the amount of memory available and may elect not to use any compression techniques if memory is adequate. In one embodiment, data are examined to determine thebest compression technique (the best fit for text, graphics, scanned images, etc). For example, for a monochrome image with much text, a facsimile-type compression (CCITT, Group 3) may fit better than a default setting, such as a predictive encoder. Therefore the table entries for a predictive encoder would be replaced with the entries for a facsimile-type encoder/decoder. Regardless, when an image is being later drawn, the compression requests are examined periodically (e.g., after every tenrequests) to determine the optimal compression method for current circumstances. Also, denser compression methods can be invoked later to recompress parts of the page, when the overall memory is insufficient to continue.

In one preferred embodiment, high level programming commands are reduced to a display list, that is, a list of simplified but possibly more numerous commands focusing on drawing line segments, for example. The display list is built until itreaches a certain size. Thereafter, the display list is "flushed". Specifically, the display list is executed to draw images on a band by band basis. Thus, the display list will be executed several times, once for each band.

When a particular band is selected, only relevant elements of the display list are executed and only to the extent they affect image lines inside the selected band. This technique is most effective when there are rather large vertical images. Otherwise, a series of commands to draw numerous vertical lines could require every line in the page to be compressed and uncompressed numerous times, once for each vertical line. The display list avoids this time consuming approach by working only withline segments for the current band, where all image lines can remain uncompressed.

In the preferred system, multiple pages can be managed at the same time and color printers requiring three or four colors can be managed separately, as if they were independent pages. Furthermore, a storage disk can be used with the system ifmemory is inadequate, even after compression is invoked.

Moreover, the above data management can occur invisibly and can be used for any graphics or text oriented application where memory costs are at a premium, with a minimum of modifications to the graphics system.

BRIEF DESCRIPTION OF THEDRAWINGS

The above brief description as well as other objects, features and advantages of the present invention will be more fully appreciated from the following description of presently preferred, but nonetheless illustrative embodiments and from thefollowing drawings, in accordance with the present invention:

FIG. 1 is a schematic block diagram of a printing system employing a printing method in accordance with the principles of the present invention.

FIG. 2 is a schematic block diagram showing a printing system also in accordance with the principles of the present invention, but also including a source of drawing instructions in the form of a computer.

FIGS. 3-9 are flowcharts associated with the programming executed by the apparatus of FIGS. 1 or 2.

FIG. 10 is a two dimensional image produced by the printing system and method of the apparatus of FIGS. 1 or 2.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

FIG. 1 shows a computer in the form of a main processor 10 connected by bus 12 to a memory 14, console 16 and input/output device 18. Elements 10, 12, 14 and 16 are referred to as a computer assembly. Printer 20 has a printer casing and isconnected to an output of device 18. The foregoing elements can be part of a microcomputer, minicomputer or general purpose computer. Alternatively, these components can be replaced with a source that produces digital or other signals representingdrawing instructions. These instructions can be high level programming commands or a simplified display list.

The operator can use console 16 to draw a graphic design. Software contained in memory 14 can send instructions through input/output device 18 such as "300 300 250 0 360 ARC STROKE." This instruction specifies an arc centered at coordinates 300,300, at a radius of 250, drawn from 0 to 360 degrees (a full circle). The outline is "stroked" (as opposed to filled). Printer 20, described hereinafter in further detail, can handle such a high level command. Alternatively, lower level commands inthe form of a display list of line segments can be sent to the printer (in some cases an actual bit map will be transmitted).

A separate component subassembly, mounted at frame 22, can also handle high level commands. The elements of frame 22 can be placed on a separate card that plugs into an available slot in a personal computer. Alternatively, the subassembly offrame 22 can be a stand alone component that is hard wired between the main computer and the printer. In this embodiment, frame 22 employs a microprocessor 24. Local microprocessor 24 operates as a drawing means, which as described hereinafter includesa conditional means, decompression means and an insertion means. Microprocessor 24 can be an Intel type 80386, although other microprocessors can work as well. Microprocessor 24 connects through a bus to memory 26, which is a storage means havingpreferably ROM and RAM type of memory. The RAM can be about 1 MByte, although a greater or lesser amount of memory may be employed, depending upon the application. Latching buffer 28, input/output device 30, and memory 26 are all bused with processor24. Information is received at the subassembly 22 by means of a latching buffer 28, comprising a number of data latches. Information may be exchanged with conventional printer 22 by input/output device 30. Printer 22 is arranged to receive a full databit map.

FIG. 2 shows in further detail the printing system identified in FIG. 1 as printer 20. This printing system employs a printer microprocessor 32, which may be a Motorola type 68000 or other appropriate unit. Microprocessor 32 connects throughbus 33 to read only memories, shown herein as EEPROM memory 34 and ROM memory 36. Memory 36 is arranged to produce the programming steps hereinafter described. A storage means is shown herein as RAM type memory 38 also bused with the other memories. Furthermore, memory 38 is partitioned to have a compressed and uncompressed data region also as described hereinafter. Bus 33 also connects to serial communications port 40, which is able to send and receive serial data with respect to bus 33. Registers and data controllers are contained in block 42. These registers are used to temporarily store data for transmission to printer engine 44. Combinational logic contained in block 42 also sends control signals to RAM type memory 38 along theline connecting these two elements.

Printing means 44 can be a laser printer engine having a laser beam that shines on a photosensitive drum upon which toner can be deposited for later transfer to paper by means of a transfer corona and subsequent fusing with fixing rollers (theseknown subcomponents are not illustrated).

To facilitate an understanding of the principles associated with the foregoing apparatus, its function will be described in connection with the flowcharts of FIGS. 3-9. It will be appreciated, however, that this programming and the associatedmemory operations could be performed instead with subassembly 22 of FIG. 1.

High level commands are delivered through serial communications port 40 (FIG. 2) and are stored in memory 38. (Although a simplified display list could be sent instead.) The instructions thus stored can be scanned at this time or at later stagesas shown in FIG. 3. In step S1 the data is scanned to determine its nature (text, graphics, scanned images etc.) In step S2, the program determines whether the least dense compression technique is satisfactory. If so, this routine returns a "1,"otherwise step S3 is executed to determine if the next densest compression method is satisfactory. If so, the routine returns a "2," otherwise similar steps are performed until step S4 is reached to determine if the nth compression method isappropriate. If so, the step returns the assigned number "n," otherwise step S5 is executed. In step S5, the program determines if memory is full. If not, a zero is returned, otherwise the program returns a flag indicating that the densest compressor,the discrete cosine transform of the JPEG standard, is to be used.

This JPEG discrete cosine transform (DCT) is the compression technique of last resort and may only be used in installation lacking a nonvolatile storage. In some embodiments, for example monochrome printers, DCT may not be loaded into the tableof permissible compressors. Alternatively, DCT may be loaded but used only when selected by a panel switch, much like the switches for draft/letter quality modes on conventional printers.

Next, the program contained in memory 36 and/or 34 (FIG. 2) determines if the image will be complicated enough to require display list processing. If so, step S7 is executed (FIG. 4). In step S7, high level instructions such as a command todraw a circle, are reduced into simpler commands, such as directions to draw a line or a group of lines such as a polygon. In succeeding step S8, the decomposed instructions are saved in memory (RAM 38 of FIG. 2) as a display list. The process ofsuccessively decomposing instructions into a list of simpler directions is sometimes referred to as creating a display list. In step S9, the program determines whether the space allocated for the display list is full. If not, the program continues toincrease the display list; otherwise, step S10 is executed, in which bands are flushed.

The flushing of bands is illustrated in FIG. 5, starting with step S11, which provides for scanning and rescanning of bands. As shown in FIG. 10, a two dimensional image 46 is broken down into plurality of bands 48. The two dimensional image46, as well as the bands 48 are each composed of a multiplicity of image lines composed of a series of dots or pixels that compose the image. In step S11 of FIG. 5, the program increments the band number, starting with the first band and indexing to thenext band for subsequent passes. Next, in step S12, the program increments the display list number, starting with the first direction on the list and indexing to the next direction on the list for subsequent passes. In step S13, the selected directionof the display list is analyzed to determined if it will affect the current band. If not, step S12 is repeated; otherwise step S14 is executed. In step S14 the current direction of the display list is executed, but only for image lines in the currentband. Step S14 involves inserting one or more pixels into the storage means (memory 38 of FIG. 2). If the affected image line is being drawn upon for the first time, the new information is stored in the uncompressed region of memory (memory 38 of FIG.2). If memory is insufficient to hold this new line, other image lines are compressed and moved to the compressed region of memory in the manner described for FIG. 6. If the affected image line already has information, it is fetched in the mannerdescribed hereinafter and then saved in the uncompressed region of memory.

In step S15, the program determines whether the display list has been finished, and if not, step S12 is repeated to increment the display list; otherwise step S16 is executed. In step S16, the processor determines whether the latest band is thelast band. If not, step S11 is repeated to increment the band number; otherwise the routine is completed. If control returns to step S11, then the program effectively executes the directions in the display list cyclically.

If the there are more high level instructions that have yet to be reduced to a display list, the steps of FIG. 4 are repeated to produce another display list. If the steps of FIG. 4 are repeated, this amounts to overwriting the display list ofdirections created during the last pass. The new display list thus created is then drawn as just described in connection with FIG. 5.

The foregoing mentioned saving pixels to memory but did not detail the steps performed should memory become inadequate. As described hereinafter, the program works to clear sufficient space in the uncompressed region of memory (memory 38 of FIG.2). The memory 38 is segregated into regions for holding: uncompressed image lines of pixels; compressed image lines of pixels; and the display list data. When new pixels are to be written to an image line, the program must determine if the image lineexists and if it is assigned to a compressed or uncompressed region. If the relevant line exists in the uncompressed region, pixels can be written on it in a straightforward manner.

If the image line does not exist or is in the storage means, the sequence of FIG. 6 is executed. In step S17, the processor determines whether the image line under consideration exists and is already uncompressed. If so, the line is simplyfetched, revised and rewritten into memory (step S18); otherwise step S19 is executed. In step S19, the processor determines whether there is space available in the uncompressed region for the line under consideration. If so, the program jumps to stepsS26 et seq., where, as described further hereinafter, the selected line "x" is fetched (possibly from disk) and then expansively decoded, otherwise step S20 is executed.

In step S20, a remote, uncompressed image line is compressed by the program. This involves fetching the uncompressed image line from memory 38 (FIG. 2) and compressing it in a manner to be described further hereinafter. Preferably, more thanone line will be compressed at one time. Processing a group of contiguous lines (typically 8, 16 or 32 lines) reduces the amount of tabular information stored and improves speed and density of compression. The group of lines chosen for compressionshould be remote from the region or band where image processing is now occurring. For example, when drawing at the top of a page, lines can be compressed near the bottom of the page. When drawing towards the end of the page, lines near the top of thepage can be compressed. When drawing in the middle of the page, lines near the top and bottom of the page can be compressed.

In step S21, the program determines whether the newly compressed image line can be stored in the compressed region. If space is inadequate, at least some image lines already stored in the compressed region can be reencoded at a highercompression density, as provided in step S22. Specifically, the program has a plurality of compression techniques that compress at different predetermined densities or at a density selected at runtime, which is only limited by the consequentialdegradation of resolution. Therefore a higher density compressor can be selected in step S22. One or more lines are thus fetched from the compressed region and recompressed.

In following step S23, the program determines whether sufficient space now exists in the compressed region of memory to accept the new image line. If space is still unavailable, a number of other image lines from the compressed region (not thelines just compressed) can be copied to a disk, as indicated in step S24. At the conclusion of step S24, or if the conditions of steps S21 and S23 are affirmative, step S25 is executed next. Steps S21 through S25 act to compressively encode and moveremote image lines.

In step S25, the compressed image lines that the program previously considered moving to the compressed region are now successfully moved. According to following step S26, if the image line "x" originally considered by the program is already ona hard disk, that line is fetched, as illustrated by step S27.

Much of the foregoing was concerned with freeing additional space in the uncompressed region of memory. Now that this accommodation has been made, the selected compressed image line is now decompressed and returned for further processing. StepS28 therefore now decodes expansively the selected image line "x." In preferred embodiments more than one line is decompressed at this time. As before, processing a group of contiguous lines (typically 8, 16 or 32 lines) makes the processing moreefficient.

As earlier in connection with FIG. 3, the display list or the higher level commands can be initially and subsequently evaluated to determine the appropriate compression density. As shown in FIG. 7, image lines are compressed by calling theselector subroutine, shown herein as step S30, to return the currently designated compression routine. When the compressor value is returned by step S30 (1 to n, or JPEG), the appropriate compressor routine is located through the look up table, asindicated by step S31. Once the appropriate compression subroutine is located, the routine is called by step S32. The consequently compressed image line is then stored in the compressed region of memory in step S33 with a tag to indicate the type ofcompression invoked.

In FIG. 8, the reverse process, decompression, is illustrated. In step S34, data fetched from the compressed region is examined to determine the compression technique indicated by its tag code. The decompression routine is then looked up basedupon this tag. Once the routine is located, the decompression is performed, as indicated by step S35. Thereafter the decompressed data is stored with a zero tag code signifying uncompressed data.

Referring to FIG. 9, the program in step S37 determines if all high level commands have been reduced to a display list and flushed as described before in connection with FIG. 5. When all high level commands have been reduced to a display listwhich was then flushed in accordance with FIG. 5 the memory (memory 38 of FIG. 2) contains a data bit image that is located in the uncompressed and compressed region of memory. Because some of the image lines are compressed, the demands on memory werereduced. Because some of the image lines are uncompressed, the preprinting processing time was reduced, as already described.

To print this image step S38 is executed, wherein image lines are sent one by one to the printer engine (engine 44 of FIG. 2). Note that display list processing is not relevant at print time. Uncompressed lines are sent for printing in astraightforward manner. Compressed lines are first decompressed as illustrated by FIG. 8. Since decompression (as opposed to display list processing) can be performed quickly, the printer engine can proceed without stopping.

Decompression is handled differently during printing. Since the decompressed data will be used for printing only and not revised by the drawing process, an image line (or group of lines) is decompressed and stored in an area reserved for thispurpose, when a page is being printed. This method avoids the time consuming possibility of compressing some other data in the uncompressed region, copying it to disk, etc. Also the decompressed data need not carry the uncompressed tag becauserecompression will not be ordered when decompressing the next line (or group of lines) solely for the purpose of temporarily storing just before printing. This streamlined decompression proceeds two to three times faster than the previously describeddecompression performed well before print time.

It is to be appreciated that various modifications may be implemented with respect to the above described preferred embodiment. For example, the various computer and memory types can be altered, depending upon the desired speed, accuracy,resolution etc. Also, the various programming steps can be reordered to execute steps in alternate sequences. Furthermore, in some instances the programming can be simplified to provide fewer compression types or to eliminate the use of a disk forstoring image data. Also, the decision to perform banding can be deferred or can be decided immediately after receipt of the high level commands, depending on whether the image complexity demands such processing. Furthermore in some embodiments,banding techniques will not be used and the display list reduction technique will be eliminated as well.

Obviously, many modifications and variations of the present invention are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims the invention may be practiced otherwise than asspecifically described.

* * * * *
 
 
  Recently Added Patents
Intelligent directional fire alarm system
Endoluminal device exhibiting improved endothelialization and method of manufacture thereof
Device for adjusting angle of golf club shaft
Oxidized lipids and uses thereof in the treatment of inflammatory diseases and disorders
Foam with green tea additive for foam mattresses, pillows and cushions
High current capable circuit testing closer apparatus and method
Apparatus and method for laying out wireless cell, and recording medium for programs achieving the same
  Randomly Featured Patents
Knife
Method of producing aluminum oxides and products obtained on the basis thereof
Fibrous structures comprising a polymer structure
Method of dry-calibrating vortex flow sensors
Multi-spectral two dimensional imaging spectrometer
Live animal trap
Thermal plate-making apparatus and thermal head therefor
Long term storage apparatus
Pad, production method therefor, and emergency adhesive plaster using the pad
Shipping and storage container for syringes