Lines Matching defs:YCbCr
11 // YCbCrSubsampleRatio is the chroma subsample ratio used in a YCbCr image.
41 // YCbCr is an in-memory image of Y'CbCr colors. There is one Y sample per
54 type YCbCr struct {
62 func (p *YCbCr) ColorModel() color.Model {
66 func (p *YCbCr) Bounds() Rectangle {
70 func (p *YCbCr) At(x, y int) color.Color {
74 func (p *YCbCr) YCbCrAt(x, y int) color.YCbCr {
76 return color.YCbCr{}
80 return color.YCbCr{
89 func (p *YCbCr) YOffset(x, y int) int {
95 func (p *YCbCr) COffset(x, y int) int {
114 func (p *YCbCr) SubImage(r Rectangle) Image {
120 return &YCbCr{
126 return &YCbCr{
137 func (p *YCbCr) Opaque() bool {
141 // NewYCbCr returns a new YCbCr with the given bounds and subsample ratio.
142 func NewYCbCr(r Rectangle, subsampleRatio YCbCrSubsampleRatio) *YCbCr {
169 return &YCbCr{