pub trait API {
// Required methods
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);
}Expand description
Abstraction over source or libloading APIs.
Required Methods§
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)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".