Image display method, device and storage medium

By converting the file to be displayed into a compressed texture format and drawing it using an open graphics library, the problem of high memory usage when displaying images is solved, and effective memory reduction and performance improvement are achieved.

CN113220249BActive Publication Date: 2024-12-27TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010080672.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-02-05
Publication Date
2024-12-27
Estimated Expiration
2040-02-05

AI Technical Summary

Technical Problem

When displaying images, the smart terminals have a high memory footprint due to large image data, which makes it difficult to effectively reduce the existing technology.

Method used

By obtaining the image format of the file to be displayed, if it is the specified format, it will be converted to a compressed texture format, and using the open graphics library to draw and display it to reduce memory usage.

Benefits of technology

It significantly reduces the memory usage of images in smart terminals, such as 1024*1024 pixel images reduced from 4MB to 512KB, improving memory usage efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113220249B_ABST
    Figure CN113220249B_ABST
Patent Text Reader

Abstract

The present application discloses an image display method, device and storage medium, which relates to the field of computer technology, and is used to reduce the memory occupied when displaying an image. In the method, the acquired file to be displayed is decoded to obtain the image format of the file to be displayed; if the image format of the file to be displayed is a specified format, the file to be displayed in a compressed texture format is obtained; the file to be displayed in the compressed texture format is drawn through an open graphics library; and the drawn compressed texture format image is displayed. In this way, since the image data in the compressed file format is small, the memory occupation is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an image display method, device and storage medium. Background Art

[0002] With the rapid development of science and technology, smart terminals have become an indispensable part of life. In related technologies, when drawing images, native applications of smart terminals usually generate drawing commands through the upper-level interface provided by SDK (Software Development Kit). Since the drawn image data is large, the memory usage of the smart terminal is relatively large. Summary of the invention

[0003] Embodiments of the present application provide an image display method, device, and storage medium to reduce memory occupied when displaying an image.

[0004] In a first aspect, an image display method is provided, comprising:

[0005] Decoding the acquired file to be displayed to obtain a picture format of the file to be displayed;

[0006] If the image format of the file to be displayed is a specified format, obtaining the file to be displayed in a compressed texture format;

[0007] Drawing the file to be displayed in the compressed texture format through an open graphics library;

[0008] Display the drawn compressed texture image.

[0009] In a second aspect, an image display device is provided, comprising:

[0010] A decoding module, used for decoding the acquired file to be displayed to obtain the image format of the file to be displayed;

[0011] An acquisition module, used for acquiring the file to be displayed in a compressed texture format if the image format of the file to be displayed is a specified format;

[0012] A first drawing module, used for drawing the file to be displayed in the compressed texture format through an open graphics library;

[0013] The display module is used to display the image in compressed texture format after drawing.

[0014] In one embodiment, the apparatus further comprises:

[0015] A second drawing module is used for compressing the file to be displayed if the second acquisition unit fails to find the file to be displayed in the compressed texture format in the file cache, and at the same time, drawing the file to be displayed through the open graphics library, and displaying the image in the specified format after drawing;

[0016] The display module is specifically used to replace the image in the compressed texture format that has been drawn with the image in the specified format for display.

[0017] In one embodiment, the apparatus further comprises:

[0018] A building module is used to build a class of a drawing method in a Java layer; wherein the drawing method is to call an open graphics library and use the open graphics library to draw a file in a compressed texture format;

[0019] An input module is used to input the reference of the class in the Java layer into the class constructed in the native layer;

[0020] A feedback module, used for returning the memory pointer address of the class in the native layer to the drawing instruction in the Java layer;

[0021] The first drawing module includes:

[0022] A first determining unit, configured to determine a class in a native layer according to a memory pointer address in a drawing instruction;

[0023] A second determining unit is used to determine the class of the drawing method in the Java layer according to the reference in the native layer;

[0024] The drawing unit is used to call the open graphics library according to the drawing method of the class of the Java layer, and use the open graphics library to draw the file in the compressed texture format.

