[−][src]Struct sciter::video::AssetPtr
A managed iasset
pointer.
Implementations
impl<T> AssetPtr<T>
[src]
impl<T: NamedInterface> AssetPtr<T>
[src]
Attempt to construct Self
via a conversion.
pub fn try_from<U>(other: &mut AssetPtr<U>) -> Result<Self>
[src]
Retrieve a supported interface of the managed pointer.
Example:
let mut site = AssetPtr::adopt(external_ptr); let source = AssetPtr::<video_source>::try_from(&mut site); assert!(source.is_ok());
Methods from Deref<Target = video_destination>
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.
Trait Implementations
impl Deref for AssetPtr<video_destination>
[src]
type Target = video_destination
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl Deref for AssetPtr<fragmented_video_destination>
[src]
type Target = fragmented_video_destination
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl DerefMut for AssetPtr<video_destination>
[src]
impl DerefMut for AssetPtr<fragmented_video_destination>
[src]
impl<T> Drop for AssetPtr<T>
[src]
Decrements the reference count of a managed pointer.
impl<T> From<*mut T> for AssetPtr<T>
[src]
Attach to an iasset
pointer.
impl<T> Send for AssetPtr<T>
[src]
It's okay to transfer video pointers between threads.
Auto Trait Implementations
impl<T> RefUnwindSafe for AssetPtr<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> !Sync for AssetPtr<T>
impl<T> Unpin for AssetPtr<T>
impl<T> UnwindSafe for AssetPtr<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
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>,