Picture display control method and device, storage medium and electronic equipment

By acquiring the color information of the target image and performing Gamma correction, and controlling the display device to display the corrected color information, the problem of increased storage resource consumption and processing time caused by multiple images is solved, and efficient color gradient display is achieved.

CN121565079APending Publication Date: 2026-02-24ANALOGIX CHINA SEMICON +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202512044748.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-30
Publication Date
2026-02-24

AI Technical Summary

Technical Problem

Existing technologies suffer from problems such as increased processing time and excessive storage resource consumption when displaying image gradient effects due to the superposition of multiple images.

Method used

By acquiring the first color information and preset total quantity of the target image, calculating multiple second color information, and performing Gamma correction on them, the display device is controlled to display the corrected color information in a predetermined order to achieve color gradient display.

Benefits of technology

It reduces storage resource consumption, improves display efficiency, optimizes storage resource utilization, and ensures that the visual effect during the color gradient process conforms to the perceptual characteristics of the human eye.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121565079A_ABST
    Figure CN121565079A_ABST
Patent Text Reader

Abstract

The invention provides a picture display control method and device, a storage medium and electronic equipment. The method comprises the steps of obtaining first color information of a target picture and a preset total number of color types, wherein the first color information is color information of the target picture in a normal display state; calculating color information corresponding to each color type at least according to the first color information and a preset total number to obtain multiple pieces of second color information; and performing Gamma correction on the multiple pieces of second color information, and controlling the display equipment to sequentially display the multiple pieces of corrected second color information according to a preset sequence so as to realize color gradient display of the target picture. The problems that in the prior art, when the picture gradual change effect is displayed, due to the fact that multiple pictures are displayed in an overlapped mode, processing time is prolonged, and storage resources are consumed too much are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image processing technology, and more specifically, to an image display control method, apparatus, computer-readable storage medium, and electronic device. Background Technology

[0002] In the field of display technology, especially in the application of TCON (Timing Controller) chips, implementing a fade-in / fade-out animation effect for the boot logo (icon) is a common requirement. Traditional solutions rely on multiple different images, each with specific color depth and brightness, to simulate a color gradient effect. However, this method has several significant limitations and problems:

[0003] First, storing multiple images consumes significant storage resources. For each frame of the gradient effect, a unique image must be loaded and stored in the device's memory, which not only increases the device's cost but also limits storage space availability, especially in mobile devices or embedded systems with limited storage resources.

[0004] Secondly, image switching increases processing time. When a device starts up, it needs to quickly and continuously load and display multiple images. This process involves multiple steps, such as image decoding, transmission, and refreshing, each of which requires a certain amount of time. At high frame rates, the processor and display controller need to process a large amount of image data, which may lead to longer boot times and a degraded user experience. Summary of the Invention

[0005] The main objective of this application is to provide an image display control method, apparatus, computer-readable storage medium, and electronic device, so as to at least solve the problems of increased processing time and excessive storage resource consumption caused by the superposition of multiple images when displaying image gradient effects in the prior art.

[0006] To achieve the above objectives, according to one aspect of this application, an image display control method is provided, comprising: acquiring first color information of a target image and a preset total number of color types, wherein the first color information is the color information of the target image in a normal display state; calculating color information corresponding to each color type based at least on the first color information and the preset total number to obtain a plurality of second color information; performing Gamma correction on the plurality of second color information; and controlling a display device to sequentially display the plurality of corrected second color information in a predetermined order to achieve a color gradient display of the target image.

[0007] Optionally, based at least the first color information and the preset total quantity, color information corresponding to each color type is calculated to obtain multiple second color information, including: determining that the first color information is one of the starting display color and the ending display color of the target image, and obtaining the other of the starting display color and the ending display color of the target image; based on at least one of the ending display color and the starting display color and the preset total quantity, in a preset color space, at least one intermediate display color is calculated using a preset interpolation algorithm to obtain second color information including the starting display color, the ending display color, and at least one intermediate display color, wherein the preset color space includes one of the RGB color space and the HSL / HSV color space, and the preset interpolation algorithm includes one of linear interpolation and nonlinear interpolation.

[0008] Optionally, obtaining the other of the starting display color and the ending display color of the target image includes: determining, based on the first color information and the preset total quantity, that the other of the starting display color and the ending display color is the product of the reciprocal of the preset total quantity and the first color information; and calculating at least one intermediate display color in a preset color space using a preset interpolation algorithm based on at least one of the ending display color and the starting display color and the preset total quantity, including: determining the nth intermediate display color as (n+1) / m×C in the RGB color space according to the order from starting display to ending display using a linear interpolation algorithm, based on the ending display color and the preset total quantity, where n is a positive number and n=1,2,……,i, i is the number of intermediate display colors, m is the preset total quantity, and C is the ending display color.

[0009] Optionally, based on at least one of the ending display color and the starting display color and the preset total number, in a preset color space, at least one intermediate display color is calculated using a preset interpolation algorithm, including: based on the ending display color, the starting display color, and the preset total number, in the preset color space, using an easing function interpolation algorithm or a Bézier curve interpolation algorithm to calculate a plurality of intermediate display colors located between the starting display color and the ending display color.

[0010] Optionally, obtaining the first color information of the target image includes: obtaining the color information of the target image when it is displayed at maximum brightness, and obtaining the first color information.

[0011] Optionally, controlling the display device to sequentially display multiple corrected second color information in a predetermined order includes: sending the multiple corrected second color information to a color wheel register in order of increasing brightness, so that the color wheel register controls the display device to sequentially display the graphics corresponding to the multiple corrected second color information.

[0012] Optionally, Gamma correction is performed on multiple second color information, including one of the following: using the Gamma2.2 algorithm to correct multiple second color information to obtain multiple corrected second color information; establishing a Gamma mapping relationship, wherein the Gamma mapping relationship is a correspondence between RGB color values ​​and Gamma2.2 algorithm correction values, and sequentially searching for the Gamma2.2 algorithm correction value corresponding to each second color information from the Gamma mapping relationship to obtain multiple corrected second color information.

[0013] According to another aspect of this application, an image display control device is provided, comprising: an acquisition unit, configured to acquire first color information of a target image and a preset total number of color types, wherein the first color information is the color information of the target image in a normal display state; a calculation unit, configured to calculate color information corresponding to each color type based at least on the first color information and the preset total number, thereby obtaining a plurality of second color information; and a correction unit, configured to perform Gamma correction on the plurality of second color information and control a display device to sequentially display the plurality of corrected second color information in a predetermined order, so as to realize the color gradient display of the target image.

