WO2017045540A1 - 用于智能终端的图片处理方法、装置、终端设备及系统 - Google Patents

用于智能终端的图片处理方法、装置、终端设备及系统 Download PDF

Info

Publication number
WO2017045540A1
WO2017045540A1 PCT/CN2016/098000 CN2016098000W WO2017045540A1 WO 2017045540 A1 WO2017045540 A1 WO 2017045540A1 CN 2016098000 W CN2016098000 W CN 2016098000W WO 2017045540 A1 WO2017045540 A1 WO 2017045540A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
format
texture
smart terminal
server
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.)
Ceased
Application number
PCT/CN2016/098000
Other languages
English (en)
French (fr)
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Publication of WO2017045540A1 publication Critical patent/WO2017045540A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • the present invention relates to the field of electronic technologies, and in particular to a picture processing method for an intelligent terminal, a picture processing device for an intelligent terminal, a page display method for an intelligent terminal, and a smart terminal. Picture processing terminal device and a picture processing system for the smart terminal.
  • the shopping app of the mobile terminal needs to display a large number of pictures in order to better display the characteristics of the products; use the HTML5Canvas to move
  • the rendering of picture texture is a resource consumption and time-consuming operation in the mobile terminal application, and the rendering performance of the image texture largely determines the running speed, smoothness and user experience of the entire mobile terminal application.
  • the performance of texture rendering is the biggest factor that determines the frame rate of the entire game.
  • Texture, real-time rendering when you need to use texture there are the following problems: First, the image resources used in the prior art generally use jpg, png and other image formats, the picture is large, downloading pictures from the server will be time consuming, especially in 2G/3G communication network environment consumes a lot of traffic; second, jpg, png and other image formats need to be decoded before rendering, display takes up CPU process, and consumes a lot of system resources; third, jpg, png and other formats are finally decoded into Each channel is uploaded in one byte format, and its volume is larger than the texture format supported by the GPU. At the same time, writing data from the CPU memory to the video memory in the mobile terminal is also a relatively time consuming IO operation. 4. Mobile terminals in the prior art The GPU uses ARGB8888 or RGB888 to render, which is less efficient.
  • the present application provides a picture processing method for a smart terminal, a picture processing device for a smart terminal, a page display method for a smart terminal, and a picture processing terminal for an intelligent terminal.
  • a device and a picture processing system for a smart terminal are provided.
  • the present application provides a picture processing method for a smart terminal, including:
  • the server is requested to request a picture corresponding to other processing modes supported by the image processing engine.
  • the step of detecting whether the image processing engine of the smart terminal supports the predetermined processing manner includes:
  • the step of requesting, from the server, a picture corresponding to another processing mode supported by the image processing engine, if not supported, includes: if not, requesting a normal format picture from the server.
  • the step of requesting the server to compress the texture format image includes:
  • the compressed texture picture returned by the server is not received within a predetermined time, the normal format picture is requested from the server.
  • the image processing method for the smart terminal further includes:
  • the compressed texture format picture returned by the server is received, the compressed texture format picture is directly loaded into the image processing engine to form a texture;
  • the normal format picture returned by the server is received, the normal format picture is decoded and loaded into the image processing engine to form a texture.
  • the compressed texture format picture includes a picture in at least one of the following formats:
  • ETC format ETC format, PVR format, ETC1 format, PVRTC format, ATITC format, S3TC format.
  • the normal format picture includes the following at least one format:
  • JPEG format JPG format, PNG format, BMP format, TGA format.
  • the step of detecting whether the image processing engine of the smart terminal supports processing the compressed texture format image comprises:
  • the step of requesting the server to compress the texture format picture includes:
  • the compressed texture format picture of the at least one format is supported, the compressed texture format picture of the at least one format supported by the image processing engine is requested to the server.
  • the step of requesting the server to compress the texture format image includes:
  • a compressed texture format picture of the format supported by the image processing engine is requested to the server.
  • the step of decoding the normal format picture and loading the image into the image processing engine to form a texture includes:
  • the normal format picture returned by the server is received, the normal format picture is decoded into a texture picture of a predetermined format according to the format of the normal format picture;
  • the texture image of the predetermined format is transmitted to a picture processing engine, and is loaded by the image processing engine to form a texture.
  • the texture image of the predetermined format includes a texture image of at least one of the following formats:
  • RGB565 format RGBA4444 format
  • ARGB8888 format RGB888 format
  • the decoding according to the format of the normal format picture, the common format picture into a texture picture of a predetermined format, including:
  • the format of the normal format picture is JPEG format, decoding the normal format picture into a texture picture of RGB565 format;
  • the normal format picture is decoded into a texture picture of the RGBA4444 format.
  • the step of transmitting the texture image of the predetermined format to a picture processing engine, and loading, by the image processing engine to form a texture includes:
  • the image processing method for the smart terminal further includes:
  • the present application also provides a picture processing apparatus for a smart terminal, including:
  • a picture processing instruction receiving unit configured to receive a picture processing instruction
  • a detecting unit configured to: after receiving the image processing instruction, trigger an image processing engine that detects whether the smart terminal supports a predetermined processing manner;
  • a first picture requesting unit configured to: if supported, request a picture corresponding to the predetermined processing mode from the server;
  • a second picture requesting unit if not supported, requesting, from the server, a picture corresponding to another processing mode supported by the image processing engine.
  • the detecting unit includes: a compressed picture support detecting subunit, configured to: after receiving the picture processing instruction, trigger an image processing engine that detects whether the smart terminal supports loading the compressed texture format picture;
  • the first picture requesting unit includes: a compressed picture requesting subunit, and if requested, requests a compressed texture format picture from the server;
  • the second picture requesting unit includes: a normal picture requesting subunit, configured to request a normal format picture from the server if not supported.
  • the compressed picture request subunit includes:
  • a first compressed picture requesting subunit configured to request, when supported, a compressed texture format picture to the server
  • the first normal picture requesting subunit is configured to request a normal format picture from the server if the compressed texture picture returned by the server is not received within a predetermined time.
  • the image processing apparatus for the smart terminal further includes:
  • a compressed picture loading unit configured to load the compressed texture format picture into the image processing engine to form a texture if the compressed texture format picture returned by the server is received;
  • the normal picture loading unit is configured to: after receiving the normal format picture returned by the server, decode the normal format picture and load it into the image processing engine to form a texture.
  • the compressed texture format picture includes a picture in at least one of the following formats:
  • ETC format ETC format, PVR format, ETC1 format, PVRTC format, ATITC format, S3TC format.
  • the normal format picture includes the following at least one format:
  • JPEG format JPG format, PNG format, BMP format, TGA format.
  • the compressed picture support detection subunit includes: the compressed picture supports a sequential detection subunit, and is configured to, after receiving the picture loading instruction, trigger to sequentially detect whether the image processing engine of the smart terminal supports processing a predetermined plurality of Formatted compressed texture format image;
  • the compressed picture requesting subunit includes: a second compressed picture requesting subunit, configured to request at least one format compression of the image processing engine to support the processing if the compressed texture format picture of the at least one format is supported Texture format image.
  • the compressed picture request subunit includes:
  • a third compressed picture requesting subunit configured to request, from the server, a compressed texture format picture in a format supported by the image processing engine.
  • the normal picture loading unit includes:
  • a normal picture decoding subunit configured to decode the normal format picture into a texture picture of a predetermined format according to a format of the normal format picture if receiving a normal format picture returned by the server;
  • a normal texture loading subunit is configured to pass the texture image of the predetermined format to a picture processing engine, and the image processing engine loads and forms a texture.
  • the texture image of the predetermined format includes a texture image of at least one of the following formats:
  • RGB565 format RGBA4444 format
  • ARGB8888 format RGB888 format
  • the normal picture decoding subunit includes:
  • a first normal picture decoding subunit configured to decode the normal format picture into a texture picture in an RGB565 format if the format of the normal format picture is a JPEG format;
  • a second common picture decoding subunit configured to decode the normal format picture into a texture picture of the RGBA4444 format if the format of the normal format picture is a PNG format.
  • the normal texture loading subunit includes:
  • a dithering subunit configured to perform dither processing on the texture image of the predetermined format according to an image dithering algorithm
  • the dither texture loading sub-unit is configured to transmit the texture image of the predetermined format after the dither processing to the image processing engine, and the image processing engine loads and forms a texture.
  • the image processing apparatus for the smart terminal further includes: a rendering unit, configured to perform texture rendering on the texture.
  • the present application also provides a page display method for a smart terminal, where at least one page of the smart terminal is At least one of the pictures is obtained by processing the picture processing method for the smart terminal provided by the present application.
  • the present application further provides a picture processing terminal device for a smart terminal, including:
  • the memory processing method for the smart terminal provided by the present application is stored in the memory; and can be operated according to the above method after being started.
  • the present application further provides a picture processing system for a smart terminal, including a client and a server, where the client is configured with a picture processing device for the smart terminal provided by the application, and the client is to the server. Requesting a picture, downloading a picture from the server, and then processing the picture.
  • the image processing method for the smart terminal firstly receives a picture processing instruction; after receiving the picture processing instruction, triggering to detect whether the image processing engine of the smart terminal supports a predetermined processing mode; if supported, A picture corresponding to the predetermined processing mode is requested from the server; if not, a picture corresponding to another processing mode supported by the image processing engine is requested from the server.
  • the present application first detects whether the image processing engine of the smart terminal supports a predetermined processing mode, and then specifically requests a corresponding picture from the server, thereby implementing the smart terminal.
  • the hardware condition automatically selects a better processing method, so that the processing capability of the image can be improved, thereby improving the running speed and smoothness of the application and improving the user experience.
  • the existing image processing mode that must be decoded before being loaded and rendered is broken, and the current image processing engine supports the processing of the compressed texture format image.
  • the server Before the server requests the picture, it first detects whether the image processing engine of the smart terminal supports processing the compressed texture format picture. If it supports, it directly requests the compressed texture format picture to the server, so that it can be directly loaded and rendered without decoding.
  • the format image is smaller than the normal texture format image file obtained by decoding the normal format image. Therefore, when the texture is loaded, the IO bandwidth overhead of the memory to the memory can be effectively reduced, and the calculation and rendering speed of each frame is improved, thereby improving
  • the loading and rendering efficiency because the steps of image decoding are omitted, reduces the load on the CPU. Therefore, for a smart terminal that supports processing compressed texture format pictures, the picture rendering speed can be effectively improved. In turn, the application speed and smoothness are improved, and the user experience is improved.
  • FIG. 1 is a flowchart of an embodiment of a picture processing method for a smart terminal provided by the present application
  • FIG. 2 is a schematic diagram of an embodiment of a picture processing apparatus for a smart terminal provided by the present application.
  • the present invention provides a picture processing method for a smart terminal, a picture processing device for a smart terminal, a page display method for a smart terminal, a picture processing terminal device for a smart terminal, and a An image processing system for a smart terminal, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
  • FIG. 1 is a flowchart of an embodiment of a picture processing method for a smart terminal, where the method includes the following steps:
  • Step S101 Receive a picture processing instruction.
  • a picture processing instruction is first received, where the picture processing instruction includes a picture loading instruction, a page picture loading instruction, a client background image loading instruction, a picture rendering instruction, a picture parsing instruction, a picture format conversion instruction, and the like.
  • Step S102 After receiving the picture processing instruction, triggering to detect whether the image processing engine of the smart terminal supports a predetermined processing mode.
  • step S101 the picture processing instruction has been received, and then, after receiving the picture processing instruction, triggering detection of whether the image processing engine of the smart terminal supports a predetermined processing mode.
  • the graphics processing engine is a GPU (graphics processor), and different GPUs supported by different manufacturers and different specifications support different image formats, and in particular, some GPUs have begun to support processing compressed texture formats.
  • Image because the compressed texture format image takes up less space than the normal texture format file obtained by decompressing the normal format image, and the loading speed and rendering speed of the GPU for the compressed texture is much higher than the normal texture.
  • the predetermined processing manner includes a processing manner having a certain processing advantage, such as fast processing speed, good processing effect, low energy consumption, etc., to facilitate Combining the processing power of the image processing engine to select the corresponding place Reason.
  • the step of detecting whether the image processing engine of the smart terminal supports a predetermined processing manner includes: receiving the image processing After the instruction, the image processing engine that detects the smart terminal is triggered to support loading the compressed texture format image.
  • the compressed texture format picture includes at least one of the following formats: ETC format, PVR format, ETC1 format, PVRTC format, ATITC Format, S3TC format.
  • the step of detecting whether the image processing engine of the smart terminal supports processing the compressed texture format image comprises: receiving the image loading After the instruction, the triggering sequentially detects whether the image processing engine of the smart terminal supports processing a predetermined plurality of formats of compressed texture format pictures.
  • npos string:: npos
  • extensions.find("GL_ATI_texture_compression_atitc")! string::npos) Whether the processing engine supports processing compressed textures in ETC1 format and many more.
  • Step S103 If supported, request a picture corresponding to the predetermined processing mode from the server.
  • step S102 it is detected whether the image processing engine of the smart terminal supports a predetermined processing mode, and if supported, requests a picture corresponding to the predetermined processing mode from the server, so that the image processing engine has been compared.
  • the superior predetermined processing method processes the corresponding picture, thereby fully utilizing the advantages of the image processing engine, improving the image processing efficiency, improving the image processing quality, or reducing the image processing engine energy consumption and reducing the heat release.
  • the step of requesting, by the server, the picture corresponding to the predetermined processing mode includes: if supported, requesting the server to compress the texture format picture.
  • the step of requesting the compressed texture format picture to the server is requested.
  • a compressed texture format picture of the format supported by the image processing engine is requested to the server.
  • the server is requested to perform compression.
  • the step of texture formatting the picture comprises: if the compressed texture format picture of the at least one format is supported, requesting, by the server, the compressed texture format picture of the at least one format supported by the image processing engine.
  • the step of requesting the server to compress the texture format picture including:
  • the compressed texture picture returned by the server is not received within a predetermined time, the normal format picture is requested from the server.
  • the common format picture includes the following at least one format: JPEG format, JPG format, PNG format, BMP format, TGA format.
  • Step S104 If not supported, request a picture corresponding to another processing mode supported by the image processing engine to the server.
  • step S102 it is detected whether the image processing engine of the smart terminal supports a predetermined processing mode. If not, the server requests a picture corresponding to another processing mode supported by the image processing engine.
  • the step of requesting, from the server, a picture corresponding to another processing mode supported by the image processing engine includes: if not, requesting the server from the ordinary Format image.
  • the common format picture includes at least one of the following pictures: JPEG format, JPG format, PNG format, BMP format, TGA format. The above only exemplifies some of the common format pictures, and does not limit this application. The scope of protection, other than the compressed texture format picture, is within the scope of this application.
  • the image processing flow for the smart terminal provided by the present application is completed through steps S101 to S104.
  • the present application first detects whether the image processing engine of the smart terminal is before requesting the picture from the server. Supporting the predetermined processing mode, and then requesting the corresponding image to the server in a targeted manner, thereby realizing the automatic selection of the hardware condition based on the intelligent terminal, thereby improving the processing capability of the image, thereby improving the application. Speed and smoothness to enhance the user experience.
  • the texture image is divided into two formats, which are a GPU compressed texture format image and a normal texture format image, wherein the normal texture format image is obtained by the CPU decoding the common format image.
  • the compressed texture format image has higher GPU loading speed and rendering speed, and the file occupying capacity is lower, and the advantage is obvious.
  • the compression texture formats supported by different GPU vendors are different, and the compression texture formats supported by different GPUs of the same GPU vendor are not the same, and even some low-end GPUs do not have the ability to support compressed texture loading.
  • the picture processing instruction includes a picture loading instruction, which breaks the existing image processing mode that must be decoded before being loaded and rendered, and is directed to a partial image processing engine.
  • a picture loading instruction which breaks the existing image processing mode that must be decoded before being loaded and rendered, and is directed to a partial image processing engine.
  • Supporting the processing of the compressed texture format picture, before requesting the picture from the server firstly detecting whether the image processing engine of the intelligent terminal supports processing the compressed texture format picture, if supported, directly requests the server to compress the texture format picture, so that Need to decode to load and render directly.
  • the format image is smaller than the normal texture format image file obtained by decoding the normal format image. Therefore, when the texture is loaded, the IO bandwidth overhead of the memory to the memory can be effectively reduced, and the calculation and rendering speed of each frame is improved, thereby improving The loading and rendering efficiency, because the steps of image decoding are omitted, reduces the load on the CPU. Therefore, for smart terminals that support processing of compressed texture format images, the rendering speed of the image can be effectively improved, thereby improving the running speed and smoothness of the application. To enhance the user experience.
  • the image processing method of the terminal further includes:
  • the compressed texture format picture returned by the server is received, the compressed texture format picture is directly loaded into the image processing engine to form a texture;
  • the normal format picture returned by the server is received, the normal format picture is decoded and loaded into the image processing engine to form a texture.
  • the rendering method of the common format picture by the smart terminal is as follows: First, the common format picture resource is obtained from the server. The corresponding decoding is performed, the decoded picture data is cached into the memory, and the decoded picture data (ARGB pixel data) is transferred from the memory to the GPU memory to be loaded into a texture, and real-time rendering is performed when the texture is needed.
  • the source of ordinary texture format pictures is JPEG and PNG format pictures, of which JPEG is the most commonly used image file format, with good compression performance and image quality, but its image does not have alpha channel.
  • the PNG image is a lossless compressed image file format that supports transparency, but compression is relatively low. Taking the rendering of a typical normal format PNG image as an example, after downloading the image to the local, it first needs to be decoded into a RGBA8888 format containing four color channel components by the CPU, and then loaded from the CPU memory to the GPU memory, because the resource data is compared. Large, and the IO bandwidth of the smart terminal memory to the video memory is limited, making the loading speed slower.
  • RGBA8888 format resource is: w*h*8*4, where w is the image width and h is the image height, when there are many pictures and the picture size is large, there will be Calculating the problem of excessive load causes the rendering speed of the smart terminal interface to decrease.
  • the smart terminal device Since the smart terminal device has the characteristics of high DPI, when the obtained normal texture picture format is JPEG, the JPEG format picture is decoded into the RGB565 format, which can reduce the memory occupancy and data bandwidth by half compared with the original RGBA8888 format; When the uncompressed texture image format is PNG, the image is decoded and converted to RGBA4444 format, which can reduce the memory occupancy and data bandwidth by half compared with the RGBA8888 format image.
  • the normal format picture returned by the server is received, the normal format picture is decoded and then loaded into the image processing engine to form a texture, including :
  • the normal format picture returned by the server is received, the normal format picture is decoded into a texture picture of a predetermined format according to the format of the normal format picture;
  • the texture image of the predetermined format is transmitted to a picture processing engine, and is loaded by the image processing engine to form a texture.
  • the texture image of the predetermined format includes texture images of at least one of the following formats: RGB565 format, RGBA4444 format, ARGB8888 format, and RGB888 format.
  • the normal format picture is decoded into a texture picture of the RGB565 format; if the format of the normal format picture is a PNG format, The normal format picture is then decoded into a texture picture of the RGBA4444 format.
  • the texture image of the predetermined format is transmitted to the image.
  • the processing engine the step of loading the texture by the image processing engine, comprises: dithering the texture image of the predetermined format according to an image dithering algorithm; and transmitting the texture image of the predetermined format after the dither processing to the image processing engine,
  • the image processing engine loads to form a texture.
  • the image processing method for the smart terminal further includes: performing texture rendering on the texture. This step is completed by the GPU. Since the texture rendering is a mature technology in the prior art, it will not be described here. Any texture rendering method in the prior art is within the protection scope of the present application.
  • FIG. 2 is a schematic diagram of an embodiment of a picture processing apparatus for a smart terminal provided by the present application. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment. The device embodiments described below are merely illustrative.
  • the image processing apparatus for the smart terminal of the embodiment includes: a picture processing instruction receiving unit 101, configured to receive a picture processing instruction; and a detecting unit 102, configured to trigger the detecting intelligence after receiving the picture processing instruction Whether the image processing engine of the terminal supports the predetermined processing mode; the first image requesting unit 103 is configured to: if supported, request a picture corresponding to the predetermined processing mode from the server; and the second picture requesting unit 104 is configured to: If it is not supported, the server is requested to request a picture corresponding to other processing modes supported by the image processing engine.
  • the detecting unit includes: a compressed picture support detecting subunit, configured to: after receiving the picture processing instruction, trigger an image processing engine that detects whether the smart terminal supports loading the compressed texture format picture;
  • the first picture requesting unit 103 includes: a compressed picture requesting subunit, and if requested, requests a compressed texture format picture from the server;
  • the second picture requesting unit 104 includes: a normal picture requesting subunit, and if not, requests a normal format picture from the server.
  • the compressed picture request subunit includes:
  • a first compressed picture requesting subunit configured to request, when supported, a compressed texture format picture to the server
  • a first normal picture requesting subunit configured to not receive the compression returned by the server if the predetermined time is not received
  • the texture image requests a normal format image from the server.
  • the image processing apparatus for the smart terminal further includes:
  • a compressed picture loading unit configured to load the compressed texture format picture into the image processing engine to form a texture if the compressed texture format picture returned by the server is received;
  • the normal picture loading unit is configured to: after receiving the normal format picture returned by the server, decode the normal format picture and load it into the image processing engine to form a texture.
  • the compressed texture format picture includes a picture in at least one of the following formats:
  • ETC format ETC format, PVR format, ETC1 format, PVRTC format, ATITC format, S3TC format.
  • the normal format picture includes the following at least one format:
  • JPEG format JPG format, PNG format, BMP format, TGA format.
  • the compressed picture support detection subunit includes: the compressed picture supports a sequential detection subunit, and is configured to, after receiving the picture loading instruction, trigger to sequentially detect whether the image processing engine of the smart terminal supports processing a predetermined plurality of Formatted compressed texture format image;
  • the compressed picture requesting subunit includes: a second compressed picture requesting subunit, configured to request at least one format compression of the image processing engine to support the processing if the compressed texture format picture of the at least one format is supported Texture format image.
  • the compressed picture request subunit includes:
  • a third compressed picture requesting subunit configured to request, from the server, a compressed texture format picture in a format supported by the image processing engine.
  • the normal picture loading unit includes:
  • a normal picture decoding subunit configured to decode the normal format picture into a texture picture of a predetermined format according to a format of the normal format picture if receiving a normal format picture returned by the server;
  • a normal texture loading subunit is configured to pass the texture image of the predetermined format to a picture processing engine, and the image processing engine loads and forms a texture.
  • the texture image of the predetermined format includes a texture image of at least one of the following formats:
  • RGB565 format RGBA4444 format
  • ARGB8888 format RGB888 format
  • the normal picture decoding subunit includes:
  • a first normal picture decoding subunit configured to: if the format of the normal format picture is JPEG format, Decoding a normal format picture into a texture picture in RGB565 format;
  • a second common picture decoding subunit configured to decode the normal format picture into a texture picture of the RGBA4444 format if the format of the normal format picture is a PNG format.
  • the normal texture loading subunit includes:
  • a dithering subunit configured to perform dither processing on the texture image of the predetermined format according to an image dithering algorithm
  • the dither texture loading sub-unit is configured to transmit the texture image of the predetermined format after the dither processing to the image processing engine, and the image processing engine loads and forms a texture.
  • the image processing apparatus for the smart terminal further includes:
  • a rendering unit for texture rendering the texture is
  • the above is an embodiment of a picture processing apparatus for a smart terminal provided by the present application.
  • the present application further provides a page display method for a smart terminal, where at least one of the at least one page of the smart terminal is obtained by processing the image processing method for the smart terminal provided by the present application.
  • the image processing method for the smart terminal is used.
  • the related description refer to the description of the embodiment of the image processing method for the smart terminal, and details are not described herein again.
  • the present application further provides a picture processing terminal device for a smart terminal, including:
  • the memory processing method for the smart terminal provided by the present application is stored in the memory; and can be operated according to the above method after being started.
  • the image processing terminal device for the smart terminal For the image processing terminal device for the smart terminal, the image processing method for the smart terminal is used. For the related description, refer to the description of the embodiment of the image processing method for the smart terminal, and details are not described herein again.
  • the present application further provides a picture processing system for a smart terminal, including a client and a server, where the client is configured with a picture processing device for the smart terminal provided by the application, and the client is to the server. Requesting a picture, downloading a picture from the server, and then processing the picture.
  • the image processing device for the smart terminal is configured.
  • the related description refer to the description of the embodiment of the image processing device for the smart terminal, and details are not described herein.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
  • RAM random access memory
  • ROM read only memory
  • Memory is an example of a computer readable medium.
  • Computer readable media including both permanent and non-persistent, removable and non-removable media may be implemented by any method or technology.
  • the information can be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
  • computer readable media does not include non-transitory computer readable media, such as modulated data signals and carrier waves.
  • embodiments of the present application can be provided as a method, system, or computer program product.
  • the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware.
  • the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

本申请提供了一种用于智能终端的图片处理方法、装置、终端设备及系统,该方法包括:首先接收图片处理指令;在接收到所述图片处理指令后,触发检测智能终端的图像处理引擎是否支持预定的处理方式;若支持,则向服务端请求与所述预定的处理方式对应的图片;若不支持,则向服务端请求与所述图像处理引擎支持的其他处理方式对应的图片。相较于现有技术,本申请在向服务端请求图片前,首先检测智能终端的图像处理引擎是否支持预定的处理方式,进而有针对性的向服务端请求对应的图片,从而实现基于智能终端的硬件条件自动选择较优的处理方式,因此,可以提高对图片的处理能力,进而提升应用程序的运行速度及流畅度,提升用户使用体验。

Description

用于智能终端的图片处理方法、装置、终端设备及系统
本申请要求2015年09月14日递交的申请号为201510583918.8、发明名称为“用于智能终端的图片处理方法、装置、终端设备及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子技术领域,具体的说是一种用于智能终端的图片处理方法、一种用于智能终端的图片处理装置、一种用于智能终端的页面显示方法、一种用于智能终端的图片处理终端设备以及一种用于智能终端的图片处理系统。
背景技术
随着智能设备的普及,对智能终端程序的开发提出了越来越多的要求,例如,移动终端的购物APP为了更好地展示商品的特性,需要大量使用图片的展示;在使用HTML5Canvas进行移动终端游戏APP开发时,也会涉及到大量游戏图片纹理的频繁渲染。图片纹理的渲染是移动终端应用程序中资源消耗量大且耗时较多的操作,而图片纹理的渲染性能很大程度上决定整个移动终端应用程序的运行速度、流畅度以及用户的使用体验,在游戏APP中,纹理渲染的性能是决定整个游戏运行帧率的最大因素。
不论是智能终端购物APP还是HTML5Canvas的游戏APP开发中,大量的基本元素(如商品详情,游戏场景,APP的用户UI等)都由图片构成。基于OpenGL ES的纹理渲染中,图片进入渲染管线加载为纹理,纹理数据的复杂程度,直接关系到内存到显存的IO开销以及其在渲染管线中的计算复杂度。现有技术中,智能终端进行纹理渲染时,需要从服务器端获取图片资源,进行相应的解码,再从智能终端的内存中把解码的图片数据(ARGB像素数据)传输到图像处理引擎中加载成为纹理,在需要使用纹理的时候进行实时渲染,存在如下问题:一、现有技术使用的图片资源普遍采用jpg、png等图片格式,图片体积大,从服务器下载图片会比较耗时,特别是在2G/3G通信网络环境中流量耗费较大;二、jpg、png等图片格式需要先解码才能渲染显示,解码占用CPU进程,对系统资源消耗较大;三、jpg、png等格式图片最终解码成每个通道一个字节的格式上传,其体积相对于GPU支持的纹理格式较大,同时在移动终端把数据从CPU内存写入到显存也是比较耗时的IO操作;四、现有技术中移动终端GPU使用ARGB8888或者RGB888这两种格式进行渲染,效率较低。
发明内容
鉴于上述问题,本申请提供一种用于智能终端的图片处理方法、一种用于智能终端的图片处理装置、一种用于智能终端的页面显示方法、一种用于智能终端的图片处理终端设备以及一种用于智能终端的图片处理系统。
本申请采用的技术方案是:
本申请提供一种用于智能终端的图片处理方法,包括:
接收图片处理指令;
在接收到所述图片处理指令后,触发检测智能终端的图像处理引擎是否支持预定的处理方式;
若支持,则向服务端请求与所述预定的处理方式对应的图片;
若不支持,则向服务端请求与所述图像处理引擎支持的其他处理方式对应的图片。
可选的,所述在接收到所述图片处理指令后,触发检测智能终端的图像处理引擎是否支持预定的处理方式的步骤,包括:
在接收到所述图片处理指令后,触发检测智能终端的图像处理引擎是否支持加载压缩纹理格式图片;
所述若支持,则向服务端请求与所述预定的处理方式对应的图片的步骤,包括:若支持,则向服务端请求压缩纹理格式图片;
所述若不支持,则向服务端请求与所述图像处理引擎支持的其他处理方式对应的图片的步骤,包括:若不支持,则向服务端请求普通格式图片。
可选的,所述若支持,则向服务端请求压缩纹理格式图片的步骤,包括:
若支持,则向服务端请求压缩纹理格式图片;
若在预定的时间内未接收到所述服务端返回的压缩纹理图片,则向服务端请求普通格式图片。
可选的,所述用于智能终端的图片处理方法,还包括:
若接收到所述服务端返回的压缩纹理格式图片,则将所述压缩纹理格式图片直接加载到所述图像处理引擎中形成纹理;
若接收到所述服务端返回的普通格式图片,则将所述普通格式图片解码后加载到所述图像处理引擎中形成纹理。
可选的,所述压缩纹理格式图片包括以下至少一种格式的图片:
ETC格式,PVR格式,ETC1格式,PVRTC格式,ATITC格式,S3TC格式。
可选的,所述普通格式图片包括以下至少一种格式的图片:
JPEG格式,JPG格式,PNG格式,BMP格式,TGA格式。
可选的,所述在接收到所述图片加载指令后,触发检测智能终端的图像处理引擎是否支持处理压缩纹理格式图片的步骤,包括:
在接收到所述图片加载指令后,触发依次检测智能终端的图像处理引擎是否支持处理预定的多种格式的压缩纹理格式图片;
所述若支持,则向服务端请求压缩纹理格式图片的步骤,包括:
若支持至少一种格式的压缩纹理格式图片,则向服务端请求所述图像处理引擎支持处理的至少一种格式的压缩纹理格式图片。
可选的,所述若支持,则向服务端请求压缩纹理格式图片的步骤,包括:
若支持,则查询所述图像处理引擎支持处理的压缩纹理格式图片的格式;
向服务端请求所述图像处理引擎支持处理的格式的压缩纹理格式图片。
可选的,所述若接收到所述服务端返回的普通格式图片,则将所述普通格式图片解码后加载到所述图像处理引擎中形成纹理的步骤,包括:
若接收到所述服务端返回的普通格式图片,则根据所述普通格式图片的格式将所述普通格式图片解码为预定格式的纹理图片;
将所述预定格式的纹理图片传至图片处理引擎,由所述图片处理引擎加载形成纹理。
可选的,所述预定格式的纹理图片包括以下至少一种格式的纹理图片:
RGB565格式,RGBA4444格式,ARGB8888格式,RGB888格式。
可选的,所述根据所述普通格式图片的格式将所述普通格式图片解码为预定格式的纹理图片,包括:
若所述普通格式图片的格式为JPEG格式,则将所述普通格式图片解码为RGB565格式的纹理图片;
若所述普通格式图片的格式为PNG格式,则将所述普通格式图片解码为RGBA4444格式的纹理图片。
可选的,所述将所述预定格式的纹理图片传至图片处理引擎,由所述图片处理引擎加载形成纹理的步骤,包括:
将所述预定格式的纹理图片按照图像抖动算法进行抖动处理;
将抖动处理后的预定格式的纹理图片传至图片处理引擎,由所述图片处理引擎加载 形成纹理。
可选的,所述用于智能终端的图片处理方法,还包括:
对所述纹理进行纹理渲染。
本申请还提供一种用于智能终端的图片处理装置,包括:
图片处理指令接收单元,用于接收图片处理指令;
检测单元,用于在接收到所述图片处理指令后,触发检测智能终端的图像处理引擎是否支持预定的处理方式;
第一图片请求单元,用于若支持,则向服务端请求与所述预定的处理方式对应的图片;
第二图片请求单元,用于若不支持,则向服务端请求与所述图像处理引擎支持的其他处理方式对应的图片。
可选的,所述检测单元包括:压缩图片支持检测子单元,用于在接收到所述图片处理指令后,触发检测智能终端的图像处理引擎是否支持加载压缩纹理格式图片;
所述第一图片请求单元包括:压缩图片请求子单元,用于若支持,则向服务端请求压缩纹理格式图片;
所述第二图片请求单元包括:普通图片请求子单元,用于若不支持,则向服务端请求普通格式图片。
可选的,所述压缩图片请求子单元包括:
第一压缩图片请求子单元,用于若支持,则向服务端请求压缩纹理格式图片;
第一普通图片请求子单元,用于若在预定的时间内未接收到所述服务端返回的压缩纹理图片,则向服务端请求普通格式图片。
可选的,所述用于智能终端的图片处理装置还包括:
压缩图片加载单元,用于若接收到所述服务端返回的压缩纹理格式图片,则将所述压缩纹理格式图片直接加载到所述图像处理引擎中形成纹理;
普通图片加载单元,用于若接收到所述服务端返回的普通格式图片,则将所述普通格式图片解码后加载到所述图像处理引擎中形成纹理。
可选的,所述压缩纹理格式图片包括以下至少一种格式的图片:
ETC格式,PVR格式,ETC1格式,PVRTC格式,ATITC格式,S3TC格式。
可选的,所述普通格式图片包括以下至少一种格式的图片:
JPEG格式,JPG格式,PNG格式,BMP格式,TGA格式。
可选的,所述压缩图片支持检测子单元包括:压缩图片支持依次检测子单元,用于在接收到所述图片加载指令后,触发依次检测智能终端的图像处理引擎是否支持处理预定的多种格式的压缩纹理格式图片;
所述压缩图片请求子单元包括:第二压缩图片请求子单元,用于若支持至少一种格式的压缩纹理格式图片,则向服务端请求所述图像处理引擎支持处理的至少一种格式的压缩纹理格式图片。
可选的,所述压缩图片请求子单元包括:
压缩图片查询子单元,用于若支持,则查询所述图像处理引擎支持处理的压缩纹理格式图片的格式;
第三压缩图片请求子单元,用于向服务端请求所述图像处理引擎支持处理的格式的压缩纹理格式图片。
可选的,所述普通图片加载单元包括:
普通图片解码子单元,用于若接收到所述服务端返回的普通格式图片,则根据所述普通格式图片的格式将所述普通格式图片解码为预定格式的纹理图片;
普通纹理加载子单元,用于将所述预定格式的纹理图片传至图片处理引擎,由所述图片处理引擎加载形成纹理。
可选的,所述预定格式的纹理图片包括以下至少一种格式的纹理图片:
RGB565格式,RGBA4444格式,ARGB8888格式,RGB888格式。
可选的,所述普通图片解码子单元包括:
第一普通图片解码子单元,用于若所述普通格式图片的格式为JPEG格式,则将所述普通格式图片解码为RGB565格式的纹理图片;
第二普通图片解码子单元,用于若所述普通格式图片的格式为PNG格式,则将所述普通格式图片解码为RGBA4444格式的纹理图片。
可选的,所述普通纹理加载子单元包括:
抖动子单元,用于将所述预定格式的纹理图片按照图像抖动算法进行抖动处理;
抖动纹理加载子单元,用于将抖动处理后的预定格式的纹理图片传至图片处理引擎,由所述图片处理引擎加载形成纹理。
可选的,所述用于智能终端的图片处理装置,还包括:渲染单元,用于对所述纹理进行纹理渲染。
本申请还提供一种用于智能终端的页面显示方法,所述智能终端的至少一个页面中 的至少一副图片是通过本申请提供的任一项用于智能终端的图片处理方法处理后获得的。
本申请还提供一种用于智能终端的图片处理终端设备,包括:
中央处理器;
输入输出单元;
存储器;
所述存储器中存储有本申请提供的用于智能终端的图片处理方法;并在启动后能够根据上述方法运行。
本申请还提供一种用于智能终端的图片处理系统,包括客户端和服务端,所述客户端配置有本申请提供的用于智能终端的图片处理装置,所述客户端向所述服务端请求图片,并从所述服务端下载图片,然后对所述图片进行处理。
与现有技术相比,本申请具有以下优点:
本申请提供的一种用于智能终端的图片处理方法,首先接收图片处理指令;在接收到所述图片处理指令后,触发检测智能终端的图像处理引擎是否支持预定的处理方式;若支持,则向服务端请求与所述预定的处理方式对应的图片;若不支持,则向服务端请求与所述图像处理引擎支持的其他处理方式对应的图片。相较于现有技术,本申请在向服务端请求图片前,首先检测智能终端的图像处理引擎是否支持预定的处理方式,进而有针对性的向服务端请求对应的图片,从而实现基于智能终端的硬件条件自动选择较优的处理方式,因此,可以提高对图片的处理能力,进而提升应用程序的运行速度及流畅度,提升用户使用体验。
将本方法应用于图片加载的场景中,相较于现有技术,打破了现有必须先解码才能加载、渲染的图片处理方式,针对部分图像处理引擎支持处理压缩纹理格式图片的现状,在向服务端请求图片前,首先检测智能终端的图像处理引擎是否支持处理压缩纹理格式图片,若支持,则直接向服务端请求压缩纹理格式图片,这样,不需要进行解码即可直接加载、渲染。采用本技术,一方面由于压缩纹理格式图片相较于普通格式图片文件占用容量更小,在通过网络传输时消耗的流量更低、占用带宽更低、耗时更少;另一方面由于压缩纹理格式图片相较于普通格式图片解码获得的普通纹理格式图片文件占用容量也小,因此,在纹理加载时可有效降低内存到显存的IO带宽开销,提高每一帧的计算与渲染速度,从而提高加载及渲染效率,又由于省略了图片解码的步骤,降低了CPU的负荷,因此,对于支持处理压缩纹理格式图片的智能终端,可以有效提高图片渲染速度, 进而提升应用程序的运行速度及流畅度,提升用户使用体验。
附图说明
图1是本申请提供的一种用于智能终端的图片处理方法实施例的流程图;
图2是本申请提供的一种用于智能终端的图片处理装置实施例的示意图。
具体实施方式
在下面的描述中阐述了很多具体细节以便于充分理解本申请。但是本申请能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本申请内涵的情况下做类似推广,因此本申请不受下面公开的具体实施的限制。
本申请提供了一种用于智能终端的图片处理方法、一种用于智能终端的图片处理装置、一种用于智能终端的页面显示方法、一种用于智能终端的图片处理终端设备以及一种用于智能终端的图片处理系统,下面依次结合附图对本申请的实施例进行详细说明。
请参考图1,其为本申请提供的一种用于智能终端的图片处理方法实施例的流程图,所述方法包括如下步骤:
步骤S101:接收图片处理指令。
本步骤,首先接收图片处理指令,所述图片处理指令包括图片加载指令、页面图片加载指令、客户端背景图片加载指令、图片渲染指令、图片解析指令、图片格式转换指令等。
步骤S102:在接收到所述图片处理指令后,触发检测智能终端的图像处理引擎是否支持预定的处理方式。
通过步骤S101,已接收图片处理指令,接下来,在接收到所述图片处理指令后,触发检测智能终端的图像处理引擎是否支持预定的处理方式。
在本申请提供的一个实施例中,所述图形处理引擎为GPU(图形处理器),考虑到不同厂家、不同规格的GPU支持处理的图片格式不同,特别是部分GPU已经开始支持处理压缩纹理格式图片,由于压缩纹理格式图片相较于普通格式图片解压获得的普通纹理格式文件占用容量更小,且GPU对压缩纹理的加载速度和渲染速度远远高于普通纹理,鉴于此,在处理图片前,首先检测智能终端的图像处理引擎是否支持预定的处理方式,其中,所述预定的处理方式包括具有某方面处理优势的处理方式,如处理速度快、处理效果好、耗能低等,以便于结合所述图像处理引擎的处理能力择优进行相对应的处 理。
在本申请提供的一个优选的实施例中,所述在接收到所述图片处理指令后,触发检测智能终端的图像处理引擎是否支持预定的处理方式的步骤,包括:在接收到所述图片处理指令后,触发检测智能终端的图像处理引擎是否支持加载压缩纹理格式图片。
由于不同厂商生产的、不同规格的GPU支持处理的压缩纹理格式图片也不同,因此,所述压缩纹理格式图片包括以下至少一种格式的图片:ETC格式,PVR格式,ETC1格式,PVRTC格式,ATITC格式,S3TC格式。
在本申请提供的一个具体实施例中,所述在接收到所述图片加载指令后,触发检测智能终端的图像处理引擎是否支持处理压缩纹理格式图片的步骤,包括:在接收到所述图片加载指令后,触发依次检测智能终端的图像处理引擎是否支持处理预定的多种格式的压缩纹理格式图片。
在本申请提供的一个具体实施例中,可以通过压缩纹理查询函数查询GPU支持哪些压缩纹理,例如:stringextensions=(const char*)glGetString(GL_EXTENSIONS)。若返回值为空值则说明所述GPU不支持处理压缩纹理格式图片,否则说明所述GPU支持处理压缩纹理格式图片。此外,也可以依次检测所述图像处理引擎是否支持处理预定的多种格式的压缩纹理格式图片,例如:在搭配有安卓操作系统的智能终端中,可以利用函数return(extensions.find("GL_OES_compressed_ETC1_RGB8_texture")!=string::npos)可判断所述图像处理引擎是否支持处理ETC1格式的压缩纹理,利用函数return(extensions.find("GL_EXT_texture_compression_dxt1")!=string::npos||extensions.find("GL_EXT_texture_compression_s3tc")!=string::npos)可判断所述图像处理引擎是否支持处理DXT格式的压缩纹理,利用函数return(extensions.find("GL_IMG_texture_compression_pvrtc")!=string::npos)可判断所述图像处理引擎是否支持处理PVRTC格式的压缩纹理,利用函数return(extensions.find("GL_AMD_compressed_ATC_texture")!=string::npos||extensions.find("GL_ATI_texture_compression_atitc")!=string::npos)可判断所述图像处理引擎是否支持处理ETC1格式的压缩纹理,等等。
以上仅举例说明了检测智能终端的图像处理引擎是否支持处理压缩纹理格式图片的步骤,并不限制本申请的保护范围,通过现有技术中的其他方法或函数检测图像处理引擎是否支持处理压缩纹理格式图片,也在本申请的保护范围之内。
步骤S103:若支持,则向服务端请求与所述预定的处理方式对应的图片。
通过步骤S102,已检测出所述智能终端的图像处理引擎是否支持预定的处理方式,若支持,则向服务端请求与所述预定的处理方式对应的图片,进而使所述图像处理引擎已较优的预定的处理方式处理相应的图片,从而充分发挥所述图像处理引擎的优势,提高图片处理效率、提升图片处理质量或降低图像处理引擎耗能、减少放热。
仍以上述优选的实施例为例,所述若支持,则向服务端请求与所述预定的处理方式对应的图片的步骤,包括:若支持,则向服务端请求压缩纹理格式图片。
考虑到不同厂商生产的、不同规格的GPU支持处理的压缩纹理格式图片也不同,因此,在本申请提供的一个实施例中,所述若支持,则向服务端请求压缩纹理格式图片的步骤,包括:
若支持,则查询所述图像处理引擎支持处理的压缩纹理格式图片的格式;
向服务端请求所述图像处理引擎支持处理的格式的压缩纹理格式图片。
与所述触发依次检测智能终端的图像处理引擎是否支持处理预定的多种格式的压缩纹理格式图片相对应的,在本申请提供的一个实施例中,所述若支持,则向服务端请求压缩纹理格式图片的步骤,包括:若支持至少一种格式的压缩纹理格式图片,则向服务端请求所述图像处理引擎支持处理的至少一种格式的压缩纹理格式图片。
考虑到所述服务端未必会有压缩纹理格式图片,因此,在本申请提供的一个实施例中,所述若支持,则向服务端请求压缩纹理格式图片的步骤,包括:
若支持,则向服务端请求压缩纹理格式图片;
若在预定的时间内未接收到所述服务端返回的压缩纹理图片,则向服务端请求普通格式图片。
其中,所述普通格式图片包括以下至少一种格式的图片:JPEG格式,JPG格式,PNG格式,BMP格式,TGA格式。
步骤S104:若不支持,则向服务端请求与所述图像处理引擎支持的其他处理方式对应的图片。
通过步骤S102,已检测出所述智能终端的图像处理引擎是否支持预定的处理方式,若不支持,则向服务端请求与所述图像处理引擎支持的其他处理方式对应的图片。
仍以上述优选的实施例为例,所述若不支持,则向服务端请求与所述图像处理引擎支持的其他处理方式对应的图片的步骤,包括:若不支持,则向服务端请求普通格式图片。所述普通格式图片包括以下至少一种格式的图片:JPEG格式,JPG格式,PNG格式,BMP格式,TGA格式。以上仅示例性的列举了部分普通格式图片,并不限制本申 请的保护范围,除压缩纹理格式图片以外的其他格式图片,均在本申请的保护范围之内。
至此,通过步骤S101至步骤S104,完成了本申请提供的用于智能终端的图片处理流程,相较于现有技术,本申请在向服务端请求图片前,首先检测智能终端的图像处理引擎是否支持预定的处理方式,进而有针对性的向服务端请求对应的图片,从而实现基于智能终端的硬件条件自动选择较优的处理方式,因此,可以提高对图片的处理能力,进而提升应用程序的运行速度及流畅度,提升用户使用体验。
在图片加载的场景中,由于图片的纹理格式的选择很大程度上影响着渲染的效率,从而最终影响到软件的整体性能和用户体验。纹理图片分为两种格式,为GPU压缩纹理格式图片与普通纹理格式图片,其中普通纹理格式图片是由CPU对普通格式图片解码后获得的。压缩纹理格式图片相较于普通纹理格式图片,GPU加载速度和渲染速度更高,且文件占用容量更低,优势明显。然而,不同的GPU厂商支持的压缩纹理格式不尽相同,以及相同GPU厂商的不同系列GPU支持的压缩纹理格式不尽相同,甚至部分低端GPU并不具备支持压缩纹理加载的能力。
因此,在本申请提供的优选实施例中,所述图片处理指令包括图片加载指令,相较于现有技术,打破了现有必须先解码才能加载、渲染的图片处理方式,针对部分图像处理引擎支持处理压缩纹理格式图片的现状,在向服务端请求图片前,首先检测智能终端的图像处理引擎是否支持处理压缩纹理格式图片,若支持,则直接向服务端请求压缩纹理格式图片,这样,不需要进行解码即可直接加载、渲染。采用本技术,一方面由于压缩纹理格式图片相较于普通格式图片文件占用容量更小,在通过网络传输时消耗的流量更低、占用带宽更低、耗时更少;另一方面由于压缩纹理格式图片相较于普通格式图片解码获得的普通纹理格式图片文件占用容量也小,因此,在纹理加载时可有效降低内存到显存的IO带宽开销,提高每一帧的计算与渲染速度,从而提高加载及渲染效率,又由于省略了图片解码的步骤,降低了CPU的负荷,因此,对于支持处理压缩纹理格式图片的智能终端,可以有效提高图片渲染速度,进而提升应用程序的运行速度及流畅度,提升用户使用体验。
由于压缩纹理格式图片可以由GPU直接加载,而普通格式图片需要首先由智能终端的CPU解码后获得普通纹理格式图片再进行加载,因此,在本申请提供的一个实施例中,所述用于智能终端的图片处理方法还包括:
若接收到所述服务端返回的压缩纹理格式图片,则将所述压缩纹理格式图片直接加载到所述图像处理引擎中形成纹理;
若接收到所述服务端返回的普通格式图片,则将所述普通格式图片解码后加载到所述图像处理引擎中形成纹理。
考虑到在所述图形处理引擎不支持处理压缩纹理格式图片时,只能处理普通格式图片,而现有技术中,智能终端对普通格式图片的渲染方法如下:首先从服务端获取普通格式图片资源,进行相应的解码,解码的图片数据被缓存至内存中,再从内存中把解码的图片数据(ARGB像素数据)传输到GPU显存中加载成为纹理,在需要使用纹理的时候进行实时渲染。通常普通纹理格式图片的来源为JPEG和PNG格式图片,其中JPEG是最常用的图像文件格式,拥有良好的压缩性能与图像质量,但是其图像不带alpha通道。PNG图片为无损压缩图像文件格式,支持透明效果,但压缩比较低。以对典型的普通格式PNG图片的渲染为例,在将图片下载到本地后,首先需要通过CPU解码成含有四个颜色通道分量的RGBA8888格式,然后从CPU内存加载到GPU显存,由于资源数据较大,而智能终端内存到显存的IO带宽有限,使得加载速度较慢。同时,由于RGBA8888格式资源在渲染时每次的计算量为:w*h*8*4,其中w为图像宽度,h为图像高度,在图片数量较多,图片尺寸较大的情况下会有计算负荷量过大的问题,导致智能终端界面的渲染速度降低。
由于智能终端设备具有高DPI的特性,在获取到的普通纹理图片格式为JPEG时,对JPEG格式图片进行解码为RGB565格式,相对于原始的RGBA8888格式能减少一半的内存占有量及数据带宽;若获取到非压缩纹理图片格式为PNG时,图片解码完后并转化为RGBA4444格式,相对于RGBA8888格式图片同样能减少一半的内存占有量及数据带宽。
因此,在本申请提供的一个实施例中,所述若接收到所述服务端返回的普通格式图片,则将所述普通格式图片解码后加载到所述图像处理引擎中形成纹理的步骤,包括:
若接收到所述服务端返回的普通格式图片,则根据所述普通格式图片的格式将所述普通格式图片解码为预定格式的纹理图片;
将所述预定格式的纹理图片传至图片处理引擎,由所述图片处理引擎加载形成纹理。
其中,所述预定格式的纹理图片包括以下至少一种格式的纹理图片:RGB565格式,RGBA4444格式,ARGB8888格式,RGB888格式。
在本申请提供的一个具体实施例中,若所述普通格式图片的格式为JPEG格式,则将所述普通格式图片解码为RGB565格式的纹理图片;若所述普通格式图片的格式为PNG格式,则将所述普通格式图片解码为RGBA4444格式的纹理图片。通过上述本方法, 可以使普通纹理格式图片在GPU管道中的计算与渲染负荷量得到降低,提高对普通格式图片的处理效率,同时减小GPU的耗能。
在图片渲染场景中,针对某些特征变化较大的图片,为了保证图片在智能终端的最终显示效果,在本申请提供的一个实施例中,所述将所述预定格式的纹理图片传至图片处理引擎,由所述图片处理引擎加载形成纹理的步骤,包括:将所述预定格式的纹理图片按照图像抖动算法进行抖动处理;将抖动处理后的预定格式的纹理图片传至图片处理引擎,由所述图片处理引擎加载形成纹理。通过对解码完成的图像像素数据进行抖动处理,提高图片在移动端的显示效果。
此外,在图片渲染场景中,所述用于智能终端的图片处理方法还包括:对所述纹理进行纹理渲染。该步骤有GPU完成,由于对纹理渲染是现有技术中的成熟技术,此处不再赘述,采用现有技术中的任何纹理渲染方法,均在本申请的保护范围之内。
在上述的实施例中,提供了一种用于智能终端的图片处理方法,与之相对应的,本申请还提供一种用于智能终端的图片处理装置。请参看图2,其为本申请提供的一种用于智能终端的图片处理装置实施例的示意图。由于装置实施例基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。下述描述的装置实施例仅仅是示意性的。
本实施例的一种用于智能终端的图片处理装置,包括:图片处理指令接收单元101,用于接收图片处理指令;检测单元102,用于在接收到所述图片处理指令后,触发检测智能终端的图像处理引擎是否支持预定的处理方式;第一图片请求单元103,用于若支持,则向服务端请求与所述预定的处理方式对应的图片;第二图片请求单元104,用于若不支持,则向服务端请求与所述图像处理引擎支持的其他处理方式对应的图片。
可选的,所述检测单元包括102:压缩图片支持检测子单元,用于在接收到所述图片处理指令后,触发检测智能终端的图像处理引擎是否支持加载压缩纹理格式图片;
所述第一图片请求单元103包括:压缩图片请求子单元,用于若支持,则向服务端请求压缩纹理格式图片;
所述第二图片请求单元104包括:普通图片请求子单元,用于若不支持,则向服务端请求普通格式图片。
可选的,所述压缩图片请求子单元包括:
第一压缩图片请求子单元,用于若支持,则向服务端请求压缩纹理格式图片;
第一普通图片请求子单元,用于若在预定的时间内未接收到所述服务端返回的压缩 纹理图片,则向服务端请求普通格式图片。
可选的,所述用于智能终端的图片处理装置还包括:
压缩图片加载单元,用于若接收到所述服务端返回的压缩纹理格式图片,则将所述压缩纹理格式图片直接加载到所述图像处理引擎中形成纹理;
普通图片加载单元,用于若接收到所述服务端返回的普通格式图片,则将所述普通格式图片解码后加载到所述图像处理引擎中形成纹理。
可选的,所述压缩纹理格式图片包括以下至少一种格式的图片:
ETC格式,PVR格式,ETC1格式,PVRTC格式,ATITC格式,S3TC格式。
可选的,所述普通格式图片包括以下至少一种格式的图片:
JPEG格式,JPG格式,PNG格式,BMP格式,TGA格式。
可选的,所述压缩图片支持检测子单元包括:压缩图片支持依次检测子单元,用于在接收到所述图片加载指令后,触发依次检测智能终端的图像处理引擎是否支持处理预定的多种格式的压缩纹理格式图片;
所述压缩图片请求子单元包括:第二压缩图片请求子单元,用于若支持至少一种格式的压缩纹理格式图片,则向服务端请求所述图像处理引擎支持处理的至少一种格式的压缩纹理格式图片。
可选的,所述压缩图片请求子单元包括:
压缩图片查询子单元,用于若支持,则查询所述图像处理引擎支持处理的压缩纹理格式图片的格式;
第三压缩图片请求子单元,用于向服务端请求所述图像处理引擎支持处理的格式的压缩纹理格式图片。
可选的,所述普通图片加载单元包括:
普通图片解码子单元,用于若接收到所述服务端返回的普通格式图片,则根据所述普通格式图片的格式将所述普通格式图片解码为预定格式的纹理图片;
普通纹理加载子单元,用于将所述预定格式的纹理图片传至图片处理引擎,由所述图片处理引擎加载形成纹理。
可选的,所述预定格式的纹理图片包括以下至少一种格式的纹理图片:
RGB565格式,RGBA4444格式,ARGB8888格式,RGB888格式。
可选的,所述普通图片解码子单元包括:
第一普通图片解码子单元,用于若所述普通格式图片的格式为JPEG格式,则将所 述普通格式图片解码为RGB565格式的纹理图片;
第二普通图片解码子单元,用于若所述普通格式图片的格式为PNG格式,则将所述普通格式图片解码为RGBA4444格式的纹理图片。
可选的,所述普通纹理加载子单元包括:
抖动子单元,用于将所述预定格式的纹理图片按照图像抖动算法进行抖动处理;
抖动纹理加载子单元,用于将抖动处理后的预定格式的纹理图片传至图片处理引擎,由所述图片处理引擎加载形成纹理。
可选的,所述用于智能终端的图片处理装置还包括:
渲染单元,用于对所述纹理进行纹理渲染。
以上,为本申请提供的一种用于智能终端的图片处理装置的实施例。
本申请还提供一种用于智能终端的页面显示方法,所述智能终端的至少一个页面中的至少一副图片是通过本申请提供的用于智能终端的图片处理方法处理后获得的。
由于本用于智能终端的页面显示方法使用上述用于智能终端的图片处理方法,相关之处请参见上述用于智能终端的图片处理方法的实施例说明,此处不再赘述。
本申请还提供一种用于智能终端的图片处理终端设备,包括:
中央处理器;
输入输出单元;
存储器;
所述存储器中存储有本申请提供的用于智能终端的图片处理方法;并在启动后能够根据上述方法运行。
由于本用于智能终端的图片处理终端设备使用上述用于智能终端的图片处理方法,相关之处请参见上述用于智能终端的图片处理方法的实施例说明,此处不再赘述。
本申请还提供一种用于智能终端的图片处理系统,包括客户端和服务端,所述客户端配置有本申请提供的用于智能终端的图片处理装置,所述客户端向所述服务端请求图片,并从所述服务端下载图片,然后对所述图片进行处理。
由于本用于智能终端的图片处理系统配置有上述用于智能终端的图片处理装置,相关之处请参见上述用于智能终端的图片处理装置的实施例说明,此处不再赘述。
本申请虽然以较佳实施例公开如上,但其并不是用来限定本申请,任何本领域技术人员在不脱离本申请的精神和范围内,都可以做出可能的变动和修改,因此本申请的保护范围应当以本申请权利要求所界定的范围为准。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
1、计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
2、本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。

Claims (29)

  1. 一种用于智能终端的图片处理方法,其特征在于,包括:
    接收图片处理指令;
    在接收到所述图片处理指令后,触发检测智能终端的图像处理引擎是否支持预定的处理方式;
    若支持,则向服务端请求与所述预定的处理方式对应的图片;
    若不支持,则向服务端请求与所述图像处理引擎支持的其他处理方式对应的图片。
  2. 根据权利要求1所述的用于智能终端的图片处理方法,其特征在于,所述在接收到所述图片处理指令后,触发检测智能终端的图像处理引擎是否支持预定的处理方式的步骤,包括:
    在接收到所述图片处理指令后,触发检测智能终端的图像处理引擎是否支持加载压缩纹理格式图片;
    所述若支持,则向服务端请求与所述预定的处理方式对应的图片的步骤,包括:若支持,则向服务端请求压缩纹理格式图片;
    所述若不支持,则向服务端请求与所述图像处理引擎支持的其他处理方式对应的图片的步骤,包括:若不支持,则向服务端请求普通格式图片。
  3. 根据权利要求1所述的用于智能终端的图片处理方法,其特征在于,所述若支持,则向服务端请求压缩纹理格式图片的步骤,包括:
    若支持,则向服务端请求压缩纹理格式图片;
    若在预定的时间内未接收到所述服务端返回的压缩纹理图片,则向服务端请求普通格式图片。
  4. 根据权利要求2所述的用于智能终端的图片处理方法,其特征在于,还包括:
    若接收到所述服务端返回的压缩纹理格式图片,则将所述压缩纹理格式图片直接加载到所述图像处理引擎中形成纹理;
    若接收到所述服务端返回的普通格式图片,则将所述普通格式图片解码后加载到所述图像处理引擎中形成纹理。
  5. 根据权利要求2所述的用于智能终端的图片处理方法,其特征在于,所述压缩纹理格式图片包括以下至少一种格式的图片:
    ETC格式,PVR格式,ETC1格式,PVRTC格式,ATITC格式,S3TC格式。
  6. 根据权利要求2所述的用于智能终端的图片处理方法,其特征在于,所述普通格式图片包括以下至少一种格式的图片:
    JPEG格式,JPG格式,PNG格式,BMP格式,TGA格式。
  7. 根据权利要求2所述的用于智能终端的图片处理方法,其特征在于,所述在接收到所述图片加载指令后,触发检测智能终端的图像处理引擎是否支持处理压缩纹理格式图片的步骤,包括:
    在接收到所述图片加载指令后,触发依次检测智能终端的图像处理引擎是否支持处理预定的多种格式的压缩纹理格式图片;
    所述若支持,则向服务端请求压缩纹理格式图片的步骤,包括:
    若支持至少一种格式的压缩纹理格式图片,则向服务端请求所述图像处理引擎支持处理的至少一种格式的压缩纹理格式图片。
  8. 根据权利要求2所述的用于智能终端的图片处理方法,其特征在于,所述若支持,则向服务端请求压缩纹理格式图片的步骤,包括:
    若支持,则查询所述图像处理引擎支持处理的压缩纹理格式图片的格式;
    向服务端请求所述图像处理引擎支持处理的格式的压缩纹理格式图片。
  9. 根据权利要求4所述的用于智能终端的图片处理方法,其特征在于,所述若接收到所述服务端返回的普通格式图片,则将所述普通格式图片解码后加载到所述图像处理引擎中形成纹理的步骤,包括:
    若接收到所述服务端返回的普通格式图片,则根据所述普通格式图片的格式将所述普通格式图片解码为预定格式的纹理图片;
    将所述预定格式的纹理图片传至图片处理引擎,由所述图片处理引擎加载形成纹理。
  10. 根据权利要求4所述的用于智能终端的图片处理方法,其特征在于,所述预定格式的纹理图片包括以下至少一种格式的纹理图片:
    RGB565格式,RGBA4444格式,ARGB8888格式,RGB888格式。
  11. 根据权利要求9所述的用于智能终端的图片处理方法,其特征在于,所述根据所述普通格式图片的格式将所述普通格式图片解码为预定格式的纹理图片,包括:
    若所述普通格式图片的格式为JPEG格式,则将所述普通格式图片解码为RGB565格式的纹理图片;
    若所述普通格式图片的格式为PNG格式,则将所述普通格式图片解码为RGBA4444格式的纹理图片。
  12. 根据权利要求9所述的用于智能终端的图片处理方法,其特征在于,所述将所述预定格式的纹理图片传至图片处理引擎,由所述图片处理引擎加载形成纹理的步骤,包括:
    将所述预定格式的纹理图片按照图像抖动算法进行抖动处理;
    将抖动处理后的预定格式的纹理图片传至图片处理引擎,由所述图片处理引擎加载形成纹理。
  13. 根据权利要求4所述的用于智能终端的图片处理方法,其特征在于,还包括:
    对所述纹理进行纹理渲染。
  14. 一种用于智能终端的图片处理装置,其特征在于,包括:
    图片处理指令接收单元,用于接收图片处理指令;
    检测单元,用于在接收到所述图片处理指令后,触发检测智能终端的图像处理引擎是否支持预定的处理方式;
    第一图片请求单元,用于若支持,则向服务端请求与所述预定的处理方式对应的图片;
    第二图片请求单元,用于若不支持,则向服务端请求与所述图像处理引擎支持的其他处理方式对应的图片。
  15. 根据权利要求14所述的用于智能终端的图片处理装置,其特征在于,
    所述检测单元包括:压缩图片支持检测子单元,用于在接收到所述图片处理指令后,触发检测智能终端的图像处理引擎是否支持加载压缩纹理格式图片;
    所述第一图片请求单元包括:压缩图片请求子单元,用于若支持,则向服务端请求压缩纹理格式图片;
    所述第二图片请求单元包括:普通图片请求子单元,用于若不支持,则向服务端请求普通格式图片。
  16. 根据权利要求15所述的用于智能终端的图片处理装置,其特征在于,所述压 缩图片请求子单元包括:
    第一压缩图片请求子单元,用于若支持,则向服务端请求压缩纹理格式图片;
    第一普通图片请求子单元,用于若在预定的时间内未接收到所述服务端返回的压缩纹理图片,则向服务端请求普通格式图片。
  17. 根据权利要求15所述的用于智能终端的图片处理装置,其特征在于,还包括:
    压缩图片加载单元,用于若接收到所述服务端返回的压缩纹理格式图片,则将所述压缩纹理格式图片直接加载到所述图像处理引擎中形成纹理;
    普通图片加载单元,用于若接收到所述服务端返回的普通格式图片,则将所述普通格式图片解码后加载到所述图像处理引擎中形成纹理。
  18. 根据权利要求15所述的用于智能终端的图片处理装置,其特征在于,所述压缩纹理格式图片包括以下至少一种格式的图片:
    ETC格式,PVR格式,ETC1格式,PVRTC格式,ATITC格式,S3TC格式。
  19. 根据权利要求15所述的用于智能终端的图片处理装置,其特征在于,所述普通格式图片包括以下至少一种格式的图片:
    JPEG格式,JPG格式,PNG格式,BMP格式,TGA格式。
  20. 根据权利要求15所述的用于智能终端的图片处理装置,其特征在于,
    所述压缩图片支持检测子单元包括:压缩图片支持依次检测子单元,用于在接收到所述图片加载指令后,触发依次检测智能终端的图像处理引擎是否支持处理预定的多种格式的压缩纹理格式图片;
    所述压缩图片请求子单元包括:第二压缩图片请求子单元,用于若支持至少一种格式的压缩纹理格式图片,则向服务端请求所述图像处理引擎支持处理的至少一种格式的压缩纹理格式图片。
  21. 根据权利要求15所述的用于智能终端的图片处理装置,其特征在于,所述压缩图片请求子单元包括:
    压缩图片查询子单元,用于若支持,则查询所述图像处理引擎支持处理的压缩纹理格式图片的格式;
    第三压缩图片请求子单元,用于向服务端请求所述图像处理引擎支持处理的格式的压缩纹理格式图片。
  22. 根据权利要求17所述的用于智能终端的图片处理装置,其特征在于,所述普通图片加载单元包括:
    普通图片解码子单元,用于若接收到所述服务端返回的普通格式图片,则根据所述普通格式图片的格式将所述普通格式图片解码为预定格式的纹理图片;
    普通纹理加载子单元,用于将所述预定格式的纹理图片传至图片处理引擎,由所述图片处理引擎加载形成纹理。
  23. 根据权利要求17所述的用于智能终端的图片处理装置,其特征在于,所述预定格式的纹理图片包括以下至少一种格式的纹理图片:
    RGB565格式,RGBA4444格式,ARGB8888格式,RGB888格式。
  24. 根据权利要求22所述的用于智能终端的图片处理装置,其特征在于,所述普通图片解码子单元包括:
    第一普通图片解码子单元,用于若所述普通格式图片的格式为JPEG格式,则将所述普通格式图片解码为RGB565格式的纹理图片;
    第二普通图片解码子单元,用于若所述普通格式图片的格式为PNG格式,则将所述普通格式图片解码为RGBA4444格式的纹理图片。
  25. 根据权利要求22所述的用于智能终端的图片处理装置,其特征在于,所述普通纹理加载子单元包括:
    抖动子单元,用于将所述预定格式的纹理图片按照图像抖动算法进行抖动处理;
    抖动纹理加载子单元,用于将抖动处理后的预定格式的纹理图片传至图片处理引擎,由所述图片处理引擎加载形成纹理。
  26. 根据权利要求17所述的用于智能终端的图片处理装置,其特征在于,还包括:
    渲染单元,用于对所述纹理进行纹理渲染。
  27. 一种用于智能终端的页面显示方法,其特征在于,所述智能终端的至少一个页面中的至少一副图片是通过权利要求1至权利要求13所述的任一项用于智能终端的图片处理方法处理后获得的。
  28. 一种用于智能终端的图片处理终端设备,其特征在于,包括:
    中央处理器;
    输入输出单元;
    存储器;
    所述存储器中存储有权利要求1至权利要求13所述的用于智能终端的图片处理方法;并在启动后能够根据上述方法运行。
  29. 一种用于智能终端的图片处理系统,包括客户端和服务端,其特征在于,所述客户端配置有权利要求14至权利要求16所述的用于智能终端的图片处理装置,所述客户端向所述服务端请求图片,并从所述服务端下载图片,然后对所述图片进行处理。
PCT/CN2016/098000 2015-09-14 2016-09-05 用于智能终端的图片处理方法、装置、终端设备及系统 Ceased WO2017045540A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510583918.8 2015-09-14
CN201510583918.8A CN106534715A (zh) 2015-09-14 2015-09-14 用于智能终端的图片处理方法、装置、终端设备及系统

Publications (1)

Publication Number Publication Date
WO2017045540A1 true WO2017045540A1 (zh) 2017-03-23

Family

ID=58288591

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/098000 Ceased WO2017045540A1 (zh) 2015-09-14 2016-09-05 用于智能终端的图片处理方法、装置、终端设备及系统

Country Status (2)

Country Link
CN (1) CN106534715A (zh)
WO (1) WO2017045540A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109685712A (zh) * 2017-10-18 2019-04-26 阿里巴巴集团控股有限公司 图像缓存和使用方法及装置、终端
CN110349243A (zh) * 2019-07-15 2019-10-18 Oppo广东移动通信有限公司 图像处理方法、装置、电子设备及存储介质
CN111028127A (zh) * 2019-11-18 2020-04-17 中国航空工业集团公司西安航空计算技术研究所 一种gpu子纹理替换存储方法
CN114489541A (zh) * 2022-01-14 2022-05-13 山东云海国创云计算装备产业创新中心有限公司 一种基于fpga的vga显存带宽调控方法及相关组件
CN115396424A (zh) * 2022-08-05 2022-11-25 中国银行股份有限公司 图片网络传输的处理方法和装置

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019847A (zh) * 2019-05-28 2020-12-01 杭州海康威视数字技术股份有限公司 解码方法及电子设备
CN113220249B (zh) * 2020-02-05 2024-12-27 腾讯科技(深圳)有限公司 一种图像显示方法、装置及存储介质
CN114022343B (zh) * 2021-10-29 2025-06-13 努比亚技术有限公司 资源加载方法、终端和存储介质
CN113763137B (zh) * 2021-11-10 2022-10-14 山东派盟网络科技有限公司 信息推送方法及计算机设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102474604A (zh) * 2009-06-30 2012-05-23 高通股份有限公司 用于高效2d-3d呈现的视频解码器中的纹理压缩
CN103605534A (zh) * 2013-10-31 2014-02-26 武汉极讯软件有限责任公司 图片加载方法及装置
US20140247982A1 (en) * 2013-03-04 2014-09-04 Zynga Inc. Generation of intermediate images for texture compression
CN104519353A (zh) * 2013-09-29 2015-04-15 联想(北京)有限公司 图像处理方法和电子设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794298A (zh) * 2010-01-22 2010-08-04 中兴通讯股份有限公司 一种实现页面适配的方法、页面适配系统及通信系统
CN102984151B (zh) * 2012-11-26 2016-09-28 北京奇虎科技有限公司 向计算终端提供图片数据的方法及服务器

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102474604A (zh) * 2009-06-30 2012-05-23 高通股份有限公司 用于高效2d-3d呈现的视频解码器中的纹理压缩
US20140247982A1 (en) * 2013-03-04 2014-09-04 Zynga Inc. Generation of intermediate images for texture compression
CN104519353A (zh) * 2013-09-29 2015-04-15 联想(北京)有限公司 图像处理方法和电子设备
CN103605534A (zh) * 2013-10-31 2014-02-26 武汉极讯软件有限责任公司 图片加载方法及装置

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109685712A (zh) * 2017-10-18 2019-04-26 阿里巴巴集团控股有限公司 图像缓存和使用方法及装置、终端
CN109685712B (zh) * 2017-10-18 2023-05-23 阿里巴巴集团控股有限公司 图像缓存和使用方法及装置、终端
CN110349243A (zh) * 2019-07-15 2019-10-18 Oppo广东移动通信有限公司 图像处理方法、装置、电子设备及存储介质
CN110349243B (zh) * 2019-07-15 2023-10-20 Oppo广东移动通信有限公司 图像处理方法、装置、电子设备及存储介质
CN111028127A (zh) * 2019-11-18 2020-04-17 中国航空工业集团公司西安航空计算技术研究所 一种gpu子纹理替换存储方法
CN111028127B (zh) * 2019-11-18 2023-06-13 中国航空工业集团公司西安航空计算技术研究所 一种gpu子纹理替换存储方法
CN114489541A (zh) * 2022-01-14 2022-05-13 山东云海国创云计算装备产业创新中心有限公司 一种基于fpga的vga显存带宽调控方法及相关组件
CN114489541B (zh) * 2022-01-14 2024-05-10 山东云海国创云计算装备产业创新中心有限公司 一种基于fpga的vga显存带宽调控方法及相关组件
CN115396424A (zh) * 2022-08-05 2022-11-25 中国银行股份有限公司 图片网络传输的处理方法和装置

