Documentation ¶
Overview ¶
Package nycbcra provides non-alpha-premultiplied Y'CbCr-with-alpha image and color types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ColorModel color.Model = color.ModelFunc(nYCbCrAModel)
ColorModel is the Model for non-alpha-premultiplied Y'CbCr-with-alpha colors.
Functions ¶
This section is empty.
Types ¶
type Color ¶
Color represents a non-alpha-premultiplied Y'CbCr-with-alpha color, having 8 bits each for one luma, two chroma and one alpha component.
type Image ¶
Image is an in-memory image of non-alpha-premultiplied Y'CbCr-with-alpha colors. A and AStride are analogous to the Y and YStride fields of the embedded YCbCr.
func New ¶
func New(r image.Rectangle, subsampleRatio image.YCbCrSubsampleRatio) *Image
New returns a new Image with the given bounds and subsample ratio.
func (*Image) AOffset ¶
AOffset returns the index of the first element of A that corresponds to the pixel at (x, y).
func (*Image) ColorModel ¶
Click to show internal directories.
Click to hide internal directories.