CN112700507A - Picture display method, computing device and storage medium - Google Patents

Picture display method, computing device and storage medium Download PDF

Info

Publication number
CN112700507A
CN112700507A CN202011579771.2A CN202011579771A CN112700507A CN 112700507 A CN112700507 A CN 112700507A CN 202011579771 A CN202011579771 A CN 202011579771A CN 112700507 A CN112700507 A CN 112700507A
Authority
CN
China
Prior art keywords
picture
display
display control
texture
computing device
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
CN202011579771.2A
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.)
Uniontech Software Technology Co Ltd
Original Assignee
Uniontech Software 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 Uniontech Software Technology Co Ltd filed Critical Uniontech Software Technology Co Ltd
Priority to CN202011579771.2A priority Critical patent/CN112700507A/en
Publication of CN112700507A publication Critical patent/CN112700507A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a picture display method which is suitable for being executed in computing equipment and comprises the following steps: decoding a target picture to obtain an original bitmap of the target picture; acquiring a display control associated with the target picture; acquiring a display area of the display control; creating a texture picture corresponding to the original bitmap, wherein the size of the texture picture is consistent with the size of a display area; and rendering the texture picture to a display memory corresponding to the display control. The method provided by the invention does not carry out zooming processing when the picture is decoded, and the original data of the picture is obtained after decoding, thereby ensuring that the picture data is not distorted before the purpose of the picture is determined, and ensuring that the picture is not distorted after the processing such as editing and the like is carried out based on the picture data. The invention also discloses corresponding computing equipment.

Description

