pub struct SCRecordingOutputCodec(/* private fields */);Expand description
An AVVideoCodecType identifier used for recording.
The identifier is open-ended: values introduced by future macOS releases remain distinct and can be passed back to the framework.
Implementations§
Source§impl SCRecordingOutputCodec
impl SCRecordingOutputCodec
Sourcepub const PRO_RES_422: Self
pub const PRO_RES_422: Self
Apple ProRes 422 (AVVideoCodecType.proRes422)
Sourcepub const PRO_RES_4444: Self
pub const PRO_RES_4444: Self
Apple ProRes 4444 (AVVideoCodecType.proRes4444)
Sourcepub const HEVC_WITH_ALPHA: Self
pub const HEVC_WITH_ALPHA: Self
HEVC with an alpha channel (AVVideoCodecType.hevcWithAlpha)
Sourcepub const PRO_RES_422_HQ: Self
pub const PRO_RES_422_HQ: Self
Apple ProRes 422 HQ (AVVideoCodecType.proRes422HQ)
Sourcepub const PRO_RES_422_LT: Self
pub const PRO_RES_422_LT: Self
Apple ProRes 422 LT (AVVideoCodecType.proRes422LT)
Sourcepub const PRO_RES_422_PROXY: Self
pub const PRO_RES_422_PROXY: Self
Apple ProRes 422 Proxy (AVVideoCodecType.proRes422Proxy)
Sourcepub fn from_identifier(
identifier: impl Into<String>,
) -> Result<Self, InvalidRecordingIdentifier>
pub fn from_identifier( identifier: impl Into<String>, ) -> Result<Self, InvalidRecordingIdentifier>
Construct an arbitrary codec identifier.
§Errors
Returns InvalidRecordingIdentifier when the identifier contains an
interior NUL byte.
Sourcepub fn identifier(&self) -> &str
pub fn identifier(&self) -> &str
The underlying AVVideoCodecType.rawValue.
Trait Implementations§
Source§impl Clone for SCRecordingOutputCodec
impl Clone for SCRecordingOutputCodec
Source§fn clone(&self) -> SCRecordingOutputCodec
fn clone(&self) -> SCRecordingOutputCodec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SCRecordingOutputCodec
impl Debug for SCRecordingOutputCodec
Source§impl Default for SCRecordingOutputCodec
impl Default for SCRecordingOutputCodec
Source§impl Display for SCRecordingOutputCodec
impl Display for SCRecordingOutputCodec
impl Eq for SCRecordingOutputCodec
Source§impl Hash for SCRecordingOutputCodec
impl Hash for SCRecordingOutputCodec
Source§impl PartialEq for SCRecordingOutputCodec
impl PartialEq for SCRecordingOutputCodec
Source§fn eq(&self, other: &SCRecordingOutputCodec) -> bool
fn eq(&self, other: &SCRecordingOutputCodec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SCRecordingOutputCodec
Auto Trait Implementations§
impl Freeze for SCRecordingOutputCodec
impl RefUnwindSafe for SCRecordingOutputCodec
impl Send for SCRecordingOutputCodec
impl Sync for SCRecordingOutputCodec
impl Unpin for SCRecordingOutputCodec
impl UnsafeUnpin for SCRecordingOutputCodec
impl UnwindSafe for SCRecordingOutputCodec
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