| 1 | use ffi::*; |
|---|---|
| 2 | use util::format; |
| 3 | |
| 4 | pub fn input(format: format::Pixel) -> bool { |
| 5 | unsafe { sws_isSupportedInput(format.into()) != 0 } |
| 6 | } |
| 7 | |
| 8 | pub fn output(format: format::Pixel) -> bool { |
| 9 | unsafe { sws_isSupportedOutput(format.into()) != 0 } |
| 10 | } |
| 11 | |
| 12 | pub fn endianness_conversion(format: format::Pixel) -> bool { |
| 13 | unsafe { sws_isSupportedEndiannessConversion(format.into()) != 0 } |
| 14 | } |
| 15 |