Picture display method, computing device and storage medium
Technical Field
The present invention relates to the field of terminal display technologies, and in particular, to a picture display method, a computing device, and a storage medium.
Background
With the development of imaging technology, high-pixel, high-quality pictures, such as one hundred million pixels (12032x9024px), can be easily obtained, but how to display these pictures becomes a difficult problem. At present, pixels of display devices are 1080P, 2K, 4K and the like generally, even if the display devices with the pixels of 4K are used, the pictures with 1 hundred million pixels can not be displayed without processing, so that the pictures can not be normally used without processing if the pictures are used as UI interface elements, such as head images, icons and the like.
Currently, high-pixel pictures are displayed by the following methods: and carrying out zooming processing when the picture to be displayed is decoded, wherein the obtained picture data is reduced picture data, namely a reduced bitmap, picture textures are created based on the reduced bitmap, the picture textures are sent to a frame buffer area, the textures are zoomed in the frame buffer area according to the size of a display area of a display control, and the zoomed picture textures are rendered to display equipment. However, in the above method, since the scaling process is performed at the time of picture decoding, the obtained bitmap is distorted. Secondly, in the existing method, the texture picture is created according to the bitmap, and when the bitmap is larger, the created texture picture is larger, so that more memory resources are occupied, and the working efficiency of the system is reduced.
Therefore, a new picture display scheme is needed, so that the obtained bitmap is not distorted and the occupation of memory resources is reduced.
Disclosure of Invention
To this end, the present invention provides a picture display method, apparatus and computing device in an attempt to solve or at least alleviate the above-existing problems.
According to an aspect of the present invention, there is provided a picture display method adapted to be executed in a computing device, the method comprising:
decoding a target picture to obtain an original bitmap of the target picture;
acquiring a display control associated with the target picture;
acquiring a display area of the display control;
creating a texture picture corresponding to the original bitmap, wherein the size of the texture picture is consistent with the size of a display area;
and rendering the texture picture to a display memory corresponding to the display control.
Optionally, the original bitmap is picture data that has not been subjected to scaling processing after the target picture is decoded.
Optionally, the step of creating the texture picture corresponding to the original bitmap includes:
uploading the original bitmap to a GPU;
and creating a texture picture corresponding to the original bitmap through the GPU.
Optionally, the step of rendering the texture picture to the display memory corresponding to the display control includes:
sending the texture picture to a frame buffer area of the display control;
and rendering the texture picture in the frame buffer area to a display memory corresponding to the display control.
Optionally, the picture display method further includes:
reading the target picture, wherein the target picture is stored in a cache, and the picture in the cache comprises: pictures downloaded through network, pictures in memory, and pictures in disk.
Optionally, the display control comprises Imageview.
According to another aspect of the present invention, there is provided a picture display apparatus adapted to be executed in a computing device, the apparatus comprising:
the decoding unit is suitable for decoding a target picture to obtain an original bitmap of the target picture;
the acquisition unit is suitable for acquiring the display control associated with the target picture and acquiring the display area of the display control;
the creating unit is suitable for creating a texture picture corresponding to the original bitmap, wherein the size of the texture picture is consistent with that of a display area;
and the rendering unit is suitable for rendering the texture picture to the display memory corresponding to the display control.
Optionally, the original bitmap is picture data that has not been subjected to scaling processing after the target picture is decoded.
According to another aspect of the invention, there is provided a computing device comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, the program instructions comprising instructions for performing the method as described above.
According to yet another aspect of the present invention, there is provided a readable storage medium storing program instructions which, when read and executed by a computing device, cause the computing device to perform the method as described above.
The invention provides a picture display method, which does not carry out zooming processing when a picture is decoded, and original data of the picture is obtained after decoding, thereby ensuring that picture data is not distorted before the purpose of the picture is determined, and the picture is not distorted after editing and other processing are carried out based on the picture data. In addition, according to the scheme, the texture picture with the corresponding size is created according to the width and the height of the display area of the display control, which is equivalent to creating the texture picture according to needs, so that the occupation of memory resources is reduced when the texture picture is created, the phenomenon of blocking caused by the occupation of too much memory resources when the texture picture is created is avoided, and the operation efficiency of the system is improved. And because the texture picture is created as required, the size of the display area from the texture picture to the display control does not need to be reduced in the rendering step, the expenses of memory and the like of rendering hardware are reduced, the step of displaying the picture is simplified, and the picture displaying efficiency is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 shows a block diagram of a computing device 100, according to one embodiment of the invention;
FIG. 2 shows a flow diagram of a picture display method 200 according to one embodiment of the invention;
fig. 3 shows a schematic diagram of a picture display device 300 according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
With the development of imaging technology, high-pixel, high-quality pictures, such as one hundred million pixels (12032x9024px), can be easily obtained, but how to display these pictures becomes a difficult problem. At present, pixels of display devices are 1080P, 2K, 4K and the like generally, even if the display devices with the pixels of 4K are used, the pictures with 1 hundred million pixels can not be displayed without processing, so that the pictures can not be normally used without processing if the pictures are used as UI interface elements, such as head images, icons and the like.
Currently, high-pixel pictures are displayed by the following methods: and carrying out zooming processing when the picture to be displayed is decoded, wherein the obtained picture data is reduced picture data, namely a reduced bitmap, picture textures are created based on the reduced bitmap, the picture textures are sent to a frame buffer area, the textures are zoomed in the frame buffer area according to the size of a display area of a display control, and the zoomed picture textures are rendered to display equipment. However, in the above method, since the obtained bitmap is distorted by performing the scaling process during decoding of the picture, the true use of the decoded data cannot be determined during decoding, for example, if the picture is decoded and used for editing, rather than being used for displaying, the user cannot obtain the true picture data, and the edited picture is a distorted picture.
Secondly, in the existing method, the texture picture is created according to the bitmap, and when the resolution of the picture to be displayed is higher, the created texture picture is larger, occupies more memory resources, and reduces the working efficiency of the system. And then, in the rendering stage, the texture picture needs to be reduced to the size corresponding to the display area and then rendered to the display area, so that more memory resources are additionally occupied when the texture picture is created, the texture picture needs to be reduced to the size of the display area during rendering, the picture display process is complicated, and the picture display efficiency is reduced.
The invention provides a method for displaying pictures, which comprises the steps of firstly decoding a target picture to obtain an original bitmap of the target picture, obtaining a display control associated with the target picture, obtaining a display area of the display control, creating a texture picture corresponding to the original bitmap, wherein the size of the texture picture is consistent with that of the display area, and rendering the texture picture to a display memory corresponding to the display control. It can be seen from the above that, in the method, the scaling processing is not performed when the picture is decoded, and the decoded picture is the original data of the picture, so that the picture data is not distorted before the purpose of the picture is determined, and the picture is not distorted after the processing such as editing is performed based on the picture data. In addition, according to the scheme, the texture picture with the corresponding size is created according to the width and the height of the display area of the display control, which is equivalent to creating the texture picture according to needs, so that the occupation of memory resources is reduced when the texture picture is created, the phenomenon of blocking caused by the occupation of too much memory resources when the texture picture is created is avoided, and the operation efficiency of the system is improved. And because the texture picture is created as required, the size of the display area from the texture picture to the display control does not need to be reduced in the rendering step, the step of displaying the picture is simplified, and the picture displaying efficiency is improved.
The picture display method of the present invention is executed in a computing device, fig. 1 shows a block diagram of a computing device 100 according to an embodiment of the present invention, it should be noted that the computing device 100 shown in fig. 1 is only an example, and in practice, a computing device for implementing the load balancing method of the present invention may be any type of device, and the hardware configuration thereof may be the same as the computing device 100 shown in fig. 1 or different from the computing device 100 shown in fig. 1. In practice, the computing device for implementing the image display method of the present invention may add or delete hardware components of the computing device 100 shown in fig. 1, and the present invention does not limit the specific hardware configuration of the computing device.
The picture display method of the invention is suitable for being executed in one or a group of computing devices. The computing device may be, for example, a server (e.g., a Web server, an application server, etc.), a personal computer such as a desktop computer and a notebook computer, a portable mobile device such as a mobile phone, a tablet computer, a smart wearable device, etc., but is not limited thereto. According to a preferred embodiment, the picture display method of the present invention is performed in a computing device.
As shown in FIG. 1, in a basic configuration 102, a computing device 100 typically includes a system memory 106 and one or more processors 104. A memory bus 108 may be used for communication between the processor 104 and the system memory 106.
Depending on the desired configuration, the processor 104 may be any type of processing, including but not limited to: a microprocessor (μ P), a microcontroller (μ C), a Digital Signal Processor (DSP), or any combination thereof. The processor 104 may include one or more levels of cache, such as a level one cache 110 and a level two cache 112, a processor core 114, and registers 116. The example processor core 114 may include an Arithmetic Logic Unit (ALU), a Floating Point Unit (FPU), a digital signal processing core (DSP core), or any combination thereof. The example memory controller 118 may be used with the processor 104, or in some implementations the memory controller 118 may be an internal part of the processor 104.
Depending on the desired configuration, system memory 106 may be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. System memory 106 may include an operating system 120, one or more programs 122, and program data 124. In some implementations, the program 122 can be arranged to execute instructions on an operating system by one or more processors 104 using program data 124.
Computing device 100 may also include an interface bus 140 that facilitates communication from various interface devices (e.g., output devices 142, peripheral interfaces 144, and communication devices 146) to the basic configuration 102 via the bus/interface controller 130. The example output device 142 includes a graphics processing unit 148 and an audio processing unit 150. They may be configured to facilitate communication with various external devices, such as a display or speakers, via one or more a/V ports 152. Example peripheral interfaces 144 may include a serial interface controller 154 and a parallel interface controller 156, which may be configured to facilitate communication with external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.) via one or more I/O ports 158. An example communication device 146 may include a network controller 160, which may be arranged to facilitate communications with one or more other computing devices 162 over a network communication link via one or more communication ports 164.
A network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media, such as carrier waves or other transport mechanisms, in a modulated data signal. A "modulated data signal" may be a signal that has one or more of its data set or its changes made in such a manner as to encode information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or private-wired network, and various wireless media such as acoustic, Radio Frequency (RF), microwave, Infrared (IR), or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
In the computing device 100 according to the present invention, the application 122 includes a picture display device 126, the device 126 includes a plurality of program instructions, and the program data 124 may include target picture data downloaded over a network, in memory, or on a magnetic disk. Application 126 can instruct processor 104 to perform picture display method 200 to process program data 124 to display a picture with reduced memory resource usage when decoding to obtain an original bitmap and creating a texture picture.
FIG. 2 illustrates a flow diagram of a picture display method 200 suitable for execution in the computing device 100 shown in FIG. 1, in accordance with one embodiment of the present invention. The method is adapted to step S210.
Before step S210 is executed, the target picture needs to be read, where the target picture is a picture to be displayed, and the target picture is stored in the cache. The target pictures in the cache comprise: pictures downloaded through network, pictures in memory, and pictures in disk.
Next, in step S210, the target picture is decoded to obtain an original bitmap of the target picture. Specifically, the decoder decodes the target picture, and the decoder may be a system-owned decoder, for example, a system-owned Skia decoder in an Android system, or other decoders.
It should be noted that the original bitmap is picture data that has not been subjected to scaling processing after decoding the target picture, that is, the decoded picture data is real picture data, so that, under the condition that the purpose of the decoded data is unclear, the method of the present invention does not reduce the picture data, and the quality of the decoded picture data is not lost, so that the picture is not distorted after the picture data obtained by decoding is subjected to editing and other operations.
Wherein the use of the decoded data comprises: displaying a target picture based on the decoded data, editing picture data, generating a video, and the like. For example, a user edits picture data by using decoded data, instead of displaying the picture data, based on the method of the present invention, the user can acquire real picture data, and the user still acquires real picture data after editing based on the picture data, so that the quality of the picture is maintained, that is, the edited picture is not distorted.
After the original bitmap is obtained, in step S220, a display control associated with the target picture is obtained, where the display control includes Imageview, and of course, the present invention is not limited to the specific display control, and since the principle of displaying pictures by the display control is a known technology, the description is not provided herein, but all display controls capable of displaying pictures are within the scope of the present invention.
Subsequently in step S230, a display area of the display control is acquired. Specifically, each display control is associated with a picture identifier (url of a picture), the display control can be mapped according to the picture identifier, that is, the display control is determined according to the picture identifier, and since a display area of the display control (the display area is a picture display position of the picture corresponding to the display control) is pre-configured in a page file, such as an html file, the computing device 100 can directly obtain the display area of the display control from the web file.
Note that, when the target picture is displayed in full screen, the display area size is the size of the display. When a picture is taken as an icon, a head portrait, or the like, that is, when a plurality of target pictures are simultaneously displayed on a display, the display area size is the size of a part of the display, and the sum of the display area sizes is the display size.
Next, in step S240, a texture picture corresponding to the original bitmap is created. The size of the texture picture is consistent with that of the display area, and the texture picture creating process is equivalent to creating the texture picture according to needs because the size of the texture picture is consistent with that of the display area, so that the occupation of memory resources is reduced when the texture picture is created, the phenomenon of blocking caused by the occupation of too much memory resources when the texture picture is created is avoided, and the operation efficiency of the system is improved. And because the texture picture is created as required, the texture picture does not need to be reduced to the size of the display area of the display control in the rendering step, so that the expenses of memory and the like of rendering hardware can be reduced, the step of displaying the picture is simplified, the picture displaying efficiency is improved, and the capability of the rendering hardware cannot be exceeded.
In an embodiment of the present invention, the original bitmap is rendered to the graphics memory by a hardware rendering method, for example, the original bitmap is rendered to the graphics memory by a GPU, and then the step of creating the texture picture corresponding to the original bitmap specifically includes: and uploading the original bitmap to a GPU, and creating a texture picture corresponding to the original bitmap through the GPU.
Finally, in step S250, the texture picture is rendered to the display memory corresponding to the display control. According to one embodiment of the present invention, the GPU renders the original bitmap to the graphics memory, and the specific process of the GPU rendering is as follows: and sending the texture picture to a frame buffer area of the display control, and rendering the texture picture in the frame buffer area to a display memory corresponding to the display control. Of course, the present invention is not limited to the specific rendering manner, and the display memory method capable of rendering the texture image to the display control in the prior art is within the protection scope of the present invention. The display memory is also called a display card memory, stores rendering data processed or to be extracted by a display card chip, and also stores components of graphic data to be processed.
Based on the method provided by the invention, the picture is not zoomed when being decoded, and the original data of the picture is obtained after decoding, thereby ensuring that the picture data is not distorted before the purpose of the picture is determined, and the picture is not distorted after the processing such as editing and the like is carried out based on the picture data. In addition, according to the scheme, the texture picture with the corresponding size is created according to the width and the height of the display area of the display control, which is equivalent to creating the texture picture according to needs, so that the occupation of memory resources is reduced when the texture picture is created, the phenomenon of blocking caused by the occupation of too much memory resources when the texture picture is created is avoided, and the operation efficiency of the system is improved. And because the texture picture is created as required, the size of the display area from the texture picture to the display control does not need to be reduced in the rendering step, the expenses of memory and the like of rendering hardware are reduced, the step of displaying the picture is simplified, and the picture displaying efficiency is improved.
FIG. 3 shows a schematic diagram of a picture display apparatus 300 according to one embodiment of the invention, the apparatus 300 residing in a computing device. Referring to fig. 3, the apparatus 300 includes:
a decoding unit 310, adapted to decode a target picture to obtain an original bitmap of the target picture;
an obtaining unit 320, adapted to obtain a display control associated with the target picture, and obtain a display area of the display control;
a creating unit 330, adapted to create a texture picture corresponding to the original bitmap, wherein the size of the texture picture is consistent with the size of a display area;
and the rendering unit 340 is adapted to render the texture picture to the display memory corresponding to the display control.
The specific processing performed by the decoding unit 310, the obtaining unit 320, the creating unit 330, and the rendering unit 340 may refer to the method 200, which is not described herein again.
In summary, the image display apparatus provided by the present invention does not perform scaling processing when decoding an image, and the decoded image is the original data of the image, so as to ensure that the image data is not distorted before determining the purpose of the image, and the image is not distorted after performing processing such as editing based on the image data. In addition, according to the scheme, the texture picture with the corresponding size is created according to the width and the height of the display area of the display control, which is equivalent to creating the texture picture according to needs, so that the occupation of memory resources is reduced when the texture picture is created, the phenomenon of blocking caused by the occupation of too much memory resources when the texture picture is created is avoided, and the operation efficiency of the system is improved. And because the texture picture is created as required, the size of the display area from the texture picture to the display control does not need to be reduced in the rendering step, the expenses of memory and the like of rendering hardware are reduced, the step of displaying the picture is simplified, and the picture displaying efficiency is improved.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U.S. disks, floppy disks, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to execute the picture display method of the present invention according to instructions in the program code stored in the memory.
By way of example, and not limitation, readable media may comprise readable storage media and communication media. Readable storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with examples of this invention. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The present invention has been disclosed in an illustrative rather than a restrictive sense with respect to the scope of the invention, as defined in the appended claims.

