pub struct VirtualCameraSettings {
pub socket_path: String,
pub width: u32,
pub height: u32,
pub fps_num: u32,
pub fps_den: u32,
pub pixel_format: String,
pub slots: u32,
pub queue_depth: u32,
pub device_path: String,
pub pipewire: bool,
pub pipewire_node_name: String,
}Expand description
Configuration for VirtualCamera::start.
Fields§
§socket_path: StringUnix socket the interposer connects to.
width: u32Advertised frame size; incoming frames are scaled and letterboxed to fit.
height: u32§fps_num: u32Advertised frame rate as a fraction.
fps_den: u32§pixel_format: StringRaw device pixel format: “I420”, “NV12”, or “YUYV”. Device pixel format: “I420” (the default; the browsers’ preference), “NV12”, “YUYV”, or “MJPEG” — a compressed device that carries an MJPEG uplink’s frames as received (no decode, one copy) and re-encodes only frames that must be fitted into the device size or arrive in another codec.
slots: u32Ring slots (2..4); more slots tolerate slower readers.
queue_depth: u32Encoded frames buffered ahead of the decoder before the oldest is dropped.
device_path: Stringv4l2loopback output device: “” for none, “auto” to use the first one found, or a path.
pipewire: boolAlso publish the camera as a PipeWire Video/Source node when a daemon is reachable.
pipewire_node_name: StringPipeWire node name (the description shown to users is fixed).
Trait Implementations§
Source§impl Clone for VirtualCameraSettings
impl Clone for VirtualCameraSettings
Source§fn clone(&self) -> VirtualCameraSettings
fn clone(&self) -> VirtualCameraSettings
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VirtualCameraSettings
impl Debug for VirtualCameraSettings
Source§impl Default for VirtualCameraSettings
impl Default for VirtualCameraSettings
Source§impl PartialEq for VirtualCameraSettings
impl PartialEq for VirtualCameraSettings
impl StructuralPartialEq for VirtualCameraSettings
Auto Trait Implementations§
impl Freeze for VirtualCameraSettings
impl RefUnwindSafe for VirtualCameraSettings
impl Send for VirtualCameraSettings
impl Sync for VirtualCameraSettings
impl Unpin for VirtualCameraSettings
impl UnsafeUnpin for VirtualCameraSettings
impl UnwindSafe for VirtualCameraSettings
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
§fn null_value() -> T
fn null_value() -> T
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().