pub struct ParametersLayoutShape { /* private fields */ }Expand description
Payload for DemuxError::ParametersLayoutShape.
The non-custom half of what a channel layout can be wrong about, and
the half that went unchecked for eleven rounds of review on the
argument that an order describing its channels through a uint64_t
mask cannot be malformed. The mask is not the only field:
nb_channels is an int a caller writes, and FFmpeg’s helpers
compute nb_channels - popcount(mask) and take an integer square
root of it without checking either.
See
layout_preflight for
the complete rule and why it is one function.
Implementations§
Trait Implementations§
Source§impl Clone for ParametersLayoutShape
impl Clone for ParametersLayoutShape
Source§fn clone(&self) -> ParametersLayoutShape
fn clone(&self) -> ParametersLayoutShape
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 moreimpl Copy for ParametersLayoutShape
Source§impl Debug for ParametersLayoutShape
impl Debug for ParametersLayoutShape
Source§impl Display for ParametersLayoutShape
impl Display for ParametersLayoutShape
impl Eq for ParametersLayoutShape
Source§impl Error for ParametersLayoutShape
impl Error for ParametersLayoutShape
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ParametersLayoutShape> for DemuxError
impl From<ParametersLayoutShape> for DemuxError
Source§fn from(source: ParametersLayoutShape) -> Self
fn from(source: ParametersLayoutShape) -> Self
Converts to this type from the input type.
Source§impl From<ParametersLayoutShape> for Error
impl From<ParametersLayoutShape> for Error
Source§fn from(source: ParametersLayoutShape) -> Self
fn from(source: ParametersLayoutShape) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParametersLayoutShape
impl PartialEq for ParametersLayoutShape
impl StructuralPartialEq for ParametersLayoutShape
Auto Trait Implementations§
impl Freeze for ParametersLayoutShape
impl RefUnwindSafe for ParametersLayoutShape
impl Send for ParametersLayoutShape
impl Sync for ParametersLayoutShape
impl Unpin for ParametersLayoutShape
impl UnsafeUnpin for ParametersLayoutShape
impl UnwindSafe for ParametersLayoutShape
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