Claims (10)

1. A picture display method, adapted to be executed in a computing device, the method comprising:
decoding a target picture to obtain an original bitmap of the target picture;
acquiring a display control associated with the target picture;
acquiring a display area of the display control;
creating a texture picture corresponding to the original bitmap, wherein the size of the texture picture is consistent with the size of a display area;
and rendering the texture picture to a display memory corresponding to the display control.
2. The method of claim 1, wherein the original bitmap is picture data that has not been scaled after decoding of the target picture.
3. The method of claim 1, wherein the step of creating the texture picture corresponding to the original bitmap comprises:
uploading the original bitmap to a GPU;
and creating a texture picture corresponding to the original bitmap through the GPU.
4. The method of any one of claims 1 to 3, wherein the rendering the texture picture to the video memory corresponding to the display control comprises:
sending the texture picture to a frame buffer area of the display control;
and rendering the texture picture in the frame buffer area to a display memory corresponding to the display control.
5. The method of claim 4, further comprising:
reading the target picture, wherein the target picture is stored in a cache, and the picture in the cache comprises: pictures downloaded through network, pictures in memory, and pictures in disk.
6. The method of any of claims 1-5, wherein the display control comprises ImageView.
7. A picture display apparatus adapted to be executed in a computing device, the apparatus comprising:
the decoding unit is suitable for decoding a target picture to obtain an original bitmap of the target picture;
the acquisition unit is suitable for acquiring the display control associated with the target picture and acquiring the display area of the display control;
the creating unit is suitable for creating a texture picture corresponding to the original bitmap, wherein the size of the texture picture is consistent with that of a display area;
and the rendering unit is suitable for rendering the texture picture to the display memory corresponding to the display control.
8. The apparatus of claim 7, wherein the original bitmap is picture data that has not been scaled after decoding of the target picture.
9. A computing device, comprising:
at least one processor; and
a memory storing program instructions configured for execution by the at least one processor, the program instructions comprising instructions for performing the method of any of claims 1-6.
10. A readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform the method of any of claims 1-6.
CN202011579771.2A 2020-12-28 2020-12-28 Picture display method, computing device and storage medium Pending CN112700507A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011579771.2A CN112700507A (en) 2020-12-28 2020-12-28 Picture display method, computing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011579771.2A CN112700507A (en) 2020-12-28 2020-12-28 Picture display method, computing device and storage medium

