
* Add avformat_close_input call to clean up AVFormantContext * Format code with rustfmt * Fix clippy lint double_parens * Fix clippy lint deref_addrof * Fix clippy lint identity_conversion * Fix clippy lint match_ref_pats * Fix clippy lint cast_lossless * Fix clippy lint cmp_null * Fix clippy lint clone_on_ref_ptr * Fix clippy lint map_clone * Fix clippy lint needless_borrow * Fix clippy lint needless_pass_by_value * Fix clippy lints for examples * Fix clippy lint unused_io_amount * Fix clippy lint new_without_default * Ignore inline_always clippy lint * Add vim temp files to .gitignore
15 lines
378 B
Rust
15 lines
378 B
Rust
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 }
|
|
}
|