Crate framing [] [src]

Fast image frames.

Structs

Bgr

A pixel that is three bytes long and is made of a blue, green and red channel, in that order.

Bgra

A pixel that is four bytes long and is made of a blue, green, red and alpha channel, in that order.

Chunky

A chunky frame.

Function

A frame backed by a function.

Grayscale

A pixel that is one byte long and has just an intensity channel.

Rgb

A pixel that is three bytes long and is made of a red, green and blue channel, in that order.

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 Image is just a still image.

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.