[−][src]Struct sciter::video::video_destination
Video destination interface, represents video rendering site.
Implementations
impl 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]
&mut self,
frame_size: (i32, i32),
color_space: COLOR_SPACE,
src: Option<&video_source>
) -> Result<()>
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 customvideo_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.
Auto Trait Implementations
impl RefUnwindSafe for video_destination
impl !Send for video_destination
impl !Sync for video_destination
impl Unpin for video_destination
impl UnwindSafe for video_destination
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,