Skip to main content

Crate ferroui_media

Crate ferroui_media 

Source
Expand description

Shared media frames, events, errors and renderer-host contracts. Video playback, camera capture and QR recognition are separate crates.

Modules§

frames
Shared producer frames. Native storage is immutable while leased; GPU reads retain leases through actual completion, independently of UI/job lifetimes.

Structs§

MediaError
MediaEvent
UI-thread event with reentrant delivery and deterministic subscription Drop.
MediaSubscription
Dropping it removes the handler.
RendererViewport
TextureRendererHost

Enums§

MediaErrorKind
RenderSchedule

Traits§

TextureRenderer

Functions§

allocate_source_id
Allocates one process-unique framework source identity. Generation and frame sequence remain local to that source. Native clients may use this for hosts.
project_frame_point
Projects a QR/source corner through the same crop/orientation and planar client matrix as the sampled frame. Non-planar mapping stays client-owned.
project_texture_point
Projects a planar texture corner with a client-supplied column-major matrix. Points on/behind the viewing plane and non-finite inputs are rejected.

Type Aliases§

MediaFuture