WO2015117345A1 - Method and device for displaying background - Google Patents

Method and device for displaying background Download PDF

Info

Publication number
WO2015117345A1
WO2015117345A1 PCT/CN2014/087846 CN2014087846W WO2015117345A1 WO 2015117345 A1 WO2015117345 A1 WO 2015117345A1 CN 2014087846 W CN2014087846 W CN 2014087846W WO 2015117345 A1 WO2015117345 A1 WO 2015117345A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
memory
background
image data
mixed
Prior art date
Application number
PCT/CN2014/087846
Other languages
French (fr)
Chinese (zh)
Inventor
孙凯将
高鹏程
秦刘涛
王力
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015117345A1 publication Critical patent/WO2015117345A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management

Definitions

  • the present invention relates to the field of communications, and more particularly to a display method and apparatus for a background.
  • the present invention provides a background display method and apparatus to solve at least the above problems.
  • a display method of a background comprising: transmitting image data of an upper layer application of a terminal to a specified memory, wherein the specified memory and a default memory buffer of the terminal are The image data is mixed with the background image selected by the user in the specified memory to obtain a mixed image, and the mixed image is an image with the background image as a background; The subsequent image is sent back to the memory buffer for display.
  • transmitting the image data of the upper layer application of the terminal to the specified memory comprising: modifying a first mapping relationship of the frame buffer device corresponding to the memory buffer to a second mapping relationship of the frame buffer device corresponding to the specified memory; And transmitting the image data to the designated memory according to the second mapping relationship.
  • sending the mixed image back to the memory buffer for display comprises: writing the mixed image to the memory buffer in the form of an image data format corresponding to the memory buffer In the area; reading image data from the memory buffer and displaying the image data.
  • reading image data from the memory buffer and displaying the image data comprises: reading image data written to the memory buffer according to a predetermined period.
  • the image data is mixed with the background image selected by the user in the specified memory, including: configuring the image data into a first pixel matrix form; and configuring the user-specified background image into a first a two-pixel matrix form; the first pixel matrix form and the second pixel matrix form are processed by a hybrid algorithm.
  • performing the hybrid algorithm processing on the first pixel matrix form and the second pixel matrix form comprising: reading a first color in a form of the first pixel matrix and a second color in a second pixel matrix form a color; decomposing the first color and the second color into a ternary color RGB; respectively multiplying each of the color colors of the first color R, G, B by X to obtain a first result, The second color of each of the second colors R, G, B is multiplied by (1-X) to obtain a second result, wherein X represents opacity; the RGB value of the first result and the second result R, GB value, according to each color in RGB corresponding to add a third result, the third result of the RGB three color is the value of the mixed algorithm processing.
  • the method further includes: receiving an operation instruction of the user through the interaction interface, and setting at least one of the following according to the operation instruction: when the terminal is full screen, masking the mixed background image for the specified application Display; configure the opening key for the mixed background image; set the transparency parameter of the mixed background image.
  • the specified memory is the same size as the memory buffer.
  • the transmitting module includes: a modifying unit, configured to modify a first mapping relationship of the frame buffer device corresponding to the memory buffer to a second mapping relationship of the frame buffer device corresponding to the specified memory; The image data is transferred to the designated memory according to a second mapping relationship.
  • the image data required for the application of the upper layer of the terminal is transmitted to the designated memory, and the specified memory is different from the technical solution of the memory buffer for storing the data required by the terminal to display the image by default, and the related art has not been solved in the mobile phone.
  • All the interfaces realize the problem of displaying the user's customized background, and realize the user customized background on all the interfaces on the mobile phone, which can greatly solve the problem that the user has too few custom display style elements on the mobile phone, and improves the user experience, and has high commercialization. value.
  • FIG. 1 is a flow chart showing a display method of a background according to an embodiment of the present invention.
  • FIG. 2 is a flow chart of the operation of the system in accordance with a preferred embodiment of the present invention.
  • FIG. 3 is a flow chart showing a display method of a background according to a preferred embodiment of the present invention.
  • FIG. 4 is a block diagram showing the structure of a display device according to an embodiment of the present invention.
  • FIG. 5 is a block diagram showing another structure of a display device according to a background of an embodiment of the present invention.
  • FIG. 6 is a block diagram showing the structure of a display system in accordance with a preferred embodiment of the present invention.
  • FIG. 1 is a flowchart of a background display method according to an embodiment of the present invention. As shown in FIG. 1 , the method includes the following steps:
  • Step S102 transmitting image data of the upper layer application of the terminal to the designated memory, wherein the specified memory is different from the location of the default memory buffer of the terminal;
  • Step S104 mixing the image data and the background image selected by the user in the specified memory to obtain a mixed background image, wherein the mixed image is an image with the background image as a background;
  • Step S106 The above mixed image is sent back to the above memory buffer for display.
  • the image data required for the upper layer application of the terminal is transmitted to the designated memory, and the specified memory is different from the technical solution of the memory buffer of the data required by the terminal to save the display image of the terminal by default, and the related art has not been solved yet.
  • All the interfaces of the mobile phone realize the problem of displaying the customized background of the user, and realize the customized background of all the interfaces on the mobile phone, which can greatly solve the problem that the user has too few custom display style elements on the mobile phone, and improves the user experience, and has a high degree. Commercial value.
  • step S102 the image data of the upper layer application of the terminal is transmitted to the specified memory, including: modifying the first mapping relationship of the frame buffer device corresponding to the memory buffer to the second corresponding to the specified memory of the frame buffer device. Mapping relationship; transmitting the image data to the specified memory according to the second mapping relationship.
  • Step S106 may include the following steps: writing the mixed background image to the display memory buffer in the form of an image data format corresponding to the display buffer; reading the image data from the display buffer and the image data. Displayed and displayed in the format converted image, optionally, the image data written to the above-mentioned memory buffer is read in accordance with a predetermined period.
  • performing the hybrid algorithm processing on the first pixel matrix form and the second pixel matrix form comprising: reading the first color in the form of the first pixel matrix and the second pixel matrix form a second color; respectively decomposing the first color and the second color into a ternary color RGB (ie, a short for Red Green Blue red, green, and blue); and each of the first color of R, G, and B
  • RGB ternary color
  • the primary color is multiplied by X to obtain a first result
  • each of the primary colors of R, G, and B of the second color is multiplied by (1-X) to obtain a second result, wherein X can represent a pre-set blend of the user.
  • the embodiment of the present invention further includes: receiving an operation instruction of the user through the interaction interface, and setting at least one of the following according to the operation instruction: when the terminal is full screen, the user may specify the application.
  • the mask display is performed, that is, for the specified application, the mixed background image is shielded and displayed; the mixed background image is configured with the key; the transparency parameter of the mixed background image is set.
  • image data of the upper layer application of the terminal referred to in the embodiment of the present invention may include, but is not limited to, “initial interface image data” or “application image data”, which refers to the technical solution that the mobile phone does not use the embodiment of the present invention.
  • a further improvement of the above technical solution in the embodiment of the present invention is that the size of the specified memory and the memory buffer are the same.
  • the embodiment of the present invention displays an image that should be directly displayed on the display screen after being processed by the algorithm selected by the user, thereby displaying an effect of displaying a beautiful background on any interface of the mobile phone.
  • FrameBuffer is the abstraction of the upper layer of the display device. It provides the mapping of the memory buffer for the upper layer application.
  • the upper layer completes the operation of the memory buffer by reading and writing to the FrameBuffer.
  • the technical solution adopted by the embodiment of the present invention is: intercepting image data to be displayed on the screen, performing a hybrid algorithm processing with the background icon, and displaying the processed image information on the screen.
  • the implementation process is as follows:
  • FIG. 2 is a flow chart of the system according to a preferred embodiment of the present invention, as shown in FIG. 2, wherein the LCD is an abbreviation of Liquid Crystal Display, and the FrameBuffer and the memory buffer M IO are disconnected (equivalent to the above implementation).
  • the direct mapping relationship of the memory buffer in the example so that the upper layer image data is no longer directly written to M IO .
  • a memory area M L (corresponding to the specified memory in the above embodiment) which is the same size as the M IO is customized, and the FrameBuffer is mapped to the memory M L . In this way, the image data of the upper layer is not directly transmitted to the display device, but is passed to the customized memory M L of the system.
  • fb0->fix.mmio_len is the size of the memory buffer, which is represented as M IO _L.
  • MMS_Start the initial address is recorded as MMS_Start
  • fb0->fix.mmio_start is assigned to MMS_Start
  • fb_mmap() linux/drivers/video/fbmem.c In the corresponding processing.
  • the mapping area of FrameBuffer is no longer the memory buffer M IO , but M L , and the upper layer data image data will not be directly transmitted to the display controller, but will be passed to M L .
  • Step 3 Establish interface interaction, so that the user can switch the function, and also set the background, transparency and other parameters. And you can set the full screen masking function, which can avoid affecting the visual effects when watching movies or games.
  • FIG. 3 is a flow chart of a display method of a background according to a preferred embodiment of the present invention, as shown in FIG. 3:
  • Step S302 When the user selects to open the service, the system changes the mapping relationship of the FrameBuffer to the memory area, as shown in S312 of FIG. 3, and modifies it to be mapped to the system-defined memory M L .
  • the image data to be displayed by the Android frame is written to the FrameBuffer (S312), the actually written memory becomes M L .
  • Step S316 After the M L obtains the image data, the image data on the M L needs to be parsed into an image format that is easy to process by the algorithm, and mixed with the background image set by the user to obtain the image information PF with the background (S316). Restore PF to memory format and write to the memory buffer M IO that was originally obtained. The display reads the data and displays it on the screen.
  • Steps S314, S316, and S318 are continuously repeated, and the repetition timing is after the FrameBuffer is written.
  • the transmitting module 40 is configured to transmit the image data of the upper layer application of the terminal to the designated memory, wherein the specified memory is different from the location of the default memory buffer of the terminal;
  • the mixing processing module 42 is connected to the transmitting module 40, and is configured to mix the image data and the background image selected by the user in the specified memory to obtain a mixed background image, wherein the mixed image is the background image. Background image
  • the display module 44 is connected to the mixing processing module 42 and is configured to send the mixed image back to the display buffer for display.
  • the main modules of the system include: a system function module 60, a user interaction module 62, and an image processing module 64.
  • the function of each module is described as follows:
  • the system function module 60 (corresponding to the transmission module 40 in the above embodiment):
  • the function of the module is to complete the initialization work when the system function is turned on, and complete the finishing work when the system function is turned off.
  • the initial work includes allocating the memory M L that is consistent with the M IO size, and transferring the mapping of the FrameBuffer from the M IO to the M L while saving the information of the M IO for use by the image processing module 64. It also includes some optimization features, such as blocking when displaying in full screen.
  • the finishing work includes restoring the initial mapping of FrameBuffer and memory reclamation.
  • User interaction module 62 This module provides the user with the switch of the system. When the user opens the function defined by the system, the module will call the module 60 to change the memory mapping relationship of the FrameBuffer. When the user closes the function, the original mapping relationship is restored. The module also provides the user with an interface to select a background image that will be used by the image processing module 64 as a hybrid algorithm operation. This module also provides users with some settings, including background transparency, which programs are blocked when the program is running.
  • the image processing module 64 (corresponding to the functions performed by the mixing processing module 42 and the display module 44 of the above embodiment): the function of the module parses the image data in the memory M L into a format that is easy to process by the algorithm, and according to the background selected by the user. The image is mixed to obtain an image PF with a background image, and the PF is restored to the in-memory data format and filled into the initial memory buffer M IO . After the processed data is filled into M IO , the processing in one cycle is completed, and then the display driver reads the image data in the M IO and displays it on the screen. When the Frabuffer is written again, the data will be Repeat this process.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across multiple computing devices.
  • they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from this
  • the steps shown or described are performed sequentially, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Provided are a method and device for displaying a background. The method comprises: image data of a terminal upper layer application is transferred to a specified memory, the positions of the specified memory and a default display memory buffer of the terminal being different, the image data is mixed with a user-selected background image within the specified memory, and a mixed image is obtained, the mixed image being an image taking the background image as a background; the mixed image is returned to the display memory buffer for display. The present technical solution solves the problem in the relevant prior art that display of a user-customised background is not yet implemented on all interfaces of a mobile phone. Implementing display of a user-customised background on all interfaces of a mobile phone solves the problem that there are too few user-customised display style elements on a current mobile phone. User experience is improved, and the commercial value is high.

