Documentation ¶
Index ¶
- Constants
- Variables
- func NewImage(img draw.Image, gen PointsSequenceGenerator, prw PointReadWriter) *rwImage
- type GentlePoint16ReadWriter
- type Image
- type ImageGroup
- type ImageReadWriterYCbCr
- func (i *ImageReadWriterYCbCr) At(x, y int) color.Color
- func (i *ImageReadWriterYCbCr) Bounds() image.Rectangle
- func (i *ImageReadWriterYCbCr) ColorModel() color.Model
- func (i *ImageReadWriterYCbCr) Read(p []byte) (n int, err error)
- func (i *ImageReadWriterYCbCr) Seek(offset int64, whence int) (int64, error)
- func (i *ImageReadWriterYCbCr) Size() (size int64)
- func (i *ImageReadWriterYCbCr) Write(p []byte) (n int, err error)
- type PointReadWriter
- type PointReadWriterRGBA
- type PointReadWriterRGBASimple
- type PointReadWriterYCbCr
- type PointReadWriterYCbCrSimple
- type PointsSequenceGenerator
- type RandPointsSequenceGenerator
- type SimplePoint32ReadWriter
- type SimplePoint64ReadWriter
- type SimplePointsSequenceGenerator
- type SmartPoint8ReadWriter
- type Storage
Constants ¶
View Source
const GentlePoint16Capacity = 2
View Source
const PointReadWriterRGBASimpleCapacity = 1
View Source
const PointReadWriterYCbCrSimpleCapacity = 1
View Source
const SimplePoint32Capacity = 4
View Source
const SimplePoint64Capacity = 8
View Source
const SmartPoint8Capacity = 1
Variables ¶
View Source
var ErrImageReadWriterYCbCrOverflow = errors.New("Overflow")
View Source
var ErrOverflow = errors.New("Overflow")
Functions ¶
func NewImage ¶
func NewImage(img draw.Image, gen PointsSequenceGenerator, prw PointReadWriter) *rwImage
Types ¶
type GentlePoint16ReadWriter ¶
type GentlePoint16ReadWriter struct{}
type Image ¶
type Image interface { io.ReadWriteSeeker }
type ImageGroup ¶
type ImageGroup struct {
// contains filtered or unexported fields
}
func NewImageGroup ¶
func NewImageGroup(images ...*rwImage) *ImageGroup
func (*ImageGroup) Read ¶
func (ig *ImageGroup) Read(p []byte) (n int, err error)
Read implements io.Reader interface
func (*ImageGroup) Rewind ¶
func (ig *ImageGroup) Rewind()
func (*ImageGroup) Size ¶
func (ig *ImageGroup) Size() (size int64)
type ImageReadWriterYCbCr ¶
type ImageReadWriterYCbCr struct {
// contains filtered or unexported fields
}
func NewImageReadWriterYCbCr ¶
func NewImageReadWriterYCbCr(img *image.YCbCr, gen PointsSequenceGenerator, prw PointReadWriterYCbCr) *ImageReadWriterYCbCr
func (*ImageReadWriterYCbCr) At ¶
func (i *ImageReadWriterYCbCr) At(x, y int) color.Color
At implements image.Image interface
func (*ImageReadWriterYCbCr) Bounds ¶
func (i *ImageReadWriterYCbCr) Bounds() image.Rectangle
Bounds implements image.Image interface
func (*ImageReadWriterYCbCr) ColorModel ¶
func (i *ImageReadWriterYCbCr) ColorModel() color.Model
ColorModel implements image.Image interface
func (*ImageReadWriterYCbCr) Read ¶
func (i *ImageReadWriterYCbCr) Read(p []byte) (n int, err error)
Read implements io.Reader interface
func (*ImageReadWriterYCbCr) Seek ¶
func (i *ImageReadWriterYCbCr) Seek(offset int64, whence int) (int64, error)
func (*ImageReadWriterYCbCr) Size ¶
func (i *ImageReadWriterYCbCr) Size() (size int64)
type PointReadWriter ¶
type PointReadWriter interface { // Read reads bytes from color c from position start on point p Read(start int, c color.Color, p image.Point) ([]byte, int) // Write writes bytes b into color c starts on position start on point p and returns number of written bytes Write(b []byte, start int, c color.Color, p image.Point) (color.Color, int) // Return number of bytes possible to be written to point p on current image Size(p image.Point) int64 }
type PointReadWriterRGBA ¶
type PointReadWriterRGBASimple ¶
type PointReadWriterRGBASimple struct{}
type PointReadWriterYCbCr ¶
type PointReadWriterYCbCrSimple ¶
type PointReadWriterYCbCrSimple struct {
Y uint8
}
type PointsSequenceGenerator ¶
type RandPointsSequenceGenerator ¶
type RandPointsSequenceGenerator struct { }
func (*RandPointsSequenceGenerator) Current ¶
func (rpsg *RandPointsSequenceGenerator) Current() image.Point
func (*RandPointsSequenceGenerator) Next ¶
func (rpsg *RandPointsSequenceGenerator) Next()
func (*RandPointsSequenceGenerator) Rewind ¶
func (rpsg *RandPointsSequenceGenerator) Rewind()
func (*RandPointsSequenceGenerator) Seek ¶
func (rpsg *RandPointsSequenceGenerator) Seek(offset uint64)
func (*RandPointsSequenceGenerator) Valid ¶
func (rpsg *RandPointsSequenceGenerator) Valid() bool
type SimplePoint32ReadWriter ¶
type SimplePoint32ReadWriter struct{}
type SimplePoint64ReadWriter ¶
type SimplePoint64ReadWriter struct{}
type SimplePointsSequenceGenerator ¶
type SimplePointsSequenceGenerator struct {
// contains filtered or unexported fields
}
func NewSimplePointsSequenceGenerator ¶
func NewSimplePointsSequenceGenerator(rect image.Rectangle) *SimplePointsSequenceGenerator
func (*SimplePointsSequenceGenerator) Current ¶
func (spsg *SimplePointsSequenceGenerator) Current() image.Point
func (*SimplePointsSequenceGenerator) Next ¶
func (spsg *SimplePointsSequenceGenerator) Next()
func (*SimplePointsSequenceGenerator) Rewind ¶
func (spsg *SimplePointsSequenceGenerator) Rewind()
func (*SimplePointsSequenceGenerator) Seek ¶
func (spsg *SimplePointsSequenceGenerator) Seek(offset uint64)
func (*SimplePointsSequenceGenerator) Valid ¶
func (spsg *SimplePointsSequenceGenerator) Valid() bool
type SmartPoint8ReadWriter ¶
type SmartPoint8ReadWriter struct{}
type Storage ¶
type Storage interface { io.ReadWriteSeeker }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.