1use std::ffi::{CString, c_void};
3use std::os::raw::{c_char, c_int};
4use libc::{size_t, c_float};
5
6#[link(name = "cbits")]
7extern "C" {
8 #[link_name = "SYS_EAGAIN"]
9 pub fn eagain() -> i32;
10 #[link_name = "SYS_AVERROR"]
11 pub fn averror(code: i32) -> i32;
12 #[link_name = "SYS_AV_NOPTS_VALUE"]
13 pub fn av_nopts_value() -> i64;
14 #[link_name = "SYS_AV_ERROR_MAX_STRING_SIZE"]
15 pub fn av_error_max_string_size() -> c_int;
16 #[link_name = "SYS_AVERROR_BSF_NOT_FOUND"]
17 pub fn averror_bsf_not_found() -> c_int;
18 #[link_name = "SYS_AVERROR_BUG"]
19 pub fn averror_bug() -> c_int;
20 #[link_name = "SYS_AVERROR_BUFFER_TOO_SMALL"]
21 pub fn averror_buffer_too_small() -> c_int;
22 #[link_name = "SYS_AVERROR_DECODER_NOT_FOUND"]
23 pub fn averror_decoder_not_found() -> c_int;
24 #[link_name = "SYS_AVERROR_DEMUXER_NOT_FOUND"]
25 pub fn averror_demuxer_not_found() -> c_int;
26 #[link_name = "SYS_AVERROR_ENCODER_NOT_FOUND"]
27 pub fn averror_encoder_not_found() -> c_int;
28 #[link_name = "SYS_AVERROR_EOF"]
29 pub fn averror_eof() -> c_int;
30 #[link_name = "SYS_AVERROR_EXIT"]
31 pub fn averror_exit() -> c_int;
32 #[link_name = "SYS_AVERROR_EXTERNAL"]
33 pub fn averror_external() -> c_int;
34 #[link_name = "SYS_AVERROR_FILTER_NOT_FOUND"]
35 pub fn averror_filter_not_found() -> c_int;
36 #[link_name = "SYS_AVERROR_INVALIDDATA"]
37 pub fn averror_invaliddata() -> c_int;
38 #[link_name = "SYS_AVERROR_MUXER_NOT_FOUND"]
39 pub fn averror_muxer_not_found() -> c_int;
40 #[link_name = "SYS_AVERROR_OPTION_NOT_FOUND"]
41 pub fn averror_option_not_found() -> c_int;
42 #[link_name = "SYS_AVERROR_PATCHWELCOME"]
43 pub fn averror_patchwelcome() -> c_int;
44 #[link_name = "SYS_AVERROR_PROTOCOL_NOT_FOUND"]
45 pub fn averror_protocol_not_found() -> c_int;
46 #[link_name = "SYS_AVERROR_STREAM_NOT_FOUND"]
47 pub fn averror_stream_not_found() -> c_int;
48 #[link_name = "SYS_FFMIN"]
49 #[deprecated(
50 since = "0.3.6",
51 note = "Please use the ffmin function instead, sys_ffmin was a mistake."
52 )]
53 pub fn sys_ffmin(a: usize, b: usize) -> usize;
54 #[link_name = "SYS_FFMIN"]
55 pub fn ffmin(a: usize, b: usize) -> usize;
56}