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