avyos.dev/pkg/simd

package simd

Package Overview

No package-level documentation is provided.

Export GroupCount
Constants0
Variables0
Functions3
Types0

Functions

func BlendOverBGRA(dst, src []byte, pixels int, opacity uint8)

BlendOverBGRA alpha-blends src over dst for pixels BGRA pixels. opacity scales source alpha (0..255).

func CopyBGRA(dst, src []byte, pixels int)

CopyBGRA copies exactly pixels BGRA pixels (4 bytes each) from src to dst. If either slice is too small, it copies the maximum whole-pixel prefix.

func CopyBGRAOpaque(dst, src []byte, pixels int)

CopyBGRAOpaque copies exactly pixels BGRA pixels from src to dst and forces alpha to 0xFF for each copied pixel.