[0025] According to a third aspect, a computing device is provided, comprising at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the program is executed by the processing unit, the processing unit executes the steps of any one of the above-mentioned image display methods.

[0026] In one embodiment, the computing device may be a server or a terminal device.

[0027] In a fourth aspect, a computer-readable medium is provided, which stores a computer program executable by a terminal device, and when the program runs on the terminal device, the terminal device executes the steps of any one of the above-mentioned image display methods.

[0028] The embodiment of the present application provides an image display method, device and storage medium. After determining the compressed texture format of the file to be displayed, the file to be displayed in the compressed texture format is drawn through an open graphics library, and the drawn compressed texture format image is displayed. Since the image data in the compressed file format is small, the memory usage is reduced.

[0029] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0031] Figure 1 A flowchart for constructing a drawable interface in an embodiment of the present application;

[0032] Figure 2 A schematic diagram of constructing a drawing instruction in an embodiment of the present application;

[0033] Figure 3 A schematic diagram of a flow chart of an image display method in an embodiment of the present application;

[0034] Figure 4 This is a schematic diagram of the structure of an image display device in an embodiment of the present application;

[0035] Figure 5 This is a schematic diagram of the terminal device structure in an implementation manner of the present application. DETAILED DESCRIPTION

[0036] In order to reduce the memory usage of images when displaying images on smart terminals, an image display method, device and storage medium are provided in the embodiments of the present application. In order to better understand the technical solution provided in the embodiments of the present application, the basic principle of the solution is briefly described here:

[0037] In order to help those skilled in the art to better understand the technical solutions in the embodiments of the present application, the professional terms involved in the embodiments of the present application are illustrated below.

[0038] Open Graphics Library (OpenGL): is a cross-language, cross-platform application programming interface (API) for rendering 2D and 3D vector graphics. In the embodiment of the present application, the open graphics library can be used to directly draw the file to be displayed in the compressed texture format.

[0039] Compressed texture: It is a texture format supported by hardware. It is the product of texture compression of some texture image resources (such as images in png, jpeg and other formats). GPU can directly use compressed texture for drawing. Common compressed texture formats are etc1, etc2, etc.

[0040] Native APP (application): Different languages ​​and frameworks are used for development for different mobile phone operating systems such as IOS (Apple mobile device operating system), Android (an open source operating system based on Linux and JAVA), and Windows (an operating system). This model is usually composed of two parts: "cloud server data + APP application client". All UI elements, data content, and logical frameworks of the APP application are installed on the mobile phone terminal. In the embodiment of this application, native APP refers to an application that does not create and maintain the opengl rendering environment by itself.

[0041] The following is a brief introduction to the design concept of the embodiments of the present application.

[0042] As mentioned above, in the relevant technology, when drawing pictures, the native APP of the Android system generates drawing commands through the upper-level interface provided by the Android SDK (the native APP of the Android system does not support directly drawing the files to be displayed in compressed texture format through the open graphics library). Therefore, the drawn image data is in an ordinary image format (such as png, jpeg, etc.), which causes the displayed image to occupy a large amount of memory.

[0043] To this end, the embodiments of the present application provide an image display method, device and storage medium. In the method, after determining the compressed texture format of the file to be displayed, the file to be displayed in the compressed texture format is drawn through an open graphics library, and the drawn compressed texture format image is displayed. Since the image data in the compressed file format is small, the memory usage of the displayed image is reduced.

[0044] In the embodiment of the present application, if a 1024*1024 pixel picture is drawn, the drawing method using the related technology needs to load the picture into a RGBA_8888 (each pixel occupies four bits, that is, A=8, R=8, G=8, B=8, so one pixel occupies 8+8+8+8=32 bits) bitmap, and draw the bitmap, and the memory occupied by the bitmap is 4MB; and through the image display method provided by the present application, the 1024*1024 pixel picture is converted into a compressed texture (etc1) format picture, and the memory occupied is 512KB. Therefore, the memory occupied by the picture can be greatly reduced.

