media-codec-vpx 0.8.0

A VP8/VP9 decoder implementation based on libvpx for media-codec
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() }
}