#[cfg(all(target_os = "linux", feature = "nvdec"))]
mod device;
pub mod profile;
pub mod size;
#[cfg(all(target_os = "linux", feature = "nvdec"))]
mod backend;
#[cfg(all(target_os = "linux", feature = "nvdec"))]
mod decoder;
#[cfg(all(target_os = "linux", feature = "nvdec"))]
pub use backend::NvdecBackend;
#[cfg(all(target_os = "linux", feature = "nvdec"))]
pub use decoder::NvdecVideoDecoder;
#[cfg(all(target_os = "linux", feature = "nvdec"))]
mod sys;
pub fn available() -> bool {
#[cfg(all(target_os = "linux", feature = "nvdec"))]
return device::present();
#[cfg(not(all(target_os = "linux", feature = "nvdec")))]
false
}
#[doc(hidden)]
pub fn context_created() -> bool {
#[cfg(all(target_os = "linux", feature = "nvdec"))]
return device::created();
#[cfg(not(all(target_os = "linux", feature = "nvdec")))]
false
}