//! Encode a typed [`image::ImageBuffer`] directly with [`avif::encode_buffer`].
//!
//! Prefer this over [`avif::encode`] when you already know the pixel type at compile time: it skips the runtime
//! dispatch of [`image::DynamicImage`] and works straight off a concrete buffer such as `RgbaImage`.
//!
//! Run with:
//!
//! ```text
//! cargo run --example encode_buffer
//! ```
use Error;
use RgbaImage;
const SOURCE: &str = concat!;