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