CN102567017B - The Simple Realizable Method that a kind of OSD interface exports and device - Google Patents

The Simple Realizable Method that a kind of OSD interface exports and device Download PDF

Info

Publication number
CN102567017B
CN102567017B CN201110420048.4A CN201110420048A CN102567017B CN 102567017 B CN102567017 B CN 102567017B CN 201110420048 A CN201110420048 A CN 201110420048A CN 102567017 B CN102567017 B CN 102567017B
Authority
CN
China
Prior art keywords
display memory
osd
osd interface
register
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201110420048.4A
Other languages
Chinese (zh)
Other versions
CN102567017A (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.)
Shenzhen Jiuzhou Electric Appliance Co Ltd
Original Assignee
Shenzhen Jiuzhou Electric Appliance 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 Shenzhen Jiuzhou Electric Appliance Co Ltd filed Critical Shenzhen Jiuzhou Electric Appliance Co Ltd
Priority to CN201110420048.4A priority Critical patent/CN102567017B/en
Publication of CN102567017A publication Critical patent/CN102567017A/en
Application granted granted Critical
Publication of CN102567017B publication Critical patent/CN102567017B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Digital Computer Display Output (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The present invention is applicable to computer application field, provide Simple Realizable Method and the device of the output of a kind of OSD interface, described method comprises: be written to according to the definition of master chip related register and the determined value of actual demand of example procedure debugging in corresponding register, and obtain the physical address of display memory simultaneously; According to the physical address of described display memory by OSD interface data stored in described display memory; According to the system configuration mode of described master chip the OSD interface data comprised in described display memory outputted to device screen end in real time after digital-to-analog conversion and show.This method is without the need to compiling multiple module package, the related register numerical value that writes direct completes the initialization and control of OSD, directly be stored into by interface data to be output in display memory and realize the operation such as picture and display word, the executable file volume adopting the inventive method compiling to generate is little, saving storage space.

Description

The Simple Realizable Method that a kind of OSD interface exports and device
Technical field
The invention belongs to computer application field, particularly relate to Simple Realizable Method and the device of the output of a kind of OSD interface.
Background technology
OSD (on-screen display, screen display) a kind of one operation superposing output pattern and word on television program image is provided, a set of graph function interface is provided by software programming, to carry out GUI exploitation according to different application further, the application program of these routines is all that the SDK demo provided based on hardware chip (such as ST chip) realizes at present, adopt the OSD design of three-decker, comprise application layer, drive interface layer and hardware bottom layer, driving in interface layer the initialization and control encapsulating the initialization function of a lot of module and the function interface of modules class wrapper and export to complete OSD, for the ease of understanding, Fig. 1 shows and the existing SDK demo provided based on ST chip realizes OSD and export and the realization flow figure of UI display interface, here driving interface layer encapsulates the function interface of modules class, comprise layer module, picture module, video module, multi-layer data mixing module, output control module etc., realize the numerical value setting of ST chip related register when performing master routine by the function interface calling modules class wrapper and interface display data to be output are stored in display memory, final realization exports OSD interface and UI display interface on the screen of device end.
Known by above-mentioned analysis, the view operations of the realization that whole OSD exports and UI etc. are all based on the module of these encapsulation, like this implement more convenient, developer only needs to be concerned about that the code of application layer is write, and without the need to being concerned about how bottom realizes, and program is also convenient to transplant, the program of such generation due to the level of encapsulation many, logic control is complicated, can realize powerful Presentation Function, and these programs take up room usually all larger simultaneously.But for such as this kind of simple interface display of loader, for example only need display progress bar or one section of character string, these simple displays do not need to call all multimodes, if or realize according to multimode packaged type, these modules are compiled, the executable file larger (such as usually can arrive 1.2M) generated can be caused like this, when the Installed System Memory of equipment is also hard up, there is no need waste storage space.
Conveniently program design in prior art, have employed the OSD design of unified three-decker, there is provided when chip being sold client because driving interface layer is wherein chip manufacturer, described driving interface layer contains operation each function interface used by bottom chip, so when arranging register write value without the need to being concerned about the definition about register in datasheet, directly realize register value write by the function interface calling modules class wrapper, such developer only needs to be concerned about that the code of application layer is write, without the need to being concerned about how bottom realizes, directly all interface functions are encapsulated.But for realizing the total interface function of some simple functions or encapsulation operation bottom chip, the executable file volume generated so is like this comparatively large, waste storage space.
And the present embodiment realize OSD interface export this simple functions time, skip and drive interface layer without the need to package interface function, directly by the definition of each data bit in the description of each related register in master chip datasheet and each register, the OSD output function that will complete according to demo example procedure again determines the numerical value that will write register, complete the initialization and control of SOD, the physical address of display memory can be obtained according to the description of demo program simultaneously, the output display data of reality (are such as exported a text box, export a progress bar etc.) stored in described display memory.
In embodiments of the present invention, described master chip related register mainly comprises: layer Parasites Fauna (GDP1, GDP3), clock configuration register group (CFG, CKG_B), codec register group (DENC), exports groups of configuration registers (VTGA, VTGB), high definition output register group (HDMI, HDF), layer mixing Parasites Fauna (VMIX1, VMIX2), and other system configuration register etc.
In step s 2, according to the physical address of described display memory by OSD interface data stored in described display memory.
In embodiments of the present invention, pattern to be output and word are all placed in display memory usually, the function class of described display memory is similar to the video memory of video card in PC, application programs all in prior art all encapsulates all interface layer functions, here be also drive a picture module interface in interface layer to realize by calling by data to be output stored in display memory, and in the technical scheme of embodiments of the invention, never call the picture module interface driven in interface layer, but directly by picture module interface function code write master routine by data to be output stored in display memory, identical Presentation Function can be realized equally.
In step s3, according to the system configuration mode of described master chip, the OSD interface data comprised is outputted to device screen end in real time after digital-to-analog conversion and show in described display memory.
In embodiments of the present invention, completed the control of the initialization of chip and the way of output of data by write register value, OSD interface data is outputted to device screen end by the data way of output that system configures according to register.The data stored in described display memory are all digital signals, and screen display support is simulating signal, so OSD interface data to be output needs to show on the screen of device end after digital-to-analogue turns.In the present embodiment, described OSD interface data to be output without the need to through display chip process, directly by obtaining after master chip process.
Summary of the invention
The object of the embodiment of the present invention is the Simple Realizable Method providing a kind of OSD interface to export, and is intended to solve realize now the technical matters that the executable file that some methods and causing not being simply the application program of main body still adopts multimode to encapsulate compiling generate is larger, waste storage space.
The embodiment of the present invention is achieved in that and comprises the steps: the Simple Realizable Method that a kind of OSD interface exports
Be written to according to the definition of master chip related register and the determined value of actual demand of example procedure debugging in corresponding register, and obtain the physical address of display memory simultaneously;
According to the physical address of described display memory by OSD interface data stored in described display memory; And
According to the system configuration mode of described master chip the OSD interface data comprised in described display memory outputted to device screen end in real time after digital-to-analog conversion and show.
Another object of the present invention is to provide the simple realization device that a kind of OSD interface exports, be intended to solve the more existing executable file not being simply the interface output devices of the application program of main body produces larger, waste the technical matters of storage space.
The embodiment of the present invention is achieved in that the simple realization device that a kind of OSD interface exports comprises:
Register writing unit, is written to according to the definition of master chip related register and the determined value of actual demand of example procedure debugging in corresponding register, and obtains the physical address of display memory simultaneously;
Data are stored in unit.According to the physical address of described display memory by OSD interface data stored in described display memory; And
Output display unit, outputs to device screen end by the OSD interface data comprised in described display memory in real time according to the system configuration mode of described master chip and shows after digital-to-analog conversion.
The invention has the beneficial effects as follows: the invention provides the Simple Realizable Method that a kind of OSD interface exports, the method is without the need to compiling multiple module package, the related register numerical value that writes direct completes the initialization and control of OSD, and be directly stored into by OSD interface data to be output in display memory and realize the operation such as picture and display word, the executable file volume adopting the inventive method compiling to generate is little, saving storage space.
Another beneficial effect of the present invention is: the invention provides the simple realization device that a kind of OSD interface exports, this device is without the need to compiling multiple module package, the related register numerical value that writes direct completes the initialization and control of OSD, and be directly stored into by OSD interface data to be output in display memory and realize the operation such as picture and display word, the executable file volume adopting apparatus of the present invention compiling to generate is little, saving storage space.
Accompanying drawing explanation
Fig. 1 is the realization flow figure of existing techniques in realizing OSD output and UI display interface;
Fig. 2 is the simple realization process flow diagram of the OSD interface output that first embodiment of the invention provides;
Fig. 3 is the simple realization process flow diagram of the OSD interface output that second embodiment of the invention provides;
Fig. 4 is the structural drawing of the simple realization device of the OSD interface output that third embodiment of the invention provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The embodiment of the present invention realizes based on hardware chip, described hardware chip is connected to device end by output interface, here the master routine being ready to start hardware chip is first needed, when realizing some simple application programs, when for example realizing the output of OSD interface, register value of writing direct completes the initialization and control of OSD, without the need to calling the package interface of modules in code, also without the need to compiling all multimodes, simple figure and word output can be realized like this, and the executable file small volume that compiling generates, save storage space.
embodiment one:
The simple realization process flow diagram that the OSD interface that Fig. 2 shows first embodiment of the invention to be provided exports, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, details are as follows.
In step so), system obtains OSD interface data to be output.
In embodiments of the present invention, this step is previous step of the present invention, described OSD interface data comprises the interface datas such as region, label, icon, word, progress bar, animation, numeral, selectable icons, navigation information, these basic output elements constitute complete OSD interface and export, it is that programmer realizes according to output demand picture code statement that these OSD interfaces export, and the output interface data produced after compiling are normally stored in the storage block of system internal fixtion.
In step sl, be written to according to the definition of master chip related register and the determined value of actual demand of example procedure debugging in corresponding register, and obtain the physical address of display memory simultaneously.
In embodiments of the present invention, described master chip is chosen according to different application scenarios and actual demand, preferred ST family chip, described master chip is one piece of CPU, control the orderly work of whole system, described master chip can be integrated with GPU (graphic process unit) for the treatment of display translation data, or the output of interface data is directly realized by master chip, as preferred embodiment, in order to cost-saving, master chip in technical solution of the present invention is without the need to integrated GPU display chip, described master chip comprises a lot of register completing the initialization and control of OSD for configuring chip, described example procedure (demo program) contains the code that some realize various equipment application function.
embodiment two:
The simple realization process flow diagram that the OSD interface that Fig. 3 shows second embodiment of the invention to be provided exports, distinguish with the process flow diagram shown in Fig. 2 and be: present embodiments provide in step S2 the output two kinds of implementations realizing OSD interface, but when specific implementation, as preferred embodiment, can vary in size according to OSD interface data, a kind of implementation is chosen neatly in step S21 and step S22, specific as follows:
In the step s 21, according to the physical address of described display memory by described OSD interface data in real time stored in in described display and the data of the display memory that upgrades in time.
In embodiments of the present invention, this step is preferred for the smaller situation of the data volume at OSD interface, what such as export is only the progress bar of a percentages show or a string word to be output, this time just can directly by data to be output in real time stored in display memory physical address corresponding to storage space in, data simultaneously in display memory are also presented on screen in real time, along with the data in display memory are constantly updated, on screen, OSD interface data graph of a correspondence and word will progressively show, such as, if OSD interface data is progress bar, the progress bar of the continuous movement of a progress then will be demonstrated at screen end, if osd data is a string character, then screen end one by one character show in succession.
In step S22, system assignment one piece is not less than the memory headroom of device screen pixel size as back buffer district, by described OSD interface data intactly stored in behind described back buffer district, the storage space corresponding to copy-once to described display memory physical address.
In embodiments of the present invention, this step is preferred for the larger situation of the data volume at OSD interface, what such as export is a panel region, an animation, at this moment just can be all complete stored in behind back buffer district by these a large amount of data to be output, again by the data copy-once in buffer zone in the corresponding storage space of display memory, finally output to device screen end by disposable for these data, just disposablely can demonstrate complete picture at screen end like this.
Can be stored in back buffer district to make all data shown by screen, described back buffer district size is not less than the space shared by whole screen pixels, generally for saving memory headroom, as preferred embodiment, back buffer district size equals the space shared by whole screen pixels.When specific implementation, can by calling the memory headroom of malloc function to system application distribution specified bytes size.
embodiment three:
The structural drawing of the simple realization device that the OSD interface that Fig. 4 shows third embodiment of the invention to be provided exports, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, details are as follows.
The simple realization device that a kind of OSD interface exports comprises:
Data capture unit, obtains OSD interface data to be output for system.In embodiments of the present invention, described data capture unit is preferred structure of the present invention, and the data that data capture unit obtains comprise draws together region, label, icon, word, progress bar, animation, numeral, selectable icons, navigation information etc.
Register writing unit, is written to according to the definition of master chip related register and the determined value of actual demand of example procedure debugging in corresponding register, and obtains the physical address of display memory simultaneously.
Data are stored in unit.According to the physical address of described display memory by OSD interface data stored in described display memory.
Output display unit, according to the system configuration mode set by described master chip related register, outputs to device screen end by the OSD interface data comprised in described display memory in real time and shows after digital-to-analog conversion.
Be further used as preferred embodiment, described data comprise stored in unit:
Directly stored in module, for the physical address according to described display memory by described OSD interface data in real time stored in in described display and the data of the display memory that upgrades in time;
Or,
Buffering is stored in module, the memory headroom of device screen pixel size is not less than as back buffer district for system assignment one piece, by described OSD interface data intactly stored in behind described back buffer district, the storage space corresponding to copy-once to described display memory physical address.
May be used for multiple OSD program in the embodiment of the present invention and export occasion, such as in-car TV, top box of digital machine, intelligent television, vehicle mounted guidance etc. can be applied to.The hardware chip that the embodiment of the present invention adopts also is not limit, and defines the debugging demand relative set according to example procedure according to the related register of different chip.The embodiment of the present invention realizes simple, and the executable file volume adopting the inventive method to generate is little, saving storage space.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (5)

