[go: up one dir, main page]

CN110888521B - A mobile terminal and method for running application program thereof - Google Patents

A mobile terminal and method for running application program thereof Download PDF

Info

Publication number
CN110888521B
CN110888521B CN201910980022.1A CN201910980022A CN110888521B CN 110888521 B CN110888521 B CN 110888521B CN 201910980022 A CN201910980022 A CN 201910980022A CN 110888521 B CN110888521 B CN 110888521B
Authority
CN
China
Prior art keywords
resolution
image
displayed
application program
display
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
CN201910980022.1A
Other languages
Chinese (zh)
Other versions
CN110888521A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910980022.1A priority Critical patent/CN110888521B/en
Publication of CN110888521A publication Critical patent/CN110888521A/en
Application granted granted Critical
Publication of CN110888521B publication Critical patent/CN110888521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

本发明公开了一种移动终端及其运行应用程序的方法。移动终端包括应用管理模块、待显示图像生成模块和分辨率调整模块。其中应用管理模块用于根据用户指令为应用程序设置对应的显示分辨率;待显示图像生成模块用于在应用程序启动后,运行应用程序以生成待显示图像,待显示图像的图像分辨率为显示分辨率;分辨率调整模块用于对待显示图像进行分辨率的调整,使得经过调整后的待显示图像的图像分辨率与显示屏幕的分辨率一致。通过上述方式,本发明使得应用程序可以在对应的分辨率的操作系统下比较流畅地运行,防止了移动终端在不合适的分辨率下运行应用程序导致性能不足,从而缩短移动终端的寿命,并保证待显示图像可以在显示屏幕正常显示。

The invention discloses a mobile terminal and a method for running an application program. The mobile terminal includes an application management module, a display image generation module and a resolution adjustment module. The application management module is used to set the corresponding display resolution for the application program according to user instructions; the image generation module to be displayed is used to run the application program to generate the image to be displayed after the application program is started, and the image resolution of the image to be displayed is Resolution: the resolution adjustment module is used to adjust the resolution of the image to be displayed, so that the adjusted image resolution of the image to be displayed is consistent with the resolution of the display screen. Through the above method, the present invention enables the application program to run relatively smoothly under the corresponding resolution operating system, preventing the mobile terminal from running the application program at an inappropriate resolution to cause insufficient performance, thereby shortening the life of the mobile terminal, and Ensure that the image to be displayed can be displayed normally on the display screen.

Description

一种移动终端及其运行应用程序的方法A mobile terminal and method for running application program thereof

技术领域technical field

本发明涉及显示技术领域,特别是涉及一种移动终端及其运行应用程序的方法。The invention relates to the field of display technology, in particular to a mobile terminal and a method for running application programs thereof.

背景技术Background technique

现有的移动终端,其都是按照显示屏幕的分辨率来运行各种应用程序的。由于高分辨率下运行应用程序对于移动终端的性能和功耗开销比在低分辨率下运行时大很多,例如,1920x1280分辨率的功耗开销是1280x720分辨率的2.5倍。而且越是高端的移动终端其分辨率越高,将要出现高达4K分辨率的移动终端,这进一步要求更高的移动终端性能和更大的功耗开销。对于同一个应用程序,在分辨率较低的移动终端下运行可能比在分辨率较高的移动终端下运行还流畅。Existing mobile terminals run various application programs according to the resolution of the display screen. Since the performance and power consumption of the mobile terminal when running an application program at a high resolution is much greater than that at a low resolution, for example, the power consumption of a 1920x1280 resolution is 2.5 times that of a 1280x720 resolution. Moreover, the higher-end mobile terminals have higher resolutions, and there will be mobile terminals with a resolution up to 4K, which further requires higher mobile terminal performance and greater power consumption. For the same application, running on a mobile terminal with a lower resolution may be smoother than running on a mobile terminal with a higher resolution.

发明内容Contents of the invention

有鉴于此,本发明实施例提供了一种移动终端及其运行应用程序的方法,能够根据不同的应用程序设置不同的分辨率,使得应用程序可以在匹配的分辨率下比较流畅地运行。另一方面,如设置的分辨率较低,还能节省移动终端的功耗,延长移动终端的使用时间。In view of this, the embodiments of the present invention provide a mobile terminal and a method for running application programs thereof, which can set different resolutions according to different application programs, so that the application programs can run relatively smoothly at a matching resolution. On the other hand, if the set resolution is low, the power consumption of the mobile terminal can be saved, and the use time of the mobile terminal can be prolonged.

第一方面提供一种移动终端,包括:应用管理模块,用于根据用户指令为应用程序设置对应的显示分辨率;待显示图像生成模块,用于在应用程序启动后,运行应用程序以生成待显示图像,待显示图像的图像分辨率为显示分辨率;分辨率调整模块,用于对待显示图像进行分辨率的调整,使得经过调整后的待显示图像的图像分辨率与显示屏幕的分辨率一致。The first aspect provides a mobile terminal, including: an application management module, configured to set a corresponding display resolution for the application program according to user instructions; an image generation module to be displayed, used to run the application program to generate the image to be displayed Displaying an image, the image resolution of the image to be displayed is the display resolution; the resolution adjustment module is used to adjust the resolution of the image to be displayed, so that the adjusted image resolution of the image to be displayed is consistent with the resolution of the display screen .

