rav1d-cli 1.1.0

Rust port of the dav1d AV1 decoder CLI tools
pub mod errno;
pub mod stdio;

#[cfg(target_os = "windows")]
pub mod getopt {
    use libc::c_char;
    use libc::c_int;

    #[allow(non_camel_case_types)]
    #[repr(C)]
    pub struct option {
        pub name: *const c_char,
        pub has_arg: c_int,
        pub flag: *mut c_int,
        pub val: c_int,
    }

    extern "C" {
        pub fn getopt_long(
            nargc: c_int,
            nargv: *const *mut c_char,
            options: *const c_char,
            long_options: *const option,
            id: *mut c_int,
        ) -> c_int;
    }
}

#[cfg(not(target_os = "windows"))]
pub mod getopt {
    pub use libc::getopt_long;
    pub use libc::option;
}