Struct IMFTransform
pub struct IMFTransform(/* private fields */);
Implementations§
§impl IMFTransform
impl IMFTransform
pub unsafe fn GetStreamLimits( &self, pdwinputminimum: *mut u32, pdwinputmaximum: *mut u32, pdwoutputminimum: *mut u32, pdwoutputmaximum: *mut u32, ) -> Result<()>
pub unsafe fn GetStreamCount( &self, pcinputstreams: *mut u32, pcoutputstreams: *mut u32, ) -> Result<()>
pub unsafe fn GetStreamIDs( &self, pdwinputids: &mut [u32], pdwoutputids: &mut [u32], ) -> Result<()>
pub unsafe fn GetInputStreamInfo( &self, dwinputstreamid: u32, pstreaminfo: *mut MFT_INPUT_STREAM_INFO, ) -> Result<()>
pub unsafe fn GetOutputStreamInfo( &self, dwoutputstreamid: u32, ) -> Result<MFT_OUTPUT_STREAM_INFO>
pub unsafe fn GetAttributes(&self) -> Result<IMFAttributes>
pub unsafe fn GetInputStreamAttributes( &self, dwinputstreamid: u32, ) -> Result<IMFAttributes>
pub unsafe fn GetOutputStreamAttributes( &self, dwoutputstreamid: u32, ) -> Result<IMFAttributes>
pub unsafe fn DeleteInputStream(&self, dwstreamid: u32) -> Result<()>
pub unsafe fn AddInputStreams( &self, cstreams: u32, adwstreamids: *const u32, ) -> Result<()>
pub unsafe fn GetInputAvailableType( &self, dwinputstreamid: u32, dwtypeindex: u32, ) -> Result<IMFMediaType>
pub unsafe fn GetOutputAvailableType( &self, dwoutputstreamid: u32, dwtypeindex: u32, ) -> Result<IMFMediaType>
pub unsafe fn SetInputType<P1>(
&self,
dwinputstreamid: u32,
ptype: P1,
dwflags: u32,
) -> Result<()>where
P1: Param<IMFMediaType>,
pub unsafe fn SetOutputType<P1>(
&self,
dwoutputstreamid: u32,
ptype: P1,
dwflags: u32,
) -> Result<()>where
P1: Param<IMFMediaType>,
pub unsafe fn GetInputCurrentType( &self, dwinputstreamid: u32, ) -> Result<IMFMediaType>
pub unsafe fn GetOutputCurrentType( &self, dwoutputstreamid: u32, ) -> Result<IMFMediaType>
pub unsafe fn GetInputStatus(&self, dwinputstreamid: u32) -> Result<u32>
pub unsafe fn GetOutputStatus(&self) -> Result<u32>
pub unsafe fn SetOutputBounds( &self, hnslowerbound: i64, hnsupperbound: i64, ) -> Result<()>
pub unsafe fn ProcessEvent<P1>(
&self,
dwinputstreamid: u32,
pevent: P1,
) -> Result<()>where
P1: Param<IMFMediaEvent>,
pub unsafe fn ProcessMessage( &self, emessage: MFT_MESSAGE_TYPE, ulparam: usize, ) -> Result<()>
pub unsafe fn ProcessInput<P1>(
&self,
dwinputstreamid: u32,
psample: P1,
dwflags: u32,
) -> Result<()>where
P1: Param<IMFSample>,
pub unsafe fn ProcessOutput( &self, dwflags: u32, poutputsamples: &mut [MFT_OUTPUT_DATA_BUFFER], pdwstatus: *mut u32, ) -> Result<()>
Trait Implementations§
§impl CanInto<IUnknown> for IMFTransform
impl CanInto<IUnknown> for IMFTransform
§impl Clone for IMFTransform
impl Clone for IMFTransform
§fn clone(&self) -> IMFTransform
fn clone(&self) -> IMFTransform
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for IMFTransform
impl Debug for IMFTransform
§impl From<&IMFTransform> for &IUnknown
impl From<&IMFTransform> for &IUnknown
§fn from(value: &IMFTransform) -> Self
fn from(value: &IMFTransform) -> Self
Converts to this type from the input type.
§impl From<IMFTransform> for IUnknown
impl From<IMFTransform> for IUnknown
§fn from(value: IMFTransform) -> Self
fn from(value: IMFTransform) -> Self
Converts to this type from the input type.
§impl Interface for IMFTransform
impl Interface for IMFTransform
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for IMFTransform
impl PartialEq for IMFTransform
impl Eq for IMFTransform
impl StructuralPartialEq for IMFTransform
Auto Trait Implementations§
impl Freeze for IMFTransform
impl RefUnwindSafe for IMFTransform
impl !Send for IMFTransform
impl !Sync for IMFTransform
impl Unpin for IMFTransform
impl UnwindSafe for IMFTransform
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