在第一方面的第一种可能的实现方式中,移动终端还包括存储模块,存储模块用于存储应用程序对应的显示分辨率;待显示图像生成模块具体用于在应用程序启动后,从存储模块中获取应用程序对应的显示分辨率,并根据显示分辨率运行应用程序以生成待显示图像。In the first possible implementation manner of the first aspect, the mobile terminal further includes a storage module, which is used to store the display resolution corresponding to the application program; The display resolution corresponding to the application is obtained in the module, and the application is run according to the display resolution to generate the image to be displayed.

在第一方面的第二种可能的实现方式中或结合第一方面的第一种可能的实现方式,在第二种可能的实现方式中,移动终端还包括显示缓存,用于缓存待显示图像;分辨率调整模块具体用于从显示缓存中获取待显示图像并对该待显示图像进行分辨率的调整。In the second possible implementation manner of the first aspect or in combination with the first possible implementation manner of the first aspect, in the second possible implementation manner, the mobile terminal further includes a display cache, configured to cache images to be displayed ; The resolution adjustment module is specifically used to acquire the image to be displayed from the display buffer and adjust the resolution of the image to be displayed.

结合第一方面的第二种可能的实现方式,在第三种可能的实现方式中,移动终端还包括显示服务模块,用于设置显示缓存的缓存地址,缓存地址的大小与待显示图像的大小一致,并将待显示图像生成模块生成的待显示图像写入缓存地址中。In combination with the second possible implementation of the first aspect, in the third possible implementation, the mobile terminal further includes a display service module, configured to set the cache address of the display cache, the size of the cache address and the size of the image to be displayed are consistent, and write the image to be displayed generated by the image generation module to the cache address.

结合第一方面的第三种可能的实现方式,在第四种可能的实现方式中,应用管理模块通过API接口控制显示服务模块去设置显示缓存的缓存地址。In combination with the third possible implementation of the first aspect, in a fourth possible implementation, the application management module controls the display service module to set the cache address of the display cache through the API interface.

第二方面提供一种运行应用程序的方法,包括:根据用户指令为应用程序设置对应的显示分辨率;在应用程序启动后,运行应用程序以生成待显示图像,待显示图像的图像分辨率为显示分辨率;对待显示图像进行分辨率的调整,使得经过调整后的待显示图像的图像分辨率与显示屏幕的分辨率一致。The second aspect provides a method for running an application, including: setting a corresponding display resolution for the application according to user instructions; after the application is started, running the application to generate an image to be displayed, the image resolution of the image to be displayed is Display resolution: adjust the resolution of the image to be displayed, so that the adjusted image resolution of the image to be displayed is consistent with the resolution of the display screen.

在第二方面的第一种可能的实现方式,该运行应用程序的方法还包括:存储应用程序对应的显示分辨率;In a first possible implementation manner of the second aspect, the method for running an application program further includes: storing a display resolution corresponding to the application program;

在应用程序启动后,运行应用程序以生成待显示图像包括:在应用程序启动后,获取存储的应用程序对应的显示分辨率,并根据显示分辨率运行应用程序以生成待显示图像。After the application program is started, running the application program to generate the image to be displayed includes: after the application program is started, obtaining the stored display resolution corresponding to the application program, and running the application program according to the display resolution to generate the image to be displayed.

在第二方面的第二种可能的实现方式中,或结合第二方面的第一种可能的实现方式,在第二种可能的实现方式中,该运行应用程序的方法还包括:通过显示缓存来缓存待显示图像;对待显示图像进行分辨率的调整包括:从该显示缓存中获取待显示图像并对该待显示图像进行分辨率的调整。In the second possible implementation of the second aspect, or in combination with the first possible implementation of the second aspect, in the second possible implementation, the method for running an application further includes: to buffer the image to be displayed; adjusting the resolution of the image to be displayed includes: obtaining the image to be displayed from the display buffer and adjusting the resolution of the image to be displayed.

结合第二方面的第二种可能的实现方式,在第三种可能的实现方式中,该运行应用程序的方法还包括:设置该显示缓存的缓存地址,缓存地址的大小与待显示图像的大小一致;将生成的待显示图像写入缓存地址中。With reference to the second possible implementation of the second aspect, in the third possible implementation, the method for running the application program further includes: setting the cache address of the display cache, the size of the cache address and the size of the image to be displayed Consistent; write the generated image to be displayed into the cache address.

结合第二方面的第三种可能的实现方式,在第四种可能的实现方式中,该运行应用程序的方法还包括:通过API接口设置显示缓存的缓存地址。With reference to the third possible implementation manner of the second aspect, in a fourth possible implementation manner, the method for running an application program further includes: setting a cache address of the display cache through an API interface.

