Specific embodiment
Fig. 1 is high-speed data transmission method flow chart provided in an embodiment of the present invention.The embodiment of the present invention is directed to computer
File destination to be printed or to be printed is sent to digital printer, and the high-speed data transmission method of computer side is provided, it should
Method specific steps are as follows:
Step S101, rasterization process file destination obtains multiple data sectionals;
It includes: according to rasterization process file destination process that the rasterization process file destination, which obtains multiple data sectionals,
Multiple color face datas of middle generation, choose the field of predefined size from each color face data, and the field is assembled
For the data sectional.
Rasterization process software is installed, file destination to be printed or to be printed is portable document in computer equipment
Formatted file, such as pdf document generate multiple color face datas, such as target text during rasterization process file destination
One pixel of part is corresponding with tetra- kinds of color elements of CMYK, then multiple color face datas include: the color face data containing C, containing M's
The data unit of color face data, the color face data containing Y and the color face data containing K, color face data is 8bit, from each color face
8 data units are chosen in data respectively and are assembled into the data sectional including 32 8bit, specific assemble method is shown in Table 1 He
Table 2:
Table 1
C |
M |
Y |
K |
C |
M |
Y |
K |
C |
M |
Y |
K |
C |
M |
Y |
K |
C |
M |
Y |
K |
C |
M |
Y |
K |
C |
M |
Y |
K |
C |
M |
Y |
K |
Table 2
C |
C |
C |
C |
C |
C |
C |
C |
M |
M |
M |
M |
M |
M |
M |
M |
Y |
Y |
Y |
Y |
Y |
Y |
Y |
Y |
K |
K |
K |
K |
K |
K |
K |
K |
C, M, Y, K as shown in table 1, table 2 account for 8bit, and color element of the embodiment of the present invention is not limited only to C, M, Y, K, often
A color element is not limited only to 8bit.
Step S102, the multiple data sectional is compressed respectively, obtains multiple compressed segmentations;
It is described to the multiple data sectional respectively carry out compression include: according to compression algorithm to the multiple data sectional
It is compressed respectively, the corresponding adaptive adjustment score value of the compression algorithm is maximum.
The multiple data sectional is compressed respectively by compression algorithm, obtains multiple compressed segmentations, the present invention is real
Selection of the example for compression algorithm is applied, using the method for adaptive adjustment score value, i.e., the score value model for the data volume compressed per minute
It encloses for 1-10, the score range of compression ratio is 1-10, is printed to the data volume that various compression algorithms are compressed per minute divided by number
The ratio of brush machine output data quantity per minute does normalized, then corresponds to scatter distributions to 1- to the score value after normalization
10 score value section.Normalized equally done to compression ratio, and by the result scatter distributions after normalized to 1-10
Score value section.Comprehensive scores are calculated by the weight 60% of compression efficiency and the weight 40% of compression ratio, choose comprehensive scores most
High compression algorithm is preferentially to use algorithm.Wherein, the weighted value of the weight of compression efficiency and compression ratio can be according to specific
The characteristic of digital printer adjusts.
Step S103, the multiple compressed segmentation digital printer is sent to print.
If the operating mode of digital printer is to explain the operating mode printed immediately, the i.e. printing of digital printer immediately
Efficiency is higher, to the more demanding of data transmission bauds, then the step S102 compressed segmentation obtained is transferred to printer adapter,
Printer adapter is inserted on computer motherboard, and the PCIX board for being communicated with digital printer passes through print control
Compressed segmentation is transferred to digital printer and printed by card.
The embodiment of the present invention obtains multiple data sectionals by rasterization process file destination, compared with the existing technology will be to
The file destination of printing carries out rasterization process, obtains multiple compressed color face datas, by the color face data of multiple compressions point
It is not decompressed, and multiple color face datas after decompression is organized into multiple data sectionals, save rasterization process target text
The step of part, improves subsequent data transmission efficiency, and then improves the printing efficiency of digital printer.
On the basis of the above embodiments, described the multiple compressed segmentation is sent to digital printer to carry out printing packet
It includes: the multiple compressed segmentation being carried out to decompression respectively and obtains decompression data;It is to meet the number by the decompression data compression
The recompression data of the corresponding data transmission interface agreement of code printing machine;By the recompression data be sent to digital printer into
Row printing.
In the above-described embodiments, compressed segmentation is transferred to printer adapter, and printer adapter first receives compressed segmentation, and according to
The compressed segmentation is decompressed according to decompression algorithm corresponding with above-mentioned compression algorithm and obtains decompression data, and corresponding according to digital printer
Data transmission interface agreement by the decompression data compression be to meet the recompression data of digital printer print format, by printing
The recompression data are sent to digital printer and printed by control card.
It is described that the multiple data sectional is compressed respectively, after obtaining multiple compressed segmentations, further includes: will be described
Multiple compressed segmentations are cached to disk;
It is described that be sent to digital printer to carry out printing by the multiple compressed segmentation include: to described in the disk
Multiple compressed segmentations do acceleration processing, obtain the multiple compressed segmentation from the disk, and by the multiple compressed segmentation
Digital printer is sent to be printed.
If the printing efficiency of digital printer is not high, to data transmission bauds it is of less demanding when, step S102 is obtained
Compressed segmentation to disk, and to the multiple compressed segmentations stored in disk do acceleration processing by caching of page, from the disk
The multiple compressed segmentation is obtained, and the multiple compressed segmentation is sent to digital printer and is printed.
The embodiment of the present invention further improves data transmission efficiency by the data in computer-internal transmission compression,
And then improve the printing efficiency of digital printer.
Fig. 2 is the structure chart of high-speed data transmission apparatus provided in an embodiment of the present invention.Height provided in an embodiment of the present invention
Fast data transmission device installation in a computer, can execute the process flow of high-speed data transmission method embodiment offer, such as
Shown in Fig. 2, high-speed data transmission apparatus 20 includes rasterization process module 21, compression module 22, transmission module 23 and printing control
Molding block 24, wherein rasterization process module 21 obtains multiple data sectionals for rasterization process file destination;Compression module
22, for compressing respectively to the multiple data sectional, obtain multiple compressed segmentations;Transmission module 23 is used for transmission described
Multiple compressed segmentations;Printing control model 24 is printed for the multiple compressed segmentation to be sent to digital printer.
The embodiment of the present invention obtains multiple data sectionals by rasterization process file destination, compared with the existing technology will be to
The file destination of printing carries out rasterization process, obtains multiple compressed color face datas, by the color face data of multiple compressions point
It is not decompressed, and multiple color face datas after decompression is organized into multiple data sectionals, save rasterization process target text
The step of part, improves subsequent data transmission efficiency, and then improves the printing efficiency of digital printer.
Fig. 3 be another embodiment of the present invention provides high-speed data transmission apparatus structure chart.In the base of above-described embodiment
On plinth, rasterization process module 21 is specifically used for according to the multiple color face datas generated during rasterization process file destination,
The field of predefined size is chosen from each color face data, and the field is assembled into the data sectional.
Printing control model 24 includes receiving unit 241, decompression units 242 and data outputting unit 243, wherein is received
Unit 241 is for receiving the multiple compressed segmentation;Decompression units 242 for decompressing the multiple compressed segmentation respectively
Obtain decompression data;Data outputting unit 243 is used for the decompression data compression is corresponding to meet the digital printer
The recompression data of data transmission interface agreement;The recompression data are sent to digital printer to print.
Compression module 22 is specifically used for compressing the multiple data sectional respectively according to compression algorithm, the compression
The corresponding adaptive adjustment score value of algorithm is maximum.
High-speed data transmission apparatus 20 further includes that disk accelerates read module 25, and disk accelerates read module 25 to be used for institute
It states multiple compressed segmentations and is cached to disk;Acceleration processing is done to the multiple compressed segmentation in the disk, from the disk
It is middle to obtain the multiple compressed segmentation, and the multiple compressed segmentation is sent to digital printer and is printed.
High-speed data transmission apparatus provided in an embodiment of the present invention can be specifically used for executing method provided by above-mentioned Fig. 1
Embodiment, details are not described herein again for concrete function.
The embodiment of the present invention further improves data transmission efficiency by the data in computer-internal transmission compression,
And then improve the printing efficiency of digital printer.
In conclusion the embodiment of the present invention obtains multiple data sectionals by rasterization process file destination, relative to existing
There is technology that file destination to be printed is carried out rasterization process, multiple compressed color face datas is obtained, by multiple compressions
Color face data is decompressed respectively, and multiple color face datas after decompression are organized into multiple data sectionals, saves rasterisation
The step of processing target file, improves subsequent data transmission efficiency, and then improves the printing efficiency of digital printer;It is logical
The data in computer-internal transmission compression are crossed, further improve data transmission efficiency, and then improve digital printer
Printing efficiency.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit
Letter connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention
The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various
It can store the medium of program code.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each functional module
Division progress for example, in practical application, can according to need and above-mentioned function distribution is complete by different functional modules
At the internal structure of device being divided into different functional modules, to complete all or part of the functions described above.On
The specific work process for stating the device of description, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.