OSD display method, device, system, electronic device and storage medium

By introducing transit cache in OSD display technology, pre-loading OSD resources and establishing data channels, the problem of increased power consumption and cost when improving response speed is solved, and real-time OSD display with low power consumption and low cost is achieved.

CN114816299BActive Publication Date: 2025-04-11JI RUI ZHI YUAN (XIAMEN) TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210443755.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-26
Publication Date
2025-04-11
Estimated Expiration
2042-04-26

AI Technical Summary

Technical Problem

In OSD display technology, in order to improve response speed, it is necessary to occupy larger high-speed memory or OSD display cache, resulting in increased power consumption and hardware costs, and it is difficult to balance the demand and production costs of real-time OSD display.

Method used

By using the transit cache, preload the current requirements menu and all OSD resources required for the context menu, establish a data channel between the transit cache and the OSD display cache, and reduce the OSD display cache space required for display.

Benefits of technology

Real-time OSD display is realized at low power consumption and low cost, reducing the space requirement of high-speed OSD display cache, and balancing the demand and production cost of real-time OSD display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114816299B_ABST
    Figure CN114816299B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of OSD display technology, and in particular to an OSD display method, device, system, electronic device and storage medium, wherein the method comprises: obtaining OSD resources and storing them in a memory; generating an OSD resource index summary table and storing them in a memory; loading the OSD resource index summary table into a transfer cache; determining the ID of the OSD resources required for the current demand menu and all associated menus based on the OSD display requirements; based on the ID of the OSD resources required for the current demand menu and all associated menus and the OSD resource index summary table, loading the required OSD resources into the transfer cache without duplication; responding to an OSD display instruction, loading the OSD resources required for the current demand menu into the OSD display cache, and realizing display through a display. The present invention can use less high-speed OSD display cache, and realize real-time OSD display with low power consumption and low cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of OSD display technology, and in particular to an OSD display method, device, system, electronic device and storage medium. Background Art

[0002] OSD (on-screen display) display technology responds to user operation instructions to display images or videos. To improve user experience, the response time should be as short as possible. However, in actual applications, in order to improve the response speed, when there are many display resource requirements, a larger high-speed memory or OSD display cache is required, which will increase power consumption and hardware costs.

[0003] Therefore, in order to balance the demand for real-time OSD display and production cost, a low-power, low-cost OSD display method needs to be provided. Summary of the invention

[0004] In response to at least some of the above-mentioned shortcomings, embodiments of the present invention provide an OSD display method, device, system, electronic device and storage medium, which can balance the demand for real-time OSD display and production cost, use less high-speed OSD display cache, and achieve real-time OSD display with low power consumption and low cost.

[0005] In a first aspect, an embodiment of the present invention provides an OSD display method, comprising:

[0006] Get OSD resources and store them in memory;

[0007] Generate an OSD resource index summary table according to all OSD resources in the memory, and store it in the memory;

[0008] The OSD resource index summary table is loaded into a transfer cache; the access speed of the transfer cache is greater than the access speed of the memory and less than the access speed of the OSD display cache;

[0009] Based on the OSD display requirements, determine the ID of the OSD resource required for the current demand menu and all associated menus; the associated menu is the menu that the current demand menu jumps to through a user operation command;

[0010] Based on the ID of the OSD resource required for the current demand menu and all associated menus and the OSD resource index master table, the OSD resource required for the current demand menu and all associated menus is loaded into the transfer cache without duplication;

[0011] In response to the OSD display instruction, the OSD resources required for the current demand menu are loaded into the OSD display buffer, and displayed through the display.

[0012] Optionally, the step of loading the OSD resources required for the current demand menu and all associated menus into the transfer cache without duplication based on the ID of the OSD resources required for the current demand menu and all associated menus and the OSD resource index master table includes:

[0013] Determine whether the current transfer buffer has OSD resources loaded, if yes, take all associated menus as target menus, otherwise take the current demand menu and all associated menus as target menus;

[0014] Based on the ID of the OSD resource required by each target menu, a resource index table corresponding to each target menu is established respectively;

[0015] Determine whether there are OSD resources required for the target menu that are not loaded in the transfer cache, and if so, load the corresponding unloaded OSD resources from the memory to the transfer cache according to the OSD resource index table;

[0016] After all OSD resources required by the target menu are loaded into the transfer cache, the corresponding resource index table is updated, and the location pointers of the OSD resources required by each target menu in the transfer cache and the address information corresponding to the OSD display cache are written into the resource index table respectively.

