Source File
ycbcr.go
Belonging Package
image/color
package color
:= (19595* + 38470* + 7471* + 1<<15) >> 16
:= -11056* - 21712* + 32768* + 257<<15
if uint32()&0xff000000 == 0 {
>>= 16
} else {
= ^( >> 31)
}
var YCbCrModel Model = ModelFunc(yCbCrModel)
func ( Color) Color {
if , := .(YCbCr); {
return
}
, , , := .RGBA()
, , := RGBToYCbCr(uint8(>>8), uint8(>>8), uint8(>>8))
return YCbCr{, , }
}
var NYCbCrAModel Model = ModelFunc(nYCbCrAModel)
func ( Color) Color {
switch c := .(type) {
case NYCbCrA:
return
case YCbCr:
return NYCbCrA{, 0xff}
}
, , , := .RGBA()
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |