Expand description
Shared Mediaway types: timebase, pixel/sample formats, GPU buffer handles.
Platform backends and encode/decode crates all depend on this crate.
Keep it dependency-light and unsafe-free.
Structs§
- Audio
Frame - One audio buffer (interleaved PCM).
- Bytes
- A cheaply cloneable and sliceable chunk of contiguous memory.
- Native
Handle - Opaque non-null native pointer /
HANDLEbits. - Packet
- Elementary compressed packet passed between demuxers, decoders, encoders, and muxers.
- Rational
- Integer rational timebase (
num / denseconds) for precise fractional timestamp conversion. - Video
Frame - One video frame — CPU planes or a GPU handle (Zero-Copy).
- Video
Geometry - Pixel dimensions of a video track.
Enums§
- Codec
Kind - Supported codec types for demuxing and muxing.
- GpuBuffer
Handle - Native GPU buffer / texture handle without CPU readback.
- GpuDevice
Handle - Native GPU device handle — owns the buffers submitted via
GpuBufferHandle. - Pixel
Format - Video pixel layout (planar / packed). Extend as backends need.
- Sample
Format - Audio PCM / sample layout.
- Stream
Info - Description of a media stream/track.
- Video
Frame Storage - Where pixel data lives.