1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//! This crate providers ready-made decoders for use with av-metrics or other tools as needed.
//!
//! No decoders are enabled by default. They must be enabled via Cargo features.
//!
//! Currently supported decoder features: y4m

#![deny(missing_docs)]

#[cfg(feature = "y4m")]
mod y4m;

#[cfg(feature = "y4m")]
pub use crate::y4m::Y4MDecoder;

#[cfg(any(
    feature = "ffmpeg",
    feature = "ffmpeg_static",
    feature = "ffmpeg_build"
))]
mod ffmpeg;

#[cfg(any(
    feature = "ffmpeg",
    feature = "ffmpeg_static",
    feature = "ffmpeg_build"
))]
pub use crate::ffmpeg::FfmpegDecoder;

pub use av_metrics::video::decode::{Decoder, VideoDetails};
pub use av_metrics::video::{CastFromPrimitive, ChromaSampling, FrameInfo, Pixel, Plane};