FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    WebGlFrameProducer

    struct · ferroui-media-browser · v0.5.0

    struct WebGlFrameProducer
    

    Allocation policy for the active compositor context. Old generations remain charged to the same budget until their native storage actually retires.

    View source

    Members

    from_interop

    fn from_interop(interop: &dyn ICompositionGpuInterop, budget: FrameBudget) -> Result<Self, MediaError>
    

    Source

    budget

    fn budget(self: &Self) -> FrameBudget
    

    Source

    device

    fn device(self: &Self) -> DeviceIdentity
    

    Source

    device_generation

    fn device_generation(self: &Self) -> u64
    

    Source

    graphics

    fn graphics(self: &Self) -> Acceleration
    

    Source

    with_budget

    fn with_budget(self: &Self, budget: FrameBudget) -> Self
    

    Source

    with_analysis

    fn with_analysis(self: &Self, enabled: bool) -> Self
    

    Source

    stream

    fn stream(self: &Self, source: u64, generation: u64) -> BrowserFrameStream
    

    Source

    is_current

    fn is_current(self: &Self) -> bool
    

    Source

    transfers_frames

    fn transfers_frames(self: &Self) -> bool
    

    Whether frames are transferred to the render worker (#601) rather than written into a texture of a context of this thread.

    Source

    quadrants

    fn quadrants(self: &Self, identity: FrameIdentity, width: u32, height: u32) -> Result<Option<PendingWebGlFrame>, MediaError>
    

    Independent GPU producer. Its framebuffer is bottom-left oriented; presentation must preserve that origin rather than flip CPU pixels.

    Source

    upload

    fn upload(self: &Self, identity: FrameIdentity, width: u32, height: u32, timestamp: Duration, source: &JsValue) -> Result<Option<PendingWebGlFrame>, MediaError>
    

    Transfers a browser-owned HTMLVideoElement image directly to the active GL context. CORS/security failures remain errors; there is no CPU fallback.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Upcast<T>
    • Clone

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.