pub enum OpenH264API {
Source(APILoader),
}Expand description
Convenience wrapper around libloading and source API surfaces.
This type mainly exists to prevent infecting the rest of the OpenH264 crate with generics. The dispatch overhead in contrast to H.264 computation is absolutely negligible.
Variants§
Implementations§
Source§impl DynamicAPI
impl DynamicAPI
Sourcepub fn from_source() -> DynamicAPI
pub fn from_source() -> DynamicAPI
Creates an OpenH264 API using the built-in source if available.
Trait Implementations§
Source§impl API for DynamicAPI
impl API for DynamicAPI
unsafe fn WelsCreateSVCEncoder( &self, ppEncoder: *mut *mut *const ISVCEncoderVtbl, ) -> i32
unsafe fn WelsDestroySVCEncoder(&self, pEncoder: *mut *const ISVCEncoderVtbl)
unsafe fn WelsGetDecoderCapability( &self, pDecCapability: *mut TagDecoderCapability, ) -> i32
unsafe fn WelsCreateDecoder( &self, ppDecoder: *mut *mut *const ISVCDecoderVtbl, ) -> i64
unsafe fn WelsDestroyDecoder(&self, pDecoder: *mut *const ISVCDecoderVtbl)
unsafe fn WelsGetCodecVersion(&self) -> _tagVersion
unsafe fn WelsGetCodecVersionEx(&self, pVersion: *mut _tagVersion)
Auto Trait Implementations§
impl Freeze for DynamicAPI
impl RefUnwindSafe for DynamicAPI
impl Send for DynamicAPI
impl Sync for DynamicAPI
impl Unpin for DynamicAPI
impl UnwindSafe for DynamicAPI
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