Crate framing [−] [src]
Fast image frames.
Structs
| ChunkyFrame |
A chunky frame. |
| Function |
A frame backed by a function. |
| Grayscale |
A pixel that is one byte long and has just an intensity channel. |
| Rgba |
A pixel that is four bytes long and is made of a red, green, blue and alpha channel, in that order. |
| Yuv |
A three-byte long pixel in the Y'CbCr format. |
Traits
| AsBytes |
Describes a kind of pixel that is made up of a fixed number of bytes. |
| Image |
A |
Functions
| crop |
Crops the given frame to the given rectangle. |
| iter |
Iterates over the pixels of a frame sequentially. |
| map |
Constructs a pointwise mapping over a frame. |
| pad |
Uses the given pixel to pad a frame. |
| par_iter |
Iterates over the pixels of a frame in parallel. |
| scale |
Scales a frame to the given size, using nearest-neighbor interpolation. |