Publications (1)

Publication Number Publication Date
CN112700507A true CN112700507A (en) 2021-04-23

Family

ID=75512634

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011579771.2A Pending CN112700507A (en) 2020-12-28 2020-12-28 Picture display method, computing device and storage medium

Country Status (1)

Country Link
CN (1) CN112700507A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499174A (en) * 2009-01-16 2009-08-05 深圳市中青宝网网络科技股份有限公司 Method for reducing texture memory required in dynamic Chinese character generation
CN107506119A (en) * 2017-08-10 2017-12-22 广州视源电子科技股份有限公司 Picture display method, device, equipment and storage medium
CN108052642A (en) * 2017-12-22 2018-05-18 重庆邮电大学 Electronic Chart Display method based on tile technology
CN110570505A (en) * 2019-09-11 2019-12-13 腾讯科技(深圳)有限公司 image rendering method, device and equipment and storage medium
CN110750664A (en) * 2019-10-15 2020-02-04 腾讯科技(深圳)有限公司 Picture display method and device
CN111292387A (en) * 2020-01-16 2020-06-16 广州小鹏汽车科技有限公司 Dynamic picture loading method and device, storage medium and terminal equipment
CN111754607A (en) * 2019-03-27 2020-10-09 北京小米移动软件有限公司 Picture processing method and device, electronic equipment and computer readable storage medium
CN111798372A (en) * 2020-06-10 2020-10-20 完美世界(北京)软件科技发展有限公司 Image rendering method, device, equipment and readable medium
CN112118449A (en) * 2019-06-21 2020-12-22 腾讯科技(深圳)有限公司 Method and device for compressing and decompressing image

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499174A (en) * 2009-01-16 2009-08-05 深圳市中青宝网网络科技股份有限公司 Method for reducing texture memory required in dynamic Chinese character generation
CN107506119A (en) * 2017-08-10 2017-12-22 广州视源电子科技股份有限公司 Picture display method, device, equipment and storage medium
CN108052642A (en) * 2017-12-22 2018-05-18 重庆邮电大学 Electronic Chart Display method based on tile technology
CN111754607A (en) * 2019-03-27 2020-10-09 北京小米移动软件有限公司 Picture processing method and device, electronic equipment and computer readable storage medium
CN112118449A (en) * 2019-06-21 2020-12-22 腾讯科技(深圳)有限公司 Method and device for compressing and decompressing image
CN110570505A (en) * 2019-09-11 2019-12-13 腾讯科技(深圳)有限公司 image rendering method, device and equipment and storage medium
CN110750664A (en) * 2019-10-15 2020-02-04 腾讯科技(深圳)有限公司 Picture display method and device
CN111292387A (en) * 2020-01-16 2020-06-16 广州小鹏汽车科技有限公司 Dynamic picture loading method and device, storage medium and terminal equipment
CN111798372A (en) * 2020-06-10 2020-10-20 完美世界(北京)软件科技发展有限公司 Image rendering method, device, equipment and readable medium