[0045] For ease of understanding, the technical solution provided in this application is further explained below in conjunction with the accompanying drawings.

[0046] In the embodiment of the present application, in order to implement the image display method provided by the present application, it is necessary to construct a special implementation class based on the Drawable (drawable interface) of the native APP. Figure 1 As shown in the figure, it is a Drawable construction flow chart. Figure 1 The process in can convert the format of the file to be displayed into the format of the compressed texture, so as to draw the file to be displayed in the compressed texture format.

[0047] In the embodiment of the present application, since in the related art, the native APP of the Android system does not support directly drawing the to-be-displayed file in the compressed texture format through the open graphics library, after constructing the Drawable, it is necessary to create a new class in the Java layer so that when executing the drawing command, the method of drawing the to-be-displayed file in the compressed texture format through the open graphics library is executed according to the newly created class. Specifically, the following steps may be included:

[0048] Step A1: Establish a class of a drawing method in the Java layer; wherein the drawing method calls the open graphics library and uses the open graphics library to draw a file in a compressed texture format.

[0049] In the embodiment of the present application, the class is established through the application framework layer (Framework) of the java layer. The java layer is implemented by the Java language.

[0050] Step A2: Pass the reference of the class in the Java layer to the class built in the native layer.

[0051] In the embodiment of the present application, the native layer is a local framework layer, including a running environment and a C language library. The native layer is implemented in C and C++ languages.

[0052] In the embodiment of the present application, the purpose of constructing a class in the native layer is to ensure that the interface (callDrawGLFunction) called in the native layer requires passing a pointer function.

[0053] In the embodiment of the present application, the reference of the class in the Java layer is passed into the class constructed in the native layer, the purpose of which is to simplify the difficulty of writing code.

[0054] Step A3: Return the memory pointer address of the class in the native layer to the drawing instruction in the Java layer.

[0055] like Figure 2 As shown in Figure 1, it is a schematic diagram of constructing drawing instructions. Figure 2 In the example, the reference of class 1 constructed in the Java layer is passed to class 2 constructed in the native layer, and the memory pointer address of class 2 in the native layer is passed back to the drawing instruction in the Java layer. In this way, the calculation can be more efficient through the linkage between the Java layer and the native layer.

[0056] In addition to the above method, the method of extending the drawing instruction can also be implemented directly in the native layer, and this application does not limit this.

[0057] In this way, when executing the drawing instruction, the constructed class is used to implement the method of drawing the to-be-displayed file in the compressed texture format through the open graphics library. The specific implementation is as follows:

[0058] Step B1: Determine the class in the native layer according to the memory pointer address in the drawing instruction.

[0059] Step B2: Determine the class of the drawing method in the Java layer based on the reference in the native layer.

[0060] Step B3: calling the open graphics library according to the drawing method of the class in the Java layer, and using the open graphics library to draw the file in the compressed texture format.

[0061] In the embodiment of the present application, different Android system versions call different drawing instructions. For example, if the version is API21, call HardwareCanvas#callDrawGLFunction to draw the display file; if the version is API22, call HardwareCanvas#callDrawGLFunction2; if the version is API23, call DisplayListCanvas#callDrawGLFunction2, etc.

[0062] In this way, through the classes built in the Java layer and the native layer, the Open Graphics Library can directly draw files in compressed texture format, thereby improving the drawing efficiency. And through the above method, the Open Graphics Library commands can be used directly without the need for additional rendering threads, and will not cause the context switch of the Open Graphics Library, which will lead to performance loss, thereby saving system resources.

[0063] After constructing the drawing instructions and Drawable, you can implement the image display method according to the constructed method. Figure 3 As shown, the following steps may be specifically included:

[0064] Step 301: Decode the acquired file to be displayed to obtain the image format of the file to be displayed.

[0065] In the embodiment of the present application, the acquired file to be displayed may be downloaded from a server, or may be a data file stored locally.

[0066] In the embodiments of the present application, the image format includes common formats such as png and jpeg, as well as compressed texture formats such as etc1 and etc2.