[0017] Optionally, the step of loading the OSD resources required for the current demand menu into the OSD display buffer includes:

[0018] Based on the established resource index table, with the location pointer as the source address pointer and the address information as the destination address, the OSD resource corresponding to the current demand menu is loaded from the transfer cache to the OSD display cache.

[0019] Optionally, the OSD display method further includes:

[0020] Regularly check whether there are OSD resources in the current transfer cache that do not belong to the OSD resources required for the current demand menu and all associated menus, and delete them if so.

[0021] In a second aspect, an embodiment of the present invention further provides an OSD display device, comprising:

[0022] Resource acquisition module, used to acquire OSD resources and store them in memory;

[0023] A total table generation module, used to generate an OSD resource index total table according to all OSD resources in the memory, and store the total table in the memory;

[0024] A first loading module, used for loading the OSD resource index summary table into a transfer cache;

[0025] The menu determination module is used to determine the ID of the OSD resource required for the current demand menu and all associated menus based on the OSD display requirements; the associated menu is the menu that the current demand menu jumps to through a user operation instruction;

[0026] A second loading module is used to load the OSD resources required for the current demand menu and all associated menus into the transfer cache without duplication based on the ID of the OSD resources required for the current demand menu and all associated menus and the OSD resource index master table;

[0027] The third loading module is used to respond to the OSD display instruction, load the OSD resources required for the current demand menu into the OSD display buffer, and display them through the display.

[0028] Optionally, the second loading module is used to perform the following operations:

[0029] Determine whether the current transfer buffer has OSD resources loaded, if yes, take all associated menus as target menus, otherwise take the current demand menu and all associated menus as target menus;

[0030] Based on the ID of the OSD resource required by each target menu, a resource index table corresponding to each target menu is established respectively;

[0031] Determine whether there are OSD resources required for the target menu that are not loaded in the transfer cache, and if so, load the corresponding unloaded OSD resources from the memory to the transfer cache according to the OSD resource index table;

[0032] After all OSD resources required by the target menu are loaded into the transfer cache, the corresponding resource index table is updated, and the location pointers of the OSD resources required by each target menu in the transfer cache and the address information corresponding to the OSD display cache are written into the resource index table respectively.

[0033] Optionally, the third loading module is used to perform the following operations:

[0034] Based on the established resource index table, with the location pointer as the source address pointer and the address information as the destination address, the OSD resource corresponding to the current demand menu is loaded from the transfer cache to the OSD display cache.

[0035] In a third aspect, an embodiment of the present invention further provides an OSD display system, including:

[0036] A memory, a transfer buffer, an OSD display buffer, a display, and an OSD display device as described in any one of the above items;

[0037] The access speed of the transfer cache is greater than the access speed of the memory and less than the access speed of the OSD display cache; the display is used to display the OSD resources cached in the OSD display cache.

[0038] In a fourth aspect, an embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in any embodiment of this specification is implemented.

[0039] In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed in a computer, the computer is caused to execute the method described in any embodiment of this specification.

[0040] The embodiments of the present invention provide an OSD display method, device, system, electronic device and storage medium. The present invention pre-loads the current demand menu and all related menus through a transfer cache, establishes a transfer data channel between a low-speed memory and a high-speed OSD display cache, and when display is required, quickly loads the required OSD resources into the OSD display cache, thereby reducing the space of the OSD display cache required for display, reducing power consumption and cost, and solving the problem of OSD display real-time performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 is a flow chart of an OSD display method provided by an embodiment of the present invention;

[0043] Figure 2 is a hardware architecture diagram of an electronic device provided by an embodiment of the present invention;

[0044] Figure 3 is a structural diagram of an OSD display device provided by an embodiment of the present invention;

