Skip to main content

Crate mediaway_common

Crate mediaway_common 

Source
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§

AudioFrame
One audio buffer (interleaved PCM).
Bytes
A cheaply cloneable and sliceable chunk of contiguous memory.
NativeHandle
Opaque non-null native pointer / HANDLE bits.
Packet
Elementary compressed packet passed between demuxers, decoders, encoders, and muxers.
Rational
Integer rational timebase (num / den seconds) for precise fractional timestamp conversion.
VideoFrame
One video frame — CPU planes or a GPU handle (Zero-Copy).
VideoGeometry
Pixel dimensions of a video track.

Enums§

CodecKind
Supported codec types for demuxing and muxing.
GpuBufferHandle
Native GPU buffer / texture handle without CPU readback.
GpuDeviceHandle
Native GPU device handle — owns the buffers submitted via GpuBufferHandle.
PixelFormat
Video pixel layout (planar / packed). Extend as backends need.
SampleFormat
Audio PCM / sample layout.
StreamInfo
Description of a media stream/track.
VideoFrameStorage
Where pixel data lives.