[0067] Step 302: If the image format of the file to be displayed is a specified format, obtain the file to be displayed in a compressed texture format.

[0068] In the embodiment of the present application, the specified format may be a common picture format or a compressed texture format. According to the obtained picture format of the file to be displayed, the file to be displayed in the compressed texture format is determined.

[0069] In the embodiment of the present application, step 301 to step 302 are executed in Drawable.

[0070] Step 303: Draw the file to be displayed in the compressed texture format through the open graphics library.

[0071] In the embodiment of the present application, after obtaining the file to be displayed in the compressed texture format, the file to be displayed in the compressed texture format is drawn by calling the drawing instruction. In this way, the open graphics library can be directly used to draw the file to be displayed in the compressed texture format, thereby saving system resources.

[0072] Step 304: Display the image in the compressed texture format that has been drawn.

[0073] In the embodiment of the present application, step 303 - step 304 is executed according to the drawing instruction.

[0074] It should be noted that the method provided in the embodiment of the present application is particularly suitable for native APPs of the Android system. In this way, by drawing the file to be displayed in the compressed texture format, the displayed image data can be made smaller, thereby reducing memory usage.

[0075] according to Figure 1 The content shown can be implemented in step 302 by two methods:

[0076] 1. If the file to be displayed in the compressed texture format is found in the file cache, the file to be displayed in the compressed texture format is obtained from the file cache.

[0077] In the embodiment of the present application, when constructing a Drawable, some files in compressed texture format are stored in the file cache in advance. After obtaining the file to be displayed, the file cache is searched to see whether the obtained file to be displayed exists. If the file to be displayed is found to exist, the file to be displayed in compressed texture format is obtained from the file cache.

[0078] It should be noted that after searching for the file to be displayed in the file cache, verification is still required to determine whether the acquired file to be displayed has been modified. For example, the acquired file to be displayed is in a different format from the file stored in the file cache, or the data in the file is different. These indicate that the acquired file to be displayed has been modified and therefore cannot pass the verification, thereby failing to obtain the file to be displayed in a compressed texture format.

[0079] Second, if the file to be displayed in a compressed texture format is not found in the file cache, the file to be displayed is compressed to obtain the file to be displayed in a compressed texture format.

[0080] In an embodiment of the present application, if the file to be displayed is not found in the file cache, or the found file fails verification, it is necessary to perform texture compression on the acquired file to be displayed, so as to obtain the file to be displayed in a compressed texture format.

[0081] Among them, NDK (Native Development Kit, a development toolkit for Android system) can be used to compress the texture of the display file, and Renderscript (a component of Android system) can also be used to compress the texture of the display file, which is not limited in this application.

[0082] In the embodiment of the present application, the obtained file to be displayed is texture compressed to obtain the file to be displayed in a compressed texture format, and the obtained file to be displayed in a compressed texture format is stored in a file cache. Specifically, the file to be displayed in a compressed texture format is stored in the file cache. In this way, when the file to be displayed is to be displayed again, the file to be displayed in a compressed texture format can be directly obtained from the file cache, thereby eliminating the texture compression process and displaying the image in a compressed texture format faster.

[0083] In an embodiment of the present application, in order to quickly display an image on a display interface and avoid user waiting, the file to be displayed in a common format can be drawn simultaneously during the process of compressing the file to be displayed. Specifically: the file to be displayed is drawn through an open graphics library, and the image in the specified format that has been drawn is displayed.

[0084] After the compression is completed, the file in the compressed texture format is drawn, and the drawn image in the compressed texture format is replaced. Specifically, the drawn image in the compressed texture format is replaced with an image in a specified format for display.

[0085] In this way, the image can be displayed in advance on the display page to improve the user experience. After the compression is completed, the image in the compressed texture format is replaced with the image in the specified format for display, which can effectively reduce memory usage.

[0086] Based on the same inventive concept, the present application also provides an image display device. Figure 4 As shown, the device comprises:

