pub struct LedRenderer { /* private fields */ }Expand description
LED wall renderer
Implementations§
Source§impl LedRenderer
impl LedRenderer
Sourcepub fn new(config: LedRendererConfig) -> Result<Self>
pub fn new(config: LedRendererConfig) -> Result<Self>
Create new LED renderer
Sourcepub fn set_led_wall(&mut self, wall: LedWall)
pub fn set_led_wall(&mut self, wall: LedWall)
Set LED wall configuration
Sourcepub fn render(
&mut self,
camera_pose: &CameraPose,
source_frame: &[u8],
source_width: usize,
source_height: usize,
timestamp_ns: u64,
) -> Result<RenderOutput>
pub fn render( &mut self, camera_pose: &CameraPose, source_frame: &[u8], source_width: usize, source_height: usize, timestamp_ns: u64, ) -> Result<RenderOutput>
Render frame for LED wall.
Panels are rendered in parallel using Rayon. The projection matrix is shared across panels and computed once before the parallel section.
Sourcepub fn frame_number(&self) -> u64
pub fn frame_number(&self) -> u64
Get current frame number
Sourcepub fn reset_frame_counter(&mut self)
pub fn reset_frame_counter(&mut self)
Reset frame counter
Sourcepub fn config(&self) -> &LedRendererConfig
pub fn config(&self) -> &LedRendererConfig
Get configuration
Auto Trait Implementations§
impl Freeze for LedRenderer
impl RefUnwindSafe for LedRenderer
impl Send for LedRenderer
impl Sync for LedRenderer
impl Unpin for LedRenderer
impl UnsafeUnpin for LedRenderer
impl UnwindSafe for LedRenderer
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