1. a Simple Realizable Method for OSD interface output, it is characterized in that, described method comprises the steps:
System configuration is carried out by being written in corresponding register according to the definition of master chip related register and the determined value of actual demand of example procedure debugging, and obtaining the physical address of display memory simultaneously, described master chip related register comprises the register of the initialization and control for completing OSD;
According to the physical address of described display memory by OSD interface data stored in described display memory; And
According to the system configuration mode of described master chip, the OSD interface data comprised is outputted to device screen end in real time after digital-to-analog conversion and show in described display memory;
The implementation of OSD interface data stored in described display memory comprises by the described physical address according to described display memory:
According to the physical address of described display memory by described OSD interface data in real time stored in in described display and the data of the display memory that upgrades in time;
Or,
System assignment one piece is not less than the memory headroom of device screen pixel size as back buffer district, by described OSD interface data intactly stored in behind described back buffer district, and the storage space corresponding to copy-once to described display memory physical address.
2. the Simple Realizable Method of a kind of OSD interface output as claimed in claim 1, it is characterized in that, also comprising the steps: before being written to corresponding register step according to the definition of master chip related register and the determined value of actual demand of example procedure debugging
System obtains OSD interface data to be output.
3. the Simple Realizable Method of a kind of OSD interface output as claimed in claim 1, it is characterized in that, described master chip related register comprises: layer Parasites Fauna, clock configuration register group, codec register group, output groups of configuration registers, high definition output register group and layer mixing Parasites Fauna.
4. a simple realization device for OSD interface output, it is characterized in that, described implement device comprises:
Register writing unit, for being written in corresponding register according to the definition of master chip related register and the determined value of actual demand of example procedure debugging, and obtaining the physical address of display memory simultaneously, described master chip related register comprises the register of the initialization and control for completing OSD;
Data stored in unit, for the physical address according to described display memory by OSD interface data stored in described display memory; And
Output display unit, for outputting to device screen end by the OSD interface data comprised in described display memory in real time according to the system configuration mode of described master chip and showing after digital-to-analog conversion;
Described data stored in unit comprise directly stored in module or buffering stored in module;
Described directly stored in module, for the physical address according to described display memory by described OSD interface data in real time stored in in described display and the data of the display memory that upgrades in time; Described buffering is stored in module, the memory headroom of device screen pixel size is not less than as back buffer district for system assignment one piece, by described OSD interface data intactly stored in behind described back buffer district, the storage space corresponding to copy-once to described display memory physical address.
5. the simple realization device of a kind of OSD interface output as claimed in claim 4, it is characterized in that, described implement device also comprises:
Data capture unit, obtains OSD interface data to be output for system.
CN201110420048.4A 2011-12-15 2011-12-15 The Simple Realizable Method that a kind of OSD interface exports and device Expired - Fee Related CN102567017B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110420048.4A CN102567017B (en) 2011-12-15 2011-12-15 The Simple Realizable Method that a kind of OSD interface exports and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110420048.4A CN102567017B (en) 2011-12-15 2011-12-15 The Simple Realizable Method that a kind of OSD interface exports and device

