Crate rav1e

Source
Expand description

rav1e is an AV1 video encoder. It is designed to eventually cover all use cases, though in its current form it is most suitable for cases where libaom (the reference encoder) is too slow.

ยงFeatures

  • Intra and inter frames
  • 64x64 superblocks
  • 4x4 to 64x64 RDO-selected square and 2:1/1:2 rectangular blocks
  • DC, H, V, Paeth, smooth, and a subset of directional prediction modes
  • DCT, (FLIP-)ADST and identity transforms (up to 64x64, 16x16 and 32x32 respectively)
  • 8-, 10- and 12-bit depth color
  • 4:2:0 (full support), 4:2:2 and 4:4:4 (limited) chroma sampling
  • Variable speed settings
  • Near real-time encoding at high speed levels

ยงUsage

Encoding is done through the Context struct. Examples on Context::receive_packet show how to create a Context, send frames into it and receive packets of encoded data.

Modulesยง

activity ๐Ÿ”’
api ๐Ÿ”’
asm ๐Ÿ”’
built_info ๐Ÿ”’
cdef ๐Ÿ”’
color
Color model information
config
Encoder configuration and settings
cpu_features ๐Ÿ”’
data
Basic data structures
deblock ๐Ÿ”’
dist ๐Ÿ”’
ec ๐Ÿ”’
encoder ๐Ÿ”’
entropymode ๐Ÿ”’
frame ๐Ÿ”’
header ๐Ÿ”’
levels ๐Ÿ”’
lrf ๐Ÿ”’
mc ๐Ÿ”’
me ๐Ÿ”’
partition ๐Ÿ”’
predict ๐Ÿ”’
prelude
Commonly used types and traits.
quantize ๐Ÿ”’
rate ๐Ÿ”’
rdo ๐Ÿ”’
rdo_tables ๐Ÿ”’
recon_intra ๐Ÿ”’
sad_plane ๐Ÿ”’
scan_order ๐Ÿ”’
scenechange ๐Ÿ”’
segmentation ๐Ÿ”’
serialize ๐Ÿ”’
stats ๐Ÿ”’
token_cdfs ๐Ÿ”’
transform ๐Ÿ”’
util ๐Ÿ”’
version
Version information
wasm_bindgen ๐Ÿ”’

Structsยง

Config
Contains the encoder configuration.
Context
The encoder context.
EncoderConfig
Encoder settings which impact the produced bitstream.
Frame
Represents a raw video frame
Packet
Represents a packet.

Enumsยง

EncoderStatus
Status that can be returned by Context functions.
InvalidConfig
Enumeration of possible invalid configuration errors.
PixelType
Types that can be used as pixel types.

Traitsยง

CastFromPrimitive
Trait for casting between primitive types.
Pixel
A type that can be used as a pixel type.