Image display method, terminal device, server, electronic device, storage medium and program product for applying display effects
The disclosure provides an image display method including: obtaining an adjustment ability of an image parameter in a terminal device, the adjustment ability of the image parameter being used for indicating the image parameter capable of being adjusted in the terminal device; obtaining first data of an image of a first application; and based on the first data including M first parameters and parameter values of the M first parameters, adjust parameter values of M second parameters, respectively, and based on the adjusted parameter values of the M second parameters, display the image of the first application; where the first parameter is an image parameter of the first application indicated by the adjustment ability; and the first parameters have one-to-one correspondence to the second parameters, and an adjustment range of the second parameters includes the parameter values of the first parameters.
1 . An image display method for flexibly applying display effects, to images of different applications being displayed on a terminal device, that are adapted to the different applications and capabilities of the terminal device, the image display method comprising:
obtaining adjustment capability information of the terminal device indicating whether the terminal device is capable of adjusting the image of an application with at least one display effect within at least one adjustment range;
obtaining first data comprising M first parameters for adjusting the at least one display effect, where M is a number greater than or equal to 1;
adjusting parameter values of P second parameters within adjustment ranges of the terminal device based on the adjustment capability information indicating that the terminal device can adjust the parameter values of the P second parameters within the adjustment ranges, and wherein the adjustment ranges of the terminal device comprise the parameter values of the M first parameters, where P is a number less than or equal to M;
displaying the image with the at least one display effect being applied in accordance with the parameter values of N second parameters, wherein an adjustment range of the M second parameters includes the parameter values of the M first parameters; and
based on the adjustment capability information indicating that the terminal device is incapable of adjusting K parameters, displaying an image received from a cloud server that is adjusted based on the K parameters.
2 . The image display method according to claim 1 , wherein the obtaining the first data comprises:
transmitting a first request to the cloud server, the first request being used to request to obtain the first data of the image of the application; and
receiving the first data from the cloud server.
3 . The image display method according to claim 2 , wherein the first request includes an application identifier associated with the application.
4 . The image display method according to claim 1 , wherein the obtaining the adjustment capability information comprises:
receiving, from the cloud server, an adjustment capability request to determine image parameters capable of being adjusted from among the N second parameters; and
obtaining, based on the adjustment capability request, the adjustment capability information of the image parameter in the terminal device, and
wherein the image display method further comprises transmitting the adjustment capability information of the image parameter to the cloud server.
5 . The image display method according to claim 4 , wherein the adjustment capability request comprises N target adjustment ranges corresponding to the N second parameters, respectively, and interfaces of the N second parameters, wherein the N second parameters comprise the P second parameters, and N being greater than or equal to P; and
wherein the obtaining the adjustment capability information comprises:
based on the adjustment capability request, performing processing on each third parameter in the N second parameters, respectively, wherein the processing comprises:
calling an interface of the third parameter to determine an adjustment range of the third parameter;
based on the adjustment range of the third parameter being a numerical interval, determining that the third parameter is the image parameter capable of being adjusted in the terminal device;
based on the adjustment range of the third parameter not being the numerical interval, and based on the adjustment range of the third parameter comprising a target adjustment range corresponding to the third parameter, determining that the third parameter is the image parameter capable of being adjusted in the terminal device; and
based on the adjustment range of the third parameter not being the numerical interval, and the adjustment range of the third parameter not including the target adjustment range corresponding to the third parameter, determining that the third parameter is an image parameter incapable of being adjusted in the terminal device.
6 . The image display method according to claim 5 , wherein
transmitting the adjustment capability request of the image parameter to the cloud server comprises:
for each third parameter in the N second parameters, based on the third parameter being the image parameter capable of being adjusted in the terminal device, the adjustment range of the third parameter being the numerical interval, and the adjustment range of the third parameter being different from the target adjustment range corresponding to the third parameter, transmitting the adjustment range of the third parameter to the cloud server.
7 . The image display method according to claim 5 , wherein the calling the interface of the third parameter comprises:
determining whether the interface of the third parameter exists;
based on the interface of the third parameter existing, calling the interface of the third parameter to obtain the adjustment range of the third parameter; and
based on no interface of the third parameter existing, determining that the adjustment range of the third parameter is null.
8 . The image display method according to claim 5 , wherein the N second parameters include at least one of the following: a brightness parameter, a chroma parameter, a contrast parameter, a sharpness parameter, a high dynamic range HDR capability parameter, a sharpening parameter, an image noise reduction parameter, a gamma parameter, or a color temperature parameter.
9 . The image display method according to claim 1 , wherein the M first parameters include at least one of: brightness, contrast, and chroma.
10 . The image display method according to claim 9 , wherein the P second parameters include at least one of clarity, high dynamic range capability, image sharpening, image noise reduction, gamma, and color temperature.
11 . An image display apparatus for flexibly applying display effects, to images of different applications being displayed on a terminal device, that are adapted to the different applications and capabilities of the terminal device, comprising:
at least one non-transitory memory containing program code; and
at least one processor configured to execute the program code, the program code comprising:
first obtaining code configured to cause at least one of the at least one processor to obtain adjustment capability information of the terminal device indicating whether the terminal device is capable of adjusting the image of an application with at least one display effect within at least one adjustment range;
second obtaining code configured to cause at least one of the at least one processor to, obtain first data comprising M first parameters for adjusting the at least one display effect, where M is a number greater than or equal to 1;
adjustment code configured to cause at least one of the at least one processor to adjust parameter values of P second parameters within adjustment ranges of the terminal device based on the adjustment capability information indicating that the terminal device can adjust the parameter values of the P second parameters within the adjustment ranges, and wherein the adjustment ranges of the terminal device comprise the parameter values of the M first parameters, where P is a number less than or equal to M; and
display code configured to cause at least one of the at least one processor to:
display the image with the at least one display effect being applied in accordance with the parameter values of N second parameters, wherein an adjustment range of the M second parameters includes the parameter values of the M first parameters; and
based on the adjustment capability information indicating that the terminal device is incapable of adjusting K parameters, display an image received from a cloud server that is adjusted based on the K parameters.
12 . The image display apparatus according to claim 11 , wherein the program code further comprises:
transmitting code configured to cause at least one of the at least one processor to transmit a first request to the cloud server, the first request being used to obtain the first data of the image of the application; and
receiving code configured to cause at least one of the at least one processor to receive the first data from the cloud server.
13 . The image display apparatus according to claim 12 , wherein the first request includes an application identifier associated with the application.
14 . The image display apparatus according to claim 11 , wherein the first obtaining code is configured to cause at least one of the at least one processor to:
receive, from the cloud server, an adjustment capability request to determine image parameters capable of being adjusted from among the N second parameters; and
obtain, based on the adjustment capability request, the adjustment capability information of the image parameter in the terminal device, and
wherein the program code further comprises transmitting code configured to cause at least one of the at least one processor to transmit the adjustment capability information of the image parameter to the cloud server.
15 . The image display apparatus according to claim 14 , wherein the adjustment capability request comprises N target adjustment ranges corresponding to the N second parameters, respectively, and interfaces of the N second parameters, wherein the N second parameters comprise the P second parameters, and N being greater than or equal to P, and
wherein the first obtaining code is configured to cause at least one of the at least one processor to:
perform processing, based on the adjustment capability request, on each third parameter in the N second parameters, respectively, wherein the processing comprises:
calling an interface of the third parameter to determine an adjustment range of the third parameter;
based on the adjustment range of the third parameter being a numerical interval, determining that the third parameter is the image parameter capable of being adjusted in the terminal device;
based on the adjustment range of the third parameter not being the numerical interval, and based on the adjustment range of the third parameter comprising a target adjustment range corresponding to the third parameter, determining that the third parameter is the image parameter capable of being adjusted in the terminal device; and
based on the adjustment range of the third parameter not being the numerical interval, and the adjustment range of the third parameter not including the target adjustment range corresponding to the third parameter, determining that the third parameter is an image parameter incapable of being adjusted in the terminal device.
16 . The image display apparatus according to claim 15 , wherein the transmitting code is configured to cause at least one of the at least one processor to:
for each third parameter in the N second parameters, based on the third parameter being the image parameter capable of being adjusted in the terminal device, the adjustment range of the third parameter being the numerical interval, and the adjustment range of the third parameter being different from the target adjustment range corresponding to the third parameter, transmit the adjustment range of the third parameter to the cloud server.
17 . The image display apparatus according to claim 15 , wherein to call the interface of the third parameter, the processing further comprises:
determining whether the interface of the third parameter exists;
based on the interface of the third parameter existing, calling the interface of the third parameter to obtain the adjustment range of the third parameter; and
based on no interface of the third parameter existing, determining that the adjustment range of the third parameter is null.
18 . The image display apparatus according to claim 11 , wherein the M first parameters include at least one of: brightness, contrast, and chroma.
19 . The image display apparatus according to claim 18 , wherein the P second parameters include at least one of clarity, high dynamic range capability, image sharpening, image noise reduction, gamma, and color temperature.
20 . A non-transitory computer-readable storing instructions for flexibly applying display effects, to images of different applications being displayed on a terminal device, that are adapted to the different applications and capabilities of the terminal device, that, when executed by at least one processor, cause the at least one processor to:
obtain adjustment capability information of an image parameter in a terminal device, wherein the adjustment capability information of the terminal device indicating whether the terminal device is capable of adjusting the image of an application with at least one display effect within at least one adjustment range;
obtain first data comprising M first parameters for adjusting the at least one display effect, where M is a number greater than or equal to 1;
adjust parameter values of P second parameters within adjustment ranges of the terminal device based on the adjustment capability information indicating that the terminal device can adjust the parameter values of the P second parameters within the adjustment ranges, and wherein the adjustment ranges of the terminal device comprise the parameter values of the M first parameters, where P is a number less than or equal to M;
display the image with the at least one display effect being applied in accordance with the parameter values of N second parameters, wherein an adjustment range of the M second parameters includes the parameter values of the M first parameters; and
based on the adjustment capability information indicating that the terminal device is incapable of adjusting K parameters, display an image received from a cloud server that is adjusted based on the K parameters.