# US 2022/0284846 A1 · Method and apparatus for adjusting display brightness, electronic device, and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0284846 A1
- Document ID: US20220284846A1
- Status: Published application
- Kind: A1
- Application number: 17/826,824
- Filed: 2022-05-27
- Published: 2022-09-08
- Earliest claimed: 2019-11-27
- Assignees: Oneplus Technology (Shenzhen) Co., Ltd.
- Applicants: Oneplus Technology (Shenzhen) Co., Ltd.
- Inventors: Shoufei Miao
- Web page: https://patentgrep.com/patent/US20220284846A1

## CPC

- G09G 3/2059: {using error diffusion}
- G09G 5/02: characterised by the way in which colour is displayed {(details of colour display specific for CRTs G09G1/28; specific for flat matrix panels other than liquid crystal displays G09G3/2003; specific for liquid crystal displays G09G3/3607)}
- G09G 5/10: Intensity circuits
- G09G 2320/0242: Compensation of deficiencies in the appearance of colours
- G09G 2320/043: Preventing or counteracting the effects of ageing
- G09G 2320/0606: Manual adjustment
- G09G 2320/0666: for control of colour parameters, e.g. colour temperature
- G09G 2340/06: Colour space transformation
- G09G 2360/16: Calculation or use of calculated indices related to luminance levels in display data
- G09G 2360/18: Use of a frame buffer in a display terminal, inclusive of the display panel
- G09G: ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION (arrangements for transferring data between digital computers and displays G06F3/14; static indicating arrangements comprising an association of a number of separate sources or light control cells G09F9/00; static indicating arrangements comprising integral associations of a number of light sources H01J, H01K, H10H, H05B33/12; scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission, details thereof H04N1/00)

## Abstract

Provided are a method and apparatus for adjusting display brightness, an electronic device, and a storage medium. The method includes: obtaining (S202) a target brightness value and a color value of each pixel in loaded pixel data to be displayed; adjusting (S204) the color value of each pixel, based on the target brightness value, to obtain the adjusted color value; and performing error diffusion processing on the adjusted color value to obtain an error-diffusion processed color value, and displaying the loaded pixel data to be displayed using the error-diffusion processed color value (S206). The color value of each pixel is adjusted using the target brightness value, the brightness can be adjusted without lighting and blanking the screen and independently of the hardware; and error diffusion processing is performed on the adjusted color value to avoid the problems of color bands and color blocks caused by adjusting the color value.

## Claims

### Claim 1

A method for adjusting display brightness, comprising:
obtaining a target brightness value, and a color value of each pixel in loaded pixel data to be displayed;
adjusting the color value of each pixel based on the target brightness value, to obtain the adjusted color value; and
performing error diffusion processing on the adjusted color value to obtain an error-diffusion processed color value, and displaying the loaded pixel data to be displayed by using the error-diffusion processed color value.

### Claim 2 (depends on 1)

The method according to claim 1, wherein said performing the error diffusion processing on the adjusted color value to obtain the error-diffusion processed color value comprises:
obtaining the adjusted color value of the pixel and coordinate values of the pixel;
processing the coordinate values of the pixel based on a triangular noise algorithm, to generate a quantization error corresponding to the pixel; and
superimposing the quantization error on the adjusted color value of the pixel, to obtain the error-diffusion processed color value of the pixel.

### Claim 3 (depends on 1)

The method according to claim 1, wherein said adjusting the color value of each pixel, based on the target brightness value, to obtain the adjusted color value comprises:
converting the color value of each pixel from a red, green and blue color space to a hue, saturation and brightness color space;
multiplying a brightness component in a color space-converted color value of each pixel by the target brightness value, to obtain a brightness-adjusted color value of each pixel; and
converting the brightness-adjusted color value of each pixel from the hue, saturation and brightness color space to the red, green and blue color space, to obtain a brightness-adjusted color value of each pixel in the red, green and blue color space.

### Claim 4 (depends on 1)

The method according to claim 1, wherein said obtaining the color value of each pixel in the loaded pixel data to be displayed comprises:
when the loaded pixel data to be displayed comprises pixel data corresponding to an image, dividing the image into a plurality of image blocks, and obtaining the color value of each pixel in each of the plurality of image blocks.

### Claim 5 (depends on 1)

The method according to claim 1, further comprising, prior to said obtaining the color value of each pixel in the loaded pixel data to be displayed:
in response to receiving pixel data to be displayed that is drawn by two or more mobile terminal applications, performing synthesis processing on the pixel data to be displayed that is drawn by each of the two or more mobile terminal applications, to obtain synthesized pixel data,
wherein said obtaining the color value of each pixel in the loaded pixel data to be displayed comprises:
obtaining the color value of each pixel in the synthesized pixel data.

### Claim 6 (depends on 1)

The method according to claim 1, wherein said adjusting the color value of each pixel based on the target brightness value, to obtain the adjusted color value comprises:
splitting the color value of each pixel into corresponding red, green and blue color components;
multiplying each of the red, green and blue color components of each pixel by the target brightness value, to obtain brightness-adjusted red, green and blue color components; and
recombining the brightness-adjusted red, green and blue color components to obtain a brightness-adjusted color value.

### Claim 7

An electronic device, comprising:
a memory having a computer program stored thereon; and
a processor,
wherein the computer program, when being executed by the processor, implements a method for adjusting display brightness, the method comprising:
obtaining a target brightness value, and a color value of each pixel in loaded pixel data to be displayed;
adjusting the color value of each pixel based on the target brightness value, to obtain the adjusted color value; and
performing error diffusion processing on the adjusted color value to obtain an error-diffusion processed color value, and displaying the loaded pixel data to be displayed by using the error-diffusion processed color value.

### Claim 8 (depends on 7)

The electronic device according to claim 7, wherein said performing the error diffusion processing on the adjusted color value to obtain the error-diffusion processed color value comprises:
obtaining the adjusted color value of the pixel and coordinate values of the pixel;
processing the coordinate values of the pixel based on a triangular noise algorithm, to generate a quantization error corresponding to the pixel; and
superimposing the quantization error on the adjusted color value of the pixel, to obtain the error-diffusion processed color value of the pixel.

### Claim 9 (depends on 7)

The electronic device according to claim 7, wherein said adjusting the color value of each pixel, based on the target brightness value, to obtain the adjusted color value comprises:
converting the color value of each pixel from a red, green and blue color space to a hue, saturation and brightness color space;
multiplying a brightness component in a color space-converted color value of each pixel by the target brightness value, to obtain a brightness-adjusted color value of each pixel; and
converting the brightness-adjusted color value of each pixel from the hue, saturation and brightness color space to the red, green and blue color space, to obtain a brightness-adjusted color value of each pixel in the red, green and blue color space.

### Claim 10 (depends on 7)

The electronic device according to claim 7, wherein said obtaining the color value of each pixel in the loaded pixel data to be displayed comprises:
when the loaded pixel data to be displayed comprises pixel data corresponding to an image, dividing the image into a plurality of image blocks, and obtaining the color value of each pixel in each of the plurality of image blocks.

### Claim 11 (depends on 7)

The electronic device according to claim 7, wherein the method for adjusting display brightness further comprises, prior to said obtaining the color value of each pixel in the loaded pixel data to be displayed:
in response to receiving pixel data to be displayed that is drawn by two or more mobile terminal applications, performing synthesis processing on the pixel data to be displayed that is drawn by each of the two or more mobile terminal applications, to obtain synthesized pixel data,
wherein said obtaining the color value of each pixel in the loaded pixel data to be displayed comprises:
obtaining the color value of each pixel in the synthesized pixel data.

### Claim 12 (depends on 7)

The electronic device according to claim 7, wherein said adjusting the color value of each pixel based on the target brightness value, to obtain the adjusted color value comprises:
splitting the color value of each pixel into corresponding red, green and blue color components;
multiplying each of the red, green and blue color components of each pixel by the target brightness value, to obtain brightness-adjusted red, green and blue color components; and
recombining the brightness-adjusted red, green and blue color components to obtain a brightness-adjusted color value.

### Claim 13

A computer-readable storage medium, having a computer program stored thereon, wherein the computer program, when being executed by a processor, implements a method for adjusting display brightness, the method comprising:
obtaining a target brightness value, and a color value of each pixel in loaded pixel data to be displayed;
adjusting the color value of each pixel based on the target brightness value, to obtain the adjusted color value; and
performing error diffusion processing on the adjusted color value to obtain an error-diffusion processed color value, and displaying the loaded pixel data to be displayed by using the error-diffusion processed color value.

### Claim 14 (depends on 13)

The computer-readable storage medium according to claim 13, wherein said performing the error diffusion processing on the adjusted color value to obtain the error-diffusion processed color value comprises:
obtaining the adjusted color value of the pixel and coordinate values of the pixel;
processing the coordinate values of the pixel based on a triangular noise algorithm, to generate a quantization error corresponding to the pixel; and
superimposing the quantization error on the adjusted color value of the pixel, to obtain the error-diffusion processed color value of the pixel.

### Claim 15 (depends on 13)

The computer-readable storage medium according to claim 13, wherein said adjusting the color value of each pixel, based on the target brightness value, to obtain the adjusted color value comprises:
converting the color value of each pixel from a red, green and blue color space to a hue, saturation and brightness color space;
multiplying a brightness component in a color space-converted color value of each pixel by the target brightness value, to obtain a brightness-adjusted color value of each pixel; and
converting the brightness-adjusted color value of each pixel from the hue, saturation and brightness color space to the red, green and blue color space, to obtain a brightness-adjusted color value of each pixel in the red, green and blue color space.

### Claim 16 (depends on 13)

The computer-readable storage medium according to claim 13, wherein said obtaining the color value of each pixel in the loaded pixel data to be displayed comprises:
when the loaded pixel data to be displayed comprises pixel data corresponding to an image, dividing the image into a plurality of image blocks, and obtaining the color value of each pixel in each of the plurality of image blocks.

### Claim 17 (depends on 13)

The computer-readable storage medium according to claim 13, wherein the method for adjusting display brightness further comprises, prior to said obtaining the color value of each pixel in the loaded pixel data to be displayed:
in response to receiving pixel data to be displayed that is drawn by two or more mobile terminal applications, performing synthesis processing on the pixel data to be displayed that is drawn by each of the two or more mobile terminal applications, to obtain synthesized pixel data,
wherein said obtaining the color value of each pixel in the loaded pixel data to be displayed comprises:
obtaining the color value of each pixel in the synthesized pixel data.

### Claim 18 (depends on 13)

The computer-readable storage medium according to claim 13, wherein said adjusting the color value of each pixel based on the target brightness value, to obtain the adjusted color value comprises:
splitting the color value of each pixel into corresponding red, green and blue color components;
multiplying each of the red, green and blue color components of each pixel by the target brightness value, to obtain brightness-adjusted red, green and blue color components; and
recombining the brightness-adjusted red, green and blue color components to obtain a brightness-adjusted color value.