本发明的有益效果是:区别于现有技术的情况,本发明的移动终端包括应用管理模块、待显示图像生成模块和分辨率调整模块。其中,应用管理模块用于根据用户指令为应用程序设置对应的显示分辨率,待显示图像生成模块用于在应用程序启动后,运行应用程序以生成待显示图像,待显示图像的图像分辨率为显示分辨率,分辨率调整模块用于对待显示图像进行分辨率的调整,使得经过调整后的待显示图像的图像分辨率与显示屏幕的分辨率一致。通过上述方式,本发明可以针对不同的应用程序设置不同的显示分辨率,使得应用程序可以在匹配好的显示分辨率下比较流畅地运行,防止了移动终端在不合适的显示分辨率下运行应用程序所导致的性能不足,从而能够延长移动终端的使用寿命。另一方面,如调节的分辨率较低,还能节省功耗,延长移动终端的使用时间。The beneficial effects of the present invention are: different from the prior art, the mobile terminal of the present invention includes an application management module, an image to be displayed generation module and a resolution adjustment module. Among them, the application management module is used to set the corresponding display resolution for the application program according to user instructions, and the image generation module is used to run the application program to generate the image to be displayed after the application program is started. The image resolution of the image to be displayed is Display resolution, the resolution adjustment module is used to adjust the resolution of the image to be displayed, so that the adjusted image resolution of the image to be displayed is consistent with the resolution of the display screen. Through the above method, the present invention can set different display resolutions for different application programs, so that the application programs can run relatively smoothly at the matched display resolution, preventing mobile terminals from running applications at inappropriate display resolutions. Insufficient performance caused by the program can prolong the service life of the mobile terminal. On the other hand, if the adjusted resolution is low, it can also save power consumption and prolong the use time of the mobile terminal.

附图说明Description of drawings

图1是本发明实施例提供的一种移动终端的一逻辑结构示意图;FIG. 1 is a schematic diagram of a logical structure of a mobile terminal provided by an embodiment of the present invention;

图2是本发明实施例提供的一种运行应用程序的方法的流程图;FIG. 2 is a flowchart of a method for running an application program provided by an embodiment of the present invention;

图3本发明实施例提供的一种移动终端的另一逻辑结构示意图。FIG. 3 is a schematic diagram of another logical structure of a mobile terminal provided by an embodiment of the present invention.

具体实施方式Detailed ways

请参考图1,图1是本发明实施例提供的一种移动终端的一逻辑结构示意图。如图1所示,本发明的移动终端10包括应用管理模块11、待显示图像生成模块12、分辨率调整模块13和显示屏幕100。其中,本发明的移动终端10包括手机、平板电脑、笔记本、以及车载电脑等。Please refer to FIG. 1 , which is a schematic diagram of a logical structure of a mobile terminal provided by an embodiment of the present invention. As shown in FIG. 1 , the mobile terminal 10 of the present invention includes an application management module 11 , an image to be displayed generation module 12 , a resolution adjustment module 13 and a display screen 100 . Wherein, the mobile terminal 10 of the present invention includes a mobile phone, a tablet computer, a notebook, and a vehicle-mounted computer.

其中,应用管理模块11用于根据用户指令为应用程序设置对应的显示分辨率。其中,针对不同的应用程序设置不同的显示分辨率。应用管理模块11可为一个上层应用管理器,例如手机管家等。并且应用管理模块11设置一个应用设置选项,提供给用户设置应用程序的显示分辨率。Wherein, the application management module 11 is used for setting the corresponding display resolution for the application program according to the user instruction. Wherein, different display resolutions are set for different application programs. The application management module 11 can be an upper layer application manager, such as a mobile phone housekeeper. And the application management module 11 sets an application setting option to provide the user with setting the display resolution of the application.

待显示图像生成模块12用于在应用程序启动后,运行应用程序以生成待显示图像,待显示图像的图像分辨率为显示分辨率。The image to be displayed generating module 12 is used for running the application to generate an image to be displayed after the application is started, and the image resolution of the image to be displayed is the display resolution.

图像分辨率是指图像中存储的数据量,通常是以单位英寸中所包含的像素点数来衡量。通常情况下,图像分辨率越高,所包含的像素点就越多,图像就越清晰。同时,该些像素点数据也会增加文件占用的存储空间。Image resolution refers to the amount of data stored in an image, usually measured in pixels per inch. Generally, the higher the image resolution, the more pixels it contains and the clearer the image. At the same time, these pixel data will also increase the storage space occupied by the file.

由此,可以根据最终需要得到的待显示图像的清晰度来设置应用程序对应的显示分辨率。In this way, the display resolution corresponding to the application program can be set according to the final resolution of the image to be displayed that needs to be obtained.

分辨率调整模块13用于对待显示图像进行分辨率的调整,使得经过调整后的待显示图像的图像分辨率与显示屏幕100的分辨率一致。The resolution adjustment module 13 is configured to adjust the resolution of the image to be displayed, so that the adjusted image resolution of the image to be displayed is consistent with the resolution of the display screen 100 .

因此,本发明实施例针对不同的应用程序设置不同的显示分辨率,使得应用程序可以在对应的显示分辨率下比较流畅地运行,防止了移动终端10在不合适的显示分辨率下运行应用程序导致性能不足,从而缩短移动终端10的寿命。此外,如设置的显示分辨率较低,还能节省功耗,延长移动终端10的使用时间。另一方面,本发明还可以在显示屏幕100的分辨率下显示,从而既保证了移动终端10的性能,又保证了显示的清晰度,获得性能和清晰度的最佳组合。Therefore, the embodiment of the present invention sets different display resolutions for different application programs, so that the application programs can run relatively smoothly at the corresponding display resolutions, preventing the mobile terminal 10 from running the application programs at inappropriate display resolutions. Insufficient performance results, thereby shortening the life of the mobile terminal 10 . In addition, if the display resolution is set to be low, it can also save power consumption and prolong the use time of the mobile terminal 10 . On the other hand, the present invention can also be displayed at the resolution of the display screen 100, thereby ensuring not only the performance of the mobile terminal 10, but also the clarity of the display, and obtaining the best combination of performance and clarity.

