pub struct VirtualProduction { /* private fields */ }Expand description
Main virtual production system
Implementations§
Source§impl VirtualProduction
impl VirtualProduction
Sourcepub fn new(config: VirtualProductionConfig) -> Result<Self>
pub fn new(config: VirtualProductionConfig) -> Result<Self>
Create new virtual production system
Sourcepub fn config(&self) -> &VirtualProductionConfig
pub fn config(&self) -> &VirtualProductionConfig
Get current configuration
Sourcepub fn camera_tracker(&self) -> &CameraTracker
pub fn camera_tracker(&self) -> &CameraTracker
Get camera tracker
Sourcepub fn camera_tracker_mut(&mut self) -> &mut CameraTracker
pub fn camera_tracker_mut(&mut self) -> &mut CameraTracker
Get mutable camera tracker
Sourcepub fn led_renderer(&self) -> &LedRenderer
pub fn led_renderer(&self) -> &LedRenderer
Get LED renderer
Sourcepub fn led_renderer_mut(&mut self) -> &mut LedRenderer
pub fn led_renderer_mut(&mut self) -> &mut LedRenderer
Get mutable LED renderer
Sourcepub fn compositor(&self) -> &IcvfxCompositor
pub fn compositor(&self) -> &IcvfxCompositor
Get compositor
Sourcepub fn compositor_mut(&mut self) -> &mut IcvfxCompositor
pub fn compositor_mut(&mut self) -> &mut IcvfxCompositor
Get mutable compositor
Sourcepub fn set_compositor_resolution(
&mut self,
width: usize,
height: usize,
) -> Result<()>
pub fn set_compositor_resolution( &mut self, width: usize, height: usize, ) -> Result<()>
Reconfigure the compositor with a new resolution.
Useful in tests to use a small resolution (e.g. 64×64) for speed.
Sourcepub fn color_pipeline(&self) -> &ColorPipeline
pub fn color_pipeline(&self) -> &ColorPipeline
Get color pipeline
Sourcepub fn color_pipeline_mut(&mut self) -> &mut ColorPipeline
pub fn color_pipeline_mut(&mut self) -> &mut ColorPipeline
Get mutable reference to color pipeline
Sourcepub fn genlock(&self) -> &GenlockSync
pub fn genlock(&self) -> &GenlockSync
Get genlock sync
Sourcepub fn multicam_manager(&self) -> Option<&MultiCameraManager>
pub fn multicam_manager(&self) -> Option<&MultiCameraManager>
Get multi-camera manager
Auto Trait Implementations§
impl Freeze for VirtualProduction
impl RefUnwindSafe for VirtualProduction
impl Send for VirtualProduction
impl Sync for VirtualProduction
impl Unpin for VirtualProduction
impl UnsafeUnpin for VirtualProduction
impl UnwindSafe for VirtualProduction
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
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>
Converts
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>
Converts
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