# US 2014/0198124 A1 · Transparency-based image processing method, device, and terminal

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

- Number: US 2014/0198124 A1
- Document ID: US20140198124A1
- Status: Published application
- Kind: A1
- Application number: 14/342,620
- Filed: 2011-12-14
- Published: 2014-07-17
- Earliest claimed: 2011-09-05
- Assignees: Zte Corporation
- Inventors: Wei Gu
- Web page: https://patentgrep.com/patent/US20140198124A1

## CPC

- G06T 11/10: Texturing; Colouring; Generation of textures or colours (retouching, inpainting or scratch removal G06T5/77)
- G06T 15/005: {General purpose rendering architectures}
- G06T 15/503: {Blending, e.g. for anti-aliasing}
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

The present disclosure discloses a transparency-based image processing method, device, and terminal. The method includes steps of: acquiring first simulated pixel information representing a first pixel, and acquiring first transparency information; acquiring second simulated pixel information representing a second pixel, and acquiring second transparency information; calculating third simulated pixel information representing a third pixel as a sum of a product of the first simulated pixel information times the first transparency information and a product of the second simulated pixel information times the second transparency information; and acquiring a third actual pixel by narrowing the third simulated pixel information. Compared with an existing fixed-point-number method, the present disclosure reduces prior six integer multiplications and three integer additions to two integer multiplications and one integer addition, such that efficiency in operating the method may be enhanced; compared with an existing method by looking up a table, the transparency-based image processing method provided by the present disclosure does not require traversing any 2D-array table or occupying more memory.

## Claims

### Claim 1

A transparency-based image processing method, comprising steps of:
acquiring first simulated pixel information representing a first pixel, and acquiring first transparency information;
acquiring second simulated pixel information representing a second pixel, and acquiring second transparency information;
calculating third simulated pixel information representing a third pixel as a sum of a product of the first simulated pixel information times the first transparency information and a product of the second simulated pixel information times the second transparency information; and
acquiring a third actual pixel by narrowing the third simulated pixel information.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising steps of: before executing any of the steps,
acquiring the first simulated pixel information by simulating the first pixel; and
acquiring the second simulated pixel information by simulating the second pixel.

### Claim 3 (depends on 2)

The method according to claim 2, wherein a number of bits of the first simulated pixel information is set as twice a number of bits of the first pixel, and a number of bits of the second simulated pixel information is set as twice a number of bits of the second pixel.

### Claim 4 (depends on 3)

The method according to claim 3, wherein
the number of bits of the first simulated pixel information or the number of bits of the second simulated pixel information equals n+3×transparency when the number of bits of the first pixel or the number of bits of the second pixel equals n, wherein the n is a positive integer; and
when 2m<n+3×transparency<2m+1, n+3×transparency is made to equal 2m+1, wherein the m is a positive integer.

### Claim 5 (depends on 4)

The method according to claim 4, wherein when the number of bits of the first pixel or the number of bits of the second pixel is 16, and transparency=5, the number of bits of the first simulated pixel information or the number of bits of the second simulated pixel information is 32, and the step of acquiring the first simulated pixel information by simulating the first pixel or acquiring the second simulated pixel information by simulating the second pixel comprises:
acquiring a color component R(A) of the first pixel or the second pixel by performing bit-by-bit AND of 0x1F and a value obtained by moving the first pixel or the second pixel to the right by 11 bits; acquiring a color component G(A) of the first pixel or the second pixel by performing bit-by-bit AND of 0x3F and a value obtained by moving the first pixel or the second pixel to the right by 5 bits; and acquiring a color component B(A) of the first pixel or the second pixel by performing bit-by-bit AND of 0x1F and the first pixel or the second pixel; and
acquiring the first simulated pixel information or the second simulated pixel information by performing bit-by-bit OR of a value obtained by moving the color component R(A) to the left by 21 bits, a value obtained by moving the color component G(A) to the left by 10 bits, and the color component B(A).

### Claim 6 (depends on 5)

The method according to claim 5, wherein the step of acquiring a third actual pixel by narrowing the third simulated pixel information comprises:
acquiring an R color component R(SC) of the third simulated pixel information by performing bit-by-bit AND of 0x1F and a value obtained by moving the third simulated pixel information to the right by 26 bits;
acquiring a G color component G(SC) of the third simulated pixel information by performing bit-by-bit AND of 0x3F and a value obtained by moving the third simulated pixel information to the right by 15 bits;
acquiring a B color component B(SC) of the third simulated pixel information by performing bit-by-bit AND of 0x1F and a value obtained by moving the third simulated pixel information to the right by 5 bits; and
acquiring the third actual pixel by performing bit-by-bit OR of a value obtained by moving the R color component R(SC) to the left by 11 bits, a value obtained by moving the G color component G(SC) to the left by 5 bits, and the B color component B(SC).

### Claim 7

A transparency-based image processing device, comprising:
a first pixel processing unit configured to acquire first simulated pixel information representing a first pixel, and acquire first transparency information;
a second pixel processing unit configured to acquire second simulated pixel information representing a second pixel, and acquire second transparency information;
a central processing unit configured to calculate third simulated pixel information representing a third pixel as a sum of a product of the first simulated pixel information times the first transparency information and a product of the second simulated pixel information times the second transparency information; and
a third pixel processing unit configured to acquire a third actual pixel by narrowing the third simulated pixel information.

### Claim 8 (depends on 7)

The device according to claim 7, wherein the first pixel processing unit is further configured to acquire the first simulated pixel information by simulating the first pixel; the second pixel processing unit is further configured to acquire the second simulated pixel information by simulating the second pixel.

### Claim 9 (depends on 8)

The device according to claim 8, wherein a number of bits of the first simulated pixel information is set as twice a number of bits of the first pixel, and a number of bits of the second simulated pixel information is set as twice a number of bits of the second pixel.

### Claim 10 (depends on 9)

The device according to claim 9, wherein
the number of bits of the first simulated pixel information or the number of bits of the second simulated pixel information equals n+3×transparency when the number of bits of the first pixel or the number of bits of the second pixel equals n, wherein the n is a positive integer; and
when 2 m<n+3×transparency<2m+1, n+3×transparency is made to equal 2m+1, wherein the m is a positive integer.

### Claim 11 (depends on 10)

The device according to claim 10, wherein when the number of bits of the first pixel or the number of bits of the second pixel is 16, and transparency=5, the number of bits of the first simulated pixel information or the number of bits of the second simulated pixel information is 32, and the first simulated pixel information or the second simulated pixel information is acquired by
acquiring a color component R(A) of the first pixel or the second pixel by performing bit-by-bit AND of 0x1F and a value obtained by moving the first pixel or the second pixel to the right by 11 bits; acquiring a color component G(A) of the first pixel or the second pixel by performing bit-by-bit AND of 0x3F and a value obtained by moving the first pixel or the second pixel to the right by 5 bits; and acquiring a color component B(A) of the first pixel or the second pixel by performing bit-by-bit AND of 0x1F and the first pixel or the second pixel; and
acquiring the first simulated pixel information or the second simulated pixel information by performing bit-by-bit OR of a value obtained by moving the color component R(A) to the left by 21 bits, a value obtained by moving the color component G(A) to the left by 10 bits, and the color component B(A).

### Claim 12 (depends on 11)

The device according to claim 11, wherein the third pixel processing unit narrows the third simulated pixel information by
acquiring an R color component R(SC) of the third simulated pixel information by performing bit-by-bit AND of 0x1F and a value obtained by moving the third simulated pixel information to the right by 26 bits;
acquiring a G color component G(SC) of the third simulated pixel information by performing bit-by-bit AND of 0x3F and a value obtained by moving the third simulated pixel information to the right by 15 bits;
acquiring a B color component B(SC) of the third simulated pixel information by performing bit-by-bit AND of 0x1F and a value obtained by moving the third simulated pixel information to the right by 5 bits; and
acquiring the third actual pixel by performing bit-by-bit OR of a value obtained by moving the R color component R(SC) to the left by 11 bits, a value obtained by moving the G color component G(SC) to the left by 5 bits, and the B color component B(SC).

### Claim 13 (depends on 7)

A User Equipment, comprising a device according to claim 7.

### Claim 14 (depends on 8)

A User Equipment, comprising a device according to claim 8.

### Claim 15 (depends on 9)

A User Equipment, comprising a device according to claim 9.

### Claim 16 (depends on 10)

A User Equipment, comprising a device according to claim 10.

### Claim 17 (depends on 11)

A User Equipment, comprising a device according to claim 11.

### Claim 18 (depends on 12)

A User Equipment, comprising a device according to claim 12.
