oximedia
Facade crate for the OxiMedia multimedia framework.
Overview
oximedia is the main entry point for using the OxiMedia framework. It re-exports types from all component crates for convenient access:
oximedia-core- Core types and traitsoximedia-io- I/O and bit-level readingoximedia-container- Container demuxing/muxing
Usage
Basic Import
use *;
Format Probing
use *;
Available Types
From oximedia-core:
| Type | Description |
|---|---|
Rational |
Exact rational numbers |
Timestamp |
Media timestamps with timebase |
PixelFormat |
Video pixel formats |
SampleFormat |
Audio sample formats |
CodecId |
Codec identifiers |
MediaType |
Media type (Video, Audio, Subtitle) |
OxiError |
Unified error type |
From oximedia-io:
| Type | Description |
|---|---|
BitReader |
Bit-level reading |
MediaSource |
Async media source trait |
FileSource |
File-based source |
MemorySource |
Memory-based source |
From oximedia-container:
| Type | Description |
|---|---|
ContainerFormat |
Container format enum |
Packet |
Compressed media packet |
PacketFlags |
Packet properties |
StreamInfo |
Stream metadata |
Demuxer |
Demuxer trait |
probe_format |
Format detection function |
Prelude
The prelude module exports the most commonly used types:
pub use crate::;
pub use MediaSource;
pub use Demuxer;
Example
use *;
async
Policy
- No unsafe code (
#![forbid(unsafe_code)]) - No warnings
- Apache 2.0 license
License
Apache-2.0