Also Published As

Publication number Publication date
CN106534715A (zh) 2017-03-22

Similar Documents

Publication Publication Date Title
WO2017045540A1 (zh) 用于智能终端的图片处理方法、装置、终端设备及系统
CN102984151B (zh) 向计算终端提供图片数据的方法及服务器
CN102771119B (zh) 用于视频感知的屏幕捕获和压缩的系统和方法
CN102932671A (zh) 向计算终端提供图片数据的方法及服务器
US20210200255A1 (en) Higher graphics processing unit clocks for low power consuming operations
WO2014063652A1 (zh) 向计算终端提供图片数据的方法及服务器
WO2022161227A1 (zh) 图像处理方法、装置、图像处理芯片和电子设备
US10062405B2 (en) Electronic device and method for operating the same
US12532011B2 (en) Method and apparatus for processing video compression, and medium
CN102938792B (zh) 向计算终端提供图片数据的方法及服务器
CN105096367B (zh) 优化Canvas绘制性能的方法及装置
CN106302760B (zh) 桌面截屏控制方法及系统
US11051042B2 (en) Image processing device and method
WO2017202175A1 (zh) 一种视频压缩方法、装置及电子设备
US10462200B2 (en) System for cloud streaming service, method for still image-based cloud streaming service and apparatus therefor
CN106412588B (zh) 影像帧处理方法
WO2022068882A1 (zh) 镜像投屏方法、装置及系统
CN112399196B (zh) 图像处理方法及装置
CN111953990A (zh) 编码方法及装置
CN116056053A (zh) 投屏方法、电子设备、系统及计算机可读存储介质
CN116647672A (zh) 一种基于着色器的视频gpu解码图像异常检测方法及系统
CN105657070B (zh) 向计算终端提供图片数据的方法及服务器
US9972064B1 (en) Non-intrusive and low-power recording
TWI523541B (zh) 無線影音傳輸系統及其方法,及其電腦程式產品
US8688799B2 (en) Methods, apparatuses and computer program products for reducing memory copy overhead by indicating a location of requested data for direct access

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16845654

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16845654

Country of ref document: EP

Kind code of ref document: A1