CN101873451B - 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 PDF

Info

Publication number
CN101873451B
CN101873451B CN 201010179295 CN201010179295A CN101873451B CN 101873451 B CN101873451 B CN 101873451B CN 201010179295 CN201010179295 CN 201010179295 CN 201010179295 A CN201010179295 A CN 201010179295A CN 101873451 B CN101873451 B CN 101873451B
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.)
Active
Application number
CN 201010179295
Other languages
Chinese (zh)
Other versions
CN101873451A (en
Inventor
朱斌
吕军
魏茂坚
胡扬忠
邬伟琪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN 201010179295 priority Critical patent/CN101873451B/en
Publication of CN101873451A publication Critical patent/CN101873451A/en
Application granted granted Critical
Publication of CN101873451B publication Critical patent/CN101873451B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

A kind of method and device that is implemented in the demonstration of screen character display
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 on video image, superposes,, thereby more additional information is provided for video content like 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, generally adopt dot matrix word library, in dot matrix word library; Each character all uses the dot matrix of m * n to represent, m representes that this character duration is a m pixel here, and n representes 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, representes 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 when initialization system, possibly use 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; In dot matrix word library, find the corresponding lattice information of this character according to side-play amount then, the lattice information of this character is added to be shown on the video image.
It is thus clear that, when existing realization OSD character shows, need be with the dot matrix word library that possibly 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; Said 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 said OSD character to be shown according to said encoded radio,
If said OSD character to be shown is tag characters commonly used and/or the ascii character that belongs to the ASCII character library, then the internal memory from said DSP obtains the corresponding lattice information of OSD character to be shown;
If said OSD character to be shown is the character in the wide byte character character library, then from the internal memory of said main frame, download the corresponding lattice information of said character in the internal memory of DSP;
The lattice information that said OSD character to be shown is corresponding is loaded on the video image and shows.
Wherein, the step that downloads in the internal memory of DSP of the said pairing lattice information of character that will use always in tag characters and the ASCII character library comprises:
With downloading 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 said 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, said assigned address is the base address of said ASCII character library.
Wherein, if said OSD character to be shown is a tag characters commonly used, the step of then obtaining the corresponding lattice information of OSD character to be shown from the internal memory of said DSP comprises:
Encoded radio according to tag characters commonly used obtains the corresponding lattice information of OSD character to be shown in the tag characters structure commonly used of DSP internal memory.
Wherein, if said OSD character to be shown is the character in the ASCII character library, the step of then obtaining the corresponding lattice information of OSD character to be shown from the internal memory of said DSP comprises:
The base address of preserving said 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 said ASCII of the belonging to character library, obtains the corresponding lattice information of OSD character to be shown according to said address.
Wherein, if said OSD character to be shown is the character in the wide byte character character library, then from the internal memory of said main frame, downloads the corresponding lattice information of said character and comprise to the step in the internal memory of DSP:
Encoded radio according to character in the said wide byte character character library calculates the position of said character in host memory, obtains the corresponding lattice information of said character;
The pairing lattice information of wide byte character is copied in the wide byte character buffer structure body;
Said wide byte character buffer structure body is downloaded in the internal memory of DSP;
Encoded radio according to wide byte character obtains the corresponding lattice information of OSD character to be shown from said wide byte character buffer structure body.
Wherein, said 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, said 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 said OSD character to be shown according to said encoded radio;
The first lattice information acquiring unit, being used at said OSD character to be shown is tag characters commonly used and/or when belonging to the ascii character of ASCII character library, obtains the corresponding lattice information of OSD character to be shown from the internal memory of said DSP;
The second lattice information acquiring unit, the character that to be used at said OSD character to be shown be wide byte character character library is then downloaded the corresponding lattice information of said character in the internal memory of DSP from the internal memory of said main frame;
The loaded and displayed unit is used for the lattice information that said OSD character to be shown is corresponding and is loaded on the video image and shows.
Wherein, the said first lattice information acquiring unit comprises:
Tag characters lattice information acquiring unit commonly used, being used at said OSD character to be shown is when using tag characters always, in the tag characters structure commonly used of DSP internal memory, obtains the lattice information of OSD character correspondence to be shown according to the encoded radio of tag characters commonly used;
ASCII character library character pattern information acquisition unit; Be used for when said OSD character to be shown is the character of ASCII character library; The base address of preserving said 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 said ASCII of the belonging to character library, obtains the corresponding lattice information of OSD character to be shown according to said address.
Wherein, the said second lattice information acquiring unit comprises:
Loading unit is used for when said OSD character to be shown is wide byte character, calculates the position of said character in host memory according to the encoded radio of character in the said wide byte character character library, obtains the corresponding lattice information of said wide byte character; 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 said 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 the corresponding lattice information of OSD character to be shown according to the encoded radio of wide byte character from said wide byte character buffer structure body.
Wherein, said 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;
Said 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, promptly need not whole dot matrix word library (the for example Chinese word library of GB2312 coding, perhaps Japanese character library and Russia's literal pool or the like) be downloaded in the internal memory of DSP at screen; The lattice information of the dynamic download OSD character that need show just; Thereby the remarkable memory headroom that must save DSP has improved the treatment effeciency of DSP, is 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; Obviously, the 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 sketch map 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 instance shown in Figure 3;
Fig. 5 is the logical construction sketch map according to the realization OSD character display device of the embodiment of the invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, 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 are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
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:
Step 101 downloads to the pairing lattice information of character in tag characters commonly used and the ASCII character library in the internal memory of DSP;
Concrete, with downloading 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 said 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, said assigned address is the base address of said 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 begin from 0x20 to 0x7f finishes are made as frequent use character, i.e. related ASCII character library among this paper.
Step 102 is kept at the pairing lattice information of character in the wide byte character character library in the internal memory of main frame;
Step 103 receives the OSD idsplay order that comprises OSD character code value to be shown;
Step 104; Obtain the encoded radio of OSD character to be shown, judge the type of said OSD character to be shown, if said OSD character to be shown is tag characters commonly used and/or the ascii character that belongs to the ASCII character library according to said encoded radio; Then execution in step 105; If said OSD character to be shown is the character that belongs in the wide byte character character library, then execution in step 106
Step 105 is obtained the corresponding lattice information of OSD character to be shown from the internal memory of said DSP;
Concrete; If said OSD character to be shown is a tag characters commonly used, the step of then obtaining the corresponding lattice information of OSD character to be shown from the internal memory of said DSP comprises: the encoded radio according to tag characters commonly used obtains the corresponding lattice information of OSD character to be shown the tag characters structure commonly used of DSP internal memory.
If said OSD character to be shown is the character in the ASCII character library; The step of then obtaining the corresponding lattice information of OSD character to be shown from the internal memory of said DSP comprises: the base address of preserving said ASCII character library according to the encoded radio that belongs to character the ASCII character library and in DSP calculates character address in the DSP internal memory in the said ASCII of the belonging to character library, obtains the corresponding lattice information of OSD character to be shown according to said address.
Step 106 is downloaded the corresponding lattice information of said character in the internal memory of DSP from the internal memory of said main frame;
Concrete; If said OSD character to be shown is the character that belongs in the wide byte character character library; Then from the internal memory of said main frame, downloading the corresponding lattice information of said character comprises to the step in the internal memory of DSP: the encoded radio according to character in the said wide byte character character library calculates the position of said character in host memory, obtains the corresponding lattice information of said character;
The pairing lattice information of said wide byte character is copied in the wide byte character buffer structure body;
Said wide byte character buffer structure body is downloaded in the internal memory of DSP;
Encoded radio according to wide byte character obtains the corresponding lattice information of OSD character to be shown from said wide byte character buffer structure body.
Step 107, the lattice information that said OSD character to be shown is corresponding is loaded 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 sketch map according to the system architecture of the embodiment of the invention.For present embodiment, be divided into two parts from hardware, main frame 210 and DSP, wherein the quantity of DSP can be a plurality of, like 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 is present in the main frame 210 with SDK 212, and DSP program 221 is present in the internal memory of DSP 220.DSP and main frame carry out transfer of data through pci bus.Application program 211 is carried out alternately through application programming interfaces and the SDK that SDK212 provides, and accomplishes operations such as comprising initialization/anti-initialization system, beginning/stop video preview, beginning/stop coding.Carry out alternately through the mode of sending 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 instance, 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 accomplishes, 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 said ASCII character library in the DSP internal memory.For example, the ASCII character library is from standard A SCII character library, to choose beginning to the encoded radio of 94 characters of 0x7f end from 0x20 of frequent use.
After the DSP initialization is accomplished, DSP will give tacit consent to the OSD character and be added on the video image, and acquiescence OSD can use the character of using always in tag characters 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 tag characters commonly used, 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 the 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 in the DSP internal memory, preserving, and 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 upgrading 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 the wide byte character character library of preservation in character code value and the DSP internal memory, then this address value is copied in the configuration information structure of OSD.
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, like 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, inspection 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 accomplished the demonstration of OSD.
It is thus clear that; 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:
Preset unit 501 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;
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 said OSD character to be shown according to said encoded radio;
The first lattice information acquiring unit 503, being used at said OSD character to be shown is tag characters commonly used and/or when belonging to the ascii character of ASCII character library, obtains the corresponding lattice information of OSD character to be shown from the internal memory of said DSP;
The second lattice information acquiring unit 504, the character that to be used at said OSD character to be shown be wide byte character character library is then downloaded the corresponding lattice information of said character in the internal memory of DSP from the internal memory of said main frame;
Loaded and displayed unit 505 is used for the lattice information that said OSD character to be shown is corresponding 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 said OSD character to be shown is when using tag characters always, in the tag characters structure commonly used of DSP internal memory, obtains the lattice information of OSD character correspondence to be shown according to the encoded radio of tag characters commonly used;
ASCII character library character pattern information acquisition unit; Be used for when said OSD character to be shown is the character of ASCII character library; The base address of preserving said 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 said ASCII of the belonging to character library, obtains the corresponding lattice information of OSD character to be shown according to said address.
The above-mentioned second lattice information acquiring unit 504 can specifically comprise:
Loading unit is used for when said OSD character to be shown is wide byte character, calculates the position of said character in host memory according to the encoded radio of character in the said wide byte character character library, obtains the corresponding lattice information of said wide byte character; 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 said 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 the corresponding lattice information of OSD character to be shown according to the encoded radio of wide byte character from said wide byte character buffer structure body.
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, promptly need not whole dot matrix word library (the for example Chinese word library of GB2312 coding, perhaps Japanese character library and Russia's literal pool or the like) be downloaded in the internal memory of DSP at screen; The lattice information of the dynamic download OSD character that need show just; Thereby the remarkable memory headroom that must save DSP has improved the treatment effeciency of DSP, is more conducive to function expansion from now on.
For device embodiment, because it is basically 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 relation or the order that has any this reality 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.Under the situation that do not having much more more restrictions, the key element that limits by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises said 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 accomplish through 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 merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.All any modifications of within spirit of the present invention and principle, being done, 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; Said 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 said OSD character to be shown according to said encoded radio,
If said OSD character to be shown is tag characters commonly used and/or the ascii character that belongs to the ASCII character library, then the internal memory from said DSP obtains the corresponding lattice information of OSD character to be shown;
If said OSD character to be shown is the character in the wide byte character character library, then from the internal memory of said main frame, download the corresponding lattice information of said character in the internal memory of DSP;
The lattice information that said OSD character to be shown is corresponding is loaded on the video image and shows.
2. method according to claim 1 is characterized in that, the step that the said 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:
With downloading 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 said 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, said assigned address is the base address of said ASCII character library.
3. method according to claim 2 is characterized in that, if said OSD character to be shown is a tag characters commonly used, the step of then obtaining the corresponding lattice information of OSD character to be shown from the internal memory of said DSP comprises:
Encoded radio according to tag characters commonly used obtains the corresponding lattice information of OSD character to be shown in the tag characters structure commonly used of DSP internal memory.
4. method according to claim 2 is characterized in that, if said OSD character to be shown is the character in the ASCII character library, the step of then obtaining the corresponding lattice information of OSD character to be shown from the internal memory of said DSP comprises:
The base address of preserving said 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 said ASCII of the belonging to character library, obtains the corresponding lattice information of OSD character to be shown according to the address of character in the DSP internal memory in the ASCII character library.
5. method according to claim 1 is characterized in that, if said OSD character to be shown is the character in the wide byte character character library, then from the internal memory of said main frame, downloads the corresponding lattice information of said character and comprises to the step in the internal memory of DSP:
Encoded radio according to character in the said wide byte character character library calculates the position of said character in host memory, obtains the corresponding lattice information of said character;
The pairing lattice information of wide byte character is copied in the wide byte character buffer structure body;
Said wide byte character buffer structure body is downloaded in the internal memory of DSP;
Encoded radio according to wide byte character obtains the corresponding lattice information of OSD character to be shown from said wide byte character buffer structure body.
6. method according to claim 1 is characterized in that, said 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, said 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 said OSD character to be shown according to said encoded radio;
The first lattice information acquiring unit, being used at said OSD character to be shown is tag characters commonly used and/or when belonging to the ascii character of ASCII character library, obtains the corresponding lattice information of OSD character to be shown from the internal memory of said DSP;
The second lattice information acquiring unit, the character that to be used at said OSD character to be shown be wide byte character character library is then downloaded the corresponding lattice information of said character in the internal memory of DSP from the internal memory of said main frame;
The loaded and displayed unit is used for the lattice information that said OSD character to be shown is corresponding and is loaded on the video image and shows.
9. device according to claim 8 is characterized in that, the said first lattice information acquiring unit comprises:
Tag characters lattice information acquiring unit commonly used, being used at said OSD character to be shown is when using tag characters always, in the tag characters structure commonly used of DSP internal memory, obtains the lattice information of OSD character correspondence to be shown according to the encoded radio of tag characters commonly used;
ASCII character library character pattern information acquisition unit; Be used for when said OSD character to be shown is the character of ASCII character library; The base address of preserving said 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 said ASCII of the belonging to character library, obtains the corresponding lattice information of OSD character to be shown according to the address of character in the DSP internal memory in the ASCII character library.
10. device according to claim 8 is characterized in that, the said second lattice information acquiring unit comprises:
Loading unit is used for when said OSD character to be shown is wide byte character, calculates the position of said character in host memory according to the encoded radio of character in the said wide byte character character library, obtains the corresponding lattice information of said wide byte character; 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 said 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 the corresponding lattice information of OSD character to be shown according to the encoded radio of wide byte character from said wide byte character buffer structure body.
11. device according to claim 8 is characterized in that,
Said 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;
Said 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.
CN 201010179295 2010-05-19 2010-05-19 Method and device for realizing on-screen display (OSD) of characters Active CN101873451B (en)

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 CN101873451A (en) 2010-10-27
CN101873451B true 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)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325273B (en) * 2011-09-14 2015-01-07 深圳Tcl新技术有限公司 Video terminal and display method of screen menu type page data of same
CN102542964B (en) * 2011-12-27 2016-06-22 深圳创维数字技术有限公司 A kind of method and apparatus showing character on vacuum fluorescent display
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
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
CN110852037B (en) * 2019-09-18 2023-10-10 宁波江丰生物信息技术有限公司 Picture word stock calling method
CN112114798B (en) * 2020-09-25 2024-02-06 深圳市易优电气有限公司 LCD display method, device, terminal and storage medium
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
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

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN101873451A (en) 2010-10-27

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
CN108765534A (en) A kind of image rendering method, device, equipment and storage medium
TW319852B (en)
WO2020131756A1 (en) Method and apparatus for browser application to load first screen of web page
CN108647010B (en) Project engineering initialization method, terminal equipment and storage medium
CN107943363B (en) Background image configuration method and device, interactive intelligent panel and storage medium
CN103034467A (en) Image display method, device and mobile terminal
KR20150065642A (en) Texture address mode discarding filter taps
CN111339458A (en) Page presenting method and device
US8687004B2 (en) Font file with graphic images
US11093130B1 (en) Drawing tool identification and retrieval
CN111833417A (en) Method and system for realizing black and white mode of android application program
CN111542872B (en) Arbitrary block rendering and display frame reconstruction
CN107423291B (en) Data translation method and client device
US8232994B2 (en) Viewing multi-dimensional data in two dimensions
CN109983533B (en) Extraction reduction for fixed color and pattern subframes
CN113791853A (en) Method, system, device and medium for self-defining editing dial interface
KR100938992B1 (en) Structure of animation font file and method for displaying text data of handheld terminal
JP2012113710A (en) Apparatus and method for changing electronic book contents
CN113625923A (en) Mouse processing method and device based on remote cloud desktop, storage medium and equipment
CN103034975A (en) Image processing method and device
CN115145559A (en) Configuration management method, device and equipment based on Flutter

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