software/scaling: add software scaling feature

This commit is contained in:
meh
2015-05-28 18:15:52 +02:00
parent 6c8a8f2edd
commit 8ceac13065
12 changed files with 485 additions and 9 deletions

View File

@ -0,0 +1,20 @@
use ffi::*;
use ::util::format;
pub fn input(format: format::Pixel) -> bool {
unsafe {
sws_isSupportedInput(format.into()) != 0
}
}
pub fn output(format: format::Pixel) -> bool {
unsafe {
sws_isSupportedOutput(format.into()) != 0
}
}
pub fn endianness_conversion(format: format::Pixel) -> bool {
unsafe {
sws_isSupportedEndiannessConversion(format.into()) != 0
}
}