File tree Expand file tree Collapse file tree 6 files changed +19
-14
lines changed
Expand file tree Collapse file tree 6 files changed +19
-14
lines changed Original file line number Diff line number Diff line change @@ -15,4 +15,4 @@ By default the bindings are generated using the headers and libraries that ought
1515- [ ] Examples
1616
1717[ 1 ] : https://github.com/rust-lang/rust-bindgen
18- [ 2 ] : https://github .com/OpenVisualCloud /SVT-AV1
18+ [ 2 ] : https://gitlab .com/AOMediaCodec /SVT-AV1/-/releases
Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ build = "build.rs"
1010readme = " ../README.md"
1111
1212[package .metadata .system-deps ]
13- SvtAv1Enc = " 0.8 "
13+ SvtAv1Enc = " ^1 "
1414
1515[features ]
1616build_sources = []
1717
1818[build-dependencies ]
19- bindgen = " 0.53 .1"
20- system-deps = " 1.3 "
19+ bindgen = " 0.65 .1"
20+ system-deps = " 6.1 "
2121
2222[dependencies ]
Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ fn format_write(builder: bindgen::Builder) -> String {
1414
1515fn main ( ) {
1616 let libs = system_deps:: Config :: new ( ) . probe ( ) . unwrap ( ) ;
17- let headers = libs. get ( "SvtAv1Enc" ) . unwrap ( ) . include_paths . clone ( ) ;
17+ let headers = libs. get_by_name ( "SvtAv1Enc" ) . unwrap ( ) . include_paths . clone ( ) ;
1818
1919 let mut builder = bindgen:: builder ( )
20- . header ( "data/enc .h" )
21- . blacklist_type ( "max_align_t" )
22- . whitelist_function ( "svt_av1_enc .*")
20+ . header ( "data/wrapper .h" )
21+ . blocklist_type ( "max_align_t" )
22+ . allowlist_function ( "svt_av1 .*")
2323 . size_t_is_usize ( true )
2424 . default_enum_style ( bindgen:: EnumVariation :: ModuleConsts ) ;
2525
@@ -32,7 +32,7 @@ fn main() {
3232
3333 let out_path = PathBuf :: from ( env:: var ( "OUT_DIR" ) . unwrap ( ) ) ;
3434
35- let mut file = File :: create ( out_path. join ( "enc .rs" ) ) . unwrap ( ) ;
35+ let mut file = File :: create ( out_path. join ( "svtav1 .rs" ) ) . unwrap ( ) ;
3636
3737 let _ = file. write ( s. as_bytes ( ) ) ;
3838}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ #include "EbSvtAv1.h"
2+ #include "EbSvtAv1ErrorCodes.h"
3+ #include "EbSvtAv1ExtFrameBuf.h"
4+ #include "EbSvtAv1Formats.h"
5+ #include "EbSvtAv1Metadata.h"
6+ #include "EbSvtAv1Dec.h"
7+ #include "EbSvtAv1Enc.h"
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 enc {
10- include ! ( concat!( env!( "OUT_DIR" ) , "/enc .rs" ) ) ;
9+ pub mod SvtAV1 {
10+ include ! ( concat!( env!( "OUT_DIR" ) , "/svtav1 .rs" ) ) ;
1111}
1212
13- pub use enc :: * ;
13+ pub use SvtAV1 :: * ;
1414
1515#[ cfg( test) ]
1616mod tests {
You can’t perform that action at this time.
0 commit comments