pub struct RawVideoShape {
pub format: FieldTransform<RawVideoFormat>,
pub width: FieldTransform<Dim>,
pub height: FieldTransform<Dim>,
pub framerate: FieldTransform<Rate>,
}Expand description
One output alternative of a raw-video CapsTransform.
Fields§
§format: FieldTransform<RawVideoFormat>§width: FieldTransform<Dim>§height: FieldTransform<Dim>§framerate: FieldTransform<Rate>Implementations§
Source§impl RawVideoShape
impl RawVideoShape
Sourcepub const PASSTHROUGH: Self
pub const PASSTHROUGH: Self
Every field passed through. Retarget from here with the with_*
setters: RawVideoShape::PASSTHROUGH.with_width(FieldTransform::Fixed(w)).
pub fn with_format(self, t: FieldTransform<RawVideoFormat>) -> Self
pub fn with_width(self, t: FieldTransform<Dim>) -> Self
pub fn with_height(self, t: FieldTransform<Dim>) -> Self
pub fn with_framerate(self, t: FieldTransform<Rate>) -> Self
Trait Implementations§
Source§impl Clone for RawVideoShape
impl Clone for RawVideoShape
Source§fn clone(&self) -> RawVideoShape
fn clone(&self) -> RawVideoShape
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 RawVideoShape
impl Debug for RawVideoShape
Source§impl PartialEq for RawVideoShape
impl PartialEq for RawVideoShape
impl StructuralPartialEq for RawVideoShape
Auto Trait Implementations§
impl Freeze for RawVideoShape
impl RefUnwindSafe for RawVideoShape
impl Send for RawVideoShape
impl Sync for RawVideoShape
impl Unpin for RawVideoShape
impl UnsafeUnpin for RawVideoShape
impl UnwindSafe for RawVideoShape
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