Realm

oa::ui::CvFrame

Diagnostic frame: borrowed base pixels plus ordered CPU overlays. base borrows a packed RGBA8 texture; render reads it back before compositing. A None base composites over a black canvas. Donor: oa::CvFrame.

StRust public API

Declaration

pub struct CvFrame<'a> { pub base: Option<&'a Texture>, pub w: i32, pub h: i32, pub overlays: Vec<CvOverlay>, }
Public Rust declaration.

Public Methods

pub fn add_bboxes(&mut self, boxes: Vec<CvBbox>, config: &CvBboxesConfig)
pub fn clear_overlays(&mut self)
pub fn render(&self, engine: &Engine) -> Result<Texture>
pub fn render_with_rgba( &self, engine: &Engine, base_rgba: &[u8], ) -> Result<Texture>

Associated Functions

fn default() -> CvFrame<'a>

Public Data Members

baseOption<&'a Texture>field
wi32field
hi32field
overlaysVec<CvOverlay>field

Public Method Documentation

pub fn add_bboxes( &mut self, boxes: Vec<CvBbox>, config: &CvBboxesConfig )
No public source comment is attached to this declaration.
pub fn clear_overlays( &mut self )
No public source comment is attached to this declaration.
pub fn render( &self, engine: &Engine ) -> Result<Texture>
No public source comment is attached to this declaration.
pub fn render_with_rgba( &self, engine: &Engine, base_rgba: &[u8] ) -> Result<Texture>
No public source comment is attached to this declaration.
fn default() -> CvFrame<'a>
No public source comment is attached to this declaration.