Works with
•JSR Score70%•It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun




Published2 years ago (0.215.0)
Functions
f
getRowPadding(width: number): Padding
Calculates the number of bytes including necessary padding when passing a GPUImageCopyBuffer.
f
resliceBufferWithPadding(): Uint8Array
buffer: Uint8Array,
width: number,
height: number
Creates a new buffer while removing any unnecessary empty bytes. Useful for when wanting to save an image as a specific format.
Interfaces
I
Return value for getRowPadding.
Variables
v
Number of bytes per pixel.
v
Buffer-Texture copies must have [bytes_per_row] aligned to this number.