[0014] According to another aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform any of the methods described.

[0015] According to another aspect of this application, an electronic device is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including methods for performing any one of the methods described.

[0016] By applying the technical solution of this application, firstly, the first color information and the preset total number of color types of the target image under normal display conditions are obtained. Then, based on this information, the color information corresponding to each color type is calculated, resulting in multiple second color information values. Finally, Gamma correction is performed on the second color information, and the display is controlled to show the corrected second color information in a predetermined order, thus achieving a color gradient display of the target image. Compared to traditional methods that require storing multiple images to achieve the gradient effect, this application uses only a single image and adjusts its color information to achieve the gradient effect, avoiding wasted image switching time and additional storage overhead, significantly reducing storage resource consumption, improving display efficiency, and optimizing storage resource utilization. Furthermore, Gamma correction ensures that the visual effect during the color gradient process conforms to the perceptual characteristics of the human eye, guaranteeing a better visual experience for the displayed image. Attached Figure Description

[0017] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:

[0018] Figure 1 A hardware structure block diagram of a mobile terminal performing an image display control method according to an embodiment of this application is shown;

[0019] Figure 2 A schematic flowchart of an image display control method according to an embodiment of this application is shown;

[0020] Figure 3 A structural block diagram of an image display control device according to an embodiment of this application is shown.

[0021] The accompanying drawings include the following reference numerals:

[0022] 102. Processor; 104. Memory; 106. Transmission device; 108. Input / output device. Detailed Implementation

[0023] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0024] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0025] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be used interchangeably where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0026] As described in the background section, existing technologies suffer from problems such as increased processing time and excessive storage resource consumption due to the superposition of multiple images when displaying image gradient effects. To solve this technical problem, embodiments of this application provide an image display control method, apparatus, computer-readable storage medium, and electronic device.

[0027] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0028] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for an image display control method according to an embodiment of the present invention. For example... Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include components that are larger than... Figure 1 The more or fewer components shown, or having the same Figure 1The different configurations shown.

[0029] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the image display control method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the method described. The memory 104 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or send data via a network. Specific examples of such networks may include wireless networks provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0030] This embodiment provides an image display control method that runs on a mobile terminal, computer terminal, or similar computing device. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0031] Figure 2 This is a flowchart of an image display control method according to an embodiment of this application. Figure 2 As shown, the method includes the following steps:

[0032] Step S201: Obtain the first color information of the target image and the preset total number of color types. The first color information is the color information of the target image in its normal display state.

[0033] Specifically, the color information may include numerical representations of color channels (e.g., RGB values, grayscale values, etc.). The color information of the target image in its normal display state refers to the color value of each pixel in the target image without any color adjustments. The preset total number of color types refers to the number of color changes planned to be used in the color gradient process of the target image.

[0034] Step S202: Based at least the first color information and the preset total quantity, calculate the color information corresponding to each color type to obtain multiple second color information;

[0035] Step S203: Perform Gamma correction on multiple second color information, and control the display device to display multiple corrected second color information in a predetermined order to achieve color gradient display of the target image.

[0036] Specifically, gamma correction is a color adjustment technique that makes the brightness response of a display device closer to the perceptual characteristics of the human eye. The preset order is the sequence of image gradations. By controlling the display device to update the displayed colors sequentially according to a time sequence, a gradual color transition of the target image is achieved.

[0037] In this embodiment, firstly, the first color information of the target image under normal display conditions and the preset total number of color types are obtained. Then, based on this information, the color information corresponding to each color type is calculated, resulting in multiple second color information values. Finally, Gamma correction is performed on the second color information, and the display is controlled to show the corrected second color information in a predetermined order, thus achieving a color gradient display of the target image. Compared to traditional methods that require storing multiple images to achieve the gradient effect, this application uses only a single image and adjusts its color information to achieve the gradient effect, avoiding wasted image switching time and additional storage overhead, significantly reducing storage resource consumption, improving display efficiency, and optimizing storage resource utilization. Furthermore, Gamma correction ensures that the visual effect during the color gradient process conforms to the perceptual characteristics of the human eye, guaranteeing a better visual experience for the displayed image.

[0038] Optionally, the target image can be the boot logo of the TCON chip, or other images that require color gradient display, such as gradient elements in the UI interface, gradient images in weather and map applications, gradient content in teaching videos or presentations, and transition scenes in animations and videos.

[0039] In practice, the preset total quantity is selected to control the duration and visual smoothness of the gradient process. A lower preset total quantity may mean a faster but less smooth transition, while a higher preset total quantity can bring a slower but more delicate gradient effect.

[0040] In some embodiments, at least based on the first color information and the preset total quantity, color information corresponding to each color type is calculated to obtain multiple second color information, including: determining that the first color information is one of the starting display color and the ending display color of the target image, and obtaining the other of the starting display color and the ending display color of the target image; based on at least one of the ending display color and the starting display color and the preset total quantity, in a preset color space, at least one intermediate display color is calculated using a preset interpolation algorithm to obtain second color information including the starting display color, the ending display color, and at least one intermediate display color, wherein the preset color space includes one of the RGB color space and the HSL / HSV color space, and the preset interpolation algorithm includes one of linear interpolation and nonlinear interpolation. In this embodiment, by determining the starting and ending display colors of the gradient process, and using a preset interpolation algorithm based on a preset total quantity, at least one intermediate display color between the starting and ending display colors is calculated. This yields multiple second color information items, including the starting display color, the ending display color, and at least one intermediate display color. This facilitates a smooth transition from the initial color to the final color in subsequent steps, further enhancing the visual experience of the image gradient effect and optimizing the color accuracy and consistency during the gradient process. Furthermore, compared to traditional methods that use multiple static images to achieve color gradients, this embodiment only requires calculating and updating color values ​​without needing to store a large amount of additional image data, significantly saving storage resources. Moreover, the algorithm controls the smoothness of color changes, improving the fluidity of the visual experience.

[0041] Specifically, the ending display color refers to the color information of the target image at the end of the gradient. The starting display color refers to the color information of the target image at the beginning of the gradient. If the first color information is the starting display color, the other obtained color is the ending display color; if the first color information is the ending display color, the other obtained color is the starting display color.