由于显示屏幕100的分辨率是指显示屏幕100所能显示的像素点有多少。因此分辨率调整模块13将待显示图像的图像分辨率调整为与显示屏幕100的分辨率一致包括将待显示图像的像素点的数量调整为显示屏幕100所能显示的像素点的数量一致。具体的,首先将待显示图像的图像分辨率和显示屏幕100的分辨率进行比较,若待显示图像的图像分辨率大于显示屏幕100的分辨率,则对待显示图像进行分辨率的缩小;若待显示图像的图像分辨率小于显示屏幕100的分辨率,则对待显示图像进行分辨率的放大。由此使得经过分辨率调整后的待显示图像可以在显示屏幕100上正常显示。The resolution of the display screen 100 refers to how many pixels the display screen 100 can display. Therefore, adjusting the image resolution of the image to be displayed by the resolution adjustment module 13 to be consistent with the resolution of the display screen 100 includes adjusting the number of pixels of the image to be displayed to be consistent with the number of pixels that the display screen 100 can display. Specifically, at first the image resolution of the image to be displayed is compared with the resolution of the display screen 100, if the image resolution of the image to be displayed is greater than the resolution of the display screen 100, the resolution of the image to be displayed is reduced; If the image resolution of the displayed image is smaller than the resolution of the display screen 100, the resolution of the image to be displayed is enlarged. As a result, the image to be displayed after resolution adjustment can be displayed normally on the display screen 100 .

具体调整待显示图像的图像分辨率和显示屏幕100的分辨率一致的方法包括多种。例如,在待显示图像的图像分辨率为:只包含有800×600的像素点,而显示屏幕100的分辨率为:能显示1024×768个像素点时,通常有以下两种显示方法:There are multiple methods for specifically adjusting the image resolution of the image to be displayed to be consistent with the resolution of the display screen 100 . For example, when the image resolution of the image to be displayed is: only 800×600 pixels are included, and the resolution of the display screen 100 is: it can display 1024×768 pixels, there are usually the following two display methods:

第一种为居中显示方法:显示屏幕100居中的800×600个像素被呈现出来,显示待显示图像,其它没有被呈现出来的像素则维持黑暗状态。The first is a centered display method: the 800×600 pixels in the center of the display screen 100 are displayed to display the image to be displayed, and the other pixels that are not displayed remain in a dark state.

第二种为扩展显示方法:待显示图像的各像素点通过差动算法扩充到相邻像素点显示,从而使显示屏幕100的整个画面被充满。The second is the extended display method: each pixel of the image to be displayed is expanded to adjacent pixels for display through a differential algorithm, so that the entire screen of the display screen 100 is filled.

进一步的,移动终端10还包括存储模块14,用于存储应用程序对应的显示分辨率,在用户启动应用程序后,由待显示图像生成模块12从存储模块14中获取该应用程序的对应的显示分辨率,并根据该显示分辨率运行该应用程序来生成对应的待显示图像。其中,存储模块14优选为flash(闪存)存储器。Further, the mobile terminal 10 also includes a storage module 14, which is used to store the display resolution corresponding to the application program. After the user starts the application program, the image generation module 12 to be displayed acquires the corresponding display resolution of the application program from the storage module 14. resolution, and run the application according to the display resolution to generate the corresponding image to be displayed. Wherein, the storage module 14 is preferably a flash (flash memory) memory.

其中,若显示图像生成模块12查询不到对应的显示分辨率,则会返回一提示信息,用于提示用户设置该应用程序对应的显示分辨率。或者请用户确认是否需要进行显示分辨率的设置,若在接收到用户选择不需要进行显示分辨率的设置时,则会根据显示屏幕100的分辨率来运行该应用程序。应理解,若用户在接收到提示信息后对应用程序进行显示分辨率的设置,则其操作如前文所述,在此不再赘述。Wherein, if the display image generation module 12 cannot find the corresponding display resolution, it will return a prompt message for prompting the user to set the display resolution corresponding to the application. Alternatively, the user is asked to confirm whether it is necessary to set the display resolution. If it is received that the user chooses not to set the display resolution, the application program will be run according to the resolution of the display screen 100 . It should be understood that if the user sets the display resolution of the application program after receiving the prompt information, the operation is as described above and will not be repeated here.

进一步的,移动终端10还包括显示缓存15,显示缓存15用于缓存待显示图像生成模块12生成的待显示图像。分辨率调整模块13进一步从显示缓存15中获取待显示图像并进行分辨率的调整。Further, the mobile terminal 10 also includes a display buffer 15, which is used for buffering the image to be displayed generated by the image generation module 12 to be displayed. The resolution adjustment module 13 further obtains the image to be displayed from the display buffer 15 and adjusts the resolution.

