Enum openh264_sys2::DynamicAPI
source · pub enum DynamicAPI {
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() -> Self
pub fn from_source() -> Self
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 ISVCEncoder) -> c_int
unsafe fn WelsDestroySVCEncoder(&self, pEncoder: *mut ISVCEncoder)
unsafe fn WelsGetDecoderCapability( &self, pDecCapability: *mut SDecoderCapability ) -> c_int
unsafe fn WelsCreateDecoder(&self, ppDecoder: *mut *mut ISVCDecoder) -> c_long
unsafe fn WelsDestroyDecoder(&self, pDecoder: *mut ISVCDecoder)
unsafe fn WelsGetCodecVersion(&self) -> OpenH264Version
unsafe fn WelsGetCodecVersionEx(&self, pVersion: *mut OpenH264Version)
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