CN101393610B - Transmission method and apparatus for dot matrix data - Google Patents

Transmission method and apparatus for dot matrix data Download PDF

Info

Publication number
CN101393610B
CN101393610B CN2008102262713A CN200810226271A CN101393610B CN 101393610 B CN101393610 B CN 101393610B CN 2008102262713 A CN2008102262713 A CN 2008102262713A CN 200810226271 A CN200810226271 A CN 200810226271A CN 101393610 B CN101393610 B CN 101393610B
Authority
CN
China
Prior art keywords
dot array
array data
data section
file
section
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2008102262713A
Other languages
Chinese (zh)
Other versions
CN101393610A (en
Inventor
谢浩
郎猛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN2008102262713A priority Critical patent/CN101393610B/en
Publication of CN101393610A publication Critical patent/CN101393610A/en
Application granted granted Critical
Publication of CN101393610B publication Critical patent/CN101393610B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and a device for transmitting dot matrix data for increasing the speed of transmitting the dot matrix data to an output device so as to adapt to the requirement on high-speed output of the output device. The method for transmitting the dot matrix data comprises the following steps: extracting description information of the dot matrix data, and performing segment processing on the dot matrix data according to the description information and the characteristic parameter of the output device so as to obtain each dot matrix data segment; performing pretreatment on each dot matrix data segment to generate an intermediate format dot matrix data file FSTIF which comprises file description information and each dot matrix data segment after the pretreatment; and pre-reading each dot matrix data segment after the pretreatment in the FSTIF file into a pre-reading memory buffer area of a magnetic disc according to the file description information, and extracting each dot matrix data segment after the pretreatment in the pre-reading memory buffer area of the magnetic disc, restoring and transmitting the each dot matrix data segment after the pretreatment to the output device.

Description

A kind of transmission method of dot array data and device
Technical field
The present invention relates to digital printed technical field, relate in particular to a kind of transmission technology of dot array data.
Background technology
Digital printed technology is the printing technology of high speed development in recent years, and develops towards quick, high-quality and strong ageing direction, and equipment also develops into Computer To Plate equipment from traditional film imaging device before the seal.
Digital printed typical process flow is: the page description file that the equipment utilization Computer Processing will need to print before the seal is converted into Portable Document format (Portable Document Format, PDF) file or other formatted file, raw data in pdf document or other formatted file is obtained dot array data by the computing machine rasterization process, again dot array data is sent to the enterprising line output of output device (or claiming the printing imaging device).
In the prior art, dot array data is being sent in the process of output device, general characterisitic parameter according to output device, characterisitic parameter comprises that output device once can receive the line number or the data volume of dot array data, the dot array data of one alignment number is sent to output device by data line, send printing or exposure instruction again, and repeat said process until the dot array data end of transmission.But along with the output speed of output device improves constantly, the horizontal line length that output device can be exported constantly increases, and the speed that sends dot array data to output device then seemed slow, can't satisfy the requirement that output device is exported at a high speed.
Summary of the invention
The invention provides a kind of transmission method and device of dot array data,, adapt to the requirement that output device is exported at a high speed in order to promote the speed that sends dot array data to output device.
The transmission method of dot array data provided by the invention comprises:
Extract the descriptor of dot array data, the descriptor of described dot array data comprises the number of buses of dot array data, horizontal line length and total amount of data;
The line number that once can receive dot array data according to the number of buses and the output device of dot array data carries out staging treating to dot array data, the line number of each dot matrix data segment of gained equates and is no more than the line number that output device once can receive dot array data, and obtains the data volume of dot array data section according to the horizontal line length of dot array data; Perhaps, according to the data volume that the total amount of data and the output device of dot array data once can receive dot array data dot array data is carried out staging treating, the data volume of each dot matrix data segment of gained equates and is no more than the data volume that output device once can receive dot array data, and obtains the line number of dot array data section according to the horizontal line length of dot array data;
Each dot matrix data segment is carried out generating intermediate form dot array data file FSTIF after the pre-service, and described FSTIF file comprises file description information and each pretreated dot array data section;
According to described file description information, each pretreated dot array data section in the FSTIF file is read in the pre-rdma read buffer zone of disk in advance, and from the pre-rdma read buffer zone of disk, extract each pretreated dot array data section and reduction sends to output device.
The transmitting device of dot array data provided by the invention comprises:
The staging treating module is used to extract the descriptor of dot array data, and the descriptor of described dot array data comprises the number of buses of dot array data, laterally line length and total amount of data; The line number that once can receive dot array data according to the number of buses and the output device of dot array data carries out staging treating to dot array data, the line number of each dot matrix data segment of gained equates and is no more than the line number that output device once can receive dot array data, and obtains the data volume of dot array data section according to the horizontal line length of dot array data; Perhaps, according to the data volume that the total amount of data and the output device of dot array data once can receive dot array data dot array data is carried out staging treating, the data volume of each dot matrix data segment of gained equates and is no more than the data volume that output device once can receive dot array data, and obtains the line number of dot array data section according to the horizontal line length of dot array data;
Pretreatment module is used for each dot matrix data segment is carried out generating intermediate form dot array data file FSTIF after the pre-service, and described FSTIF file comprises file description information and each pretreated dot array data section;
Memory module is used to store the FSTIF file that described pretreatment module generates;
Quicken output module, be used for according to described file description information, each pretreated dot array data section in the FSTIF file is read in the pre-rdma read buffer zone of disk in advance, and from the pre-rdma read buffer zone of disk, extract each pretreated dot array data section and reduction sends to output device.
The transmission method of dot array data provided by the invention and device carry out staging treating to dot array data, and each dot matrix data segment is carried out generating the FSTIF file after the pre-service, by the dot array data section is carried out pre-service, can reduce the single amount of reading of dot array data; According to file description information, each pretreated dot array data section in the FSTIF file is read in the pre-rdma read buffer zone of disk in advance, and from the pre-rdma read buffer zone of disk, extract each pretreated dot array data section and reduction sends to output device, reading acceleration by data in magnetic disk handles, improved data extract speed, thereby significantly improved data rate, can adapt to the requirement that output device is exported at a high speed.
Description of drawings
Fig. 1 is the transmission method process flow diagram of dot array data in the embodiment of the invention;
Fig. 2 is the processing flow chart that generates the FSTIF file in the embodiment of the invention;
Fig. 3 carries out pretreated process flow diagram in the embodiment of the invention to arbitrary dot matrix data segment;
Fig. 4 a extracts arbitrary pretreated dot array data section and reduces the processing flow chart that sends to the output device of supporting the paper feed order in the embodiment of the invention;
Fig. 4 b extracts arbitrary pretreated dot array data section and reduces the processing flow chart that sends to the output device of not supporting the paper feed order in the embodiment of the invention;
Fig. 5 is the transmitting device block diagram of dot array data in the embodiment of the invention.
Embodiment
Dot array data is being sent in the process of output device in order to solve, data rate can't satisfy the problem that output device is exported at a high speed, the embodiment of the invention provides a kind of transmission method and device of dot array data, in order to promote the speed that sends dot array data to output device, adapt to the requirement that output device is exported at a high speed.
As shown in Figure 1, the transmission method of the dot array data that the embodiment of the invention provides comprises the steps:
The descriptor of S101, extraction dot array data is carried out staging treating according to the descriptor of dot array data and the characterisitic parameter of output device to dot array data, obtains each dot matrix data segment;
S102, each dot matrix data segment is carried out generating intermediate form dot array data file (FSTIF) after the pre-service, this FSTIF file comprises file description information and each pretreated dot array data section;
S103, according to file description information, each pretreated dot array data section in the FSTIF file is read in the pre-rdma read buffer zone of disk in advance, and from the pre-rdma read buffer zone of disk, extracts each pretreated dot array data section and reduction sends to output device.
Among the S101, the descriptor of dot array data needs to comprise the number of buses of dot array data at least, is meant with the point to be the dot array data height of unit, can represent with TotalLines, and whole dot array data can be regarded as by the capable dot array data line of TotalLines and form; The horizontal line length of dot array data is meant with the point to be the dot array data width of unit, can represent with LineLength; The total amount of data of dot array data (or claiming size) is meant with byte (byte) to be the dot array data total amount of unit; In addition, the descriptor of dot array data can also comprise the lateral resolution of dot array data and longitudinal frame or the like.The characterisitic parameter of output device needs at least to comprise that output device once can receive the line number or the data volume of dot array data; In addition, the characterisitic parameter of output device can also comprise the horizontal line length that output device can be exported, the memory capacity of output device and output resolution ratio or the like.
In the specific implementation process of S101, according to the descriptor of dot array data and the characterisitic parameter of output device dot array data is carried out staging treating, specifically be meant:
Once can receive the line number of dot array data if comprise output device in the characterisitic parameter of output device, then the number of buses TotalLines in conjunction with dot array data in the descriptor of dot array data carries out staging treating to dot array data, and the line number of each dot matrix data segment of gained equates and is no more than the line number that output device once can receive dot array data; Simultaneously, obtain the data volume of dot array data section according to the horizontal line length LineLength of the line number of dot array data section and dot array data;
Once can receive the data volume of dot array data if comprise output device in the characterisitic parameter of output device, then in conjunction with the data volume of dot array data in the descriptor of dot array data dot array data is carried out staging treating, the data volume of each dot matrix data segment of gained equates and is no more than the data volume that output device once can receive dot array data; Simultaneously, obtain the line number of dot array data section according to the horizontal line length LineLength of the data volume of dot array data section and dot array data.
The file description information that writes down in the FSTIF file specifically comprises top of file information FileHeadInfo table, segmentation header information BlockHeadInfo table and dot array data section description tabulation BlockInfoTable, generate the treatment scheme of FSTIF file, as shown in Figure 2, specifically comprise step:
S201, set up initialized FSTIF file, and each list item value of top of file information FileHeadInfo table is set, the list item value of segmentation header information BlockHeadInfo table is set according to the segmentation result of dot array data according to the descriptor of dot array data;
Set up initialized FSTIF file and be meant that specifically setting up initialized top of file information FileHeadInfo table, segmentation header information BlockHeadInfo table and dot array data section describes tabulation BlockInfoTable, is not provided with concrete list item value in initialized information table and the tabulation;
As shown in table 1, the storage format of top of file information FileHeadInfo table comprises file layout symbol, total amount of data, lateral resolution, longitudinal frame, horizontal line length, number of buses, segmentation head information stores
Table 1
The file layout symbol Total amount of data Lateral resolution Longitudinal frame Horizontal line length Number of buses Segmentation head message address Keep
1-798-f-s-t ? ? ? ? ? ? ?
As shown in table 2, segmentation header information BlockHeadInfo tableau format comprises that the line number of total hop count BlockNums, the dot array data section of dot array data section is called for short initial memory address DataAddress and the dot array data section that data volume that every section line counts LinesPerBlock, dot array data section is called for short every segment data amount BlockSize, dot array data and describes list items such as list address BDTAddress.Wherein, total hop count BlockNums of dot array data section, every section line are counted the list item value of LinesPerBlock and every segment data amount BlockSize according to dot array data is carried out the segmentation result setting of staging treating, the initial memory address DataAddress of dot array data is as address pointer, and its list item value is pointed to the initial memory address of dot array data in the FSTIF file; The dot array data section is described list address BDTAddress as address pointer, and its list item value is pointed to the memory address that the dot array data section is described tabulation.
Table 2
Total hop count BlockNums Every segment data amount BlockSize Every section line is counted LinesPerBlock The dot array data section is described list address BDTAddress Initial memory address DataAddress
? ? ? ? ?
As shown in table 3, whether the form of dot array data section description tabulation BlockInfoTable comprises the numbering BlockID of each pretreated dot array data section, document misregistration data volume OffsetFile, actual amount of data ActualSize, is that empty indication information IsWhite, section bias internal data volume Offset, front end stray line quantity FrontWhiteLines, tail end stray line quantity TailWhiteLines, the interior actual line of section counted list items such as LineNum.Wherein, numbering BlockID is meant the serial number of dot array data section, determines successively according to the sequencing of each dot matrix data segment in former dot matrix data; Document misregistration data volume OffsetFile is meant the offset data amount of pretreated dot array data section with respect to initial memory address initial data that DataAddress stores; Actual amount of data ActualSize is meant that pretreated dot array data section removes actual data volume behind front end and the tail end stray line; Whether be that empty indication information IsWhite is meant whether pretreated dot array data segment data amount is 0, the list item value of setting indication information IsWhite is 0, represent that pretreated dot array data section is for empty, the list item value of indication information IsWhite is 1, represents that pretreated dot array data section is a non-NULL; Section bias internal data volume Offset is meant the offset data amount of the initial data of pretreated dot array data section with respect to the former initial data of this dot array data section; Front end stray line quantity FrontWhiteLines is meant that the dot array data section forward first row dot array data line begins to be continuously that the quantity of stray line, stray line are meant that each data value is 0 dot array data line; Tail end stray line quantity TailWhiteLines is meant that the reverse first row dot array data line of dot array data section begins to be continuously the quantity of stray line; Actual line is counted LineNum and is meant that pretreated dot array data section promptly removes the actual dot matrix number of data lines amount of the dot array data section of front end stray line and tail end stray line in the section.
It is pointed out that in S201 dot matrix data segment describes the list item value of each list item in the tabulation and be not provided with, will follow-up each dot matrix data segment is carried out pre-service after, the result is provided with according to pre-service.
Table 3
Numbering The document misregistration data volume Actual amount of data Indication information Section bias internal data volume Front end stray line quantity Tail end stray line quantity Actual line number in the section
1 ? ? ? ? ? ? ?
2 ? ? ? ? ? ? ?
? ? ? ? ? ? ?
N ? ? ? ? ? ? ?
S202, successively each dot array data section is carried out pre-service, each pretreated dot array data section is write in the initialized FSTIF file, and describe each list item value that each pretreated dot array data section is set among the tabulation BlockInfoTable in the dot array data section according to the pre-service result;
If dot array data through overcompression, then before each dot array data section is carried out pre-service, also needs it is carried out decompression processing, and is in full accord in decompression processing mode and the prior art;
After the pre-service of all dot array data sections is finished, can generate the FSTIF file, the FSTIF file comprises file description information and each pretreated dot array data section.
Be example so that arbitrary dot matrix data segment is carried out pre-service below, introduce the specific implementation process of S202 in detail.At first define several variablees, wherein, variables L ineIndex represents the current serial number of handling the dot matrix data line; Variable FrontWhiteLines represents the front end stray line quantity of dot array data section; Variable TailWhiteLines represents the tail end stray line quantity of dot array data section.As shown in Figure 3, comprise the steps:
The value initialization of S300, variables L ineIndex, FrontWhiteLines and TailWhiteLines is set to 0;
Whether the value of S301, judgment variable LineIndex counts LinesPerBlock less than the line of dot array data section, if, then continue S302, if not, then go to S311;
S302, the value of variables L ineIndex is added 1, read the capable dot array data line of forward LineIndex in the current dot array data section;
S303, judge whether current dot array data line is stray line, if, then continue S304, if not, then go to S305;
S304, the value of variable FrontWhiteLines is added 1, and go to S301;
Whether the value of S305, judgment variable FrontWhiteLines counts LinePerBlock less than the line of dot array data section subtracts 1, if, then continue S306, if not, then go to S311;
S306, the value of variables L ineIndex is re-set as 0;
Whether the value of S307, judgment variable LineIndex is counted value that LinePerBlock subtracts variable FrontWhiteLines less than the line of dot array data section and is subtracted 1 i.e. (LinePerBlock-FrontWhiteLines-1), if, then continue S308, if not, then go to S311;
S308, the value of variables L ineIndex is added 1, read the capable dot array data line of reverse LineIndex in the current dot array data section;
S309, judge whether current dot array data line is stray line, if, then continue S310, if not, then go to S311;
S310, the value of variable TailWhiteLines is added 1, and go to S307;
S311, according to the pre-service result of current dot array data section, each dot matrix data line of will be in the current dot array data section removing stray line, promptly forward (FrontWhiteLines+1) walks to (LinesPerBlock-TailWhiteLines) row dot array data line and writes in the initialized FSTIF file;
S312, according to the pre-service result of current dot array data section, in the dot array data section each list item value that current dot array data section is set in the tabulation is described;
So far, current dot array data section being removed the pre-service of stray line from beginning to end finishes.
It needs to be noted that if current dot array data section is empty, then front end stray line quantity is that the line of dot array data section is counted LinesPerBlock, rear end stray line quantity is 0, and an actual line number is 0 in the section.
Among the S103, according to file description information, it is the FSTIF file to be carried out data in magnetic disk read the process of quickening processing that each pretreated dot array data section in the FSTIF file is read in the pre-rdma read buffer zone of disk in advance, the pre-rdma read buffer zone of disk takies the operating system memory space, at the design feature of the FSTIF file that generates, this method embodiment has adopted the file read ahead technique.The pre-rdma read buffer zone of disk can be expressed as BufferA, the pre-rdma read buffer zone of disk need comprise status information, be used to indicate the state of the pre-rdma read buffer zone of disk, taking 1 byte gets final product, numerical value that can set condition information is 0 to be expressed as idle condition, and the numerical value of status information is 1 expression user mode, and the memory capacity of the pre-rdma read buffer zone of disk needs (BlockSize+1) byte at least like this, in order to satisfy the demand the pre-rdma read buffer zone of a plurality of disks of operated by rotary motion.When each pretreated dot array data section is read in the pre-rdma read buffer zone of disk in advance at every turn with the FSTIF file, at first starting disk reads in advance, judge whether to exist the pre-rdma read buffer zone of disk of idle condition, if exist, judge whether the dot array data section that current needs read in advance is empty, if be empty, judge then whether the next dot array data section that need read in advance is empty, until the pre-rdma read buffer zone of disk that the dot array data section of non-NULL is read in advance this idle condition, and the status information of the pre-rdma read buffer zone of this disk is revised as user mode; If also there is the pre-rdma read buffer zone of the disk of idle condition, then proceed reading in advance of dot array data section, read in advance until the pre-rdma read buffer zone of the disk that does not have idle condition or with the dot array data section and finish.Can set the pre-read time of disk, when the pre-read time of disk arrives, start disk at every turn and read in advance, when also can in the pre-rdma read buffer zone of disk, not exist, in time start disk and read in advance in the dot array data section that needs extract.After extraction and reduction send to output device the pre-rdma read buffer zone from disk with pretreated dot array data section, empty the pre-rdma read buffer zone of this disk, and its status information is reverted to idle condition, for follow-up repeated use.
Because when sending each pretreated data dot matrix section, transmit according to number order, the pre-rdma read buffer zone of each disk is replaced and is adopted first in first out (FIFO) principle enough to use, and the hit rate of core buffer is very high simultaneously, has accelerated the disk reading speed greatly.
Among the S103, according to file description information, from the pre-rdma read buffer zone of disk, extract each pretreated dot array data section and reduce and send to output device, need in the user memory space core buffer to be set in advance, can be called data transfer memory buffer zone BufferB, the memory capacity of data transfer memory buffer zone equates with the data volume BlockSize of dot array data section.Below, whether sending to output device with arbitrary pretreated dot array data section of extraction from the pre-rdma read buffer zone of disk and reduction is that example describes, support the paper feed order can adopt two kinds of different processing modes according to output device.If output device is supported the paper feed order, shown in Fig. 4 a, specifically comprise step:
S411, read file description information from the FSTIF file, file description information comprises that top of file information FileHeadInfo table, segmentation header information BlockHeadInfo table and dot array data section describe tabulation BlockInfoTable;
Whether S412, to describe dot array data section current among the tabulation BlockInfoTable according to the dot array data section be that empty indication information judges whether current dot array data section is sky, if, then continue S413, if not, then go to S415;
S413, determine that paper feed counts the tail end stray line quantity TailWhiteLines sum of LinesPerBlock and last dot array data section for the line of each dot array data section apart from FeedLength;
S414, to output device send the paper feed order make output device according to the paper feed of determining apart from the FeedLength paper feed, flow process finishes;
S415, empty the data transfer memory buffer zone, read the original position of current dot array data section to the data transfer memory buffer zone;
S416, determine that paper feed is the front end stray line quantity FrontWhiteLines of current dot array data section and the tail end stray line quantity TailWhiteLines sum of last dot array data section apart from FeedLength;
S417, to output device send the paper feed order make output device according to the paper feed of determining apart from the FeedLength paper feed, according to the actual amount of data ActualSize of current dot array data section the data of equal number in the data transfer memory buffer zone are sent to output device, flow process finishes.
If output device is not supported the paper feed order, shown in Fig. 4 b, specifically comprise step:
S421, read file description information from the FSTIF file, file description information comprises that top of file information FileHeadInfo table, segmentation header information BlockHeadInfo table and dot array data section describe tabulation BlockInfoTable;
S422, empty the data transfer memory buffer zone;
S423, the indication information of describing dot array data section current among the tabulation BlockInfoTable according to the dot array data section judge whether current dot array data section is sky, if, then directly go to S425, if not, then continue S424;
S424, read the section bias internal data volume offset position of current dot array data section to the data transfer memory buffer zone;
S425, according to the data volume BlockSize of dot array data section, the data of equal number in the data transfer memory buffer zone are sent to output device, flow process finishes.
In the embodiment of the invention, by the dot array data section being removed the pre-service of head and the tail stray line, make each pretreated dot array data section head and the tail all not contain stray line, reduced the single amount of reading of dot array data,, also reduced the transmission total amount of dot array data simultaneously for the output device of supporting the paper feed order, and read acceleration by data in magnetic disk and handle, improve data extract speed, thereby significantly improved data rate, can adapt to the requirement that output device is exported at a high speed.
Based on same technical conceive, the embodiment of the invention provides a kind of transmitting device of dot array data, as shown in Figure 5, comprising:
Staging treating module 51 is used to extract the descriptor of dot array data, according to the descriptor of dot array data and the characterisitic parameter of output device dot array data is carried out staging treating, obtains each dot matrix data segment;
Pretreatment module 52 is used for each dot matrix data segment is carried out generating the FSTIF file after the pre-service, and this FSTIF file comprises file description information and each pretreated dot array data section;
Memory module 53 is used to store the FSTIF file that pretreatment module 52 generates;
Quicken output module 54, be used for according to file description information, each pretreated dot array data section in the FSTIF file is read in the pre-rdma read buffer zone of disk in advance, and from the pre-rdma read buffer zone of disk, extract each pretreated dot array data section and reduction sends to output device.
Wherein, quicken output module 54 and specifically comprise disk accelerator module 541 and output unit 542, disk accelerator module 541 is mainly driven by a Windows file system filter and constitutes, be used for according to file description information, each pretreated dot array data section in the FSTIF file is read in the pre-rdma read buffer zone of disk in advance;
Output unit 542 is used for sending to output device according to file description information from pre-rdma read buffer zone each pretreated dot array data section of extraction of disk and reduction.
Disk accelerator module 541 and output unit 542 are generally parallel processing, can further improve data rate like this.
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, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (10)

1. the transmission method of a dot array data is characterized in that, comprising:
Extract the descriptor of dot array data, the descriptor of described dot array data comprises the number of buses of dot array data, horizontal line length and total amount of data;
The line number that once can receive dot array data according to the number of buses and the output device of dot array data carries out staging treating to dot array data, the line number of each dot matrix data segment of gained equates and is no more than the line number that output device once can receive dot array data, and obtains the data volume of dot array data section according to the horizontal line length of dot array data; Perhaps, according to the data volume that the total amount of data and the output device of dot array data once can receive dot array data dot array data is carried out staging treating, the data volume of each dot matrix data segment of gained equates and is no more than the data volume that output device once can receive dot array data, and obtains the line number of dot array data section according to the horizontal line length of dot array data;
Each dot matrix data segment is carried out generating intermediate form dot array data file FSTIF after the pre-service, and described FSTIF file comprises file description information and each pretreated dot array data section;
According to described file description information, each pretreated dot array data section in the FSTIF file is read in the pre-rdma read buffer zone of disk in advance, and from the pre-rdma read buffer zone of disk, extract each pretreated dot array data section and reduction sends to output device.
2. the method for claim 1 is characterized in that, described file description information comprises top of file information table, segmentation head information table and dot array data section description tabulation; And
Generate the step of intermediate form dot array data file FSTIF, specifically comprise:
Set up initialized FSTIF file, and each list item value of top of file information table is set, each list item value of segmentation head information table is set according to the segmentation result of dot array data according to the descriptor of dot array data;
Successively each dot array data section is carried out pre-service, each pretreated dot array data section is write in the initialized FSTIF file, and describe each list item value that each pretreated dot array data section is set in the tabulation in the dot array data section according to the pre-service result.
3. method as claimed in claim 2, it is characterized in that dot array data section description tabulation comprises the interior actual line number of front end stray line quantity, tail end stray line quantity, section, section bias internal data volume, the actual amount of data of each pretreated dot array data section and whether is the indication information of sky; And
Current dot array data section is carried out pre-service, pretreated dot array data section is write initialized FSTIF file, and describe the step that each list item value of current dot array data section is set in the tabulation, specifically comprise in the dot array data section:
Determine front end stray line quantity and tail end stray line quantity in the current dot array data section;
Each dot matrix data line of removing front end stray line and tail end stray line in the current dot array data section is write in the initialized FSTIF file;
According to front end stray line quantity and tail end stray line quantity in the horizontal line length of the line number of dot array data section, dot array data and the current dot array data section, each list item value that current dot array data section is set in the tabulation is described in the dot array data section.
4. method as claimed in claim 3 is characterized in that, and is described according to file description information, and each pretreated dot array data section in the FSTIF file is read in the pre-rdma read buffer zone of disk in advance, comprising:
Start disk and read in advance, when the pre-rdma read buffer zone of the disk that has idle condition, judge whether the dot array data section that current needs read in advance is empty;
If continue then to judge whether the next dot array data section that need read in advance is empty, judges until the pre-rdma read buffer zone of disk that the dot array data section of non-NULL is read in advance described idle condition or with the dot array data section to finish;
If not, the dot array data section of then current needs being read in is in advance read in the pre-rdma read buffer zone of disk of described idle condition in advance; And
After in the pre-rdma read buffer zone of the disk of described idle condition, reading in the dot array data section of non-NULL in advance, it is revised as user mode.
5. method as claimed in claim 4 is characterized in that, describedly extracts each pretreated dot array data section and reduction sends to after the output device from the pre-rdma read buffer zone of disk, also comprises:
The pre-rdma read buffer zone of this disk is reverted to idle condition again.
6. method as claimed in claim 4 is characterized in that, the pre-rdma read buffer zone of described disk comprises at least one, is arranged on the operating system memory space.
7. method as claimed in claim 3 is characterized in that, according to file description information, extracts the step that current dot array data section and reduction send to output device from the pre-rdma read buffer zone of disk, specifically comprises:
From the FSTIF file, read file description information, when output device is supported the paper feed order, judge whether current dot array data section is empty;
If determine that then the paper feed distance is the line number of dot array data section and the tail end stray line quantity sum of last dot array data section, and send the paper feed order to output device;
If not, then empty the data transfer memory buffer zone, read the original position of current dot array data section to the data transfer memory buffer zone, determine that the paper feed distance is the front end stray line quantity of current dot array data section and the tail end stray line quantity sum of last dot array data section, send the paper feed order to output device, and the data of equal number in the data transfer memory buffer zone being sent to output device according to the actual amount of data of dot array data section, the memory capacity of described data transfer memory buffer zone equates with the data volume of dot array data section.
8. method as claimed in claim 3 is characterized in that, according to file description information, extracts the step that current dot array data section and reduction send to output device from the pre-rdma read buffer zone of disk, specifically comprises:
From the FSTIF file, read file description information, when output device is not supported the paper feed order, empty the data transfer memory buffer zone, judge whether current dot array data section is empty, and the memory capacity of described data transfer memory buffer zone equates with the data volume of dot array data section;
If then the data of equal number in the data transfer memory buffer zone are sent to output device according to the data volume of dot array data section;
If not, then according to the section bias internal data volume of current dot array data section, read the section bias internal data volume position of current dot array data section, and the data of equal number in the data transfer memory buffer zone are sent to output device according to the data volume of dot array data section to the data transfer memory buffer zone.
9. the transmitting device of a dot array data is characterized in that, comprising:
The staging treating module is used to extract the descriptor of dot array data, and the descriptor of described dot array data comprises the number of buses of dot array data, laterally line length and total amount of data; The line number that once can receive dot array data according to the number of buses and the output device of dot array data carries out staging treating to dot array data, the line number of each dot matrix data segment of gained equates and is no more than the line number that output device once can receive dot array data, and obtains the data volume of dot array data section according to the horizontal line length of dot array data; Perhaps, according to the data volume that the total amount of data and the output device of dot array data once can receive dot array data dot array data is carried out staging treating, the data volume of each dot matrix data segment of gained equates and is no more than the data volume that output device once can receive dot array data, and obtains the line number of dot array data section according to the horizontal line length of dot array data;
Pretreatment module is used for each dot matrix data segment is carried out generating intermediate form dot array data file FSTIF after the pre-service, and described FSTIF file comprises file description information and each pretreated dot array data section;
Memory module is used to store the FSTIF file that described pretreatment module generates;
Quicken output module, be used for according to described file description information, each pretreated dot array data section in the FSTIF file is read in the pre-rdma read buffer zone of disk in advance, and from the pre-rdma read buffer zone of disk, extract each pretreated dot array data section and reduction sends to output device.
10. device as claimed in claim 9 is characterized in that, described acceleration output module comprises disk accelerator module and output unit, described disk accelerator module and output unit parallel processing, wherein:
Described disk accelerator module is used for according to file description information, and each pretreated dot array data section in the FSTIF file is read in the pre-rdma read buffer zone of disk in advance;
Described output unit is used for according to file description information, extracts each pretreated dot array data section and reduce to send to output device from the pre-rdma read buffer zone of disk.
CN2008102262713A 2008-11-11 2008-11-11 Transmission method and apparatus for dot matrix data Expired - Fee Related CN101393610B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102262713A CN101393610B (en) 2008-11-11 2008-11-11 Transmission method and apparatus for dot matrix data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102262713A CN101393610B (en) 2008-11-11 2008-11-11 Transmission method and apparatus for dot matrix data

Publications (2)

Publication Number Publication Date
CN101393610A CN101393610A (en) 2009-03-25
CN101393610B true CN101393610B (en) 2010-08-25

Family

ID=40493898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102262713A Expired - Fee Related CN101393610B (en) 2008-11-11 2008-11-11 Transmission method and apparatus for dot matrix data

Country Status (1)

Country Link
CN (1) CN101393610B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103144431B (en) * 2011-12-06 2015-02-25 北大方正集团有限公司 Lattice file processing method and device for digital printing
CN103171240B (en) * 2011-12-21 2015-02-25 北大方正集团有限公司 Realization method and device of Tiff Download
CN103366716B (en) * 2012-03-31 2016-03-30 华为终端有限公司 The compression of character and dot matrix word library and decompress(ion) method and apparatus in dot matrix word library
CN106293638B (en) * 2015-06-11 2019-08-06 吉林师范大学 Heterogeneous formats storage method based on CPU Yu GPU heterogeneous platform

Also Published As

Publication number Publication date
CN101393610A (en) 2009-03-25

Similar Documents

Publication Publication Date Title
US8817346B2 (en) Image processing apparatus, image processing method, and image forming apparatus for reading code data rotated at 180 degrees
CN101393610B (en) Transmission method and apparatus for dot matrix data
CN101714215B (en) Image processing apparatus and image processing method
CN105656805B (en) A kind of packet receiving method and device based on control block predistribution
WO2001059696A3 (en) Imaging documents having static content and variable data
CN101702242A (en) Method and terminal for automatically filling in document with fixed format
CN109664620A (en) Print data processing method, device and equipment
WO2017060678A1 (en) Managing display data
EP1150200A3 (en) Print control apparatus, and storage medium
CN103488441A (en) Implementation method for printing Arabic on POS (point-of-sale) terminals
JP5230134B2 (en) Image forming apparatus with adaptive automatic layout function
US6738153B1 (en) Method, system, and program for error checking raster objects
US20090046322A1 (en) Information processing apparatus, image forming apparatus, print-data generation method, map-information generation method, and computer program product
CN104417102A (en) Printing method and device
CN100574361C (en) Image processing equipment, image forming apparatus and image processing method
CN104461406B (en) A kind of print-out method and device
JP3957936B2 (en) Data transfer apparatus and method
JPS59123359A (en) Method for processing information of plotter
JP4812662B2 (en) Image forming apparatus
CN2217818Y (en) High-speed Chinese-Western characters postscript laser printing and photo-composing controller
JP2004042406A (en) Printer
JP2008227628A (en) Image processing apparatus, image processing method and image forming apparatus
JP2005262766A (en) Image outputting apparatus and method for processing its outputting
JPH0831066B2 (en) Communication control device
JP2006123244A (en) Image forming apparatus and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100825

Termination date: 20191111