media-codec-vpx 0.7.0

Rust bindings to libvpx
Documentation
1
2
3
4
5
6
7
8
9
pub mod decoder;

use std::{borrow::Cow, ffi::CStr};

use media_codec_vpx_sys as vpx_sys;

pub(crate) fn vpx_error_string(error: vpx_sys::vpx_codec_err_t) -> Cow<'static, str> {
    unsafe { CStr::from_ptr(vpx_sys::vpx_codec_err_to_string(error)).to_string_lossy() }
}