Description

背景的显示方法及装置Background display method and device 技术领域Technical field
本发明涉及通信领域,更具体地说,涉及背景的显示方法及装置。The present invention relates to the field of communications, and more particularly to a display method and apparatus for a background.
背景技术Background technique
目前手机比较漂亮的界面元素仅仅体现在壁纸,锁屏等有限的几个地方,其他的比如通话界面,设置界面等则一成不变,用户体验度很差,即现有技术中没有一种方法让用户在手机显示的所有界面都能自由地定制背景。At present, the beautiful interface elements of mobile phones are only reflected in a limited number of places such as wallpapers and lock screens. Others such as the call interface and setting interface are unchanged, and the user experience is very poor, that is, there is no method in the prior art for the user. The background is freely customizable on all screens displayed on the phone.
针对相关技术中尚无在手机的所有界面实现显示用户定制背景的问题,目前尚未提出有效的解决方案。For the related technology, there is no problem of displaying the customized background of all the interfaces of the mobile phone, and no effective solution has been proposed yet.
发明内容Summary of the invention
本发明提供了一种背景的显示方法及装置,以至少解决上述问题。The present invention provides a background display method and apparatus to solve at least the above problems.
根据本发明的一个实施例,提供了一种背景的显示方法,所述方法包括:将终端上层应用的图像数据传送至指定内存,其中,所述指定内存与所述终端默认的显存缓冲区的位置不同;将所述图像数据与用户选择的背景图像在所述指定内存中进行混合处理,得到混合后的图像,该混合后的图像为以所述背景图像为背景的图像;将所述混合后的图像送回至所述显存缓冲区进行显示。According to an embodiment of the present invention, a display method of a background is provided, the method comprising: transmitting image data of an upper layer application of a terminal to a specified memory, wherein the specified memory and a default memory buffer of the terminal are The image data is mixed with the background image selected by the user in the specified memory to obtain a mixed image, and the mixed image is an image with the background image as a background; The subsequent image is sent back to the memory buffer for display.
优选地,将终端上层应用的图像数据传至指定内存,包括:将帧缓冲设备对应所述显存缓冲区的第一映射关系修改为所述帧缓冲设备对应所述指定内存的第二映射关系;根据所述第二映射关系将所述图像数据传送至所述指定内存。Preferably, transmitting the image data of the upper layer application of the terminal to the specified memory, comprising: modifying a first mapping relationship of the frame buffer device corresponding to the memory buffer to a second mapping relationship of the frame buffer device corresponding to the specified memory; And transmitting the image data to the designated memory according to the second mapping relationship.
优选地,将所述混合后的图像送回至所述显存缓冲区进行显示,包括:将所述混合后的图像以所述显存缓冲区对应的图像数据格式的形式写入到所述显存缓冲区中;从所述显存缓冲区中读取图像数据并显示所述图像数据。Preferably, sending the mixed image back to the memory buffer for display comprises: writing the mixed image to the memory buffer in the form of an image data format corresponding to the memory buffer In the area; reading image data from the memory buffer and displaying the image data.
优选地,从所述显存缓冲区中读取图像数据并将所述图像数据显示出来,包括:按照预定周期读取写入到所述显存缓冲区的图像数据。 Preferably, reading image data from the memory buffer and displaying the image data comprises: reading image data written to the memory buffer according to a predetermined period.
优选地,将所述图像数据与用户选择的背景图像在所述指定内存中进行混合处理,包括:将所述图像数据配置成第一像素矩阵形式;将所述用户指定的背景图像配置成第二像素矩阵形式;将所述第一像素矩阵形式和所述第二像素矩阵形式进行混合算法处理。Preferably, the image data is mixed with the background image selected by the user in the specified memory, including: configuring the image data into a first pixel matrix form; and configuring the user-specified background image into a first a two-pixel matrix form; the first pixel matrix form and the second pixel matrix form are processed by a hybrid algorithm.
优选地,将所述第一像素矩阵形式和所述第二像素矩阵形式进行混合算法处理,包括:读取所述第一像素矩阵形式的第一颜色和所述第二像素矩阵形式的第二颜色;将所述第一颜色和所述第二颜色分别分解为三元色RGB;将所述第一颜色的R,G,B的每个元色分别乘以X得到第一结果,所述第二颜色的R,G,B的每个元色分别乘以(1-X)得到第二结果,其中,X表示不透明度;将所述第一结果的RGB值和所述第二结果的R,GB值,按照RGB中每种颜色分别对应相加得到第三结果,将第三结果的RGB三色还原即为进行混合算法处理后的值。Preferably, performing the hybrid algorithm processing on the first pixel matrix form and the second pixel matrix form, comprising: reading a first color in a form of the first pixel matrix and a second color in a second pixel matrix form a color; decomposing the first color and the second color into a ternary color RGB; respectively multiplying each of the color colors of the first color R, G, B by X to obtain a first result, The second color of each of the second colors R, G, B is multiplied by (1-X) to obtain a second result, wherein X represents opacity; the RGB value of the first result and the second result R, GB value, according to each color in RGB corresponding to add a third result, the third result of the RGB three color is the value of the mixed algorithm processing.
优选地,所述方法还包括:通过交互界面接收用户的操作指令,根据所述操作指令对以下至少之一进行设置:在所述终端全屏时,对于指定应用程序,混合后的背景图像进行屏蔽显示;针对混合后的背景图像配置开关键;对混合后的背景图像的透明度参数进行设置。Preferably, the method further includes: receiving an operation instruction of the user through the interaction interface, and setting at least one of the following according to the operation instruction: when the terminal is full screen, masking the mixed background image for the specified application Display; configure the opening key for the mixed background image; set the transparency parameter of the mixed background image.
优选地,所述指定内存与所述显存缓冲区的大小是相同的。Preferably, the specified memory is the same size as the memory buffer.
根据本发明的另一个实施例,还提供了一种背景的显示装置,所述装置包括:传送模块,设置为将终端上层应用的图像数据传送至指定内存,其中,所述指定内存与所述终端默认的显存缓冲区的位置不同;混合处理模块,设置为将所述图像数据与用户选择的背景图像在所述指定内存中进行混合处理,得到混合后的图像,该混合后的图像为以所述背景图像为背景的图像;显示模块,设置为将所述混合后的图像送回至所述显存缓冲区进行显示。According to another embodiment of the present invention, there is further provided a display device of a background, the device comprising: a transfer module configured to transfer image data of an upper layer application of the terminal to a designated memory, wherein the specified memory and the The location of the default memory buffer is different; the hybrid processing module is configured to mix the image data with the background image selected by the user in the specified memory to obtain a mixed image, where the mixed image is The background image is an image of the background; the display module is configured to send the mixed image back to the memory buffer for display.
优选地,所述传送模块,包括:修改单元,设置为将帧缓冲设备对应显存缓冲区的第一映射关系修改为所述帧缓冲设备对应所述指定内存的第二映射关系;传送单元,设置为根据第二映射关系将所述图像数据传送至所述指定内存。Preferably, the transmitting module includes: a modifying unit, configured to modify a first mapping relationship of the frame buffer device corresponding to the memory buffer to a second mapping relationship of the frame buffer device corresponding to the specified memory; The image data is transferred to the designated memory according to a second mapping relationship.
通过本发明,采用将终端上层应用需要的图像数据传送至指定内存,该指定内存不同于终端默认保存终端显示图像所需的数据的显存缓冲器的技术方案,解决了相关技术中尚无在手机的所有界面实现显示用户定制背景的问题,实现在手机上的所有界面显示用户定制背景,能够大大解决当前手机上用户定制显示风格元素过少的问题,提升了用户体验度,具有较高的商用价值。 According to the present invention, the image data required for the application of the upper layer of the terminal is transmitted to the designated memory, and the specified memory is different from the technical solution of the memory buffer for storing the data required by the terminal to display the image by default, and the related art has not been solved in the mobile phone. All the interfaces realize the problem of displaying the user's customized background, and realize the user customized background on all the interfaces on the mobile phone, which can greatly solve the problem that the user has too few custom display style elements on the mobile phone, and improves the user experience, and has high commercialization. value.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1为根据本发明实施例的背景的显示方法的流程图;1 is a flow chart showing a display method of a background according to an embodiment of the present invention;
图2为根据本发明优选实施例的系统工作流程图;2 is a flow chart of the operation of the system in accordance with a preferred embodiment of the present invention;
图3为根据本发明优选实施例的背景的显示方法的流程图;3 is a flow chart showing a display method of a background according to a preferred embodiment of the present invention;
图4为根据本发明实施例的背景的显示装置的结构框图;4 is a block diagram showing the structure of a display device according to an embodiment of the present invention;
图5为根据本发明实施例的背景的显示装置的另一结构框图;FIG. 5 is a block diagram showing another structure of a display device according to a background of an embodiment of the present invention; FIG.
图6为根据本发明优选实施例的背景的显示系统的结构框图。6 is a block diagram showing the structure of a display system in accordance with a preferred embodiment of the present invention.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Other features and advantages of the invention will be set forth in the description which follows, The objectives and other advantages of the invention may be realized and obtained by means of the structure particularly pointed in the appended claims.
需要说明的是,本发明实施例的以下技术方案适用于至少以下之一情景:Linux终端以及安卓系统。It should be noted that the following technical solutions of the embodiments of the present invention are applicable to at least one of the following scenarios: a Linux terminal and an Android system.
本发明实施例提供了一种背景的显示方法,图1为根据本发明实施例的背景的显示方法的流程图,如图1所示,该方法包括如下步骤:The embodiment of the present invention provides a background display method. FIG. 1 is a flowchart of a background display method according to an embodiment of the present invention. As shown in FIG. 1 , the method includes the following steps:
步骤S102:将终端上层应用的图像数据传送至指定内存,其中,上述指定内存与上述终端默认的显存缓冲区的位置不同;Step S102: transmitting image data of the upper layer application of the terminal to the designated memory, wherein the specified memory is different from the location of the default memory buffer of the terminal;
步骤S104:将上述图像数据与用户选择的背景图像在上述指定内存中进行混合处理,得到混合后的背景图像,该混合后的图像为以上述背景图像为背景的图像;Step S104: mixing the image data and the background image selected by the user in the specified memory to obtain a mixed background image, wherein the mixed image is an image with the background image as a background;
步骤S106:将上述混合后的图像送回至上述显存缓冲区进行显示。 Step S106: The above mixed image is sent back to the above memory buffer for display.
通过上述各个步骤,采用将终端上层应用需要的图像数据传送至指定内存,该指定内存不同于终端默认保存终端显示图像所需的数据的显存缓冲器的技术方案,解决了相关技术中尚无在手机的所有界面实现显示用户定制背景的问题,实现在手机上的所有界面显示用户定制背景,能够大大解决当前手机上用户定制显示风格元素过少的问题,提升了用户体验度,具有较高的商用价值。Through the above various steps, the image data required for the upper layer application of the terminal is transmitted to the designated memory, and the specified memory is different from the technical solution of the memory buffer of the data required by the terminal to save the display image of the terminal by default, and the related art has not been solved yet. All the interfaces of the mobile phone realize the problem of displaying the customized background of the user, and realize the customized background of all the interfaces on the mobile phone, which can greatly solve the problem that the user has too few custom display style elements on the mobile phone, and improves the user experience, and has a high degree. Commercial value.
在具体实施过程中,步骤S102中,将终端上层应用的图像数据传至指定内存,包括:将帧缓冲设备对应显存缓冲区的第一映射关系修改为上述帧缓冲设备对应上述指定内存的第二映射关系;根据第二映射关系将上述图像数据传送至上述指定内存。In a specific implementation, in step S102, the image data of the upper layer application of the terminal is transmitted to the specified memory, including: modifying the first mapping relationship of the frame buffer device corresponding to the memory buffer to the second corresponding to the specified memory of the frame buffer device. Mapping relationship; transmitting the image data to the specified memory according to the second mapping relationship.
步骤S106可以包括如下过程:将上述混合后的背景图像以上述显存缓冲区对应的图像数据格式的形式写入到上述显存缓冲区中;从上述显存缓冲区中读取图像数据并将上述图像数据显示出来,并显示格式转换后的图像,可选地,按照预定周期读取写入到上述显存缓冲区的图像数据。Step S106 may include the following steps: writing the mixed background image to the display memory buffer in the form of an image data format corresponding to the display buffer; reading the image data from the display buffer and the image data. Displayed and displayed in the format converted image, optionally, the image data written to the above-mentioned memory buffer is read in accordance with a predetermined period.
在本发明实施例的一个可选实施例中,将上述图像数据与用户选择的背景图像在上述指定内存中进行混合处理,包括:将上述图像数据配置成第一像素矩阵形式;将上述用户指定的背景图像配置成第二像素矩阵形式;将上述第一像素矩阵形式和上述第二像素矩阵形式进行混合算法处理。In an optional embodiment of the present invention, the image data and the background image selected by the user are mixed in the specified memory, including: configuring the image data into a first pixel matrix form; The background image is configured in a second pixel matrix form; the first pixel matrix form and the second pixel matrix form are mixed and processed.
在另一个可选实施例中,将上述第一像素矩阵形式和上述第二像素矩阵形式进行混合算法处理,包括:读取上述第一像素矩阵形式的第一颜色和上述第二像素矩阵形式的第二颜色;将上述第一颜色和上述第二颜色分别分解为三元色RGB(即Red Green Blue红色、绿色、蓝色的简称);将上述第一颜色的R,G,B的每个元色分别乘以X得到第一结果,上述第二颜色的R,G,B的每个元色分别乘以(1-X)得到第二结果,其中,X可以表示用户预先设置的混合后的图片的不透明度;将上述第一结果的RGB值和上述第二结果的R,GB值,按照RGB中每种颜色分别对应相加得到第三结果,将第三结果的RGB三色还原即为进行混合算法处理后的值。In another optional embodiment, performing the hybrid algorithm processing on the first pixel matrix form and the second pixel matrix form, comprising: reading the first color in the form of the first pixel matrix and the second pixel matrix form a second color; respectively decomposing the first color and the second color into a ternary color RGB (ie, a short for Red Green Blue red, green, and blue); and each of the first color of R, G, and B The primary color is multiplied by X to obtain a first result, and each of the primary colors of R, G, and B of the second color is multiplied by (1-X) to obtain a second result, wherein X can represent a pre-set blend of the user. The opacity of the picture; the RGB value of the first result and the R and GB values of the second result are respectively added according to each color of the RGB to obtain a third result, and the RGB three colors of the third result are restored. The value to be processed by the blending algorithm.
为了避免在看电影或者游戏时影响视效,本发明实施例还包括:通过交互界面接收用户的操作指令,根据上述操作指令对以下至少之一进行设置:在上述终端全屏时,用户可以指定应用,当这些应用运行时进行屏蔽显示,即对于指定应用程序,将混合后的背景图像进行屏蔽显示;针对混合后的背景图像配置开关键;对混合后的背景图像的透明度参数进行设置。 In order to avoid affecting the visual effect when watching a movie or a game, the embodiment of the present invention further includes: receiving an operation instruction of the user through the interaction interface, and setting at least one of the following according to the operation instruction: when the terminal is full screen, the user may specify the application. When these applications are running, the mask display is performed, that is, for the specified application, the mixed background image is shielded and displayed; the mixed background image is configured with the key; the transparency parameter of the mixed background image is set.
需要说明的是,本发明实施例所指的终端上层应用的图像数据可以包括但不限于“初始界面图像数据”或“应用图像数据”,它指的是手机没有使用本发明实施例的技术方案前显示到屏幕上的图像。It should be noted that the image data of the upper layer application of the terminal referred to in the embodiment of the present invention may include, but is not limited to, “initial interface image data” or “application image data”, which refers to the technical solution that the mobile phone does not use the embodiment of the present invention. The image that was previously displayed on the screen.
本发明实施例对上述技术方案的进一步改进在于,上述指定内存与上述显存缓冲区的大小是相同的。A further improvement of the above technical solution in the embodiment of the present invention is that the size of the specified memory and the memory buffer are the same.
综上所述,本发明实施例把本来应该直接显示到显示屏上的图像经过与用户选定的背景经过算法处理之后再显示出来,以此在手机的任意一个界面实现显示漂亮背景的效果。In summary, the embodiment of the present invention displays an image that should be directly displayed on the display screen after being processed by the algorithm selected by the user, thereby displaying an effect of displaying a beautiful background on any interface of the mobile phone.
本发明实施例用到的相关技术包括FrameBuffer(帧缓冲设备)和图像处理。其中FrameBuffer是显示器设备对上层的抽象,它为上层应用提供显存缓冲区的映射,上层通过对FrameBuffer的读写来完成对显存缓冲区的操作。当图像数据被写入显存缓冲区后,底层的显示器驱动会自动读取显存缓冲区的数据并将其在显示屏上显示出来。所以本发明实施例可以在这里来截取将要写到屏幕上的图像信息并对其进行修改。当把将要显示的图像信息与背景图片做出算法处理后再显示到屏幕上就会显示出半透明的背景效果。Related art used in the embodiments of the present invention includes a FrameBuffer (frame buffer device) and image processing. FrameBuffer is the abstraction of the upper layer of the display device. It provides the mapping of the memory buffer for the upper layer application. The upper layer completes the operation of the memory buffer by reading and writing to the FrameBuffer. When the image data is written to the memory buffer, the underlying display driver automatically reads the data in the memory buffer and displays it on the display. Therefore, the embodiment of the present invention can intercept and modify the image information to be written on the screen here. When the image information to be displayed and the background image are processed by an algorithm and then displayed on the screen, a translucent background effect is displayed.
为了更好的理解上述背景的显示过程,以下结合优选实施例进行说明,但不限定本发明。In order to better understand the display process of the above background, the following description will be made in conjunction with the preferred embodiments, without limiting the invention.
优选实施例一Preferred embodiment 1
本发明实施例采用的技术方案是:截取将要显示到屏幕上的图像数据,将其与背景图标作混合算法处理,将处理后的图像信息显示到屏幕上。实现过程如下所述:The technical solution adopted by the embodiment of the present invention is: intercepting image data to be displayed on the screen, performing a hybrid algorithm processing with the background icon, and displaying the processed image information on the screen. The implementation process is as follows:
步骤1:图2为根据本发明优选实施例的系统工作流程图,如图2所示,其中,LCD为液晶显示器Liquid Crystal Display的简称,断开FrameBuffer和显存缓冲区MIO(相当于上述实施例中的显存缓冲器)的直接映射关系,使得上层图像数据不再直接写入MIO。同时自定义一个与MIO大小一致的内存区ML(相当于上述实施例中的指定内存),将FrameBuffer映射到内存ML,上。这样上层的图像数据就不会直接传递到显示器设备,而是传递给本系统自定义的内存MLStep 1: FIG. 2 is a flow chart of the system according to a preferred embodiment of the present invention, as shown in FIG. 2, wherein the LCD is an abbreviation of Liquid Crystal Display, and the FrameBuffer and the memory buffer M IO are disconnected (equivalent to the above implementation). The direct mapping relationship of the memory buffer in the example, so that the upper layer image data is no longer directly written to M IO . At the same time, a memory area M L (corresponding to the specified memory in the above embodiment) which is the same size as the M IO is customized, and the FrameBuffer is mapped to the memory M L . In this way, the image data of the upper layer is not directly transmitted to the display device, but is passed to the customized memory M L of the system.
这个过程在Andorid平台实施方法为:显示器设备在内核初始化时会调用register_FrameBuffer(struct fb_info*fb_info)把自己注册到一个全局变量struct fb_info*registered_fb[FB_MAX]里,可以访问这个全局变量,并通过匹配 fb_info.modename得到显示器设备所对应的fb_info结构fb0。fb0->fix.mmio_start的值就是显示器设备在初始化时得到的显存缓冲区MIO的初始地址,把它保存下来,记录为MIO_Start。fb0->fix.mmio_len的值则是显存缓冲区的大小,把它表示为MIO_L。我们在内存中分配一个大小为MIO_L的空间ML,其初始地址记录为MMS_Start,将fb0->fix.mmio_start赋值为MMS_Start,然后在fb_mmap()(linux/drivers/video/fbmem.c中定义)中做对应的处理。这时FrameBuffer的映射区就不再是显存缓冲区MIO,而是ML,上层的数据图像数据也不会被直接传递到显示控制器,而是被传递到MLThis process is implemented on the Andorid platform: the display device registers register_FrameBuffer(struct fb_info*fb_info) to register itself into a global variable struct fb_info*registered_fb[FB_MAX] when the kernel is initialized. This global variable can be accessed and matched by fb_info. .modename gets the fb_info structure fb0 corresponding to the display device. The value of fb0->fix.mmio_start is the initial address of the memory buffer M IO obtained by the display device during initialization. Save it and record it as M IO _Start. The value of fb0->fix.mmio_len is the size of the memory buffer, which is represented as M IO _L. We allocate a space ML of size M IO _L in memory, the initial address is recorded as MMS_Start, the value of fb0->fix.mmio_start is assigned to MMS_Start, and then defined in fb_mmap() (linux/drivers/video/fbmem.c In the corresponding processing. At this time, the mapping area of FrameBuffer is no longer the memory buffer M IO , but M L , and the upper layer data image data will not be directly transmitted to the display controller, but will be passed to M L .
步骤2:解析内存ML中的图像数据,将其构建为易处理的像素矩阵形式P-1。需要设置的背景图片为P-2。将P-1和P-2用混合算法进行处理,得到处理后的图像PF。将PF还原为内存中的图像格式,将其写入MIO,使得屏幕驱动可以读取到处理后的图像并显示到屏幕上。在FrameBuffer执行写操作的时候设置一个监听器,每次写完重复执行该过程。Step 2: Parse the image data in the memory M L and construct it into a disposable pixel matrix form P-1. The background image to be set is P-2. P-1 and P-2 are processed by a hybrid algorithm to obtain a processed image PF. Restore the PF to the image format in memory and write it to M IO so that the screen driver can read the processed image and display it on the screen. Set a listener when the FrameBuffer performs a write operation, and repeat the process each time it is written.
上述过程在Android平台实施方法:内存数据和图像像素的对应关系可以从fb0->fix.type或获取,而像素的比特值可以从fb0->var.bits_per_pixel中获取,屏幕上的像素点数量是fb0->var.xres(宽度)*fb0->var.yres(高度)。所以依据这个关系可以处理内存数据和像素矩阵的相互转换关系。而P-1和P-2的混合处理算法简单描述为:假设不透明度为x,分别读取P-1和P-2各点的颜色,各自分解为三元色,让P-1的颜色乘以x,P-2的颜色乘以(1-x),然后将它们的值相加后得到新图像PF的对应像素值,PF就具有所需要半透明背景效果。The above process is implemented on the Android platform: the correspondence between the memory data and the image pixels can be obtained from fb0->fix.type, and the bit value of the pixel can be obtained from fb0->var.bits_per_pixel, and the number of pixels on the screen is Fb0->var.xres (width) *fb0->var.yres (height). Therefore, according to this relationship, the mutual conversion relationship between the memory data and the pixel matrix can be handled. The mixed processing algorithm of P-1 and P-2 is simply described as follows: assuming that the opacity is x, the colors of each point of P-1 and P-2 are respectively read, and each is decomposed into a ternary color, and the color of P-1 is made. Multiply x, the color of P-2 is multiplied by (1-x), and then add their values to get the corresponding pixel value of the new image PF, and PF has the desired translucent background effect.
步骤3:建立界面交互,使得用户可以对功能进行开关操作,也可以设置背景,透明度等参数。并且可以设置全屏时屏蔽功能,这样可以避免在看电影或者游戏时影响视效。Step 3: Establish interface interaction, so that the user can switch the function, and also set the background, transparency and other parameters. And you can set the full screen masking function, which can avoid affecting the visual effects when watching movies or games.
优选实施例二Preferred embodiment two
图3为根据本发明优选实施例的背景的显示方法的流程图,如图3所示:3 is a flow chart of a display method of a background according to a preferred embodiment of the present invention, as shown in FIG. 3:
其中S302,S304是用户操作,S306,S308,S310是Android终端系统原生流程,S312,S314,S316,S318是本系统实现的部分。S302, S304 are user operations, S306, S308, S310 are Android terminal system native processes, S312, S314, S316, S318 are part of the implementation of the system.
步骤S302:当用户选择打开服务时,系统会改变FrameBuffer对显存区的映射关系,如图3的S312所示,将其修改为映射到本系统自定义的内存ML。Android框 架将要显示的图像数据写入FrameBuffer的时候(S312)实际上写入的内存就变成了MLStep S302: When the user selects to open the service, the system changes the mapping relationship of the FrameBuffer to the memory area, as shown in S312 of FIG. 3, and modifies it to be mapped to the system-defined memory M L . When the image data to be displayed by the Android frame is written to the FrameBuffer (S312), the actually written memory becomes M L .
步骤S316:ML得到图像数据之后,需要把ML上的图像数据解析为算法容易处理的图像格式,并与用户设置的背景图片进行混合运算,得到带有背景的图像信息PF(S316)。将PF还原为内存格式,写入到最开始得到的显存缓冲区MIO。显示器会读取这些数据,并且显示到屏幕上。Step S316: After the M L obtains the image data, the image data on the M L needs to be parsed into an image format that is easy to process by the algorithm, and mixed with the background image set by the user to obtain the image information PF with the background (S316). Restore PF to memory format and write to the memory buffer M IO that was originally obtained. The display reads the data and displays it on the screen.
步骤S314,S316,S318会不断地重复,重复时机是FrameBuffer被写入数据之后。Steps S314, S316, and S318 are continuously repeated, and the repetition timing is after the FrameBuffer is written.
在本实施例中还提供了一种背景的显示装置,用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述,下面对该装置中涉及到的模块进行说明。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。图4为根据本发明实施例的背景的显示装置的结构框图。如图4所示,该装置包括:In the embodiment, a background display device is provided for implementing the above-mentioned embodiments and preferred embodiments. The descriptions of the modules and the preferred embodiments have been omitted. The modules involved in the devices are described below. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated. 4 is a block diagram showing the structure of a display device according to a background of an embodiment of the present invention. As shown in Figure 4, the device comprises:
传送模块40,设置为将终端上层应用的图像数据传送至指定内存,其中,上述指定内存与上述终端默认的显存缓冲区的位置不同;The transmitting module 40 is configured to transmit the image data of the upper layer application of the terminal to the designated memory, wherein the specified memory is different from the location of the default memory buffer of the terminal;
混合处理模块42,与传送模块40连接,设置为将上述图像数据与用户选择的背景图像在上述指定内存中进行混合处理,得到混合后的背景图像,该混合后的图像为以上述背景图像为背景的图像;The mixing processing module 42 is connected to the transmitting module 40, and is configured to mix the image data and the background image selected by the user in the specified memory to obtain a mixed background image, wherein the mixed image is the background image. Background image
显示模块44,与混合处理模块42连接,设置为将上述混合后的图像送回至上述显存缓冲区进行显示。The display module 44 is connected to the mixing processing module 42 and is configured to send the mixed image back to the display buffer for display.
通过上述各个模块的综合作用,采用将终端上层应用需要的图像数据传送至指定内存,该指定内存不同于终端默认保存终端显示图像所需的数据的显存缓冲器的技术方案,解决了相关技术中尚无在手机的所有界面实现显示用户定制背景的问题,实现在手机上的所有界面显示用户定制背景,能够大大解决当前手机上用户定制显示风格元素过少的问题,提升了用户体验度,具有较高的商用价值。Through the comprehensive function of the above-mentioned modules, the image data required for the upper layer application of the terminal is transmitted to the designated memory, and the specified memory is different from the technical solution of the memory buffer of the data required for the terminal to save the display image of the terminal by default, and the related art is solved. The problem of displaying the user's customized background has not been realized in all the interfaces of the mobile phone, and the user customized background is displayed on all the interfaces on the mobile phone, which can greatly solve the problem that the user has less custom display style elements on the mobile phone, and improves the user experience. Higher commercial value.
可选地,如图5所示,传送模块40,包括:修改单元400,设置为将帧缓冲设备对应显存缓冲区的第一映射关系修改为上述帧缓冲设备对应上述指定内存的第二映射 关系;传送单元402,与修改单元400连接,设置为根据第二映射关系将上述图像数据传送至上述指定内存。Optionally, as shown in FIG. 5, the transmitting module 40 includes: a modifying unit 400, configured to modify a first mapping relationship of the frame buffering device corresponding to the memory buffer to a second mapping of the frame buffering device corresponding to the specified memory. The transfer unit 402 is connected to the modification unit 400 and configured to transfer the image data to the specified memory according to the second mapping relationship.
为了更好的理解上述背景的显示装置的结构框图以及其工作流程,以下结合一个优选实施例进行说明,图6为根据本发明优选实施例的背景的显示系统的结构框图,如图6所示:In order to better understand the structural block diagram of the display device of the above background and the workflow thereof, the following is described in conjunction with a preferred embodiment. FIG. 6 is a structural block diagram of a display system according to a preferred embodiment of the present invention, as shown in FIG. :
该系统主要模块包括:系统功能模块60,用户交互模块62,图像处理模块64。各模块功能描述如下:The main modules of the system include: a system function module 60, a user interaction module 62, and an image processing module 64. The function of each module is described as follows:
系统功能模块60(相当于上述实施例中的传送模块40):本模块的作用是在本系统功能被打开的时候,完成初始化工作,在本系统功能被关闭的时候完成收尾工作。初始工作包括分配与MIO大小一致的内存ML,并将FrameBuffer的映射关系由MIO转移到ML,同时将MIO的信息保存下来为图像处理模块64所使用。此外还包括一些优化功能,比如在全屏显示时屏蔽功能。收尾工作则包括还原FrameBuffer初始的映射关系以及内存回收。The system function module 60 (corresponding to the transmission module 40 in the above embodiment): The function of the module is to complete the initialization work when the system function is turned on, and complete the finishing work when the system function is turned off. The initial work includes allocating the memory M L that is consistent with the M IO size, and transferring the mapping of the FrameBuffer from the M IO to the M L while saving the information of the M IO for use by the image processing module 64. It also includes some optimization features, such as blocking when displaying in full screen. The finishing work includes restoring the initial mapping of FrameBuffer and memory reclamation.
用户交互模块62:本模块向用户提供本系统的开关。当用户打开本系统定义的功能的时候,本模块会调用模块60改变FrameBuffer的内存映射关系,用户关闭功能时,会还原初始的映射关系。本模块也向用户提供选择背景图片的界面,该背景图片会被图像处理模块64用作混合算法运算。本模块还向用户提供一些设置项,包括背景透明度,哪些程序运行时屏蔽本系统功能等选项。User interaction module 62: This module provides the user with the switch of the system. When the user opens the function defined by the system, the module will call the module 60 to change the memory mapping relationship of the FrameBuffer. When the user closes the function, the original mapping relationship is restored. The module also provides the user with an interface to select a background image that will be used by the image processing module 64 as a hybrid algorithm operation. This module also provides users with some settings, including background transparency, which programs are blocked when the program is running.
图像处理模块64(相当于上述实施例的混合处理模块42和显示模块44完成的功能):本模块的作用将内存ML中的图像数据解析成易于算法处理的格式,并根据用户选择的背景图片进行混合运算,得到带有背景图像的图像PF,并且把PF还原为内存数据格式并填充到初始的显存缓冲区MIO。把处理后的数据填充到MIO之后,一个周期内的处理就算完成了,接下来显示器驱动会读取MIO内的图像数据并将其显示在屏幕上,当Frambuffer被再次写入数据后会重复这一流程。The image processing module 64 (corresponding to the functions performed by the mixing processing module 42 and the display module 44 of the above embodiment): the function of the module parses the image data in the memory M L into a format that is easy to process by the algorithm, and according to the background selected by the user. The image is mixed to obtain an image PF with a background image, and the PF is restored to the in-memory data format and filled into the initial memory buffer M IO . After the processed data is filled into M IO , the processing in one cycle is completed, and then the display driver reads the image data in the M IO and displays it on the screen. When the Frabuffer is written again, the data will be Repeat this process.
综上所述,本发明实施例实现了以下有益效果:解决了相关技术中尚无在手机的所有界面实现显示用户定制背景的问题,实现在手机上的所有界面显示用户定制背景,能够大大解决当前手机上用户定制显示风格元素过少的问题,提升了用户体验度,具有较高的商用价值。In summary, the embodiments of the present invention achieve the following beneficial effects: the problem of displaying the customized background of all interfaces in the mobile phone is not solved in the related art, and the user customized background is displayed on all interfaces of the mobile phone, which can greatly solve the problem. At present, the problem of too few user-defined display style elements on the mobile phone improves the user experience and has high commercial value.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所 组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across multiple computing devices. Optionally, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from this The steps shown or described are performed sequentially, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
基于本发明实施例提供的上述技术方案,采用将终端上层应用需要的图像数据传送至指定内存,该指定内存不同于终端默认保存终端显示图像所需的数据的显存缓冲器的技术方案,解决了相关技术中尚无在手机的所有界面实现显示用户定制背景的问题,实现在手机上的所有界面显示用户定制背景,能够大大解决当前手机上用户定制显示风格元素过少的问题,提升了用户体验度,具有较高的商用价值。 According to the above technical solution provided by the embodiment of the present invention, the image data required by the upper layer application of the terminal is transmitted to the designated memory, and the specified memory is different from the technical solution of the memory buffer of the data required by the terminal to save the display image of the terminal by default, and the solution is solved. In the related art, the problem of displaying the customized background of all the interfaces of the mobile phone is not realized, and the user customized background is displayed on all the interfaces on the mobile phone, which can greatly solve the problem that the user has less custom display style elements on the mobile phone, and improves the user experience. Degree, with high commercial value.

Claims (10)

  1. 一种背景的显示方法,所述方法包括:A display method of a background, the method comprising:
    将终端上层应用的图像数据传送至指定内存,其中,所述指定内存与所述终端默认的显存缓冲区的位置不同;And transmitting the image data of the upper layer application of the terminal to the specified memory, wherein the specified memory is different from the location of the default memory buffer of the terminal;
    将所述图像数据与用户选择的背景图像在所述指定内存中进行混合处理,得到混合后的图像,该混合后的图像为以所述背景图像为背景的图像;And mixing the image data with the background image selected by the user in the designated memory to obtain a mixed image, wherein the mixed image is an image with the background image as a background;
    将所述混合后的图像送回至所述显存缓冲区进行显示。The mixed image is sent back to the memory buffer for display.
  2. 根据权利要求1所述的方法,其中,将终端上层应用的图像数据传至指定内存,包括:The method according to claim 1, wherein the image data of the upper layer application of the terminal is transmitted to the designated memory, including:
    将帧缓冲设备对应所述显存缓冲区的第一映射关系修改为所述帧缓冲设备对应所述指定内存的第二映射关系;And modifying, by the frame buffer device, the first mapping relationship corresponding to the memory buffer to a second mapping relationship of the frame buffer device corresponding to the specified memory;
    根据所述第二映射关系将所述图像数据传送至所述指定内存。And transmitting the image data to the designated memory according to the second mapping relationship.
  3. 根据权利要求2所述的方法,其中,将所述混合后的图像送回至所述显存缓冲区进行显示,包括:The method of claim 2, wherein the displaying the mixed image back to the memory buffer for display comprises:
    将所述混合后的图像以所述显存缓冲区对应的图像数据格式的形式写入到所述显存缓冲区中;Writing the mixed image into the memory buffer in the form of an image data format corresponding to the memory buffer;
    从所述显存缓冲区中读取图像数据并显示所述图像数据。Image data is read from the memory buffer and the image data is displayed.
  4. 根据权利要求3所述的方法,其中,从所述显存缓冲区中读取图像数据,包括:The method of claim 3, wherein reading image data from the memory buffer comprises:
    按照预定周期读取写入到所述显存缓冲区的图像数据。The image data written to the memory buffer is read in accordance with a predetermined period.
  5. 根据权利要求1所述的方法,其中,将所述图像数据与用户选择的背景图像在所述指定内存中进行混合处理,包括:The method of claim 1, wherein mixing the image data with a background image selected by a user in the specified memory comprises:
    将所述图像数据配置成第一像素矩阵形式;Arranging the image data into a first pixel matrix form;
    将所述用户指定的背景图像配置成第二像素矩阵形式;Configuring the user-specified background image into a second pixel matrix form;
    将所述第一像素矩阵形式和所述第二像素矩阵形式进行混合算法处理。The first pixel matrix form and the second pixel matrix form are subjected to a hybrid algorithm process.
  6. 根据权利要求5所述的方法,其中,将所述第一像素矩阵形式和所述第二像素矩阵形式进行混合算法处理,包括: The method according to claim 5, wherein the first pixel matrix form and the second pixel matrix form are subjected to a hybrid algorithm process, including:
    读取所述第一像素矩阵形式的第一颜色和所述第二像素矩阵形式的第二颜色;Reading a first color in the form of the first pixel matrix and a second color in the form of the second pixel matrix;
    将所述第一颜色和所述第二颜色分别分解为三元色RGB;Decomposing the first color and the second color into a ternary color RGB;
    将所述第一颜色的R,G,B的每个元色分别乘以X得到第一结果,所述第二颜色的R,G,B的每个元色分别乘以(1-X)得到第二结果,其中,X表示不透明度;Multiplying each of the color colors of R, G, and B of the first color by X to obtain a first result, and each of the color colors of R, G, and B of the second color is multiplied by (1-X) Obtaining a second result, wherein X represents opacity;
    将所述第一结果的RGB值和所述第二结果的RGB值,按照RGB中每种颜色分别对应相加得到第三结果,将第三结果的RGB三色还原即为进行混合算法处理后的值。And RGB values of the first result and RGB values of the second result are respectively added according to each color in RGB to obtain a third result, and the RGB three colors of the third result are restored to be processed by the hybrid algorithm. Value.
  7. 根据权利要求1-6任一项所述的方法,其中,还包括:The method of any of claims 1-6, further comprising:
    通过交互界面接收用户的操作指令,根据所述操作指令对以下至少之一进行设置:Receiving an operation instruction of the user through the interaction interface, and setting at least one of the following according to the operation instruction:
    在所述终端全屏时,对于指定应用程序,将混合后的背景图像进行屏蔽显示;针对混合后的背景图像配置开关键;对混合后的背景图像的透明度参数进行设置。When the terminal is full screen, the mixed background image is shielded and displayed for the specified application; the open key is configured for the mixed background image; and the transparency parameter of the mixed background image is set.
  8. 根据权利要求1-6任一项所述的方法,其中,所述指定内存与所述显存缓冲区的大小是相同的。The method of any of claims 1-6, wherein the specified memory is the same size as the memory buffer.
  9. 一种背景的显示装置,包括:A background display device comprising:
    传送模块,设置为将终端上层应用的图像数据传送至指定内存,其中,所述指定内存与所述终端默认的显存缓冲区的位置不同;a transmitting module, configured to transfer image data of the upper layer application of the terminal to the specified memory, wherein the specified memory is different from the location of the default memory buffer of the terminal;
    混合处理模块,设置为将所述图像数据与用户选择的背景图像在所述指定内存中进行混合处理,得到混合后的图像,该混合后的图像为以所述背景图像为背景的图像;a mixing processing module, configured to mix the image data with a background image selected by a user in the specified memory to obtain a mixed image, wherein the mixed image is an image with the background image as a background;
    显示模块,设置为将所述混合后的图像送回至所述显存缓冲区进行显示。And a display module configured to send the mixed image back to the memory buffer for display.
  10. 根据权利要求9所述的装置,其中,所述传送模块,包括:The apparatus of claim 9, wherein the transmitting module comprises:
    修改单元,设置为将帧缓冲设备对应所述显存缓冲区的第一映射关系修改为所述帧缓冲设备对应所述指定内存的第二映射关系;a modifying unit, configured to modify a first mapping relationship of the frame buffer device corresponding to the memory buffer to a second mapping relationship of the frame buffer device corresponding to the specified memory;
    传送单元,设置为根据所述第二映射关系将所述图像数据传送至所述指定内存。 And a transmitting unit configured to transfer the image data to the designated memory according to the second mapping relationship.
PCT/CN2014/087846 2014-08-25 2014-09-29 Method and device for displaying background WO2015117345A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410422884.X 2014-08-25
CN201410422884.XA CN105472106A (en) 2014-08-25 2014-08-25 Background display method and device

Publications (1)

Publication Number Publication Date
WO2015117345A1 true WO2015117345A1 (en) 2015-08-13

Family

ID=53777172

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/087846 WO2015117345A1 (en) 2014-08-25 2014-09-29 Method and device for displaying background

Country Status (2)

Country Link
CN (1) CN105472106A (en)
WO (1) WO2015117345A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112543363A (en) * 2020-12-04 2021-03-23 海看网络科技(山东)股份有限公司 Method for configuring background in IPTV diversification

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116245706B (en) * 2023-05-09 2023-07-14 深圳市乐升半导体有限公司 Pixel mixing method and device for base map and png map

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1523567A (en) * 2003-01-31 2004-08-25 ��ʽ���������Ƽ� Display drive control device and electric device including display device
US20070040849A1 (en) * 2005-08-19 2007-02-22 Eric Jeffrey Making an overlay image edge artifact less conspicuous
CN101388107A (en) * 2008-08-01 2009-03-18 四川长虹电器股份有限公司 Method for reducing flickering display for embedded browsers
CN101964907A (en) * 2009-07-22 2011-02-02 晨星软件研发(深圳)有限公司 Block removing device and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100618816B1 (en) * 2003-12-10 2006-08-31 삼성전자주식회사 Display device of mobile phone having sub memory
KR100754828B1 (en) * 2005-08-31 2007-09-04 에스케이 텔레콤주식회사 Method and Mobile Telecommunication Terminal for Customizing User Interface
CN101471991A (en) * 2007-12-28 2009-07-01 希姆通信息技术(上海)有限公司 Method for customizing mobile terminal user interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1523567A (en) * 2003-01-31 2004-08-25 ��ʽ���������Ƽ� Display drive control device and electric device including display device
US20070040849A1 (en) * 2005-08-19 2007-02-22 Eric Jeffrey Making an overlay image edge artifact less conspicuous
CN101388107A (en) * 2008-08-01 2009-03-18 四川长虹电器股份有限公司 Method for reducing flickering display for embedded browsers
CN101964907A (en) * 2009-07-22 2011-02-02 晨星软件研发(深圳)有限公司 Block removing device and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112543363A (en) * 2020-12-04 2021-03-23 海看网络科技(山东)股份有限公司 Method for configuring background in IPTV diversification
CN112543363B (en) * 2020-12-04 2022-11-22 海看网络科技(山东)股份有限公司 Method for configuring background in IPTV diversification

Also Published As

Publication number Publication date
CN105472106A (en) 2016-04-06

Similar Documents

Publication Publication Date Title
US20210124548A1 (en) Electronic device and method for displaying and transmitting images thereof
WO2021047429A1 (en) Image rendering method and device, apparatus, and storage medium
KR102353766B1 (en) Apparatus and method for controlling display
CN106873863B (en) Method and device for setting interface switching animation
CN101523481B (en) Image processing apparatus for superimposing windows displaying video data having different frame rates
JP7166171B2 (en) INTERFACE IMAGE DISPLAY METHOD, APPARATUS AND PROGRAM
US9665247B2 (en) Method and device for applying a new skin to a display environment
CN103744729B (en) The computer system of system capable of switching operation
CN104239071A (en) Cross-platform mobile application development framework system based on general-purpose module and transfer service
CN107770618A (en) A kind of image processing method, device and storage medium
WO2017097140A1 (en) Method for setting attribute value of interface element, and apparatus and smart device therefor
WO2019047465A1 (en) Navigation bar display method and apparatus, and computer readable storage medium
CN109614173B (en) Skin changing method and device
CN101764971A (en) On-screen display device and on-screen display method thereof
WO2023030115A1 (en) Interface display method and apparatus
CN110019464A (en) Page processing method and device
CN102298491A (en) Embedded graphical interface system and image generation method thereof
CN106502510A (en) The adaptation processing method at icon and interface, device
JP6564859B2 (en) Color gamut mapping method and apparatus
WO2015117345A1 (en) Method and device for displaying background
CN109597595B (en) Control method and device of liquid crystal display screen, computer equipment and storage medium
CN110764862A (en) Desktop wallpaper display method and device, terminal equipment and storage medium
CN204706020U (en) A kind of electronic white board projection interactive device
CN108877697B (en) Method and device for displaying image
CN105704409B (en) A kind of display methods, device and smart television

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: 14882047

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: 14882047

Country of ref document: EP

Kind code of ref document: A1