playa-ffmpeg 8.0.3

Safe FFmpeg wrapper with vcpkg integration for simplified cross-platform builds (FFmpeg 8.0, Rust 2024)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::{ffi::*, 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 }
}