其中,显示缓存15的用于缓存待显示图像的缓存地址的大小是由显示分辨率决定的。本发明实施例的移动终端10进一步包括显示服务模块16,用于设置显示缓存15的缓存地址,缓存地址的大小与待显示图像的大小一致。显示服务模块16并将待显示图像生成模块12生成的待显示图像写入到设置好的缓存地址中。Wherein, the size of the cache address of the display cache 15 for caching the image to be displayed is determined by the display resolution. The mobile terminal 10 of the embodiment of the present invention further includes a display service module 16 configured to set a cache address of the display cache 15, and the size of the cache address is consistent with the size of the image to be displayed. The display service module 16 writes the image to be displayed generated by the image generation module 12 into the set cache address.

具体设置缓存地址的操作为:应用管理模块11首先从存储模块14中获取存储的应用程序对应的显示分辨率,然后通过API(Application Programming Interface,应用程序编程接口)接口控制显示服务模块16去设置显示缓存15的缓存地址。The operation of specifically setting the cache address is: the application management module 11 first obtains the display resolution corresponding to the stored application program from the storage module 14, and then controls the display service module 16 to set the resolution through the API (Application Programming Interface, Application Programming Interface) interface. Display the cache address of cache 15.

本发明实施例还提供了一种运行应用程序的方法,该方法应用在前文所述的移动终端10中。具体请参阅图2。图2是本发明实施例提供的一种运行应用程序的方法的流程图。如图2所示,移动终端10运行应用程序的方法包括以下步骤:The embodiment of the present invention also provides a method for running an application program, which is applied in the mobile terminal 10 mentioned above. Please refer to Figure 2 for details. Fig. 2 is a flowchart of a method for running an application program provided by an embodiment of the present invention. As shown in Figure 2, the method for running the application program on the mobile terminal 10 includes the following steps:

步骤S1:根据用户指令为应用程序设置对应的显示分辨率。Step S1: Set the corresponding display resolution for the application program according to the user instruction.

具体的,针对不同的应用程序设置不同的显示分辨率。具体可以为向用户提供一应用设置选项,以提供给用户设置应用程序的显示分辨率。Specifically, different display resolutions are set for different application programs. Specifically, an application setting option may be provided to the user, so as to provide the user with setting the display resolution of the application program.

步骤S2:在应用程序启动后,运行应用程序以生成待显示图像,待显示图像的图像分辨率为显示分辨率。Step S2: After the application program is started, run the application program to generate the image to be displayed, and the image resolution of the image to be displayed is the display resolution.

具体的,首先存储应用程序对应的显示分辨率。然后在用户启动应用程序后,获取存储的应用程序对应的显示分辨率,然后根据显示分辨率运行应用程序来生成待显示图像。Specifically, firstly, the display resolution corresponding to the application is stored. Then, after the user starts the application program, the stored display resolution corresponding to the application program is acquired, and then the application program is run according to the display resolution to generate an image to be displayed.

图像分辨率是指图像中存储的数据量,通常是以单位英寸中所包含的像素点数来衡量。通常情况下,图像分辨率越高,所包含的像素点就越多,图像就越清晰。同时,该些像素点数据也会增加文件占用的存储空间。由此,步骤S1可以根据最终需要得到的待显示图像的清晰度来设置应用程序对应的显示分辨率。Image resolution refers to the amount of data stored in an image, usually measured in pixels per inch. Generally, the higher the image resolution, the more pixels it contains and the clearer the image. At the same time, these pixel data will also increase the storage space occupied by the file. Thus, in step S1, the display resolution corresponding to the application program can be set according to the final resolution of the image to be displayed that needs to be obtained.

步骤S3:对待显示图像进行分辨率的调整,使得经过调整后的待显示图像的图像分辨率与显示屏幕的分辨率一致。具体调整过程如前文所述,在此不再赘述。Step S3: adjusting the resolution of the image to be displayed, so that the adjusted image resolution of the image to be displayed is consistent with the resolution of the display screen. The specific adjustment process is as described above, and will not be repeated here.

在步骤S3之前还通过显示缓存来缓存待显示图像。具体为:设置显示缓存的缓存地址,地址的大小与待显示图像的大小一致,然后将步骤S2生成的待显示图像写入显示缓存的缓存地址中。其中,具体设置显示缓存的缓存地址的方法为:通过API接口设置显示缓存的缓存地址。Before step S3, the images to be displayed are also buffered through display buffering. Specifically: setting the cache address of the display cache, the size of the address is consistent with the size of the image to be displayed, and then writing the image to be displayed generated in step S2 into the cache address of the display cache. Wherein, a specific method for setting the cache address of the display cache is: setting the cache address of the display cache through an API interface.

承前所述,本发明可以使得应用程序一方面可以在对应的显示分辨率运行,另一方面又可以在显示屏幕的分辨率下显示,从而既保证了移动终端的性能,又保证了显示的清晰度,获得性能和清晰度的最佳组合。As mentioned above, the present invention can enable the application program to run at the corresponding display resolution on the one hand, and display at the resolution of the display screen on the other hand, thereby ensuring the performance of the mobile terminal and ensuring the clarity of the display resolution for the best combination of performance and clarity.

请参阅图3,图3是本发明实施例提供的一种移动终端的另一逻辑结构示意图。图3的移动终端30包括处理器301和存储器302。处理器301和存储器302通过总线系统303相连。Please refer to FIG. 3 . FIG. 3 is a schematic diagram of another logical structure of a mobile terminal provided by an embodiment of the present invention. The mobile terminal 30 in FIG. 3 includes a processor 301 and a memory 302 . The processor 301 and the memory 302 are connected via a bus system 303 .

