avyos.dev/pkg/simd

package simd

Overview

No package-level documentation is provided.

Export GroupCount
Constants0
Variables0
Functions3
Types0

Functions

BlendOverBGRA

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).

CopyBGRA

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.

CopyBGRAOpaque

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.