Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
An efficient and idiomatic cadeau to Rust
Idiomatic wrapper around the Cadeau library: performance primitives and media foundation.
It’s possible to choose between dynamically loading the library and regular static / dynamic linking at build-time for a total of three options. See xmf-sys to learn more about this.
Read decoded VPX pixels
VpxImage::i420_planes() borrows the Y, U and V planes of an 8-bit I420 image without copying.
Use each plane's rows() iterator to read its visible pixels safely; the row slices keep the image borrowed, so the decoder cannot decode again while they are in use.
The plane does not expose a single byte slice, because libvpx may leave the padding between rows uninitialized.
Code that takes a base pointer and a stride, such as a C or SIMD color converter, can use the unsafe as_ptr() with stride(), width() and height().
Its safety section lists what the caller must uphold: read only the width() pixel bytes of each row, and stop using the pointer before the image is dropped.
Example: generate a WebM file from a PNG image
use Image;
use Recorder;