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§
impl DerefToPyAny for VirtualCameraSettings
impl ExtractPyClassWithClone for VirtualCameraSettings
Source§impl<'py> IntoPyObject<'py> for VirtualCameraSettings
impl<'py> IntoPyObject<'py> for VirtualCameraSettings
Source§type Target = VirtualCameraSettings
type Target = VirtualCameraSettings
Source§type Output = Bound<'py, <VirtualCameraSettings as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <VirtualCameraSettings as IntoPyObject<'py>>::Target>
Source§fn into_pyobject(
self,
py: Python<'py>,
) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
Source§impl PyClass for VirtualCameraSettings
impl PyClass for VirtualCameraSettings
Source§impl PyClassImpl for VirtualCameraSettings
impl PyClassImpl for VirtualCameraSettings
Source§const MODULE: Option<&str> = ::core::option::Option::None
const MODULE: Option<&str> = ::core::option::Option::None
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
Source§const IS_IMMUTABLE_TYPE: bool = false
const IS_IMMUTABLE_TYPE: bool = false
Source§const RAW_DOC: &'static CStr = /// Configuration for [`VirtualCamera::start`].
const RAW_DOC: &'static CStr = /// Configuration for [`VirtualCamera::start`].
Source§const DOC: &'static CStr
const DOC: &'static CStr
text_signature if a constructor is defined. Read moreSource§type Layout = <<VirtualCameraSettings as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<VirtualCameraSettings>
type Layout = <<VirtualCameraSettings as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<VirtualCameraSettings>
Source§type ThreadChecker = NoopThreadChecker
type ThreadChecker = NoopThreadChecker
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
Source§fn dict_offset() -> Option<PyObjectOffset>
fn dict_offset() -> Option<PyObjectOffset>
fn lazy_type_object() -> &'static LazyTypeObject<Self>
§fn weaklist_offset() -> Option<PyObjectOffset>
fn weaklist_offset() -> Option<PyObjectOffset>
Source§impl PyClassNewTextSignature for VirtualCameraSettings
impl PyClassNewTextSignature for VirtualCameraSettings
const TEXT_SIGNATURE: &'static str = "()"
Source§impl PyMethods<VirtualCameraSettings> for PyClassImplCollector<VirtualCameraSettings>
impl PyMethods<VirtualCameraSettings> for PyClassImplCollector<VirtualCameraSettings>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for VirtualCameraSettings
impl PyTypeInfo for VirtualCameraSettings
Source§const NAME: &str = <Self as ::pyo3::PyClass>::NAME
const NAME: &str = <Self as ::pyo3::PyClass>::NAME
prefer using ::type_object(py).name() to get the correct runtime value
Source§const MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
const MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
prefer using ::type_object(py).module() to get the correct runtime value
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
§fn type_object(py: Python<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
§fn is_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_type_of(object: &Bound<'_, PyAny>) -> bool
object is an instance of this type or a subclass of this type.§fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool
object is an instance of this type.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
§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>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
self into an owned Python object, dropping type information.§fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
self into an owned Python object, dropping type information and unbinding it
from the 'py lifetime.§fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
self into a Python object. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
§impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
§fn type_check(object: &Bound<'_, PyAny>) -> bool
fn type_check(object: &Bound<'_, PyAny>) -> bool
§fn classinfo_object(py: Python<'_>) -> Bound<'_, PyAny>
fn classinfo_object(py: Python<'_>) -> Bound<'_, PyAny>
isinstance and issubclass function. Read more