software/scaling: add software scaling feature
This commit is contained in:
20
src/software/scaling/support.rs
Normal file
20
src/software/scaling/support.rs
Normal 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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user