[][src]Crate afi

Aldaron's Format Interface

This crate provides APIs for audio and video (buffers, encoders/decoders) Encoder/decoder crates can depend on this crate. Here's a list of crates that do:

  • aci_png - Encode/Decode png & apng
  • aci_ppm - Encode/Decode ppm & pnm

Re-exports

pub use ColorChannels::*;
pub use AudioChannels::*;

Structs

AFrame

An audio frame (2000 samples = 1/24 of a second)

Audio

An Audio Buffer (48kHz/48,000hz).

Index

Index for a frame.

VFrame

A Video Frame

Video

A Video Buffer (24fps).

Enums

AudioChannels

Mono, Stereo or Surround.

ColorChannels

The format for the color channels of the Video.

PathOp

3D Path operation for vector graphics.

Traits

Decoder

A trait for implementing decoding audio, video or both.

EncoderA

A trait for implementing encoding audio.

EncoderAV

A trait for implementing encoding audio and video together.

EncoderV

A trait for implementing encoding video (use only with non-audio formats).

Functions

blend

Blend multiple sRGBA colors in the linear HSVA colorspace.

over

Put sRGBA src color over sRGBA dst color in the linear HSVA colorspace.