Module framing::video [] [src]

Video frames, formats, and basic operations involving them.

Structs

ChunkyFrame

A chunky frame.

Grayscale

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

PlanarFrame

A planar frame.

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

ByteChannels

Describes a kind of pixel that is made up of a finite number of channels, each one byte long.

VideoFrame

A VideoFrame is just a still image.

Functions

crop

Crops the given frame to the given rectangle.

map

Constructs a pointwise mapping over a frame.

pad

Uses the given pixel to pad a frame.

pixels

Iterates over the pixels of a frame in parallel.

scale

Scales a frame to the given size, using nearest-neighbor interpolation.