Struct windows::Media::Capture::Frames::MediaFrameFormat
pub struct MediaFrameFormat(/* private fields */);
Implementations§
§impl MediaFrameFormat
impl MediaFrameFormat
pub fn MajorType(&self) -> Result<HSTRING>
pub fn Subtype(&self) -> Result<HSTRING>
pub fn FrameRate(&self) -> Result<MediaRatio>
pub fn Properties(&self) -> Result<IMapView<GUID, IInspectable>>
pub fn VideoFormat(&self) -> Result<VideoMediaFrameFormat>
pub fn AudioEncodingProperties(&self) -> Result<AudioEncodingProperties>
Trait Implementations§
§impl Clone for MediaFrameFormat
impl Clone for MediaFrameFormat
§fn clone(&self) -> MediaFrameFormat
fn clone(&self) -> MediaFrameFormat
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 MediaFrameFormat
impl Debug for MediaFrameFormat
§impl From<&MediaFrameFormat> for &IInspectable
impl From<&MediaFrameFormat> for &IInspectable
§fn from(value: &MediaFrameFormat) -> Self
fn from(value: &MediaFrameFormat) -> Self
Converts to this type from the input type.
§impl From<&MediaFrameFormat> for &IUnknown
impl From<&MediaFrameFormat> for &IUnknown
§fn from(value: &MediaFrameFormat) -> Self
fn from(value: &MediaFrameFormat) -> Self
Converts to this type from the input type.
§impl From<MediaFrameFormat> for IInspectable
impl From<MediaFrameFormat> for IInspectable
§fn from(value: MediaFrameFormat) -> Self
fn from(value: MediaFrameFormat) -> Self
Converts to this type from the input type.
§impl From<MediaFrameFormat> for IUnknown
impl From<MediaFrameFormat> for IUnknown
§fn from(value: MediaFrameFormat) -> Self
fn from(value: MediaFrameFormat) -> Self
Converts to this type from the input type.
§impl Interface for MediaFrameFormat
impl Interface for MediaFrameFormat
§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 MediaFrameFormat
impl PartialEq for MediaFrameFormat
§fn eq(&self, other: &MediaFrameFormat) -> bool
fn eq(&self, other: &MediaFrameFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MediaFrameFormat
impl Send for MediaFrameFormat
impl StructuralPartialEq for MediaFrameFormat
impl Sync for MediaFrameFormat
Auto Trait Implementations§
impl RefUnwindSafe for MediaFrameFormat
impl Unpin for MediaFrameFormat
impl UnwindSafe for MediaFrameFormat
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