[0087] The decoding module 401 is used to decode the acquired file to be displayed to obtain the image format of the file to be displayed;

[0088] An obtaining module 402 is used to obtain the file to be displayed in a compressed texture format if the image format of the file to be displayed is a specified format;

[0089] A first drawing module 403 is used to draw the file to be displayed in the compressed texture format through an open graphics library;

[0090] The display module 404 is used to display the image in the compressed texture format after being drawn.

[0091] In one embodiment, the obtaining module 402 includes:

[0092] A first acquisition unit is configured to acquire the to-be-displayed file of the compressed texture format from the file cache if the to-be-displayed file of the compressed texture format is found in the file cache;

[0093] The second acquisition unit is configured to compress the file to be displayed to obtain the file to be displayed in the compressed texture format if the file to be displayed in the compressed texture format is not found in the file cache.

[0094] In one embodiment, the apparatus further comprises:

[0095] The storage module is used for compressing the file to be displayed if the second acquisition unit fails to find the file to be displayed in the compressed texture format in the file cache, and after obtaining the file to be displayed in the compressed texture format, storing the file to be displayed in the compressed texture format in the file cache.

[0096] In one embodiment, the apparatus further comprises:

[0097] A second drawing module is used for compressing the file to be displayed if the second acquisition unit fails to find the file to be displayed in the compressed texture format in the file cache, and at the same time, drawing the file to be displayed through the open graphics library, and displaying the image in the specified format after drawing;

[0098] The display module is specifically used to replace the image in the compressed texture format that has been drawn with the image in the specified format for display.

[0099] In one embodiment, the apparatus further comprises:

[0100] A building module is used to build a class of a drawing method in a Java layer; wherein the drawing method is to call an open graphics library and use the open graphics library to draw a file in a compressed texture format;

[0101] An input module is used to input the reference of the class in the Java layer into the class constructed in the native layer;

[0102] A feedback module, used for returning the memory pointer address of the class in the native layer to the drawing instruction in the Java layer;

[0103] The first drawing module 403 includes:

[0104] A first determining unit, configured to determine a class in a native layer according to a memory pointer address in a drawing instruction;

[0105] A second determining unit is used to determine the class of the drawing method in the Java layer according to the reference in the native layer;

[0106] The drawing unit is used to call the open graphics library according to the drawing method of the class of the Java layer, and use the open graphics library to draw the file in the compressed texture format.

[0107] Based on the same technical concept, the embodiment of the present application also provides a terminal device 500, referring to Figure 5 As shown, the terminal device 500 is used to implement the methods described in the above-mentioned various method embodiments, for example, Figure 2 In the illustrated embodiment, the terminal device 500 may include a memory 501 , a processor 502 , an input unit 503 , and a display panel 504 .

[0108] The memory 501 is used to store the computer program executed by the processor 502. The memory 501 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the terminal device 500, etc. The processor 502 may be a central processing unit (CPU) or a digital processing unit, etc. The input unit 503 may be used to obtain user instructions input by the user. The display panel 504 is used to display information input by the user or information provided to the user. In the embodiment of the present application, the display panel 504 is mainly used to display the display interface of each application in the terminal device and the control entity displayed in each display interface. Optionally, the display panel 504 may be configured in the form of a liquid crystal display (LCD) or an OLED (organic light-emitting diode).

[0109] The specific connection medium between the memory 501, the processor 502, the input unit 503 and the display panel 504 is not limited in the embodiment of the present application. Figure 5 In the embodiment, the memory 501, the processor 502, the input unit 503, and the display panel 504 are connected via a bus 505. Figure 5 The connections between other components are shown in bold lines, which are only for illustration and are not intended to be limiting. Bus 505 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0110] The memory 501 may be a volatile memory, such as a random-access memory (RAM); the memory 501 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), or the memory 501 may be any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 501 may be a combination of the above memories.

[0111] Processor 502, used to implement Figure 2 The embodiment shown includes:

[0112] Processor 502, used to call the computer program stored in memory 501 to execute the implementation Figure 2 The embodiment shown.

