The content of the invention
The present invention provides a kind of rasterizing processing method and grating image processor, for improving rasterizing efficiency.
The first aspect of the invention is to provide a kind of rasterizing processing method, including:
Page info is parsed using page parsing device, obtains intermediate file;The page info is treated for description
The page of printing;
The intermediate file is stored in page buffer pond to be assembled, to be stored according in the page buffer pond to be assembled
Intermediate file carry out assembling processing, generate the data message of pixel-matrix image format, export the data message;The number
It is believed that cease for being printed to the page;
If detection determines the memory space in the page buffer pond to be assembled less than repeating and described utilize page solution
Parser parses to page info, obtains intermediate file, and described by intermediate file deposit page buffer to be assembled
Step in pond.
Wherein, after in the page buffer pond to be assembled by intermediate file deposit, in addition to:
Using first in first out as principle, the intermediate file is taken out from the page buffer pond to be assembled;
The intermediate file is split, obtains at least one section;
Using at least one assembler, described at least one section is assembled parallel respectively, obtains each described section of institute
Corresponding data message;
The data message corresponding to output is each described section, to be printed to the page.
Another aspect of the present invention is to provide a kind of grating image processor, including:
Parsing module, for being parsed using page parsing device to page info, obtain intermediate file;The page letter
Cease for describing the page to be printed;
First cache module, for the intermediate file to be stored in page buffer pond to be assembled, to treat group according to
The intermediate file stored in dress page buffer pond carries out assembling processing, generates the data message of pixel-matrix image format, output
The data message;The data message is used to print the page;
Detection module, if determining the memory space in the page buffer pond to be assembled less than repeating for detecting
It is described that page info is parsed using page parsing device, intermediate file is obtained, and described be stored in the intermediate file
Step in page buffer pond to be assembled.
Wherein, the grating image processor, in addition to:
First acquisition module, for using first in first out as principle, taken out from the page buffer pond to be assembled it is described in
Between file;
Module is split, for being split to the intermediate file, obtains at least one section;
Module is assembled, for utilizing at least one assembler, described at least one section is assembled parallel respectively, is obtained
Data message corresponding to each described section;The data message is pixel-matrix image format;
Output module, for exporting the data message corresponding to each described section, to be printed to the page.
Rasterizing processing method provided by the invention and grating image processor, by using page parsing device to the page
Information is parsed, and after obtaining intermediate file, intermediate file is stored in page buffer pond to be assembled, if detection determination is to be assembled
The memory space in page buffer pond less than, then repeat and page info parsed using page parsing device, obtain among
File, and the intermediate file is stored in the step in page buffer pond to be assembled, solve using page parsing device right
The page info of one page carry out parsing generation intermediate file after, it is necessary to wait the intermediate file that assembler to be utilized generates to it
After the completion of carrying out assembling processing, the page info of next page could be proceeded by less efficient caused by rasterizing
Technical problem.
Embodiment
Fig. 1 is the schematic flow sheet for the rasterizing processing method that one embodiment of the invention provides, the method in the present embodiment
It can be performed by RIP, as shown in figure 1, including:
101st, page info is parsed using page parsing device, obtains intermediate file.
Wherein, page info is used to describe the page to be printed.
Optionally, RIP receives the page being described by using PDL to state of the page elements in the page
Information.Such as:PDL concretely portable document format(Portable Document Format, PDF).RIP
After the page info for receiving PDL description, parsed, obtained middle respectively according to the type of page info
File.Wherein, for the page info of literal type, then take out character contour and be described;Structure is then needed for vector graphics
Path profile is built, the path profile is described using position coordinates, specifically changes the position coordinates unrelated with output equipment
Into the position coordinates related to output equipment, that is, the conversion of coordinate system is carried out, generation is represented using the coordinate system of output equipment
Path profile describes;Then its pixel data is fed directly to handle in next step for image.
102nd, intermediate file is stored in page buffer pond to be assembled, to be stored according in the page buffer pond to be assembled
Intermediate file carry out assembling processing, after the data message for generating pixel-matrix image format, export the data message.
Wherein, data message is used to print the page.
It should be noted that before being printed to the page, it is also necessary to the data message is post-processed, wrapped
Color correction, linearisation and reverse sawtooth operation are included, after being post-processed, can also carry out plate-making flow.
Optionally, intermediate file is stored in page buffer pond to be assembled by RIP, so as to being deposited in page buffer pond to be assembled
The intermediate file of storage carries out assembling processing, that is, is scanned and turns according to features such as the resolution ratio of output equipment and page sizes
Processing is changed, screening processing is carried out to the graph text information for needing screening, the final data message for obtaining pixel-matrix image format is defeated
Go out the data message.
The 103rd, if detection determines the memory space in the page buffer pond to be assembled less than repeating and utilize page solution
Parser parses to page info, obtains intermediate file, and the intermediate file is stored in page buffer pond to be assembled
The step of.
For clearer explanation the present embodiment, the present embodiment additionally provides a kind of operation to receiving and carries out rasterizing
The achievable mode of processing, including:Seven page infos included by operation are received, now, page buffer pond to be assembled is sky,
First page info is parsed, obtains intermediate file, the intermediate file is stored in page buffer pond to be assembled, detection
To page buffer pond to be assembled memory space less than then repeating to hold to second page info to the 4th page info successively
Row is parsed using page parsing device to page info, obtains intermediate file, and described be stored in the intermediate file is treated
Assemble the step in page buffer pond.While being parsed to the 5th page info, what first page parsing obtained
Intermediate file is taken out from the page buffer pond to be assembled, then the 5th page info is stored in page buffer pond to be assembled,
But because now page buffer pond to be assembled memory space is full, then pause parses to the 6th page info, until the
The intermediate file that two page parsings obtain takes out from the page buffer pond to be assembled, so as to detect page buffer to be assembled
Pond memory space is less than continuing to parse the 6th page info.Similarly, the 7th page info is parsed.When
When the intermediate file that 7th page info parsing obtains is stored in page buffer pond to be assembled, due in advance to the 7th page
Information is marked, and to indicate last page info of the 7th page info as operation, then page parsing device stops
Only work.
Further, after the intermediate file is stored in page buffer pond to be assembled, in addition to:Using first in first out as original
Then, the intermediate file is obtained from the page buffer pond to be assembled;The intermediate file is split, obtains at least one
Individual section;Using at least one assembler, described at least one section is assembled parallel respectively, is obtained each corresponding to described section
Data message;The data message corresponding to output is each described section, to be printed to the page.Wherein, data
Information is pixel-matrix image format.
In the present embodiment, the page info is parsed by using page parsing device, after obtaining intermediate file, by
Between file be stored in page buffer pond to be assembled, if detection determines the memory space in page buffer pond to be assembled less than repeating
Execution is parsed using page parsing device to page info, obtains intermediate file, and intermediate file deposit is treated into group
The step in page buffer pond is filled, is solved using page parsing device in parsing generation is carried out to the page info of a page
Between after file, it is necessary to after the completion of the intermediate file for waiting assembler to be utilized to generate it carries out assembling processing, could be to next
The page info of the page proceeds by the less efficient technical problem caused by rasterizing.
Fig. 2 is the schematic flow sheet for the rasterizing processing method that another embodiment of the present invention provides, as shown in Fig. 2 including:
201st, page info is received.
Wherein, the mark for being used for indicating sequence of pages can be included in page info, and/or homepage is identified, and/or
Last page is identified.
Optionally, it may be used to indicate for a print job and multiple pages printed, thus a corresponding work
Industry includes multiple page infos, carries out rasterizing processing to the plurality of page info successively.
202nd, detection determine the memory space in page buffer pond to be assembled less than.
Optionally, current RIP has completed to parse the page info of the n-th page using page parsing device, and will
If the intermediate file that parsing obtains is stored in page buffer pond to be assembled, detecting the memory space in page buffer pond to be assembled is
No full, if full, pause receives the page info of the N+1 page, if it is not, then receiving the page letter of the N+1 page
Breath.
203rd, page info is parsed using page parsing device, obtains intermediate file, group is treated into intermediate file deposit
Fill in page buffer pond.
Further, after intermediate file is stored in page buffer pond to be assembled, then in repeating 202 determination is detected to treat
Assemble the step of memory space in page buffer pond is less than page info is received, however, it is determined that the storage in page buffer pond to be assembled is empty
Between less than, then receive the page info of next page, so as to the process parsed to the page info of next page, with
The process that is assembled to the intermediate file of current page while perform.
204th, if it is determined that the idle label drawer for not being stored with the data message in be output section of buffer pool be present, with elder generation
Enter and first go out for principle, the intermediate file is taken out from the page buffer pond to be assembled.
The memory space of each label drawer in be output section of buffer pool is detected, if detection is determined in be output section of buffer pool
In the presence of the idle label drawer for not being stored with the data message, that is to say, that the memory space of to be output section of buffer pool less than,
Then using first in first out as principle, intermediate file is obtained from page buffer pond to be assembled, and is deleted in page buffer pond to be assembled
The intermediate file.If detection determines that idle label drawer is not present in be output section of buffer pool, pause is entered to intermediate file
Row is split, until detection determines idle label drawer be present in be output section of buffer pool.
205th, intermediate file is split, obtains at least one section.
Optionally, intermediate file is split, obtains at least one section, record border model of this section in intermediate file
Enclose, the attribute using the bounds as this section, and each section at least one section is numbered respectively, obtain each institute
State the segment number of section.
Further, split to intermediate file, after obtaining at least one section, the section can be also packaged, obtained
Object is obtained, object includes the attribute of section and section.
206th, will to be assembled section of buffer pool of each described section of deposit.
207th, when idle assembler be present, using first in first out as principle, the section is obtained to be assembled section of buffer pool.
Optionally, the working condition of each assembler is marked, labeled as hurrying if assembler works, instead
It, labeled as the free time, when existing labeled as idle assembler, using first in first out as principle, delays from the page to be assembled
Rush in pond and obtain described section.
208th, using at least one assembler, described at least one section is assembled parallel respectively, is obtained each described
Data message corresponding to section.
Wherein, data message is pixel-matrix image format.
Optionally, using at least one assembler, while at least one section is assembled respectively.To each section of difference
When being assembled, according to bounds of this section in intermediate file, intermediate file is traveled through using assembler, in the border model
Intermediate file in enclosing is assembled, so as to obtain the data message corresponding to this section.Intermediate file is being traveled through using assembler,
When being assembled to the intermediate file in the bounds, due to intermediate file can quote the page resource related to the page or
The job class resource related to operation, then using resource read operation device corresponding to the assembler to page resource or job class resource
Carry out read operation.In addition, can also be when by each to be assembled section of buffer pool of described section of deposit, to last to be assembled section of deposit
The section of buffer pool carries out special marking, when an assembler in each assembler is handled the section for carrying out special marking
When, then each assembler is finished labeled as the free time with instruction to the web page packaging.
209th, by each described section corresponding to the data message, be stored in be output section of buffer pool sequence number with it is described
In the segment number identical label drawer of section.
Optionally, label drawer in deferent segment buffer pool is treated in advance to be numbered, and obtains the sequence number of label drawer, will be every
The data message corresponding to individual described section, it is stored in sequence number and described section of segment number identical mark in be output section of buffer pool
In number drawer.
210th, according to the sequence number of label drawer, the data corresponding to each section stored in the label drawer are sequentially output
Information, to be printed to the page.
211st, the data message stored in the label drawer is deleted.
In the present embodiment, the page info is parsed by using page parsing device, after obtaining intermediate file, by
Between file be stored in page buffer pond to be assembled, if detection determines the memory space in page buffer pond to be assembled less than repeating
Execution is parsed using page parsing device to page info, obtains intermediate file, and intermediate file deposit is treated into group
The step in page buffer pond is filled, is solved using page parsing device in parsing generation is carried out to the page info of a page
Between after file, it is necessary to after the completion of the intermediate file for waiting assembler to be utilized to generate it carries out assembling processing, could be to next
The page info of the page proceeds by the less efficient technical problem caused by rasterizing.
Fig. 3 is the structural representation for the grating image processor that one embodiment of the invention provides, as shown in figure 3, grid map
As processor, including:Parsing module 31, the first cache module 32 and detection module 33.
Parsing module 31, for being parsed using page parsing device to page info, obtain intermediate file.
Wherein, page info is used to describe the page to be printed.
First cache module 32, is connected with parsing module 31, for the intermediate file to be stored in into page buffer to be assembled
Chi Zhong, to carry out assembling processing according to the intermediate file stored in the page buffer pond to be assembled, generate pixel-matrix image
The data message of form, export the data message.
Wherein, data message is used to print the page.
Detection module 33, it is connected with the first cache module 32 and parsing module 31, if described to be assembled for detecting determination
The memory space in page buffer pond is less than then repeating in parsing module 31 and page info is solved using page parsing device
Analysis, intermediate file is obtained, and the intermediate file is stored in the step in page buffer pond to be assembled by the first cache module 32.
Further, Fig. 4 is the structural representation for another grating image processor that one embodiment of the invention provides, and is such as schemed
Shown in 4, grating image processor further comprises:First acquisition module 41, split module 42, assembling module 43 and output module
44。
First acquisition module 41, it is connected with the first cache module 32, for using first in first out as principle, from described to be assembled
The intermediate file is taken out in page buffer pond.
Module 42 is split, is connected with the first acquisition module 41, for being split to the intermediate file, obtains at least one
Individual section.
Module 43 is assembled, is used to utilize at least one assembler with splitting module 42, at least one section of difference simultaneously
Row is assembled, and obtains the data message each corresponding to described section.
Wherein, data message is pixel-matrix image format.
Output module 44, it is connected with assembling module 43, for exporting the data message corresponding to each described section, with
The page is printed.
Further, grating image processor, in addition to:Second cache module 45 and the second acquisition module 46.
Second cache module 45, it is connected with splitting module 42, for being split to the intermediate file, obtains at least one
, will to be assembled section of buffer pool of each described section of deposit after individual section.
Second acquisition module 46, it is connected with the second cache module 45 and assembling module 43, for when in the presence of described in the free time
During assembler, using first in first out as principle, described section is obtained from the to be assembled section of buffer pool.
Further, grating image processor, in addition to:
Numbering module 47, it is connected with splitting module 42, for being split to the intermediate file, obtains at least one section
Afterwards, each section in described at least one section is numbered respectively, obtains each described section segment number.
The then output module 44, specifically for the data message corresponding to by each described section, be stored in treat it is defeated
Go out in section buffer pool in sequence number and described section of segment number identical label drawer;It is defeated successively according to the sequence number of the label drawer
Go out in the label drawer data message corresponding to each section stored, to be printed to the page.
The output module 44, the sequence number according to the label drawer is additionally operable to, is sequentially output in the label drawer and deposits
After data message corresponding to each section of storage, the data message stored in the label drawer is deleted.
The then grating image processor, in addition to:
Determining module 48, it is connected with the first acquisition module 41, for using first in first out as principle, from the page to be assembled
Before the intermediate file is obtained in buffer pool, determine in the to be output section of buffer pool exist be not stored with the data message
Idle label drawer.
In the present embodiment, the page info is parsed by using page parsing device, after obtaining intermediate file, by
Between file be stored in page buffer pond to be assembled, if detection determines the memory space in page buffer pond to be assembled less than repeating
Execution is parsed using page parsing device to page info, obtains intermediate file, and intermediate file deposit is treated into group
The step in page buffer pond is filled, is solved using page parsing device in parsing generation is carried out to the page info of a page
Between after file, it is necessary to after the completion of the intermediate file for waiting assembler to be utilized to generate it carries out assembling processing, could be to next
The page info of the page proceeds by the less efficient technical problem caused by rasterizing.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey
Sequence upon execution, execution the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent
The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to
The technical scheme described in foregoing embodiments can so be modified, either which part or all technical characteristic are entered
Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology
The scope of scheme.