pub struct CMFormatDescription(/* private fields */);Implementations§
Source§impl CMFormatDescription
impl CMFormatDescription
pub fn from_raw(ptr: *mut c_void) -> Option<Self>
Sourcepub unsafe fn from_ptr(ptr: *mut c_void) -> Self
pub unsafe fn from_ptr(ptr: *mut c_void) -> Self
§Safety
The caller must ensure the pointer is a valid CMFormatDescription pointer.
pub fn as_ptr(&self) -> *mut c_void
Sourcepub fn get_media_type(&self) -> u32
pub fn get_media_type(&self) -> u32
Get the media type (video, audio, etc.)
Sourcepub fn media_type(&self) -> FourCharCode
pub fn media_type(&self) -> FourCharCode
Get the media type as FourCharCode
Sourcepub fn get_media_subtype(&self) -> u32
pub fn get_media_subtype(&self) -> u32
Get the media subtype (codec type)
Sourcepub fn media_subtype(&self) -> FourCharCode
pub fn media_subtype(&self) -> FourCharCode
Get the media subtype as FourCharCode
Sourcepub fn get_extensions(&self) -> Option<*const c_void>
pub fn get_extensions(&self) -> Option<*const c_void>
Get format description extensions
Sourcepub fn is_closed_caption(&self) -> bool
pub fn is_closed_caption(&self) -> bool
Check if this is a closed caption format description
Sourcepub fn is_metadata(&self) -> bool
pub fn is_metadata(&self) -> bool
Check if this is a metadata format description
Sourcepub fn is_timecode(&self) -> bool
pub fn is_timecode(&self) -> bool
Check if this is a timecode format description
Sourcepub fn media_type_string(&self) -> String
pub fn media_type_string(&self) -> String
Get a human-readable string for the media type
Sourcepub fn media_subtype_string(&self) -> String
pub fn media_subtype_string(&self) -> String
Get a human-readable string for the media subtype (codec)
Trait Implementations§
Source§impl Clone for CMFormatDescription
impl Clone for CMFormatDescription
Source§impl Display for CMFormatDescription
impl Display for CMFormatDescription
Source§impl Drop for CMFormatDescription
impl Drop for CMFormatDescription
Source§impl Hash for CMFormatDescription
impl Hash for CMFormatDescription
Source§impl PartialEq for CMFormatDescription
impl PartialEq for CMFormatDescription
impl Eq for CMFormatDescription
impl Send for CMFormatDescription
impl Sync for CMFormatDescription
Auto Trait Implementations§
impl Freeze for CMFormatDescription
impl RefUnwindSafe for CMFormatDescription
impl Unpin for CMFormatDescription
impl UnwindSafe for CMFormatDescription
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