CN105227873A - A kind of method of testing of on-chip study data and device - Google Patents
A kind of method of testing of on-chip study data and device Download PDFInfo
- Publication number
- CN105227873A CN105227873A CN201510552574.4A CN201510552574A CN105227873A CN 105227873 A CN105227873 A CN 105227873A CN 201510552574 A CN201510552574 A CN 201510552574A CN 105227873 A CN105227873 A CN 105227873A
- Authority
- CN
- China
- Prior art keywords
- character
- dot
- library
- expansion
- measured
- 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.)
- Granted
Links
Landscapes
- Controls And Circuits For Display Device (AREA)
Abstract
Embodiments provide a kind of method of testing and device of on-chip study data, method wherein comprises: the text to be measured receiving user's input; In the expansion character library set up in advance, read the lattice information that character in described text to be measured is corresponding, and video image that described lattice information is added to shows; Wherein, pixel two bit representations of character in described expansion character library.Do you by the embodiment of the present invention, carry out 2BPP? during osd data test, the expansion character library that can have multiplexingly set up, without regeneration test data, substantially increases testing efficiency.
Description
Technical field
The present invention relates to digital video technology field, particularly relate to a kind of method of testing and device of on-chip study data.
Background technology
OSD (on-screendisplay, on-chip study) be mainly used in superposing Word message on the video images, as time, place etc., thus provide more additional information for video content, as the explanation of video image and can supplement, such as, can superpose temporal information in the display frame of watch-dog.2BPP is a kind of common osd data form, and BPP (BitPerPixel, pixel depth) refers to and stores each pixel figure place used, and particularly, 2BPP refers to that each pixel 2bit (position) represents.
In actual applications, need to test the 2BPPOSD Word message etc. of watch-dog display, to verify the display effect whether reaching expection.At present, first the method for 2BPPOSD test can comprise the steps: usually, by drawing tools, draws bmp (Bitmap, the bitmap) picture that comprises 3 kinds of random colors; Then, above-mentioned bmp picture is converted to 2BPP test data by crossover tools such as YUVViewer (yuv format player); Finally, pass through communication tool, such as serial ports, I2C (Inter-IntegratedCircuit, twin wire universal serial bus), SPI (SerialPeripheralInterface, Serial Peripheral Interface (SPI)) etc., test data is sent to watch-dog, to make watch-dog read this test data, by output display on a display screen after this test data and video data overlay.
Can find out, existing 2BPPOSD method of testing, when testing at every turn, all need to draw and use crossover tool to generate 2BPP test data, test process is comparatively loaded down with trivial details, thus causes testing efficiency low.
Summary of the invention
In view of the above problems, the embodiment of the present invention is proposed to provide a kind of overcoming the problems referred to above or a kind of method of testing of on-chip study data solved the problem at least in part and device.
In order to solve the problem, the embodiment of the invention discloses a kind of method of testing of on-chip study data, comprising:
Receive the text to be measured of user's input;
In the expansion character library set up in advance, read the lattice information that character in described text to be measured is corresponding, and video image that described lattice information is added to shows; Wherein, pixel two bit representations of character in described expansion character library.
Preferably, expansion character library is set up as follows:
According to the order of dot character in existing standard dot matrix word library, conversion process is carried out to each dot character; Wherein, pixel two bit representations of the character after conversion;
After all dot character process complete in standard dot matrix word library, generate expansion character library.
Preferably, described according to existing standard dot matrix word library in the order of dot character, before each dot character being carried out to the step of conversion process, described method also comprises:
Character duration information and the character height information of expansion character library are set;
The described order according to dot character in existing standard dot matrix word library, each dot character is carried out to the step of conversion process, comprising:
According to described character duration information and character height information, determine byte number needed for each character in expansion character library;
Read each dot character in standard dot matrix word library according to described byte number, conversion process is carried out to each dot character step-by-step.
Preferably, described according to existing standard dot matrix word library in the order of dot character, before each dot character being carried out to the step of conversion process, described method also comprises:
Font color, outline color and background color in expansion character library is set;
The described order according to dot character in existing standard dot matrix word library, each dot character is carried out to the step of conversion process, comprising:
According to the order of dot character in existing standard dot matrix word library, judge that whether each point in each dot character is the point in character, if so, then the color of this point is replaced with described font color; Otherwise, judge that whether this point is the point in profile, if so, then the color of this point replaced with described outline color; Otherwise, the color of this point is replaced with background color.
Preferably, the step of the lattice information that the described each character read in the expansion character library set up in advance in described text to be measured is corresponding, comprising:
Determine the dot matrix original position of the character correspondence in described expansion character library in described text to be measured;
Determine the dot-matrix joint number that character in described text to be measured is corresponding;
The dot matrix original position corresponding in described expansion character library according to the character in described text to be measured, reads the lattice information of dot-matrix joint number corresponding to described character from described expansion character library.
Preferably, when described text to be measured is Chinese, determine the dot matrix original position that character in described text to be measured is corresponding as follows:
Determine the region-position code of the character in described text to be measured;
According to described region-position code and dot-matrix joint number corresponding to Chinese character, determine the dot matrix original position that character in described text to be measured is corresponding.
Preferably, when described text to be measured is English, determine the dot matrix original position that character in described text to be measured is corresponding as follows:
According to the dot-matrix joint number of USA standard code for information interchange and English correspondence, determine the dot matrix original position that character in described text to be measured is corresponding.
According to another aspect of the present invention, provide a kind of testing apparatus of on-chip study data, comprising:
Received text module, for receiving the text to be measured of user's input; And
Reading displayed module, for reading lattice information corresponding to character in described text to be measured in the expansion character library set up in advance, and the video image that is added to by described lattice information shows; Wherein, pixel two bit representations of character in described expansion character library.
Preferably, described device also comprises: expansion character library sets up module, for setting up expansion character library;
Described expansion character library sets up module, comprising:
Transform subblock, for the order according to dot character in existing standard dot matrix word library, carries out conversion process to each dot character; Wherein, pixel two bit representations of the character after conversion;
Generate submodule, after completing for dot character process all in standard dot matrix word library, generate expansion character library.
Preferably, described device also comprises:
Character boundary arranges module, for arranging character duration information and the character height information of expansion character library;
Described transform subblock, comprising:
First byte determining unit, for according to described character duration information and character height information, determines byte number needed for each character in expansion character library;
First converting unit, for reading each dot character in standard dot matrix word library according to described byte number, carries out conversion process to each dot character step-by-step.
The embodiment of the present invention comprises following advantage:
In the embodiment of the present invention, after the text to be measured receiving user's input, the lattice information that each character in described text to be measured is corresponding can be read in the expansion character library set up in advance, described lattice information is added on video image and shows, to test display effect, due to pixel two bit representations in this expansion character library, also namely this expansion character library is 2BPP character library, so, when carrying out 2BPPOSD test, according to this expansion character library, can at the text to be measured of the display screen display 2BPP form of watch-dog.By the embodiment of the present invention, when carrying out 2BPPOSD data test, the expansion character library that can have multiplexingly set up, without regeneration test data, substantially increases testing efficiency at every turn.
Accompanying drawing explanation
Fig. 1 shows the flow chart of steps of the method for testing embodiment of a kind of on-chip study data of the present invention;
Fig. 2 shows a kind of flow chart of steps setting up expansion character library embodiment of the method for the present invention;
Fig. 3 shows the lattice structure schematic diagram of a dot character;
Fig. 4 shows a kind of character library crossover tool interface of the present invention schematic diagram; And
Fig. 5 shows the structured flowchart of the testing apparatus embodiment of a kind of on-chip study data of the present invention.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
In order to solve in prior art, during each test 2BPPOSD data, all need the step of carrying out loaded down with trivial details generation test data, cause the problem that testing efficiency is low, the embodiment of the present invention utilizes the expansion character library of the 2BPP form set up in advance to test 2BPPOSD data, in test process, without regeneration test data, user only need input text to be measured, the embodiment of the present invention can read lattice information corresponding to each character in described text to be measured in the expansion character library set up, described lattice information is added on video image and shows, to test display effect.By the embodiment of the present invention, when carrying out 2BPPOSD data test, the expansion character library that can have multiplexingly set up, without regeneration test data, substantially increases testing efficiency at every turn.
Embodiment one
With reference to Fig. 1, show the flow chart of steps of the method for testing embodiment of a kind of on-chip study data of the present invention, specifically can comprise:
The text to be measured of step 101, reception user input;
In embodiments of the present invention, described text to be measured can comprise Chinese or English.In a particular application, can be that test macro of the present invention increases display interface, be received the text to be measured of user's input by this display interface.Certainly, in actual applications, other parameter information of user's input can also be received by this display interface, the information such as the display position of such as text to be measured, Charactes Display width and Charactes Display height.
The method of testing of on-chip study data of the present invention specifically can be applied to variously to be had in the terminal equipment of Presentation Function, such as watch-dog, due to less demanding to color displays of watch-dog, but need to ensure real-time, and 2BPPOSD uses 2bit to represent a pixel, so corresponding four kinds of color indexs, usual use 0 represents background, 1-3 represents other color index, although the color that 2BPPOSD does not have true color so to enrich, but the demand that can greatly reduce bandwidth, these features make 2BPP be applicable in watch-dog.The embodiment of the present invention is all described for the 2BPPOSD of watch-dog test, and other application scenarios is cross-referenced.
Step 102, the lattice information that the character read in the expansion character library set up in advance in described text to be measured is corresponding, and video image that described lattice information is added to shows; Wherein, pixel two bit representations of character in described expansion character library.
In embodiments of the present invention, expansion character library can be set up in advance, and pixel two bit representations in this expansion character library, also a 2BPP character library is namely set up, so, when carrying out 2BPPOSD test, according to this expansion character library, at the text to be measured of the display screen display 2BPP form of watch-dog, need not can generate 2BPP test data specially again, thus can testing efficiency be improved.
In embodiments of the present invention, when text to be measured being carried out on watch-dog Overlapping display, first need in the expansion character library set up, inquire about lattice information corresponding to each character obtained in described text to be measured, the video image that then described lattice information is added to shows.
In one preferred embodiment of the invention, the step of the lattice information that the described character read in the expansion character library set up in advance in described text to be measured is corresponding, specifically can comprise:
Step S11, the dot matrix original position that the character determined in described text to be measured is corresponding in described expansion character library;
Because English dot matrix word library is different with the formation of Chinese dot matrix word library, therefore, the process obtaining lattice information is not identical yet.In actual applications, Chinese character can adopt two internal codes to represent, namely two bytes represent.Chinese dot matrix word library is according to region-position code sequential storage, and therefore can obtain the dot matrix original position of Chinese character according to region-position code, wherein, the front two of region-position code is called district's code, and latter two become bit code.After acquisition dot matrix original position, the dot matrix of corresponding character can be read from this position.
When described text to be measured is Chinese information, can by following formulae discovery dot matrix original position:
District's code=internal code upper byte-0xa0 (1)
Bit code=internal code low byte-0xa0 (2)
Dot matrix original position=((district's code-1) × 94+ (bit code-1)) × Chinese character dot matrix byte number (3)
In actual applications, English can store according to ASCII (AmericanStandardCodeforInformationInterchange, USA standard code for information interchange), uses a byte representation.Therefore, when described text to be measured is english information, can by following formulae discovery dot matrix original position:
Dot matrix original position=ASCII character × English dot-matrix joint number (4)
Step S12, the dot-matrix joint number that the character determined in described text to be measured is corresponding;
In one preferred embodiment of the invention, described method can also comprise:
Receive dot matrix width information and the dot matrix elevation information of user's input.
Then dot-matrix joint number specifically can pass through following formulae discovery:
Dot-matrix joint number=dot matrix width × dot matrix height/8 × 2 (5)
Wherein, the bit number shared by each character of text to be measured that dot matrix width × dot matrix height is arranged for user, then divided by the byte number that 8 can obtain shared by each character of text to be measured, be finally multiplied by the dot-matrix joint number that 2 can obtain 2BPP form again.
Step S13, the dot matrix original position corresponding in described expansion character library according to the character in described text to be measured, read the lattice information of dot-matrix joint number corresponding to described character from described expansion character library.
After acquisition dot matrix original position, from original position, read the lattice information of corresponding dot matrix byte number, the video image that then lattice information is added to shows.
To sum up, in the embodiment of the present invention, after the text to be measured receiving user's input, the lattice information that each character in described text to be measured is corresponding can be read in the expansion character library set up in advance, described lattice information is added on video image and shows, to test display effect, due to pixel two bit representations in this expansion character library, also namely this expansion character library is 2BPP character library, so, when carrying out 2BPPOSD test, according to this expansion character library, can at the text to be measured of the display screen display 2BPP form of watch-dog.By the embodiment of the present invention, when carrying out 2BPPOSD data test, the expansion character library that can have multiplexingly set up, without regeneration test data, substantially increases testing efficiency at every turn.
Embodiment two
With reference to Fig. 2, show a kind of flow chart of steps setting up expansion character library embodiment of the method for the present invention, specifically can comprise:
Step 201, order according to dot character in existing standard dot matrix word library, carry out conversion process to each dot character; Wherein, pixel two bit representations of the character after conversion;
In embodiments of the present invention, existing standard dot matrix word library is used to set up the expansion character library of 2BPP form.Wherein, dot matrix word library is a data file, preserves the dot array data of all characters in this data file, and a pixel 1bit of dot array data represents.Such as, in the dot matrix word library of Chinese character, each position (bit) of each byte represents a point of a Chinese character, each Chinese character is made up of the dot matrix of a rectangle, can represent this bit a little with 1,0 represents do not have, and shows 1 and 0 respectively with different colours, if 1 uses black, 0, by white, just defines a Chinese character, with reference to Fig. 3, show the lattice structure schematic diagram of a dot character, conventional lattice matrix comprises 12 × 12,14 × 14,16 × 16 these 3 kinds.For convenience of explanation, the dot matrix word library all for 16 × 16 in the embodiment of the present invention is described, and certainly, in actual applications, those skilled in the art can select the dot matrix word library of different matrix according to actual needs, and the present invention is not limited this.
The present invention is in process dot matrix word library being converted to expansion character library, each point of each dot character in dot matrix word library is represented by original 1bit, be converted to 2bit to represent, namely 2BPP character is converted to, after all dot character conversion process in dot matrix word library complete, the expansion character library of 2BPP can be generated.
In one preferred embodiment of the invention, described according to existing standard dot matrix word library in the order of dot character, before each dot character being carried out to the step of conversion process, described method can also comprise:
Character duration information and the character height information of expansion character library are set;
The described order according to dot character in existing standard dot matrix word library, each dot character is carried out to the step of conversion process, specifically can comprise:
Step S21, according to described character duration information and character height information, determine byte number needed for each character in expansion character library;
Particularly, byte number needed for each character in character library can be expanded according to following formulae discovery:
width×height/8(6)
Wherein, width represents character duration information, and height represents character height information.
Step S22, read each dot character in standard dot matrix word library according to described byte number, conversion process is carried out to each dot character step-by-step.Namely each point of each dot character is represented by original 1bit, and being converted to 2bit represents, obtains corresponding 2BPP character.
Because expansion character library is 2BPP character library, therefore, for each point in dot matrix, can represents by four kinds of colors, particularly, can represent with 0,1,2,3.In one preferred embodiment of the invention, described according to existing standard dot matrix word library in the order of dot character, before each dot character being carried out to the step of conversion process, described method can also comprise:
Font color, outline color and background color in expansion character library is set;
The described order according to dot character in existing standard dot matrix word library, each dot character is carried out to the step of conversion process, specifically can comprise:
According to the order of dot character in existing standard dot matrix word library, judge that whether each point in each dot character is the point in character, if so, then the color of this point is replaced with described font color; Otherwise, judge that whether this point is the point in profile, if so, then the color of this point replaced with described outline color; Otherwise, the color of this point is replaced with background color.
In a kind of application example of the present invention, according to the order of dot character in existing standard dot matrix word library, judge in each dot character, whether each corresponding position is 1, if 1, illustrate that this point is the point in character, then the color of this point is replaced with described font color, such as, represent with 2; If the position of correspondence is 0, illustrate that this point is the point in background, then judge that whether this point is the profile of character further, if so, then the color of this point is replaced with described outline color, such as, represent with 1, otherwise replace with background color, such as, represent with 0.Dot matrix word library can be converted to 2BPP character library by above-mentioned steps, and can the color of self-defined font and background color etc., make the foundation expanding character library more flexible, in addition, the present invention can arrange outline color to word, thus it is more clear that font is shown.
In a particular application, dot matrix word library can be divided into laterally storage according to the difference of bytes store mode and longitudinally store, and in the embodiment of the present invention, preferably the dot matrix unification in expansion character library is converted to horizontal storage mode.Certainly, in actual applications, also can adopt longitudinal storage mode, the present invention is not limited for the dot matrix storage mode in expansion character library.
In a kind of application example of the present invention, above-mentioned process dot matrix word library being converted to 2BPP character library can be realized by a character library crossover tool, with reference to Fig. 4, show a kind of character library crossover tool interface of the present invention schematic diagram.Wherein, what inputfile (input file) represented is existing standard dot matrix word library position; What outputfile (output file) represented is the memory location expanding character library; Width (wide) represents the character duration arranging expansion character library, and height (height) represents the character height of expansion character library; Direction (direction) represents that the dot matrix storage mode of expansion character library is horizontal or longitudinal; Dotcolor (color of point) is the color of character in expansion character library, represent with numerical value 2, foilcolor (outline color) is the outline color of character in expansion character library, represent with numerical value 1, intervalcolor (gap color) is the background color of character in expansion character library, represents with numerical value 0.
After click convert (conversion) button, this crossover tool can find standard dot matrix word library according to the standard dot matrix word library position shown in inputfile, and open this standard dot matrix word library, then byte number needed for the rear each character of conversion is determined according to the character duration width arranged and character height height, each dot character in standard dot matrix word library is read according to this byte number, conversion process is carried out to each dot character step-by-step, it is the some use dotcolor replacement of 1 in each dot character, be 0 point judge whether further again to add profile, the point that can add profile uses foilcolor to replace, remaining uses intervalcolor to replace.In actual applications, when judging whether some points can add profile, need to determine this point be whether in Fig. 3 topmost or bottom or Far Left or rightmost point, if so, then need not add profile.After character conversion process all in dot matrix word library being completed, namely generate expansion character library, the expansion character library of generation is kept at the position that outputfile specifies.After establishing expansion character library, the test of 2BPPOSD data can be carried out according to this expansion character library.
Step 202, after all dot character process complete in standard dot matrix word library, generate expansion character library.
In embodiments of the present invention, the expansion character library generated is 2BPP character library, this character library is generated by the conversion of existing standard dot matrix word library, in dot matrix word library, a pixel 1bit represents, also namely some points can be designated as 0 or 1, in expansion character library after conversion, a pixel 2bit represents, also namely some points can be designated as 0 or 1 or 2 or 3.
In actual applications, when user needs test 2BPPOSD time, 2BPPOSD testing tool of the present invention can be opened, text to be measured (any Chinese character or letter that need test can be inputted) and relevant parameter (comprising the information such as the display position of text to be measured, Charactes Display width and Charactes Display height) can be inputted in the operation interface of testing tool, namely carry out 2BPPOSD test by said method of the present invention.
In a kind of application example of the present invention, suppose to receive the test text of user's input for " you are also OK in alien land ", and user input dot matrix width information and dot matrix elevation information be respectively 32, when carrying out 2BPPOSD test to this test text, first, the original position of lattice information in expansion character library that " you " word in calculating test text is corresponding, internal code according to " you " word determines corresponding region-position code by formula (1) and (2), the original position of lattice information corresponding to " you " word in expansion character library is obtained by formula (3) according to the district's code obtained and bit code, then, dot-matrix joint number corresponding to " you " word is calculated according to formula (5), finally, in the expansion character library set up in advance, the lattice information of corresponding dot matrix byte number is read from original position, this lattice information is added on video image and shows, namely on screen, show " you " word of 2BPP form, further, when Overlapping display, show according to font color, outline color and the background color arranged when setting up expansion character library.Profit uses the same method, and order carries out Overlapping display to character remaining in test text, and the display position display character boundary that can arrange user is the following character string " you are also OK in alien land " of 32 × 32, and user can verify display effect.
The embodiment of the present invention generates expansion character library (2BPP character library) according to the dot matrix word library of standard, and in 2BPPOSD test process afterwards, this expansion character library can Reusability, need not generate test data at every turn all by hand, can improve testing efficiency.In addition, generate expansion character library according to the dot matrix word library of standard, generate test data relative to manual, greatly can also improve the coverage of test data.
It should be noted that, for embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the embodiment of the present invention is not by the restriction of described sequence of movement, because according to the embodiment of the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action might not be that the embodiment of the present invention is necessary.
Device embodiment
With reference to Fig. 5, show the structured flowchart of the testing apparatus embodiment of a kind of on-chip study data of the present invention, specifically can comprise as lower module:
Received text module 510, for receiving the text to be measured of user's input; And
Reading displayed module 520, for reading lattice information corresponding to character in described text to be measured in the expansion character library set up in advance, and the video image that is added to by described lattice information shows; Wherein, pixel two bit representations of character in described expansion character library.
In one preferred embodiment of the invention, described device can also comprise: expansion character library sets up module, for setting up expansion character library;
Described expansion character library sets up module, specifically can comprise:
Transform subblock, for the order according to dot character in existing standard dot matrix word library, carries out conversion process to each dot character; Wherein, pixel two bit representations of the character after conversion;
Generate submodule, after completing for dot character process all in standard dot matrix word library, generate expansion character library.
In another preferred embodiment of the invention, described device can also comprise:
Character boundary arranges module, for arranging character duration information and the character height information of expansion character library;
Described transform subblock, specifically can comprise:
First byte determining unit, for according to described character duration information and character height information, determines byte number needed for each character in expansion character library;
First converting unit, for reading each dot character in standard dot matrix word library according to described byte number, carries out conversion process to each dot character step-by-step.
In another preferred embodiment of the present invention, described device can also comprise:
Color arranges module, for arranging font color, outline color and the background color in expansion character library;
Described transform subblock, specifically can comprise:
Second converting unit, for the order according to dot character in existing standard dot matrix word library, judges that whether each point in each dot character is the point in character, if so, then the color of this point is replaced with described font color; Otherwise, judge that whether this point is the point in profile, if so, then the color of this point replaced with described outline color; Otherwise, the color of this point is replaced with background color.
In another preferred embodiment of the present invention, described reading displayed module, specifically can comprise:
Submodule is determined in position, for determining the dot matrix original position of the character correspondence in described expansion character library in described text to be measured;
Second byte determining unit, for determining the dot-matrix joint number that character in described text to be measured is corresponding;
Reading submodule, for the dot matrix original position corresponding in described expansion character library according to the character in described text to be measured, reads the lattice information of dot-matrix joint number corresponding to described character from described expansion character library.
In another preferred embodiment of the present invention, submodule is determined in described position, specifically can comprise:
Primary importance determining unit, during for being Chinese at described text to be measured, determines the dot matrix original position that character in described text to be measured is corresponding;
Described primary importance determining unit, specifically can comprise:
Region-position code determination subelement, for determining the region-position code of the character in described text to be measured;
Primary importance determination subelement, for according to described region-position code and dot-matrix joint number corresponding to Chinese character, determines the dot matrix original position that character in described text to be measured is corresponding.
In another preferred embodiment of the present invention, submodule is determined in described position, specifically can comprise:
Second place determining unit, during for being English at described text to be measured, determines the dot matrix original position that character in described text to be measured is corresponding;
Described second place determining unit, specifically can comprise:
Second place determination subelement, for the dot-matrix joint number according to USA standard code for information interchange and English correspondence, determines the dot matrix original position that character in described text to be measured is corresponding.
For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.
Those skilled in the art should understand, the embodiment of the embodiment of the present invention can be provided as method, device or computer program.Therefore, the embodiment of the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the embodiment of the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The embodiment of the present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, terminal equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminal equipment to produce a machine, making the instruction performed by the processor of computer or other programmable data processing terminal equipment produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing terminal equipment, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded on computer or other programmable data processing terminal equipment, make to perform sequence of operations step to produce computer implemented process on computer or other programmable terminal equipment, thus the instruction performed on computer or other programmable terminal equipment is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although described the preferred embodiment of the embodiment of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of embodiment of the present invention scope.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or terminal equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or terminal equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the terminal equipment comprising described key element and also there is other identical element.
Above to method of testing and the device of a kind of on-chip study data provided by the present invention, be described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (10)
1. a method of testing for on-chip study data, is characterized in that, comprising:
Receive the text to be measured of user's input;
In the expansion character library set up in advance, read the lattice information that character in described text to be measured is corresponding, and video image that described lattice information is added to shows; Wherein, pixel two bit representations of character in described expansion character library.
2. method according to claim 1, is characterized in that, sets up expansion character library as follows:
According to the order of dot character in existing standard dot matrix word library, conversion process is carried out to each dot character; Wherein, pixel two bit representations of the character after conversion;
After all dot character process complete in standard dot matrix word library, generate expansion character library.
3. method according to claim 2, is characterized in that, described according to existing standard dot matrix word library in the order of dot character, before each dot character being carried out to the step of conversion process, described method also comprises:
Character duration information and the character height information of expansion character library are set;
The described order according to dot character in existing standard dot matrix word library, each dot character is carried out to the step of conversion process, comprising:
According to described character duration information and character height information, determine byte number needed for each character in expansion character library;
Read each dot character in standard dot matrix word library according to described byte number, conversion process is carried out to each dot character step-by-step.
4. method according to claim 2, is characterized in that, described according to existing standard dot matrix word library in the order of dot character, before each dot character being carried out to the step of conversion process, described method also comprises:
Font color, outline color and background color in expansion character library is set;
The described order according to dot character in existing standard dot matrix word library, each dot character is carried out to the step of conversion process, comprising:
According to the order of dot character in existing standard dot matrix word library, judge that whether each point in each dot character is the point in character, if so, then the color of this point is replaced with described font color; Otherwise, judge that whether this point is the point in profile, if so, then the color of this point replaced with described outline color; Otherwise, the color of this point is replaced with background color.
5. method according to claim 1, is characterized in that, the step of the lattice information that the described each character read in the expansion character library set up in advance in described text to be measured is corresponding, comprising:
Determine the dot matrix original position of the character correspondence in described expansion character library in described text to be measured;
Determine the dot-matrix joint number that character in described text to be measured is corresponding;
The dot matrix original position corresponding in described expansion character library according to the character in described text to be measured, reads the lattice information of dot-matrix joint number corresponding to described character from described expansion character library.
6. method according to claim 5, is characterized in that, when described text to be measured is Chinese, determines the dot matrix original position that character in described text to be measured is corresponding as follows:
Determine the region-position code of the character in described text to be measured;
According to described region-position code and dot-matrix joint number corresponding to Chinese character, determine the dot matrix original position that character in described text to be measured is corresponding.
7. method according to claim 5, is characterized in that, when described text to be measured is English, determines the dot matrix original position that character in described text to be measured is corresponding as follows:
According to the dot-matrix joint number of USA standard code for information interchange and English correspondence, determine the dot matrix original position that character in described text to be measured is corresponding.
8. a testing apparatus for on-chip study data, is characterized in that, comprising:
Received text module, for receiving the text to be measured of user's input; And
Reading displayed module, for reading lattice information corresponding to character in described text to be measured in the expansion character library set up in advance, and the video image that is added to by described lattice information shows; Wherein, pixel two bit representations of character in described expansion character library.
9. device according to claim 8, is characterized in that, described device also comprises: expansion character library sets up module, for setting up expansion character library;
Described expansion character library sets up module, comprising:
Transform subblock, for the order according to dot character in existing standard dot matrix word library, carries out conversion process to each dot character; Wherein, pixel two bit representations of the character after conversion;
Generate submodule, after completing for dot character process all in standard dot matrix word library, generate expansion character library.
10. device according to claim 9, is characterized in that, described device also comprises:
Character boundary arranges module, for arranging character duration information and the character height information of expansion character library;
Described transform subblock, comprising:
First byte determining unit, for according to described character duration information and character height information, determines byte number needed for each character in expansion character library;
First converting unit, for reading each dot character in standard dot matrix word library according to described byte number, carries out conversion process to each dot character step-by-step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510552574.4A CN105227873B (en) | 2015-09-01 | 2015-09-01 | A kind of test method and device of on-screen display data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510552574.4A CN105227873B (en) | 2015-09-01 | 2015-09-01 | A kind of test method and device of on-screen display data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105227873A true CN105227873A (en) | 2016-01-06 |
CN105227873B CN105227873B (en) | 2019-04-05 |
Family
ID=54996521
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510552574.4A Active CN105227873B (en) | 2015-09-01 | 2015-09-01 | A kind of test method and device of on-screen display data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105227873B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108259797A (en) * | 2018-01-09 | 2018-07-06 | 武汉精测电子集团股份有限公司 | A kind of method and device that character adding is carried out to image |
CN108304356A (en) * | 2018-01-30 | 2018-07-20 | 深圳市茁壮网络股份有限公司 | A kind of character display method and device |
CN108804066A (en) * | 2018-06-11 | 2018-11-13 | 深圳市琥蜂科技有限公司 | The display methods and computer readable storage medium of screen display character |
CN110675800A (en) * | 2019-11-07 | 2020-01-10 | 广东乐心医疗电子股份有限公司 | Display screen driving method and device |
CN112331026A (en) * | 2020-11-09 | 2021-02-05 | 深圳市小喵科技有限公司 | Method and device for simulating dot matrix screen display and readable storage medium |
CN113360113A (en) * | 2021-05-24 | 2021-09-07 | 中国电子科技集团公司第四十一研究所 | System and method for dynamically adjusting character display width based on OLED screen |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004272090A (en) * | 2003-03-11 | 2004-09-30 | Funai Electric Co Ltd | Compression format of character image for osd display means and its decompression method |
CN101052182A (en) * | 2007-03-27 | 2007-10-10 | 华为技术有限公司 | Method, device and terminal for realizing content display |
CN101873451A (en) * | 2010-05-19 | 2010-10-27 | 杭州海康威视数字技术股份有限公司 | Method and device for realizing on-screen display (OSD) of characters |
CN101888505A (en) * | 2010-06-13 | 2010-11-17 | 杭州海康威视数字技术股份有限公司 | Method and device for displaying characters on screen |
CN101963954A (en) * | 2009-07-24 | 2011-02-02 | 康佳集团股份有限公司 | Method and device for displaying words |
-
2015
- 2015-09-01 CN CN201510552574.4A patent/CN105227873B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004272090A (en) * | 2003-03-11 | 2004-09-30 | Funai Electric Co Ltd | Compression format of character image for osd display means and its decompression method |
CN101052182A (en) * | 2007-03-27 | 2007-10-10 | 华为技术有限公司 | Method, device and terminal for realizing content display |
CN101963954A (en) * | 2009-07-24 | 2011-02-02 | 康佳集团股份有限公司 | Method and device for displaying words |
CN101873451A (en) * | 2010-05-19 | 2010-10-27 | 杭州海康威视数字技术股份有限公司 | Method and device for realizing on-screen display (OSD) of characters |
CN101888505A (en) * | 2010-06-13 | 2010-11-17 | 杭州海康威视数字技术股份有限公司 | Method and device for displaying characters on screen |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108259797A (en) * | 2018-01-09 | 2018-07-06 | 武汉精测电子集团股份有限公司 | A kind of method and device that character adding is carried out to image |
CN108304356A (en) * | 2018-01-30 | 2018-07-20 | 深圳市茁壮网络股份有限公司 | A kind of character display method and device |
CN108304356B (en) * | 2018-01-30 | 2021-02-09 | 深圳市茁壮网络股份有限公司 | Character display method and device |
CN108804066A (en) * | 2018-06-11 | 2018-11-13 | 深圳市琥蜂科技有限公司 | The display methods and computer readable storage medium of screen display character |
CN110675800A (en) * | 2019-11-07 | 2020-01-10 | 广东乐心医疗电子股份有限公司 | Display screen driving method and device |
CN112331026A (en) * | 2020-11-09 | 2021-02-05 | 深圳市小喵科技有限公司 | Method and device for simulating dot matrix screen display and readable storage medium |
CN113360113A (en) * | 2021-05-24 | 2021-09-07 | 中国电子科技集团公司第四十一研究所 | System and method for dynamically adjusting character display width based on OLED screen |
Also Published As
Publication number | Publication date |
---|---|
CN105227873B (en) | 2019-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105227873A (en) | A kind of method of testing of on-chip study data and device | |
CN106569768B (en) | Method for configuring spliced screen and splicer | |
US8194070B2 (en) | System and method of converting edge record based graphics to polygon based graphics | |
CN106651992B (en) | Method and system for optimizing Android resource picture | |
CN105611213A (en) | Image processing method, image play method and related device and system | |
KR100727066B1 (en) | Method for providing mobile webpage by employing to dynamic template | |
CN101908216B (en) | Method and device for realizing vector fonts | |
CN112714357B (en) | Video playing method, video playing device, electronic equipment and storage medium | |
CN104598436A (en) | Method and device for dynamically generating three-dimensional chart | |
CN115439609B (en) | Three-dimensional model rendering method, system, equipment and medium based on map service | |
CN111179370B (en) | Picture generation method and device, electronic equipment and storage medium | |
CN105100870A (en) | Screenshot method and terminal equipment | |
CN212137804U (en) | Point-to-point video splicing system | |
CN104867470A (en) | Device and method for embedding geographic and documental information in logic picture based on FPGA | |
CN108509112B (en) | Menu display method and device, display equipment and storage medium | |
CN107908455B (en) | Browser page switching method and system | |
CN114237795B (en) | Terminal interface display method and device, electronic equipment and readable storage medium | |
CN107872441A (en) | The method and apparatus for generating device attribute configuration file | |
CN115904372A (en) | Data processing method and device | |
CN115018949A (en) | Picture processing method and device, electronic equipment and storage medium | |
CN114387378A (en) | Image generation method and device based on digital twin rendering engine and electronic equipment | |
CN115543263A (en) | Script generation method, device, equipment and medium | |
US20200167057A1 (en) | Automatically Generated Cursor Bitmap Files from Scalable Vector Graphic (SVG) Files | |
CN105141901A (en) | Video processing method and device | |
CN118135079B (en) | Three-dimensional scene roaming drawing method, device and equipment based on cloud fusion |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20200325 Address after: 211500 room 616, block B, Chuangzhi building, No.17, Xinghuo Road, Jiangbei new district, Nanjing City, Jiangsu Province Patentee after: Nanjing xijueshuo Information Technology Co., Ltd Address before: 266109, No. 6, building C, building 1, intellectual Island Road, Qingdao hi tech Zone, Qingdao, Shandong Patentee before: VIMICRO QINGDAO Corp. |
|
TR01 | Transfer of patent right |