[0042] In the aforementioned embodiment, the RGB color space is directly based on the mixing ratio of the three primary colors: red, green, and blue. The HSL / HSV color space, on the other hand, is based on three attributes: hue, saturation, and lightness / value. Different color spaces have different effects and advantages for color transitions and gradients. The preset interpolation algorithm is used to calculate a series of intermediate color values ​​between two color values. The set of second color information collectively forms a gradient path from the starting color to the ending color, with each piece of second color information being a node on this transition path, and their total number equal to the preset total number.

[0043] In other embodiments, at least based on the first color information and the preset total quantity, color information corresponding to each color type is calculated to obtain multiple second color information. This may further include: determining that the first color information is an intermediate display color, and obtaining the starting display color and the ending display color of the target image; based on the ending display color, the starting display color, the intermediate display color, and the preset total quantity, calculating other intermediate display colors using a preset interpolation algorithm in a preset color space, to obtain second color information including the starting display color, the ending display color, and multiple intermediate display colors.

[0044] Further, obtaining the other of the starting display color and the ending display color of the target image includes: determining, based on the first color information and the preset total quantity, that the other of the starting display color and the ending display color is the product of the reciprocal of the preset total quantity and the first color information; calculating at least one intermediate display color in a preset color space using a preset interpolation algorithm based on at least one of the ending display color and the starting display color and the preset total quantity includes: determining, based on the ending display color and the preset total quantity, in the RGB color space, in the order from starting display to ending display, the nth intermediate display color is (n+1) / m×C, where n is a positive number and n=1,2,……,i, i is the number of intermediate display colors, m is the preset total quantity, and C is the ending display color.

[0045] In the aforementioned embodiment, by multiplying the first color information by the reciprocal of a preset total quantity, the color value of the other of the starting and ending display colors is obtained, ensuring the linearity and accuracy of the color change. Next, in the RGB color space, a linear interpolation algorithm is used to calculate i intermediate display colors based on the ending display color and the preset total quantity using the formula (n+1) / m×C. This effectively achieves a smooth transition of the target image from one color (starting display color) to another (ending display color). This calculation method ensures that the color changes during the gradient process are carried out according to a predetermined ratio and speed, thereby avoiding abrupt color changes or discontinuities and improving the smoothness and naturalness of the visual effect. Furthermore, using a linear interpolation algorithm to calculate intermediate colors is simple, direct, and easy to implement. Because the implementation of the gradient effect relies solely on the calculation of color information without requiring complex image processing or storage management, this simplifies the design of the software algorithm and reduces the requirements for hardware resources.

[0046] In this application, the preset total quantity (m) and first color information (C) can be customized according to specific needs, thereby enabling the control of the fineness of the gradient effect and the ending color state. In this way, whether it is a rapid color switch or a subtle color gradient, it can be achieved by adjusting these parameters, thus meeting the visual performance requirements in different scenarios.

[0047] According to some alternative embodiments of this application, based on at least one of the ending display color and the starting display color and the preset total number, in a preset color space, at least one intermediate display color is calculated using a preset interpolation algorithm. This includes: based on the ending display color, the starting display color, and the preset total number, in the preset color space, using a easing function interpolation algorithm or a Bézier curve interpolation algorithm to calculate a plurality of intermediate display colors located between the starting display color and the ending display color. In this technical solution, by using the easing function interpolation algorithm or the Bézier curve interpolation algorithm to calculate the intermediate display colors, since both algorithms are suitable for simulating non-linear transition effects, such as acceleration or deceleration changes, these algorithms can precisely control the rate of color change during the gradient process according to a predefined function or curve, thereby further ensuring the generation of smooth and natural color gradients; at the same time, these two algorithms can better match the perceptual characteristics of human eyes to color changes, thereby further improving the visual experience of image gradients.

[0048] In some embodiments, obtaining the first color information of the target image includes: obtaining the color information of the target image when displayed at maximum brightness, thus obtaining the first color information. This process ensures that in subsequent gradient displays, color changes are based on the color depth of the original image.

[0049] Of course, the first color information is not limited to the color information of the target image when displayed at maximum brightness. The first color information can also be the color information of the target image when displayed at minimum brightness, the intermediate color in the gradient process, the background color or theme color when displayed, the average hue of the image, or a user-defined color, etc.

[0050] Optionally, controlling the display device to sequentially display multiple corrected second color information in a predetermined order includes: sending the multiple corrected second color information to a color wheel register in order of increasing brightness, so that the color wheel register controls the display device to sequentially display the graphics corresponding to the multiple corrected second color information. This embodiment achieves a gradual animation effect by sending each type of corrected color information to the color wheel register, thereby controlling the display device to display graphics sequentially in order of increasing brightness. This optimizes the visual experience and saves storage resources. Furthermore, this method eliminates the processing delay caused by rapidly switching between images of different brightness levels, ensuring the smoothness and efficiency of the boot process.

[0051] In other exemplary solutions, controlling the display device to sequentially display multiple corrected second color information in a predetermined order may further include: sending the multiple corrected second color information to a color wheel register in descending order of brightness, so that the color wheel register controls the display device to sequentially display the graphics corresponding to the multiple corrected second color information. This can achieve an animation effect of image fade-out.

[0052] In other exemplary solutions, controlling the display device to sequentially display multiple corrected second color information in a predetermined order may further include: sending the multiple corrected second color information to a color wheel register in a brightness order that first increases and then decreases, so that the color wheel register controls the display device to sequentially display the graphics corresponding to the multiple corrected second color information. This can achieve a fade-in / fade-out animation effect for the image.

[0053] In some embodiments, Gamma correction is performed on a plurality of second color information, including one of the following: correcting the plurality of second color information using the Gamma2.2 algorithm to obtain a plurality of corrected second color information; establishing a Gamma mapping relationship, wherein the Gamma mapping relationship is a correspondence between RGB color values ​​and Gamma2.2 algorithm correction values, and sequentially searching for the Gamma2.2 algorithm correction value corresponding to each second color information from the Gamma mapping relationship to obtain a plurality of corrected second color information.

