CN101873451A - Method and device for realizing on-screen display (OSD) of characters - Google Patents
Method and device for realizing on-screen display (OSD) of characters Download PDFInfo
- Publication number
- CN101873451A CN101873451A CN 201010179295 CN201010179295A CN101873451A CN 101873451 A CN101873451 A CN 101873451A CN 201010179295 CN201010179295 CN 201010179295 CN 201010179295 A CN201010179295 A CN 201010179295A CN 101873451 A CN101873451 A CN 101873451A
- Authority
- CN
- China
- Prior art keywords
- character
- osd
- dsp
- lattice information
- internal memory
- 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
Images
Landscapes
- Controls And Circuits For Display Device (AREA)
Abstract
The invention discloses a method and a device for realizing on-screen display (OSD) of characters. The method comprises the following steps of: downloading dot matrix information corresponding to the common tag characters and the characters in an American standard code for information interchange (ASCII) character bank to a digital signal processor (DSP) memory; storing the dot matrix information corresponding to characters in a wide-byte character bank in a memory of a host; receiving an OSD display command and judging the types of to-be-displayed OSD characters; if the to-be-displayed OSD characters are the common tag characters and/or belong to the ASCII characters in the ASCII character bank, acquiring the dot matrix information corresponding to the to-be-displayed OSD characters from the memory of the DSP; if the to-be-displayed OSD characters are the characters in the wide-byte character bank, downloading the dot matrix information corresponding to the character from the memory of the host to the memory of the DSP; and uploading the dot matrix information corresponding to the to-be-displayed OSD characters to a video image to display. By using the method and the device, the required dot matrix character bank does not need to be downloaded to the memory of the DSP in advance.
Description
Technical field
The present invention relates to the digital video technology field, particularly a kind of method and device that is implemented in the demonstration of screen character display.
Background technology
Show that at screen (OSD, on-screen display) is mainly used in the Word message that superposes on video image,, thereby provide more additional information for video content as time, place etc.OSD can be used as the explanation of video image and replenishes, and with video flowing transmission and storage; Can also can make the user obtain more additional information for the user provides friendly man-machine interface.
At present, OSD mainly contains character and forms, and comprises numeral, letter, Chinese character, additional character etc., therefore in order to support different language, need to adopt different character libraries, as supporting that English needs the ASCII character library, support that Chinese needs the GB2312 character library, support that Russian needs Russian character library etc.For the ease of realizing osd function, the general dot matrix word library that adopts, in dot matrix word library, each character all uses the dot matrix of m * n to represent, m represents that this character duration is a m pixel here, n represents highly to be n pixel, corresponding 1 of each pixel is shown as foreground if this position is 1 this pixel of expression, such as white, if being 0 this pixel of expression, this position is shown as background colour, such as this color of pixel in black or the background image.General ascii character all adopts 8 * 16 some matrix representation, represents that a character needs 16 bytes; Pictographs such as Chinese, Korean and Japanese all adopt 16 * 16 matrix representations, represent that a character needs 32 bytes.
Generally all be to adopt following mode to realize that the OSD character shows now: the dot matrix word library that may use when initialization system all downloads to digital signal processing chip (DSP, digital signalprocessor) in the internal memory, system carries out calculating the side-play amount of character in dot matrix word library according to the character code value that is provided with again when OSD shows, find the lattice information of this character correspondence then in dot matrix word library according to side-play amount, the lattice information of this character is added to be shown on the video image.
As seen, when existing realization OSD character shows, need be with the dot matrix word library that may use, the Chinese word library of GB2312 coding for example, perhaps Japanese character library and Russia's literal pool all download in the internal memory of DSP of system, and these dot matrix word libraries all bigger (for example the Chinese word library of GB2312 coding has about 260KB), can take the memory headroom of more DSP, influence the use of other functions of whole system, and limit later function expansion.
Summary of the invention
Method and device that the embodiment of the invention provides a kind of OSD of realization character to show need not in advance needed dot matrix word library all to be downloaded in the internal memory of DSP, can carry out showing at screen.
The embodiment of the invention provides a kind of method that screen shows that the OSD character shows that is implemented in, and comprising:
The pairing lattice information of character in tag characters commonly used and the ASCII character library is downloaded in the internal memory of DSP; The pairing lattice information of character in the wide byte character character library is kept in the internal memory of main frame; Described method also comprises:
Reception comprises the OSD idsplay order of OSD character code value to be shown, obtains the encoded radio of OSD character to be shown, judges the type of described OSD character to be shown according to described encoded radio,
If described OSD character to be shown is tag characters commonly used and/or the ascii character that belongs to the ASCII character library, then obtain the lattice information of OSD character correspondence to be shown from the internal memory of described DSP;
If described OSD character to be shown is the character in the wide byte character character library, then from the internal memory of described main frame, download the lattice information of described character correspondence in the internal memory of DSP;
The lattice information of described OSD character correspondence to be shown is loaded on the video image shows.
Wherein, the step that downloads in the internal memory of DSP of the described pairing lattice information of character that will use always in tag characters and the ASCII character library comprises:
To download in the tag characters structure commonly used of DSP in the internal memory of the pairing lattice information of tag characters by main frame commonly used, wherein, the pairing encoded radio of tag characters commonly used is as the address of described tag characters commonly used in DSP;
The pairing lattice information of character in the ASCII character library is downloaded to the assigned address of DSP internal memory, and wherein, described assigned address is the base address of described ASCII character library.
Wherein, if described OSD character to be shown is a tag characters commonly used, then the step of obtaining the lattice information of OSD character correspondence to be shown from the internal memory of described DSP comprises:
In the tag characters structure commonly used of DSP internal memory, obtain the lattice information of OSD character correspondence to be shown according to the encoded radio of tag characters commonly used.
Wherein, if described OSD character to be shown is the character in the ASCII character library, then the step of obtaining the lattice information of OSD character correspondence to be shown from the internal memory of described DSP comprises:
The base address of preserving described ASCII character library according to the encoded radio that belongs to character in the ASCII character library and in DSP calculates the address of character in the DSP internal memory in the described ASCII of the belonging to character library, obtains the lattice information of OSD character correspondence to be shown according to described address.
Wherein, if described OSD character to be shown is the character in the wide byte character character library, the lattice information of then downloading described character correspondence from the internal memory of described main frame comprises to the step in the internal memory of DSP:
Encoded radio according to character in the described wide byte character character library calculates the position of described character in host memory, obtains the lattice information of described character correspondence;
The pairing lattice information of wide byte character is copied in the wide byte character buffer structure body;
Described wide byte character buffer structure body is downloaded in the internal memory of DSP;
From described wide byte character buffer structure body, obtain the lattice information of OSD character correspondence to be shown according to the encoded radio of wide byte character.
Wherein, described OSD character to be shown comprises following one of them or combination in any: tag characters commonly used, belong to character in the ASCII character library, and wide byte character.
Wherein, described tag characters commonly used comprises: the character in character, expression Chinese week and the month in the character of numerical character, express time, English week of expression and month.
The embodiment of the invention also provides a kind of screen that is implemented in to show OSD character device shown, comprising:
Preset unit is used for the pairing lattice information of character of tag characters commonly used and ASCII character library is downloaded in the internal memory of DSP; The pairing lattice information of character in the wide byte character character library is kept in the internal memory of main frame;
The character types judging unit is used to receive the OSD idsplay order that comprises OSD character code value to be shown, obtains the encoded radio of OSD character to be shown, judges the type of described OSD character to be shown according to described encoded radio;
The first lattice information acquiring unit, being used at described OSD character to be shown is tag characters commonly used and/or when belonging to the ascii character of ASCII character library, obtains the lattice information of OSD character correspondence to be shown from the internal memory of described DSP;
The second lattice information acquiring unit, the character that to be used at described OSD character to be shown be wide byte character character library is then downloaded the lattice information of described character correspondence in the internal memory of DSP from the internal memory of described main frame;
The loaded and displayed unit is used for lattice information with described OSD character correspondence to be shown and is loaded on the video image and shows.
Wherein, the described first lattice information acquiring unit comprises:
Tag characters lattice information acquiring unit commonly used, being used at described OSD character to be shown is when using tag characters always, obtains the lattice information of OSD character correspondence to be shown in the tag characters structure commonly used of DSP internal memory according to the encoded radio of tag characters commonly used;
ASCII character library character pattern information acquisition unit, be used for when described OSD character to be shown is the character of ASCII character library, the base address of preserving described ASCII character library according to the encoded radio that belongs to character in the ASCII character library and in DSP calculates character address in the DSP internal memory in the described ASCII of the belonging to character library, obtains the lattice information of OSD character correspondence to be shown according to described address.
Wherein, the described second lattice information acquiring unit comprises:
Loading unit is used for when described OSD character to be shown is wide byte character, calculates the position of described character in host memory according to the encoded radio of character in the described wide byte character character library, obtains the lattice information of described wide byte character correspondence; The pairing lattice information of wide byte character is copied in the wide byte character buffer structure body;
The dynamic download unit is used for described wide byte character buffer structure body is downloaded to the internal memory of DSP;
Wide byte character lattice information acquiring unit is used for obtaining from described wide byte character buffer structure body according to the encoded radio of wide byte character the lattice information of OSD character correspondence to be shown.
Wherein, described OSD character to be shown comprises following one of them or combination in any: tag characters commonly used belongs to character and wide byte character in the ASCII character library;
Described tag characters commonly used comprises: the character in character, expression Chinese week and the month in the character of numerical character, express time, English week of expression and month.
Method and device that the realization OSD character that using the embodiment of the invention provides shows, need not in advance needed dot matrix word library all to be downloaded in the internal memory of DSP, can carry out showing at screen, promptly need not be with the whole dot matrix word library (Chinese word library of GB2312 coding for example, perhaps Japanese character library and Russia's literal pool or the like) download in the internal memory of DSP, the lattice information of the dynamic download OSD character that need show just, thereby the remarkable memory headroom that must save DSP, improve the treatment effeciency of DSP, be more conducive to function expansion from now on.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, the accompanying drawing of required use is done to introduce simply in will describing embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method flow diagram according to the realization OSD character demonstration of the embodiment of the invention;
Fig. 2 is the schematic diagram according to the system architecture of the embodiment of the invention;
Fig. 3 is the flow chart that shows a kind of instantiation of OSD character;
Fig. 4 is based on a kind of possible initialization flowchart of example shown in Figure 3;
Fig. 5 is the logical construction schematic diagram according to the realization OSD character display device of the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Referring to Fig. 1, it is that this flow process specifically comprises according to the method flow diagram of the realization OSD character demonstration of the embodiment of the invention:
Concrete, will download in the tag characters structure commonly used of DSP in the internal memory of the pairing lattice information of tag characters by main frame commonly used, wherein, the pairing encoded radio of tag characters commonly used is as the address of described tag characters commonly used in DSP;
The pairing lattice information of character in the ASCII character library is downloaded to the assigned address of DSP internal memory, and wherein, described assigned address is the base address of described ASCII character library in the DSP internal memory;
Wherein, above-mentioned tag characters commonly used comprises: the character in character, expression Chinese week and the month in the character of numerical character, express time, English week of expression and month; The character that is appreciated that English week of expression and month both can be a full name, also can be english abbreviation;
Above-mentioned ASCII character library is through the ASCII character library after the cutting with standard A SCII character library, it promptly is the character of the frequent use that from standard A SCII character library, selects, the character that should often use can be set kinds of characters according to different fields, a kind of possible implementation is that 94 characters that will begin from 0x20 to 0x7f finishes are made as frequent use character, promptly related ASCII character library herein.
Concrete, if described OSD character to be shown is a tag characters commonly used, then the step of obtaining the lattice information of OSD character correspondence to be shown from the internal memory of described DSP comprises: the lattice information that obtains OSD character correspondence to be shown according to the encoded radio of tag characters commonly used the tag characters structure commonly used of DSP internal memory.
If described OSD character to be shown is the character in the ASCII character library, then the step of obtaining the lattice information of OSD character correspondence to be shown from the internal memory of described DSP comprises: calculate character address in the DSP internal memory in the described ASCII of the belonging to character library according to the encoded radio that belongs to character the ASCII character library and the base address of preserving described ASCII character library in DSP, obtain the lattice information of OSD character correspondence to be shown according to described address.
Step 106 is downloaded the lattice information of described character correspondence in the internal memory of DSP from the internal memory of described main frame;
Concrete, if described OSD character to be shown is the character that belongs in the wide byte character character library, the lattice information of then downloading described character correspondence from the internal memory of described main frame comprises to the step in the internal memory of DSP: the encoded radio according to character in the described wide byte character character library calculates the position of described character in host memory, obtains the lattice information of described character correspondence;
The pairing lattice information of described wide byte character is copied in the wide byte character buffer structure body;
Described wide byte character buffer structure body is downloaded in the internal memory of DSP;
From described wide byte character buffer structure body, obtain the lattice information of OSD character correspondence to be shown according to the encoded radio of wide byte character.
Step 107 is loaded into the lattice information of described OSD character correspondence to be shown on the video image and shows.
Need to prove that above-mentioned OSD character to be shown comprises following one of them or combination in any: tag characters commonly used, belong to character in the ASCII character library, and wide byte character.Thereby above-mentioned steps 105 and 106 can be carried out one of them or carry out simultaneously.
Below in conjunction with an instantiation the present invention is elaborated again.
Referring to Fig. 2, it is the schematic diagram according to the system architecture of the embodiment of the invention.For the present embodiment, be divided into two parts from hardware, main frame 210 and DSP, wherein the quantity of DSP can be a plurality of, as DSP220a~220n.Be divided into three parts from software, application program 211, SDK (SDK, Software Development Kit) 212 and DSP program 221 are appreciated that owing to have a plurality of DSP thereby have a plurality of DSP program 221a~221n.Application program 211 and SDK 212 are present in the main frame 210, and DSP program 221 is present in the internal memory of DSP 220.DSP and main frame carry out transfer of data by pci bus.Application program 211 is undertaken alternately by application programming interfaces and the SDK that SDK212 provides, and finishes to comprise initialization/anti-initialization system, beginning/stop video preview, beginning/stop operations such as coding.Undertaken alternately by the mode that sends order between SDK and the DSP program.
Referring to Fig. 3, it is the flow chart that shows a kind of instantiation of OSD character.Among Fig. 3, black heavy line representative of data flow, black fine line representative time stream, tubular wire is represented control flows.
In conjunction with Fig. 2 and Fig. 3, after application program brings into operation, call the interface of the initialization DSP that SDK provides, SDK begins to carry out the work of initialization DSP.During initialization DSP, the tag characters commonly used that uses among the first initialization OSD.Tag characters commonly used comprises numeral, the original text in the character of express time, English week of expression and month and/or the character in character, expression Chinese week and the month of abbreviation.
A kind of possible implementation is to carry out initialization according to the character sequence in the character of numerical character, express time, the character of representing English week and month, expression Chinese week and month.Specifically referring to Fig. 4, it is a kind of possible initialization flowchart.Need to prove that said sequence only is a kind of possible example, the embodiment of the invention is not done qualification to the initialization order of tag characters commonly used.During every kind of character of initialization, obtain the encoded radio of character earlier,, afterwards this lattice information is copied in the structure of preserving tag characters commonly used then according to the lattice information that finds this character in the character library of encoded radio in being stored in main frame.The encoded radio of tag characters commonly used is defined by SDK, and these encoded radios are exactly these tag characters commonly used addresses in the DSP internal memory.
Then SDK can wait for that the DSP initialization finishes, and SDK will use the assigned address in the internal memory that tag characters structure and ASCII character library download to DSP always during this, and this assigned address is the base address of described ASCII character library in the DSP internal memory.For example, the ASCII character library is to choose beginning to the encoded radio of 94 characters of 0x7f end from 0x20 of frequent use from standard A SCII character library.
After the DSP initialization is finished, DSP will give tacit consent to the OSD character and be added on the video image, and acquiescence OSD can use the character in tag characters commonly used and the ASCII character library usually.
When needed, the interface that OSD is set that application call SDK provides is passed to SDK with the encoded radio of OSD character, and the OSD character here can be one or more combination of commonly used tag characters, ascii character or wide byte character.
SDK judges the type of character according to the encoded radio of character:
If character is a tag characters commonly used, SDK directly copies the encoded radio (this encoded radio is exactly the address of character in the DSP internal memory) of this character in the configuration information structure of OSD to;
If belong to character in the ASCII character library, SDK calculates the address of character in the DSP internal memory according to the base address of the encoded radio of character and the ASCII character library of preserving in the DSP internal memory, then this address value is copied in the configuration information structure of OSD;
If wide byte character, SDK calculates the position of character in wide byte character character library (being kept in the main frame) according to the encoded radio of character, thereby obtain the lattice information of this character, then lattice information is copied in the wide byte character buffer structure body, and upgrade the number of the wide byte character in this structure, last SDK calculates the address of character in the DSP internal memory according to the base address of preserving wide byte character character library in character code value and the DSP internal memory, this address value is copied in the configuration information structure of OSD then.
Need to prove, comprise following member in the configuration information structure of above-mentioned OSD: character number, character code value array.Comprise following member in the wide byte character buffer structure body: the number of wide byte character, the lattice information array of wide byte character, above-mentioned member is used for searching according to the character code value lattice information of wide byte character buffer structure.
After aforesaid operations finished, SDK sent the order by SDK and the common definition of DSP, as the dynamic download order, wide byte character buffer structure body is passed to the DSP program, and DSP is saved in it in internal memory after receiving wide byte character buffer structure body.Pairing lattice information of wide byte character in the OSD character of so just having realized to be provided with specifically and the character number dynamic download purpose in the DSP internal memory.
Last SDK sends the OSD display command, the configuration information structure of OSD is passed to the DSP program handle.After the DSP program obtains this configuration information, check the character encoded radio, if tag characters commonly used, according to the lattice information of obtaining this character in the tag characters structure commonly used of this encoded radio in being kept at the DSP internal memory; If character in the ASCII character library, according to the lattice information of obtaining this character in the ASCII character library of this encoded radio in being kept at the DSP internal memory; If wide byte character, in the wide byte character buffer structure body of dynamic download in the DSP, obtain the lattice information of this character according to this encoded radio;
The lattice information that the OSD character has been arranged, DSP program are added to these OSD characters on the video image at last, have finished the demonstration of OSD.
As seen, the method that the realization OSD character that using the embodiment of the invention provides shows, need not in advance needed dot matrix word library all to be downloaded in the internal memory of DSP, can carry out showing at screen, promptly need not be with the whole dot matrix word library (Chinese word library of GB2312 coding for example, perhaps Japanese character library and Russia's literal pool or the like) download in the internal memory of DSP, the lattice information of the dynamic download OSD character that need show just, thereby the remarkable memory headroom that must save DSP, improve the treatment effeciency of DSP, be more conducive to function expansion from now on.
The embodiment of the invention provides a kind of screen that is implemented in to show OSD character device shown, participates in Fig. 5, specifically comprises:
Character types judging unit 502 is used to receive the OSD idsplay order that comprises OSD character code value to be shown, obtains the encoded radio of OSD character to be shown, judges the type of described OSD character to be shown according to described encoded radio;
The first lattice information acquiring unit 503, being used at described OSD character to be shown is tag characters commonly used and/or when belonging to the ascii character of ASCII character library, obtains the lattice information of OSD character correspondence to be shown from the internal memory of described DSP;
The second lattice information acquiring unit 504, the character that to be used at described OSD character to be shown be wide byte character character library is then downloaded the lattice information of described character correspondence in the internal memory of DSP from the internal memory of described main frame;
Loaded and displayed unit 505 is used for lattice information with described OSD character correspondence to be shown and is loaded on the video image and shows.
The above-mentioned first lattice information acquiring unit 503 can specifically comprise:
Tag characters lattice information acquiring unit commonly used, being used at described OSD character to be shown is when using tag characters always, obtains the lattice information of OSD character correspondence to be shown in the tag characters structure commonly used of DSP internal memory according to the encoded radio of tag characters commonly used;
ASCII character library character pattern information acquisition unit, be used for when described OSD character to be shown is the character of ASCII character library, the base address of preserving described ASCII character library according to the encoded radio that belongs to character in the ASCII character library and in DSP calculates the address of character in the DSP internal memory in the described ASCII of the belonging to character library, obtains the lattice information of OSD character correspondence to be shown according to described address.
The above-mentioned second lattice information acquiring unit 504 can specifically comprise:
Loading unit is used for when described OSD character to be shown is wide byte character, calculates the position of described character in host memory according to the encoded radio of character in the described wide byte character character library, obtains the lattice information of described wide byte character correspondence; The pairing lattice information of wide byte character is copied in the wide byte character buffer structure body;
The dynamic download unit is used for described wide byte character buffer structure body is downloaded to the internal memory of DSP;
Wide byte character lattice information acquiring unit is used for obtaining from described wide byte character buffer structure body according to the encoded radio of wide byte character the lattice information of OSD character correspondence to be shown.
Above-mentioned OSD character to be shown comprises following one of them or combination in any: tag characters commonly used belongs to character and wide byte character in the ASCII character library; Tag characters commonly used comprises: the character in character, expression Chinese week and the month in the character of numerical character, express time, English week of expression and month.
Use the realization OSD character device shown that the embodiment of the invention provides, need not in advance needed dot matrix word library all to be downloaded in the internal memory of DSP, can carry out showing at screen, promptly need not be with the whole dot matrix word library (Chinese word library of GB2312 coding for example, perhaps Japanese character library and Russia's literal pool or the like) download in the internal memory of DSP, the lattice information of the dynamic download OSD character that need show just, thereby the remarkable memory headroom that must save DSP, improve the treatment effeciency of DSP, be more conducive to function expansion from now on.
For device embodiment, because it is substantially similar in appearance to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
Need to prove, in this article, relational terms such as first and second grades only is used for an entity or operation are made a distinction with another entity or operation, and not necessarily requires or hint and have the relation of any this reality or in proper order between these entities or the operation.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby make and comprise that process, method, article or the equipment of a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or also be included as this process, method, article or equipment intrinsic key element.Do not having under the situation of more restrictions, the key element that limits by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the said method execution mode is to instruct relevant hardware to finish by program, described program can be stored in the computer read/write memory medium, here the alleged storage medium that gets, as: ROM/RAM, magnetic disc, CD etc.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.All any modifications of being done within the spirit and principles in the present invention, be equal to replacement, improvement etc., all be included in protection scope of the present invention.
Claims (11)
1. one kind is implemented in the method that screen shows that the OSD character shows, it is characterized in that, comprising:
The pairing lattice information of character in tag characters commonly used and the ASCII character library is downloaded in the internal memory of DSP; The pairing lattice information of character in the wide byte character character library is kept in the internal memory of main frame; Described method also comprises:
Reception comprises the OSD idsplay order of OSD character code value to be shown, obtains the encoded radio of OSD character to be shown, judges the type of described OSD character to be shown according to described encoded radio,
If described OSD character to be shown is tag characters commonly used and/or the ascii character that belongs to the ASCII character library, then obtain the lattice information of OSD character correspondence to be shown from the internal memory of described DSP;
If described OSD character to be shown is the character in the wide byte character character library, then from the internal memory of described main frame, download the lattice information of described character correspondence in the internal memory of DSP;
The lattice information of described OSD character correspondence to be shown is loaded on the video image shows.
2. method according to claim 1 is characterized in that, the step that the described pairing lattice information of character that will use always in tag characters and the ASCII character library downloads in the internal memory of DSP comprises:
To download in the tag characters structure commonly used of DSP in the internal memory of the pairing lattice information of tag characters by main frame commonly used, wherein, the pairing encoded radio of tag characters commonly used is as the address of described tag characters commonly used in DSP;
The pairing lattice information of character in the ASCII character library is downloaded to the assigned address of DSP internal memory, and wherein, described assigned address is the base address of described ASCII character library.
3. method according to claim 2 is characterized in that, if described OSD character to be shown is a tag characters commonly used, then the step of obtaining the lattice information of OSD character correspondence to be shown from the internal memory of described DSP comprises:
In the tag characters structure commonly used of DSP internal memory, obtain the lattice information of OSD character correspondence to be shown according to the encoded radio of tag characters commonly used.
4. method according to claim 2 is characterized in that, if described OSD character to be shown is the character in the ASCII character library, then the step of obtaining the lattice information of OSD character correspondence to be shown from the internal memory of described DSP comprises:
The base address of preserving described ASCII character library according to the encoded radio that belongs to character in the ASCII character library and in DSP calculates the address of character in the DSP internal memory in the described ASCII of the belonging to character library, obtains the lattice information of OSD character correspondence to be shown according to described address.
5. method according to claim 1 is characterized in that, if described OSD character to be shown is the character in the wide byte character character library, the lattice information of then downloading described character correspondence from the internal memory of described main frame comprises to the step in the internal memory of DSP:
Encoded radio according to character in the described wide byte character character library calculates the position of described character in host memory, obtains the lattice information of described character correspondence;
The pairing lattice information of wide byte character is copied in the wide byte character buffer structure body;
Described wide byte character buffer structure body is downloaded in the internal memory of DSP;
From described wide byte character buffer structure body, obtain the lattice information of OSD character correspondence to be shown according to the encoded radio of wide byte character.
6. method according to claim 1 is characterized in that, described OSD character to be shown comprises following one of them or combination in any: tag characters commonly used, belong to character in the ASCII character library, and wide byte character.
7. method according to claim 1 is characterized in that, described tag characters commonly used comprises: the character in character, expression Chinese week and the month in the character of numerical character, express time, English week of expression and month.
8. one kind is implemented in screen demonstration OSD character device shown, it is characterized in that, comprising:
Preset unit is used for the pairing lattice information of character of tag characters commonly used and ASCII character library is downloaded in the internal memory of DSP; The pairing lattice information of character in the wide byte character character library is kept in the internal memory of main frame;
The character types judging unit is used to receive the OSD idsplay order that comprises OSD character code value to be shown, obtains the encoded radio of OSD character to be shown, judges the type of described OSD character to be shown according to described encoded radio;
The first lattice information acquiring unit, being used at described OSD character to be shown is tag characters commonly used and/or when belonging to the ascii character of ASCII character library, obtains the lattice information of OSD character correspondence to be shown from the internal memory of described DSP;
The second lattice information acquiring unit, the character that to be used at described OSD character to be shown be wide byte character character library is then downloaded the lattice information of described character correspondence in the internal memory of DSP from the internal memory of described main frame;
The loaded and displayed unit is used for lattice information with described OSD character correspondence to be shown and is loaded on the video image and shows.
9. device according to claim 8 is characterized in that, the described first lattice information acquiring unit comprises:
Tag characters lattice information acquiring unit commonly used, being used at described OSD character to be shown is when using tag characters always, obtains the lattice information of OSD character correspondence to be shown in the tag characters structure commonly used of DSP internal memory according to the encoded radio of tag characters commonly used;
ASCII character library character pattern information acquisition unit, be used for when described OSD character to be shown is the character of ASCII character library, the base address of preserving described ASCII character library according to the encoded radio that belongs to character in the ASCII character library and in DSP calculates character address in the DSP internal memory in the described ASCII of the belonging to character library, obtains the lattice information of OSD character correspondence to be shown according to described address.
10. device according to claim 8 is characterized in that, the described second lattice information acquiring unit comprises:
Loading unit is used for when described OSD character to be shown is wide byte character, calculates the position of described character in host memory according to the encoded radio of character in the described wide byte character character library, obtains the lattice information of described wide byte character correspondence; The pairing lattice information of wide byte character is copied in the wide byte character buffer structure body;
The dynamic download unit is used for described wide byte character buffer structure body is downloaded to the internal memory of DSP;
Wide byte character lattice information acquiring unit is used for obtaining from described wide byte character buffer structure body according to the encoded radio of wide byte character the lattice information of OSD character correspondence to be shown.
11. device according to claim 8 is characterized in that,
Described OSD character to be shown comprises following one of them or combination in any: tag characters commonly used belongs to character and wide byte character in the ASCII character library;
Described tag characters commonly used comprises: the character in character, expression Chinese week and the month in the character of numerical character, express time, English week of expression and month.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010179295 CN101873451B (en) | 2010-05-19 | 2010-05-19 | Method and device for realizing on-screen display (OSD) of characters |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010179295 CN101873451B (en) | 2010-05-19 | 2010-05-19 | Method and device for realizing on-screen display (OSD) of characters |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101873451A true CN101873451A (en) | 2010-10-27 |
CN101873451B CN101873451B (en) | 2012-09-05 |
Family
ID=42998080
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010179295 Active CN101873451B (en) | 2010-05-19 | 2010-05-19 | Method and device for realizing on-screen display (OSD) of characters |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101873451B (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102325273A (en) * | 2011-09-14 | 2012-01-18 | 深圳Tcl新技术有限公司 | Video terminal and display method of screen menu type page data of same |
CN102542964A (en) * | 2011-12-27 | 2012-07-04 | 深圳创维数字技术股份有限公司 | Method and device for displaying characters on vacuum fluorescent display |
CN103455808A (en) * | 2013-08-22 | 2013-12-18 | 黑龙江大学 | Sending device of machine character reading code and coding method |
CN105047181A (en) * | 2015-08-05 | 2015-11-11 | 广东小天才科技有限公司 | Method and device for displaying characters |
CN105227873A (en) * | 2015-09-01 | 2016-01-06 | 青岛中星微电子有限公司 | A kind of method of testing of on-chip study data and device |
CN106803904A (en) * | 2016-11-24 | 2017-06-06 | 德为显示科技股份有限公司 | A kind of liquid crystal display OSD display methods and system |
CN110852037A (en) * | 2019-09-18 | 2020-02-28 | 宁波江丰生物信息技术有限公司 | Method for calling picture word stock |
CN111435978A (en) * | 2018-12-26 | 2020-07-21 | 杭州海康威视数字技术股份有限公司 | OSD (on screen display) superposing method and device and electronic equipment |
CN112114798A (en) * | 2020-09-25 | 2020-12-22 | 深圳市易优电气有限公司 | Display method, device, terminal and storage medium of LCD |
CN112433695A (en) * | 2020-12-02 | 2021-03-02 | 北京麟卓信息科技有限公司 | Android system DPI self-adjusting method and device on Linux platform |
CN112672083A (en) * | 2020-12-16 | 2021-04-16 | 深圳开立生物医疗科技股份有限公司 | Character display method, device, equipment and storage medium |
CN113316018A (en) * | 2021-04-12 | 2021-08-27 | 浙江华创视讯科技有限公司 | Method, device and storage medium for overlaying time information on video picture display |
CN113592717A (en) * | 2021-08-11 | 2021-11-02 | 浙江大华技术股份有限公司 | Video image character superposition method and device, storage medium and electronic device |
CN114442978A (en) * | 2021-12-06 | 2022-05-06 | 深圳市乐升半导体有限公司 | Character space adjusting method and device, storage medium and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4675830A (en) * | 1984-07-06 | 1987-06-23 | Compugraphic Corporation | Method for producing a scaleable typeface data |
CN1949845A (en) * | 2006-10-27 | 2007-04-18 | 康佳集团股份有限公司 | Method for searching English words or word group by television |
CN101316339A (en) * | 2008-06-13 | 2008-12-03 | 深圳创维-Rgb电子有限公司 | Method for displaying different expression form of characters in the same word stock |
CN201340720Y (en) * | 2008-12-26 | 2009-11-04 | 厦门雅迅网络股份有限公司 | AV screen display device |
-
2010
- 2010-05-19 CN CN 201010179295 patent/CN101873451B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4675830A (en) * | 1984-07-06 | 1987-06-23 | Compugraphic Corporation | Method for producing a scaleable typeface data |
CN1949845A (en) * | 2006-10-27 | 2007-04-18 | 康佳集团股份有限公司 | Method for searching English words or word group by television |
CN101316339A (en) * | 2008-06-13 | 2008-12-03 | 深圳创维-Rgb电子有限公司 | Method for displaying different expression form of characters in the same word stock |
CN201340720Y (en) * | 2008-12-26 | 2009-11-04 | 厦门雅迅网络股份有限公司 | AV screen display device |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102325273A (en) * | 2011-09-14 | 2012-01-18 | 深圳Tcl新技术有限公司 | Video terminal and display method of screen menu type page data of same |
CN102542964A (en) * | 2011-12-27 | 2012-07-04 | 深圳创维数字技术股份有限公司 | Method and device for displaying characters on vacuum fluorescent display |
CN102542964B (en) * | 2011-12-27 | 2016-06-22 | 深圳创维数字技术有限公司 | A kind of method and apparatus showing character on vacuum fluorescent display |
CN103455808A (en) * | 2013-08-22 | 2013-12-18 | 黑龙江大学 | Sending device of machine character reading code and coding method |
CN103455808B (en) * | 2013-08-22 | 2017-03-29 | 黑龙江大学 | The dispensing device of machine character read code and coded method |
CN105047181A (en) * | 2015-08-05 | 2015-11-11 | 广东小天才科技有限公司 | Method and device for displaying characters |
CN105227873A (en) * | 2015-09-01 | 2016-01-06 | 青岛中星微电子有限公司 | A kind of method of testing of on-chip study data and device |
CN105227873B (en) * | 2015-09-01 | 2019-04-05 | 青岛中星微电子有限公司 | A kind of test method and device of on-screen display data |
CN106803904A (en) * | 2016-11-24 | 2017-06-06 | 德为显示科技股份有限公司 | A kind of liquid crystal display OSD display methods and system |
CN111435978A (en) * | 2018-12-26 | 2020-07-21 | 杭州海康威视数字技术股份有限公司 | OSD (on screen display) superposing method and device and electronic equipment |
CN110852037A (en) * | 2019-09-18 | 2020-02-28 | 宁波江丰生物信息技术有限公司 | Method for calling picture word stock |
CN110852037B (en) * | 2019-09-18 | 2023-10-10 | 宁波江丰生物信息技术有限公司 | Picture word stock calling method |
CN112114798A (en) * | 2020-09-25 | 2020-12-22 | 深圳市易优电气有限公司 | Display method, device, terminal and storage medium of LCD |
CN112114798B (en) * | 2020-09-25 | 2024-02-06 | 深圳市易优电气有限公司 | LCD display method, device, terminal and storage medium |
CN112433695A (en) * | 2020-12-02 | 2021-03-02 | 北京麟卓信息科技有限公司 | Android system DPI self-adjusting method and device on Linux platform |
CN112433695B (en) * | 2020-12-02 | 2021-11-23 | 北京麟卓信息科技有限公司 | Android system DPI self-adjusting method and device on Linux platform |
CN112672083A (en) * | 2020-12-16 | 2021-04-16 | 深圳开立生物医疗科技股份有限公司 | Character display method, device, equipment and storage medium |
CN113316018A (en) * | 2021-04-12 | 2021-08-27 | 浙江华创视讯科技有限公司 | Method, device and storage medium for overlaying time information on video picture display |
CN113316018B (en) * | 2021-04-12 | 2022-08-09 | 浙江华创视讯科技有限公司 | Method, device and storage medium for overlaying time information on video picture display |
CN113592717A (en) * | 2021-08-11 | 2021-11-02 | 浙江大华技术股份有限公司 | Video image character superposition method and device, storage medium and electronic device |
CN114442978A (en) * | 2021-12-06 | 2022-05-06 | 深圳市乐升半导体有限公司 | Character space adjusting method and device, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN101873451B (en) | 2012-09-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101873451B (en) | Method and device for realizing on-screen display (OSD) of characters | |
CN101888505A (en) | Method and device for displaying characters on screen | |
US10949944B2 (en) | System and method for unified application programming interface and model | |
AU2009225336B2 (en) | Method of compositing variable alpha fills supporting group opacity | |
CN107515759B (en) | Screen capture method and device, electronic equipment and readable storage medium | |
WO2020131756A1 (en) | Method and apparatus for browser application to load first screen of web page | |
WO2020048326A1 (en) | Interface display method and system, and terminal device | |
CN111339458B (en) | Page presentation method and device | |
CN107943363B (en) | Background image configuration method and device, interactive intelligent panel and storage medium | |
KR20100104804A (en) | Display driver ic, method for providing the display driver ic, and data processing apparatus using the ddi | |
US6078306A (en) | Basic input-output system (BIOS) read-only memory (ROM) with capability for vertical scrolling of bitmapped graphic text by columns | |
CN105279006B (en) | Screen capture method and terminal based on Android system | |
KR20150065642A (en) | Texture address mode discarding filter taps | |
US7657897B2 (en) | Methods and apparatus for communicating between multiple levels of software components | |
US8232994B2 (en) | Viewing multi-dimensional data in two dimensions | |
KR100938992B1 (en) | Structure of animation font file and method for displaying text data of handheld terminal | |
CN111443945B (en) | Component code modification method and device | |
CN113625923A (en) | Mouse processing method and device based on remote cloud desktop, storage medium and equipment | |
CN103034975A (en) | Image processing method and device | |
US7038695B2 (en) | User interface display apparatus using texture mapping method | |
CN111506841A (en) | Webpage display method, device and equipment and readable storage medium | |
CN115145559A (en) | Configuration management method, device and equipment based on Flutter | |
CN113741743A (en) | Display method and device, equipment and storage medium | |
US20230169622A1 (en) | Image processing | |
CN111427550A (en) | Object creating method, terminal device and storage medium |
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 |