packages/pixel/src/format/argb8888.ts
import { swapLane13 } from "@thi.ng/binary/swizzle";
import { Lane } from "../api.js";
import { defIntFormat } from "./int-format.js";
export const ARGB8888 = defIntFormat({
type: "u32",
size: 32,
alpha: 8,
channels: [
{ size: 8, lane: Lane.ALPHA },
{ size: 8, lane: Lane.RED },
{ size: 8, lane: Lane.GREEN },
{ size: 8, lane: Lane.BLUE },
],
fromABGR: swapLane13,
toABGR: swapLane13,
});