pub struct RenderedFrame { /* private fields */ }Expand description
One frame a source rendered.
Implementations§
Source§impl RenderedFrame
impl RenderedFrame
Sourcepub fn precision(&self) -> String
pub fn precision(&self) -> String
The pixels’ precision: rgba8 for Self::pixels, linear_f16
for Self::half_pixels.
Sourcepub fn pixels(&self) -> Uint8Array
pub fn pixels(&self) -> Uint8Array
Premultiplied, sRGB-encoded RGBA8 rows, packed; empty for another precision. Copied once, from the pixels the source shares, straight into a new JavaScript array.
Sourcepub fn half_pixels(&self) -> Uint16Array
pub fn half_pixels(&self) -> Uint16Array
Premultiplied linear-light RGBA half floats (their bits) in BT.709
primaries, rows packed; empty for another precision. Copied once,
as Self::pixels is.
Sourcepub fn diagnostics(&self) -> String
pub fn diagnostics(&self) -> String
What producing the frame found, as a JSON array of diagnostics.
Sourcepub fn start_ticks(&self) -> i64
pub fn start_ticks(&self) -> i64
The first source tick it shows at; 0 for the first frame, which also answers every earlier time.
Trait Implementations§
Source§impl From<RenderedFrame> for JsValue
impl From<RenderedFrame> for JsValue
Source§fn from(value: RenderedFrame) -> Self
fn from(value: RenderedFrame) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for RenderedFrame
impl FromWasmAbi for RenderedFrame
Source§impl IntoWasmAbi for RenderedFrame
impl IntoWasmAbi for RenderedFrame
Source§impl LongRefFromWasmAbi for RenderedFrame
impl LongRefFromWasmAbi for RenderedFrame
Source§type Abi = WasmPtr<WasmRefCell<RenderedFrame>>
type Abi = WasmPtr<WasmRefCell<RenderedFrame>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<RenderedFrame>
type Anchor = RcRef<RenderedFrame>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for RenderedFrame
impl OptionFromWasmAbi for RenderedFrame
Source§impl OptionIntoWasmAbi for RenderedFrame
impl OptionIntoWasmAbi for RenderedFrame
Source§impl RefFromWasmAbi for RenderedFrame
impl RefFromWasmAbi for RenderedFrame
Source§type Abi = WasmPtr<WasmRefCell<RenderedFrame>>
type Abi = WasmPtr<WasmRefCell<RenderedFrame>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<RenderedFrame>
type Anchor = RcRef<RenderedFrame>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for RenderedFrame
impl RefMutFromWasmAbi for RenderedFrame
Source§type Abi = WasmPtr<WasmRefCell<RenderedFrame>>
type Abi = WasmPtr<WasmRefCell<RenderedFrame>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<RenderedFrame>
type Anchor = RcRefMut<RenderedFrame>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiimpl SupportsConstructor for RenderedFrame
impl SupportsInstanceProperty for RenderedFrame
impl SupportsStaticProperty for RenderedFrame
Source§impl TryFromJsValue for RenderedFrame
impl TryFromJsValue for RenderedFrame
Source§impl VectorFromWasmAbi for RenderedFrame
impl VectorFromWasmAbi for RenderedFrame
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[RenderedFrame]>
Source§impl VectorIntoWasmAbi for RenderedFrame
impl VectorIntoWasmAbi for RenderedFrame
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[RenderedFrame]>) -> Self::Abi
Source§impl WasmDescribeVector for RenderedFrame
impl WasmDescribeVector for RenderedFrame
Auto Trait Implementations§
impl Freeze for RenderedFrame
impl RefUnwindSafe for RenderedFrame
impl Send for RenderedFrame
impl Sync for RenderedFrame
impl Unpin for RenderedFrame
impl UnsafeUnpin for RenderedFrame
impl UnwindSafe for RenderedFrame
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.