Publications (2)

Publication Number Publication Date
CN102567017A CN102567017A (en) 2012-07-11
CN102567017B true CN102567017B (en) 2015-09-30

Family

ID=46412528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110420048.4A Expired - Fee Related CN102567017B (en) 2011-12-15 2011-12-15 The Simple Realizable Method that a kind of OSD interface exports and device

Country Status (1)

Country Link
CN (1) CN102567017B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112532992A (en) * 2020-11-13 2021-03-19 武汉高德红外股份有限公司 SDK development kit system and equipment
WO2022126431A1 (en) * 2020-12-16 2022-06-23 深圳市艾比森光电股份有限公司 Display control method for led display screen, and related apparatus

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101419781A (en) * 2007-10-25 2009-04-29 中兴通讯股份有限公司 Graphics display method and device for video control system on embedded terminal
CN101764971A (en) * 2008-12-23 2010-06-30 无锡华润矽科微电子有限公司 On-screen display device and on-screen display method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295469B (en) * 2007-04-25 2010-08-25 群康科技(深圳)有限公司 LCD device, personal computer and LCD device anti-theft method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101419781A (en) * 2007-10-25 2009-04-29 中兴通讯股份有限公司 Graphics display method and device for video control system on embedded terminal
CN101764971A (en) * 2008-12-23 2010-06-30 无锡华润矽科微电子有限公司 On-screen display device and on-screen display method thereof