Similar Documents

Publication Publication Date Title
US10430075B2 (en) Image processing for introducing blurring effects to an image
KR102278932B1 (en) Application program processing method and terminal device
CN108574806B (en) Video playing method and device
JP5160187B2 (en) Image output apparatus and method for portable terminal
CN107767431B (en) Web animation production method and computing device
JP2014112834A (en) Super-resolution image generation method, device, computer program product
CN110930467A (en) Image processing method, electronic device and readable storage medium
CN110750664A (en) Picture display method and device
CN107657587A (en) Image processing method, apparatus and system
CN112991170B (en) Method, device, terminal and storage medium for reconstructing super-resolution image
CN112184538B (en) Image acceleration method, related device, equipment and storage medium
CN108765281A (en) A kind of method, apparatus and computer storage media generating thumbnail
CN104571796B (en) Information processing method and electronic equipment
CN111915714A (en) Rendering method for virtual scene, client, server and computing equipment
CN112700507A (en) Picture display method, computing device and storage medium
CN114697555B (en) Image processing method, device, equipment and storage medium
CN114422502B (en) Resource downloading method, computing device and storage medium
CN111966262B (en) Picture display method and computing device
US8363892B2 (en) Apparatus, method and computer program providing image processing using software and hardware processing
CN111353111B (en) Image display method, computing device and readable storage medium
CN114546204B (en) Window management method, computing device and readable storage medium
CN113138820A (en) Video data processing method and device, computing equipment and readable storage medium
CN116560773A (en) Display method and device of terminal device and storage medium
CN115033311A (en) Method, device and related assembly for realizing Qt preview of large-size picture
CN117576300A (en) 3D rendering method, device, equipment and readable 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