1
0
mirror of https://github.com/golang/go synced 2024-11-22 04:54:42 -07:00

image/color: rename modelYCbCr to yCbCrModel.

This matches the other color models. It seems that this was missed
during the review of 5544073.

R=nigeltao, david.crawshaw
CC=golang-dev
https://golang.org/cl/5536057
This commit is contained in:
Benny Siegert 2012-01-19 09:34:37 +11:00 committed by Nigel Tao
parent f203093852
commit be93207c8f

View File

@ -87,9 +87,9 @@ func (c YCbCr) RGBA() (uint32, uint32, uint32, uint32) {
}
// YCbCrModel is the Model for Y'CbCr colors.
var YCbCrModel Model = ModelFunc(modelYCbCr)
var YCbCrModel Model = ModelFunc(yCbCrModel)
func modelYCbCr(c Color) Color {
func yCbCrModel(c Color) Color {
if _, ok := c.(YCbCr); ok {
return c
}