Embodiment
The embodiment of the invention adopts the parallel processing mode of IPDS data, improves the processing power of IPDS data.
To be called the IPDS data based on all data of intelligent printer data stream (IPDS) agreement in the embodiment of the invention, it comprises content-data and order data.Content-data is meant the data that are used for rasterization process.Order data is meant the data about the processing power of the print control unit that carries out rasterization process, mainly refers to query requests, response message that returns that print control unit receives and the abnormal information that initiatively reports etc.Content-data specifically comprises the IPDS data object and the attribute information relevant with rasterization process of clear data part.Attribute information comprises global property and local attribute, and local attribute specifically comprises multiple, like position attribution, reuse attribute etc.IPDS data block in the embodiment of the invention comprises one or more IPDS data objects and corresponding local attribute.
Referring to Fig. 1, the main method flow process of rasterization process is following in the present embodiment:
Step 101: receive the IPDS data.Concrete mode is the packet that receives IPDS, from the packet of IPDS, extracts data division then, obtains the IPDS data.The main concern receives later flow process in the present embodiment, so receiving course is only done concise and to the point description.
Step 102: the content-data in the IPDS data after will explaining is decomposed into a plurality of IPDS data blocks.
Step 103: walk abreast a plurality of IPDS data blocks that obtain are carried out rasterization process.
Referring to Fig. 2, the system that is used to carry out rasterization process in the present embodiment comprises IPDS main frame 201 and print control unit 202.
IPDS main frame 201 needing to print control unit 202 transmissions to be used for the IPDS data of rasterization process; Can continually send; Need not wait for that print control unit 202 is about rasterization process response of successful message; Concrete content-data and the inquiry request message of sending, and determine whether to continue to send the content-data of content-data and the transmission of concrete needs according to the message that response message of receiving and print control unit 202 initiatively report.For example, under normal circumstances IPDS main frame 201 sends the IPDS data with the form of data stream, takes place possibly need to retransmit some IPDS data when unusual when knowing, perhaps stops sending the IPDS data when knowing when making a mistake.
Print control unit 202 is used to move IPDS RIP system, receives intelligent printer data stream IPDS data, and the content-data in the said IPDS data is decomposed into a plurality of IPDS data blocks, and parallel said a plurality of IPDS data blocks is carried out the rasterisation operation.This print control unit 202 can be positioned at equipment such as printer, duplicating machine.Perhaps, this print control unit 202 is an independent community.
Wherein, referring to shown in Figure 3, print control unit 202 comprises interface module 301, calling module 302 and a plurality of processing module 303.
Interface module 301 is used for connecting with IPDS main frame 201, receives the IPDS data, and the content-data in the said IPDS data is decomposed into a plurality of IPDS data blocks.
A plurality of processing modules 303 are used for walking abreast said a plurality of IPDS data blocks are carried out the rasterisation operation.The quantity of processing module 303 is confirmed by the quantity of the object instance of creating in advance, for concerning one to one.Can be according to Hardware configuration and/or the current definite quantity that needs the object instance of establishment of running environment, to make full use of available resource.Wherein, the quantity of Hardware configuration and CPU, the factors such as size of internal memory are relevant, and factor such as the quantity of current running environment and current pending task or type is relevant.A simple implementation is the corresponding object instance of a CPU.
Calling module 302 is used for said a plurality of IPDS data blocks are distributed to said a plurality of processing module 303.The data with rasterized that calling module 302 can further carry out a plurality of processing modules 303 to obtain after the rasterization process merges, and obtains the data with rasterized of the complete page.And when receiving that interface module 301 is transmitted the inquiry request message of IPDS main frame 201 transmissions, calling module 302 is collected the information of corresponding a plurality of processing module 303 according to inquiry request message, and carries out returning response message after the statistical study.
Print control unit 202 also comprises cache module 304; Referring to shown in Figure 4; Cache module 304 is used for all inner IPDS data of storage print control device 202, comprises grating lattice data that IPDS data, each processing module 303 of obtaining after the decomposition carry out obtaining after the rasterization process, and calling module 302 grating lattice data of carrying out obtaining behind the union operation etc.This cache module 304 is the buffer zone of global nature, but its storage space dynamic change.Deletion by the IPDS data of storage in the calling module 302 control cache modules 304; For example delete the IPDS data block of having distributed; Deletion has outputed to the grating lattice data of external device (ED), keeps reusable IPDS data object or the corresponding grating lattice data of this IPDS data object according to reusing attribute.
Print control unit 202 also comprises output module 305, and the data with rasterized that this output unit 305 obtains after being used for calling module 302 merged outputs to external device (ED), as outputs to printing equipment etc.
Below each module in the print control unit 202 is done further refinement.
Referring to Fig. 5, interface module 301 comprises interface unit 501, inquiry response unit 502 and resolving cell 503.
Interface unit 501 is used for and IPDS main frame 201 mutual IPDS data.
Inquiry response unit 502 is used for the inquiry request message of the IPDS data after explaining is sent to calling module 302, and the response message that calling module 302 returns is sent to IPDS main frame 201 through interface unit 501.
Resolving cell 503 is used for the content-data of IPDS data is decomposed; Obtain a plurality of IPDS data blocks; Particularly be decomposed into independent non-coupling a plurality of IPDS data blocks, and adhere to each IPDS data block separately after the global property in the content-data duplicated many parts.Wherein, resolving cell 503 knows to have independent non-coupling IPDS data block through the IPDS data being carried out lexical analysis.
And resolving cell 503 can directly send to calling module 302 with the IPDS data block that obtains after decomposing, and by calling module 302 a plurality of IPDS data blocks is distributed to each processing module 303; Perhaps; The IPDS data block that resolving cell 503 will obtain after will decomposing sends to cache module 304 and preserves; Monitor by 302 pairs of cache modules 304 of calling module, when finding to have the IPDS data block after decomposing, the IPDS data block is distributed to each processing module 303.
Referring to Fig. 6, calling module 302 comprises Dispatching Unit 601, merge cells 602 and collector unit 603.
Dispatching Unit 601 is used for a plurality of IPDS data blocks are distributed to each processing module 303.The mode of distribution has multiple; As IPDS data block of the same type is distributed to same processing module 303; Concrete mode is distributed to same processing module 303 like the IPDS data block with image type, and the IPDS data block of literal type is distributed to same processing module 303; Perhaps, as a plurality of IPDS data blocks are distributed to each processing module 303 successively; Perhaps, as an IPDS data block being distributed to the current processing module 303 of idle condition that is, distribute modes such as a plurality of IPDS data blocks successively.
Merge cells 602 is used for the many parts of grating lattice data that a plurality of processing modules 303 carry out obtaining after the rasterization process are merged, and especially will merge about many parts of grating lattice data of the same page.Merge cells 602 can be further with the grating lattice data storage after merging to cache module 304, perhaps it is outputed to output module 305, like printing equipment etc.
Collector unit 603 is used for active collection or collects information such as processing power about each processing module 303, treatment state according to the inquiry request message that IPDS main frame 201 sends, like the quantity of processing module 303, be in the quantity of the processing module 303 of idle condition, sign and the relevant IPDS data that abnormity processing module 303 takes place etc. at present.For example; When IPDS main frame 201 is inquired the duty of print control units 202; As long as collect a processing module 303 unusual or mistake taking place, and then reported print control unit 202 that unusual or mistake take place, was in normal operating conditions as long as perhaps collect a processing module 303; Then report print control unit 202 in proper working order, perhaps report the duty of print control unit 202 in detail.
Present embodiment is to be that example is described in detail with said print control unit 202 as a device.Each functional module in the said print control unit 202 can be positioned at a plurality of equipment entity; Be positioned at a separate equipment entity like the interface module in the print control unit 202 301, Dispatching Unit 601 and output module 305 etc., merge cells 602 is positioned at equipment entity such as printer or duplicating machine.
Each module in the present embodiment all shows as an independently thread in operating system, realize parallel processing, is convenient to the management and the use of resource.
More than print control unit 202 has been carried out detailed description, down carry out detailed description in the face of grating processing method, referring to shown in Figure 7, the concrete grammar flow process is following:
Step 701: print control unit 202 obtains the configuration information (like the network address and port information etc.) of IPDS main frame 201, and connects through handshake method and IPDS main frame 201.
Step 702:IPDS main frame 201 sends the IPDS data with the form of data stream to print control unit 202.
Step 703: print control unit 202 receives the IPDS data.
Step 704: print control unit 202 is the non-coupling IPDS data blocks of a plurality of independences with the IPDS data decomposition of serial, is convenient to independently each IPDS data block carried out rasterization process.
Step 705: in decomposable process, adhere to each IPDS data block separately after print control unit 202 duplicates many parts with global property.Owing to the employed global property of a plurality of IPDS data objects can change along with processing such as the explanation of follow-up IPDS data and decomposition, be the unusual or mistake of avoiding this change to cause, thus carry out this replicate run, to support independent processing truly.
After operation splitting finishes, can continue step 703, and carry out step 706 simultaneously.
Step 706: what print control unit 202 walked abreast carries out rasterization process according to the local attribute in each IPDS data block to corresponding IPDS data object respectively, obtains the grating lattice data.Handle when having realized a large amount of IPDS data, improved processing speed.
Can directly export the grating lattice data of acquisition according to actual needs.Perhaps, continue step 707 according to actual needs.
Step 707: print control unit 202 will be merged into a grating lattice data about many parts of grating lattice data of the same page.Wherein, in the content-data that IPDS main frame 201 sends, comprise the identifier that the initial sum about the data stream of a width of cloth page stops, print control unit 202 can be known the IPDS data block and the corresponding grating lattice data of the corresponding same page according to this identifier.
Print control unit 202 can determine whether to carry out subsequent step according to actual needs.
Step 708: the grating lattice data after print control unit 202 is combined according to concrete actual needs are handled accordingly, as the grating lattice data are outputed to printing equipment, copy device etc.
In the present embodiment; Step 703 to step 706 can be carried out synchronously; Concrete mode is: when receiving the IPDS data, the IPDS data are carried out lexical analysis, when in analytic process, obtaining to have one section IPDS data of independent nothing coupling character; Confirm that this section IPDS data are an IPDS data block, and this IPDS data block is carried out rasterization process.This implementation makes from receiving the IPDS data to rasterization process, and the data after rasterization process merge, and is the parallel processing process, and the IPDS processing speed of data is greatly improved.
Present embodiment provides the signal of parallel processing instance of the IPDS data of a serial, is convenient to clearly understand this programme, referring to shown in Figure 8.
Print control unit 202 in the embodiment of the invention reply with connection, the reception of data, the host query of IPDS main frame mutual on do not change, show compatibility with existing apparatus.The user still can adopt original use-pattern to the use of IPDSRIP system, is convenient to the operation and maintenance to IPDS RIP system.The embodiment of the invention is that the inside of print control unit 202 is improved; Change original rasterisation serial processing mode into the parallel processing mode; Significantly optimized the overall performance of IPDS RIP system, made it can satisfy the user the more requirement or the more requirement of the high speed output device of horn of plenty of color of high speed output device.And the embodiment of the invention has further realized synchronous execution in this three step of reception IPDS data, decomposition IPDS data and rasterisation operation, on the basis of parallel rasterization process IPDS data, processing power is optimized once more.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.