[0045] Figure 4 It is a schematic diagram of an OSD display system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0047] As mentioned above, in actual applications, in order to improve the response speed, when there are many OSD display resource requirements, it is necessary to occupy a larger high-speed memory or OSD display cache, and the high-speed memory or OSD display cache has the problems of high power consumption and high hardware cost, and the larger the space required, the higher the cost. If a low-speed memory is used, when the OSD display resources are relatively complex, it is difficult to quickly load the corresponding OSD resources from the low-speed memory to the high-speed OSD display cache. At present, in addition to using a larger OSD display cache space, there is another way to divide the OSD resources into blocks and mark the frequently used blocks, load the frequently used blocks into the high-speed OSD display cache in advance, and then alias them into the video image, and output the aliased video. However, when there are many low-frequency OSD resource blocks, due to the slow access speed of the memory, it is also difficult to complete the loading of the required OSD resource blocks from the low-speed memory to the high-speed OSD display cache in real time. In view of this, the present invention adopts a medium-speed transit cache (the access speed of the transit cache is greater than the access speed of the low-speed memory and less than the access speed of the high-speed OSD display cache) to pre-load the OSD resources that may be needed, thereby reducing the space of the high-speed OSD display cache required for display, that is, using less high-speed OSD display cache space and low-speed memory to achieve real-time OSD display in a low-cost, low-power manner.

[0048] The specific implementation of the above concept is described below.

[0049] Please refer to Figure 1 , an embodiment of the present invention provides an OSD display method, the method comprising:

[0050] Step 100, obtain OSD resources and store them in memory;

[0051] Step 102, generating an OSD resource index table according to all OSD resources in the memory, and storing the table in the memory;

[0052] Step 104, loading the OSD resource index summary table into a transfer cache; the access speed of the transfer cache is greater than the access speed of the memory and less than the access speed of the OSD display cache;

[0053] Step 106, based on the OSD display requirement, determine the ID of the OSD resource required for the current demand menu and all associated menus; the associated menu is the menu to which the current demand menu jumps through a user operation instruction;

[0054] Step 108, based on the ID of the OSD resource required for the current demand menu and all associated menus and the OSD resource index master table, the OSD resources required for the current demand menu and all associated menus are loaded into the transfer cache without duplication;

[0055] Step 110, in response to the OSD display instruction, the OSD resources required for the current demand menu are loaded into the OSD display buffer, and displayed on the display.

[0056] The OSD display method provided by the present invention can be applied to an OSD display system. The OSD resources required for the current demand menu and all associated menus are preloaded through a medium-speed transfer cache, and a quick response is made after receiving an OSD display instruction to perform real-time display. After step 110 is executed, the display is realized and a new OSD display requirement is waited for. If a new OSD display requirement is obtained, such as receiving a user operation instruction to display the next specified menu, the method returns to step 106 to determine the new current demand menu and all associated menus, and continue to preload the new current demand menu and all associated menus. The power consumption and cost of the transfer cache required by the present invention are relatively low, which can save the high-speed OSD display cache space required for real-time display and balance the demand for real-time OSD display with production costs.

[0057] Described below Figure 1 How the various steps are performed.

[0058] Regarding step 100 "obtain OSD resources and store them in memory", all OSD resources, such as pictures, texts, etc., are stored in a relatively low-speed memory. The access speed and storage space of the memory can be set according to actual needs and are not further limited here. The cost and power consumption of low-speed memory are relatively low.

[0059] For step 102 "generate an OSD resource index summary table based on all OSD resources in the memory", the OSD resource index summary table is used to index the locations of all OSD resources in the memory, and the OSD resource index summary table includes the ID of the OSD resource and the storage address of the OSD resource in the memory.

[0060] It should be noted that the above steps 100 and 102 may also be performed separately from subsequent steps, that is, after executing step 102, step 104 may be performed after a certain period of time.

[0061] Regarding step 104 "loading the OSD resource index summary table into the transfer cache", this step can be performed immediately when the OSD display system to which the OSD display method is applied is powered on, or can be performed in response to an input operation instruction. Loading the OSD resource index summary table into a transfer cache with a higher access speed can also be used to reduce the response time.

[0062] With respect to step 106 "determine the ID of the OSD resources required for the current demand menu and all associated menus based on the OSD display requirements", the OSD display requirements in this step may come from the MCU of the OSD display system. For a set OSD display system, each menu involved and the OSD resources required to be used are known. The OSD display requirements should include the menu and the ID of the OSD resources required to be used by the menu. There is an association between the associated menu and the current demand menu, for example, including the parent menu, child menu and brother menu of the current demand menu. In a common embodiment, there are at most four associated menus: the parent menu, the child menu and two brother menus (brother menu 1 and brother menu 2), which may correspond to the up, down, left and right control keys of the remote control for obtaining user operation instructions respectively. The set of all associated menus, that is, the set of menus that may be called after the current demand menu undergoes the next user operation, pre-loads the OSD resources required for all associated menus. When the user operation instruction indicates to switch to the next menu, the specified menu is within the range of the associated menu set, thereby realizing the rapid loading of the required OSD resources into the OSD display cache.

