Struct winsafe::AM_MEDIA_TYPE
source · #[repr(C)]pub struct AM_MEDIA_TYPE<'a> {
pub majortype: MEDIATYPE,
pub subtype: GUID,
pub lSampleSize: u32,
pub formattype: MEDIA_FORMAT,
/* private fields */
}
Available on crate feature
dshow
only.Expand description
AM_MEDIA_TYPE
struct.
Fields§
§majortype: MEDIATYPE
§subtype: GUID
§lSampleSize: u32
§formattype: MEDIA_FORMAT
Implementations§
source§impl<'a> AM_MEDIA_TYPE<'a>
impl<'a> AM_MEDIA_TYPE<'a>
sourcepub const fn bFixedSizeSamples(&self) -> bool
pub const fn bFixedSizeSamples(&self) -> bool
Returns the bool field.
sourcepub fn set_bFixedSizeSamples(&mut self, val: bool)
pub fn set_bFixedSizeSamples(&mut self, val: bool)
Sets the bool field.
sourcepub const fn bTemporalCompression(&self) -> bool
pub const fn bTemporalCompression(&self) -> bool
Returns the bool field.
sourcepub fn set_bTemporalCompression(&mut self, val: bool)
pub fn set_bTemporalCompression(&mut self, val: bool)
Sets the bool field.
sourcepub unsafe fn pbFormat<T>(&self) -> Option<&mut T>
pub unsafe fn pbFormat<T>(&self) -> Option<&mut T>
Returns the pbFormat
field.
§Safety
Varies according to the formattype
. If you set it wrong, you’re likely
to cause a buffer overrun.
sourcepub unsafe fn set_pbFormat<T>(&mut self, val: &'a mut T)
pub unsafe fn set_pbFormat<T>(&mut self, val: &'a mut T)
Sets the pbFormat
field.
§Safety
Varies according to the formattype
. If you set it wrong, you’re likely
to cause a buffer overrun.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AM_MEDIA_TYPE<'a>
impl<'a> RefUnwindSafe for AM_MEDIA_TYPE<'a>
impl<'a> !Send for AM_MEDIA_TYPE<'a>
impl<'a> !Sync for AM_MEDIA_TYPE<'a>
impl<'a> Unpin for AM_MEDIA_TYPE<'a>
impl<'a> !UnwindSafe for AM_MEDIA_TYPE<'a>
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