CN114979749A - Graphical interface drawing method, electronic device and readable storage medium - Google Patents

Graphical interface drawing method, electronic device and readable storage medium Download PDF

Info

Publication number
CN114979749A
CN114979749A CN202210720720.XA CN202210720720A CN114979749A CN 114979749 A CN114979749 A CN 114979749A CN 202210720720 A CN202210720720 A CN 202210720720A CN 114979749 A CN114979749 A CN 114979749A
Authority
CN
China
Prior art keywords
graphical interface
display data
decoded
data
elements
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210720720.XA
Other languages
Chinese (zh)
Other versions
CN114979749B (en
Inventor
付华东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202210720720.XA priority Critical patent/CN114979749B/en
Publication of CN114979749A publication Critical patent/CN114979749A/en
Application granted granted Critical
Publication of CN114979749B publication Critical patent/CN114979749B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8146Monomedia components thereof involving graphical data, e.g. 3D object, 2D graphics

Abstract

The invention discloses a graphical interface drawing method, a graphical interface drawing device, electronic equipment and a readable storage medium, which are applied to the technical field of graphical drawing, wherein the graphical interface drawing method comprises the following steps: receiving a drawing request of a graphical interface, and determining an element to be decoded of the graphical interface according to the drawing request; determining an element which can not be multiplexed and an element which can be multiplexed in the element to be decoded; decoding the non-reusable elements to obtain first display data, and acquiring second display data corresponding to the reusable elements from a secondary memory drawing area; combining the first display data and the second display data into the graphical interface data; and copying the graphical interface data to a main memory drawing area to draw the graphical interface. The method realizes the drawing of the graphical interface through memory copy, and a user cannot feel the decoding display refreshing process of the picture, so that better interactive experience is brought to the user, and the technical problem of low graphical drawing speed in the prior art is solved.

Description

Graphical interface drawing method, electronic device and readable storage medium
Technical Field
The invention relates to the technical field of graphic drawing, in particular to a graphic interface drawing method, electronic equipment and a readable storage medium.
Background
With the popularization of home networks and the improvement of hardware performance of televisions, televisions are increasingly developing in the direction of networking and intellectualization. With the release of the google android system, the intelligent process of the television industry is greatly accelerated. However, the android system is originally designed for small mobile devices such as mobile phones, and various problems still exist when android is transplanted to large-screen devices such as televisions, and the biggest challenge for graphical interfaces is performance. For a smart television, the common resolutions are 1280 × 720 and 1920 × 1080, while the CPU, the memory, and the like are not much different from the current configuration of the mobile phone, in other words, the pixels of the android system on the television, which need to be processed under similar hardware performance, are 2.5 times to 5.5 times as many as those of the mobile phone device. At present, when a graph interface is drawn on a television, a picture needs to be decoded first, then decoded data is stored in a display memory and finally displayed, if the decoding capability of a processor of the television is limited, the time required for decoding the picture is long, and the system can be felt to be slow in operation and slow in pause, so that the graph drawing speed is slow.
Disclosure of Invention
The invention mainly aims to provide a graphical interface drawing method, a graphical interface drawing device, electronic equipment and a readable storage medium, and aims to solve the technical problem of low graphical drawing speed in the prior art.
In order to achieve the above object, the present invention provides a graphical interface drawing method applied to a graphical interface drawing device, the graphical interface drawing method comprising:
receiving a drawing request of a graphical interface, and determining an element to be decoded of the graphical interface according to the drawing request;
determining an element which can not be multiplexed and an element which can be multiplexed in the element to be decoded;
decoding the non-reusable elements to obtain first display data, and acquiring second display data corresponding to the reusable elements from a secondary memory drawing area;
combining the first display data and the second display data into the graphical interface data;
and copying the graphical interface data to a main memory drawing area to draw the graphical interface.
Optionally, the step of determining an element that is not multiplexed and an element that is multiplexed in the element to be decoded includes:
acquiring a graphical interface of the previous moment;
if the current graphical interface and the graphical interface at the previous moment are determined to be different interfaces, matching the current element to be decoded with the element to be decoded at the previous moment;
and taking the successfully matched elements to be decoded as reusable elements and taking the unsuccessfully matched elements to be decoded as non-reusable elements.
Optionally, after the step of copying the graphical interface data to a main memory rendering area to render the graphical interface, the graphical interface rendering method further includes:
determining whether each element forming the graphical interface is a reusable element;
and copying the second display data corresponding to the reusable elements to a secondary memory drawing area and caching.
Optionally, after the step of copying and caching the second display data corresponding to the reusable element to the secondary memory rendering area, the graphical interface rendering method further includes:
and if the fact that the residual storage space of the secondary memory drawing area is smaller than a preset storage space threshold value is detected, releasing the second display data cached in the secondary memory drawing area until the residual storage space of the secondary memory drawing area is not smaller than the preset storage space threshold value.
Optionally, the step of releasing the second display data cached in the secondary memory rendering area includes:
determining the historical use frequency of each second display data cached in the secondary memory drawing area;
sequencing each second display data according to the historical use frequency to obtain a data use frequency sequence;
and sequentially releasing the second display data in the sorted columns in the data use frequency sequence.
Optionally, the step of combining the first display data and the second display data into the graphical interface data includes:
determining preset position coordinates of the first display data and the second display data;
and combining the first display data and the second display data into the graphical interface data according to the preset position coordinates.
Optionally, before the step of combining the first display data and the second display data into the graphical interface data according to the preset position coordinate, the graphical interface drawing method further includes:
acquiring second display data cached in the secondary memory drawing area;
performing image transformation processing on the second display data to obtain at least once processed second display data;
and copying the processed second display data to the main memory drawing area so as to continuously draw the transformation animation of the graphical interface.
In order to achieve the above object, the present invention further provides a graphical interface drawing device, where the graphical interface drawing device is applied to a graphical interface drawing device, and the graphical interface drawing device includes:
the device comprises a drawing request module, a decoding module and a decoding module, wherein the drawing request module is used for receiving a drawing request of a graphical interface and determining an element to be decoded of the graphical interface according to the drawing request;
the multiplexing judgment module is used for determining the non-multiplexing elements and the multiplexing elements in the elements to be decoded;
the element decoding module is used for decoding the non-reusable elements to obtain first display data and acquiring second display data corresponding to the reusable elements from the secondary memory drawing area;
the interface combination module is used for combining the first display data and the second display data into the graphical interface data;
and the interface drawing module is used for copying the graphical interface data to a main memory drawing area so as to draw the graphical interface.
Optionally, the multiplexing determining module is further configured to:
acquiring a graphical interface of the previous moment;
if the current graphical interface and the graphical interface at the previous moment are determined to be different interfaces, matching the current element to be decoded with the element to be decoded at the previous moment;
and taking the successfully matched elements to be decoded as reusable elements and taking the unsuccessfully matched elements to be decoded as non-reusable elements.
Optionally, the interface drawing module is further configured to:
determining whether each element composing the graphical interface is a reusable element;
and copying the second display data corresponding to the reusable elements to a secondary memory drawing area and caching.
Optionally, the interface drawing module is further configured to:
and if the fact that the residual storage space of the secondary memory drawing area is smaller than a preset storage space threshold value is detected, releasing the second display data cached in the secondary memory drawing area until the residual storage space of the secondary memory drawing area is not smaller than the preset storage space threshold value.
Optionally, the interface drawing module is further configured to:
determining the historical use frequency of each second display data cached in the secondary memory drawing area;
sequencing each second display data according to the historical use frequency to obtain a data use frequency sequence;
and sequentially releasing the second display data in the sorted columns in the data use frequency sequence.
Optionally, the interface combination module is further configured to:
determining preset position coordinates of the first display data and the second display data;
and combining the first display data and the second display data into the graphical interface data according to the preset position coordinates.
Optionally, the interface combination module is further configured to:
acquiring second display data cached in the secondary memory drawing area;
performing image transformation processing on the second display data to obtain at least once processed second display data;
and copying the processed second display data to the main memory drawing area so as to continuously draw the transformation animation of the graphical interface.
The present invention also provides an electronic device, including: the graphical interface drawing method comprises a memory, a processor and a program of the graphical interface drawing method stored on the memory and capable of running on the processor, wherein the program of the graphical interface drawing method can realize the steps of the graphical interface drawing method when being executed by the processor.
The invention further provides a readable storage medium, which is a computer readable storage medium, wherein a program for implementing the graphical interface rendering method is stored on the computer readable storage medium, and when the program for implementing the graphical interface rendering method is executed by a processor, the steps of the graphical interface rendering method are implemented.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the graphical interface rendering method as described above.
The embodiment of the invention provides a graphical interface drawing method, namely, a drawing request of a graphical interface is received, and an element to be decoded of the graphical interface is determined according to the drawing request; determining an element which can not be multiplexed and an element which can be multiplexed in the element to be decoded; decoding the non-reusable elements to obtain first display data, and acquiring second display data corresponding to the reusable elements from a secondary memory drawing area; combining the first display data and the second display data into the graphical interface data; the graphical interface data is copied to a main memory drawing area to draw the graphical interface, different elements in the graphical interface are decoded and directly acquired respectively, so that the situation that a part of graphical elements occupy CPU resources due to repeated decoding is avoided, the decoded first element data and the decoded second element data are combined in an increased secondary memory drawing area, and the combined graphical interface data are copied through memory data and sent to the main memory drawing area to rapidly display related images in the main drawing area, so that a user cannot feel the decoding display refreshing process of the graphical interface, and the graphical drawing speed is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive labor.
FIG. 1 is a schematic flow chart diagram illustrating a graphical interface rendering method according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a hardware operating environment related to a graphical interface drawing method in the embodiment of the present invention.
The objects, features and advantages of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
An embodiment of the present invention provides a graphical interface drawing method, and in a first embodiment of the graphical interface drawing method of the present invention, referring to fig. 1, the graphical interface drawing method includes:
step S10, receiving a drawing request of a graphical interface, and determining an element to be decoded of the graphical interface according to the drawing request;
step S20, determining an element which can not be multiplexed and an element which can be multiplexed in the element to be decoded;
step S30, decoding the non-reusable elements to obtain first display data, and acquiring second display data corresponding to the reusable elements from a secondary memory drawing area;
step S40, combining the first display data and the second display data into the graphical interface data;
and step S50, copying the graphical interface data to a main memory drawing area to draw the graphical interface.
In this embodiment, it should be noted that, at present, the display resolution of the graphics of the television platform is 1920 × 1080, and a display storage space, defined as a buffer display area, may be added to the display storage module for buffering the decoded picture element data. The added display area may be defined as 1920 x 600, which is not visible to the user and is the secondary memory drawing area of the present invention. The original display area can be used as a main memory drawing area, the added cache display area is used as a secondary memory drawing area for auxiliary drawing, the main memory drawing area is used for acquiring graphical interface data to skip the decoding step to directly draw a complete graphical interface, so that a user can directly see the graphical interface instead of each decoded element when watching, the secondary memory drawing area is used for decoding the elements and caching second display data of reusable elements, various data are combined into complete graphical interface data, and the steps performed in the secondary memory drawing area cannot be seen by the user; the graphical interface is formed by combining a plurality of elements according to preset position coordinates, the elements comprise non-reusable elements and reusable elements, the non-reusable elements need to be decoded to obtain first display data, the decoded reusable elements are copied in advance to be cached in the secondary memory drawing area, decoding is not needed, and the first display data can be directly obtained from the secondary memory drawing area.
Illustratively, the steps S10 to S50 include:
receiving a drawing request of a graphical interface, decomposing the graphical interface according to the drawing request, and acquiring an element to be decoded; determining an element which can not be multiplexed and an element which can be multiplexed in the element to be decoded; decoding the non-reusable elements to obtain first display data, and acquiring decoded second display data of the non-reusable elements from a secondary memory drawing area; combining the first display data and the second display data into graphical interface data; and copying the graphical interface data to a main memory drawing area to directly draw the graphical interface.
Specifically, a graphical interface is decomposed into elements taking a single icon as a unit, an element which can not be multiplexed and an element which can be multiplexed in each element are determined, the element which can not be multiplexed is decoded, first display data is obtained, if the element which can be multiplexed is decoded in advance, second display data after decoding is directly obtained from the secondary memory drawing area, the first display data and the second display data determine a position relation according to a preset position coordinate, the first display data and the second display data are combined into complete graphical interface data, the graphical interface data are copied to the main memory drawing area, so that the graphical interface is directly drawn according to the main memory drawing area, the process that users view images to decode and display one by one is avoided, meanwhile, the decoding process of partial elements is reduced, the situation that CPU resources are occupied due to repeated decoding of partial graphical elements is avoided, and the use efficiency of a CPU is improved, the speed of drawing the graph is improved.
In step S20, the step of determining an element that is not reusable and an element that is reusable in the elements to be decoded includes:
step A10, obtaining a graphical interface of the previous moment;
step A20, if the current graphical interface and the graphical interface at the previous moment are determined to be different interfaces, matching the current element to be decoded with the element to be decoded at the previous moment;
and step A30, taking the successfully matched elements to be decoded as reusable elements, and taking the unsuccessfully matched elements to be decoded as non-reusable elements.
In this embodiment, it should be noted that the graphical interface is refreshed according to a fixed frequency, and if the same element component exists in different pictures in different interfaces, the component may be cached in the secondary memory rendering area after decoding, and when the cached component needs to be used, the decoding process may be skipped to directly obtain decoded data.
Illustratively, steps a10 through a30 include:
and acquiring a graphical interface at the previous moment, if the graphical interface at the previous moment is different from the current graphical interface, matching the element to be decoded of the current graphical interface with the element to be decoded at the previous moment, taking the element to be decoded which is successfully matched as a reusable element, and taking the element to be decoded which is failed to be matched as an un-reusable element.
In step S50, after the step of copying the gui data to the main memory drawing area to draw the gui, the gui drawing method further includes:
step S60, determining whether each element composing the graphical interface is a reusable element;
and step S70, copying and caching the second display data corresponding to the reusable element to the secondary memory rendering area.
In this embodiment, it should be noted that when it is determined that a reusable element is a reusable element for the first time, the reusable element needs to be cached in the secondary memory drawing area, and the reusable element is an element that needs to be repeatedly used in the subsequent drawing of the graphical interface, for example, the realization of a progress bar such as a waiting animation icon for rotation and the adjustment of volume is performed.
Illustratively, the steps S60 to S70 include:
after the graphical interface is drawn, if it is detected that part of elements of the graphical interface need to be used repeatedly in the subsequent graphical interface drawing, the elements are determined to be reusable data, second display data corresponding to the reusable elements are subjected to memory copying and are cached in the secondary memory drawing area, and when the secondary memory drawing area needs to be used next time, the part of second display data is extracted and used.
At S70, after the step of copying and caching the second display data corresponding to the reusable element to the secondary memory rendering area, the graphical interface rendering method further includes:
step a10, if it is detected that the remaining storage space of the secondary memory rendering area is smaller than a preset storage space threshold, releasing the second display data cached in the secondary memory rendering area until the remaining storage space of the secondary memory rendering area is not smaller than the preset storage space threshold.
Illustratively, step a10 includes:
if the remaining memory space in the secondary memory drawing area is detected to be insufficient and the remaining memory space is smaller than the preset memory space threshold, releasing the second display data cached in the secondary memory drawing area, automatically adjusting the second display data according to the use condition of the memory, if the memory is more, caching more data, and if the memory is less, releasing a part of the cache, so that the memory overflow is avoided, the use efficiency of the CPU is improved, and a complex and dynamic image interface can be quickly displayed.
In step a10, the step of releasing the second display data cached in the secondary memory rendering area includes:
step a11, determining a historical usage frequency of each second display data cached in the secondary memory rendering area;
step A12, sorting each second display data according to the historical use frequency to obtain a data use frequency sequence;
and step A13, sequentially releasing the second display data in the sorted columns in the data use frequency sequence.
Illustratively, steps a11 through a13 include:
determining the historical use frequency of each second display data cached in the secondary memory drawing area, and sequencing each second display data according to the historical use frequency to obtain a data use frequency sequence; and releasing the second display data in the sorted column according to the data use frequency sequence until the residual storage space of the secondary memory drawing area is not less than the preset storage space threshold.
In step S40, the step of combining the first display data and the second display data into the graphical interface data includes:
step B10, determining the preset position coordinates of the first display data and the second display data;
and step B20, combining the first display data and the second display data into the graphical interface data according to the preset position coordinates.
Illustratively, steps B10 through B20 include:
and determining the preset position coordinates of the first display data and the second display data by a graphical interface, determining the positions of the first display data and the second display data on the graphical interface according to the preset position coordinates, and combining to obtain graphical interface data.
Before the step of combining the first display data and the second display data into the graphical interface data according to the preset position coordinates in step S40, the graphical interface drawing method further includes:
step C10, obtaining the second display data cached in the secondary memory drawing area;
step C20, performing image transformation processing on the second display data to obtain second display data subjected to at least one processing;
and step C30, copying the processed second display data to the main memory drawing area for continuously drawing the transformation animation of the graphical interface.
In this embodiment, the image transformation process may be an enlargement process, a reduction process, a shape change process, a position transformation process, or the like of the reusable element corresponding to the second display data.
Illustratively, the step C10 through step C30 include:
acquiring second display data cached in a secondary memory drawing area, and performing various image change processing on the second display data to obtain second display data subjected to at least one processing; and copying the processed second display data to the main memory drawing area for drawing the graphical interface.
The second display data is directly copied and displayed after being processed for one time, the second display data processed for the second time is obtained at the next moment, the data is also copied and displayed, and after the same second display data is subjected to image transformation processing for multiple times, the dynamic target image display effect can be smoothly and quickly realized.
The embodiment of the invention provides a graphical interface drawing method, namely, a drawing request of a graphical interface is received, and an element to be decoded of the graphical interface is determined according to the drawing request; determining an element which can not be multiplexed and an element which can be multiplexed in the element to be decoded; decoding the non-reusable elements to obtain first display data, and acquiring second display data corresponding to the reusable elements from a secondary memory drawing area; combining the first display data and the second display data into the graphical interface data; the graphical interface data is copied to a main memory drawing area to draw the graphical interface, different elements in the graphical interface are respectively decoded and directly acquired, so that the occupation of CPU (Central processing Unit) resources caused by repeated decoding of partial graphical elements is avoided, the decoded first element data and second element data are combined in an increased secondary memory drawing area, and the combined graphical interface data is copied through memory data and sent to the main memory drawing area to rapidly display related images in the main drawing area, so that a user cannot feel the decoding display refreshing process of the graphical interface, and meanwhile, the graphical drawing speed is improved.
Example two
The embodiment of the present invention further provides a graphical interface drawing device, which is applied to a graphical interface drawing device, and the graphical interface drawing device includes:
the device comprises a drawing request module, a decoding module and a decoding module, wherein the drawing request module is used for receiving a drawing request of a graphical interface and determining an element to be decoded of the graphical interface according to the drawing request;
the multiplexing judgment module is used for determining an element which can not be multiplexed and an element which can be multiplexed in the elements to be decoded;
the element decoding module is used for decoding the non-reusable elements to obtain first display data and acquiring second display data corresponding to the reusable elements from the secondary memory drawing area;
the interface combination module is used for combining the first display data and the second display data into the graphical interface data;
and the interface drawing module is used for copying the graphical interface data to a main memory drawing area so as to draw the graphical interface.
Optionally, the multiplexing determining module is further configured to:
acquiring a graphical interface of the previous moment;
if the current graphical interface and the graphical interface at the previous moment are determined to be different interfaces, matching the current element to be decoded with the element to be decoded at the previous moment;
and taking the successfully matched elements to be decoded as reusable elements and taking the unsuccessfully matched elements to be decoded as non-reusable elements.
Optionally, the interface drawing module is further configured to:
determining whether each element composing the graphical interface is a reusable element;
and copying the second display data corresponding to the reusable elements to a secondary memory drawing area and caching.
Optionally, the interface drawing module is further configured to:
and if the fact that the residual storage space of the secondary memory drawing area is smaller than a preset storage space threshold value is detected, releasing the second display data cached in the secondary memory drawing area until the residual storage space of the secondary memory drawing area is not smaller than the preset storage space threshold value.
Optionally, the interface drawing module is further configured to:
determining the historical use frequency of each second display data cached in the secondary memory drawing area;
sequencing each second display data according to the historical use frequency to obtain a data use frequency sequence;
and sequentially releasing the second display data in the sorted columns in the data use frequency sequence.
Optionally, the interface combination module is further configured to:
determining preset position coordinates of the first display data and the second display data;
and combining the first display data and the second display data into the graphical interface data according to the preset position coordinates.
Optionally, the interface combination module is further configured to:
acquiring second display data cached in the secondary memory drawing area;
performing image transformation processing on the second display data to obtain at least once processed second display data;
and copying the processed second display data to the main memory drawing area so as to continuously draw the transformation animation of the graphical interface.
By adopting the graphical interface drawing method in the first embodiment, the graphical interface drawing device provided by the invention solves the technical problem of low graphical drawing speed. Compared with the prior art, the beneficial effects of the graphical interface drawing device provided by the embodiment of the invention are the same as the beneficial effects of the graphical interface drawing method provided by the embodiment, and other technical features of the graphical interface drawing device are the same as the features disclosed by the embodiment method, which are not repeated herein.
EXAMPLE III
An embodiment of the present invention provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the graphical interface drawing method in the first embodiment.
Referring now to FIG. 2, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 2 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 2, the electronic device may include a processing apparatus (e.g., a central processing unit, a graphic processor, etc.) that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage apparatus into a Random Access Memory (RAM). In the RAM, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device, the ROM, and the RAM are connected to each other by a bus. An input/output (I/O) interface is also connected to the bus.
Generally, the following systems may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, and the like; output devices including, for example, Liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage devices including, for example, magnetic tape, hard disk, etc.; and a communication device. The communication means may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device with various systems, it is to be understood that not all illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from a storage means, or installed from a ROM. The computer program, when executed by a processing device, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
By adopting the graphical interface drawing method in the first embodiment, the electronic device provided by the invention solves the technical problem of low graphical drawing speed. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the invention are the same as the beneficial effects of the graphical interface drawing method provided by the first embodiment, and other technical features of the electronic device are the same as those disclosed in the embodiment method, which are not repeated herein.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Example four
The present embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon for performing the method of graph drawing in the first embodiment.
The computer readable storage medium provided by the embodiments of the present invention may be, for example, a USB flash disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination thereof. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer-readable storage medium may be embodied in an electronic device; or may be present alone without being incorporated into the electronic device.
The computer readable storage medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a drawing request of a graphical interface, and determining an element to be decoded of the graphical interface according to the drawing request; determining an element which can not be multiplexed and an element which can be multiplexed in the element to be decoded; decoding the non-reusable elements to obtain first display data, and acquiring second display data corresponding to the reusable elements from a secondary memory drawing area; combining the first display data and the second display data into the graphical interface data; and copying the graphical interface data to a main memory drawing area to draw the graphical interface.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the names of the modules do not in some cases constitute a limitation of the unit itself.
The computer-readable storage medium provided by the invention stores the computer-readable program instruction for executing the graphical interface drawing method, and solves the technical problem of low graphical drawing speed. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the invention are the same as those of the graphical interface drawing method provided by the first embodiment, and are not repeated herein.
EXAMPLE five
The invention also provides a computer program product comprising a computer program which, when executed by a processor, carries out the steps of the graphical interface rendering method as described above.
The computer program product provided by the invention solves the technical problem of low graph drawing speed. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present invention are the same as those of the graphical interface drawing method provided by the first embodiment, and are not described herein again.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A graphical interface drawing method is characterized by comprising the following steps:
receiving a drawing request of a graphical interface, and determining an element to be decoded of the graphical interface according to the drawing request;
determining an element which can not be multiplexed and an element which can be multiplexed in the element to be decoded;
decoding the non-reusable elements to obtain first display data, and acquiring second display data corresponding to the reusable elements from a secondary memory drawing area;
combining the first display data and the second display data into the graphical interface data;
and copying the graphical interface data to a main memory drawing area to draw the graphical interface.
2. A graphical interface rendering method according to claim 1, wherein the step of determining the non-reusable and reusable elements of the elements to be decoded comprises:
acquiring a graphical interface of the previous moment;
if the current graphical interface and the graphical interface at the previous moment are determined to be different interfaces, matching the current element to be decoded with the element to be decoded at the previous moment;
and taking the successfully matched elements to be decoded as reusable elements and taking the unsuccessfully matched elements to be decoded as non-reusable elements.
3. The graphical interface rendering method of claim 1, wherein after the step of copying the graphical interface data to a main memory rendering area for rendering the graphical interface, the graphical interface rendering method further comprises:
determining whether each element composing the graphical interface is a reusable element;
and copying the second display data corresponding to the reusable elements to a secondary memory drawing area and caching.
4. The graphical interface rendering method of claim 3, wherein after the step of copying and caching the second display data corresponding to the reusable element to the secondary memory rendering area, the graphical interface rendering method further comprises:
and if the fact that the residual storage space of the secondary memory drawing area is smaller than a preset storage space threshold value is detected, releasing the second display data cached in the secondary memory drawing area until the residual storage space of the secondary memory drawing area is not smaller than the preset storage space threshold value.
5. A graphical interface rendering method as recited in claim 4, wherein said step of releasing said second display data cached in said secondary memory rendering region comprises:
determining historical use frequency of each second display data cached in the secondary memory drawing area;
sequencing each second display data according to the historical use frequency to obtain a data use frequency sequence;
and sequentially releasing the second display data in the sorted columns in the data use frequency sequence.
6. A graphical interface rendering method as recited in claim 1, wherein the step of combining the first display data and the second display data into the graphical interface data comprises:
determining preset position coordinates of the first display data and the second display data;
and combining the first display data and the second display data into the graphical interface data according to the preset position coordinates.
7. The graphical interface rendering method of claim 6, wherein prior to the step of combining the first display data and the second display data into the graphical interface data according to the preset position coordinates, the graphical interface rendering method further comprises:
acquiring second display data cached in the secondary memory drawing area;
performing image transformation processing on the second display data to obtain at least once processed second display data;
and copying the processed second display data to the main memory drawing area so as to continuously draw the transformation animation of the graphical interface.
8. A graphical interface rendering apparatus, comprising:
the device comprises a drawing request module, a decoding module and a decoding module, wherein the drawing request module is used for receiving a drawing request of a graphical interface and determining an element to be decoded of the graphical interface according to the drawing request;
the multiplexing judgment module is used for determining the non-multiplexing elements and the multiplexing elements in the elements to be decoded;
the element decoding module is used for decoding the non-reusable elements to obtain first display data and acquiring second display data corresponding to the reusable elements from the secondary memory drawing area;
the interface combination module is used for combining the first display data and the second display data into the graphical interface data;
and the interface drawing module is used for copying the graphical interface data to a main memory drawing area so as to draw the graphical interface.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the graphical interface rendering method of any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a program for implementing a graphical interface rendering method, the program being executable by a processor to implement the steps of the graphical interface rendering method according to any one of claims 1 to 7.
CN202210720720.XA 2022-06-23 2022-06-23 Graphic interface drawing method, electronic equipment and readable storage medium Active CN114979749B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210720720.XA CN114979749B (en) 2022-06-23 2022-06-23 Graphic interface drawing method, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210720720.XA CN114979749B (en) 2022-06-23 2022-06-23 Graphic interface drawing method, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN114979749A true CN114979749A (en) 2022-08-30
CN114979749B CN114979749B (en) 2024-03-22

Family

ID=82965933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210720720.XA Active CN114979749B (en) 2022-06-23 2022-06-23 Graphic interface drawing method, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114979749B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070073190A (en) * 2006-01-04 2007-07-10 삼성전자주식회사 Embedded system and a graphic user interface displaying method thereof
CN101983508A (en) * 2008-02-01 2011-03-02 活动视频网络有限公司 Automatic video program recording in an interactive television environment
CN106210576A (en) * 2016-07-13 2016-12-07 青岛海信电器股份有限公司 Display system, content display and content display method
CN109032712A (en) * 2018-06-01 2018-12-18 北京金山安全软件有限公司 Method and device for generating application program configuration diagram
CN110471700A (en) * 2019-08-06 2019-11-19 Oppo广东移动通信有限公司 Graphic processing method, device, storage medium and electronic equipment
CN111666318A (en) * 2019-03-05 2020-09-15 阿里巴巴集团控股有限公司 Graph drawing method and device and electronic equipment
CN113076050A (en) * 2021-04-25 2021-07-06 深圳创维-Rgb电子有限公司 Man-machine interaction method and device based on memory copy, television and storage medium
CN114359017A (en) * 2021-12-27 2022-04-15 阿波罗智联(北京)科技有限公司 Multimedia resource processing method and device and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070073190A (en) * 2006-01-04 2007-07-10 삼성전자주식회사 Embedded system and a graphic user interface displaying method thereof
CN101983508A (en) * 2008-02-01 2011-03-02 活动视频网络有限公司 Automatic video program recording in an interactive television environment
CN106210576A (en) * 2016-07-13 2016-12-07 青岛海信电器股份有限公司 Display system, content display and content display method
CN109032712A (en) * 2018-06-01 2018-12-18 北京金山安全软件有限公司 Method and device for generating application program configuration diagram
CN111666318A (en) * 2019-03-05 2020-09-15 阿里巴巴集团控股有限公司 Graph drawing method and device and electronic equipment
CN110471700A (en) * 2019-08-06 2019-11-19 Oppo广东移动通信有限公司 Graphic processing method, device, storage medium and electronic equipment
CN113076050A (en) * 2021-04-25 2021-07-06 深圳创维-Rgb电子有限公司 Man-machine interaction method and device based on memory copy, television and storage medium
CN114359017A (en) * 2021-12-27 2022-04-15 阿波罗智联(北京)科技有限公司 Multimedia resource processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN114979749B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
CN112738541B (en) Picture display method and device and electronic equipment
US20220394333A1 (en) Video processing method and apparatus, storage medium, and electronic device
CN109446025B (en) Operation behavior playback method and device, electronic equipment and readable medium
CN114470751B (en) Content acquisition method and device, storage medium and electronic equipment
CN114416261B (en) Information display method, device, equipment and medium
CN113535105B (en) Media file processing method, device, equipment, readable storage medium and product
CN114780197B (en) Split screen rendering method, device, equipment and storage medium
CN116596748A (en) Image stylization processing method, apparatus, device, storage medium, and program product
CN114979749B (en) Graphic interface drawing method, electronic equipment and readable storage medium
CN116248889A (en) Image encoding and decoding method and device and electronic equipment
CN113961280B (en) View display method and device, electronic equipment and computer readable storage medium
CN113138707B (en) Interaction method, interaction device, electronic equipment and computer-readable storage medium
CN111290812B (en) Display method, device, terminal and storage medium of application control
CN114092362A (en) Panoramic picture loading method and device
CN111177634A (en) Multi-language supporting file content loading method, device, equipment and medium
CN115348478B (en) Equipment interactive display method and device, electronic equipment and readable storage medium
CN111586261B (en) Target video processing method and device and electronic equipment
US20220292731A1 (en) Method and apparatus for text effect processing
CN110189279B (en) Model training method and device, electronic equipment and storage medium
CN113132649B (en) Image generation method and device, electronic equipment and computer readable storage medium
CN115187346B (en) Rental control graph display method and device, electronic equipment and readable storage medium
CN116028740A (en) Page display method and device, storage medium and electronic equipment
CN115314740A (en) Display page interaction control method and device, electronic equipment and readable storage medium
CN116492679A (en) Page rendering method, device, medium and electronic equipment
CN117311882A (en) Picture rendering method, device, equipment and 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
GR01 Patent grant
GR01 Patent grant