CN115639933A - Picture display method, system and device, electronic equipment and storage medium - Google Patents

Picture display method, system and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115639933A
CN115639933A CN202211328596.9A CN202211328596A CN115639933A CN 115639933 A CN115639933 A CN 115639933A CN 202211328596 A CN202211328596 A CN 202211328596A CN 115639933 A CN115639933 A CN 115639933A
Authority
CN
China
Prior art keywords
storage node
osd image
information
instruction
address information
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.)
Pending
Application number
CN202211328596.9A
Other languages
Chinese (zh)
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.)
Beijing Eswin Computing Technology Co Ltd
Original Assignee
Beijing Eswin Computing 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 Beijing Eswin Computing Technology Co Ltd filed Critical Beijing Eswin Computing Technology Co Ltd
Priority to CN202211328596.9A priority Critical patent/CN115639933A/en
Publication of CN115639933A publication Critical patent/CN115639933A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the disclosure discloses a picture display method, a system and a device, an electronic device and a storage medium, wherein the method comprises the following steps: responding to a display instruction for displaying a first OSD image, and determining a first storage node matched with the display instruction from at least one storage node in a preset linked list; each storage node in the linked list is respectively used for storing the associated information of one OSD image block; determining at least one target OSD image block based on the associated information in the first storage node; generating the first OSD image based on each target OSD image block; and generating the picture based on the first OSD image, and displaying the picture.

Description