[0054] In this embodiment, applying the Gamma 2.2 algorithm to correct the calculated second color information ensures the naturalness and consistency of brightness changes during color gradation, further avoiding the discomfort caused by sudden brightness changes. Gamma 2.2 algorithm-corrected color information also enhances image contrast in low-light environments, making dark details more clearly visible, thus making the gradation process more delicate and vivid. By establishing a Gamma mapping relationship and pre-calculating the correspondence between RGB color values ​​and Gamma 2.2 algorithm correction values, the complexity of real-time color correction calculations can be greatly simplified, thereby improving overall computational efficiency and display performance.

[0055] Optionally, controlling the display device to sequentially display multiple corrected second color information in a predetermined order may include: updating color data in the display cache to control the display device to display multiple corrected second color information sequentially, or controlling the backlight intensity and color output of the display device based on the multiple corrected second color information to achieve the display of multiple corrected second color information. In specific implementation, this process typically means setting the display parameters of the monitor one by one according to the calculated list of second color information until all preset color types are displayed.

[0056] To enable those skilled in the art to better understand the technical solution of this application, the implementation process of the image display control method of this application will be described in detail below with reference to specific embodiments.

[0057] This embodiment relates to a specific image display control method. Taking the TCON chip's power-on logo displaying 30 different color changes per second as an example, the method achieves a gradient display through 30 color changes. The method includes the following steps:

[0058] Step S1: Calculate the Gamma2.2 color values ​​corresponding to RGB color values ​​0-255 according to the Gamma2.2 algorithm, and create a Gamma2.2 color data table with 256 elements. The table stores the Gamma2.2 color value corresponding to each RGB value.

[0059] Step S2: Temporarily store the colors of the image when it is displayed normally, that is, perform a local backup of the colors when the image is displayed at maximum brightness;

[0060] Step S3: Calculate the color value according to a linear relationship based on the current color to be displayed. For example, if the current color is the 4th color, then the current color value calculated according to the linear relationship is: 4 / 30. RGB values ​​at full brightness;

[0061] Step S4: Based on the color value obtained from D calculated in step S3, perform a Gamma2.2 color lookup table using the index. The resulting color is the color to be displayed.

[0062] Step S5: Update the Gamma2.2 color value obtained in step S4 to the color wheel register for image display and then display it;

[0063] Step S6: Repeat steps S3 to S5 until 30 colors are displayed, thus achieving the color gradient effect.

[0064] The aforementioned embodiment achieves a color gradient effect without switching between multiple images; instead, it adjusts the color wheel of the normally displayed image to create the gradient. Only one image needs to be stored to achieve the logo's fade-in / fade-out animation effect.

[0065] This application also provides an image display control device. It should be noted that the image display control device of this application can be used to execute the image display control method provided in this application. This device is used to implement the embodiments and preferred embodiments described herein, and will not be repeated where already described. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0066] The following describes the image display control device provided in the embodiments of this application.

[0067] Figure 3 This is a schematic diagram of a control device according to an embodiment of this application. Figure 3 As shown, the device includes:

[0068] The acquisition unit 10 is used to acquire the first color information of the target image and the preset total number of color types, wherein the first color information is the color information of the target image in the normal display state;

[0069] Specifically, the color information may include numerical representations of color channels (e.g., RGB values, grayscale values, etc.). The color information of the target image in its normal display state refers to the color value of each pixel in the target image without any color adjustments. The preset total number of color types refers to the number of color changes planned to be used in the color gradient process of the target image.

[0070] The calculation unit 20 is used to calculate the color information corresponding to each color type based at least on the first color information and the preset total quantity, so as to obtain multiple second color information.

[0071] The correction unit 30 is used to perform Gamma correction on multiple second color information and control the display device to display multiple corrected second color information in a predetermined order to achieve color gradient display of the target image.

[0072] Specifically, gamma correction is a color adjustment technique that makes the brightness response of a display device closer to the perceptual characteristics of the human eye. The preset order is the sequence of image gradations. By controlling the display device to update the displayed colors sequentially according to a time sequence, a gradual color transition of the target image is achieved.

[0073] In the described embodiment, an acquisition unit acquires the first color information of the target image under normal display conditions and the preset total number of color types. A calculation unit calculates the color information corresponding to each color type based on the acquired information, obtaining multiple second color information. A correction unit performs Gamma correction on the second color information and controls the display to show the corrected second color information in a predetermined order, thus achieving a color gradient display of the target image. Compared to traditional methods that require storing multiple images to achieve the gradient effect, this application uses only a single image and adjusts its color information to achieve the gradient effect, avoiding wasted image switching time and additional storage overhead, significantly reducing storage resource consumption, improving display efficiency, and optimizing storage resource utilization. Furthermore, Gamma correction ensures that the visual effect during the color gradient process conforms to the perceptual characteristics of the human eye, guaranteeing a better visual experience for the displayed image.

[0074] Optionally, the target image can be the boot logo of the TCON chip, or other images that require color gradient display, such as gradient elements in the UI interface, gradient images in weather and map applications, gradient content in teaching videos or presentations, and transition scenes in animations and videos.

[0075] In practice, the preset total quantity is selected to control the duration and visual smoothness of the gradient process. A lower preset total quantity may mean a faster but less smooth transition, while a higher preset total quantity can bring a slower but more delicate gradient effect.

[0076] In some embodiments, the calculation unit includes: a first determining module, configured to determine that the first color information is one of the starting display color and the ending display color of the target image, and obtain the other of the starting display color and the ending display color of the target image; and a first calculation module, configured to calculate at least one intermediate display color in a preset color space using a preset interpolation algorithm based on at least one of the ending display color and the starting display color and the preset total number, to obtain second color information including the starting display color, the ending display color, and at least one of the intermediate display colors, wherein the preset color space includes one of the RGB color space and the HSL / HSV color space, and the preset interpolation algorithm includes one of linear interpolation and nonlinear interpolation. In this embodiment, by determining the starting and ending display colors of the gradient process, and using a preset interpolation algorithm based on a preset total quantity, at least one intermediate display color between the starting and ending display colors is calculated. This yields multiple second color information items, including the starting display color, the ending display color, and at least one intermediate display color. This facilitates a smooth transition from the initial color to the final color in subsequent steps, further enhancing the visual experience of the image gradient effect and optimizing the color accuracy and consistency during the gradient process. Furthermore, compared to traditional methods that use multiple static images to achieve color gradients, this embodiment only requires calculating and updating color values ​​without needing to store a large amount of additional image data, significantly saving storage resources. Moreover, the algorithm controls the smoothness of color changes, improving the fluidity of the visual experience.

