func (p *ycc) PixOffset(x, y int) int {
	return (y-p.Rect.Min.Y)*p.Stride + (x-p.Rect.Min.X)*3
}
PixOffset returns the index of the first element of Pix that corresponds to
the pixel at (x, y).
package resize
import (
	"image"
	"image/color"
)
type ycc struct {
	Pix []uint8
	Stride int
	Rect image.Rectangle
	SubsampleRatio image.YCbCrSubsampleRatio
}