Commit 0b52392e authored by Nigel Tao's avatar Nigel Tao Committed by Rob Pike
Browse files

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/2209


Reviewed-by: default avatarRob Pike <r@golang.org>
parent 43ce5c03
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment