[][src]Struct sciter::video::fragmented_video_destination

#[repr(C)]pub struct fragmented_video_destination { /* fields omitted */ }

Fragmented destination interface, used for partial updates.

Implementations

impl fragmented_video_destination[src]

pub fn is_alive(&self) -> bool[src]

Whether this instance of video_renderer is attached to a DOM element and is capable of playing.

pub fn start_streaming(
    &mut self,
    frame_size: (i32, i32),
    color_space: COLOR_SPACE,
    src: Option<&video_source>
) -> Result<()>
[src]

Start streaming/rendering.

  • frame_size - the width and the height of the video frame.
  • color_space - the color space format of the video frame.
  • src - an optional custom video_source interface implementation, provided by the application.

pub fn stop_streaming(&mut self) -> Result<()>[src]

Stop streaming.

pub fn render_frame(&mut self, data: &[u8]) -> Result<()>[src]

Render the next frame.

pub fn render_frame_part(
    &mut self,
    data: &[u8],
    update_point: (i32, i32),
    update_size: (i32, i32)
) -> Result<()>
[src]

Render the specified part of the current frame.

  • update_point - X and Y coordinates of the update portion.
  • update_size - width and height of the update portion.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.