Summary of the invention
For above-mentioned Problems existing, the invention provides a kind of color document image synthetic method and device, in order to realize synthesizing in real time the color document image after rasterization process, thus promote the object of sprayed printed system bulk treatment performance.
The invention provides a kind of color document image synthetic method, comprising:
Receive color document image synthesis processing instruction, described synthesis processing instruction comprises the page number of the current page to be synthesized in the color type and described color document image comprised in described color document image;
The memory address of the view data of synthesizing needed for the described current page to be synthesized is determined according to described color type and the described page number, described view data comprises the first variable data corresponding respectively with described often kind of color in fixing shading data corresponding respectively with often kind of color in described color type in described color document image and the described current page to be synthesized, described memory address comprises the address being respectively used to each first storage space storing described each fixing shading data and the address being respectively used to each second storage space storing described each first variable data, described each fixing shading data and described each first variable data are obtain after described color document image rasterization process,
From described each first storage space, described each fixing shading data are obtained respectively according to described memory address, from described each second storage space, obtain described each first variable data respectively, and each fixing shading data obtained and each first variable data are synthesized the described page to be synthesized to export.
The invention provides a kind of color document image synthesizer, comprising:
First receiver module, for receiving color document image synthesis processing instruction, described synthesis processing instruction comprises the page number of the current page to be synthesized in the color type and described color document image comprised in described color document image;
First determination module, for determining the memory address of the view data of synthesizing needed for the described current page to be synthesized according to described color type and the described page number, described view data comprises the first variable data corresponding respectively with described often kind of color in fixing shading data corresponding respectively with often kind of color in described color type in described color document image and the described current page to be synthesized, described memory address comprises the address being respectively used to each first storage space storing described each fixing shading data and the address being respectively used to each second storage space storing described each first variable data, described each fixing shading data and described each first variable data are obtain after described color document image rasterization process,
Processing module, for obtaining described each fixing shading data respectively from described each first storage space according to described memory address, from described each second storage space, obtain described each first variable data respectively, and each fixing shading data obtained and each first variable data are synthesized the described page to be synthesized to export.
Color document image synthetic method provided by the invention and device, the each fixing shading data that often kind of color in the color type obtaining comprising with it to color document image rasterization process is corresponding respectively, and after obtaining the variable data of answering with above-mentioned often kind of Color pair in each page, when needing the complete page of the output for printing, need to carry out synthesis to this page to export, each fixing shading data by the color document image belonging to each variable data in this page and this page carry out synthesis process.Take after the synthesis processing instruction of the page number of the page to be synthesized current in the color type comprised in chromatic colour image file and described color document image when receiving, determine to synthesize the memory address of each variable data needed for the current page to be synthesized and the memory address of required each fixing shading data according to this color type and the page number, and then obtain each fixing shading data and each variable data respectively from the corresponding respectively storage space of each memory address, and by each fixing shading data that obtain and the synthesis of each variable data to obtain the complete page to be synthesized and to export.Because above-mentioned each fixing shading data and each variable data are all according to each color separated comprised in color type, by the variable data of each page in the fixing shading data of color document image and file is come independently to store respectively according to color type, when making to synthesize the different page, all repeat from the first identical storage space, obtain each fixing shading data, and from the second storage space, the variable data of respective page is obtained according to the page number, be conducive to improving data reading performance using redundancy, thus the color document image after to rasterization process can be realized synthesize in real time, and then promote the object of sprayed printed system bulk treatment performance.
Embodiment
Fig. 1 is the process flow diagram of color document image synthetic method embodiment one of the present invention, and as shown in Figure 1, the method comprises:
Step 101, reception color document image synthesis processing instruction, described synthesis processing instruction comprises the page number of the current page to be synthesized in the color type and described color document image comprised in described color document image;
Step 102, the memory address of the view data of synthesizing needed for the described current page to be synthesized is determined according to described color type and the described page number, described view data comprises the first variable data corresponding respectively with described often kind of color in fixing shading data corresponding respectively with often kind of color in described color type in described color document image and the described current page to be synthesized, described memory address comprises the address being respectively used to each first storage space storing described each fixing shading data and the address being respectively used to each second storage space storing described each first variable data, described each fixing shading data and described each first variable data are obtain after described color document image rasterization process,
Step 103, from described each first storage space, obtain described each fixing shading data respectively according to described memory address, from described each second storage space, obtain described each first variable data respectively, and each fixing shading data obtained and each first variable data are synthesized the described page to be synthesized to export.
The described method that the present embodiment provides needs the scene of synthesizing each page in this file when the output for printing after being particularly useful for carrying out separation rasterization process to color document image.The shading data that color document image described in the present embodiment refers in particular to each page in file immobilize, namely there are fixing shading data, the color file that variable data in each page is relatively less, the public document (official document) of such as dichromatism.Described separation rasterization process, is namely be separated according to color type with the variable data of each page in file the fixing shading data in color document image, and then carries out rasterization process.Wherein, color type refers to the colour type that this file comprises, and such as comprises red, green, blue three kinds of colors, or comprises green grass or young crops, product, Huang, black four kinds of colors for another example.In the citing of public document only having one page, the fixing shading data of this file are such as that file comes back and the affixing one's seal of inscription place, and be such as redness, alternative document content is as variable data, be such as black, so now the color type of this file comprises red and black two kinds of colors.The described method that the present embodiment provides can be performed by a file synthesis device, and this device is preferably integrated to be arranged in digital printing equipment.
In the present embodiment, at pre-print system color document image rasterization process obtained to each fixing shading data that often kind of color in the color type comprised with it is corresponding respectively, and after obtaining the variable data of answering with above-mentioned often kind of Color pair in each page, when needing the complete page of the output for printing, need to carry out synthesis to this page to export, each fixing shading data by the color document image belonging to each variable data in this page and this page carry out synthesis process.Now, this device receiving package contains the synthesis processing instruction of the page number of color type and the current page to be synthesized comprised in this color document image.
And then, the memory address of the view data of synthesizing needed for the described current page to be synthesized is determined according to described color type and the described page number.Wherein, synthesize the view data required for this page, because in this color document image, the shading data of each page are identical, therefore, this view data comprises the fixing shading data of this color document image on the one hand, comprises the variable data of this page self on the other hand.Again due to after separation rasterization process, fixing shading data and variable data all carry out separating treatment according to color type, therefore, particularly, comprise each fixing shading data corresponding respectively with often kind of color on the one hand in the view data of this page, comprise first variable data corresponding respectively with often kind of color of this page on the other hand.For example, if include 4 kinds of colors in the color type of this color document image, so this color document image is just equivalent to there are 4 parts of fixing shading data, and these 4 parts fixing shading data investigation are synthesized together, and constitutes the fixing shading data of this color document image.In like manner, owing in same color document image being no matter the variable data of fixing shading data or each page, all there is identical color type, therefore, this current page to be synthesized also has 4 parts of variable datas and the first above-mentioned variable data, and these 4 parts of variable datas are superimposed and constitute the variable data of this page.
The above-mentioned page number according to color type and the page to be synthesized determines the memory address of the view data of synthesizing needed for the page to be synthesized, particularly, first be the address that the often kind of color comprised according to color type determines the first storage space storing each fixing shading data of answering with often kind of Color pair respectively, afterwards, the address of the second storage space of often kind of color each first variable data corresponding is respectively determined to store in this page according to the page number of often kind of color in this color type and this page to be synthesized.Still be exemplified as example with above-mentioned, 4 parts of fixing shading data of synthesizing needed for this page are stored in 4 the first storage spaces respectively, 4 parts of required variable datas are also stored in 4 the second storage spaces respectively, according to the storage concordance list set up in advance, namely the index of often kind of color first memory space address corresponding with it is comprised, the index of often kind of color, the page number and the second memory space address, can inquire the memory address of the view data of synthesis needed for the page to be synthesized.
And then, from each first storage space, each fixing shading data are obtained respectively according to this memory address, from each second storage space, obtain each first variable data respectively, and each fixing shading data obtained and each first variable data are synthesized the page to be synthesized and the output for printing.Particularly, this synthesis realizes with the operating process of rasterization process contrary by adopting, and namely each fixing shading data and each first variable data carried out to the reverse calculating of rasterization process algorithm, thus realize synthesis processing procedure.
In the present embodiment, take after the synthesis processing instruction of the page number of the page to be synthesized current in the color type comprised in chromatic colour image file and described color document image when receiving, determine to synthesize the memory address of each variable data needed for the current page to be synthesized and the memory address of required each fixing shading data according to this color type and the page number, and then from the corresponding respectively storage space of each memory address, obtain each fixing shading data and each variable data respectively, and each fixing shading data obtained and each variable data are synthesized to obtain the complete page to be synthesized and to export.Because above-mentioned each fixing shading data and each variable data are all according to each color separated comprised in color type, by the variable data of each page in the fixing shading data of color document image and file is come independently to store respectively according to color type, when making to synthesize the different page, all repeat from the first identical storage space, obtain each fixing shading data, and from the second storage space, the variable data of respective page is obtained according to the page number, be conducive to improving data reading performance using redundancy, thus the color document image after to rasterization process can be realized synthesize in real time, and then promote the object of sprayed printed system bulk treatment performance.
Fig. 2 is the process flow diagram of color document image synthetic method embodiment two of the present invention, and as shown in Figure 2, the method comprises the steps:
Step 201, reception color document image store instruction, described storage instruction comprises each second variable data that in described color type, the page sum of described color document image, the described each fixing shading data of described color document image and described color document image, each page is corresponding, and described each second variable data respectively should with often kind of Color pair in described color type;
Step 202, determine that the storage space of answering with often kind of Color pair in described color type respectively, each described storage space comprise the first storage space of the fixing shading data for storing corresponding color and the second storage space for the second variable data of storing corresponding color in described each page;
Step 203, to judge whether there is memory capacity in described each second storage space full, but the page quantity stored does not reach the second storage space of described page sum yet, if exist, then performs step 204, otherwise performs step 205;
Step 204, by predetermined number in the second full for described memory capacity storage space at first stored in and synthesized the page export variable data delete;
Step 205, by described each fixing shading data respectively stored in described each first storage space, in units of the page by each second variable data corresponding for described each page respectively stored in described each second storage space, and set up store concordance list.
In the present embodiment, the data after process, after having carried out separation rasterization process to color document image, generally can be sent to above-mentioned synthesizer, store to make synthesizer to the data received by pre-print system.Particularly, pre-print system sends the storage instruction carrying each second variable data that each page is corresponding in color type that color document image comprises, page sum, each fixing shading data of this color document image and this color document image to synthesizer, carry out this locality to make synthesizer to each fixing shading data and each second variable data to store, wherein, described each second variable data respectively should with often kind of Color pair in described color type.What deserves to be explained is, concerning a page, the second variable data that certain Color pair is answered can be one, also can be multiple, relevant with data content with concrete data type.
Synthesizer is after receiving above-mentioned storage instruction, determine the storage space of answering with often kind of Color pair in described color type respectively, each described storage space comprises the first storage space of the fixing shading data for storing corresponding color and the second storage space for the second variable data of storing corresponding color in described each page.
In the present embodiment, the color type that first storage resources of this locality comprises according to color document image is carried out the division of storage space by synthesizer, such as, is just divided into 4 storage spaces containing 4 kinds of colors.Wherein, each storage space Further Division is two sub spaces, and one is the first storage space of fixing shading data for storing corresponding color, and one is the second storage space of the variable data of each page for storing corresponding color.Be understandable that, in the second storage space, be equivalent to there is multiple storage unit, that be respectively used to store each page with variable data that is this storage space corresponding color.
Further, because fixing shading size of data is limited, its maximum upper limit is the maximum amount of data that a page size can be held.Therefore, when store in instruction further comprises page size when, can determine namely there is the maximum amount of data that the memory capacity of each first storage space is page size and can holds each first storage space of fixed size.
Further, due to the synthesis of each page in color document image is exported with receive rasterization process that this file comprises from pre-print system after data carry out simultaneously, therefore, after the fixing shading data having received the page that can synthesize a page or some when synthesizer and variable data, just carry out the synthesis output procedure of embodiment described in Fig. 1, continue to store subsequently received data simultaneously.In the process, it is full that synthesizer needs to judge whether there is memory capacity in above-mentioned each second storage space, but the page quantity stored does not reach the second storage space of the page sum of file yet, if exist, by predetermined number in the second full for described memory capacity storage space at first stored in and synthesized the variable data that the page exports and deleted, thus in the second storage space spared after the variable data of certain subsequently received page is stored into deletion; If do not exist, illustrate that the capacity of each second storage space enough uses, now, directly by described each fixing shading data respectively stored in described each first storage space, in units of the page by each second variable data corresponding for described each page respectively stored in described each second storage space, and set up storage concordance list, the storage concordance list namely in embodiment described in Fig. 1.
In addition, in the present embodiment, the mode of operation arranging each first storage space repeats write, the pattern that repeatable read is got for not allowing, and the mode of operation arranging each second storage space is the pattern that write was got and can be repeated to repeatable read.Namely each fixing shading data stored in each first storage space, stored in changing, have only allowed to read when each page of follow-up synthesis.And in order to ensure the effective and reasonable use of each second storage space, synthesized the historical data processed by above-mentioned deletion, allow each second storage space can return to write and read data.
Fig. 3 is the structural representation of color document image synthesizer embodiment one of the present invention, and as shown in Figure 3, this device comprises:
First receiver module 11, for receiving color document image synthesis processing instruction, described synthesis processing instruction comprises the page number of the current page to be synthesized in the color type and described color document image comprised in described color document image;
First determination module 12, for determining the memory address of the view data of synthesizing needed for the described current page to be synthesized according to described color type and the described page number, described view data comprises the first variable data corresponding respectively with described often kind of color in fixing shading data corresponding respectively with often kind of color in described color type in described color document image and the described current page to be synthesized, described memory address comprises the address being respectively used to each first storage space storing described each fixing shading data and the address being respectively used to each second storage space storing described each first variable data, described each fixing shading data and described each first variable data are obtain after described color document image rasterization process,
Processing module 13, for obtaining described each fixing shading data respectively from described each first storage space according to described memory address, from described each second storage space, obtain described each first variable data respectively, and each fixing shading data obtained and each first variable data are synthesized the described page to be synthesized to export.
The device of the present embodiment may be used for the technical scheme performing embodiment of the method shown in Fig. 1, and it realizes principle and technique effect is similar, repeats no more herein.
Fig. 4 is the structural representation of color document image synthesizer embodiment two of the present invention, and as shown in Figure 4, this device is on basis embodiment illustrated in fig. 3, and described device also comprises:
Second receiver module 21, instruction is stored for receiving color document image, described storage instruction comprises each second variable data that in described color type, the described each fixing shading data of described color document image and described color document image, each page is corresponding, and described each second variable data respectively should with often kind of Color pair in described color type;
Second determination module 22, for determining the storage space of answering with often kind of Color pair in described color type respectively, each described storage space comprises the first storage space of the fixing shading data for storing corresponding color and the second storage space for the second variable data of storing corresponding color in described each page;
Memory module 23, for by described each fixing shading data respectively stored in described each first storage space, in units of the page by each second variable data corresponding for described each page respectively stored in described each second storage space, and set up store concordance list.
Further, the page sum of described color document image is also comprised in described storage instruction;
Described device also comprises:
Judge module 24, full for judging whether there is memory capacity in described each second storage space, but the page quantity stored does not reach the second storage space of described page sum yet;
Removing module 25, if full for there is memory capacity, but the page quantity stored does not reach the second storage space of described page sum yet, then by predetermined number in the second full for described memory capacity storage space at first stored in and synthesized the page export variable data delete.
Further, also comprise page size in described storage instruction, the maximum amount of data that the memory capacity of described each first storage space can be held according to described page size is determined.
Particularly, the mode of operation of described each first storage space repeats write, the pattern that repeatable read is got for not allowing, and the mode of operation of described each second storage space is the pattern that write was got and can be repeated to repeatable read.
The device of the present embodiment may be used for the technical scheme performing embodiment of the method shown in Fig. 2, and it realizes principle and technique effect is similar, repeats no more herein.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that programmed instruction is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.