Also Published As

Publication number Publication date
CN102567017A (en) 2012-07-11

Similar Documents

Publication Publication Date Title
CN103617027B (en) Based on image rendering engine construction method and the system of Android system
EP3138006B1 (en) System and method for unified application programming interface and model
US9412193B2 (en) Run-time optimized shader program
US6715132B1 (en) Datasheet browsing and creation with data-driven datasheet tabs within a microcontroller design tool
US8843892B2 (en) Visual representations of code in application development environments
CN104919494A (en) Rendering graphics data using visibility information
CN106575228A (en) Render target command reordering in graphics processing
US11113869B2 (en) Techniques for generating visualizations of ray tracing images
KR101416104B1 (en) A dynamic loading apparatus and method of java script code performing native functions of hybrid web applications
CN113342703B (en) Rendering effect real-time debugging method and device, development equipment and storage medium
US11900088B2 (en) Method for generating a binding between a C/C++ library and an interpreted language, and carrying out the method to transform a three- dimensional (3D) model
CN103150198B (en) A kind of display methods of configuration software
CN104866318A (en) Method and device for displaying label pages in multiple windows
CN103870264A (en) Programmable liquid crystal display module
CN102567017B (en) The Simple Realizable Method that a kind of OSD interface exports and device
KR20160026484A (en) Semiconductor device
US9454630B1 (en) Graphical representation of integrated circuits
CN107391158B (en) Method and equipment for realizing table drawing based on iDataTable packaging
CN103077036A (en) Method and device for processing interface
KR20140021088A (en) A highly compatible plug-in system for developing hybrid web applications
CN110930499B (en) 3D data processing method and device
CN103631725A (en) MCU-LCD driving method and system based on ARM-Linux platform
CN111459369B (en) Interface element screening method, intelligent terminal and storage medium
CN103092578A (en) Displaying method under embedded Linux platform
CN115167949B (en) Method, device and medium for adapting high-version OpenGL function to low-version application program

Legal Events

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

Granted publication date: 20150930

Termination date: 20181215