11//! extra stuff
2+ use std:: ffi:: { CString , c_void} ;
3+ use std:: os:: raw:: { c_char, c_int} ;
4+ use libc:: { size_t, c_float} ;
25
3- pub const NOPTS_VALUE : i64 = -9223372036854775808 ;
6+
7+ #[ link( name = "cbits" ) ]
8+ extern "C" {
9+ #[ link_name = "SYS_EAGAIN" ]
10+ fn sys_eagain ( ) -> i32 ;
11+ #[ link_name = "SYS_AVERROR" ]
12+ fn sys_sys_averror ( code : i32 ) -> i32 ;
13+ #[ link_name = "SYS_AV_NOPTS_VALUE" ]
14+ fn sys_av_nopts_value ( ) -> i64 ;
15+ #[ link_name = "SYS_AV_ERROR_MAX_STRING_SIZE" ]
16+ fn av_error_max_string_size ( ) -> c_int ;
17+ #[ link_name = "SYS_AVERROR_BSF_NOT_FOUND" ]
18+ fn averror_bsf_not_found ( ) -> c_int ;
19+ #[ link_name = "SYS_AVERROR_BUG" ]
20+ fn averror_bug ( ) -> c_int ;
21+ #[ link_name = "SYS_AVERROR_BUFFER_TOO_SMALL" ]
22+ fn averror_buffer_too_small ( ) -> c_int ;
23+ #[ link_name = "SYS_AVERROR_DECODER_NOT_FOUND" ]
24+ fn averror_decoder_not_found ( ) -> c_int ;
25+ #[ link_name = "SYS_AVERROR_DEMUXER_NOT_FOUND" ]
26+ fn averror_demuxer_not_found ( ) -> c_int ;
27+ #[ link_name = "SYS_AVERROR_ENCODER_NOT_FOUND" ]
28+ fn averror_encoder_not_found ( ) -> c_int ;
29+ #[ link_name = "SYS_AVERROR_EOF" ]
30+ fn averror_eof ( ) -> c_int ;
31+ #[ link_name = "SYS_AVERROR_EXIT" ]
32+ fn averror_exit ( ) -> c_int ;
33+ #[ link_name = "SYS_AVERROR_EXTERNAL" ]
34+ fn averror_external ( ) -> c_int ;
35+ #[ link_name = "SYS_AVERROR_FILTER_NOT_FOUND" ]
36+ fn averror_filter_not_found ( ) -> c_int ;
37+ #[ link_name = "SYS_AVERROR_INVALIDDATA" ]
38+ fn averror_invaliddata ( ) -> c_int ;
39+ #[ link_name = "SYS_AVERROR_MUXER_NOT_FOUND" ]
40+ fn averror_muxer_not_found ( ) -> c_int ;
41+ #[ link_name = "SYS_AVERROR_OPTION_NOT_FOUND" ]
42+ fn averror_option_not_found ( ) -> c_int ;
43+ #[ link_name = "SYS_AVERROR_PATCHWELCOME" ]
44+ fn averror_patchwelcome ( ) -> c_int ;
45+ #[ link_name = "SYS_AVERROR_PROTOCOL_NOT_FOUND" ]
46+ fn averror_protocol_not_found ( ) -> c_int ;
47+ #[ link_name = "SYS_AVERROR_STREAM_NOT_FOUND" ]
48+ fn averror_stream_not_found ( ) -> c_int ;
49+ }
0 commit comments