image: use three-index slice for NewYCbCr.
This ensures that changing an image.YCbCr's Y values can't change its chroma values, even after re-slicing up to capacity. Change-Id: Icb626561522e336a3220e10f456c95330ae7db9e Reviewed-on: https://go-review.googlesource.com/2209Reviewed-by: Rob Pike <r@golang.org>
Showing
Please
register
or
sign in
to comment