[0077] Specifically, the ending display color refers to the color information of the target image at the end of the gradient. The starting display color refers to the color information of the target image at the beginning of the gradient. If the first color information is the starting display color, the other obtained color is the ending display color; if the first color information is the ending display color, the other obtained color is the starting display color.

[0078] In the aforementioned embodiment, the RGB color space is directly based on the mixing ratio of the three primary colors: red, green, and blue. The HSL / HSV color space, on the other hand, is based on three attributes: hue, saturation, and lightness / value. Different color spaces have different effects and advantages for color transitions and gradients. The preset interpolation algorithm is used to calculate a series of intermediate color values ​​between two color values. The set of second color information collectively forms a gradient path from the starting color to the ending color, with each piece of second color information being a node on this transition path, and their total number equal to the preset total number.

[0079] In other embodiments, the calculation unit may further include: a second determining module, configured to determine that the first color information is an intermediate display color, and obtain the starting display color and the ending display color of the target image; and a second calculation module, configured to calculate other intermediate display colors in a preset color space using a preset interpolation algorithm based on the ending display color, the starting display color, the intermediate display color, and the preset total number, to obtain the second color information including the starting display color, the ending display color, and multiple intermediate display colors.

[0080] Further, the first determining module includes: a first determining submodule, configured to determine, based on the first color information and the preset total quantity, the other of the starting display color and the ending display color as the product of the reciprocal of the preset total quantity and the first color information; the first calculation module includes: a second determining submodule, configured to, based on the ending display color and the preset total quantity, in the RGB color space, in the order from starting display to ending display, use a linear interpolation algorithm to determine the nth intermediate display color as (n+1) / m×C, where n is a positive number and n=1,2,……,i, i is the number of intermediate display colors, m is the preset total quantity, and C is the ending display color.

[0081] In the aforementioned embodiment, by multiplying the first color information by the reciprocal of a preset total quantity, the color value of the other of the starting and ending display colors is obtained, ensuring the linearity and accuracy of the color change. Next, in the RGB color space, a linear interpolation algorithm is used to calculate i intermediate display colors based on the ending display color and the preset total quantity using the formula (n+1) / m×C. This effectively achieves a smooth transition of the target image from one color (starting display color) to another (ending display color). This calculation method ensures that the color changes during the gradient process are carried out according to a predetermined ratio and speed, thereby avoiding abrupt color changes or discontinuities and improving the smoothness and naturalness of the visual effect. Furthermore, using a linear interpolation algorithm to calculate intermediate colors is simple, direct, and easy to implement. Because the implementation of the gradient effect relies solely on the calculation of color information without requiring complex image processing or storage management, this simplifies the design of the software algorithm and reduces the requirements for hardware resources.

[0082] In this application, the preset total quantity (m) and first color information (C) can be customized according to specific needs, thereby enabling the control of the fineness of the gradient effect and the ending color state. In this way, whether it is a rapid color switch or a subtle color gradient, it can be achieved by adjusting these parameters, thus meeting the visual performance requirements in different scenarios.

[0083] According to some alternative embodiments of this application, the first calculation module includes: a calculation submodule, used to calculate, in the preset color space, a plurality of intermediate display colors located between the starting display color and the ending display color, based on the ending display color, the starting display color, and the preset total quantity, using an easing function interpolation algorithm or a Bézier curve interpolation algorithm. In this technical solution, by using an easing function interpolation algorithm or a Bézier curve interpolation algorithm to calculate the intermediate display colors, since both algorithms are suitable for simulating non-linear transition effects, such as acceleration or deceleration changes, these algorithms can precisely control the rate of color change during the gradient process according to a predefined function or curve, thereby further ensuring the generation of smooth and natural color gradients; at the same time, these two algorithms can better match the perceptual characteristics of human eyes to color changes, thereby further improving the visual experience of image gradients.

[0084] In some embodiments, the acquisition unit includes an acquisition module, configured to acquire color information of the target image when displayed at maximum brightness, thereby obtaining the first color information. This process ensures that in subsequent gradient displays, color changes are based on the color depth of the original image.

[0085] Of course, the first color information is not limited to the color information of the target image when displayed at maximum brightness. The first color information can also be the color information of the target image when displayed at minimum brightness, the intermediate color in the gradient process, the background color or theme color when displayed, the average hue of the image, or a user-defined color, etc.

[0086] Optionally, the correction unit includes a first sending module, configured to sequentially send multiple corrected second color information to a color wheel register in order of increasing brightness, so that the color wheel register controls the display device to sequentially display graphics corresponding to the multiple corrected second color information. This embodiment achieves a gradual animation effect by sending each type of corrected color information to the color wheel register, thereby controlling the display device to display graphics sequentially in order of increasing brightness. This optimizes the visual experience and saves storage resources. Furthermore, this method eliminates the processing delay caused by rapidly switching between images of different brightness levels, ensuring the smoothness and efficiency of the boot process.

[0087] In other exemplary solutions, the correction unit may further include a second sending module, configured to send multiple corrected second color information items sequentially to a color wheel register in order of decreasing brightness, so that the color wheel register controls the display device to sequentially display graphics corresponding to the multiple corrected second color information items. This achieves an animation effect of image fade-out.

[0088] In other exemplary solutions, the correction unit may further include a third sending module, configured to sequentially send multiple corrected second color information pieces to a color wheel register in an order of increasing brightness followed by decreasing brightness, so that the color wheel register controls the display device to sequentially display graphics corresponding to the multiple corrected second color information pieces. This enables a fade-in / fade-out animation effect for the image.

[0089] In some embodiments, the correction unit includes one of the following: a third calculation module, configured to correct multiple second color information using the Gamma2.2 algorithm to obtain multiple corrected second color information; and an establishment module, configured to establish a Gamma mapping relationship, wherein the Gamma mapping relationship is a correspondence between RGB color values ​​and Gamma2.2 algorithm correction values, and sequentially search for the Gamma2.2 algorithm correction value corresponding to each second color information from the Gamma mapping relationship to obtain multiple corrected second color information.

[0090] In this embodiment, applying the Gamma 2.2 algorithm to correct the calculated second color information ensures the naturalness and consistency of brightness changes during color gradation, further avoiding the discomfort caused by sudden brightness changes. Gamma 2.2 algorithm-corrected color information also enhances image contrast in low-light environments, making dark details more clearly visible, thus making the gradation process more delicate and vivid. By establishing a Gamma mapping relationship and pre-calculating the correspondence between RGB color values ​​and Gamma 2.2 algorithm correction values, the complexity of real-time color correction calculations can be greatly simplified, thereby improving overall computational efficiency and display performance.

[0091] Optionally, the correction unit may include an update module, used to update the color data in the display cache to control the display device to sequentially display multiple corrected second color information, or to control the backlight intensity and color output of the display device based on the multiple corrected second color information, thereby realizing the display of multiple corrected second color information. In specific implementation, this process typically means setting the display parameters of the monitor one by one according to the calculated list of second color information, until all preset color types are displayed.

[0092] The image display control device includes a processor and a memory. The acquisition unit, the calculation unit, and the correction unit are all stored as program units in the memory, and the processor executes the program units stored in the memory to achieve the corresponding functions. All modules are located in the same processor; alternatively, the modules may be located in different processors in any combination.

[0093] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and adjusting kernel parameters can at least address the problems of increased processing time and excessive storage resource consumption caused by displaying multiple overlapping images when creating image gradient effects in existing technologies.

[0094] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0095] This invention provides a computer-readable storage medium including a stored program, wherein the program, when running, controls the device where the computer-readable storage medium is located to execute the image display control method.

[0096] Specifically, the image display control methods include:

[0097] Step S201: Obtain the first color information of the target image and the preset total number of color types. The first color information is the color information of the target image in its normal display state.

[0098] Specifically, the color information may include numerical representations of color channels (e.g., RGB values, grayscale values, etc.). The color information of the target image in its normal display state refers to the color value of each pixel in the target image without any color adjustments. The preset total number of color types refers to the number of color changes planned to be used in the color gradient process of the target image.

[0099] Step S202: Based at least the first color information and the preset total quantity, calculate the color information corresponding to each color type to obtain multiple second color information;

[0100] Step S203: Perform Gamma correction on multiple second color information, and control the display device to display multiple corrected second color information in a predetermined order to achieve color gradient display of the target image.

[0101] Specifically, gamma correction is a color adjustment technique that makes the brightness response of a display device closer to the perceptual characteristics of the human eye. The preset order is the sequence of image gradations. By controlling the display device to update the displayed colors sequentially according to a time sequence, a gradual color transition of the target image is achieved.

[0102] Optionally, based at least the first color information and the preset total quantity, color information corresponding to each color type is calculated to obtain multiple second color information, including: determining that the first color information is one of the starting display color and the ending display color of the target image, and obtaining the other of the starting display color and the ending display color of the target image; based on at least one of the ending display color and the starting display color and the preset total quantity, in a preset color space, at least one intermediate display color is calculated using a preset interpolation algorithm to obtain second color information including the starting display color, the ending display color, and at least one intermediate display color, wherein the preset color space includes one of the RGB color space and the HSL / HSV color space, and the preset interpolation algorithm includes one of linear interpolation and nonlinear interpolation.

[0103] Optionally, obtaining the other of the starting display color and the ending display color of the target image includes: determining, based on the first color information and the preset total quantity, that the other of the starting display color and the ending display color is the product of the reciprocal of the preset total quantity and the first color information; and calculating at least one intermediate display color in a preset color space using a preset interpolation algorithm based on at least one of the ending display color and the starting display color and the preset total quantity, including: determining the nth intermediate display color as (n+1) / m×C in the RGB color space according to the order from starting display to ending display using a linear interpolation algorithm, based on the ending display color and the preset total quantity, where n is a positive number and n=1,2,……,i, i is the number of intermediate display colors, m is the preset total quantity, and C is the ending display color.

[0104] Optionally, based on at least one of the ending display color and the starting display color and the preset total number, in a preset color space, at least one intermediate display color is calculated using a preset interpolation algorithm, including: based on the ending display color, the starting display color, and the preset total number, in the preset color space, using an easing function interpolation algorithm or a Bézier curve interpolation algorithm to calculate a plurality of intermediate display colors located between the starting display color and the ending display color.

[0105] Optionally, obtaining the first color information of the target image includes: obtaining the color information of the target image when it is displayed at maximum brightness, and obtaining the first color information.

[0106] Optionally, controlling the display device to sequentially display multiple corrected second color information in a predetermined order includes: sending the multiple corrected second color information to a color wheel register in order of increasing brightness, so that the color wheel register controls the display device to sequentially display the graphics corresponding to the multiple corrected second color information.

[0107] Optionally, Gamma correction is performed on multiple second color information, including one of the following: using the Gamma2.2 algorithm to correct multiple second color information to obtain multiple corrected second color information; establishing a Gamma mapping relationship, wherein the Gamma mapping relationship is a correspondence between RGB color values ​​and Gamma2.2 algorithm correction values, and sequentially searching for the Gamma2.2 algorithm correction value corresponding to each second color information from the Gamma mapping relationship to obtain multiple corrected second color information.

[0108] This invention provides a processor for running a program, wherein the program executes the image display control method during runtime.

[0109] Specifically, the image display control methods include:

[0110] Step S201: Obtain the first color information of the target image and the preset total number of color types. The first color information is the color information of the target image in its normal display state.

[0111] Specifically, the color information may include numerical representations of color channels (e.g., RGB values, grayscale values, etc.). The color information of the target image in its normal display state refers to the color value of each pixel in the target image without any color adjustments. The preset total number of color types refers to the number of color changes planned to be used in the color gradient process of the target image.

[0112] Step S202: Based at least the first color information and the preset total quantity, calculate the color information corresponding to each color type to obtain multiple second color information;

[0113] Step S203: Perform Gamma correction on multiple second color information, and control the display device to display multiple corrected second color information in a predetermined order to achieve color gradient display of the target image.

[0114] Specifically, gamma correction is a color adjustment technique that makes the brightness response of a display device closer to the perceptual characteristics of the human eye. The preset order is the sequence of image gradations. By controlling the display device to update the displayed colors sequentially according to a time sequence, a gradual color transition of the target image is achieved.

[0115] Optionally, based at least the first color information and the preset total quantity, color information corresponding to each color type is calculated to obtain multiple second color information, including: determining that the first color information is one of the starting display color and the ending display color of the target image, and obtaining the other of the starting display color and the ending display color of the target image; based on at least one of the ending display color and the starting display color and the preset total quantity, in a preset color space, at least one intermediate display color is calculated using a preset interpolation algorithm to obtain second color information including the starting display color, the ending display color, and at least one intermediate display color, wherein the preset color space includes one of the RGB color space and the HSL / HSV color space, and the preset interpolation algorithm includes one of linear interpolation and nonlinear interpolation.

[0116] Optionally, obtaining the other of the starting display color and the ending display color of the target image includes: determining, based on the first color information and the preset total quantity, that the other of the starting display color and the ending display color is the product of the reciprocal of the preset total quantity and the first color information; and calculating at least one intermediate display color in a preset color space using a preset interpolation algorithm based on at least one of the ending display color and the starting display color and the preset total quantity, including: determining the nth intermediate display color as (n+1) / m×C in the RGB color space according to the order from starting display to ending display using a linear interpolation algorithm, based on the ending display color and the preset total quantity, where n is a positive number and n=1,2,……,i, i is the number of intermediate display colors, m is the preset total quantity, and C is the ending display color.

[0117] Optionally, based on at least one of the ending display color and the starting display color and the preset total number, in a preset color space, at least one intermediate display color is calculated using a preset interpolation algorithm, including: based on the ending display color, the starting display color, and the preset total number, in the preset color space, using an easing function interpolation algorithm or a Bézier curve interpolation algorithm to calculate a plurality of intermediate display colors located between the starting display color and the ending display color.

[0118] Optionally, obtaining the first color information of the target image includes: obtaining the color information of the target image when it is displayed at maximum brightness, and obtaining the first color information.

[0119] Optionally, controlling the display device to sequentially display multiple corrected second color information in a predetermined order includes: sending the multiple corrected second color information to a color wheel register in order of increasing brightness, so that the color wheel register controls the display device to sequentially display the graphics corresponding to the multiple corrected second color information.

[0120] Optionally, Gamma correction is performed on multiple second color information, including one of the following: using the Gamma2.2 algorithm to correct multiple second color information to obtain multiple corrected second color information; establishing a Gamma mapping relationship, wherein the Gamma mapping relationship is a correspondence between RGB color values ​​and Gamma2.2 algorithm correction values, and sequentially searching for the Gamma2.2 algorithm correction value corresponding to each second color information from the Gamma mapping relationship to obtain multiple corrected second color information.

[0121] This invention provides a device including a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs at least the following steps:

[0122] Step S201: Obtain the first color information of the target image and the preset total number of color types. The first color information is the color information of the target image in its normal display state.

[0123] Step S202: Based at least the first color information and the preset total quantity, calculate the color information corresponding to each color type to obtain multiple second color information;

[0124] Step S203: Perform Gamma correction on multiple second color information, and control the display device to display multiple corrected second color information in a predetermined order to achieve color gradient display of the target image.

[0125] The devices mentioned in this article can be servers, PCs, tablets, mobile phones, etc.

[0126] Optionally, based at least the first color information and the preset total quantity, color information corresponding to each color type is calculated to obtain multiple second color information, including: determining that the first color information is one of the starting display color and the ending display color of the target image, and obtaining the other of the starting display color and the ending display color of the target image; based on at least one of the ending display color and the starting display color and the preset total quantity, in a preset color space, at least one intermediate display color is calculated using a preset interpolation algorithm to obtain second color information including the starting display color, the ending display color, and at least one intermediate display color, wherein the preset color space includes one of the RGB color space and the HSL / HSV color space, and the preset interpolation algorithm includes one of linear interpolation and nonlinear interpolation.

[0127] Optionally, obtaining the other of the starting display color and the ending display color of the target image includes: determining, based on the first color information and the preset total quantity, that the other of the starting display color and the ending display color is the product of the reciprocal of the preset total quantity and the first color information; and calculating at least one intermediate display color in a preset color space using a preset interpolation algorithm based on at least one of the ending display color and the starting display color and the preset total quantity, including: determining the nth intermediate display color as (n+1) / m×C in the RGB color space according to the order from starting display to ending display using a linear interpolation algorithm, based on the ending display color and the preset total quantity, where n is a positive number and n=1,2,……,i, i is the number of intermediate display colors, m is the preset total quantity, and C is the ending display color.

[0128] Optionally, based on at least one of the ending display color and the starting display color and the preset total number, in a preset color space, at least one intermediate display color is calculated using a preset interpolation algorithm, including: based on the ending display color, the starting display color, and the preset total number, in the preset color space, using an easing function interpolation algorithm or a Bézier curve interpolation algorithm to calculate a plurality of intermediate display colors located between the starting display color and the ending display color.

[0129] Optionally, obtaining the first color information of the target image includes: obtaining the color information of the target image when it is displayed at maximum brightness, and obtaining the first color information.

[0130] Optionally, controlling the display device to sequentially display multiple corrected second color information in a predetermined order includes: sending the multiple corrected second color information to a color wheel register in order of increasing brightness, so that the color wheel register controls the display device to sequentially display the graphics corresponding to the multiple corrected second color information.

[0131] Optionally, Gamma correction is performed on multiple second color information, including one of the following: using the Gamma2.2 algorithm to correct multiple second color information to obtain multiple corrected second color information; establishing a Gamma mapping relationship, wherein the Gamma mapping relationship is a correspondence between RGB color values ​​and Gamma2.2 algorithm correction values, and sequentially searching for the Gamma2.2 algorithm correction value corresponding to each second color information from the Gamma mapping relationship to obtain multiple corrected second color information.

[0132] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having at least the following method steps:

[0133] Step S201: Obtain the first color information of the target image and the preset total number of color types. The first color information is the color information of the target image in its normal display state.

[0134] Step S202: Based at least the first color information and the preset total quantity, calculate the color information corresponding to each color type to obtain multiple second color information;

[0135] Step S203: Perform Gamma correction on multiple second color information, and control the display device to display multiple corrected second color information in a predetermined order to achieve color gradient display of the target image.