Picture display method, system and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to, but not limited to, the field of display technologies, and in particular, to a method, a system, and an apparatus for displaying a screen, an electronic device, and a storage medium.
Background
An On-screen Display (OSD) is a rectangular Menu of information about each item of adjustment items of a Display popped up On a screen after a Menu key is pressed, and each operation index of the Display, including color, mode, geometric shape and the like, can be adjusted through the Menu.
In the related art, the implementation manner of OSD is basically character-shaped (for example, characters, symbols, and the like), and there are problems of relatively simple display contents, insufficient abundance, and the like. Meanwhile, since the OSD resources are generally large, a large amount of storage space is occupied, and in the process of updating the OSD resources, the firmware source codes are generally required to be modified to adapt to the new OSD resources, so that the updating complexity and the research and development cost are increased.
Disclosure of Invention
The disclosed embodiments at least provide a picture display method, system and device, electronic equipment, storage medium and computer program product.
The technical scheme of the embodiment of the disclosure is realized as follows:
the embodiment of the present disclosure provides a picture display method, including;
responding to a display instruction for displaying a first OSD image, and determining a first storage node matched with the display instruction from at least one storage node in a preset linked list; each storage node in the linked list is respectively used for storing the associated information of one OSD image block;
determining at least one target OSD image block based on the associated information in the first storage node;
generating the first OSD image based on each target OSD image block;
and generating the picture based on the first OSD image, and displaying the picture.
The disclosed embodiment provides a picture display system, which comprises a processing device and a display device, wherein:
the processing equipment is used for receiving a display instruction for displaying the first OSD image; determining a first storage node matched with the display instruction from at least one storage node in a preset linked list based on the display instruction, wherein each storage node in the linked list is used for storing associated information of one OSD image block; determining at least one target OSD image block based on the associated information in the first storage node; generating the first OSD image based on each target OSD image block; generating the picture based on the first OSD image; sending the picture to the display device;
and the display equipment is used for receiving and displaying the picture sent by the processing equipment.
An embodiment of the present disclosure provides a screen display apparatus, including:
the device comprises a first determining module, a second determining module and a display module, wherein the first determining module is used for responding to a display instruction for displaying a first OSD image and determining a first storage node matched with the display instruction from at least one storage node in a preset linked list; each storage node in the linked list is respectively used for storing the associated information of one OSD image block;
a second determining module, configured to determine at least one target OSD image block based on the associated information in the first storage node;
a first generating module, configured to generate the first OSD image based on each target OSD image block;
and the display module is used for generating the picture based on the first OSD image and displaying the picture.
The embodiment of the disclosure provides a picture display device, which comprises the picture display system.
An embodiment of the present disclosure provides an electronic device, which includes a processor and a memory, where the memory stores a computer program that can be executed on the processor, and the processor implements the method when executing the computer program.
Embodiments of the present disclosure provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described method.
Embodiments of the present disclosure provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program, which when read and executed by a computer, implements the above method.
In the embodiment of the disclosure, a first storage node matched with a display instruction is determined from at least one storage node in a preset linked list by responding to the display instruction for displaying a first OSD image; each storage node in the linked list is respectively used for storing the associated information of one OSD image block; determining at least one target OSD image block based on the associated information in the first storage node; generating the first OSD image based on each target OSD image block; and generating the picture based on the first OSD image, and displaying the picture. Therefore, the OSD image blocks are stored in a linked list mode, each OSD image block is independent and is not influenced by other OSD image blocks, and therefore the accuracy of the OSD image blocks is high; secondly, only the associated information of each OSD image block is stored in each storage node in the linked list, so that the storage space of the OSD image can be reduced, the associated information of the corresponding image block is only updated when the OSD image is updated, the firmware source code is not required to be modified, the updating complexity can be reduced, the repeatability and the convenience of the OSD image block can be improved, and the research and development difficulty and the research and development cost can be reduced; and thirdly, generating a picture based on the OSD image, so that the richness of the displayed picture can be improved, and the use experience of a user can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1A is a schematic view of an implementation flow of a picture display method according to an embodiment of the disclosure;
fig. 1B is a schematic diagram of a composition structure of a double-linked list according to an embodiment of the present disclosure;
fig. 1C is a schematic composition diagram of a structure for associating information in a double-linked list according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart illustrating an implementation of a picture display method according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart illustrating an implementation of a picture display method according to an embodiment of the present disclosure;
fig. 4A is a schematic structural diagram of a frame display system according to an embodiment of the present disclosure;
fig. 4B is a schematic structural diagram of a frame display system according to an embodiment of the present disclosure;
fig. 4C is a schematic structural diagram of a first driving device according to an embodiment of the disclosure;
fig. 4D is a schematic structural diagram of a second electronic device according to an embodiment of the disclosure;
fig. 4E is a schematic diagram illustrating an implementation flow of a picture display method according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a frame display device according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of a hardware entity of an electronic device in an embodiment of the present disclosure.
Detailed Description
For the purpose of making the purpose, technical solutions and advantages of the present disclosure clearer, the present disclosure will be described in further detail with reference to the accompanying drawings, the described embodiments should not be construed as limiting the present disclosure, and all other embodiments obtained by a person of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present disclosure.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
In the following description, references to the terms "first \ second \ third" are only to distinguish between similar objects and do not denote a particular order or sequence of objects, and it is understood that "first \ second \ third" may be interchanged under appropriate circumstances such that embodiments of the present disclosure described herein may be practiced in other than the order shown or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. The terminology used herein is for the purpose of describing embodiments of the disclosure only and is not intended to be limiting of the disclosure.
The screen display method provided by the embodiment of the present disclosure may be executed by an electronic device, where the electronic device may be various types of terminals such as a notebook computer, a tablet computer, a desktop computer, a set-top box, a mobile device (e.g., a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, and a portable game device), and may also be implemented as a server. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
In the following, the technical solutions in the embodiments of the present disclosure will be clearly and completely described with reference to the drawings in the embodiments of the present disclosure.
Fig. 1A is a schematic view of an implementation flow of a screen display method according to an embodiment of the disclosure, as shown in fig. 1A, the method includes steps S11 to S14, where:
step S11, responding to a display instruction for displaying a first OSD image, and determining a first storage node matched with the display instruction from at least one storage node in a preset linked list; each storage node in the linked list is used for storing the associated information of one OSD image block.
Here, the display instruction is to display the first OSD image. Different display instructions may correspond to different first OSD images. The display instruction may be generated by a user operation, automatically generated by the electronic device, received by an instruction sent by another device, or the like. The user operation may include, but is not limited to, a gesture, voice, body feeling, and the like. In implementation, a person skilled in the art may autonomously determine a generation manner of the display instruction according to actual requirements, and the embodiment of the present disclosure is not limited.
For example, the user performs a preset operation gesture on the electronic device to generate the display instruction. For another example, after the electronic device is powered on, the display instruction for displaying the first OSD image is generated. For example, the electronic device receives an instruction transmitted from another device, and uses the instruction as the display instruction.
The first OSD image may be an image in any suitable scene. For example, the first OSD image may be a system menu. For another example, the first OSD image may be an image of an alert, such as an image of a person who is not wearing a seat belt. In some embodiments, the first OSD image may be a fixed image or a customized image. The first OSD image includes at least one OSD image block. In implementation, the first OSD image may be stored in at least one storage node.
The linked list may include, but is not limited to, a single linked list, a double linked list, a circular linked list, and the like. In implementation, a person skilled in the art may autonomously determine an implementation form of the linked list according to actual requirements, and the embodiment of the present disclosure is not limited.
In some embodiments, the correspondence between the display instruction and the first storage node may be established in advance, and the correspondence may be stored in the electronic device or in another electronic device. And under the condition that the corresponding relation is stored in the electronic equipment, the electronic equipment determines a first storage node matched with the display instruction in the corresponding relation according to the display instruction. And under the condition that the corresponding relation is stored in other electronic equipment, the electronic equipment sends the display instruction to the other electronic equipment, so that the other electronic equipment determines a first storage node matched with the display instruction in the corresponding relation according to the display instruction, and returns the first storage node to the electronic equipment. In implementation, a person skilled in the art may autonomously determine a corresponding relationship between the display instruction and the first storage node according to actual requirements, and the embodiment of the present disclosure is not limited.
In some embodiments, the correspondence between the display instruction and the first storage node may be determined based on a preset rule. The preset rules may include, but are not limited to, default configuration of the electronic device, user customization, user preferences, frequency of use, user operation information, and the like. In implementation, a person skilled in the art may set the preset rule autonomously according to actual requirements, and the embodiment of the present disclosure is not limited.
For example, the electronic device provides a configuration option by which the user can customize the correspondence.
For another example, the corresponding relationship may be determined based on attribute information of the user operation, wherein the attribute information may include, but is not limited to, a type, a distance, a speed, a position, a duration, a number of times, a strength, and the like of the operation. In implementation, a person skilled in the art may autonomously set a relationship between the attribute information of the operation and the corresponding relationship according to an actual requirement, and the embodiment of the present disclosure is not limited.
In some embodiments, the determination may be based on the type of operation, i.e., different types correspond to different correspondences. For example, when the operation gesture is a sliding operation, the corresponding relationship is a first corresponding relationship, and the first corresponding relationship includes that the first corresponding relationship corresponds to a first storage node when clicking, and the second corresponding relationship corresponds to a second storage node when double clicking; when the operation gesture is a pressing operation, the corresponding relationship is a second corresponding relationship, and the second corresponding relationship comprises that the last storage node is corresponding when the O is drawn, the first storage node is corresponding when the X is drawn, and the like.
In some embodiments, the correspondence may be determined in real time based on the strength of the operation, i.e., different strengths correspond to different correspondences. For example, in the case where the pressing force degree falls within the first range, the correspondence relationship is a first correspondence relationship; when the pressing force degree falls within the second range, the correspondence relationship is a second correspondence relationship.
In some embodiments, the association information may include, but is not limited to, chain domain information, color information, and the like. The color information may include, but is not limited to, a color mapping table, a color index value, and the like. In some embodiments, the color information may also include basic attribute information of the image block. The basic attribute information may include, but is not limited to, size, position, transparency, color depth, and the like. Different color depths represent different color modes. Color depths may include, but are not limited to, 256 colors, 128 colors, 16 colors, other color depths, and the like.
The chain domain information at least comprises address information for characterizing at least one OSD image block associated with the OSD image. For example, for a single linked list, the link domain information includes right link domain information, and the right link domain information includes address information of a next storage node associated with the first storage node; for the double-chain table and the circular linked list, the chain domain information further includes left chain domain information, and the left chain domain information includes address information of a previous storage node associated with the first storage node. In some embodiments, the right-chain domain information may further include, but is not limited to, address information of the first storage node, basic attribute information of the image block, and the like.
Fig. 1B is a schematic diagram of a composition structure of a double-linked list provided in the embodiment of the present disclosure, as shown in fig. 1B, the double-linked list includes four storage nodes, i.e., a storage node 111, a storage node 112, a storage node 113, and a storage node 114, where each storage node includes three parts, that is: a data part 101 (corresponding to the aforementioned color information and basic attribute information of the image block), left-chain domain information 102, and right-chain domain information 103. The storage node 111 is a header of the doubly linked list, which indicates that the storage node 111 does not have a predecessor node, that is: the address information in the left-chain domain information 102 in the storage node 111 is NULL, and the right-chain domain information 103 includes the address information 1080 of the storage node 112; the left-chain domain information 102 in the storage node 112 includes the address information 1050 of the storage node 111, and the right-chain domain information 103 includes the address information 1036 of the storage node 113; the left-chain domain information 102 in the storage node 113 includes address information 1080 of the storage node 112, and the right-chain domain information 103 includes address information 1170 of the storage node 114; the storage node 114 is a table tail of the double-linked list, which indicates that the storage node 114 has no successor node, that is: the address information in the right-chain domain information 103 in the storage node 114 is NULL, and the left-chain domain information 102 includes the address information 1036 of the storage node 113.
In some embodiments, the association information may be stored in a structured manner in the first storage node.
For example, for a doubly linked list, the structure of the association information may be:
{
v left chain domain information &
Address information of a previous first storage node;
v. Right chain Domain information
Address information of the first storage node;
address information of a next first storage node;
basic attribute information of the image block;
v color information +
A color mapping table;
color index value
}
Fig. 1C is a schematic diagram illustrating a structure for associating information in a double-linked list according to an embodiment of the present disclosure, where as shown in fig. 1C, the double-linked list includes two storage nodes, that is: the structure of the associated information in each storage node is the same, and the structure is: address information 1201 of the previous first storage node, address information 1202 of the first storage node, address information 1203 of the next first storage node, basic attribute information 1204 of the image block, a color mapping table 1205, and a color index value 1206.
And step S12, determining at least one target OSD image block based on the associated information in the first storage node.
Here, the at least one target OSD image block may include, but is not limited to, one generated based on color information in the first storage node, one generated based on chain domain information in the first storage node, and the like.
For example, in the case that the linked list is a single linked list, a target OSD image block is generated based on the color information in the first storage node; if the address information in the right-chain domain information of the first storage node is empty, the next first storage node does not exist, and the searching is stopped; if the address information in the right-chain domain information of the first storage node is not empty, it indicates that a next first storage node exists, at this time, a next first storage node is obtained based on the address information, and at least one target OSD image block is determined based on the associated information of the next first storage node, and the process is circulated until the address information in the obtained right-chain domain information of the storage node is empty.
For another example, in the case that the linked list is a double linked list, a target OSD image block is generated based on the color information in the first storage node; if the address information in the left-chain domain information of the first storage node is null, the last first storage node does not exist, and the searching is stopped; if the address information in the right-chain domain information of the first storage node is null, indicating that the next first storage node does not exist, stopping searching; if the address information in the left-chain domain information of the first storage node is not empty, indicating that a last first storage node exists, obtaining a last first storage node based on the address information, and determining at least one target OSD image block based on the association information of the last first storage node, and circulating the steps until the determined address information in the left-chain domain information of the last first storage node is empty; and if the address information in the right-chain domain information of the first storage node is not null, indicating that a next first storage node exists, obtaining a next first storage node based on the address information, determining at least one target OSD image block based on the associated information of the next first storage node, and circulating the steps until the address information in the obtained right-chain domain information of the storage node is null.
And S13, generating the first OSD image based on each target OSD image block.
Here, each target OSD image block is preprocessed to generate the first OSD image. Among other things, preprocessing may include, but is not limited to, stitching, denoising, scaling, and the like. For example, in a case that a first OSD image includes a target OSD image block, the target OSD image block is regarded as the first OSD image. For another example, when the first OSD image includes at least two target OSD image blocks, each target OSD image block is subjected to processing such as stitching and denoising to generate the first OSD image.
And S14, generating the picture based on the first OSD image, and displaying the picture.
Here, the screen may include the first OSD image, and may also include the first OSD image and other images. For example, the first OSD image is taken as the screen. For another example, the image to be displayed and the first OSD image are aliased to obtain the picture.
In the embodiment of the disclosure, a first storage node matched with a display instruction is determined from at least one storage node in a preset linked list by responding to the display instruction for displaying a first OSD image; each storage node in the linked list is respectively used for storing the associated information of one OSD image block; determining at least one target OSD image block based on the associated information in the first storage node; generating the first OSD image based on each target OSD image block; and generating the picture based on the first OSD image, and displaying the picture. Therefore, the OSD image blocks are stored in a linked list mode, each OSD image block is independent and is not influenced by other OSD image blocks, and therefore the accuracy of the OSD image blocks is high; secondly, only the associated information of each OSD image block is stored in each storage node in the linked list, so that the storage space of the OSD image can be reduced, the associated information of the corresponding image block is only updated when the OSD image is updated, the firmware source code is not required to be modified, the updating complexity can be reduced, the repeatability and the convenience of the OSD image block can be improved, and the research and development difficulty and the research and development cost can be reduced; and thirdly, generating a picture based on the OSD image formed by the at least one OSD image block, so that the richness of the displayed picture can be improved, and the use experience of a user can be improved.
In some embodiments, the step S14 of "generating the screen based on the first OSD image" includes a step S141 of:
and step S141, aliasing the first OSD image and the image frame to be displayed to generate the picture.
Here, the image frame to be displayed may include, but is not limited to, a next video frame of a certain video, a currently displayed picture, and the like. For example, the first OSD image is aliased with the current display picture. For another example, the first OSD image is aliased with the first frame of the video to be played.
The aliasing algorithm may be any suitable algorithm that is capable of aliasing two images. Such as ALPHA aliasing algorithms, foreground overlay algorithms, background overlay algorithms, etc. In implementation, a person skilled in the art may autonomously determine an aliasing algorithm according to actual needs, and the embodiments of the present disclosure are not limited.
In the embodiment of the disclosure, the OSD image formed by at least one OSD image block and the image frame are subjected to aliasing to generate the picture, so that the richness of the displayed picture can be further improved, and the use experience of a user can be further improved.
In some embodiments, the step S141 includes steps S1411 to S1414, wherein:
step S1411, determining a first transparency of the first OSD image.
Here, the first transparency is a real number not greater than 1. The number of first transparencies may be at least one. Each transparency characterizes the transparency of a different region in the first OSD image. In some embodiments, the number of the first transparency is the same as the number of the target image blocks included in the first OSD image. For example, in the case that the first OSD image includes one target OSD image block, the number of the first transparency is one. For another example, in the case that the first OSD image includes at least two target OSD image blocks, the number of the first transparency is at least two. In implementation, the corresponding first transparency may be obtained based on the basic attribute information of the target OSD image block.
Step S1412, determining a first image based on the first OSD image and the first transparency.
Here, the manner of determining the first image may include, but is not limited to, a product of the first OSD image and the first transparency, a product of the first OSD image and the weighted first transparency, a product of the first OSD image and the second transparency, a product of the first OSD image and the weighted second transparency, and the like. Wherein the second transparency is based on the first transparency. For example, the second transparency may be a difference between the preset transparency and the first transparency, an inverse of the first transparency, and the like. In implementation, a person skilled in the art may autonomously determine the manner of the first image according to actual needs, and the embodiment of the disclosure is not limited.
In some embodiments, the first image DOUT1 may be obtained by the following equation (1-1), namely:
DOUT1=DIN osd *A osd (1-1);
in which DIN osd Is a first OSD image, A osd Is a first transparency, A osd ∈[0,1]。
At A osd At 0, the first image is completely transparent, i.e.: not displaying the first OSD image; at A osd When not 0, the first image is not completely transparent, i.e.: and displaying the first OSD image.
Step S1413, determining a second image based on the image frame to be displayed and the first transparency.
Here, the manner of determining the second image may include, but is not limited to, a product of the image frame to be displayed and the first transparency, a product of the image frame to be displayed and the weighted first transparency, a product of the image frame to be displayed and the second transparency, a product of the image frame to be displayed and the weighted second transparency, and the like. Wherein the second transparency is based on the first transparency. For example, the second transparency may be a difference between the preset transparency and the first transparency, an inverse of the first transparency, and the like. In implementation, a person skilled in the art may autonomously determine the manner of the second image according to actual needs, and the embodiment of the disclosure is not limited.
In some embodiments, the first image DOUT2 may be obtained by the following equation (1-2), namely:
DOUT2=DIN original *(1-A osd ) (1-2);
therein, DIN original For image frames to be displayed, A osd Is a first transparency.
In A osd At 1, the second image is completely transparent, i.e.: not displaying the image frame to be displayed; in A osd When not 1, the image frame to be displayed is not completely transparent, that is: and displaying the image frame to be displayed.
Step S1414, aliasing the first image and the second image, and generating the picture.
Here, the manner of generating the screen may include, but is not limited to, the sum of the first image and the second image after being weighted, respectively, and the like. In implementation, a person skilled in the art may autonomously determine a manner of generating a picture according to actual requirements, and the embodiment of the present disclosure is not limited.
In some embodiments, the picture DOUT may be obtained by the following equations (1-3), namely:
DOUT=DOUT1+DOUT2 (1-3);
wherein, DOUT1 is the first image, and DOUT2 is the second image.
In the embodiment of the present disclosure, on the one hand, the transparency of the display of the first OSD image is achieved by the first transparency; on the other hand, the fusion of the first OSD image and the image frame to be displayed is realized by using the ALPHA aliasing, the richness of the displayed image is improved, and the use experience of the user can be improved.
In some embodiments, the method further comprises step S15, wherein:
step S15, responding to the received switching instruction, determining a target transparency matched with the switching instruction, and adjusting the transparency of the first OSD image to the target transparency.
Here, different switch instructions may correspond to the same or different target transparencies. The target transparency may be a real number not greater than 1. The generation mode of the switching instruction may include, but is not limited to, user operation generation, automatic generation by the electronic device, receiving an instruction sent by another device, and the like. The user operation may include, but is not limited to, a gesture, voice, body feeling, and the like. In implementation, a person skilled in the art may autonomously determine a generation manner of the switching instruction according to actual requirements, and the embodiment of the present disclosure is not limited. For example, a user executes a preset first operation gesture on the electronic device, and the transparency of the first OSD image is adjusted from a first transparency to 0; and the user executes a preset second operation gesture on the electronic equipment, and the transparency of the first OSD image is adjusted to 1 from the first transparency. For another example, when the electronic device detects that the resolution of the played video changes, such as: when the low frame frequency is switched to the high frequency frame, at this time, since the first OSD image may not be completely buffered, the transparency of the first OSD image may be adjusted from the first transparency to 0, and after the first OSD image is completely buffered, the transparency of the first OSD image is adjusted from 0 to the first transparency.
In the embodiment of the disclosure, a target transparency matching a switching instruction is determined in response to receiving the switching instruction, and the transparency of the first OSD image is adjusted to the target transparency. Therefore, the transparency of the first OSD image is adjusted, and the possibility of abnormal picture display can be reduced.
In some embodiments, the method further comprises steps S16 to S17, wherein:
and S16, responding to the received scaling instruction, and determining a scaling coefficient matched with the scaling instruction.
Here, different scaling instructions may correspond to different scaling factors. The zoom instruction may be generated by a user operation, automatically generated by the electronic device, or received from another device. The user operation may include, but is not limited to, a gesture, voice, body feeling, and the like. In implementation, a person skilled in the art may autonomously determine a generation manner of the zoom instruction according to actual requirements, and the embodiment of the present disclosure is not limited.
For example, a user performs a preset zooming gesture on the electronic device to generate the zooming instruction. For another example, the zoom instruction is generated when a change in resolution of the electronic device is detected.
In some implementations, the scaling factor may be generated based on a scaling instruction. For example, generated based on attributes of the user operation. The attribute of the operation may include, but is not limited to, type, distance, speed, location, duration, number, strength, etc. For example, different operation types correspond to different scaling factors. For another example, different numbers of clicks correspond to different scaling factors. For example, the scaling factor is calculated based on the step size of the sliding operation by the user. In implementation, a person skilled in the art may autonomously determine a generation manner of the scaling factor according to actual requirements, and the embodiment of the present disclosure is not limited. As another example, based on a change in resolution. For example, the ratio between the original resolution and the changed resolution is used as the scaling factor.
In some embodiments, the correspondence between the scaling instruction and the scaling factor may be established in advance and stored in the electronic device, or other electronic devices. And in the case that the corresponding relation is stored in the electronic equipment, the electronic equipment determines a scaling coefficient matched with the scaling instruction in the corresponding relation according to the scaling instruction. And under the condition that the corresponding relation is stored in other electronic equipment, the electronic equipment sends the scaling instruction to the other electronic equipment, so that the other electronic equipment determines the scaling coefficient matched with the scaling instruction in the corresponding relation according to the scaling instruction, and returns the scaling coefficient to the electronic equipment. In implementation, a person skilled in the art may autonomously determine the corresponding relationship between the scaling command and the scaling factor according to actual requirements, and the embodiment of the disclosure is not limited.
In some embodiments, the step S16 comprises a step S161 and/or a step S162, wherein:
step S161, in a case where the zoom instruction is a first zoom instruction, determining the zoom factor based on an original resolution and a changed resolution of the image frame to be displayed.
Here, the first zoom instruction characterization is automatically generated by the electronic device. The manner of determining the scaling factor may include, but is not limited to, a ratio between the original resolution and the changed resolution, a ratio after weighting the original resolution and the changed resolution, respectively, a difference between the original resolution and the changed resolution, a ratio between the original resolution/the changed resolution, and the like. In implementation, a person skilled in the art may autonomously select a manner of determining the scaling factor according to actual requirements, and the embodiment of the present disclosure is not limited.
In some embodiments, the scaling factor may be determined by the following equations (1-4):
Figure BDA0003912944120000091
where α is a scaling factor in the horizontal direction, β is a scaling factor in the vertical direction, X1, Y1 are a value of the original resolution in the horizontal direction and a value in the vertical direction, respectively, and X2, Y2 are a value of the changed resolution in the horizontal direction and a value in the vertical direction, respectively.
And step S162 of determining the scaling factor based on the second scaling instruction when the scaling instruction is the second scaling instruction.
Here, the second scaling command and the first scaling command are generated in different manners. In implementation, the second zooming instruction may be an instruction generated by a user operation or transmitted by another device.
Different second scaling instructions correspond to different scaling factors. In some embodiments, the scaling factor may be generated based on the second scaling instruction. For example, generated based on attributes of the user operation. The attribute of the operation may include, but is not limited to, type, distance, speed, location, duration, number, strength, etc. For example, different operation types correspond to different scaling factors. As another example, different click times correspond to different scaling factors. For example, the scaling factor is calculated based on the step size of the sliding operation by the user. In implementation, a person skilled in the art may autonomously determine a generation manner of the scaling factor according to actual requirements, and the embodiment of the present disclosure is not limited.
In some embodiments, the correspondence between the second scaling instruction and the scaling factor may be established in advance and stored in the electronic device, or in another electronic device. And under the condition that the corresponding relation is stored in the electronic equipment, the electronic equipment determines a scaling coefficient matched with the second scaling instruction in the corresponding relation according to the second scaling instruction. And under the condition that the corresponding relation is stored in other electronic equipment, the electronic equipment sends the second scaling instruction to the other electronic equipment, so that the other electronic equipment determines the scaling coefficient matched with the second scaling instruction in the corresponding relation according to the second scaling instruction, and returns the scaling coefficient to the electronic equipment. In implementation, a person skilled in the art may autonomously determine the corresponding relationship between the second scaling instruction and the scaling factor according to actual requirements, and the embodiment of the disclosure is not limited.
And S17, carrying out scaling processing on the first OSD image according to the scaling coefficient.
Here, the manner of the scaling process may include, but is not limited to, scaling the size, vertex coordinates, transparent region, non-transparent region, and the like of the first OSD image. For example, the size of the first OSD image is identical to the size of the display screen, and is 1920 × 1080, wherein the area containing the displayed content is a rectangular area formed by taking (50, 50) as the upper left corner and (100 ) as the lower right corner, in this case, the area is the non-transparent area, and the rest of the areas are transparent areas.
For example, the size of the first OSD image is scaled from a first size to a second size. For another example, the size of the non-transparent region of the first OSD image is scaled from a first size to a second size.
In some embodiments, the step S17 includes a step S171 and/or a step S172, wherein:
step S171, performing scaling processing on the target attribute of the first OSD image according to the scaling factor.
Here, the target attributes may include, but are not limited to, upper left corner coordinates, dimensions, lower right corner coordinates, and the like.
In some embodiments, the first OSD image may be scaled by the following equations (1-5):
U2=αU1,V2=βV1,Q2=αQ1,P2=βP1 (1-5);
wherein, α is a zoom factor in the horizontal direction, β is a zoom factor in the vertical direction, U1 and V1 are width and height of the original size, Q1 and P1 are coordinate values of the original upper left corner, U2 and V2 are width and height of the zoomed size, and Q2 and P2 are coordinate values of the zoomed upper left corner.
And step S172, scaling the transparent region and the non-transparent region in the first OSD image according to the scaling factor.
Here, the size of the first OSD image may be identical to the display screen size, and the scaling of the first OSD image may be achieved by changing the ratio of the transparent area and the non-transparent area. For example, the first OSD image includes 4 OSD image blocks, where the transparency of the first OSD image block is not 0, and the transparencies of the remaining three OSD image blocks are 0. At this time, the OSD image blocks associated with the first OSD image block are respectively scaled according to the scaling coefficients, where the OSD image blocks associated with the first OSD image block may include the first OSD image block and an OSD image block adjacent to the first OSD image block.
Therefore, the size of each OSD image block forming the first OSD image does not need to be stored separately, the data structure of the OSD image blocks is simplified, and the data storage quantity is reduced.
In the embodiment of the disclosure, a scaling coefficient matched with a scaling instruction is determined by responding to the received scaling instruction; and carrying out scaling processing on the first OSD image according to the scaling coefficient. Therefore, only the first OSD image is zoomed according to the zoom coefficient, the data structure of the OSD image blocks forming the first OSD image does not need to be changed, the adaptability of the OSD image blocks is improved, and the research and development cost is reduced.
Fig. 2 is a schematic view of an implementation flow of a picture display method according to an embodiment of the present disclosure, as shown in fig. 2, the method includes steps S21 to S25, where:
step S21, responding to a display instruction for displaying a first OSD image, and determining a first storage node matched with the display instruction from at least one storage node in a preset linked list; each storage node in the linked list is respectively used for storing associated information of one OSD image block, and the associated information includes chain domain information and color information.
Here, the step S21 corresponds to the step S11, and in the implementation, reference may be made to a specific embodiment of the step S11.
Step S22, determining one target OSD image block based on the color information in the first storage node.
Here, the color information may include, but is not limited to, a color mapping table, a color index value, and the like. Each data in the color mapping table represents a color value of a pixel. Each color value can be composed of Y/R, G/Cb, B/Cr and ALPHA, wherein Y/R, G/Cb, B/Cr represent the basic color value of the pixel, and ALPHA represents the transparency of the pixel. In some embodiments, the color information may further include basic attribute information of the OSD image block. Basic attribute information may include, but is not limited to, size, position, transparency, color depth, and the like. In some implementations, the color depth can be determined based on an application scenario. For example, in a scene with high picture requirements, the color depth may be 256 color depths, such as an alarm. For another example, in a scene with low requirements on the picture, the color depth may be 16 color depths. In practice, the color depth may be determined based on preset rules. The preset rules may include, but are not limited to, default configuration of the electronic device, user customization, user preferences, frequency of use, user operation information, and the like. In implementation, a person skilled in the art may autonomously set the preset rule according to actual requirements, and the embodiment of the disclosure is not limited.
In some embodiments, the step S22 includes a step S221, in which:
step S221, based on the color index information in the first storage node, searching the color mapping table for color information matching the color index information, and using the color information as the color information of the target OSD image block.
Here, the number of color index information is related to the number of pixels of the OSD image block. Each pixel has a color index information. The number of color mapping tables is at least one. E.g., a color map of 256 color depths, a color map of 128 color depths, a color map of 16 color depths, etc. In implementation, a corresponding color mapping table may be determined based on the color depth in the first storage node, and based on the color mapping table, a color corresponding to the color index information may be looked up.
For example, for a 1920 × 1080 image, by using RGB true color storage, a 1920 × 1080 × 24bit (bit) storage space is required, and by using the color index information and the color mapping table, only a 1920 × 1080 × 8bit +256 × 24bit storage space is required, where 8bit is used to represent a color mapping table with a current color depth of 256, and for a color mapping table with a color depth of 128, 7bit is used, and 256 × 24bit represents RGB color information corresponding to each color depth.
In some embodiments, the color mapping table in the first storage node may be updated according to actual requirements. In practice, the colormap in the next first storage node is consistent with the colormap for that first storage node.
In some embodiments, the updating manner of the color mapping table may be selected based on a preset rule. The preset rules may include, but are not limited to, user customization, user preferences, frequency of use, user operation information, and the like. In implementation, a person skilled in the art may set the preset rule autonomously according to actual requirements, and the embodiment of the present disclosure is not limited.
For example, the electronic device provides a configuration option by which the user can import an existing colormap, or customize a desired colormap.
For another example, the updating manner may be determined based on attribute information of the user operation, where the attribute information may include, but is not limited to, a type, a distance, a speed, a location, a duration, a number of times, a strength, and the like of the operation. In implementation, a person skilled in the art may autonomously set a relationship between the attribute information of the operation and the update mode according to actual requirements, and the embodiment of the present disclosure is not limited. For example, when the user clicks on the electronic device, the color depth of the color mapping table is adjusted from the first color depth to the second color depth; the user adjusts the color depth of the color mapping table from the first color depth to a third color depth upon double-clicking on the electronic device. Wherein the first color depth, the second color depth, and the third color depth are different color depths.
Step S23, determining at least one target OSD image block based on the chain domain information in the first storage node when the chain domain information in the first storage node is not empty.
Here, the chain domain information at least includes address information characterizing at least one OSD image block associated with the OSD image. For example, for the double-chain table and the circular linked list, the chain domain information includes left chain domain information and right chain domain information, the right chain domain information includes address information of a next storage node associated with the first storage node, and the left chain domain information includes address information of a previous storage node associated with the first storage node. In some embodiments, the right-chain domain information may further include, but is not limited to, address information of the first storage node, basic attribute information of the image block, and the like.
In some embodiments, the chain domain information includes left chain domain information and right chain domain information, the left chain domain information includes address information of a last first storage node associated with the first storage node, and the right chain domain information includes address information of a next first storage node associated with the first storage node; the step S23 includes steps S231 to S232, in which:
step S231, in a case that the address information in the right-chain domain information of the first storage node is not empty, determining at least one target OSD image block based on the address information in the right-chain domain information of the first storage node.
Here, the successor node of the first storage node can be found from the linked list by the address information in the right-link domain information of the first storage node. At least one target OSD image block may be determined using the associated information in the subsequent node. In implementation, the manner of determining at least one target OSD image block based on the association information in the subsequent node is similar to the manner of determining at least one target OSD image block based on the association information in the first storage node in step S12, and in implementation, reference may be made to the specific implementation of step S12.
In some embodiments, the step S231 of determining at least one target OSD image block based on the address information in the right-chain domain information of the first storage node includes steps S2311 to S2313, where:
step S2311, a next first storage node is obtained based on the address information in the right-chain domain information of the first storage node.
Here, the successor node of the first storage node may be acquired from the linked list by the address information in the right-link domain information, and the successor node may be used as the next first storage node.
Step S2312, determining one target OSD image block based on the color information in the next first storage node.
Here, the manner of determining one target OSD image block is the same as the manner of determining one target OSD image block in step S22, and in implementation, reference may be made to the specific implementation of step S22.
Step S2313, when the address information in the right-chain domain information of the next first storage node is not empty, determining at least one target OSD image block based on the address information in the right-chain domain information of the next first storage node.
Here, the manner of determining the at least one target OSD image block is similar to the manner of determining the at least one target OSD image block in step S231, and when implemented, reference may be made to the specific implementation of step S231 described above.
Step S232, in a case that the address information in the left-chain domain information of the first storage node is not empty, determining at least one target OSD image block based on the address information in the left-chain domain information of the first storage node.
Here, the manner of determining the at least one target OSD image block is similar to the manner of determining the at least one target OSD image block in step S231, and when implemented, reference may be made to specific embodiments of step S231 described above.
And step S24, generating the first OSD image based on each of the target OSD image blocks.
And S25, generating the picture based on the first OSD image, and displaying the picture.
Here, the steps S24 to S25 correspond to the steps S13 to S14, respectively, and in the implementation, specific embodiments of the steps S13 to S14 may be referred to.
In the embodiment of the disclosure, a first storage node matched with a display instruction is determined from at least one storage node in a preset linked list by responding to the display instruction for displaying a first OSD image; each storage node in the linked list is respectively used for storing associated information of an OSD image block, and the associated information comprises chain domain information and color information; determining one target OSD image block based on the color information in the first storage node; determining at least one target OSD image block based on the chain domain information in the first storage node under the condition that the chain domain information in the first storage node is not empty; generating the first OSD image based on each target OSD image block; and generating the picture based on the first OSD image, and displaying the picture. In this way, firstly, the color information of the image is stored through the color mapping table and the color index value, so that the storage cost of the color information can be reduced, and the power consumption of the device can be reduced; secondly, the displayed color depth can be modified by changing the color mapping table without modifying the data structure of the source code or the image block, so that the research and development difficulty and the research and development cost can be reduced; finally, the color mapping tables with different color depths are set, so that the color mode of the rich display picture can be improved, and the impression experience of a user can be improved.
Fig. 3 is a schematic view of an implementation flow of a screen display method according to an embodiment of the present disclosure, as shown in fig. 3, the method includes steps S31 to S36, where:
step S31, responding to a display instruction for displaying a first OSD image, and determining a first storage node matched with the display instruction from at least one storage node in a preset linked list; each storage node in the linked list is used for storing the associated information of one OSD image block.
And step S32, determining at least one target OSD image block based on the associated information in the first storage node.
Step S33, generating the first OSD image based on each of the target OSD image blocks.
And step S34, generating the picture based on the first OSD image, and displaying the picture.
Here, the steps S31 to S34 correspond to the steps S11 to S14, respectively, and in the implementation, specific embodiments of the steps S11 to S14 may be referred to.
Step S35, in response to receiving a generation instruction for a second OSD image, determining a configuration object associated with the second OSD image from the linked list.
Here, different generation instructions may correspond to the same or different configuration objects. The configuration object may be at least one storage node in a linked list. The second OSD image may be an existing OSD image or an additional OSD image. For example, the second OSD image may be the first OSD image or another OSD image.
In some embodiments, the generation instruction may include, but is not limited to, a modification instruction, an addition instruction, and the like. The modification instruction is used for modifying the existing OSD image. The modification instructions may include, but are not limited to, add instructions, delete instructions, interchange instructions, adjust instructions, and the like. The add instruction is used to add a storage node. The delete instruction is for deleting a storage node. The interchange instruction is used to exchange the location information of the two storage nodes. The adjustment instructions are used to modify the contents of a storage node. And the new instruction is used for adding a new instruction of the OSD image.
In some embodiments, the generation instruction may be determined according to an actual application scenario. In implementation, a person skilled in the art may independently select an obtaining manner of the generation instruction according to actual requirements, and the embodiment of the present disclosure is not limited. For example, the generation instruction is an instruction transmitted by the other device or the like. For another example, the generation instruction may be uploaded or set by the user through an input component of the electronic device on the operation interface. The input component may include, but is not limited to, a keyboard, a mouse, a touch screen, a touch pad, an audio input device, and the like. The operation interface comprises an interactive interface used for carrying out configuration operation and information display on the OSD images. The operation interface can be displayed on any suitable electronic equipment with interface interaction function. In practice, the electronic device displaying the operation interface may be the same as or different from the device executing the screen display method, and is not limited herein. For example, the electronic device executing the screen display method may be a notebook computer, the electronic device displaying the operation interface may also be the notebook computer, and the operation interface may be an interactive interface of a client running on the notebook computer, or a web page displayed in a browser running on the notebook computer. For another example, the electronic device executing the screen display method may be a server, the electronic device displaying the operation interface may be a notebook computer, the operation interface may be an interactive interface of a client running on the notebook computer, or a web page displayed in a browser running on the notebook computer, and the notebook computer may access the server through the client or the browser.
In some embodiments, the generation instructions further include configuration information for configuring the storage node. In implementation, different generation instructions correspond to different configuration information. For example, in the case where the generation instruction is an add instruction, the configuration information may be association information of a newly added storage node. For another example, in the case where the generation instruction is an interchange instruction, the configuration information may be location information of the storage node to be interchanged. For example, in the case where the generation instruction is an adjustment instruction, the configuration information may be changed contents.
And step S36, configuring the configuration object based on the configuration information in the generation instruction to generate the second OSD image.
Here, the configuration information is used for configuring the storage node. Different generation instructions correspond to different configuration information. Different generation instructions may correspond to the same or different configuration objects. For example, in the case where the generating instruction is a modify instruction, the configuration object may be a second storage node. The second storage node may be the first storage node, or may be another storage node. For another example, in the case that the generation instruction is a new instruction, the configuration object may be at least one storage node.
In some embodiments, in a case that the generation instruction is a modification instruction, the configuration object includes a second storage node, and the "configuring the configuration object based on the configuration information in the generation instruction" in step S36 includes at least one of step S361 to step S364, where:
step S361, when the modification instruction includes a delete instruction, acquiring a previous second storage node based on address information in the left-chain domain information of the second storage node; acquiring a next second storage node based on the address information in the right-chain domain information of the second storage node; and modifying the address information in the right-chain domain information of the last second storage node into the address information of the next second storage node, and modifying the address information in the left-chain domain information of the next second storage node into the address information of the last second storage node.
Here, the generation instruction is a deletion instruction, and the configuration information may be null at this time. For the double linked list, the address information of the right-chain domain of the predecessor node of the second storage node is modified into the address information of the successor node of the second storage node, and the address information of the left-chain domain of the successor node of the second storage node is modified into the address information of the predecessor node of the second storage node. For example, in fig. 1B, if the second storage node is the storage node 112, the address information 1080 of the right-chain domain of the storage node 111 is modified into the address information 1036 of the storage node 113, and the address information 1080 of the left-chain domain of the storage node 113 is modified into the address information 1050 of the storage node 111.
Step S362, under the condition that the modification instruction comprises an adding instruction, acquiring a third storage node based on the configuration information in the adding instruction; acquiring a fourth storage node based on the address information in the right-chain domain information of the second storage node; and modifying the address information in the right-chain domain information of the second storage node into the address information of the third storage node, modifying the address information in the left-chain domain information of the third storage node into the address information of the second storage node, modifying the address information in the right-chain domain information of the third storage node into the address information of the fourth storage node, and modifying the address information in the left-chain domain information of the fourth storage node into the address information of the third storage node.
Here, the generation instruction is an increase instruction, and the configuration information may be association information of an increased storage node. For the double-linked list, modifying the address information of the right-chain domain of the predecessor node of the second storage node into the address information of the third storage node, modifying the address information of the left-chain domain of the successor node of the second storage node into the address information of the third storage node, modifying the address information of the left-chain domain of the third storage node into the address information of the predecessor node of the second storage node, and modifying the address information of the right-chain domain of the third storage node into the address information of the successor node of the second storage node. For example, in fig. 1B, if the second storage node is the storage node 113 and the address information of the third storage node is 1200, then the fourth storage node is the storage node 114, the address information 1170 of the right-chain domain of the storage node 113 is modified to 1200, the address information 1036 of the left-chain domain of the storage node 114 is modified to 1200, the address information 1036 of the left-chain domain of the third storage node is modified to 1036, and the address information of the right-chain domain is modified to 1170.
Step S363, in a case that the modification instruction is an interchange instruction, acquiring a fifth storage node based on configuration information in the interchange instruction; acquiring a last second storage node based on the address information in the left chain domain information of the second storage node; acquiring a sixth storage node based on the address information in the right-chain domain information of the fifth storage node; and interchanging the address information in the left-chain domain information of the second storage node and the address information in the left-chain domain information of the fifth storage node, interchanging the address information in the right-chain domain information of the second storage node and the address information in the right-chain domain information of the fifth storage node, modifying the address information in the right-chain domain information of the last second storage node into the address information of the fifth storage node, and modifying the address information in the left-chain domain information of the sixth storage node into the address information of the fifth storage node.
Here, the generation instruction is an interchange instruction, and the configuration information may be address information of the storage node to be interchanged. For the double linked list, the link domain information of the second storage node and the link domain information of the fifth storage node are interchanged, the right link domain information of the predecessor node of the second storage node is modified into the address information of the fifth storage node, and the left link domain information of the successor node of the fifth storage node is modified into the address information of the second storage node. For example, in fig. 1B, if the second storage node is the storage node 112 and the fifth storage node is the storage node 114, at this time, the address information 1036 of the right-chain domain of the storage node 112 and the address information NULL of the right-chain domain of the storage node 114 may be interchanged, the address information 1050 of the left-chain domain of the storage node 112 and the address information 1036 of the left-chain domain of the storage node 114 may be interchanged, and the address information 1050 of the right-chain domain of the storage node 111 may be modified into the address information 1170 of the storage node 114.
Step S364, modifying the second storage node based on the configuration information in the adjustment instruction when the modification instruction is the adjustment instruction.
Here, the generation instruction is an adjustment instruction, and the configuration information may be content to be adjusted. For example, the association information in the second storage node is modified. Such as transparency, color depth, coordinates/size of the OSD image block, updating the color map table, etc.
In some embodiments, in a case that the generation instruction is a new instruction, the configuration object includes at least one seventh storage node; the step S36 includes a step S371 in which:
step S371, based on the configuration information in the new instruction, respectively configuring each seventh storage node.
Here, the generation instruction is a new addition instruction, and in this case, the configuration information may be associated information of at least one seventh storage node. In implementation, each seventh storage node may be sequentially added to the linked list according to the storage manner of the linked list. In some embodiments, the manner of adding the seventh storage node is similar to the manner of adding the third storage node in step S362, and in implementation, reference may be made to the detailed implementation of step S362.
In the embodiment of the disclosure, a first storage node matched with a display instruction is determined from at least one storage node in a preset linked list by responding to the display instruction for displaying a first OSD image; each storage node in the linked list is respectively used for storing the associated information of one OSD image block; determining at least one target OSD image block based on the associated information in the first storage node; generating the first OSD image based on each target OSD image block; generating the picture based on the first OSD image, and displaying the picture; in response to receiving a generation instruction of a second OSD image, determining a configuration object associated with the second OSD image from the linked list; and configuring the configuration object based on the configuration information in the generation instruction to generate the second OSD image. Therefore, firstly, each OSD image block is independently stored in a linked list mode, each OSD image block is independent and is not influenced by other OSD image blocks, and therefore the accuracy of the OSD image blocks is high; secondly, the change of the OSD image is realized by changing the chain domain information of the storage nodes, so that the change accuracy is improved, the update complexity is reduced, the requirements of different products and different manufacturers can be met, and the repeatability and the convenience of the OSD image can be improved; finally, the user can carry out autonomous configuration on the OSD image to be displayed, thereby improving the operation experience of the user.
Fig. 4A is a schematic structural diagram of a picture display system according to an embodiment of the present disclosure, and as shown in fig. 4A, the system includes a processing device 41 and a display device 42, where:
the processing device 41 is configured to receive a display instruction for displaying the first OSD image; determining a first storage node matched with the display instruction from at least one storage node in a preset linked list based on the display instruction, wherein each storage node in the linked list is used for storing associated information of one OSD image block; determining at least one target OSD image block based on the associated information in the first storage node; generating the first OSD image based on each target OSD image block; generating the picture based on the first OSD image; sending the picture to the display device 42;
the display device 42 is configured to receive and display the screen sent by the processing device 41.
Here, the processing device 41 may be at least one electronic device. In practice, the processing device 41 is adapted to perform any of the screen display methods described above. In some embodiments, the processing device 41 includes an electronic device and a driving device. The electronic equipment can be used for receiving the instruction of the front end and carrying out primary analysis on the instruction to obtain an analysis result. The driving device is used for receiving the instruction and the analysis result sent by the electronic device and executing any one of the screen display methods. In some embodiments, the electronic device may be further configured to perform some steps of any one of the above-described screen display methods, generate the OSD image, and transmit the OSD image to the driving device. The driving device is used for receiving and storing the OSD image and generating a display picture based on the OSD image. For example, the driving device receives a video frame to be displayed, mixes an OSD image with the video frame to be displayed, and generates the picture.
The display device 42 may be a display panel, a display, etc. The display panel may include, but is not limited to, a liquid crystal display panel, an OLED, a quantum dot display panel, and the like. In some embodiments, the display device 42 may be part of the processing device 41.
Fig. 4B is a schematic diagram illustrating a composition structure of a screen display system according to an embodiment of the present disclosure, as shown in fig. 4B, the system includes an electronic device 411, a driving device 412, and an LCD display 413 (corresponding to the display device 42), where the electronic device 411 includes at least a communication interface 4111 and a communication interface 4112, and the communication interface 4111 is used to transmit data streams other than OSD images to the driving device 412, such as image frames, instructions, and the like, and the communication interface 4112 is used to transmit OSD images to the driving device 412.
In some embodiments, the processing device 41 comprises a first electronic device and a first driving device, wherein:
the first electronic equipment is used for responding to the received display instruction and determining first address information matched with the display instruction; sending the first address information to the first driving device;
the first driving device is configured to, in response to receiving the first address information sent by the first electronic device, obtain the first storage node matched with the first address information from the linked list; determining at least one target OSD image block based on the associated information in the first storage node; generating the first OSD image based on each target OSD image block; generating the picture based on the first OSD image; and sending the picture to the display equipment.
Here, the first address information characterizes a location of the first storage node in the linked list. In implementation, a corresponding relationship between the display instruction and the address information may be established in advance, and based on the corresponding relationship, the first address information corresponding to the display instruction may be obtained.
The first driving device may also be an electronic device. When the method is implemented, the first electronic device is used for receiving the instruction, conducting preliminary analysis on the received instruction, and sending an analysis result and the instruction to the first determination device. The first driving device is configured to perform any one of the above-described screen display methods.
In some embodiments, the first driving apparatus comprises processing means, mixing means, and OSD means, wherein:
the processing device is used for receiving the image frame to be displayed sent by the electronic equipment; generating a timing control signal based on the image frame to be displayed; sending the time sequence control signal to the OSD device, and sending the image frame to be displayed to the mixing device;
the OSD device is used for responding to the received time sequence control signal sent by the processing device and sending the first OSD image to the mixing device;
the mixing device is used for responding to the first OSD image sent by the OSD device, aliasing the first OSD image and the image frame to be displayed received from the processing device, and generating the picture; and sending the picture to the display equipment.
Here, the processing means may be one processor in the first driving device, mainly for receiving an image frame to be displayed, outputting a timing control signal, and the like.
The OSD device is mainly used for generating a first OSD image. In some approaches, the OSD device may include, but is not limited to, a memory, an OSD controller, a buffer, and the like. The memory is used for storing a linked list, the buffer is used for caching a first OSD image, and the controller is used for receiving information, acquiring a corresponding OSD image from the memory based on the information, and caching the OSD image to the buffer. The mixing device may be any suitable device capable of image mixing. Such as analog/digital circuits, chips, etc. In practice, a person skilled in the art can autonomously determine the implementation form of the mixing device according to actual needs, and the embodiments of the present disclosure are not limited.
The timing control signal may include, but is not limited to, VSYNC (Vertical Sync), HSYNC (horizontal Sync), and the like.
Fig. 4C is a schematic diagram illustrating a structure of a first driving apparatus provided in an embodiment of the disclosure, as shown in fig. 4C, the first driving apparatus 420 includes a processor 421 (corresponding to the aforementioned processing device), a memory 422, an OSD controller 423, a buffer 424, and a mixer 425 (corresponding to the aforementioned mixing device), the OSD controller 423 receives an instruction, obtains an OSD image block from the memory 422, and buffers the OSD image block into the buffer 424; the processor 421 outputs a timing control signal VSYNC, sends the timing control signal VSYNC to the buffer 424, and sends a video frame to be displayed into the mixer 425; when buffer 424 receives timing control signal VSYNC, the buffered OSD image is sent to mixer 425, and mixer 425 performs aliasing of the OSD image and the video frame sent by processor 421 to generate a post-aliasing picture.
In some embodiments, the first electronic device is further configured to determine, in response to receiving a zoom instruction, a zoom factor that matches the zoom instruction; sending the scaling factor to the first driving device; the first driving device is further configured to receive the scaling factor sent by the first electronic device; and carrying out scaling processing on the first OSD image according to the scaling coefficient.
Here, as for the manner in which the first electronic device generates the scaling factor, reference may be made to the specific implementation of generating the scaling factor in step S16. The manner in which the first driving device performs the scaling process on the first OSD image may refer to a specific implementation of the scaling process in the foregoing step S17.
In some embodiments, the first electronic device is further configured to determine, in response to receiving a switching instruction, a target transparency that matches the switching instruction; sending the target transparency to the first driving device; the first driving device is further configured to receive the target transparency sent by the first electronic device; and adjusting the transparency of the first OSD image to the target transparency.
Here, the first electronic device may refer to a specific embodiment of determining the target transparency in the foregoing step S15. The manner in which the first driving device adjusts the transparency of the first OSD image may refer to the specific implementation manner of adjusting the transparency of the first OSD image in the foregoing step S15.
In some embodiments, the first electronic device is further configured to determine second address information in response to receiving a generation instruction for a second OSD image; sending the second address information and the generation instruction to the first driving device; the first driving device is further configured to receive the second address information and the generation instruction sent by the first electronic device; acquiring the configuration object matched with the second address information from the linked list; and configuring the configuration object based on the configuration information in the generation instruction so as to generate the second OSD image.
Here, the second address information represents address information of a configuration object associated with the second OSD image in a linked list. In implementation, a correspondence between the generated instruction and the address information may be established in advance, and based on the correspondence, the second address information corresponding to the generated instruction may be obtained.
The manner in which the first driving device generates the second OSD image may refer to a specific embodiment in which the second OSD image is generated in the foregoing steps S35 to S36.
In some embodiments, the processing device 41 comprises a second electronic device and a second driving device, wherein:
the second electronic device is used for responding to the received display instruction and acquiring the first storage node matched with the display instruction from the linked list; determining at least one target OSD image block based on the associated information in the first storage node; generating the first OSD image based on each target OSD image block; sending the first OSD image to the second driving device;
the second driving device is used for responding to the first OSD image sent by the second electronic device and generating the picture based on the first OSD image; and sending the picture to the display equipment.
Here, the second driving device may also be one electronic device. In some embodiments, the second drive device may be the same as the first drive device.
When the second electronic device is used for executing part of the steps in any one of the above-mentioned picture display methods, generating the OSD image, and sending the OSD image to the second driving device. The second driving device is used for receiving and storing the OSD image and generating the picture based on the OSD image. For example, the second driving device will receive a video frame to be displayed, mix the OSD image with the video frame to be displayed, and generate the picture.
In some embodiments, the second electronic device is further configured to determine, in response to receiving a zoom instruction, a zoom factor that matches the zoom instruction; scaling the first OSD image according to the scaling coefficient; sending the scaled first OSD image to the second driving device; the second driving device is further configured to receive the scaled first OSD image sent by the second electronic device.
Here, as for the manner in which the second electronic device generates the scaling factor, reference may be made to a specific implementation manner in which the scaling factor is generated in step S16. The manner in which the second electronic device performs the scaling process on the first OSD image may refer to a specific implementation of the scaling process in step S17.
In some embodiments, the second electronic device is further configured to, in response to receiving a switching instruction, determine a target transparency matching the switching instruction; adjusting the transparency of the first OSD image to the target transparency; sending the adjusted first OSD image to the second driving device; the second driving device is further configured to receive the adjusted first OSD image sent by the second electronic device.
Here, the second electronic device determines the target transparency and adjusts the transparency of the first OSD image, and reference may be made to the specific implementation of determining the target transparency and adjusting the transparency of the first OSD image in the foregoing step S15.
In some embodiments, the second electronic device is further configured to, in response to receiving a generation instruction for a second OSD image, obtain, from the linked list, a configuration object associated with the second OSD image; configuring the configuration object based on configuration information in the generation instruction to generate the second OSD image; sending the second OSD image to the second driving device; the second driving device is further configured to receive the second OSD image sent by the second electronic device; aliasing the second OSD image and an image frame to be displayed to generate the picture; and sending the picture to the display equipment.
Here, the second electronic device may generate the second OSD image according to a specific embodiment of the second OSD image generated in the foregoing step S35 to step S36.
In some embodiments, the second electronic device comprises a processor and a generator, wherein:
the processor is used for analyzing the received generation instruction and acquiring the configuration object from the linked list; sending the configuration object and the generation instruction to the generator;
the generator is used for receiving the configuration object and the generation instruction sent by the processor; configuring the configuration object based on configuration information in the generation instruction to generate the second OSD image; and sending the second OSD image to the second driving device.
Here, the processor is configured to parse the received instruction.
The generator may be any module capable of generating an OSD image. Such as analog/digital circuits, chips, software, etc. In implementation, a person skilled in the art may autonomously select the generator according to actual requirements, and the embodiments of the present disclosure are not limited. The manner in which the generator generates the second OSD image may refer to the specific implementation of generating the second OSD image in the foregoing step S35 to step S36.
Fig. 4D is a schematic structural diagram of a second electronic device according to an embodiment of the disclosure, and as shown in fig. 4D, the second electronic device 430 includes a processor 431 and generation software 432 (corresponding to the foregoing generator).
Fig. 4E is a schematic view of an implementation flow of a screen display method according to an embodiment of the disclosure, and as shown in fig. 4E, the method includes steps S41 to S46, where:
step S41, receiving a display instruction for displaying the first OSD image, and determining address information of a first storage node matched with the display instruction;
step S42, based on the address information of the first storage node, acquiring the first storage node from the double-linked list;
step S43, determining a first target OSD image block based on the color information of the first storage node;
here, the index value of each pixel point in the first target OSD image block is converted into a color value having four components of RGBA through a color mapping table.
Step S44, determining at least one second target OSD image block based on the chain domain information of the first storage node;
s45, splicing the first target OSD image block and at least one second target OSD image block to generate a first OSD image;
here, the stitching may be performed according to the display coordinates of each OSD image block.
And S46, aliasing the first OSD image and the image frame to be displayed to generate a picture, and displaying the picture.
Here, the image frame may be a certain frame of a video, and in the process of displaying the video frame by frame, if a vertical synchronization signal is received, the first OSD image and the image frame to be displayed are subjected to aliasing to generate a picture.
In the embodiment of the disclosure, the OSD image blocks are stored in a linked list manner, so that each OSD image block is independent and is not affected by other OSD image blocks, and the accuracy of the OSD image blocks is high; secondly, the color information of the image is stored through the color mapping table and the color index value, so that the storage cost of the color information can be reduced, and the power consumption of the equipment can be reduced; thirdly, the displayed color depth can be modified by changing the color mapping table, the OSD image can be modified by changing the chain domain information of the storage nodes, the data structure of the source code or the image block does not need to be modified, and the research and development difficulty and the research and development cost can be reduced; finally, the color mapping tables with different color depths are set, so that the color mode of the rich display picture can be improved, and the impression experience of the user can be improved.
Based on the above embodiments, an image display apparatus is provided in the embodiments of the present disclosure, fig. 5 is a schematic structural diagram of the image display apparatus provided in the embodiments of the present disclosure, as shown in fig. 5, the apparatus 50 includes a first determining module 51, a second determining module 52, a first generating module 53 and a display module 54, where:
the first determining module 51 is configured to determine, in response to a display instruction for displaying a first OSD image, a first storage node matched with the display instruction from at least one storage node in a preset linked list; each storage node in the linked list is respectively used for storing the associated information of one OSD image block;
the second determining module 52 is configured to determine at least one target OSD image block based on the associated information in the first storage node;
the first generating module 53 is configured to generate the first OSD image based on each target OSD image block;
the display module 54 is configured to generate the picture based on the first OSD image and display the picture.
In some embodiments, the association information includes chain domain information and color information; the second determining module 52 is further configured to: determining one target OSD image block based on the color information in the first storage node; and determining at least one target OSD image block based on the chain domain information in the first storage node under the condition that the chain domain information in the first storage node is not empty.
In some embodiments, the chain domain information includes left chain domain information and right chain domain information, the left chain domain information includes address information of a last first storage node associated with the first storage node, and the right chain domain information includes address information of a next first storage node associated with the first storage node; the second determining module 52 is further configured to: determining at least one target OSD image block based on the address information in the right-chain domain information of the first storage node under the condition that the address information in the right-chain domain information of the first storage node is not empty; and determining at least one target OSD image block based on the address information in the left-chain domain information of the first storage node under the condition that the address information in the left-chain domain information of the first storage node is not empty.
In some embodiments, the second determining module 52 is further configured to: acquiring a next first storage node based on the address information in the right-chain domain information of the first storage node; determining one target OSD image block based on the color information in the next first storage node; and determining at least one target OSD image block based on the address information in the right-chain domain information of the next first storage node under the condition that the address information in the right-chain domain information of the next first storage node is not empty.
In some embodiments, the color information includes color mapping tables and color index information; the second determining module 52 is further configured to: and searching color information matched with the color index information from the color mapping table based on the color index information in the first storage node, and taking the color information as the color information of the target OSD image block.
In some embodiments, the apparatus further comprises a scaling module; the scaling module is configured to: in response to receiving a scaling instruction, determining a scaling coefficient matching the scaling instruction; and carrying out scaling processing on the first OSD image according to the scaling coefficient.
In some embodiments, the scaling module is further configured to at least one of: determining the scaling coefficient based on the original resolution and the changed resolution of the image frame to be displayed under the condition that the scaling instruction is a first scaling instruction; and when the scaling instruction is a second scaling instruction, determining the scaling coefficient based on the second scaling instruction, wherein the second scaling instruction and the first scaling instruction are generated in different manners.
In some embodiments, the scaling module is further configured to at least one of: according to the scaling coefficient, scaling the target attribute of the first OSD image, wherein the target attribute comprises at least one of the following: coordinates of the upper left corner, the size and the lower right corner; and respectively carrying out scaling processing on the transparent area and the non-transparent area in the first OSD image according to the scaling coefficient.
In some embodiments, the apparatus further comprises a second generating module; the second generating module is configured to: in response to receiving a generation instruction of a second OSD image, determining a configuration object associated with the second OSD image from the linked list; and configuring the configuration object based on the configuration information in the generation instruction so as to generate the second OSD image.
In some embodiments, in the case that the generation instruction is a modification instruction, the configuration object includes a second storage node; the second generating module is further configured to: under the condition that the modification instruction comprises a deletion instruction, acquiring a last second storage node based on address information in the left chain domain information of the second storage node; acquiring a next second storage node based on the address information in the right-chain domain information of the second storage node; modifying the address information in the right-chain domain information of the last second storage node into the address information of the next second storage node, and modifying the address information in the left-chain domain information of the next second storage node into the address information of the last second storage node; under the condition that the modification instruction comprises an adding instruction, acquiring a third storage node based on configuration information in the adding instruction; acquiring a fourth storage node based on the address information in the right-chain domain information of the second storage node; modifying the address information in the right-chain domain information of the second storage node into the address information of the third storage node, modifying the address information in the left-chain domain information of the third storage node into the address information of the second storage node, modifying the address information in the right-chain domain information of the third storage node into the address information of the fourth storage node, and modifying the address information in the left-chain domain information of the fourth storage node into the address information of the third storage node; under the condition that the modification instruction is an interchange instruction, acquiring a fifth storage node based on configuration information in the interchange instruction; acquiring a previous second storage node based on the address information in the left-chain domain information of the second storage node; acquiring a sixth storage node based on the address information in the right-chain domain information of the fifth storage node; interchanging address information in the left-chain domain information of the second storage node and address information in the left-chain domain information of the fifth storage node, interchanging address information in the right-chain domain information of the second storage node and address information in the right-chain domain information of the fifth storage node, modifying the address information in the right-chain domain information of the previous second storage node into the address information of the fifth storage node, and modifying the address information in the left-chain domain information of the sixth storage node into the address information of the fifth storage node; and modifying the second storage node based on the configuration information in the adjusting instruction under the condition that the modifying instruction is the adjusting instruction.
In some embodiments, in a case that the generation instruction is a new instruction, the configuration object includes at least one seventh storage node; the second generating module is further configured to: and respectively configuring each seventh storage node based on the configuration information in the newly added instruction.
In some embodiments, the apparatus further comprises an adjustment module; the adjusting module is configured to: in response to receiving a switching instruction, determining a target transparency matched with the switching instruction, and adjusting the transparency of the first OSD image to the target transparency.
In some embodiments, the display module 54 is further configured to: and aliasing the first OSD image and the image frame to be displayed to generate the picture.
In some embodiments, the display module 54 is further configured to: determining a first transparency of the first OSD image; determining a first image based on the first OSD image and the first transparency; determining a second image based on the image frame to be displayed and the first transparency; and aliasing the first image and the second image to generate the picture.
The above description of the apparatus embodiments, similar to the above description of the method embodiments, has similar beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the apparatus of the present disclosure, reference is made to the description of the embodiments of the method of the present disclosure.
It should be noted that, in the embodiment of the present disclosure, if the method is implemented in the form of a software functional module and sold or used as a standalone product, the method may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing an electronic device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the present disclosure are not limited to any specific combination of hardware and software.
The embodiment of the disclosure provides a picture display device, which comprises any one of the picture display systems.
An embodiment of the present disclosure provides an electronic device, including a memory and a processor, where the memory stores a computer program executable on the processor, and the processor implements the above method when executing the computer program.
Embodiments of the present disclosure provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described method. The computer readable storage medium may be transitory or non-transitory.
The disclosed embodiments provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program that when read and executed by a computer performs some or all of the steps of the above method. The computer program product may be embodied in hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It should be noted that fig. 6 is a schematic diagram of a hardware entity of an electronic device in an embodiment of the present disclosure, and as shown in fig. 6, the hardware entity of the electronic device 600 includes: a processor 601, a communication interface 602, and a memory 603, wherein:
the processor 601 generally controls the overall operation of the electronic device 600.
The communication interface 602 may enable the electronic device to communicate with other terminals or servers via a network.
The Memory 603 is configured to store instructions and applications executable by the processor 601, and may also buffer data (e.g., image data, audio data, voice communication data, and video communication data) to be processed or already processed by the processor 601 and modules in the electronic device 600, and may be implemented by a FLASH Memory (FLASH) or a Random Access Memory (RAM). Data may be transferred between the processor 601, the communication interface 602, and the memory 603 via the bus 604.
It is to be noted here that: the above description of the storage medium and device embodiments, similar to the description of the method embodiments above, has similar beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and the apparatus of the present disclosure, reference is made to the description of the embodiments of the method of the present disclosure.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present disclosure. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present disclosure, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure. The above-mentioned serial numbers of the embodiments of the present disclosure are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a component of' 8230; \8230;" does not exclude the presence of another like element in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only one logical function division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present disclosure may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing an electronic device (which may be a personal computer, a server, or a network device) to execute all or part of the methods according to the embodiments of the present disclosure. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only an embodiment of the present disclosure, but the scope of the present disclosure is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions should be covered by the scope of the present disclosure.

