CN110349243B - Image processing method, device, electronic equipment and storage medium - Google Patents

Image processing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110349243B
CN110349243B CN201910637251.3A CN201910637251A CN110349243B CN 110349243 B CN110349243 B CN 110349243B CN 201910637251 A CN201910637251 A CN 201910637251A CN 110349243 B CN110349243 B CN 110349243B
Authority
CN
China
Prior art keywords
image data
processed
compressed texture
image processing
graphics processor
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.)
Active
Application number
CN201910637251.3A
Other languages
Chinese (zh)
Other versions
CN110349243A (en
Inventor
李森林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910637251.3A priority Critical patent/CN110349243B/en
Publication of CN110349243A publication Critical patent/CN110349243A/en
Application granted granted Critical
Publication of CN110349243B publication Critical patent/CN110349243B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Generation (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the application discloses an image processing method, an image processing device, electronic equipment and a storage medium, wherein the method comprises the following steps: the method comprises the steps of receiving an image processing instruction, obtaining image data to be processed in various compression texture formats according to the image processing instruction, obtaining type information of a graphic processor, selecting target image data to be processed from the image data to be processed in various compression texture formats according to the type information, and finally inputting the target image data to be processed to the graphic processor for image rendering. Therefore, in the image processing process, the compressed texture format of the image data can be actively selected, and the efficiency of image processing is improved.

Description

图像处理方法、装置、电子设备及存储介质Image processing methods, devices, electronic equipment and storage media

技术领域Technical field

本申请涉及电子技术领域,具体涉及一种图像处理方法、装置、电子设备及存储介质。The present application relates to the field of electronic technology, and specifically to an image processing method, device, electronic equipment and storage medium.

背景技术Background technique

在现有的图像处理技术中,一般是通过Unity3D器对图像进行压缩纹理处理,Unity3D器可以将图片转换为所需要的Texture2D格式,在对Texture2D配置选项中,可以对不同的平台设置不同的压缩纹理格式,比如iOS平台设置成PVRTC4,Android平台设置成ETC1等。In the existing image processing technology, the image is generally compressed and textured through the Unity3D device. The Unity3D device can convert the image into the required Texture2D format. In the Texture2D configuration options, different compression can be set for different platforms. Texture format, for example, the iOS platform is set to PVRTC4, the Android platform is set to ETC1, etc.

但是,在对图像进行处理之前,需要生成指定的图像压缩纹理格式,在不同的GPU类型中,需要指定输入不同类型的图像的压缩纹理格式,否则,在GPU不支持图像的压缩纹理格式的情况下,会导致游戏画面异常等现象。However, before processing the image, it is necessary to generate the specified image compression texture format. In different GPU types, it is necessary to specify the input compressed texture format of different types of images. Otherwise, the GPU does not support the compressed texture format of the image. down, it will cause abnormal game screen and other phenomena.

发明内容Contents of the invention

本申请实施例提供一种图像处理方法、装置、电子设备及存储介质。其中所述图像处理方法能够提高对图像处理的效率。Embodiments of the present application provide an image processing method, device, electronic device, and storage medium. The image processing method can improve the efficiency of image processing.

为了解决以上技术问题,本申请提出了以下技术方案:In order to solve the above technical problems, this application proposes the following technical solutions:

第一方面,本申请实施例提供了一种图像处理方法,其中所述图像处理方法包括:In a first aspect, embodiments of the present application provide an image processing method, wherein the image processing method includes:

接收图像处理指令,根据所述图像处理指令获取多种压缩纹理格式的待处理图像数据;Receive image processing instructions, and obtain image data to be processed in multiple compressed texture formats according to the image processing instructions;

获取图形处理器的类型信息;Get the type information of the graphics processor;

根据所述类型信息在所述多种压缩纹理格式的待处理图像数据中选择目标待处理图像数据;Select target image data to be processed among the image data to be processed in the plurality of compressed texture formats according to the type information;

将所述目标待处理图像数据输入至所述图形处理器,以进行图像渲染。The target image data to be processed is input to the graphics processor for image rendering.

第二方面,本申请实施例提供了一种图像处理装置,其中所述图像处理装置包括:In a second aspect, embodiments of the present application provide an image processing device, wherein the image processing device includes:

第一获取模块,用于接收图像处理指令,根据所述图像处理指令获取多种压缩纹理格式的待处理图像数据;A first acquisition module, configured to receive image processing instructions and obtain image data to be processed in multiple compressed texture formats according to the image processing instructions;

第二获取模块,用于获取图形处理器的类型信息;The second acquisition module is used to obtain the type information of the graphics processor;

选择模块,用于根据所述类型信息在所述多种压缩纹理格式的待处理图像数据中选择目标待处理图像数据;A selection module configured to select target image data to be processed among the image data to be processed in the plurality of compressed texture formats according to the type information;

渲染模块,用于将所述目标待处理图像数据输入至所述图形处理器,以进行图像渲染。A rendering module, configured to input the target image data to be processed to the graphics processor for image rendering.

第三方面,本申请实施例提供了一种电子设备,包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述图像处理方法中的步骤。In a third aspect, embodiments of the present application provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the above image processing method is implemented. steps in.

第四方面,本申请实施例提供了一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述图像处理方法中的步骤。In a fourth aspect, embodiments of the present application provide a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above image processing method are implemented.

本申请实施例中,通过接收图像处理指令,根据图像处理指令获取多种压缩纹理格式的待处理图像数据,再获取图形处理器的类型信息,根据所述类型信息在所述多种压缩纹理格式的待处理图像数据中选择目标待处理图像数据,最终将所述目标待处理图像数据输入至所述图形处理器,以进行图像渲染。从而使图像处理时占用的内存较低,图像渲染的画质较高,提高了图像处理时的效率。In the embodiment of the present application, by receiving image processing instructions, the image data to be processed in multiple compressed texture formats is obtained according to the image processing instructions, and then the type information of the graphics processor is obtained, and the multiple compressed texture formats are processed according to the type information. Select the target image data to be processed from the image data to be processed, and finally input the target image data to be processed to the graphics processor for image rendering. As a result, the memory occupied during image processing is lower, the image rendering quality is higher, and the efficiency of image processing is improved.

附图说明Description of the drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without exerting creative efforts.

图1是本申请实施例提供的图像处理方法的第一流程示意图。Figure 1 is a first flow diagram of an image processing method provided by an embodiment of the present application.

图2是本申请实施例提供的图像处理方法的第二流程示意图。Figure 2 is a second schematic flowchart of the image processing method provided by an embodiment of the present application.

图3是本申请实施例提供的图像处理装置的第一结构示意图。FIG. 3 is a first structural schematic diagram of an image processing device provided by an embodiment of the present application.

图4是本申请实施例提供的图像处理装置的第二结构示意图。FIG. 4 is a second structural schematic diagram of an image processing device provided by an embodiment of the present application.

图5是本申请实施例提供的电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts fall within the scope of protection of this application.

在以下的说明中,本申请的具体实施例将参考由一部或多部计算机所执行的步骤及符号来说明,除非另有述明。因此,这些步骤及操作将有数次提到由计算机执行,本文所指的计算机执行包括了由代表了以一结构化型式中的数据的电子信号的计算机处理单元的操作。此操作转换该数据或将其维持在该计算机的内存系统中的位置处,其可重新配置或另外以本领域测试人员所熟知的方式来改变该计算机的运作。该数据所维持的数据结构为该内存的实体位置,其具有由该数据格式所定义的特定特性。但是,本申请原理以上述文字来说明,其并不代表为一种限制,本领域测试人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。In the following description, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise stated. Accordingly, these steps and operations will be referred to several times as being executed by a computer. Computer execution as referred to herein includes the operations of a computer processing unit that represent electronic signals that represent data in a structured form. This operation converts or maintains the data in a location within the computer's memory system that may be reconfigured or otherwise alter the operation of the computer in a manner known to those skilled in the art. The data structure maintained by the data is a physical location in memory that has specific characteristics defined by the data format. However, the principles of the present application are explained in the above words, which do not represent a limitation. Testers in the field will understand that various steps and operations described below can also be implemented in hardware.

本申请中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是某些实施例还包括没有列出的步骤或模块,或某些实施例还包括对于这些过程、方法、产品或设备固有的其它步骤或模块。The terms "first", "second" and "third" in this application are used to distinguish different objects, rather than describing a specific sequence. Furthermore, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include unlisted steps or modules, or some embodiments Other steps or modules inherent to such processes, methods, products or devices are also included.

本申请实施例提供一种图像处理方法、装置、电子设备及存储介质。以下分别进行详细说明。Embodiments of the present application provide an image processing method, device, electronic device, and storage medium. Each is explained in detail below.

本申请中的图像处理方法,适用于智能手机、电脑、智能电视、智能穿戴设备等电子设备,使用本申请中图像处理方法的电子设备均处于本申请所保护的范围。The image processing method in this application is suitable for electronic devices such as smartphones, computers, smart TVs, and smart wearable devices. Electronic devices that use the image processing method in this application are within the scope of protection of this application.

请参阅图1,图1是本申请实施例提供的图像处理方法的第一流程示意图。所述图像处理方法能够提高对图像处理的效率。所述图像处理方法包括以下步骤:Please refer to FIG. 1 , which is a first flow diagram of an image processing method provided by an embodiment of the present application. The image processing method can improve the efficiency of image processing. The image processing method includes the following steps:

在步骤101中,接收图像处理指令,根据图像处理指令获取多种压缩纹理格式的待处理图像数据。In step 101, an image processing instruction is received, and image data to be processed in multiple compressed texture formats is obtained according to the image processing instruction.

在打游戏时,或者看视频时,加载网页时等等,都需要对图像进行处理。此时,会生成图像处理指令,电子设备根据图像处理指令对输入的图像数据进行处理。When playing games, watching videos, loading web pages, etc., images need to be processed. At this time, an image processing instruction is generated, and the electronic device processes the input image data according to the image processing instruction.

在一些实施例中,输入的图像数据可以是原图,例如,常见的PNG、JPG、BMP、GIF等格式,这些格式的图像数据是不能经过GPU(图形处理器)处理的,需要CPU(中央处理器)将其解压成bitmap(位图),然后可以根据bitmap获取对应纹理格式的待处理图像数据,例如R5G6B5,A4R4G4B4,A1R5G5B5,R8G8B8,A8R8G8B8等格式,然后再将这些待处理图像数据输入至图形处理器进行图像渲染。In some embodiments, the input image data may be original images, such as common PNG, JPG, BMP, GIF and other formats. Image data in these formats cannot be processed by a GPU (Graphics Processor) and requires a CPU (Central Processing Unit). Processor) decompresses it into a bitmap (bitmap), and then you can obtain the image data to be processed in the corresponding texture format based on the bitmap, such as R5G6B5, A4R4G4B4, A1R5G5B5, R8G8B8, A8R8G8B8 and other formats, and then input the image data to be processed into The graphics processor performs image rendering.

在一些实施例中,输入的图像数据也可以是经过压缩纹理的图像数据,例如ETC1、ETC2、PVRTC、ASTC、DXT等压缩纹理格式的图像数据,可以获取多种压缩纹理格式的图像数据作为待处理图像数据。In some embodiments, the input image data can also be compressed texture image data, such as image data in compressed texture formats such as ETC1, ETC2, PVRTC, ASTC, DXT, etc. Image data in multiple compressed texture formats can be obtained as the data to be processed. Process image data.

需要说明的是,所述多种压缩纹理格式的图像数据可以是电子设备本地存储的图像数据,例如,在电子设备上下载的单机优秀It should be noted that the image data in multiple compressed texture formats may be image data stored locally on the electronic device, for example, a stand-alone excellent image data downloaded on the electronic device.

在步骤102中,获取图形处理器的类型信息。In step 102, type information of the graphics processor is obtained.

不同的厂商,图形处理器也是不同的,例如,高通的Adreno系列的图形处理器是其独有的GPU类型,或者,英伟达的Tegra系列图形处理器、英特尔的Bay Trail系列图形处理器等等。Different manufacturers have different graphics processors. For example, Qualcomm's Adreno series of graphics processors are its own type of GPU, or Nvidia's Tegra series of graphics processors, Intel's Bay Trail series of graphics processors, etc.

图形处理器的类型信息不同,所支持的图像数据的压缩纹理格式也自然不同,例如,PVRTC压缩纹理格式的图像数据可以被使用PowerVR系列图形处理器的电子设备支持,ASTC压缩纹理格式的图像数据可以被使用Adreno系列图形处理器的电子设备支持。Depending on the type of graphics processor, the compressed texture formats of supported image data are naturally different. For example, image data in PVRTC compressed texture format can be supported by electronic devices using PowerVR series graphics processors, and image data in ASTC compressed texture format can be supported by electronic devices using PowerVR series graphics processors. Can be supported by electronic devices using Adreno series graphics processors.

在步骤103中,根据类型信息在多种压缩纹理格式的待处理图像数据中选择目标待处理图像数据。In step 103, the target image data to be processed is selected from the image data to be processed in a plurality of compressed texture formats according to the type information.

在获取到ETC1、ETC2、PVRTC、ASTC、DXT等多种压缩纹理格式的待处理图像数据之后,可以根据图形处理器的类型信息来选择所述图形处理器所支持的压缩纹理格式,然后将图形处理器支持的压缩纹理格式的待处理图像数据选择为目标待处理图像数据。After obtaining the image data to be processed in various compressed texture formats such as ETC1, ETC2, PVRTC, ASTC, and DXT, the compressed texture format supported by the graphics processor can be selected according to the type information of the graphics processor, and then the graphics can be The image data to be processed in a compressed texture format supported by the processor is selected as the target image data to be processed.

例如,电子设备的图形处理器支持ETC1、ETC2、ASTC这三种压缩纹理格式的图像数据,可以将待处理图像数据中的ETC1、ETC2、ASTC这三种压缩纹理格式的图像数据选择为目标待处理图像数据。若电子设备的图形处理器只支持ETC1这一种压缩纹理格式的图像数据,则选择ETC1压缩纹理格式的图像数据作为目标待处理图像数据。For example, the graphics processor of the electronic device supports image data in three compressed texture formats: ETC1, ETC2, and ASTC. The image data in the three compressed texture formats of ETC1, ETC2, and ASTC in the image data to be processed can be selected as the target to be processed. Process image data. If the graphics processor of the electronic device only supports image data in the ETC1 compressed texture format, then the image data in the ETC1 compressed texture format is selected as the target image data to be processed.

在步骤104中,将目标待处理图像数据输入至图形处理器,以进行图像渲染。In step 104, the target image data to be processed is input to the graphics processor for image rendering.

在选择好目标待处理图像数据之后,可以在其中选择一种压缩纹理格式的图像数据输入至图形处理器中,使图形处理器对图像数据进行处理,最终实现图像渲染。After selecting the target image data to be processed, you can select one of the compressed texture format image data and input it into the graphics processor, so that the graphics processor processes the image data and finally achieves image rendering.

例如,如果当前电子设备的图形处理器为英伟达的Tegra系列或英特尔的BayTrail系列,则采用DXT纹理识别算法,取出压缩纹理数据,直接交给GPU绘制。For example, if the graphics processor of the current electronic device is NVIDIA's Tegra series or Intel's BayTrail series, the DXT texture recognition algorithm is used to extract the compressed texture data and directly hand it over to the GPU for rendering.

如果当前电子设备的图形处理器为可以支持多种压缩纹理格式的图像数据,可以根据绘制图像的画质、速度、时长等综合因素对目标待处理图像数据进行选择,将选择后的目标图像数据并将其输入至图像处理器中进行渲染。If the graphics processor of the current electronic device can support image data in a variety of compressed texture formats, the target image data to be processed can be selected based on comprehensive factors such as the quality, speed, and duration of the drawn image, and the selected target image data And input it into the image processor for rendering.

综上所述,本申请实施例中提供的图像处理方法,通过接收图像处理指令,根据图像处理指令获取多种压缩纹理格式的待处理图像数据,再获取图形处理器的类型信息,根据所述类型信息在所述多种压缩纹理格式的待处理图像数据中选择目标待处理图像数据,最终将所述目标待处理图像数据输入至所述图形处理器,以进行图像渲染。从而使图像处理时占用的内存较低,图像渲染的画质较高,提高了图像处理时的效率。To sum up, the image processing method provided in the embodiment of the present application receives image processing instructions, obtains image data to be processed in a variety of compressed texture formats according to the image processing instructions, and then obtains the type information of the graphics processor. According to the The type information selects the target image data to be processed among the image data to be processed in the multiple compressed texture formats, and finally the target image data to be processed is input to the graphics processor for image rendering. As a result, the memory occupied during image processing is lower, the image rendering quality is higher, and the efficiency of image processing is improved.

请参阅图2,图2是本申请实施例提供的图像处理方法的第二流程示意图,所述图像处理方法能够提高对图像处理的效率。所述图像处理方法包括以下步骤:Please refer to Figure 2. Figure 2 is a second schematic flowchart of an image processing method provided by an embodiment of the present application. The image processing method can improve the efficiency of image processing. The image processing method includes the following steps:

在步骤201中,接收图像处理指令,根据图像处理指令获取多种压缩纹理格式的待处理图像数据。In step 201, an image processing instruction is received, and image data to be processed in multiple compressed texture formats is obtained according to the image processing instruction.

在对图像的处理中,可以获取多种压缩纹理格式的图像数据,例如ETC1、ETC2、PVRTC、ASTC、DXT等压缩纹理格式的图像数据。During image processing, image data in a variety of compressed texture formats can be obtained, such as image data in compressed texture formats such as ETC1, ETC2, PVRTC, ASTC, and DXT.

其中,不同的压缩纹理格式有着不同的特性,比如,ETC1压缩纹理格式是一种标准的图片压缩纹理格式,ETC1只支持RGB通道,不支持alpha透明通道;ETC2压缩纹理格式是一种标准的图片压缩纹理格式,ETC2除了支持RGB通道外,还支持alpha透明通道。ASTC压缩纹理格式可以得到高通Adreno系列图形处理器的电子设备支持,PVRTC压缩纹理格式可以得到使用PowerVR系列图形处理器的电子设备支持。Among them, different compressed texture formats have different characteristics. For example, ETC1 compressed texture format is a standard image compression texture format. ETC1 only supports RGB channels and does not support alpha transparency channels; ETC2 compressed texture format is a standard image compression format. Compressed texture format, ETC2 supports alpha transparency channel in addition to RGB channels. The ASTC compressed texture format can be supported by electronic devices using Qualcomm's Adreno series graphics processors, and the PVRTC compressed texture format can be supported by electronic devices using PowerVR series graphics processors.

可以通过图像处理指令获取多种压缩纹理格式的待处理图像数据,其中待处理图像数据可以是电子设备本地存储的,也可以是云端存储的。Image data to be processed in a variety of compressed texture formats can be obtained through image processing instructions, where the image data to be processed can be stored locally on the electronic device or in the cloud.

在步骤S202中,控制图形处理器生成展示界面。In step S202, the graphics processor is controlled to generate a display interface.

在对待处理图像数据进行处理之前,需要获取电子设备的图形处理器的类型信息。Before processing the image data to be processed, it is necessary to obtain the type information of the graphics processor of the electronic device.

此时,可以控制图形处理器生成一个展示界面,这个展示界面可以是透明的,防止遮挡用户视野,造成较差的用户体验。At this time, the graphics processor can be controlled to generate a display interface. This display interface can be transparent to prevent blocking the user's field of view and causing a poor user experience.

例如,在搭载Android系统的电子设备中,可以通过Android提供的Java API来实现图形处理器类型信息的获取,具体的,是借助OpenGL来获取图形处理类型信息的,OpenGL是用于渲染2D、3D矢量图形的跨语言、跨平台的应用程序编程接口。可以通过实现一个GLSurfaceView.Renderer接口,并将renderer(渲染器)设置到一个GLSurfaceView中,然后挂载到一个Activity(应用程序组件,提供一个屏幕,用户可以用来交互为了完成某项任务),其中挂在一个Activity可以理解为是一个Android里的一个界面,这个界面可以设置为透明。For example, in electronic devices equipped with the Android system, the graphics processor type information can be obtained through the Java API provided by Android. Specifically, the graphics processing type information is obtained with the help of OpenGL, which is used to render 2D and 3D. Cross-language, cross-platform application programming interface for vector graphics. You can implement a GLSurfaceView.Renderer interface, set the renderer (renderer) to a GLSurfaceView, and then mount it to an Activity (application component, providing a screen that users can use to interact in order to complete a task), where Hanging in an Activity can be understood as an interface in Android, and this interface can be set to transparent.

在步骤203中,获取展示界面的参数信息,根据参数信息获取图形处理器的类型信息。In step 203, the parameter information of the display interface is obtained, and the type information of the graphics processor is obtained according to the parameter information.

例如,可以从上述GLSurfaceView.Renderer接口中获取到图形处理器的类型信息。还可以从电子设备的系统信息签名中获取图形处理器的类型信息。For example, the type information of the graphics processor can be obtained from the above GLSurfaceView.Renderer interface. The type information of the graphics processor can also be obtained from the system information signature of the electronic device.

在步骤S204中,根据类型信息获取所述图形处理器的可处理的压缩纹理图像数据。In step S204, compressed texture image data processable by the graphics processor is obtained according to the type information.

不同类型的图形处理器所支持的压缩纹理格式也不同,例如,PVRTC压缩纹理格式的图像数据可以被使用PowerVR系列图形处理器的电子设备支持,ASTC压缩纹理格式的图像数据可以被使用Adreno系列图形处理器的电子设备支持。Different types of graphics processors support different compressed texture formats. For example, image data in PVRTC compressed texture format can be supported by electronic devices using PowerVR series graphics processors, and image data in ASTC compressed texture format can be supported by Adreno series graphics. Processor electronics support.

可以根据类型信息获取电子设备图形处理器所能支持的压缩纹理格式的压缩纹理图像数据。Compressed texture image data in a compressed texture format supported by the graphics processor of the electronic device can be obtained according to the type information.

在步骤205中,对不同压缩纹理格式的可处理的压缩纹理图像数据设置优先级。In step 205, priorities are set for processable compressed texture image data of different compressed texture formats.

可以理解的是,电子设备的图形处理器可以支持多种压缩纹理格式的图像数据,图形处理器对不同压缩纹理格式的图像数据处理的时长、效率会有不同,对不同的压缩纹理格式的图像数据处理后的画面效果也会有不同。It is understandable that the graphics processor of an electronic device can support image data in a variety of compressed texture formats. The processing time and efficiency of the graphics processor for image data in different compressed texture formats will be different. The picture effect after data processing will also be different.

例如,可以根据图形处理器对不同压缩纹理格式的压缩纹理数据进行处理的速度来设置压缩纹理图像数据的优先级,处理速度越快,对应的压缩纹理图像数据的优先级越高。也可以根据图形处理器处理压缩纹理图像数据后画面的显示效果来对压缩纹理图像数据设置优先级,画面质量越好,对应的压缩纹理图形数据的优先级越高。For example, the priority of the compressed texture image data can be set according to the speed at which the graphics processor processes the compressed texture data of different compressed texture formats. The faster the processing speed, the higher the priority of the corresponding compressed texture image data. The priority of the compressed texture image data can also be set based on the display effect of the image after the graphics processor processes the compressed texture image data. The better the image quality, the higher the priority of the corresponding compressed texture image data.

在一些实施例中,图形处理器可以支持多种压缩纹理格式的情况下,还可以根据对图像处理时情况来设置压缩纹理数据的优先级,例如,在打游戏时,游戏刚刚打开时需要加载速度快,此时可以根据图形处理器对压缩纹理图像数据的处理速度来对压缩纹理图像数据设置优先级,在进入游戏后,游戏中需要画质较高,此时可以根据输出的画质来对压缩纹理图像数据设置优先级,在游戏运行的不同阶段,可以采用不同标准制定的优先级来选择目标待处理图像数据。In some embodiments, when the graphics processor can support multiple compressed texture formats, the priority of compressed texture data can also be set according to the situation during image processing. For example, when playing a game, the game needs to be loaded when it is just opened. The speed is fast. At this time, the priority of the compressed texture image data can be set according to the processing speed of the compressed texture image data by the graphics processor. After entering the game, the game requires higher image quality. At this time, the priority can be set according to the output image quality. Set priorities for compressed texture image data. At different stages of game running, priorities set by different standards can be used to select target image data to be processed.

在步骤206中,根据类型信息判断待处理图像数据中是否存在可处理的压缩纹理图像数据。In step 206, it is determined according to the type information whether there is compressed texture image data that can be processed in the image data to be processed.

在对图像处理器可处理的压缩纹理图像数据设置优先级之后,可以判断待处理图像数据中是否存在图形处理器可处理的压缩纹理图像数据。After setting the priority for the compressed texture image data that can be processed by the image processor, it can be determined whether there is compressed texture image data that can be processed by the graphics processor in the image data to be processed.

若待处理图像数据中存在图形处理器可处理的压缩纹理图像数据,则进入步骤207中。If there is compressed texture image data that can be processed by the graphics processor in the image data to be processed, step 207 is entered.

若待处理图像数据中不存在图形处理器可处理的压缩纹理图像数据,则进入步骤209中。If there is no compressed texture image data that can be processed by the graphics processor in the image data to be processed, step 209 is entered.

在步骤207中,根据优先级在待处理图像数据中选择目标待处理图像数据。In step 207, the target image data to be processed is selected from the image data to be processed according to the priority.

可以理解的是,可以根据图形处理器可处理的压缩纹理图像数据,在待处理图像数据中选择图形处理器能够支持的目标待处理图像数据。It can be understood that the target image data to be processed that the graphics processor can support can be selected from the image data to be processed according to the compressed texture image data that the graphics processor can process.

例如,电子设备的图形处理器支持ETC1、ETC2、ASTC这三种压缩纹理格式的图像数据,可以将待处理图像数据中的ETC1、ETC2、ASTC这三种压缩纹理格式的图像数据选择为目标待处理图像数据。若电子设备的图形处理器只支持ETC1这一种压缩纹理格式的图像数据,则选择ETC1压缩纹理格式的图像数据作为目标待处理图像数据。For example, the graphics processor of the electronic device supports image data in three compressed texture formats: ETC1, ETC2, and ASTC. The image data in the three compressed texture formats of ETC1, ETC2, and ASTC in the image data to be processed can be selected as the target to be processed. Process image data. If the graphics processor of the electronic device only supports image data in the ETC1 compressed texture format, then the image data in the ETC1 compressed texture format is selected as the target image data to be processed.

还可以根据图形处理器支持的压缩纹理格式的级别来设置优先级,例如,搭载Android系统电子设备支持ETC2和ETC1这两种压缩纹理格式,则ETC2压缩纹理格式的图像数据级别设置较高,因为在电子设备支持ETC2的情况下,则说明电子设备的图形处理器支持OpenGL 3.0,OpenGL是一个调用方便的底层3D图形库,OpenGL3.0对应的版本必定比OpenGL2.0版本更加全面,若在电子设备的图形处理器不支持OpenGL 3.0的情况下,只能选择ETC1压缩纹理格式的图像数据为较高的优先级,因为在图形处理器支持ETC1压缩纹理格式的情况下,图形处理器必定支持OpenGL 2.0版本。The priority can also be set according to the level of compressed texture formats supported by the graphics processor. For example, if an electronic device equipped with an Android system supports two compressed texture formats, ETC2 and ETC1, then the image data level of the ETC2 compressed texture format is set higher because When the electronic device supports ETC2, it means that the graphics processor of the electronic device supports OpenGL 3.0. OpenGL is an underlying 3D graphics library that is easy to call. The version corresponding to OpenGL3.0 must be more comprehensive than the OpenGL2.0 version. If in the electronic device When the device's graphics processor does not support OpenGL 3.0, image data in the ETC1 compressed texture format can only be selected as a higher priority, because if the graphics processor supports the ETC1 compressed texture format, the graphics processor must support OpenGL. Version 2.0.

在步骤208中,根据优先级在待处理图像数据中选择目标待处理图像数据。In step 208, the target image data to be processed is selected from the image data to be processed according to the priority.

可以对优先级较高的压缩纹理格式的图像数据进行选取,将其设置为目标待处理图像数据。例如,优先级的级别为10,将优先级高于5的待处理图像数据选择为目标处理图像数据,即可以将优先级高于预设阈值的待处理图像数据选取为目标待处理图像数据。Image data in compressed texture format with higher priority can be selected and set as the target image data to be processed. For example, if the priority level is 10, image data to be processed with a priority higher than 5 is selected as the target image data to be processed, that is, image data to be processed with a priority higher than a preset threshold can be selected as the target image data to be processed.

还可以直接选取优先级最高的待处理图像数据为目标待处理图像数据。You can also directly select the image data to be processed with the highest priority as the target image data to be processed.

在步骤209中,将目标待处理图像数据输入至图形处理器以进行图像渲染。In step 209, the target image data to be processed is input to the graphics processor for image rendering.

将目标待处理图像数据输入至图形处理器,图像处理器对目标待处理图像数据采用对应的识别算法,取出对应的压缩纹理格式的图像数据输入至图形处理器中进行绘制,以进行图像渲染。The target image data to be processed is input to the graphics processor, and the image processor adopts a corresponding recognition algorithm for the target image data to be processed, and extracts the corresponding image data in a compressed texture format and inputs it into the graphics processor for rendering for image rendering.

例如,如果当前设备图形处理器为英伟达的Tegra系列或英特尔的Bay Trail系列,则采用DXT纹理识别算法,取出压缩纹理数据,直接交给GPU绘制。For example, if the current device graphics processor is NVIDIA's Tegra series or Intel's Bay Trail series, the DXT texture recognition algorithm is used to extract the compressed texture data and directly hand it over to the GPU for drawing.

若待处理图像数据中并不存在图形处理器支持的压缩纹理格式,则进入步骤210中,根据图像处理指令获取原始图像数据。If the compressed texture format supported by the graphics processor does not exist in the image data to be processed, then proceed to step 210 to obtain the original image data according to the image processing instructions.

可以理解的是,输入的图像数据可以是原图,例如,常见的PNG、JPG、BMP、GIF等格式,这些格式的图像数据是不能经过GPU(图形处理器)处理的,需要CPU(中央处理器)将其解压成bitmap(位图),然后可以根据bitmap获取对应纹理格式的待处理图像数据,例如R5G6B5,A4R4G4B4,A1R5G5B5,R8G8B8,A8R8G8B8等格式。It can be understood that the input image data can be the original image, for example, common PNG, JPG, BMP, GIF and other formats. Image data in these formats cannot be processed by GPU (Graphics Processing Unit) and requires CPU (Central Processing Unit). processor) to decompress it into a bitmap (bitmap), and then you can obtain the image data to be processed in the corresponding texture format according to the bitmap, such as R5G6B5, A4R4G4B4, A1R5G5B5, R8G8B8, A8R8G8B8 and other formats.

在步骤211中,将原始图像数据输入至图形处理器进行图像渲染。In step 211, the original image data is input to the graphics processor for image rendering.

例如,对于一张512*512的纹理图片,R5G6B5格式的文件需要占用512KB容量(512*512*2/1024),对于R8G8B8A8的格式文件,则需要占用1MB的容量。如果是一张1024*1024的纹理图片,则R5G6B5和R8G8B8A8的格式文件分别需要2MB和4MB的容量。For example, for a 512*512 texture image, the R5G6B5 format file needs to occupy 512KB capacity (512*512*2/1024), and for the R8G8B8A8 format file, it needs to occupy 1MB capacity. If it is a 1024*1024 texture image, the format files of R5G6B5 and R8G8B8A8 require 2MB and 4MB respectively.

虽然直接将原图中的图像纹理数据输入至图形处理器进行处理,处理图像时所占用的内存资源较多,但是可以避免由于电子设备不支持所有压缩纹理格式的待处理图像而导致的应用程序运行异常。Although the image texture data in the original image is directly input to the graphics processor for processing, which takes up more memory resources when processing the image, it can avoid application errors caused by the electronic device not supporting all compressed texture formats of the image to be processed. Operation abnormality.

综上所述,本申请实施例中,通过图像处理指令,获取多种压缩纹理格式的待处理图像数据,然后控制图形处理器生成展示界面,获取展示界面的参数信息,根据参数信息获取图像处理器的类型信息,根据类型信息获取图形处理器可处理的压缩纹理图像数据,对不同压缩纹理格式的压缩纹理图像数据设置优先级。To sum up, in the embodiments of the present application, image data to be processed in a variety of compressed texture formats is obtained through image processing instructions, and then the graphics processor is controlled to generate a display interface, obtain parameter information of the display interface, and obtain image processing information based on the parameter information. The type information of the processor is obtained, the compressed texture image data that can be processed by the graphics processor is obtained according to the type information, and the priority is set for the compressed texture image data of different compressed texture formats.

若在待处理图像数据中存在可处理的压缩纹理图像数据,则根据优先级在待处理图像数据中选择目标待处理压缩图像数据,将目标待处理图像数据输入至图形处理器以进行图像渲染;若待处理图像数据中不存在图形处理器可处理的压缩纹理图像数据,则根据图像处理指令获取原始图像,将原始图像数据输入至图形处理器进行图像渲染。If there is compressed texture image data that can be processed in the image data to be processed, select the target compressed image data to be processed in the image data to be processed according to the priority, and input the target image data to be processed to the graphics processor for image rendering; If there is no compressed texture image data that can be processed by the graphics processor in the image data to be processed, the original image is obtained according to the image processing instructions, and the original image data is input to the graphics processor for image rendering.

本申请中记载的图像处理方法能够主动的选择图像数据的压缩纹理格式,并对其进行选择处理,使图像处理时占用的内存资源较低,也提高了图像处理时的效率。The image processing method described in this application can actively select the compressed texture format of image data and perform selective processing on it, so that the memory resources occupied during image processing are lower and the efficiency of image processing is improved.

相应的,本申请实施例还提供了对应图像处理方法的图像处理装置。请参阅图3,图3是本申请实施例提供的图像处理装置的第一结构示意图。所述图像处理装置包括:第一获取模块310、第二获取模块320、选择模块330和渲染模块340。Correspondingly, embodiments of the present application also provide an image processing device corresponding to the image processing method. Please refer to FIG. 3 , which is a first structural schematic diagram of an image processing device provided by an embodiment of the present application. The image processing device includes: a first acquisition module 310, a second acquisition module 320, a selection module 330 and a rendering module 340.

第一获取模块310,用于接收图像处理指令,根据所述图像处理指令获取多种压缩纹理格式的待处理图像数据。The first acquisition module 310 is configured to receive image processing instructions, and acquire image data to be processed in multiple compressed texture formats according to the image processing instructions.

在对图像的处理中,可以获取多种压缩纹理格式的图像数据,例如ETC1、ETC2、PVRTC、ASTC、DXT等压缩纹理格式的图像数据。During image processing, image data in a variety of compressed texture formats can be obtained, such as image data in compressed texture formats such as ETC1, ETC2, PVRTC, ASTC, and DXT.

其中,不同的压缩纹理格式有着不同的特性,比如,ETC1压缩纹理格式是一种标准的图片压缩纹理格式,ETC1只支持RGB通道,不支持alpha透明通道;ETC2压缩纹理格式是一种标准的图片压缩纹理格式,ETC2除了支持RGB通道外,还支持alpha透明通道。ASTC压缩纹理格式可以得到高通Adreno系列图形处理器的电子设备支持,PVRTC压缩纹理格式可以得到使用PowerVR系列图形处理器的电子设备支持。Among them, different compressed texture formats have different characteristics. For example, ETC1 compressed texture format is a standard image compression texture format. ETC1 only supports RGB channels and does not support alpha transparency channels; ETC2 compressed texture format is a standard image compression format. Compressed texture format, ETC2 supports alpha transparency channel in addition to RGB channels. The ASTC compressed texture format can be supported by electronic devices using Qualcomm's Adreno series graphics processors, and the PVRTC compressed texture format can be supported by electronic devices using PowerVR series graphics processors.

第一获取模块310可以通过图像处理指令获取多种压缩纹理格式的待处理图像数据,其中待处理图像数据可以是电子设备本地存储的,也可以是云端存储的。The first acquisition module 310 can acquire image data to be processed in a variety of compressed texture formats through image processing instructions, where the image data to be processed can be stored locally on the electronic device or in the cloud.

第二获取模块320,用于获取图形处理器的类型信息。The second obtaining module 320 is used to obtain the type information of the graphics processor.

不同的厂商,图形处理器也是不同的,例如,高通的Adreno系列的图形处理器是其独有的GPU类型,或者,英伟达的Tegra系列图形处理器、英特尔的Bay Trail系列图形处理器等等。Different manufacturers have different graphics processors. For example, Qualcomm's Adreno series of graphics processors are its own type of GPU, or Nvidia's Tegra series of graphics processors, Intel's Bay Trail series of graphics processors, etc.

图形处理器的类型信息不同,所支持的图像数据的压缩纹理格式也自然不同,例如,PVRTC压缩纹理格式的图像数据可以被使用PowerVR系列图形处理器的电子设备支持,ASTC压缩纹理格式的图像数据可以被使用Adreno系列图形处理器的电子设备支持。Depending on the type of graphics processor, the compressed texture formats of supported image data are naturally different. For example, image data in PVRTC compressed texture format can be supported by electronic devices using PowerVR series graphics processors, and image data in ASTC compressed texture format can be supported by electronic devices using PowerVR series graphics processors. Can be supported by electronic devices using Adreno series graphics processors.

另外,请一并参阅图4,图4是本申请实施例提供的图像处理装置的第二结构示意图。其中,第二获取模块320包括界面生成子模块321和类型获取子模块322.In addition, please refer to FIG. 4 as well. FIG. 4 is a second structural schematic diagram of an image processing device provided by an embodiment of the present application. Among them, the second acquisition module 320 includes an interface generation sub-module 321 and a type acquisition sub-module 322.

界面生成子模块321,用于控制所述图形处理器生成展示界面,所述展示界面为透明界面。The interface generation sub-module 321 is used to control the graphics processor to generate a display interface, where the display interface is a transparent interface.

在对待处理图像数据进行处理之前,需要获取电子设备的图形处理器的类型信息。Before processing the image data to be processed, it is necessary to obtain the type information of the graphics processor of the electronic device.

界面生成子模块321可以控制图形处理器生成一个展示界面,这个展示界面可以是透明的,防止遮挡用户视野,造成较差的用户体验。The interface generation sub-module 321 can control the graphics processor to generate a display interface. This display interface can be transparent to prevent blocking the user's field of view and causing a poor user experience.

例如,在搭载Android系统的电子设备中,可以通过Android提供的Java API来实现图形处理器类型信息的获取,具体的,是借助OpenGL来获取图形处理类型信息的,OpenGL是用于渲染2D、3D矢量图形的跨语言、跨平台的应用程序编程接口。可以通过实现一个GLSurfaceView.Renderer接口,并将renderer(渲染器)设置到一个GLSurfaceView中,然后挂载到一个Activity(应用程序组件,提供一个屏幕,用户可以用来交互为了完成某项任务),其中挂在一个Activity可以理解为是一个Android里的一个界面,这个界面可以设置为透明。For example, in electronic devices equipped with the Android system, the graphics processor type information can be obtained through the Java API provided by Android. Specifically, the graphics processing type information is obtained with the help of OpenGL, which is used to render 2D and 3D. Cross-language, cross-platform application programming interface for vector graphics. You can implement a GLSurfaceView.Renderer interface, set the renderer (renderer) to a GLSurfaceView, and then mount it to an Activity (application component, providing a screen that users can use to interact in order to complete a task), where Hanging in an Activity can be understood as an interface in Android, and this interface can be set to transparent.

类型获取子模块322,用于获取所述展示界面的参数信息,根据所述参数信息获取所述图像器的类型信息。The type acquisition sub-module 322 is used to obtain parameter information of the display interface, and obtain type information of the imager according to the parameter information.

类型获取子模块322可以从上述GLSurfaceView.Renderer接口中获取到图形处理器的类型信息。还可以从电子设备的系统信息签名中获取图形处理器的类型信息。The type acquisition sub-module 322 can obtain the type information of the graphics processor from the above-mentioned GLSurfaceView.Renderer interface. The type information of the graphics processor can also be obtained from the system information signature of the electronic device.

选择模块330,用于根据所述类型信息在所述多种压缩纹理格式的待处理图像数据中选择目标待处理图像数据。The selection module 330 is configured to select target image data to be processed among the image data to be processed in the plurality of compressed texture formats according to the type information.

在获取到ETC1、ETC2、PVRTC、ASTC、DXT等多种压缩纹理格式的待处理图像数据之后,可以根据图形处理器的类型信息来选择所述图形处理器所支持的压缩纹理格式,然后将图形处理器支持的压缩纹理格式的待处理图像数据选择为目标待处理图像数据。After obtaining the image data to be processed in various compressed texture formats such as ETC1, ETC2, PVRTC, ASTC, and DXT, the compressed texture format supported by the graphics processor can be selected according to the type information of the graphics processor, and then the graphics can be The image data to be processed in a compressed texture format supported by the processor is selected as the target image data to be processed.

例如,电子设备的图形处理器支持ETC1、ETC2、ASTC这三种压缩纹理格式的图像数据,可以将待处理图像数据中的ETC1、ETC2、ASTC这三种压缩纹理格式的图像数据选择为目标待处理图像数据。若电子设备的图形处理器只支持ETC1这一种压缩纹理格式的图像数据,则选择ETC1压缩纹理格式的图像数据作为目标待处理图像数据。For example, the graphics processor of the electronic device supports image data in three compressed texture formats: ETC1, ETC2, and ASTC. The image data in the three compressed texture formats of ETC1, ETC2, and ASTC in the image data to be processed can be selected as the target to be processed. Process image data. If the graphics processor of the electronic device only supports image data in the ETC1 compressed texture format, then the image data in the ETC1 compressed texture format is selected as the target image data to be processed.

请参阅图4,选择模块330包括获取子模块331和选择子模块332。Referring to FIG. 4 , the selection module 330 includes an acquisition sub-module 331 and a selection sub-module 332 .

获取子模块331,用于根据所述类型信息获取所述图形处理器可处理的压缩纹理图形数据。Acquisition sub-module 331 is used to acquire compressed texture graphics data that can be processed by the graphics processor according to the type information.

不同类型的图形处理器所支持的压缩纹理格式也不同,例如,PVRTC压缩纹理格式的图像数据可以被使用PowerVR系列图形处理器的电子设备支持,ASTC压缩纹理格式的图像数据可以被使用Adreno系列图形处理器的电子设备支持。Different types of graphics processors support different compressed texture formats. For example, image data in PVRTC compressed texture format can be supported by electronic devices using PowerVR series graphics processors, and image data in ASTC compressed texture format can be supported by Adreno series graphics. Processor electronics support.

获取子模块331可以根据类型信息获取电子设备图形处理器所能支持的压缩纹理格式的压缩纹理图像数据。The acquisition sub-module 331 may acquire compressed texture image data in a compressed texture format supported by the graphics processor of the electronic device according to the type information.

选择子模块332,用于根据所述可处理的压缩纹理图像数据在所述待处理图像数据中选择目标待处理图像数据。The selection sub-module 332 is used to select target image data to be processed from the image data to be processed according to the processable compressed texture image data.

选择子模块332具体用于对不同压缩纹理格式的所述可处理的压缩纹理图像数据设置优先级;根据所述优先级在所述待处理图像数据中选择目标待处理图像数据。The selection sub-module 332 is specifically configured to set priorities for the processable compressed texture image data of different compressed texture formats; and select target image data to be processed from the image data to be processed according to the priorities.

电子设备的图形处理器可以支持多种压缩纹理格式的图像数据,图形处理器对不同压缩纹理格式的图像数据处理的时长、效率会有不同,对不同的压缩纹理格式的图像数据处理后的画面效果也会有不同。The graphics processor of electronic equipment can support image data in a variety of compressed texture formats. The processing time and efficiency of the graphics processor for image data in different compressed texture formats will be different. The image data after processing the image data in different compressed texture formats will be different. The effect will also be different.

例如,可以根据图形处理器对不同压缩纹理格式的压缩纹理数据进行处理的速度来设置压缩纹理图像数据的优先级,处理速度越快,对应的压缩纹理图像数据的优先级越高。也可以根据图形处理器处理压缩纹理图像数据后画面的显示效果来对压缩纹理图像数据设置优先级,画面质量越好,对应的压缩纹理图形数据的优先级越高。For example, the priority of the compressed texture image data can be set according to the speed at which the graphics processor processes the compressed texture data of different compressed texture formats. The faster the processing speed, the higher the priority of the corresponding compressed texture image data. The priority of the compressed texture image data can also be set based on the display effect of the image after the graphics processor processes the compressed texture image data. The better the image quality, the higher the priority of the corresponding compressed texture image data.

渲染模块340,用于将所述目标待处理图像数据输入至所述图形处理器,以进行图像渲染。The rendering module 340 is used to input the target image data to be processed to the graphics processor for image rendering.

在选择好目标待处理图像数据之后,渲染模块340可以在其中选择一种压缩纹理格式的图像数据输入至图形处理器中,使图形处理器对图像数据进行处理,最终实现图像渲染。After selecting the target image data to be processed, the rendering module 340 can select image data in a compressed texture format and input it into the graphics processor, so that the graphics processor processes the image data, and finally implements image rendering.

例如,如果当前电子设备的图形处理器为英伟达的Tegra系列或英特尔的BayTrail系列,则采用DXT纹理识别算法,取出压缩纹理数据,直接交给GPU绘制。For example, if the graphics processor of the current electronic device is NVIDIA's Tegra series or Intel's BayTrail series, the DXT texture recognition algorithm is used to extract the compressed texture data and directly hand it over to the GPU for rendering.

如果当前电子设备的图形处理器为可以支持多种压缩纹理格式的图像数据,可以根据绘制图像的画质、速度、时长等综合因素对目标待处理图像数据进行选择,将选择后的目标图像数据并将其输入至图像处理器中进行渲染。If the graphics processor of the current electronic device can support image data in a variety of compressed texture formats, the target image data to be processed can be selected based on comprehensive factors such as the quality, speed, and duration of the drawn image, and the selected target image data And input it into the image processor for rendering.

请参阅图4,图像处理装置还包括判断模块350。判断模块350用于根据所述类型信息判断所述待处理图像数据中是否存在所述可处理的压缩纹理图像数据。Referring to FIG. 4 , the image processing device further includes a judgment module 350 . The determination module 350 is configured to determine whether the processable compressed texture image data exists in the image data to be processed according to the type information.

若选择模块350判断待处理图像数据中存在所述可处理的压缩纹理图像数据,则渲染模块340会对目标待处理图像数据进行处理。If the selection module 350 determines that the processable compressed texture image data exists in the image data to be processed, the rendering module 340 will process the target image data to be processed.

若选择模块350判断待处理图像数据中不存在所述可处理的压缩纹理图像数据,则根据所述图像处理指令获取原始图像数据,将所述原始图像数据输入至所述图形处理器进行图像渲染。If the selection module 350 determines that the processable compressed texture image data does not exist in the image data to be processed, the original image data is obtained according to the image processing instruction, and the original image data is input to the graphics processor for image rendering. .

综上所述,本申请实施例中,通过图像处理指令,获取多种压缩纹理格式的待处理图像数据,然后控制图形处理器生成展示界面,获取展示界面的参数信息,根据参数信息获取图像处理器的类型信息,根据类型信息获取图形处理器可处理的压缩纹理图像数据,对不同压缩纹理格式的压缩纹理图像数据设置优先级。To sum up, in the embodiments of the present application, image data to be processed in a variety of compressed texture formats is obtained through image processing instructions, and then the graphics processor is controlled to generate a display interface, obtain parameter information of the display interface, and obtain image processing information based on the parameter information. The type information of the processor is obtained, the compressed texture image data that can be processed by the graphics processor is obtained according to the type information, and the priority is set for the compressed texture image data of different compressed texture formats.

若在待处理图像数据中存在可处理的压缩纹理图像数据,则根据优先级在待处理图像数据中选择目标待处理压缩图像数据,将目标待处理图像数据输入至图形处理器以进行图像渲染;若待处理图像数据中不存在图形处理器可处理的压缩纹理图像数据,则根据图像处理指令获取原始图像,将原始图像数据输入至图形处理器进行图像渲染。If there is compressed texture image data that can be processed in the image data to be processed, select the target compressed image data to be processed in the image data to be processed according to the priority, and input the target image data to be processed to the graphics processor for image rendering; If there is no compressed texture image data that can be processed by the graphics processor in the image data to be processed, the original image is obtained according to the image processing instructions, and the original image data is input to the graphics processor for image rendering.

本申请中记载的图像处理方法能够主动的选择图像数据的压缩纹理格式,并对其进行选择处理,使图像处理时占用的内存资源较低,也提高了图像处理时的效率。The image processing method described in this application can actively select the compressed texture format of image data and perform selective processing on it, so that the memory resources occupied during image processing are lower and the efficiency of image processing is improved.

相应的,本申请实施例还提供一种电子设备,请参阅图5,图5是本申请实施例提供的电子设备的结构示意图。Correspondingly, an embodiment of the present application also provides an electronic device. Please refer to FIG. 5 . FIG. 5 is a schematic structural diagram of the electronic device provided by an embodiment of the present application.

电子设备400包括:显示单元401、输入单元402、存储器403、中央处理器405、电源404和传感器406等部件。本领域技术人员可以理解,图中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:The electronic device 400 includes: a display unit 401, an input unit 402, a memory 403, a central processing unit 405, a power supply 404, a sensor 406 and other components. Those skilled in the art can understand that the structure of the electronic device shown in the figures does not constitute a limitation of the electronic device, and may include more or fewer components than shown in the figures, or combine certain components, or arrange different components. in:

显示单元401可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元401可包括显示面板,可选的,可以采用液晶显示器(LCD,Liquid CrystalDisplay)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。进一步的,触敏表面可覆盖显示面板,当触敏表面检测到在其上或附近的触摸操作后,传送给中央处理器404以确定触摸事件的类型,随后中央处理器404根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图5中,触敏表面与显示面板是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面与显示面板集成而实现输入和输出功能。The display unit 401 may be used to display information input by the user or information provided to the user as well as various graphical user interfaces of the electronic device. These graphical user interfaces may be composed of graphics, text, icons, videos, and any combination thereof. The display unit 401 may include a display panel, and optionally, the display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED, an organic light-emitting diode), or the like. Further, the touch-sensitive surface can cover the display panel. When the touch-sensitive surface detects a touch operation on or near the touch-sensitive surface, it is sent to the central processor 404 to determine the type of the touch event. Then the central processor 404 determines the type of the touch event according to the type of the touch event. Provide corresponding visual output on the display panel. Although in FIG. 5 , the touch-sensitive surface and the display panel are used as two independent components to implement the input and input functions, in some embodiments, the touch-sensitive surface and the display panel can be integrated to implement the input and output functions.

输入单元402可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,在一个具体的实施例中,输入单元402可包括触敏表面以及其他输入设备。触敏表面,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面上或在触敏表面附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给中央处理器404,并能接收中央处理器404发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面。除了触敏表面,输入单元402还可以包括其他输入设备。具体地,其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 402 may be used to receive input numeric or character information, and to generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, in a specific embodiment, the input unit 402 may include a touch-sensitive surface as well as other input devices. A touch-sensitive surface, also known as a touch display or trackpad, can collect the user's touch operations on or near it (such as the user using a finger, stylus, or any suitable object or accessory on or near the touch-sensitive surface). operations near the surface), and drive the corresponding connection device according to the preset program. Optionally, the touch-sensitive surface may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact point coordinates, and then sends it to the touch controller. to the central processor 404, and can receive and execute commands sent by the central processor 404. In addition, touch-sensitive surfaces can be implemented using a variety of types including resistive, capacitive, infrared, and surface acoustic waves. In addition to touch-sensitive surfaces, input unit 402 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), trackball, mouse, joystick, etc.

存储器403可用于存储软件程序以及模块,处理器404通过运行存储在存储器403的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器404可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器403可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器403还可以包括存储器控制器,以提供处理器404和输入单元402对存储器403的访问。The memory 403 can be used to store software programs and modules, and the processor 404 executes various functional applications and data processing by running the software programs and modules stored in the memory 403 . The memory 404 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the storage data area may store a program based on Data created by the use of electronic devices (such as audio data, phone books, etc.), etc. In addition, the memory 403 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 403 may also include a memory controller to provide the processor 404 and the input unit 402 with access to the memory 403.

电子设备还包括给各个部件供电的电源405(比如电池),优选的,电源可以通过电源管理系统与中央处理器404逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源405还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The electronic device also includes a power supply 405 (such as a battery) that supplies power to various components. Preferably, the power supply can be logically connected to the central processor 404 through a power management system, so that functions such as charging, discharging, and power consumption management can be implemented through the power management system. . Power supply 405 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

电子设备还可包括至少一种传感器406,比如光传感器、压力传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器可在电子设备移动到耳边时,关闭显示面板和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于电子设备还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The electronic device may also include at least one sensor 406, such as a light sensor, a pressure sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light. The proximity sensor may close the display panel and/or when the electronic device moves to the ear. Backlight. As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in various directions (usually three axes). It can detect the magnitude and direction of gravity when stationary. It can be used to identify applications of mobile phone posture (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, knock), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in electronic devices, they are not mentioned here. Again.

尽管未示出,电子设备还可以包括摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,电子设备中的中央处理器404会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器403中,并由中央处理器404来运行存储在存储器403中的应用程序,从而实现各种功能:Although not shown, the electronic device may also include a camera, a Bluetooth module, etc., which will not be described again here. Specifically in this embodiment, the central processor 404 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 403 according to the following instructions, and run by the central processor 404 Application programs stored in memory 403 to implement various functions:

接收图像处理指令,根据所述图像处理指令获取多种压缩纹理格式的待处理图像数据;Receive image processing instructions, and obtain image data to be processed in multiple compressed texture formats according to the image processing instructions;

获取图形处理器的类型信息;Get the type information of the graphics processor;

根据所述类型信息在所述多种压缩纹理格式的待处理图像数据中选择目标待处理图像数据;Select target image data to be processed among the image data to be processed in the plurality of compressed texture formats according to the type information;

将所述目标待处理图像数据输入至所述图形处理器,以进行图像渲染。The target image data to be processed is input to the graphics processor for image rendering.

本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling relevant hardware through instructions. The instructions can be stored in a computer-readable storage medium, and loaded and executed by the processor.

为此,本申请实施例提供一种存储介质,其中存储有多条指令,该指令能够被处理器进行加载,以执行本申请实施例所提供的任一种图像处理方法中的步骤。例如,该指令可以执行如下步骤:To this end, embodiments of the present application provide a storage medium in which multiple instructions are stored, and the instructions can be loaded by a processor to execute steps in any image processing method provided by embodiments of the present application. For example, this command can perform the following steps:

接收图像处理指令,根据所述图像处理指令获取多种压缩纹理格式的待处理图像数据;Receive image processing instructions, and obtain image data to be processed in multiple compressed texture formats according to the image processing instructions;

获取图形处理器的类型信息;Get the type information of the graphics processor;

根据所述类型信息在所述多种压缩纹理格式的待处理图像数据中选择目标待处理图像数据;Select target image data to be processed among the image data to be processed in the plurality of compressed texture formats according to the type information;

将所述目标待处理图像数据输入至所述图形处理器,以进行图像渲染。The target image data to be processed is input to the graphics processor for image rendering.

以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of each of the above operations, please refer to the previous embodiments and will not be described again here.

其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。The storage medium may include: read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.

由于该存储介质中所存储的指令,可以执行本申请实施例所提供的任一种图像处理方法中的步骤,因此,可以实现本申请实施例所提供的任一种图像处理方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Since the instructions stored in the storage medium can execute the steps in any image processing method provided by the embodiments of this application, therefore, it is possible to achieve what can be achieved by any image processing method provided by the embodiments of this application. The beneficial effects can be found in the previous embodiments for details and will not be described again here.

以上对本申请实施例所提供的一种图像处理方法、装置、电子设备及存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The above has introduced in detail an image processing method, device, electronic equipment and storage medium provided by the embodiments of the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only It is used to help understand the methods and core ideas of this application; at the same time, for those skilled in the art, there will be changes in the specific implementation and application scope based on the ideas of this application. In summary, this specification The contents should not be construed as limitations on this application.

Claims (10)

1.一种图像处理方法,其特征在于,所述方法包括:1. An image processing method, characterized in that the method includes: 接收图像处理指令,根据所述图像处理指令获取多种压缩纹理格式的待处理图像数据;Receive image processing instructions, and obtain image data to be processed in multiple compressed texture formats according to the image processing instructions; 获取图形处理器的类型信息;Get the type information of the graphics processor; 根据所述类型信息在所述多种压缩纹理格式的待处理图像数据中选择目标待处理图像数据,包括:根据所述类型信息获取所述图形处理器可处理的压缩纹理图形数据;根据所述可处理的压缩纹理图像数据在所述待处理图像数据中选择目标待处理图像数据;Selecting the target image data to be processed among the image data to be processed in the plurality of compressed texture formats according to the type information includes: obtaining the compressed texture graphics data processable by the graphics processor according to the type information; Processable compressed texture image data selects target image data to be processed among the image data to be processed; 将所述目标待处理图像数据输入至所述图形处理器,以进行图像渲染。The target image data to be processed is input to the graphics processor for image rendering. 2.根据权利要求1所述的图像处理方法,其特征在于,所述根据所述可处理的压缩纹理图像数据在所述待处理图像数据中选择目标待处理图像数据,包括:2. The image processing method according to claim 1, wherein selecting target image data to be processed from the image data to be processed according to the processable compressed texture image data includes: 对不同压缩纹理格式的所述可处理的压缩纹理图像数据设置优先级;Setting priorities for said processable compressed texture image data of different compressed texture formats; 根据所述优先级在所述待处理图像数据中选择目标待处理图像数据。Target image data to be processed is selected from the image data to be processed according to the priority. 3.根据权利要求1所述的图像处理方法,其特征在于,在根据所述可处理的压缩纹理图像数据在所述待处理图像数据中选择目标待处理图像数据之前,所述方法还包括:3. The image processing method according to claim 1, characterized in that, before selecting target image data to be processed in the image data to be processed according to the processable compressed texture image data, the method further includes: 根据所述类型信息判断所述待处理图像数据中是否存在所述可处理的压缩纹理图像数据;Determine whether the processable compressed texture image data exists in the image data to be processed according to the type information; 若否,则根据所述图像处理指令获取原始图像数据;If not, obtain the original image data according to the image processing instruction; 将所述原始图像数据输入至所述图形处理器进行图像渲染。The original image data is input to the graphics processor for image rendering. 4.根据权利要求1所述的图像处理方法,其特征在于,所述获取图形处理器的类型信息,包括:4. The image processing method according to claim 1, characterized in that said obtaining the type information of the graphics processor includes: 控制所述图形处理器生成展示界面,所述展示界面为透明界面;Control the graphics processor to generate a display interface, where the display interface is a transparent interface; 获取所述展示界面的参数信息;Obtain parameter information of the display interface; 根据所述参数信息获取所述图形处理器的类型信息。Obtain the type information of the graphics processor according to the parameter information. 5.一种图像处理装置,其特征在于,所述装置包括:5. An image processing device, characterized in that the device includes: 第一获取模块,用于接收图像处理指令,根据所述图像处理指令获取多种压缩纹理格式的待处理图像数据;A first acquisition module, configured to receive image processing instructions and obtain image data to be processed in multiple compressed texture formats according to the image processing instructions; 第二获取模块,用于获取图形处理器的类型信息;The second acquisition module is used to obtain the type information of the graphics processor; 选择模块,用于根据所述类型信息在所述多种压缩纹理格式的待处理图像数据中选择目标待处理图像数据;A selection module configured to select target image data to be processed among the image data to be processed in the plurality of compressed texture formats according to the type information; 渲染模块,用于将所述目标待处理图像数据输入至所述图形处理器,以进行图像渲染;A rendering module, configured to input the target image data to be processed to the graphics processor for image rendering; 其中,所述选择模块包括:Among them, the selection module includes: 获取子模块,用于根据所述类型信息获取所述图形处理器可处理的压缩纹理图形数据;Obtaining sub-module, configured to obtain compressed texture graphics data that can be processed by the graphics processor according to the type information; 选择子模块,用于根据所述可处理的压缩纹理图像数据在所述待处理图像数据中选择目标待处理图像数据。A selection submodule is configured to select target image data to be processed from the image data to be processed according to the processable compressed texture image data. 6.根据权利要求5所述的图像处理装置,其特征在于,6. The image processing device according to claim 5, characterized in that: 所述选择子模块具体用于:The selection sub-module is specifically used for: 对不同压缩纹理格式的所述可处理的压缩纹理图像数据设置优先级;Setting priorities for said processable compressed texture image data of different compressed texture formats; 根据所述优先级在所述待处理图像数据中选择目标待处理图像数据。Target image data to be processed is selected from the image data to be processed according to the priority. 7.根据权利要求5所述的图像处理装置,其特征在于,所述装置还包括:7. The image processing device according to claim 5, characterized in that the device further comprises: 判断模块,用于根据所述类型信息判断所述待处理图像数据中是否存在所述可处理的压缩纹理图像数据;A judgment module, configured to judge whether the processable compressed texture image data exists in the image data to be processed according to the type information; 在所述判断模块判断结果为否时,所述渲染模块用于根据所述图像处理指令获取原始图像数据,将所述原始图像数据输入至所述图形处理器进行图像渲染。When the judgment result of the judgment module is negative, the rendering module is used to obtain original image data according to the image processing instruction, and input the original image data to the graphics processor for image rendering. 8.根据权利要求5所述的图像处理装置,其特征在于,所述第二获取模块包括:8. The image processing device according to claim 5, characterized in that the second acquisition module includes: 界面生成子模块,用于控制所述图形处理器生成展示界面,所述展示界面为透明界面;An interface generation submodule is used to control the graphics processor to generate a display interface, where the display interface is a transparent interface; 类型获取子模块,用于获取所述展示界面的参数信息,根据所述参数信息获取所述图形处理器的类型信息。A type acquisition sub-module is used to obtain parameter information of the display interface, and obtain type information of the graphics processor according to the parameter information. 9.一种电子设备,其特征在于,包括:9. An electronic device, characterized in that it includes: 存储有可执行程序代码的存储器、与所述存储器耦合的处理器;A memory storing executable program code, a processor coupled to the memory; 所述处理器调用所述存储器中存储的所述可执行程序代码,执行如权利要求1至4任一项所述的图像处理方法中的步骤。The processor calls the executable program code stored in the memory to execute the steps in the image processing method according to any one of claims 1 to 4. 10.一种存储介质,其特征在于,所述存储介质存储有多条指令,所述指令适于处理器进行加载,以执行权利要求1至4任一项所述的图像处理方法中的步骤。10. A storage medium, characterized in that the storage medium stores a plurality of instructions, and the instructions are suitable for loading by the processor to execute the steps in the image processing method according to any one of claims 1 to 4. .
CN201910637251.3A 2019-07-15 2019-07-15 Image processing method, device, electronic equipment and storage medium Active CN110349243B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910637251.3A CN110349243B (en) 2019-07-15 2019-07-15 Image processing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910637251.3A CN110349243B (en) 2019-07-15 2019-07-15 Image processing method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110349243A CN110349243A (en) 2019-10-18
CN110349243B true CN110349243B (en) 2023-10-20

Family

ID=68175386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910637251.3A Active CN110349243B (en) 2019-07-15 2019-07-15 Image processing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110349243B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220249B (en) * 2020-02-05 2024-12-27 腾讯科技(深圳)有限公司 Image display method, device and storage medium
CN113778604B (en) * 2021-09-15 2025-03-21 腾讯数码(深圳)有限公司 A method, device, electronic device and storage medium for displaying an operation interface
CN114832373B (en) * 2021-12-21 2023-03-07 许磊 Texture, audio and video compression and reconstruction method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106408634A (en) * 2015-07-29 2017-02-15 三星电子株式会社 Texture processing apparatus and method
WO2017045540A1 (en) * 2015-09-14 2017-03-23 阿里巴巴集团控股有限公司 Picture processing method, apparatus, terminal device, and system for smart terminal
CN108460822A (en) * 2017-02-15 2018-08-28 上海银河数娱网络科技有限公司 Texture Processing Methods and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106408634A (en) * 2015-07-29 2017-02-15 三星电子株式会社 Texture processing apparatus and method
WO2017045540A1 (en) * 2015-09-14 2017-03-23 阿里巴巴集团控股有限公司 Picture processing method, apparatus, terminal device, and system for smart terminal
CN108460822A (en) * 2017-02-15 2018-08-28 上海银河数娱网络科技有限公司 Texture Processing Methods and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
图形处理器流水线数据压缩技术研究综述;韩立敏等;《计算机应用研究》;20170802(第03期);全文 *

Also Published As

Publication number Publication date
CN110349243A (en) 2019-10-18

Similar Documents

Publication Publication Date Title
CN110602321B (en) Application switching method, device, electronic device and storage medium
EP4116813A1 (en) Method for execution of hand gesture commands, apparatus, system, and storage medium
US20170199662A1 (en) Touch operation method and apparatus for terminal
CN107390922B (en) Virtual touch method, device, storage medium and terminal
US11658932B2 (en) Message sending method and terminal device
CN109460177A (en) A kind of image processing method and terminal device
CN110349243B (en) Image processing method, device, electronic equipment and storage medium
KR20160013054A (en) Method and apparatus for displaying application interface, and electronic device
CN108021321A (en) Application running state control method and mobile terminal
CN109284041A (en) Application interface switching method and mobile terminal
CN108762634A (en) A kind of control method and terminal
JP6641484B2 (en) Method and portable electronic device for changing graphics processing resolution according to scenario
CN110658971A (en) Screen capturing method and terminal equipment
CN108170361A (en) Application running state control method and mobile terminal
CN107025002A (en) Terminal applies control method, device and terminal
WO2020238357A1 (en) Icon displaying method and terminal device
CN112513803A (en) Electronic device for controlling display of virtual input interface in environment of multiple output screens and method of operating the same
CN107277032B (en) Video definition switching method and device, storage medium and terminal
CN110471870B (en) Multi-system operation method and device, electronic equipment and storage medium
CN109032547A (en) Split screen processing method and device, storage medium and electronic equipment
CN108540668B (en) Method for starting program and mobile terminal
CN106933576B (en) Terminal unlocking method and device and computer equipment
KR20220114082A (en) Display method and electronic device
CN111930509A (en) Data processing method and device for intelligent glasses, storage medium and electronic equipment
CN107069844B (en) Charging method, device and terminal

Legal Events

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