[0113] An embodiment of the present application also provides a computer-readable storage medium that stores computer-executable instructions required to execute the above-mentioned processor, which includes a program required to execute the above-mentioned processor.

[0114] In some possible implementations, various aspects of an image display method provided by the present application may also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of an image display method according to various exemplary implementations of the present application described above in this specification. For example, the terminal device may execute the implementation Figure 3 The embodiment shown.

[0115] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0116] The image display program product of the embodiment of the present application can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a computing device. However, the program product of the present application is not limited to this. In this document, the readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, device or device.

[0117] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein readable program code is carried. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium, which may transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0118] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0119] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including entity-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0120] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.

[0121] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0122] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0123] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable image display device to generate a machine, so that the instructions executed by the processor of the computer or other programmable image display device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0124] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable image display device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0125] These computer program instructions may also be loaded onto a computer or other programmable image display device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0126] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0127] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. An image display method, characterized in that: The method comprises: Decoding the acquired file to be displayed to obtain a picture format of the file to be displayed; If the image format of the file to be displayed is the specified format, obtaining the file to be displayed in a compressed texture format, including: if the file to be displayed in the compressed texture format is not found in the file cache, drawing the file to be displayed through an open graphics library, and displaying the drawn image in the specified format; and compressing the file to be displayed to obtain the file to be displayed in a compressed texture format; Drawing the file to be displayed in the compressed texture format by using the open graphics library; The image in the specified format is replaced with the image in the compressed texture format for display.

2. The method according to claim 1, characterized in that The step of obtaining a file to be displayed in a compressed texture format comprises: If the file to be displayed in the compressed texture format is found in the file cache, the file to be displayed in the compressed texture format is obtained from the file cache.

3. The method according to claim 1, characterized in that After compressing the file to be displayed to obtain the file to be displayed in the compressed texture format, the method further includes: The file to be displayed in the compressed texture format is stored in the file cache.

4. The method according to claim 1, characterized in that: The method further comprises: Establishing a class of a drawing method in the Java layer; wherein the drawing method is to call the open graphics library and use the open graphics library to draw a file in a compressed texture format; Passing the reference of the class in the Java layer into the class constructed in the native layer; Return the memory pointer address of the class in the native layer to the drawing instruction in the Java layer; The step of drawing the file to be displayed in the compressed texture format by using an open graphics library comprises: Determine the class in the native layer based on the memory pointer address in the drawing instruction; According to the reference in the native layer, determine the class of the drawing method in the Java layer; The open graphics library is called according to the drawing method of the class of the java layer, and the file in the compressed texture format is drawn using the open graphics library.

5. An image display device, characterized in that: The device comprises: A decoding module, used for decoding the acquired file to be displayed to obtain the image format of the file to be displayed; an acquisition module, for acquiring the file to be displayed in a compressed texture format if the image format of the file to be displayed is a specified format, comprising: if the file to be displayed in the compressed texture format is not found in the file cache, drawing the file to be displayed through an open graphics library, and displaying the drawn image in the specified format, and compressing the file to be displayed to obtain the file to be displayed in the compressed texture format; A first drawing module, used for drawing the file to be displayed in the compressed texture format through the open graphics library; The display module is used to replace the image in the specified format with the image in the compressed texture format for display.

6. The device according to claim 5, characterized in that The modules available include: The first acquisition unit is configured to acquire the to-be-displayed file in the compressed texture format from the file cache if the to-be-displayed file in the compressed texture format is found in the file cache.

7. The device according to claim 5, characterized in that The device also includes: The storage module is used for compressing the file to be displayed to obtain the file to be displayed in the compressed texture format, and then storing the file to be displayed in the compressed texture format in the file cache.

8. A computer-readable medium storing computer-executable instructions, characterized in that: The computer executable instructions are used to execute the method according to any one of claims 1-4.

9. A computing device, characterized in that: include: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor so that the at least one processor can execute the method as claimed in any one of claims 1 to 4.