- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
// https://github.com/WebKit/webkit/blob/e0e7e8f907f4c01c723374e8230a63d46e89e6a0/Source/WebCore/platform/graphics/filters/FEComposite.cpp#L98
static unsigned char clampByte(int c)
{
unsigned char buff[] = { static_cast<unsigned char>(c), 255, 0 };
unsigned uc = static_cast<unsigned>(c);
return buff[!!(uc & ~0xff) + !!(uc & ~(~0u >> 1))];
}
j123123 22.04.2019 23:05 # 0
j123123 22.04.2019 23:19 # +1
https://github.com/WebKit/webkit/commit/5bec6fe272396b07db853f0672fe4b0348e465f7
Patch by Said Abou-Hallawa <sabouhallawa@apple,com> on 2016-04-08
Reviewed by Oliver Hunt.
Ensure the FEComposite arithmetic filter is clamping the resulted color
components in a constant time.
j123123 22.04.2019 23:21 # 0
guest8 23.04.2019 00:01 # −999
guest8 22.04.2019 23:49 # −999
guest8 22.04.2019 23:30 # −999
j123123 22.04.2019 23:38 # +3
guest8 22.04.2019 23:43 # −999
guest8 22.04.2019 23:58 # −999
guest8 23.04.2019 00:00 # −999
6arPoBblu_nemyx 22.04.2019 23:40 # 0
j123123 23.04.2019 00:01 # 0
guest8 23.04.2019 00:02 # −999
j123123 23.04.2019 00:07 # 0
да хз, индифферентно. Не помню чтоб мне было там противно или наоборот хорошо
guest8 23.04.2019 00:11 # −999
6arPoBblu_nemyx 23.04.2019 00:16 # 0
guest8 23.04.2019 00:18 # −999
6arPoBblu_nemyx 23.04.2019 00:42 # 0
guest8 23.04.2019 00:46 # −999
j123123 24.04.2019 01:30 # 0
guest8 24.04.2019 01:37 # −999
guest8 22.04.2019 23:45 # −999
Steve_Brown 25.04.2019 11:17 # 0