[0063] With respect to step 108 "based on the ID of the OSD resource required for the current demand menu and all associated menus and the OSD resource index master table, the OSD resource required for the current demand menu and all associated menus is loaded into the transfer cache without duplication", the step further includes:

[0064] Step 108-0, determining whether the current transfer buffer has OSD resources loaded therein, if yes, taking all associated menus as target menus, otherwise taking the current demand menu and all associated menus as target menus;

[0065] Step 108-2, based on the ID of the OSD resource required by each target menu, respectively establish a resource index table corresponding to each target menu;

[0066] Step 108-4, determining whether there are OSD resources required by the target menu that are not loaded in the transfer cache, and if so, loading the corresponding unloaded OSD resources from the memory into the transfer cache according to the OSD resource index table;

[0067] Step 108-6, after all OSD resources required for the target menu are loaded into the transfer cache, the corresponding resource index table is updated, and the location pointers of the OSD resources required for each target menu in the transfer cache and the address information corresponding to the OSD display cache are written into the corresponding positions in the resource index table respectively.

[0068] For the above step 108-0, if no OSD resources are currently loaded in the transit cache, it means that the display system has just been powered on, and the OSD resources required for the current demand menu have not been loaded into the transit cache. This requires that the current demand menu and all associated menus be used as target menus; if OSD resources are currently loaded in the transit cache, it means that the display system has been working for a period of time. After the current demand menu changes, the newly specified demand menu is within the range of the associated menu set corresponding to the previous demand menu. That is to say, the OSD resources required for the new current demand menu have been loaded into the transit cache. Therefore, all associated menus can be used as target menus, and the current demand menu is no longer considered, thereby saving processing time.

[0069] For step 108-2, a corresponding resource index table is created for each target menu, and the resource index table includes the ID of the OSD resource required by the corresponding menu. Since the resource index table corresponds to the target menu, the ID of the OSD resource required between the resource index tables can be repeated.

[0070] With respect to the above-mentioned step 108-4 "determine whether there are OSD resources required by the target menu that are not loaded in the transit cache", it can be implemented by establishing a cache display resource table. Based on the OSD resources loaded in the transit cache, establish a cache display resource table including the IDs of all OSD resources loaded into the transit cache. Based on the IDs of the OSD resources required by each target menu, search in the cache display resource table, traverse the OSD resources required by the target menu, and determine whether there are OSD resources required that are not loaded in the transit cache. The same OSD resources required by different menus only need to be loaded once, and there should be no duplicate OSD resource IDs in the cache display resource table. After loading new OSD resources into the transit cache, the cache display resource table should also be updated accordingly.

[0071] For the above step 108-6, after the OSD resources required for the target menu are loaded into the transit cache, corresponding to the ID of the OSD resources required for each target menu, the location pointer of the OSD resource in the transit cache and the address information corresponding to the OSD display cache are written into the resource index table, so that the OSD resources in the transit cache can be subsequently loaded into the OSD display cache according to the resource index table.

[0072] With respect to step 110 "loading the OSD resources required for the current demand menu into the OSD display buffer", it further includes:

[0073] Based on the established resource index table corresponding to the current demand menu, the OSD resource corresponding to the current demand menu is loaded from the transfer cache to the OSD display cache using the location pointer as the source address pointer and the address information as the destination address.

[0074] Furthermore, the OSD display method further includes:

[0075] Step 112, regularly checking whether there are OSD resources in the current transfer buffer that do not belong to the OSD resources required for the current demand menu and all associated menus, and deleting them if yes.

[0076] By periodically transferring OSD resources in the transfer cache that are not required for the current demand menu and all associated menus, the space of the transfer cache can be released.

[0077] like Figure 2 , Figure 3 As shown, an embodiment of the present invention provides an OSD display device. The device embodiment can be implemented by software, or by hardware or a combination of software and hardware. From the hardware level, Figure 2 As shown in FIG. 1 , a hardware architecture diagram of an electronic device in which an OSD display device provided by an embodiment of the present invention is located is shown in FIG. Figure 2 In addition to the processor, memory, network interface, and non-volatile memory shown, the electronic device in the embodiment may also include other hardware, such as a forwarding chip responsible for processing messages, etc. Taking software implementation as an example, Figure 3 As shown, as a device in a logical sense, the CPU of the electronic device in which it is located reads the corresponding computer program in the non-volatile memory into the internal memory and runs it. This embodiment provides an OSD display device, including:

