vsd-mp4 0.1.2

Port of mp4 parser from shaka-player project.
Documentation
#![cfg_attr(docsrs, feature(doc_cfg))]

//! This crate contains a mp4 parser ported from [shaka-player](https://github.com/shaka-project/shaka-player) project.
//! Also, some optional features are added for parsing subtitles and `PSSH` boxes.
//!
//! # Optional Features
//!
//! The following are a list of [Cargo features](https://doc.rust-lang.org/stable/cargo/reference/features.html#the-features-section) that can be
//! enabled or disabled:
//!
//! - **pssh**: Enables support for parsing `PSSH` boxes.
//! - **text-ttml**: Enables support for extracting ttml subtitles.
//! - **text-vtt**: Enables support for extracting vtt subtitles.

mod error;
mod parser;
mod reader;

#[cfg(feature = "pssh")]
#[cfg_attr(docsrs, doc(cfg(feature = "pssh")))]
pub mod pssh;

#[cfg(any(feature = "text-ttml", feature = "text-vtt"))]
#[cfg_attr(docsrs, doc(cfg(any(feature = "text-ttml", feature = "text-vtt"))))]
pub mod text;

pub use error::{Error, ErrorType};
pub use parser::*;
pub use reader::Reader;

/// A `Result` alias where the `Err` case is `vsd_mp4::Error`.
pub type Result<T> = std::result::Result<T, Error>;