Struct windows::Win32::Media::DxMediaObjects::IMediaObject
pub struct IMediaObject(/* private fields */);
Implementations§
§impl IMediaObject
impl IMediaObject
pub unsafe fn GetStreamCount( &self, pcinputstreams: *mut u32, pcoutputstreams: *mut u32 ) -> Result<()>
pub unsafe fn GetInputStreamInfo(&self, dwinputstreamindex: u32) -> Result<u32>
pub unsafe fn GetOutputStreamInfo( &self, dwoutputstreamindex: u32 ) -> Result<u32>
pub unsafe fn GetInputType( &self, dwinputstreamindex: u32, dwtypeindex: u32, pmt: Option<*mut DMO_MEDIA_TYPE> ) -> Result<()>
pub unsafe fn GetOutputType( &self, dwoutputstreamindex: u32, dwtypeindex: u32, pmt: Option<*mut DMO_MEDIA_TYPE> ) -> Result<()>
pub unsafe fn SetInputType( &self, dwinputstreamindex: u32, pmt: Option<*const DMO_MEDIA_TYPE>, dwflags: u32 ) -> Result<()>
pub unsafe fn SetOutputType( &self, dwoutputstreamindex: u32, pmt: Option<*const DMO_MEDIA_TYPE>, dwflags: u32 ) -> Result<()>
pub unsafe fn GetInputCurrentType( &self, dwinputstreamindex: u32, pmt: *mut DMO_MEDIA_TYPE ) -> Result<()>
pub unsafe fn GetOutputCurrentType( &self, dwoutputstreamindex: u32, pmt: *mut DMO_MEDIA_TYPE ) -> Result<()>
pub unsafe fn GetInputSizeInfo( &self, dwinputstreamindex: u32, pcbsize: *mut u32, pcbmaxlookahead: *mut u32, pcbalignment: *mut u32 ) -> Result<()>
pub unsafe fn GetOutputSizeInfo( &self, dwoutputstreamindex: u32, pcbsize: *mut u32, pcbalignment: *mut u32 ) -> Result<()>
pub unsafe fn GetInputMaxLatency(&self, dwinputstreamindex: u32) -> Result<i64>
pub unsafe fn SetInputMaxLatency( &self, dwinputstreamindex: u32, rtmaxlatency: i64 ) -> Result<()>
pub unsafe fn Flush(&self) -> Result<()>
pub unsafe fn Discontinuity(&self, dwinputstreamindex: u32) -> Result<()>
pub unsafe fn AllocateStreamingResources(&self) -> Result<()>
pub unsafe fn FreeStreamingResources(&self) -> Result<()>
pub unsafe fn GetInputStatus(&self, dwinputstreamindex: u32) -> Result<u32>
pub unsafe fn ProcessInput<P0>(
&self,
dwinputstreamindex: u32,
pbuffer: P0,
dwflags: u32,
rttimestamp: i64,
rttimelength: i64
) -> Result<()>where
P0: IntoParam<IMediaBuffer>,
pub unsafe fn ProcessOutput( &self, dwflags: u32, poutputbuffers: &mut [DMO_OUTPUT_DATA_BUFFER], pdwstatus: *mut u32 ) -> Result<()>
pub unsafe fn Lock(&self, block: i32) -> Result<()>
Trait Implementations§
§impl Clone for IMediaObject
impl Clone for IMediaObject
§fn clone(&self) -> IMediaObject
fn clone(&self) -> IMediaObject
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 IMediaObject
impl Debug for IMediaObject
§impl From<&IMediaObject> for &IUnknown
impl From<&IMediaObject> for &IUnknown
§fn from(value: &IMediaObject) -> Self
fn from(value: &IMediaObject) -> Self
Converts to this type from the input type.
§impl From<IMediaObject> for IUnknown
impl From<IMediaObject> for IUnknown
§fn from(value: IMediaObject) -> Self
fn from(value: IMediaObject) -> Self
Converts to this type from the input type.
§impl Interface for IMediaObject
impl Interface for IMediaObject
§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.
§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§impl PartialEq for IMediaObject
impl PartialEq for IMediaObject
§fn eq(&self, other: &IMediaObject) -> bool
fn eq(&self, other: &IMediaObject) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IMediaObject
impl StructuralPartialEq for IMediaObject
Auto Trait Implementations§
impl RefUnwindSafe for IMediaObject
impl !Send for IMediaObject
impl !Sync for IMediaObject
impl Unpin for IMediaObject
impl UnwindSafe for IMediaObject
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