pub enum DecoderNativeDeviceContext {
D3D11Device {
device_ptr: usize,
},
AndroidNativeWindow {
window_ptr: usize,
},
Unknown {
name: String,
},
}Expand description
Borrowed native device/context pointer passed from host to decoder plugin.
Variants§
Implementations§
Source§impl DecoderNativeDeviceContext
impl DecoderNativeDeviceContext
pub fn kind(&self) -> DecoderNativeDeviceContextKind
pub fn d3d11_device_ptr(&self) -> Option<usize>
pub fn android_native_window_ptr(&self) -> Option<usize>
Trait Implementations§
Source§impl Clone for DecoderNativeDeviceContext
impl Clone for DecoderNativeDeviceContext
Source§fn clone(&self) -> DecoderNativeDeviceContext
fn clone(&self) -> DecoderNativeDeviceContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecoderNativeDeviceContext
impl Debug for DecoderNativeDeviceContext
Source§impl<'de> Deserialize<'de> for DecoderNativeDeviceContext
impl<'de> Deserialize<'de> for DecoderNativeDeviceContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DecoderNativeDeviceContext
impl StructuralPartialEq for DecoderNativeDeviceContext
Auto Trait Implementations§
impl Freeze for DecoderNativeDeviceContext
impl RefUnwindSafe for DecoderNativeDeviceContext
impl Send for DecoderNativeDeviceContext
impl Sync for DecoderNativeDeviceContext
impl Unpin for DecoderNativeDeviceContext
impl UnsafeUnpin for DecoderNativeDeviceContext
impl UnwindSafe for DecoderNativeDeviceContext
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