Printing devices include standalone printers, as well as all-in-one (AIO) and multifunction printer (MFP) devices that include functionality like scanning, copying, and/or faxing functionality in addition to printing functionality. Different types of printing devices employ different types of colorants, such as ink or toner, to form images on print media like paper. For example, inkjet-printing devices eject ink onto print media, whereas laser-printing devices apply toner onto print media. Printing devices can be full-color printing devices, such that they have colorants corresponding to the colors of a color space like the cyan-magenta-yellow-black (CMYK) color space to print full-color images. Printing devices may instead be monochromatic printing devices, such that they typically have just black colorant to print black- and white images.
As noted in the background section, printing devices can include laser-printing devices that apply toner onto print media like paper, and which can be monochromatic printing devices that form black-and-white images on the print media. In general, a laser-printing device processes an incoming image, or page, to be output onto a side of print media sheet before the laser print engine applies toner onto the sheet according to the processed page. This process is known as rendering, and transforms the incoming image into a format that is compatible with the print engine. For example, an incoming 600×600 dots per inch (dpi) eight bit-per-pixel (bpp) image may be transformed via halftoning into a 600×400 dpi two-bpp image that the print engine can intrinsically print.
Unlike other print technologies like inkjet printing, in laser printing, once the print engine has begun to print on a sheet of print media, it cannot pause mid-sheet to wait for additional rendered data of the page being printed. As the print engine outputs toner onto the print media to print a page onto print media, in other words, rendering of the image has to keep up to provide rendered data of the page to the print engine. If rendering of the current page being printed falls behind the print engine's outputting of toner, the print engine cannot pause to wait for rendering to catch up.
The print engine can, however, pause between pages to ensure that when the engine begins printing a page onto a sheet of print media, the print engine will have rendered data of the page as the engine outputs toner onto the sheet. However, pausing between pages in this manner can reduce print speed. That is, a laser print engine may have a maximum throughput at which the engine can output toner onto sheets of print media, but if the print engine has to wait before printing a given page, then the realized print speed will be less than this maximum throughput.
To ensure that a print engine is not starved of rendered data of a page while printing the page, and to ensure that the print engine does not have to wait in-between printing pages, a memory buffer may be used to store rendered pages. The printing device thus renders incoming pages and stores them into the memory buffer, and the print engine prints the rendered pages from the buffer. However, memory can be at a premium within printing devices, particularly lower cost devices. If the amount of free space in the buffer becomes too small, print speed can be deleteriously affected.
To maximize efficient usage of a memory buffer, particularly for smaller-sized memory buffers, the rendered pages may be stored in compressed form in the memory buffer. Therefore, the printing device renders incoming pages, and compresses and stores them in the memory buffer, while the print engine prints the rendered pages from the buffer after first decompressing them. For incoming pages of typical complexity, compression can with an appropriately selected memory buffer size ensure maximum print speed. However, outlier pages of high complexity can still result in the memory buffer running out of available space, which results in the print engine having to wait between printing successive pages, thus reducing printing speed.
Techniques described herein can avoid these shortcomings. An incoming page to be printed is logically divided into (horizontal) strips. The strips are successively rendered, compressed, and stored in a memory buffer. However, if a low memory condition occurs—e.g., if there is insufficient available free space in the memory buffer to store an additional strip of the current page—then the already rendered and compressed page strips are decompressed and processed according to a memory utilization reduction technique before being recompressed and stored in the memory buffer. Subsequent strips of the page are rendered, processed according to this technique, compressed, and stored in the memory buffer.
For example, if rendering involves transforming a page strip to a 600×400 DPI two-bpp halftoned strip, the memory utilization reduction technique can involve subsequently reducing this rendered strip to a one-bpp strip. To avoid a visible artifact in the form of a banding between the page strip rendered before the low memory condition was detected and the next strip of the page, the subsequent page strips are processed in the same manner. That is, each subsequent strip is rendered as if the low memory condition had not occurred, and then is subjected to the memory utilization reduction technique, albeit without intermediate compression (and decompression).
If the low memory condition is again detected while processing the strips of a given page, another, more aggressive, memory utilization reduction technique may also be employed. The compressed strips already stored in the memory buffer can be decompressed and subjected to an additional memory utilization reduction technique, such as conversion to 300×400 DPI one-bpp strips, before being recompressed and stored back in the buffer. Subsequent strips are then also rendered, subjected to the initial memory utilization reduction technique, and then subjected to the additional memory utilization reduction technique, before being compressed and stored in the buffer (but without being compressed between the application of the two memory utilization reduction techniques).
The page strips 104 are successively processed in order from the first page strip 104A of the page 102 to the last page strip 104N of the page 102 before being stored in a memory buffer 112. A current page strip 106 is thus rendered (108) and compressed (110) before being stored in the memory buffer 112. Rendering of a current page strip 106 can include halftoning the strip 106 to 600×400 DPI two-bpp grayscale. As the page strips 104 are rendered and compressed, the strips are stored as the compressed rendered page strips 104A′, 104B′, . . . , 104N′, which are collectively referred to as the compressed rendered page strips 104′.
Furthermore, once the page strips 104 of the page 102 have been respectively rendered and compressed in parts 108 and 110, and then stored in the memory buffer 112, the page 102 can actually be printed. The compressed rendered page strips 104′ are successively retrieved in order from the first page strip 104A′ to the last page strip 104N′ from the memory buffer 112. A current compressed rendered page strip 106′ is thus decompressed (114), and transmitted to a print engine 116 for printing. The print engine 116 may be a laser print engine, for instance. Usage of the memory buffer 112 can ensure that the print engine 116 realizes an actual print speed close to if not equal to its theoretical maximum.
However, the process of
Therefore, the already compressed rendered page strips 104A′, 104B′, . . . , 104F′ are successively retrieved from the memory buffer 112 and subjected to additional processing, in order from the strip 104A′ to the page strip 104F′, before being stored back in the buffer 112. The current such compressed and rendered page strip 106′ is thus retrieved from the memory buffer 112, decompressed (114), subjected to additional processing (202), and (re)compressed (110), before being stored back in the memory buffer 112. The additional processing of part 202 can include reducing the (600×400 DPI) two-bpp halftoned page strip to a (600×400 DPI) one-bpp halftoned page strip. As the page strips 104A′, 104B′, . . . , 104F′ are decompressed, processed, and recompressed, the strips are stored as the compressed, processed, and rendered page strips 104A″, 104B″, . . . , 104F″, respectively.
It is noted that each page strip 106′, after decompression, corresponds to a page strip 106 of
After the page strips 104A′, 104B′, . . . , 104F′ that were previously stored in the memory buffer 112 per
It is noted, however, that the page strips 104G, 104H, . . . , 104N do not undergo compression (or decompression) between when they are rendered in part 108 and when they are processed in part 202. This is unlike the preceding page strips 104. That is, the page strips 104A′, 104B′, . . . , 104F′ were stored in the memory buffer 112 after they were rendered in part 108 and compressed in part 110 per the process of
Once the page strips 104G, 104H, . . . , 104N of the page 102 have been rendered, processed, and compressed in parts 108, 202, and 110, and then stored in the memory buffer 112, the page 102 can actually be printed. The compressed, processed, and rendered page strips 104″ are successively retrieved in order from the first page strip 104A″ to the last page strip 104N″ from the memory buffer 112. A current compressed, processed, and rendered page strip 106″ is thus decompressed (114), and transmitted to the print engine 116 for printing.
The process of
Therefore, the already compressed, processed, and rendered page strips 104A″, 104B″, . . . , 104J″ are successively retrieved from the memory buffer 112 and subject to still additional processing, in order from the strip 104A″ to the strip 104J″, before being stored back in the buffer 112. The current such compressed, processed, and rendered page strip 106″ is thus retrieved from the memory buffer 112, decompressed (114), subjected to still additional processing (302), and (re)compressed (110), before being stored back in the memory buffer 112. The additional processing of 302 is in addition to and can be different than the processing of part 202 of
The additional processing of part 302 can include converting the 600×400 DPI (one-bpp) halftoned page strip to a 300×400 DPI (one-bpp) halftoned page strip. That is, the additional processing of part 302 can include a reduction in resolution, such as by 50% along the horizontal direction. As the page strips 104A″, 104B″, . . . , 104J″ are decompressed, processed again, and recompressed, the strips are stored as the compressed, twice-processed, and rendered page strips 104A′″, 104B′″, . . . , 104J′″, respectively. The phrase “twice-processed” refers to the first processing of part 202 of
It is noted that each page strip 106″, after decompression, corresponds to a page strip 106″ of
After the page strips 104A″, 104B″, . . . , 104J″ that were previously stored in the memory buffer 112 per
It is noted that the page strips 104K, 104L, . . . , 104N do not undergo compression (or decompression) between when they are rendered in part 108 and when they are processed in part 202, or between when they are processed in part 202 and when they are processed in part 302. This is unlike the preceding page strips 104. For instance, the page strips 104A″, 104B″, . . . , 104J″ were stored in the memory buffer 112 after they were processed in part 202 of
Once the page strips 104K, 104L, . . . , 104N of the page 102 have been rendered, twice-processed, and compressed in parts 108, 202, 302, and 110, and then stored in the memory buffer 112, the page 102 can actually be printed. The compressed, twice-processed, and rendered page strips 104′″ are successively retrieved in order from the first page strip 104A′″ to the last page strip 104N′″ from the memory buffer 112. A current compressed, twice-processed, and rendered page strip 106′″ is thus decompressed (114), and transmitted to the print engine 116 for printing.
The current page strip to be processed is initially set to the first page strip of the page (402). If a low memory condition of the memory buffer of the printing device is newly detected (404), then any page strips of the page in relation to which the method 400 has already been performed and that have been stored in compressed form in the memory buffer are (re)processed (406). An example as to how such compressed page strips already stored in the memory buffer can be (re)processed in part 406 is described later in the detailed description, in relation to
The low memory condition of the memory buffer can be detected in one implementation when there is insufficient available free space in the buffer to store another page strip of the page, or in another manner. For instance, the low memory condition can be predictively detected. For the current page strip to be processed, an average of the compression rate of previously processed page strips on the same or different page may be used to predict the size of the current page strip after compression. If, upon comparing this predicted size to the available free space in the buffer, it is determined that the predicted size is greater than the available free space, or greater than a percentage of the available free space, then the low memory condition is detected. As another example, detecting whether a low memory condition has occurred may not be performed until after a certain percentage of the page strips of the current page have been processed, so that there is an adequate number of page strips on which to determine the average compression rate.
If the low memory condition of the memory buffer has not been newly detected, such that there is currently sufficient available free space in the buffer to store another page strip of the page (404), then the current page strip is rendered (408). The current page strip is also rendered in part 408 after page strips of the page already stored in the memory buffer have been (re)processed in part 406. As has been noted, rendering of the current page strip can include halftoning the strip to 600×400 DPI two-bpp grayscale. More generally, rendering subjects the current page strip to a J×K-resolution, N-bpp halftoning technique.
If a low memory condition was previously detected at least once (410), then the (rendered) current page strip is also processed (412), which is referred to herein as first processing. A low memory condition of the memory buffer is said to have been previously detected if such a low memory condition was detected in the current or any prior iteration of the method 400 with respect to the page of which the current page strip is a part. Thus, a low memory condition is said to have been previously detected if the current page strip was rendered in part 408 after already stored page strips have been (re)processed in part 406. A low memory condition is also said to have been previously detected if the method 400 proceeded directly from part 404 to part 408 to render the current page strip, but had previously proceeded directly from part 406 to part 408 to render a prior page strip.
The first processing of part 412 can include reducing the bpp of the current page strip, such as from two-bpp grayscale to one bpp. For instance, the 600×400 DPI two-bpp grayscale rendered current page strip can be reduced to a 600×400 DPI one-bpp grayscale rendered strip. More generally, the first processing of part 412 is a memory utilization reduction technique in which the page strip is smaller in size (and thus takes up less storage space in the memory buffer) after first processing than before. If the (rendered) current page strip is said to be an N-bpp page strip, then the first processing may be an M<N-bpp conversion technique, such that after first processing the page strip is an M-bpp page strip.
If a low memory condition was previously detected twice (414), then the first-processed, rendered current page strip undergoes second processing (416), which can be different than the first processing of part 412. A low memory condition of the memory buffer is said to have been previously detected twice if in two iterations of the method 400 (which can include the current iteration, as to the current page strip), the method 400 proceeded to part 408 directly from part 406. The second processing of part 416 can include reducing the resolution of the current page strip, such as from 600×400 DPI to 300×400 DPI. For instance, the 600×400 DPI one-bpp grayscale first-processed and rendered current page strip can be reduced in resolution to a 300×400 DPI one-bpp strip. More generally, the second processing of part 416 is an additional memory utilization reduction technique in which the page strip is smaller in size after second processing than before. If the (first-processed and rendered) current page strip is said to have a resolution of J×K, then the second processing may be an F×G-resolution sampling technique, where F<J and/or G<K.
After undergoing the second processing in part 416, the current page strip is compressed (418), and stored in the memory buffer (420). The current page strip is also compressed in part 418 and stored in the memory buffer directly after having been first-processed in part 412 if a low memory condition had not previously occurred twice (such that the method 400 proceeds from part 414 to part 418). The current page strip is similarly compressed in part 418 and stored in the memory buffer directly after having been rendered in part 408 if no low memory condition has previously occurred (such that the method 400 proceeds from part 410 to part 418).
Therefore, there are three scenarios in the method 400. If no low memory condition has occurred, then the current page strip is rendered in part 408, and then compressed in part 418 and stored in the memory buffer in part 420, per the process of
Once the current page strip has been stored in the memory buffer, if the page has any other page strips that have yet to be processed per the method 400 (422), then the current page strip is advanced to the next page strip on the page (424), and the method 400 is repeated at part 404. Otherwise, the method 400 is finished (426). When the method 400 is finished, the page is ready to be printed by the print engine of the printing device.
What is referred to as the current compressed page strip is set to the first page strip of the page stored in the memory buffer (502). The current compressed page strip is not to be confused with the current page strip that has been described in relation to the method 400. The current compressed page strip is retrieved from the memory buffer and decompressed (504).
If the method 500 is being performed for the first time with respect to the current page—i.e., if the method 500 is being performed due to the first time the low memory condition was detected while processing the current page (506)—then the page strip decompressed in part 504 is first-processed (508). The first processing that is performed in part 508 is the first processing that has been described in part 412 of the method 400. By comparison, if the method 500 is being performed for the second time with respect to the current page—i.e., if the method 500 is being performed due to the second time the low memory condition was detected while processing the current page (506)—then the page strip decompressed in part 506 is second-processed (510). The second processing that is performed in part 510 is the second processing that has been described in part 416 of the method 400.
When a decompressed page strip is first-processed in part 508, the page strip will have already been rendered. That is, prior to the low memory condition being detected for the first time in part 404, page strips are rendered in part 408, compressed in part 418, and stored in part 420 of the method 400. Therefore, when such a current compressed page strip is retrieved and decompressed in part 504, the result is a rendered page strip, which is then subjected to first processing in part 508.
By comparison, when a decompressed page strip is second-processed in part 510, the page strip will have already been rendered and first-processed. That is, prior to the low memory condition being detected for the second time in part 404, page strips are rendered in part 408, first-processed in part 412, compressed in part 418, and stored in part 420 of the method 400. Therefore, when such a current compressed page strip is retrieved and decompressed in part 504, the result is a first-processed, rendered page strip, which is then subjected to second processing in part 510.
After the page strip is first-processed in part 508 or second-processed in part 510, the strip is (re)compressed (512), and stored back in the memory buffer (514). If there are any other compressed page strips of the page stored in the memory buffer that have yet to be processed per the method 500 (516), then the current compressed page strip is advanced to the next compressed page strip in the memory buffer (518), and the method 500 is repeated at part 504. Otherwise, the method 500 is finished (520).
When the method 500 is finished, there can be one of two results. First, if the method 500 has been performed responsive to the first time a low memory condition occurred, then the page strips that were previously rendered, compressed, and stored in the memory buffer per the method 400 are decompressed, subjected to first processing, (re)compressed, and stored back in the memory buffer. The method 400 can then continue, where the other page strips of the page are rendered, first-processed, compressed, and stored in the memory buffer.
Second, if the method 500 has been performed responsive to the second time a low memory condition occurred, then the page strips that were previously rendered, first-processed, compressed, and stored in the memory buffer per the method 400 are decompressed, subjected to second processing, (re)compressed, and stored back in the memory buffer. The method 400 can then continue, where the other page strips are rendered, first-processed, second-processed, compressed, and stored in the memory buffer. The method 500 is performed, therefore, so that page strips already in the memory buffer are processed again such that they will have been processed in the same way that the other page strips that are not yet in the memory buffer will be processed.
The printing device 700 also includes logic 702. The logic 702 can perform the processes of
The techniques that have been described thus ensure that a page can be printed even if its page strips cannot normally be completely stored in a memory buffer, such as one of limited size. This is achieved by reducing the size of the page strips that have already been processed and stored in the memory buffer, as well as by subjecting subsequent page strips to the same processing resulting in the size reduction. Therefore, a memory buffer can be sized to fit a page of above average or even average page strips in complexity (and thus size), such that one or more memory utilization reduction techniques are employed in those instances in which the page strips are of unordinary or extraordinary complexity.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/US2018/024817 | 3/28/2018 | WO | 00 |