pub struct NvEnc<'lib> {
pub libcuda: LibCuda<'lib>,
pub libnvenc: Rc<LibNvEncode<'lib>>,
pub functions: NvEncodeApiFunctionList<'lib>,
}
Fields§
§libcuda: LibCuda<'lib>
§libnvenc: Rc<LibNvEncode<'lib>>
§functions: NvEncodeApiFunctionList<'lib>
Implementations§
source§impl<'lib> NvEnc<'lib>
impl<'lib> NvEnc<'lib>
pub fn new(libs: &'lib Dynlibs) -> Result<NvEnc<'lib>, NvEncError>
pub fn cuda_version(&self) -> Result<i32, NvEncError>
pub fn cuda_device_count(&self) -> Result<i32, NvEncError>
pub fn new_cuda_device(&self, idx: i32) -> Result<CudaDevice<'_>, NvEncError>
Auto Trait Implementations§
impl<'lib> Freeze for NvEnc<'lib>
impl<'lib> RefUnwindSafe for NvEnc<'lib>
impl<'lib> !Send for NvEnc<'lib>
impl<'lib> !Sync for NvEnc<'lib>
impl<'lib> Unpin for NvEnc<'lib>
impl<'lib> UnwindSafe for NvEnc<'lib>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more