#[repr(C)]pub struct VideoConfig {
pub source: AzString,
pub autoplay: bool,
pub looping: bool,
pub output_format: RawImageFormat,
}Expand description
Requested video-playback configuration.
Fields§
§source: AzStringSource URL or file path (decoded via vk-video + HTTP-range fetch).
autoplay: boolStart playing automatically on mount.
looping: boolRestart from the beginning when the stream ends.
output_format: RawImageFormatTexture format the decoder delivers. BGRA8 is the portable default;
Nv12 (a later RawImageFormat addition) is the zero-copy path.
Implementations§
Trait Implementations§
Source§impl Clone for VideoConfig
impl Clone for VideoConfig
Source§fn clone(&self) -> VideoConfig
fn clone(&self) -> VideoConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VideoConfig
impl Debug for VideoConfig
Source§impl Default for VideoConfig
impl Default for VideoConfig
Source§impl PartialEq for VideoConfig
impl PartialEq for VideoConfig
Source§fn eq(&self, other: &VideoConfig) -> bool
fn eq(&self, other: &VideoConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VideoConfig
Auto Trait Implementations§
impl Freeze for VideoConfig
impl RefUnwindSafe for VideoConfig
impl Send for VideoConfig
impl Sync for VideoConfig
impl Unpin for VideoConfig
impl UnsafeUnpin for VideoConfig
impl UnwindSafe for VideoConfig
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