fn bgra_to_rgba(bgra: &[u8]) -> Vec<u8> ⓘExpand description
In-place byte swap on each pixel: BGRA → RGBA. Allocates a new
Vec<u8> rather than mutating in place so the worker’s frame
buffer is preserved (the follow-up wisp commit will upload the
same BGRA bytes to VideoTexture and benefits from byte order
matching the wisp expectation).