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
31
32
33
34
35
36
37
38
39
40
41
// TODO
// (?) - will maybe do
// Option for display in 8 bit color (?)
// https://stackoverflow.com/questions/4842424/list-of-ansi-color-escape-sequences
// Mic audio over webcam (?)

//! Transform images and videos to ascii.
//!
//! <img src="https://i.ibb.co/PxCqqvw/example.png" alt="example"><br>
//! <https://www.youtube.com/watch?v=-JT_XlLnAas>
//!
//! ## Dependencies
//! You will need ffmpeg and linux
//!
//! ## How to use
//! The docs have basic documentation.
//! For an example go take a look at the cli source code.
//!
//! ## Features
//! There are two features: webcam and audio. Both are enabled by default.
//!
//! The webcam uses the [nokhwa](https://crates.io/crates/nokhwa) crate.\
//! The audio uses the [rodio](https://crates.io/crates/rodio) crate.
//!
//! You can disable them by adding `default-features = false` to the dependency like so:
//! ```toml
//! paxcii = { version = "*", default-features = false }
//! ```

#[cfg(feature = "audio")]
pub mod audio;
pub mod img;
pub mod settings;
pub mod video;
#[cfg(feature = "webcam")]
pub mod webcam;

pub use settings::PaxciiSettings;
#[cfg(feature = "webcam")]
pub use webcam::webcam;