1pub mod flag;
2pub use self::flag::Flags;
3
4pub mod color_space;
5pub use self::color_space::ColorSpace;
6
7pub mod support;
8
9pub mod vector;
10pub use self::vector::Vector;
11
12pub mod filter;
13pub use self::filter::Filter;
14
15pub mod context;
16pub use self::context::Context;
17
18mod extensions;
19
20use std::ffi::CStr;
21use std::str::from_utf8_unchecked;
22
23use ffi::*;
24
25pub fn version() -> u32 {
26 unsafe { swscale_version() }
27}
28
29pub fn configuration() -> &'static str {
30 unsafe { from_utf8_unchecked(CStr::from_ptr(swscale_configuration()).to_bytes()) }
31}
32
33pub fn license() -> &'static str {
34 unsafe { from_utf8_unchecked(CStr::from_ptr(swscale_license()).to_bytes()) }
35}
36