[0136] Optionally, based at least the first color information and the preset total quantity, color information corresponding to each color type is calculated to obtain multiple second color information, including: determining that the first color information is one of the starting display color and the ending display color of the target image, and obtaining the other of the starting display color and the ending display color of the target image; based on at least one of the ending display color and the starting display color and the preset total quantity, in a preset color space, at least one intermediate display color is calculated using a preset interpolation algorithm to obtain second color information including the starting display color, the ending display color, and at least one intermediate display color, wherein the preset color space includes one of the RGB color space and the HSL / HSV color space, and the preset interpolation algorithm includes one of linear interpolation and nonlinear interpolation.

[0137] Optionally, obtaining the other of the starting display color and the ending display color of the target image includes: determining, based on the first color information and the preset total quantity, that the other of the starting display color and the ending display color is the product of the reciprocal of the preset total quantity and the first color information; and calculating at least one intermediate display color in a preset color space using a preset interpolation algorithm based on at least one of the ending display color and the starting display color and the preset total quantity, including: determining the nth intermediate display color as (n+1) / m×C in the RGB color space according to the order from starting display to ending display using a linear interpolation algorithm, based on the ending display color and the preset total quantity, where n is a positive number and n=1,2,……,i, i is the number of intermediate display colors, m is the preset total quantity, and C is the ending display color.

[0138] Optionally, based on at least one of the ending display color and the starting display color and the preset total number, in a preset color space, at least one intermediate display color is calculated using a preset interpolation algorithm, including: based on the ending display color, the starting display color, and the preset total number, in the preset color space, using an easing function interpolation algorithm or a Bézier curve interpolation algorithm to calculate a plurality of intermediate display colors located between the starting display color and the ending display color.

[0139] Optionally, obtaining the first color information of the target image includes: obtaining the color information of the target image when it is displayed at maximum brightness, and obtaining the first color information.

[0140] Optionally, controlling the display device to sequentially display multiple corrected second color information in a predetermined order includes: sending the multiple corrected second color information to a color wheel register in order of increasing brightness, so that the color wheel register controls the display device to sequentially display the graphics corresponding to the multiple corrected second color information.

[0141] Optionally, Gamma correction is performed on multiple second color information, including one of the following: using the Gamma2.2 algorithm to correct multiple second color information to obtain multiple corrected second color information; establishing a Gamma mapping relationship, wherein the Gamma mapping relationship is a correspondence between RGB color values ​​and Gamma2.2 algorithm correction values, and sequentially searching for the Gamma2.2 algorithm correction value corresponding to each second color information from the Gamma mapping relationship to obtain multiple corrected second color information.

[0142] It will be apparent to those skilled in the art that the modules or steps of the present invention can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using device-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular hardware and software combination.

[0143] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0144] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0145] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0146] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0147] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0148] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0149] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0150] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0151] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0152] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for controlling image display, characterized in that, include: Obtain the first color information of the target image and the preset total number of color types, wherein the first color information is the color information of the target image in its normal display state; Based at least the first color information and the preset total quantity, calculate the color information corresponding to each color type to obtain multiple second color information; Gamma correction is performed on multiple second color information items, and the display device is controlled to display the multiple corrected second color information items in a predetermined order to achieve color gradient display of the target image.

2. The method according to claim 1, characterized in that, Based at least on the first color information and the preset total quantity, calculate the color information corresponding to each color type to obtain multiple second color information, including: The first color information is determined to be one of the starting display color and the ending display color of the target image, and the other of the starting display color and the ending display color of the target image is obtained; Based on at least one of the ending display color and the starting display color, and the preset total number, in a preset color space, at least one intermediate display color is calculated using a preset interpolation algorithm to obtain second color information including the starting display color, the ending display color, and at least one of the intermediate display colors. The preset color space includes one of the RGB color space and the HSL / HSV color space, and the preset interpolation algorithm includes one of linear interpolation and nonlinear interpolation.

3. The method according to claim 2, characterized in that, Obtaining the other of the starting display color and the ending display color of the target image includes: determining, based on the first color information and the preset total quantity, that the other of the starting display color and the ending display color is the product of the reciprocal of the preset total quantity and the first color information; Based on at least one of the ending display color and the starting display color, and the preset total number, in a preset color space, at least one intermediate display color is calculated using a preset interpolation algorithm, including: based on the ending display color and the preset total number, in the RGB color space, in the order from the starting display to the ending display, the nth intermediate display color is determined as (n+1) / m×C using a linear interpolation algorithm, where n is a positive number and n=1,2,……,i, i is the number of intermediate display colors, m is the preset total number, and C is the ending display color.

4. The method according to claim 2, characterized in that, Based on at least one of the ending display color and the starting display color, and the preset total number, at least one intermediate display color is calculated using a preset interpolation algorithm within a preset color space, including: Based on the end display color, the start display color, and the preset total quantity, in the preset color space, a plurality of intermediate display colors located between the start display color and the end display color are calculated using an easing function interpolation algorithm or a Bézier curve interpolation algorithm.

5. The method according to claim 1, characterized in that, Obtain the first color information of the target image, including: Obtain the color information of the target image when it is displayed at maximum brightness to obtain the first color information.

6. The method according to claim 1, characterized in that, The control display device sequentially displays multiple corrected second color information in a predetermined order, including: The corrected second color information is sent to the color wheel register in order of increasing brightness, so that the color wheel register controls the display device to display the graphics corresponding to the corrected second color information in sequence.

7. The method according to claim 1, characterized in that, Gamma correction is performed on multiple types of the second color information, including one of the following: The Gamma2.2 algorithm is used to correct multiple pieces of the second color information to obtain multiple corrected pieces of the second color information; A Gamma mapping relationship is established, which is the correspondence between RGB color values ​​and Gamma2.2 algorithm correction values. The Gamma2.2 algorithm correction values ​​corresponding to each second color information are sequentially searched from the Gamma mapping relationship to obtain multiple corrected second color information.

8. An image display control device, characterized in that, include: The acquisition unit is used to acquire the first color information of the target image and the preset total number of color types, wherein the first color information is the color information of the target image in its normal display state; The calculation unit is configured to calculate, based at least on the first color information and the preset total quantity, color information corresponding to each color type, thereby obtaining multiple second color information; The correction unit is used to perform Gamma correction on multiple second color information and control the display device to display multiple corrected second color information in a predetermined order to achieve color gradient display of the target image.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform the method according to any one of claims 1 to 7.

10. An electronic device, characterized in that, include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising methods for performing any one of claims 1 to 7.