发明名称 Transparency-based image processing method, device, and terminal
摘要 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.
申请公布号 US9230347(B2) 申请公布日期 2016.01.05
申请号 US201114342620 申请日期 2011.12.14
申请人 ZTE CORPORATION 发明人 Gu Wei
分类号 G09G5/02;G06T11/00;G06T15/50;G06T15/00 主分类号 G09G5/02
代理机构 Oppedahl Patent Law Firm LLC 代理人 Oppedahl Patent Law Firm LLC
主权项 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, 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; 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), 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).
地址 Shenzhen, Guangdong CN