处理器301还可以称为中央处理单元(Central Processing Unit,CPU)。存储器302可以包括只读存储器和随机存取存储器,并向处理器301提供应用程序的指令和数据。存储器302的一部分还可以包括非易失性随机存取存储器(NVRAM)。具体的应用中,总线系统303除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统303。The processor 301 may also be called a central processing unit (Central Processing Unit, CPU). The memory 302 may include read-only memory and random-access memory, and provides instructions and data of application programs to the processor 301 . A portion of memory 302 may also include non-volatile random access memory (NVRAM). In a specific application, the bus system 303 may include not only a data bus, but also a power bus, a control bus, and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 303 in the figure.

上述本发明实施例揭示的方法可以应用于处理器301中,或者由处理器301实现。处理器301可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器301中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器301可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器302,处理器301读取存储器302中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 301 or implemented by the processor 301 . The processor 301 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 301 or instructions in the form of software. The above-mentioned processor 301 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 302, and the processor 301 reads the information in the memory 302, and completes the steps of the above method in combination with its hardware.

可选地,作为一个实施例,存储器302用于存储使得处理器301执行以下操作的指令:根据用户指令为应用程序设置对应的显示分辨率;在应用程序启动后,运行应用程序以生成待显示图像,待显示图像的图像分辨率为分辨率;对待显示图像进行分辨率的调整,使得经过调整后的待显示图像的图像分辨率与显示屏幕的分辨率一致。Optionally, as an embodiment, the memory 302 is used to store instructions that cause the processor 301 to perform the following operations: set a corresponding display resolution for the application program according to a user instruction; after the application program is started, run the application program to generate a display resolution to be displayed Image, the image resolution of the image to be displayed is the resolution; the resolution of the image to be displayed is adjusted so that the adjusted image resolution of the image to be displayed is consistent with the resolution of the display screen.

可选地,作为一个实施例,存储器302用于存储应用程序对应的显示分辨率,并进一步存储使得处理器301执行以下操作的指令:在应用程序启动后,获取存储的应用程序对应的显示分辨率,并根据分辨率运行应用程序来生成待显示图像。Optionally, as an embodiment, the memory 302 is used to store the display resolution corresponding to the application program, and further store instructions for the processor 301 to perform the following operations: after the application program is started, obtain the stored display resolution corresponding to the application program rate, and run the application according to the resolution to generate the image to be displayed.

可选地,作为一个实施例,存储器302用于存储使得处理器301执行以下操作的指令:通过显示缓存来缓存待显示图像;获取缓存的待显示图像并进行分辨率的调整。Optionally, as an embodiment, the memory 302 is configured to store instructions for the processor 301 to perform the following operations: cache images to be displayed through a display cache; acquire the cached images to be displayed and adjust the resolution.

可选地,作为一个实施例,存储器302用于存储使得处理器301执行以下操作的指令:设置显示缓存的缓存地址,缓存地址的大小与待显示图像的大小一致。将显示分辨率生成的待显示图像写入缓存地址中。Optionally, as an embodiment, the memory 302 is configured to store instructions for the processor 301 to perform the following operations: set a cache address of the display cache, and the size of the cache address is consistent with the size of the image to be displayed. Write the image to be displayed generated by the display resolution into the cache address.

可选地,作为一个实施例,存储器302用于存储使得处理器301执行以下操作的指令:通过API接口设置显示缓存的缓存地址。Optionally, as an embodiment, the memory 302 is configured to store instructions for enabling the processor 301 to perform the following operations: set a cache address of the display cache through an API interface.

在本申请所提供的实施方式中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施方式仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the implementation manners provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device implementations described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施方式方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施方式中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施方式所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) execute all or part of the steps of the methods described in various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .

以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above is only an embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technologies fields, are all included in the scope of patent protection of the present invention in the same way.

Claims (18)

1. A mobile terminal, comprising:
the application management module is used for setting the corresponding display resolution for the application program according to a user instruction, wherein the user instruction is set by a user through application setting options;
the image to be displayed generation module is used for running the application program according to the display resolution after the application program is started to generate an image to be displayed, wherein the image resolution of the image to be displayed is the display resolution;
and the resolution adjustment module is used for adjusting the resolution of the image to be displayed so that the adjusted image resolution of the image to be displayed is consistent with the resolution of the display screen.
2. The mobile terminal of claim 1, further comprising a storage module for storing a display resolution corresponding to the application program;
the image to be displayed generating module is specifically configured to obtain, from the storage module, a display resolution corresponding to the application program after the application program is started, and operate the application program according to the display resolution to generate the image to be displayed.
3. The mobile terminal according to claim 1 or 2, wherein the display image generation module is further configured to: when the corresponding display resolution is not queried, returning prompt information, wherein the prompt information is used for prompting a user to set the display resolution corresponding to the application program; or,
the display image generation module is further configured to: requesting the user to confirm whether the setting of the display resolution is required;
and if the user selects to not need to set the display resolution, running the application program according to the resolution of the display screen.
4. The mobile terminal according to claim 1, wherein the application management module is specifically configured to:
after receiving the display resolution of the application program which is required to be set by the user, setting the corresponding display resolution for the application program according to the user instruction.
5. The mobile terminal of claim 1, further comprising a display buffer for buffering the image to be displayed;
the resolution adjustment module is specifically configured to obtain the image to be displayed from the display buffer and adjust the resolution of the image to be displayed.
6. The mobile terminal according to claim 5, further comprising a display service module configured to set a buffer address of a display buffer, where the size of the buffer address is consistent with the size of the image to be displayed, and write the image to be displayed generated by the image to be displayed generating module into the buffer address.
7. A method of running an application, comprising:
setting corresponding display resolution for an application program according to a user instruction, wherein the user instruction is set by a user through application setting options;
after the application program is started, running the application program according to the display resolution to generate an image to be displayed, wherein the image resolution of the image to be displayed is the display resolution;
and adjusting the resolution of the image to be displayed so that the adjusted image resolution of the image to be displayed is consistent with the resolution of a display screen.
8. The method of claim 7, wherein the step of determining the position of the probe is performed,
after the application program is started, the running the application program to generate the image to be displayed comprises the following steps:
and after the application program is started, acquiring the stored display resolution corresponding to the application program, and running the application program according to the display resolution to generate the image to be displayed.
9. The method according to claim 7 or 8, characterized in that the method further comprises:
and returning prompt information when the corresponding display resolution is not queried, wherein the prompt information is used for prompting a user to set the display resolution corresponding to the application program.
10. The method of claim 7, wherein prior to said setting the corresponding display resolution for the application according to the user instruction, the method further comprises:
requesting the user to confirm whether the setting of the display resolution is required;
if the display resolution of the application program is required to be set by the user, setting the corresponding display resolution for the application program according to the user instruction;
and if the user selects to not need to set the display resolution, running the application program according to the resolution of the display screen.
11. The method of claim 7, wherein the method further comprises:
caching the image to be displayed through a display cache;
the adjusting the resolution of the image to be displayed comprises the following steps:
and acquiring the image to be displayed from the display cache and adjusting the resolution of the image to be displayed.
12. The method of claim 11, wherein the method further comprises:
setting a cache address of the display cache, wherein the size of the cache address is consistent with the size of the image to be displayed;
and writing the generated image to be displayed into the cache address.
13. A mobile terminal, comprising: a processor and a bus system;
the processor is configured to invoke program instructions stored in the memory to perform the steps of:
setting corresponding display resolution for an application program according to a user instruction, wherein the user instruction is set by a user through application setting options;
after the application program is started, running the application program according to the display resolution to generate an image to be displayed, wherein the image resolution of the image to be displayed is the display resolution;
and adjusting the resolution of the image to be displayed so that the adjusted image resolution of the image to be displayed is consistent with the resolution of a display screen.
14. The mobile terminal of claim 13, wherein the mobile terminal further comprises:
the memory is used for displaying the resolution and the program instructions corresponding to the application program;
the processor is specifically configured to:
and the display resolution corresponding to the application program is obtained from the memory after the application program is started, and the application program is operated according to the display resolution so as to generate the image to be displayed.
15. The mobile terminal of claim 13 or 14, wherein the processor is further configured to:
and returning prompt information when the corresponding display resolution is not queried, wherein the prompt information is used for prompting a user to set the display resolution corresponding to the application program.
16. The mobile terminal of claim 13, wherein the processor is further configured to:
requesting the user to confirm whether the setting of the display resolution is required;
if the display resolution of the application program is required to be set by the user, setting the corresponding display resolution for the application program according to the user instruction;
and if the user selects to not need to set the display resolution, running the application program according to the resolution of the display screen.
17. The mobile terminal of claim 13, wherein the processor is further configured to:
setting a cache address of a display cache, wherein the size of the cache address is consistent with the size of the image to be displayed, and writing the generated image to be displayed into the cache address.
18. The mobile terminal of claim 17, wherein the processor is further configured to:
and setting the cache address of the display cache through an application programming interface API.
CN201910980022.1A 2015-07-16 2015-07-16 A mobile terminal and method for running application program thereof Active CN110888521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910980022.1A CN110888521B (en) 2015-07-16 2015-07-16 A mobile terminal and method for running application program thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910980022.1A CN110888521B (en) 2015-07-16 2015-07-16 A mobile terminal and method for running application program thereof
CN201510420257.7A CN106339061B (en) 2015-07-16 2015-07-16 A mobile terminal and method for running application program thereof

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201510420257.7A Division CN106339061B (en) 2015-07-16 2015-07-16 A mobile terminal and method for running application program thereof

Publications (2)

Publication Number Publication Date
CN110888521A CN110888521A (en) 2020-03-17
CN110888521B true CN110888521B (en) 2023-07-18

Family

ID=57826646

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910980022.1A Active CN110888521B (en) 2015-07-16 2015-07-16 A mobile terminal and method for running application program thereof
CN201510420257.7A Active CN106339061B (en) 2015-07-16 2015-07-16 A mobile terminal and method for running application program thereof

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201510420257.7A Active CN106339061B (en) 2015-07-16 2015-07-16 A mobile terminal and method for running application program thereof

Country Status (1)

