File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1+ mod SvtAV1Sys ;
2+
3+
4+
15#[ cfg( test) ]
26mod tests {
37 #[ test]
Original file line number Diff line number Diff line change 11[package ]
22name = " svt-av1-sys"
3- version = " 0.1.1 "
3+ version = " 0.2.0 "
44authors = [" Luca Barbato <lu_zero@gentoo.org>" ]
55license = " MIT"
66description = " FFI bindings to SVT-AV1"
Original file line number Diff line number Diff line change 66#[ cfg_attr( feature = "cargo-clippy" , allow( const_static_lifetime) ) ]
77#[ cfg_attr( feature = "cargo-clippy" , allow( unreadable_literal) ) ]
88
9- pub mod SvtAV1 {
9+ pub mod SvtAV1Sys {
1010 include ! ( concat!( env!( "OUT_DIR" ) , "/svtav1.rs" ) ) ;
1111}
1212
13- pub use SvtAV1 :: * ;
13+ pub use SvtAV1Sys :: * ;
1414
1515#[ cfg( test) ]
1616mod tests {
@@ -24,18 +24,18 @@ mod tests {
2424 let mut cfg = mem:: MaybeUninit :: zeroed ( ) ;
2525
2626 let ret = svt_av1_enc_init_handle ( & mut handle, ptr:: null_mut ( ) , cfg. as_mut_ptr ( ) ) ;
27- assert_eq ! ( ret, 0 ) ;
27+ assert_eq ! ( ret, EbErrorType :: EB_ErrorNone ) ;
2828
2929 let mut cfg = cfg. assume_init ( ) ;
3030
3131 cfg. source_width = 64 ;
3232 cfg. source_height = 64 ;
3333
3434 let ret = svt_av1_enc_set_parameter ( handle, & mut cfg) ;
35- assert_eq ! ( ret, 0 ) ;
35+ assert_eq ! ( ret, EbErrorType :: EB_ErrorNone ) ;
3636
3737 let ret = svt_av1_enc_init ( handle) ;
38- assert_eq ! ( ret, 0 ) ;
38+ assert_eq ! ( ret, EbErrorType :: EB_ErrorNone ) ;
3939 }
4040 }
4141}
You can’t perform that action at this time.
0 commit comments