[0078] Resource acquisition module 301, used to acquire OSD resources and store them in memory;

[0079] A total table generation module 302, used to generate an OSD resource index total table according to all OSD resources in the memory, and store it in the memory;

[0080] A first loading module 303, used to load the OSD resource index summary table into a transfer cache;

[0081] The menu determination module 304 is used to determine the ID of the OSD resource required for the current demand menu and all associated menus based on the OSD display requirements; the associated menu is the menu that the current demand menu jumps to through a user operation instruction;

[0082] The second loading module 305 is used to load the OSD resources required for the current demand menu and all associated menus into the transfer cache without duplication based on the ID of the OSD resources required for the current demand menu and all associated menus and the OSD resource index table;

[0083] The third loading module 306 is used to respond to the OSD display instruction, load the OSD resources required for the current demand menu into the OSD display buffer, and display them through the display.

[0084] In an embodiment of the present invention, the resource acquisition module 301 can be used to execute step 100 in the above method embodiment, the general table generation module 302 can be used to execute step 102 in the above method embodiment, the first loading module 303 can be used to execute step 104 in the above method embodiment, the menu determination module 304 can be used to execute step 106 in the above method embodiment, the second loading module 305 can be used to execute step 108 in the above method embodiment, and the third loading module 306 can be used to execute step 110 in the above method embodiment.

[0085] Furthermore, the second loading module 305 is used to perform the following operations:

[0086] Determine whether the current transfer buffer has OSD resources loaded, if yes, take all associated menus as target menus, otherwise take the current demand menu and all associated menus as target menus;

[0087] Based on the ID of the OSD resource required by each target menu, a resource index table corresponding to each target menu is established respectively;

[0088] Determine whether there are OSD resources required for the target menu that are not loaded in the transfer cache, and if so, load the corresponding unloaded OSD resources from the memory to the transfer cache according to the OSD resource index table;

[0089] After all OSD resources required by the target menu are loaded into the transfer cache, the corresponding resource index table is updated, and the location pointers of the OSD resources required by each target menu in the transfer cache and the address information corresponding to the OSD display cache are written into the resource index table respectively.

[0090] Furthermore, the third loading module 306 is used to perform the following operations:

[0091] Based on the established resource index table, with the location pointer as the source address pointer and the address information as the destination address, the OSD resource corresponding to the current demand menu is loaded from the transfer cache to the OSD display cache.

[0092] Furthermore, the OSD display device further includes:

[0093] The regular cleaning module is used to regularly check whether there are OSD resources in the current transfer cache that do not belong to the OSD resources required for the current demand menu and all associated menus, and delete them if so.

[0094] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on an OSD display device. In other embodiments of the present invention, an OSD display device may include more or fewer components than those shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0095] The information interaction, execution process and other contents between the modules in the above-mentioned device are based on the same concept as the embodiment of the method of the present invention. For the specific contents, please refer to the description in the embodiment of the method of the present invention, and no further description is given here.

[0096] like Figure 4 As shown, an embodiment of the present invention further provides an OSD display system, comprising: a memory, a transfer cache, an OSD display cache, a display, and an OSD display device as described in any one of the above; wherein an access speed of the transfer cache is greater than an access speed of the memory and less than an access speed of the OSD display cache; and the display is used to display OSD resources cached in the OSD display cache.

[0097] Furthermore, there are two DMA channels in the OSD display system: one is a DMA1 channel between the memory and the transfer buffer, and the other is a DMA2 channel between the transfer buffer and the OSD display buffer, which are used for data transmission.

[0098] Furthermore, the OSD display system may further include an MCU, and the OSD display device may be arranged in the MCU, that is, the steps of the above-mentioned method embodiment of the present invention are implemented by the MCU.

[0099] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, an OSD display method in any embodiment of the present invention is implemented.

[0100] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the processor executes an OSD display method in any embodiment of the present invention.

[0101] Specifically, a system or device equipped with a storage medium can be provided, on which software program code that implements the functions of any of the above-mentioned embodiments is stored, and a computer (or CPU or MPU) of the system or device can be enabled to read and execute the program code stored in the storage medium.

[0102] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.

[0103] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.

[0104] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.

[0105] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion module connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or expansion module is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.

[0106] It should be noted that, in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical factors in the process, method, article or device including the elements.

[0107] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various media that can store program codes.

[0108] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An OSD display method, characterized in that: include: Get OSD resources and store them in memory; Generate an OSD resource index summary table according to all OSD resources in the memory, and store it in the memory; The OSD resource index summary table is loaded into a transfer cache; the access speed of the transfer cache is greater than the access speed of the memory and less than the access speed of the OSD display cache; Based on the OSD display requirements, determine the ID of the OSD resource required for the current demand menu and all associated menus; the associated menu is the menu that the current demand menu jumps to through a user operation command; Based on the ID of the OSD resource required for the current demand menu and all associated menus and the OSD resource index master table, the OSD resource required for the current demand menu and all associated menus is loaded into the transfer cache without duplication; In response to the OSD display instruction, the OSD resources required for the current demand menu are loaded into the OSD display buffer, and displayed through the display.

2. The method according to claim 1, characterized in that The step of loading the OSD resources required for the current demand menu and all associated menus into the transfer cache without duplication based on the ID of the OSD resources required for the current demand menu and all associated menus and the OSD resource index master table includes: Determine whether the current transfer buffer has OSD resources loaded, if yes, take all associated menus as target menus, otherwise take the current demand menu and all associated menus as target menus; Based on the ID of the OSD resource required by each target menu, a resource index table corresponding to each target menu is established respectively; Determine whether there are OSD resources required for the target menu that are not loaded in the transfer cache, and if so, load the corresponding unloaded OSD resources from the memory to the transfer cache according to the OSD resource index table; After all OSD resources required by the target menu are loaded into the transfer cache, the corresponding resource index table is updated, and the location pointers of the OSD resources required by each target menu in the transfer cache and the address information corresponding to the OSD display cache are written into the resource index table respectively.

3. The method according to claim 2, characterized in that The step of loading the OSD resources required for the current demand menu into the OSD display buffer comprises: Based on the established resource index table, with the location pointer as the source address pointer and the address information as the destination address, the OSD resource corresponding to the current demand menu is loaded from the transfer cache to the OSD display cache.

4. The method according to claim 2, characterized in that: Also includes: Regularly check whether there are OSD resources in the current transfer cache that do not belong to the OSD resources required for the current demand menu and all associated menus, and delete them if so.

5. An OSD display device, characterized in that: include: Resource acquisition module, used to acquire OSD resources and store them in memory; A total table generation module, used to generate an OSD resource index total table according to all OSD resources in the memory, and store the total table in the memory; A first loading module, used for loading the OSD resource index summary table into a transfer cache; The menu determination module is used to determine the ID of the OSD resource required for the current demand menu and all associated menus based on the OSD display requirements; the associated menu is the menu that the current demand menu jumps to through a user operation instruction; A second loading module is used to load the OSD resources required for the current demand menu and all associated menus into the transfer cache without duplication based on the ID of the OSD resources required for the current demand menu and all associated menus and the OSD resource index master table; The third loading module is used to respond to the OSD display instruction, load the OSD resources required for the current demand menu into the OSD display buffer, and display them through the display.

6. The device according to claim 5, characterized in that The second loading module is used to perform the following operations: Determine whether the current transfer buffer has OSD resources loaded, if yes, take all associated menus as target menus, otherwise take the current demand menu and all associated menus as target menus; Based on the ID of the OSD resource required by each target menu, a resource index table corresponding to each target menu is established respectively; Determine whether there are OSD resources required for the target menu that are not loaded in the transfer cache, and if so, load the corresponding unloaded OSD resources from the memory to the transfer cache according to the OSD resource index table; After all OSD resources required by the target menu are loaded into the transfer cache, the corresponding resource index table is updated, and the location pointers of the OSD resources required by each target menu in the transfer cache and the address information corresponding to the OSD display cache are written into the resource index table respectively.

7. The device according to claim 6, characterized in that The third loading module is used to perform the following operations: Based on the established resource index table, with the location pointer as the source address pointer and the address information as the destination address, the OSD resource corresponding to the current demand menu is loaded from the transfer cache to the OSD display cache.

8. An OSD display system, characterized in that: include: A memory, a transfer cache, an OSD display cache, a display, and an OSD display device as claimed in any one of claims 5 to 7; The access speed of the transfer cache is greater than the access speed of the memory and less than the access speed of the OSD display cache; the display is used to display the OSD resources cached in the OSD display cache.

9. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 4 is implemented.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed in a computer, the computer is caused to execute the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • A graphic OSD controller integrated into video processing chip

    CN101150682A

  • On-screen display unit

    CN1525431A