Claims (26)

1. A method for displaying a screen, the method comprising:
responding to a display instruction for displaying a first OSD image, and determining a first storage node matched with the display instruction from at least one storage node in a preset linked list; each storage node in the linked list is respectively used for storing the associated information of one OSD image block;
determining at least one target OSD image block based on the associated information in the first storage node;
generating the first OSD image based on each target OSD image block;
and generating the picture based on the first OSD image, and displaying the picture.
2. The method according to claim 1, wherein the association information includes chain domain information and color information;
the determining at least one target OSD image block based on the associated information in the first storage node includes:
determining one target OSD image block based on the color information in the first storage node;
and determining at least one target OSD image block based on the chain domain information in the first storage node under the condition that the chain domain information in the first storage node is not empty.
3. The method of claim 2, wherein the chain domain information comprises left chain domain information and right chain domain information, the left chain domain information comprises address information of a last first storage node associated with the first storage node, and the right chain domain information comprises address information of a next first storage node associated with the first storage node;
the determining at least one target OSD image block based on the chain domain information in the first storage node includes:
determining at least one target OSD image block based on the address information in the right-chain domain information of the first storage node under the condition that the address information in the right-chain domain information of the first storage node is not empty;
and determining at least one target OSD image block based on the address information in the left-chain domain information of the first storage node under the condition that the address information in the left-chain domain information of the first storage node is not empty.
4. The method according to claim 3, wherein the determining at least one target OSD image block based on address information in the right-chain domain information of the first storage node comprises:
acquiring a next first storage node based on the address information in the right-chain domain information of the first storage node;
determining one target OSD image block based on the color information in the next first storage node;
and determining at least one target OSD image block based on the address information in the right-chain domain information of the next first storage node under the condition that the address information in the right-chain domain information of the next first storage node is not empty.
5. The method of claim 2, wherein the color information comprises a color mapping table and color index information;
determining one of the target OSD image blocks based on the color information in the first storage node includes:
and searching color information matched with the color index information from the color mapping table based on the color index information in the first storage node, and taking the color information as the color information of the target OSD image block.
6. The method according to any one of claims 1 to 5, further comprising:
in response to receiving a scaling instruction, determining a scaling coefficient matching the scaling instruction;
and carrying out scaling processing on the first OSD image according to the scaling coefficient.
7. The method of claim 6, wherein determining a scaling factor that matches a scaling instruction in response to receiving the scaling instruction comprises at least one of:
determining the scaling coefficient based on the original resolution and the changed resolution of the image frame to be displayed under the condition that the scaling instruction is a first scaling instruction;
and when the scaling instruction is a second scaling instruction, determining the scaling coefficient based on the second scaling instruction, wherein the second scaling instruction and the first scaling instruction are generated in different modes.
8. The method of claim 6, wherein the scaling the first OSD image according to the scaling factor comprises at least one of:
according to the scaling coefficient, scaling the target attribute of the first OSD image, wherein the target attribute comprises at least one of the following: coordinates of the upper left corner, the size and the lower right corner;
and respectively carrying out scaling processing on the transparent area and the non-transparent area in the first OSD image according to the scaling coefficient.
9. The method according to any one of claims 1 to 5, further comprising:
in response to receiving a generation instruction of a second OSD image, determining a configuration object associated with the second OSD image from the linked list;
and configuring the configuration object based on the configuration information in the generation instruction to generate the second OSD image.
10. The method of claim 9, wherein in the case where the generate instruction is a modify instruction, the configuration object comprises a second storage node;
the configuring the configuration object based on the configuration information in the generating instruction comprises at least one of the following steps:
under the condition that the modification instruction comprises a deletion instruction, acquiring a last second storage node based on address information in the left chain domain information of the second storage node; acquiring a next second storage node based on the address information in the right-chain domain information of the second storage node; modifying the address information in the right-chain domain information of the last second storage node into the address information of the next second storage node, and modifying the address information in the left-chain domain information of the next second storage node into the address information of the last second storage node;
under the condition that the modification instruction comprises an adding instruction, acquiring a third storage node based on configuration information in the adding instruction; acquiring a fourth storage node based on the address information in the right-chain domain information of the second storage node; modifying the address information in the right-chain domain information of the second storage node into the address information of the third storage node, modifying the address information in the left-chain domain information of the third storage node into the address information of the second storage node, modifying the address information in the right-chain domain information of the third storage node into the address information of the fourth storage node, and modifying the address information in the left-chain domain information of the fourth storage node into the address information of the third storage node;
under the condition that the modification instruction is an interchange instruction, acquiring a fifth storage node based on configuration information in the interchange instruction; acquiring a previous second storage node based on the address information in the left-chain domain information of the second storage node; acquiring a sixth storage node based on the address information in the right-chain domain information of the fifth storage node; interchanging address information in the left-chain domain information of the second storage node and address information in the left-chain domain information of the fifth storage node, interchanging address information in the right-chain domain information of the second storage node and address information in the right-chain domain information of the fifth storage node, modifying the address information in the right-chain domain information of the previous second storage node into the address information of the fifth storage node, and modifying the address information in the left-chain domain information of the sixth storage node into the address information of the fifth storage node;
and modifying the second storage node based on the configuration information in the adjusting instruction under the condition that the modifying instruction is the adjusting instruction.
11. The method according to claim 9, wherein in the case that the generation instruction is a new instruction, the configuration object includes at least one seventh storage node;
the configuring the configuration object based on the configuration information in the generation instruction comprises:
and respectively configuring each seventh storage node based on the configuration information in the newly added instruction.
12. The method according to any one of claims 1 to 5, further comprising:
in response to receiving a switching instruction, determining a target transparency matching the switching instruction, and adjusting the transparency of the first OSD image to the target transparency.
13. The method according to any one of claims 1-5, wherein the generating the picture based on the first OSD image comprises:
and aliasing the first OSD image and the image frame to be displayed to generate the picture.
14. The method of claim 13, wherein the aliasing the first OSD image with an image frame to be displayed to generate the picture comprises:
determining a first transparency of the first OSD image;
determining a first image based on the first OSD image and the first transparency;
determining a second image based on the image frame to be displayed and the first transparency;
and aliasing the first image and the second image to generate the picture.
15. A picture display system, characterized in that the system comprises a processing device and a display device, wherein:
the processing device is used for receiving a display instruction for displaying the first OSD image; determining a first storage node matched with the display instruction from at least one storage node in a preset linked list based on the display instruction, wherein each storage node in the linked list is respectively used for storing the associated information of one OSD image block; determining at least one target OSD image block based on the associated information in the first storage node; generating the first OSD image based on each target OSD image block; generating the picture based on the first OSD image; sending the picture to the display device;
and the display equipment is used for receiving and displaying the picture sent by the processing equipment.
16. The system of claim 15, wherein the processing device comprises a first electronic device and a first driving device;
the first electronic device is used for responding to the received display instruction and determining first address information matched with the display instruction, wherein the first address information represents the position of the first storage node in the linked list; sending the first address information to the first driving device;
the first driving device is configured to, in response to receiving the first address information sent by the first electronic device, obtain the first storage node matched with the first address information from the linked list; determining at least one target OSD image block based on the associated information in the first storage node; generating the first OSD image based on each target OSD image block; generating the picture based on the first OSD image; and sending the picture to the display equipment.
17. The system of claim 16, wherein the first driving device comprises processing means, mixing means, and OSD means;
the processing device is used for receiving the image frame to be displayed sent by the electronic equipment; generating a time sequence control signal based on the image frame to be displayed; sending the time sequence control signal to the OSD device, and sending the image frame to be displayed to the mixing device;
the OSD device is used for responding to the received time sequence control signal sent by the processing device and sending the first OSD image to the mixing device;
the mixing device is used for responding to the first OSD image sent by the OSD device, aliasing the first OSD image and the image frame to be displayed received from the processing device, and generating the picture; and sending the picture to the display equipment.
18. The system of claim 16 or 17,
the first electronic device is further used for responding to the received scaling instruction and determining a scaling coefficient matched with the scaling instruction; sending the scaling factor to the first driving device;
the first driving device is further configured to receive the scaling factor sent by the first electronic device; and carrying out scaling processing on the first OSD image according to the scaling coefficient.
19. The system of claim 16 or 17,
the first electronic equipment is further used for responding to the received switching instruction and determining the target transparency matched with the switching instruction; sending the target transparency to the first driving device;
the first driving device is further configured to receive the target transparency sent by the first electronic device; and adjusting the transparency of the first OSD image to the target transparency.
20. The system of claim 16 or 17,
the first electronic device is further configured to determine, in response to receiving a generation instruction for a second OSD image, second address information representing address information of a configuration object associated with the second OSD image in the linked list; sending the second address information and the generation instruction to the first driving device;
the first driving device is further configured to receive the second address information and the generation instruction sent by the first electronic device; acquiring the configuration object matched with the second address information from the linked list; and configuring the configuration object based on the configuration information in the generation instruction to generate the second OSD image.
21. The system of claim 15, wherein the processing device comprises a second electronic device and a second driving device;
the second electronic device is used for responding to the received display instruction and acquiring the first storage node matched with the display instruction from the linked list; determining at least one target OSD image block based on the associated information in the first storage node; generating the first OSD image based on each target OSD image block; sending the first OSD image to the second driving device;
the second driving device is used for responding to the first OSD image sent by the second electronic device and generating the picture based on the first OSD image; and sending the picture to the display equipment.
22. The system of claim 21,
the second electronic device is further configured to, in response to receiving a generation instruction for a second OSD image, obtain a configuration object associated with the second OSD image from the linked list; configuring the configuration object based on configuration information in the generation instruction to generate the second OSD image; sending the second OSD image to the second driving device;
the second driving device is further configured to receive the second OSD image sent by the second electronic device; aliasing the second OSD image and an image frame to be displayed to generate the picture; and sending the picture to the display equipment.
23. The system of claim 22, wherein the second electronic device comprises a processor and a generator;
the processor is configured to analyze the received generation instruction, and acquire the configuration object from the linked list; sending the configuration object and the generation instruction to the generator;
the generator is used for receiving the configuration object and the generation instruction sent by the processor; configuring the configuration object based on configuration information in the generation instruction to generate the second OSD image; and sending the second OSD image to the second driving device.
24. A picture display apparatus, characterized in that the apparatus comprises: comprising the system of any one of claims 15 to 23.
25. An electronic device comprising a processor and a memory, said memory storing a computer program operable on the processor, wherein said processor implements the method of any of claims 1 to 14 when executing said computer program.
26. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 14.
CN202211328596.9A 2022-10-27 2022-10-27 Picture display method, system and device, electronic equipment and storage medium Pending CN115639933A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211328596.9A CN115639933A (en) 2022-10-27 2022-10-27 Picture display method, system and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211328596.9A CN115639933A (en) 2022-10-27 2022-10-27 Picture display method, system and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115639933A true CN115639933A (en) 2023-01-24