Country Link
CN (2) CN110888521B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106873755A (en) * 2017-02-13 2017-06-20 北京奇虎科技有限公司 Screen electricity-saving control method, device and mobile terminal
CN107067453A (en) * 2017-03-10 2017-08-18 珠海研果科技有限公司 A kind of MiniGUI based on linux system is drawn draws the method shown simultaneously with GPU
CN108496198B (en) * 2017-10-09 2021-08-20 华为技术有限公司 An image processing method and device
CN113808016B (en) * 2017-10-09 2025-10-24 华为技术有限公司 Image processing method and device
CN108037819A (en) * 2017-12-05 2018-05-15 广东美晨通讯有限公司 A kind of mobile terminal reduces method, mobile terminal and the storage device of power consumption
CN110166792B (en) * 2018-02-14 2021-10-22 斑马智行网络(香港)有限公司 Image display method, device, system and storage medium
CN110286864A (en) * 2019-05-15 2019-09-27 武汉卡比特信息有限公司 A kind of mobile phone and computer terminal, which adaptively interconnect, throws screen method
CN111158618A (en) * 2019-12-13 2020-05-15 东方明珠新媒体股份有限公司 Method and equipment for displaying pattern based on mobile terminal
CN111603767A (en) * 2020-04-14 2020-09-01 上海卓易科技股份有限公司 Method, terminal and storage medium for adjusting resolution
CN111901660B (en) * 2020-06-30 2024-08-20 视联动力信息技术股份有限公司 Image display method, terminal, electronic equipment and storage medium
CN114531565A (en) * 2020-11-04 2022-05-24 北京小米移动软件有限公司 Early warning method and device, electronic equipment and storage medium
CN112799557B (en) * 2021-01-28 2022-03-22 青岛海信移动通信技术股份有限公司 Ink screen display control method, terminal and computer readable storage medium
CN113505685B (en) * 2021-07-06 2024-09-06 浙江大华技术股份有限公司 Monitoring equipment installation positioning method and device, electronic equipment and storage medium
CN113946398B (en) * 2021-10-19 2024-10-15 北京小米移动软件有限公司 Display control method and device of terminal and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130081829A (en) * 2012-01-10 2013-07-18 에스케이플래닛 주식회사 Image providing system, service apparatus and image providing method thereof

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100835593B1 (en) * 2003-05-31 2008-06-09 삼성전자주식회사 Display device and display state control method
CN103295510B (en) * 2012-03-05 2016-08-17 联想(北京)有限公司 Method and electronic device for adjusting resolution
CN103258509B (en) * 2012-02-20 2016-07-06 联想(北京)有限公司 A kind of method regulating resolution and electronic equipment
CN102707946B (en) * 2012-04-17 2016-08-17 Tcl集团股份有限公司 A kind of processing method and processing device of Application Program Interface
CN103037257B (en) * 2012-12-31 2016-12-28 北京赛科世纪数码科技有限公司 A kind of startup method
CN104777980B (en) * 2015-04-22 2017-08-11 广东欧珀移动通信有限公司 A kind of electricity saving method and device of high-resolution terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130081829A (en) * 2012-01-10 2013-07-18 에스케이플래닛 주식회사 Image providing system, service apparatus and image providing method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于NIOSⅡ的高分辨率图像采集系统设计;梁海军;赵建;;中国测试技术(第05期);全文 *

Also Published As

Publication number Publication date
CN106339061B (en) 2019-11-05
CN106339061A (en) 2017-01-18
CN110888521A (en) 2020-03-17

Similar Documents

Publication Publication Date Title
CN110888521B (en) A mobile terminal and method for running application program thereof
US10970865B2 (en) Electronic device and method for applying image effect to images obtained using image sensor
CN108702480B (en) Electronic device and method for driving display thereof
CN105280155B (en) Display driver, display system and method of operating display driver
US20170139576A1 (en) Electronic device and method for configuring display thereof
CN107925749B (en) Method and apparatus for adjusting the resolution of an electronic device
CN105075241B (en) Electronic device and method of processing images
US20160162416A1 (en) Apparatus and Method for Reducing Latency Between Host and a Storage Device
US10235945B2 (en) Apparatus and method for controlling display in electronic device having processors
US9747945B2 (en) Method for creating a content and electronic device thereof
CN114051145B (en) Video compression processing method, device and medium
WO2017202170A1 (en) Method and device for video compression and electronic device
KR20160023164A (en) Method of classifying contents and electronic device
CN106648496A (en) Electronic device and method for controlling display thereof
WO2017202175A1 (en) Method and device for video compression and electronic device
CN101420484A (en) Wallpaper displaying method used for mobile terminal and mobile terminal
US10747489B2 (en) Method for displaying content and electronic device therefor
US9456110B2 (en) Method for improving video output definition and terminal device
US9959598B2 (en) Method of processing image and electronic device thereof
WO2016134499A1 (en) Dpi adaptation method and electronic device
WO2019114044A1 (en) Image processing method and device, electronic apparatus, and computer readable storage medium
US7382376B2 (en) System and method for effectively utilizing a memory device in a compressed domain
CN107368430B (en) Method and device for reducing video memory
CN109144446A (en) Image display method, device, electronic equipment and computer readable storage medium
CN119135193A (en) Antenna switching method, device, computer equipment, storage medium and program product

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