Crate ravif[][src]

Structs

Config

Encoder configuration struct

Img

Basic struct used for both owned (alias ImgVec) and borrowed (alias ImgRef) image fragments.

Enums

ColorSpace

See Config

Functions

cleared_alpha

Clear/change RGB components of fully-transparent RGBA pixels to make them cheaper to encode with AV1

encode_raw_planes

If config.color_space is ColorSpace::YCbCr, then it takes 8-bit BT709 color space.

encode_rgb

Make a new AVIF image from RGB pixels

encode_rgba

Make a new AVIF image from RGBA pixels (non-premultiplied, alpha last)

Type Definitions

RGB8

8-bit RGB

RGBA8

8-bit RGBA, alpha is last. 0 = transparent, 255 = opaque.