Family

ID=84947643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211328596.9A Pending CN115639933A (en) 2022-10-27 2022-10-27 Picture display method, system and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115639933A (en)

Similar Documents

Publication Publication Date Title
CN106611435B (en) Animation processing method and device
US20090002368A1 (en) Method, apparatus and a computer program product for utilizing a graphical processing unit to provide depth information for autostereoscopic display
KR20040062564A (en) Systems and methods for generating visual representations of graphical data and digital document processing
CN112788379A (en) Display apparatus and method
WO2022068293A1 (en) Page display method and apparatus
CN113645476B (en) Picture processing method and device, electronic equipment and storage medium
US6424342B1 (en) Decompressing and compositing graphical image data
CN112651475B (en) Two-dimensional code display method, device, equipment and medium
CN112102422B (en) Image processing method and device
CN113742025B (en) Page generation method, device, equipment and storage medium
CN112788235A (en) Image processing method, image processing device, terminal equipment and computer readable storage medium
CN112395030A (en) Page processing method and device, electronic device and storage medium
CN114399437A (en) Image processing method and device, electronic equipment and storage medium
WO2022088834A1 (en) Dynamic photograph album generation method, server, display terminal and readable storage medium
WO2004107765A1 (en) 3-dimensional video display device, text data processing device, program, and storage medium
CN112686939A (en) Depth image rendering method, device and equipment and computer readable storage medium
CN114570020A (en) Data processing method and system
CN114520924A (en) Bullet screen display method and device
US11593908B2 (en) Method for preprocessing image in augmented reality and related electronic device
CN112231029A (en) Frame animation processing method applied to theme
WO2023193524A1 (en) Live streaming video processing method and apparatus, electronic device, computer-readable storage medium, and computer program product
CN115639933A (en) Picture display method, system and device, electronic equipment and storage medium
US9317891B2 (en) Systems and methods for hardware-accelerated key color extraction
CN114443182A (en) Interface switching method, storage medium and terminal equipment
CN114676360B (en) Image processing method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination