Home | History | Annotate | Download | only in png

Lines Matching full:bytesperpixel

435 	bytesPerPixel := (bitsPerPixel + 7) / 8
460 for i := bytesPerPixel; i < len(cdat); i++ {
461 cdat[i] += cdat[i-bytesPerPixel]
471 for i := 0; i < bytesPerPixel; i++ {
474 for i := bytesPerPixel; i < len(cdat); i++ {
475 cdat[i] += uint8((int(cdat[i-bytesPerPixel]) + int(pdat[i])) / 2)
478 filterPaeth(cdat, pdat, bytesPerPixel)
620 bytesPerPixel int
626 bytesPerPixel = 1
630 bytesPerPixel = 2
634 bytesPerPixel = 1
638 bytesPerPixel = 2
642 bytesPerPixel = 4
646 bytesPerPixel = 8
650 bytesPerPixel = 1
654 bytesPerPixel = 4
658 bytesPerPixel = 8
662 dBase := (y*p.yFactor+p.yOffset-rect.Min.Y)*stride + (p.xOffset-rect.Min.X)*bytesPerPixel
664 d := dBase + x*p.xFactor*bytesPerPixel
665 copy(dstPix[d:], srcPix[s:s+bytesPerPixel])
666 s += bytesPerPixel