openjpeg_sys/
lib.rs

1#![allow(non_camel_case_types, non_snake_case)]
2
3mod ffi;
4
5pub use crate::ffi::*;
6
7#[cfg(test)]
8mod tests {
9    use super::*;
10
11    #[test]
12    fn poke() {
13        unsafe {
14            let tmp = opj_create_compress(CODEC_FORMAT::OPJ_CODEC_J2K);
15            assert!(!tmp.is_null());
16            opj_destroy_codec(tmp);
17        }
18    }
19}