#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct __BindgenBitfieldUnit<Storage> {
storage: Storage,
}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
Self { storage }
}
}
impl<Storage> __BindgenBitfieldUnit<Storage>
where
Storage: AsRef<[u8]> + AsMut<[u8]>,
{
#[inline]
pub fn get_bit(&self, index: usize) -> bool {
debug_assert!(index / 8 < self.storage.as_ref().len());
let byte_index = index / 8;
let byte = self.storage.as_ref()[byte_index];
let bit_index = if cfg!(target_endian = "big") {
7 - (index % 8)
} else {
index % 8
};
let mask = 1 << bit_index;
byte & mask == mask
}
#[inline]
pub fn set_bit(&mut self, index: usize, val: bool) {
debug_assert!(index / 8 < self.storage.as_ref().len());
let byte_index = index / 8;
let byte = &mut self.storage.as_mut()[byte_index];
let bit_index = if cfg!(target_endian = "big") {
7 - (index % 8)
} else {
index % 8
};
let mask = 1 << bit_index;
if val {
*byte |= mask;
} else {
*byte &= !mask;
}
}
#[inline]
pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
let mut val = 0;
for i in 0..(bit_width as usize) {
if self.get_bit(i + bit_offset) {
let index = if cfg!(target_endian = "big") {
bit_width as usize - 1 - i
} else {
i
};
val |= 1 << index;
}
}
val
}
#[inline]
pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
for i in 0..(bit_width as usize) {
let mask = 1 << i;
let val_bit_is_set = val & mask == mask;
let index = if cfg!(target_endian = "big") {
bit_width as usize - 1 - i
} else {
i
};
self.set_bit(index + bit_offset, val_bit_is_set);
}
}
}
pub const _ERRNO_H: libc::c_int = 1;
pub const _FEATURES_H: libc::c_int = 1;
pub const _DEFAULT_SOURCE: libc::c_int = 1;
pub const __GLIBC_USE_ISOC2X: libc::c_int = 0;
pub const __USE_ISOC11: libc::c_int = 1;
pub const __USE_ISOC99: libc::c_int = 1;
pub const __USE_ISOC95: libc::c_int = 1;
pub const __USE_POSIX_IMPLICITLY: libc::c_int = 1;
pub const _POSIX_SOURCE: libc::c_int = 1;
pub const _POSIX_C_SOURCE: libc::c_int = 200809;
pub const __USE_POSIX: libc::c_int = 1;
pub const __USE_POSIX2: libc::c_int = 1;
pub const __USE_POSIX199309: libc::c_int = 1;
pub const __USE_POSIX199506: libc::c_int = 1;
pub const __USE_XOPEN2K: libc::c_int = 1;
pub const __USE_XOPEN2K8: libc::c_int = 1;
pub const _ATFILE_SOURCE: libc::c_int = 1;
pub const __WORDSIZE: libc::c_int = 64;
pub const __WORDSIZE_TIME64_COMPAT32: libc::c_int = 1;
pub const __SYSCALL_WORDSIZE: libc::c_int = 64;
pub const __TIMESIZE: libc::c_int = 64;
pub const __USE_MISC: libc::c_int = 1;
pub const __USE_ATFILE: libc::c_int = 1;
pub const __USE_FORTIFY_LEVEL: libc::c_int = 0;
pub const __GLIBC_USE_DEPRECATED_GETS: libc::c_int = 0;
pub const __GLIBC_USE_DEPRECATED_SCANF: libc::c_int = 0;
pub const _STDC_PREDEF_H: libc::c_int = 1;
pub const __STDC_IEC_559__: libc::c_int = 1;
pub const __STDC_IEC_60559_BFP__: libc::c_int = 201404;
pub const __STDC_IEC_559_COMPLEX__: libc::c_int = 1;
pub const __STDC_IEC_60559_COMPLEX__: libc::c_int = 201404;
pub const __STDC_ISO_10646__: libc::c_int = 201706;
pub const __GNU_LIBRARY__: libc::c_int = 6;
pub const __GLIBC__: libc::c_int = 2;
pub const __GLIBC_MINOR__: libc::c_int = 35;
pub const _SYS_CDEFS_H: libc::c_int = 1;
pub const __glibc_c99_flexarr_available: libc::c_int = 1;
pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: libc::c_int = 0;
pub const __HAVE_GENERIC_SELECTION: libc::c_int = 1;
pub const _BITS_ERRNO_H: libc::c_int = 1;
pub const EPERM: libc::c_int = 1;
pub const ENOENT: libc::c_int = 2;
pub const ESRCH: libc::c_int = 3;
pub const EINTR: libc::c_int = 4;
pub const EIO: libc::c_int = 5;
pub const ENXIO: libc::c_int = 6;
pub const E2BIG: libc::c_int = 7;
pub const ENOEXEC: libc::c_int = 8;
pub const EBADF: libc::c_int = 9;
pub const ECHILD: libc::c_int = 10;
pub const EAGAIN: libc::c_int = 11;
pub const ENOMEM: libc::c_int = 12;
pub const EACCES: libc::c_int = 13;
pub const EFAULT: libc::c_int = 14;
pub const ENOTBLK: libc::c_int = 15;
pub const EBUSY: libc::c_int = 16;
pub const EEXIST: libc::c_int = 17;
pub const EXDEV: libc::c_int = 18;
pub const ENODEV: libc::c_int = 19;
pub const ENOTDIR: libc::c_int = 20;
pub const EISDIR: libc::c_int = 21;
pub const EINVAL: libc::c_int = 22;
pub const ENFILE: libc::c_int = 23;
pub const EMFILE: libc::c_int = 24;
pub const ENOTTY: libc::c_int = 25;
pub const ETXTBSY: libc::c_int = 26;
pub const EFBIG: libc::c_int = 27;
pub const ENOSPC: libc::c_int = 28;
pub const ESPIPE: libc::c_int = 29;
pub const EROFS: libc::c_int = 30;
pub const EMLINK: libc::c_int = 31;
pub const EPIPE: libc::c_int = 32;
pub const EDOM: libc::c_int = 33;
pub const ERANGE: libc::c_int = 34;
pub const EDEADLK: libc::c_int = 35;
pub const ENAMETOOLONG: libc::c_int = 36;
pub const ENOLCK: libc::c_int = 37;
pub const ENOSYS: libc::c_int = 38;
pub const ENOTEMPTY: libc::c_int = 39;
pub const ELOOP: libc::c_int = 40;
pub const EWOULDBLOCK: libc::c_int = 11;
pub const ENOMSG: libc::c_int = 42;
pub const EIDRM: libc::c_int = 43;
pub const ECHRNG: libc::c_int = 44;
pub const EL2NSYNC: libc::c_int = 45;
pub const EL3HLT: libc::c_int = 46;
pub const EL3RST: libc::c_int = 47;
pub const ELNRNG: libc::c_int = 48;
pub const EUNATCH: libc::c_int = 49;
pub const ENOCSI: libc::c_int = 50;
pub const EL2HLT: libc::c_int = 51;
pub const EBADE: libc::c_int = 52;
pub const EBADR: libc::c_int = 53;
pub const EXFULL: libc::c_int = 54;
pub const ENOANO: libc::c_int = 55;
pub const EBADRQC: libc::c_int = 56;
pub const EBADSLT: libc::c_int = 57;
pub const EDEADLOCK: libc::c_int = 35;
pub const EBFONT: libc::c_int = 59;
pub const ENOSTR: libc::c_int = 60;
pub const ENODATA: libc::c_int = 61;
pub const ETIME: libc::c_int = 62;
pub const ENOSR: libc::c_int = 63;
pub const ENONET: libc::c_int = 64;
pub const ENOPKG: libc::c_int = 65;
pub const EREMOTE: libc::c_int = 66;
pub const ENOLINK: libc::c_int = 67;
pub const EADV: libc::c_int = 68;
pub const ESRMNT: libc::c_int = 69;
pub const ECOMM: libc::c_int = 70;
pub const EPROTO: libc::c_int = 71;
pub const EMULTIHOP: libc::c_int = 72;
pub const EDOTDOT: libc::c_int = 73;
pub const EBADMSG: libc::c_int = 74;
pub const EOVERFLOW: libc::c_int = 75;
pub const ENOTUNIQ: libc::c_int = 76;
pub const EBADFD: libc::c_int = 77;
pub const EREMCHG: libc::c_int = 78;
pub const ELIBACC: libc::c_int = 79;
pub const ELIBBAD: libc::c_int = 80;
pub const ELIBSCN: libc::c_int = 81;
pub const ELIBMAX: libc::c_int = 82;
pub const ELIBEXEC: libc::c_int = 83;
pub const EILSEQ: libc::c_int = 84;
pub const ERESTART: libc::c_int = 85;
pub const ESTRPIPE: libc::c_int = 86;
pub const EUSERS: libc::c_int = 87;
pub const ENOTSOCK: libc::c_int = 88;
pub const EDESTADDRREQ: libc::c_int = 89;
pub const EMSGSIZE: libc::c_int = 90;
pub const EPROTOTYPE: libc::c_int = 91;
pub const ENOPROTOOPT: libc::c_int = 92;
pub const EPROTONOSUPPORT: libc::c_int = 93;
pub const ESOCKTNOSUPPORT: libc::c_int = 94;
pub const EOPNOTSUPP: libc::c_int = 95;
pub const EPFNOSUPPORT: libc::c_int = 96;
pub const EAFNOSUPPORT: libc::c_int = 97;
pub const EADDRINUSE: libc::c_int = 98;
pub const EADDRNOTAVAIL: libc::c_int = 99;
pub const ENETDOWN: libc::c_int = 100;
pub const ENETUNREACH: libc::c_int = 101;
pub const ENETRESET: libc::c_int = 102;
pub const ECONNABORTED: libc::c_int = 103;
pub const ECONNRESET: libc::c_int = 104;
pub const ENOBUFS: libc::c_int = 105;
pub const EISCONN: libc::c_int = 106;
pub const ENOTCONN: libc::c_int = 107;
pub const ESHUTDOWN: libc::c_int = 108;
pub const ETOOMANYREFS: libc::c_int = 109;
pub const ETIMEDOUT: libc::c_int = 110;
pub const ECONNREFUSED: libc::c_int = 111;
pub const EHOSTDOWN: libc::c_int = 112;
pub const EHOSTUNREACH: libc::c_int = 113;
pub const EALREADY: libc::c_int = 114;
pub const EINPROGRESS: libc::c_int = 115;
pub const ESTALE: libc::c_int = 116;
pub const EUCLEAN: libc::c_int = 117;
pub const ENOTNAM: libc::c_int = 118;
pub const ENAVAIL: libc::c_int = 119;
pub const EISNAM: libc::c_int = 120;
pub const EREMOTEIO: libc::c_int = 121;
pub const EDQUOT: libc::c_int = 122;
pub const ENOMEDIUM: libc::c_int = 123;
pub const EMEDIUMTYPE: libc::c_int = 124;
pub const ECANCELED: libc::c_int = 125;
pub const ENOKEY: libc::c_int = 126;
pub const EKEYEXPIRED: libc::c_int = 127;
pub const EKEYREVOKED: libc::c_int = 128;
pub const EKEYREJECTED: libc::c_int = 129;
pub const EOWNERDEAD: libc::c_int = 130;
pub const ENOTRECOVERABLE: libc::c_int = 131;
pub const ERFKILL: libc::c_int = 132;
pub const EHWPOISON: libc::c_int = 133;
pub const ENOTSUP: libc::c_int = 95;
pub const _STDINT_H: libc::c_int = 1;
pub const __GLIBC_USE_LIB_EXT2: libc::c_int = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT: libc::c_int = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: libc::c_int = 0;
pub const __GLIBC_USE_IEC_60559_EXT: libc::c_int = 0;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: libc::c_int = 0;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: libc::c_int = 0;
pub const __GLIBC_USE_IEC_60559_TYPES_EXT: libc::c_int = 0;
pub const _BITS_TYPES_H: libc::c_int = 1;
pub const _BITS_TYPESIZES_H: libc::c_int = 1;
pub const __OFF_T_MATCHES_OFF64_T: libc::c_int = 1;
pub const __INO_T_MATCHES_INO64_T: libc::c_int = 1;
pub const __RLIM_T_MATCHES_RLIM64_T: libc::c_int = 1;
pub const __STATFS_MATCHES_STATFS64: libc::c_int = 1;
pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: libc::c_int = 1;
pub const __FD_SETSIZE: libc::c_int = 1024;
pub const _BITS_TIME64_H: libc::c_int = 1;
pub const _BITS_WCHAR_H: libc::c_int = 1;
pub const _BITS_STDINT_INTN_H: libc::c_int = 1;
pub const _BITS_STDINT_UINTN_H: libc::c_int = 1;
pub const INT8_MIN: libc::c_int = -128;
pub const INT16_MIN: libc::c_int = -32768;
pub const INT32_MIN: libc::c_int = -2147483648;
pub const INT8_MAX: libc::c_int = 127;
pub const INT16_MAX: libc::c_int = 32767;
pub const INT32_MAX: libc::c_int = 2147483647;
pub const UINT8_MAX: libc::c_int = 255;
pub const UINT16_MAX: libc::c_int = 65535;
pub const UINT32_MAX: u32 = 4294967295;
pub const INT_LEAST8_MIN: libc::c_int = -128;
pub const INT_LEAST16_MIN: libc::c_int = -32768;
pub const INT_LEAST32_MIN: libc::c_int = -2147483648;
pub const INT_LEAST8_MAX: libc::c_int = 127;
pub const INT_LEAST16_MAX: libc::c_int = 32767;
pub const INT_LEAST32_MAX: libc::c_int = 2147483647;
pub const UINT_LEAST8_MAX: libc::c_int = 255;
pub const UINT_LEAST16_MAX: libc::c_int = 65535;
pub const UINT_LEAST32_MAX: u32 = 4294967295;
pub const INT_FAST8_MIN: libc::c_int = -128;
pub const INT_FAST16_MIN: i64 = -9223372036854775808;
pub const INT_FAST32_MIN: i64 = -9223372036854775808;
pub const INT_FAST8_MAX: libc::c_int = 127;
pub const INT_FAST16_MAX: u64 = 9223372036854775807;
pub const INT_FAST32_MAX: u64 = 9223372036854775807;
pub const UINT_FAST8_MAX: libc::c_int = 255;
pub const UINT_FAST16_MAX: libc::c_int = -1;
pub const UINT_FAST32_MAX: libc::c_int = -1;
pub const INTPTR_MIN: i64 = -9223372036854775808;
pub const INTPTR_MAX: u64 = 9223372036854775807;
pub const UINTPTR_MAX: libc::c_int = -1;
pub const PTRDIFF_MIN: i64 = -9223372036854775808;
pub const PTRDIFF_MAX: u64 = 9223372036854775807;
pub const SIG_ATOMIC_MIN: libc::c_int = -2147483648;
pub const SIG_ATOMIC_MAX: libc::c_int = 2147483647;
pub const SIZE_MAX: libc::c_int = -1;
pub const WINT_MIN: libc::c_int = 0;
pub const WINT_MAX: u32 = 4294967295;
pub const FF_LAMBDA_SHIFT: libc::c_int = 7;
pub const FF_LAMBDA_SCALE: libc::c_int = 128;
pub const FF_QP2LAMBDA: libc::c_int = 118;
pub const FF_LAMBDA_MAX: libc::c_int = 32767;
pub const FF_QUALITY_SCALE: libc::c_int = 128;
pub const AV_TIME_BASE: libc::c_int = 1000000;
pub const _INTTYPES_H: libc::c_int = 1;
pub const ____gwchar_t_defined: libc::c_int = 1;
pub const __PRI64_PREFIX: &[u8; 2] = b"l\0";
pub const __PRIPTR_PREFIX: &[u8; 2] = b"l\0";
pub const PRId8: &[u8; 2] = b"d\0";
pub const PRId16: &[u8; 2] = b"d\0";
pub const PRId32: &[u8; 2] = b"d\0";
pub const PRId64: &[u8; 3] = b"ld\0";
pub const PRIdLEAST8: &[u8; 2] = b"d\0";
pub const PRIdLEAST16: &[u8; 2] = b"d\0";
pub const PRIdLEAST32: &[u8; 2] = b"d\0";
pub const PRIdLEAST64: &[u8; 3] = b"ld\0";
pub const PRIdFAST8: &[u8; 2] = b"d\0";
pub const PRIdFAST16: &[u8; 3] = b"ld\0";
pub const PRIdFAST32: &[u8; 3] = b"ld\0";
pub const PRIdFAST64: &[u8; 3] = b"ld\0";
pub const PRIi8: &[u8; 2] = b"i\0";
pub const PRIi16: &[u8; 2] = b"i\0";
pub const PRIi32: &[u8; 2] = b"i\0";
pub const PRIi64: &[u8; 3] = b"li\0";
pub const PRIiLEAST8: &[u8; 2] = b"i\0";
pub const PRIiLEAST16: &[u8; 2] = b"i\0";
pub const PRIiLEAST32: &[u8; 2] = b"i\0";
pub const PRIiLEAST64: &[u8; 3] = b"li\0";
pub const PRIiFAST8: &[u8; 2] = b"i\0";
pub const PRIiFAST16: &[u8; 3] = b"li\0";
pub const PRIiFAST32: &[u8; 3] = b"li\0";
pub const PRIiFAST64: &[u8; 3] = b"li\0";
pub const PRIo8: &[u8; 2] = b"o\0";
pub const PRIo16: &[u8; 2] = b"o\0";
pub const PRIo32: &[u8; 2] = b"o\0";
pub const PRIo64: &[u8; 3] = b"lo\0";
pub const PRIoLEAST8: &[u8; 2] = b"o\0";
pub const PRIoLEAST16: &[u8; 2] = b"o\0";
pub const PRIoLEAST32: &[u8; 2] = b"o\0";
pub const PRIoLEAST64: &[u8; 3] = b"lo\0";
pub const PRIoFAST8: &[u8; 2] = b"o\0";
pub const PRIoFAST16: &[u8; 3] = b"lo\0";
pub const PRIoFAST32: &[u8; 3] = b"lo\0";
pub const PRIoFAST64: &[u8; 3] = b"lo\0";
pub const PRIu8: &[u8; 2] = b"u\0";
pub const PRIu16: &[u8; 2] = b"u\0";
pub const PRIu32: &[u8; 2] = b"u\0";
pub const PRIu64: &[u8; 3] = b"lu\0";
pub const PRIuLEAST8: &[u8; 2] = b"u\0";
pub const PRIuLEAST16: &[u8; 2] = b"u\0";
pub const PRIuLEAST32: &[u8; 2] = b"u\0";
pub const PRIuLEAST64: &[u8; 3] = b"lu\0";
pub const PRIuFAST8: &[u8; 2] = b"u\0";
pub const PRIuFAST16: &[u8; 3] = b"lu\0";
pub const PRIuFAST32: &[u8; 3] = b"lu\0";
pub const PRIuFAST64: &[u8; 3] = b"lu\0";
pub const PRIx8: &[u8; 2] = b"x\0";
pub const PRIx16: &[u8; 2] = b"x\0";
pub const PRIx32: &[u8; 2] = b"x\0";
pub const PRIx64: &[u8; 3] = b"lx\0";
pub const PRIxLEAST8: &[u8; 2] = b"x\0";
pub const PRIxLEAST16: &[u8; 2] = b"x\0";
pub const PRIxLEAST32: &[u8; 2] = b"x\0";
pub const PRIxLEAST64: &[u8; 3] = b"lx\0";
pub const PRIxFAST8: &[u8; 2] = b"x\0";
pub const PRIxFAST16: &[u8; 3] = b"lx\0";
pub const PRIxFAST32: &[u8; 3] = b"lx\0";
pub const PRIxFAST64: &[u8; 3] = b"lx\0";
pub const PRIX8: &[u8; 2] = b"X\0";
pub const PRIX16: &[u8; 2] = b"X\0";
pub const PRIX32: &[u8; 2] = b"X\0";
pub const PRIX64: &[u8; 3] = b"lX\0";
pub const PRIXLEAST8: &[u8; 2] = b"X\0";
pub const PRIXLEAST16: &[u8; 2] = b"X\0";
pub const PRIXLEAST32: &[u8; 2] = b"X\0";
pub const PRIXLEAST64: &[u8; 3] = b"lX\0";
pub const PRIXFAST8: &[u8; 2] = b"X\0";
pub const PRIXFAST16: &[u8; 3] = b"lX\0";
pub const PRIXFAST32: &[u8; 3] = b"lX\0";
pub const PRIXFAST64: &[u8; 3] = b"lX\0";
pub const PRIdMAX: &[u8; 3] = b"ld\0";
pub const PRIiMAX: &[u8; 3] = b"li\0";
pub const PRIoMAX: &[u8; 3] = b"lo\0";
pub const PRIuMAX: &[u8; 3] = b"lu\0";
pub const PRIxMAX: &[u8; 3] = b"lx\0";
pub const PRIXMAX: &[u8; 3] = b"lX\0";
pub const PRIdPTR: &[u8; 3] = b"ld\0";
pub const PRIiPTR: &[u8; 3] = b"li\0";
pub const PRIoPTR: &[u8; 3] = b"lo\0";
pub const PRIuPTR: &[u8; 3] = b"lu\0";
pub const PRIxPTR: &[u8; 3] = b"lx\0";
pub const PRIXPTR: &[u8; 3] = b"lX\0";
pub const SCNd8: &[u8; 4] = b"hhd\0";
pub const SCNd16: &[u8; 3] = b"hd\0";
pub const SCNd32: &[u8; 2] = b"d\0";
pub const SCNd64: &[u8; 3] = b"ld\0";
pub const SCNdLEAST8: &[u8; 4] = b"hhd\0";
pub const SCNdLEAST16: &[u8; 3] = b"hd\0";
pub const SCNdLEAST32: &[u8; 2] = b"d\0";
pub const SCNdLEAST64: &[u8; 3] = b"ld\0";
pub const SCNdFAST8: &[u8; 4] = b"hhd\0";
pub const SCNdFAST16: &[u8; 3] = b"ld\0";
pub const SCNdFAST32: &[u8; 3] = b"ld\0";
pub const SCNdFAST64: &[u8; 3] = b"ld\0";
pub const SCNi8: &[u8; 4] = b"hhi\0";
pub const SCNi16: &[u8; 3] = b"hi\0";
pub const SCNi32: &[u8; 2] = b"i\0";
pub const SCNi64: &[u8; 3] = b"li\0";
pub const SCNiLEAST8: &[u8; 4] = b"hhi\0";
pub const SCNiLEAST16: &[u8; 3] = b"hi\0";
pub const SCNiLEAST32: &[u8; 2] = b"i\0";
pub const SCNiLEAST64: &[u8; 3] = b"li\0";
pub const SCNiFAST8: &[u8; 4] = b"hhi\0";
pub const SCNiFAST16: &[u8; 3] = b"li\0";
pub const SCNiFAST32: &[u8; 3] = b"li\0";
pub const SCNiFAST64: &[u8; 3] = b"li\0";
pub const SCNu8: &[u8; 4] = b"hhu\0";
pub const SCNu16: &[u8; 3] = b"hu\0";
pub const SCNu32: &[u8; 2] = b"u\0";
pub const SCNu64: &[u8; 3] = b"lu\0";
pub const SCNuLEAST8: &[u8; 4] = b"hhu\0";
pub const SCNuLEAST16: &[u8; 3] = b"hu\0";
pub const SCNuLEAST32: &[u8; 2] = b"u\0";
pub const SCNuLEAST64: &[u8; 3] = b"lu\0";
pub const SCNuFAST8: &[u8; 4] = b"hhu\0";
pub const SCNuFAST16: &[u8; 3] = b"lu\0";
pub const SCNuFAST32: &[u8; 3] = b"lu\0";
pub const SCNuFAST64: &[u8; 3] = b"lu\0";
pub const SCNo8: &[u8; 4] = b"hho\0";
pub const SCNo16: &[u8; 3] = b"ho\0";
pub const SCNo32: &[u8; 2] = b"o\0";
pub const SCNo64: &[u8; 3] = b"lo\0";
pub const SCNoLEAST8: &[u8; 4] = b"hho\0";
pub const SCNoLEAST16: &[u8; 3] = b"ho\0";
pub const SCNoLEAST32: &[u8; 2] = b"o\0";
pub const SCNoLEAST64: &[u8; 3] = b"lo\0";
pub const SCNoFAST8: &[u8; 4] = b"hho\0";
pub const SCNoFAST16: &[u8; 3] = b"lo\0";
pub const SCNoFAST32: &[u8; 3] = b"lo\0";
pub const SCNoFAST64: &[u8; 3] = b"lo\0";
pub const SCNx8: &[u8; 4] = b"hhx\0";
pub const SCNx16: &[u8; 3] = b"hx\0";
pub const SCNx32: &[u8; 2] = b"x\0";
pub const SCNx64: &[u8; 3] = b"lx\0";
pub const SCNxLEAST8: &[u8; 4] = b"hhx\0";
pub const SCNxLEAST16: &[u8; 3] = b"hx\0";
pub const SCNxLEAST32: &[u8; 2] = b"x\0";
pub const SCNxLEAST64: &[u8; 3] = b"lx\0";
pub const SCNxFAST8: &[u8; 4] = b"hhx\0";
pub const SCNxFAST16: &[u8; 3] = b"lx\0";
pub const SCNxFAST32: &[u8; 3] = b"lx\0";
pub const SCNxFAST64: &[u8; 3] = b"lx\0";
pub const SCNdMAX: &[u8; 3] = b"ld\0";
pub const SCNiMAX: &[u8; 3] = b"li\0";
pub const SCNoMAX: &[u8; 3] = b"lo\0";
pub const SCNuMAX: &[u8; 3] = b"lu\0";
pub const SCNxMAX: &[u8; 3] = b"lx\0";
pub const SCNdPTR: &[u8; 3] = b"ld\0";
pub const SCNiPTR: &[u8; 3] = b"li\0";
pub const SCNoPTR: &[u8; 3] = b"lo\0";
pub const SCNuPTR: &[u8; 3] = b"lu\0";
pub const SCNxPTR: &[u8; 3] = b"lx\0";
pub const _LIBC_LIMITS_H_: libc::c_int = 1;
pub const MB_LEN_MAX: libc::c_int = 16;
pub const _BITS_POSIX1_LIM_H: libc::c_int = 1;
pub const _POSIX_AIO_LISTIO_MAX: libc::c_int = 2;
pub const _POSIX_AIO_MAX: libc::c_int = 1;
pub const _POSIX_ARG_MAX: libc::c_int = 4096;
pub const _POSIX_CHILD_MAX: libc::c_int = 25;
pub const _POSIX_DELAYTIMER_MAX: libc::c_int = 32;
pub const _POSIX_HOST_NAME_MAX: libc::c_int = 255;
pub const _POSIX_LINK_MAX: libc::c_int = 8;
pub const _POSIX_LOGIN_NAME_MAX: libc::c_int = 9;
pub const _POSIX_MAX_CANON: libc::c_int = 255;
pub const _POSIX_MAX_INPUT: libc::c_int = 255;
pub const _POSIX_MQ_OPEN_MAX: libc::c_int = 8;
pub const _POSIX_MQ_PRIO_MAX: libc::c_int = 32;
pub const _POSIX_NAME_MAX: libc::c_int = 14;
pub const _POSIX_NGROUPS_MAX: libc::c_int = 8;
pub const _POSIX_OPEN_MAX: libc::c_int = 20;
pub const _POSIX_PATH_MAX: libc::c_int = 256;
pub const _POSIX_PIPE_BUF: libc::c_int = 512;
pub const _POSIX_RE_DUP_MAX: libc::c_int = 255;
pub const _POSIX_RTSIG_MAX: libc::c_int = 8;
pub const _POSIX_SEM_NSEMS_MAX: libc::c_int = 256;
pub const _POSIX_SEM_VALUE_MAX: libc::c_int = 32767;
pub const _POSIX_SIGQUEUE_MAX: libc::c_int = 32;
pub const _POSIX_SSIZE_MAX: libc::c_int = 32767;
pub const _POSIX_STREAM_MAX: libc::c_int = 8;
pub const _POSIX_SYMLINK_MAX: libc::c_int = 255;
pub const _POSIX_SYMLOOP_MAX: libc::c_int = 8;
pub const _POSIX_TIMER_MAX: libc::c_int = 32;
pub const _POSIX_TTY_NAME_MAX: libc::c_int = 9;
pub const _POSIX_TZNAME_MAX: libc::c_int = 6;
pub const _POSIX_CLOCKRES_MIN: libc::c_int = 20000000;
pub const NR_OPEN: libc::c_int = 1024;
pub const NGROUPS_MAX: libc::c_int = 65536;
pub const ARG_MAX: libc::c_int = 131072;
pub const LINK_MAX: libc::c_int = 127;
pub const MAX_CANON: libc::c_int = 255;
pub const MAX_INPUT: libc::c_int = 255;
pub const NAME_MAX: libc::c_int = 255;
pub const PATH_MAX: libc::c_int = 4096;
pub const PIPE_BUF: libc::c_int = 4096;
pub const XATTR_NAME_MAX: libc::c_int = 255;
pub const XATTR_SIZE_MAX: libc::c_int = 65536;
pub const XATTR_LIST_MAX: libc::c_int = 65536;
pub const RTSIG_MAX: libc::c_int = 32;
pub const _POSIX_THREAD_KEYS_MAX: libc::c_int = 128;
pub const PTHREAD_KEYS_MAX: libc::c_int = 1024;
pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: libc::c_int = 4;
pub const PTHREAD_DESTRUCTOR_ITERATIONS: libc::c_int = 4;
pub const _POSIX_THREAD_THREADS_MAX: libc::c_int = 64;
pub const AIO_PRIO_DELTA_MAX: libc::c_int = 20;
pub const PTHREAD_STACK_MIN: libc::c_int = 16384;
pub const DELAYTIMER_MAX: libc::c_int = 2147483647;
pub const TTY_NAME_MAX: libc::c_int = 32;
pub const LOGIN_NAME_MAX: libc::c_int = 256;
pub const HOST_NAME_MAX: libc::c_int = 64;
pub const MQ_PRIO_MAX: libc::c_int = 32768;
pub const SEM_VALUE_MAX: libc::c_int = 2147483647;
pub const _BITS_POSIX2_LIM_H: libc::c_int = 1;
pub const _POSIX2_BC_BASE_MAX: libc::c_int = 99;
pub const _POSIX2_BC_DIM_MAX: libc::c_int = 2048;
pub const _POSIX2_BC_SCALE_MAX: libc::c_int = 99;
pub const _POSIX2_BC_STRING_MAX: libc::c_int = 1000;
pub const _POSIX2_COLL_WEIGHTS_MAX: libc::c_int = 2;
pub const _POSIX2_EXPR_NEST_MAX: libc::c_int = 32;
pub const _POSIX2_LINE_MAX: libc::c_int = 2048;
pub const _POSIX2_RE_DUP_MAX: libc::c_int = 255;
pub const _POSIX2_CHARCLASS_NAME_MAX: libc::c_int = 14;
pub const BC_BASE_MAX: libc::c_int = 99;
pub const BC_DIM_MAX: libc::c_int = 2048;
pub const BC_SCALE_MAX: libc::c_int = 99;
pub const BC_STRING_MAX: libc::c_int = 1000;
pub const COLL_WEIGHTS_MAX: libc::c_int = 255;
pub const EXPR_NEST_MAX: libc::c_int = 32;
pub const LINE_MAX: libc::c_int = 2048;
pub const CHARCLASS_NAME_MAX: libc::c_int = 2048;
pub const RE_DUP_MAX: libc::c_int = 32767;
pub const _MATH_H: libc::c_int = 1;
pub const _BITS_LIBM_SIMD_DECL_STUBS_H: libc::c_int = 1;
pub const __HAVE_FLOAT128: libc::c_int = 0;
pub const __HAVE_DISTINCT_FLOAT128: libc::c_int = 0;
pub const __HAVE_FLOAT64X: libc::c_int = 1;
pub const __HAVE_FLOAT64X_LONG_DOUBLE: libc::c_int = 1;
pub const __HAVE_FLOAT16: libc::c_int = 0;
pub const __HAVE_FLOAT32: libc::c_int = 1;
pub const __HAVE_FLOAT64: libc::c_int = 1;
pub const __HAVE_FLOAT32X: libc::c_int = 1;
pub const __HAVE_FLOAT128X: libc::c_int = 0;
pub const __HAVE_DISTINCT_FLOAT16: libc::c_int = 0;
pub const __HAVE_DISTINCT_FLOAT32: libc::c_int = 0;
pub const __HAVE_DISTINCT_FLOAT64: libc::c_int = 0;
pub const __HAVE_DISTINCT_FLOAT32X: libc::c_int = 0;
pub const __HAVE_DISTINCT_FLOAT64X: libc::c_int = 0;
pub const __HAVE_DISTINCT_FLOAT128X: libc::c_int = 0;
pub const __HAVE_FLOATN_NOT_TYPEDEF: libc::c_int = 0;
pub const __FP_LOGB0_IS_MIN: libc::c_int = 1;
pub const __FP_LOGBNAN_IS_MIN: libc::c_int = 1;
pub const FP_ILOGB0: libc::c_int = -2147483648;
pub const FP_ILOGBNAN: libc::c_int = -2147483648;
pub const __MATH_DECLARING_DOUBLE: libc::c_int = 1;
pub const __MATH_DECLARING_FLOATN: libc::c_int = 0;
pub const __MATH_DECLARE_LDOUBLE: libc::c_int = 1;
pub const MATH_ERRNO: libc::c_int = 1;
pub const MATH_ERREXCEPT: libc::c_int = 2;
pub const math_errhandling: libc::c_int = 3;
pub const M_E: f64 = 2.718281828459045;
pub const M_LOG2E: f64 = 1.4426950408889634;
pub const M_LOG10E: f64 = 0.4342944819032518;
pub const M_LN2: f64 = 0.6931471805599453;
pub const M_LN10: f64 = 2.302585092994046;
pub const M_PI: f64 = 3.141592653589793;
pub const M_PI_2: f64 = 1.5707963267948966;
pub const M_PI_4: f64 = 0.7853981633974483;
pub const M_1_PI: f64 = 0.3183098861837907;
pub const M_2_PI: f64 = 0.6366197723675814;
pub const M_2_SQRTPI: f64 = 1.1283791670955126;
pub const M_SQRT2: f64 = 1.4142135623730951;
pub const M_SQRT1_2: f64 = 0.7071067811865476;
pub const _STDIO_H: libc::c_int = 1;
pub const __GNUC_VA_LIST: libc::c_int = 1;
pub const _____fpos_t_defined: libc::c_int = 1;
pub const ____mbstate_t_defined: libc::c_int = 1;
pub const _____fpos64_t_defined: libc::c_int = 1;
pub const ____FILE_defined: libc::c_int = 1;
pub const __FILE_defined: libc::c_int = 1;
pub const __struct_FILE_defined: libc::c_int = 1;
pub const _IO_EOF_SEEN: libc::c_int = 16;
pub const _IO_ERR_SEEN: libc::c_int = 32;
pub const _IO_USER_LOCK: libc::c_int = 32768;
pub const _IOFBF: libc::c_int = 0;
pub const _IOLBF: libc::c_int = 1;
pub const _IONBF: libc::c_int = 2;
pub const BUFSIZ: libc::c_int = 8192;
pub const EOF: libc::c_int = -1;
pub const SEEK_SET: libc::c_int = 0;
pub const SEEK_CUR: libc::c_int = 1;
pub const SEEK_END: libc::c_int = 2;
pub const P_tmpdir: &[u8; 5] = b"/tmp\0";
pub const _BITS_STDIO_LIM_H: libc::c_int = 1;
pub const L_tmpnam: libc::c_int = 20;
pub const TMP_MAX: libc::c_int = 238328;
pub const FILENAME_MAX: libc::c_int = 4096;
pub const L_ctermid: libc::c_int = 9;
pub const FOPEN_MAX: libc::c_int = 16;
pub const _STDLIB_H: libc::c_int = 1;
pub const WNOHANG: libc::c_int = 1;
pub const WUNTRACED: libc::c_int = 2;
pub const WSTOPPED: libc::c_int = 2;
pub const WEXITED: libc::c_int = 4;
pub const WCONTINUED: libc::c_int = 8;
pub const WNOWAIT: libc::c_int = 16777216;
pub const __WNOTHREAD: libc::c_int = 536870912;
pub const __WALL: libc::c_int = 1073741824;
pub const __WCLONE: u32 = 2147483648;
pub const __W_CONTINUED: libc::c_int = 65535;
pub const __WCOREFLAG: libc::c_int = 128;
pub const __ldiv_t_defined: libc::c_int = 1;
pub const __lldiv_t_defined: libc::c_int = 1;
pub const RAND_MAX: libc::c_int = 2147483647;
pub const EXIT_FAILURE: libc::c_int = 1;
pub const EXIT_SUCCESS: libc::c_int = 0;
pub const _SYS_TYPES_H: libc::c_int = 1;
pub const __clock_t_defined: libc::c_int = 1;
pub const __clockid_t_defined: libc::c_int = 1;
pub const __time_t_defined: libc::c_int = 1;
pub const __timer_t_defined: libc::c_int = 1;
pub const __BIT_TYPES_DEFINED__: libc::c_int = 1;
pub const _ENDIAN_H: libc::c_int = 1;
pub const _BITS_ENDIAN_H: libc::c_int = 1;
pub const __LITTLE_ENDIAN: libc::c_int = 1234;
pub const __BIG_ENDIAN: libc::c_int = 4321;
pub const __PDP_ENDIAN: libc::c_int = 3412;
pub const _BITS_ENDIANNESS_H: libc::c_int = 1;
pub const __BYTE_ORDER: libc::c_int = 1234;
pub const __FLOAT_WORD_ORDER: libc::c_int = 1234;
pub const LITTLE_ENDIAN: libc::c_int = 1234;
pub const BIG_ENDIAN: libc::c_int = 4321;
pub const PDP_ENDIAN: libc::c_int = 3412;
pub const BYTE_ORDER: libc::c_int = 1234;
pub const _BITS_BYTESWAP_H: libc::c_int = 1;
pub const _BITS_UINTN_IDENTITY_H: libc::c_int = 1;
pub const _SYS_SELECT_H: libc::c_int = 1;
pub const __sigset_t_defined: libc::c_int = 1;
pub const __timeval_defined: libc::c_int = 1;
pub const _STRUCT_TIMESPEC: libc::c_int = 1;
pub const FD_SETSIZE: libc::c_int = 1024;
pub const _BITS_PTHREADTYPES_COMMON_H: libc::c_int = 1;
pub const _THREAD_SHARED_TYPES_H: libc::c_int = 1;
pub const _BITS_PTHREADTYPES_ARCH_H: libc::c_int = 1;
pub const __SIZEOF_PTHREAD_MUTEX_T: libc::c_int = 40;
pub const __SIZEOF_PTHREAD_ATTR_T: libc::c_int = 56;
pub const __SIZEOF_PTHREAD_RWLOCK_T: libc::c_int = 56;
pub const __SIZEOF_PTHREAD_BARRIER_T: libc::c_int = 32;
pub const __SIZEOF_PTHREAD_MUTEXATTR_T: libc::c_int = 4;
pub const __SIZEOF_PTHREAD_COND_T: libc::c_int = 48;
pub const __SIZEOF_PTHREAD_CONDATTR_T: libc::c_int = 4;
pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: libc::c_int = 8;
pub const __SIZEOF_PTHREAD_BARRIERATTR_T: libc::c_int = 4;
pub const _THREAD_MUTEX_INTERNAL_H: libc::c_int = 1;
pub const __PTHREAD_MUTEX_HAVE_PREV: libc::c_int = 1;
pub const __have_pthread_attr_t: libc::c_int = 1;
pub const _ALLOCA_H: libc::c_int = 1;
pub const _STRING_H: libc::c_int = 1;
pub const _BITS_TYPES_LOCALE_T_H: libc::c_int = 1;
pub const _BITS_TYPES___LOCALE_T_H: libc::c_int = 1;
pub const _STRINGS_H: libc::c_int = 1;
pub const LIBAVUTIL_VERSION_MAJOR: libc::c_int = 56;
pub const LIBAVUTIL_VERSION_MINOR: libc::c_int = 70;
pub const LIBAVUTIL_VERSION_MICRO: libc::c_int = 100;
pub const AV_HAVE_BIGENDIAN: libc::c_int = 0;
pub const AV_HAVE_FAST_UNALIGNED: libc::c_int = 1;
pub const AVERROR_EXPERIMENTAL: libc::c_int = -733130664;
pub const AVERROR_INPUT_CHANGED: libc::c_int = -1668179713;
pub const AVERROR_OUTPUT_CHANGED: libc::c_int = -1668179714;
pub const AV_ERROR_MAX_STRING_SIZE: usize = 64;
pub const M_LOG2_10: f64 = 3.321928094887362;
pub const M_PHI: f64 = 1.618033988749895;
pub const AV_LOG_QUIET: libc::c_int = -8;
pub const AV_LOG_PANIC: libc::c_int = 0;
pub const AV_LOG_FATAL: libc::c_int = 8;
pub const AV_LOG_ERROR: libc::c_int = 16;
pub const AV_LOG_WARNING: libc::c_int = 24;
pub const AV_LOG_INFO: libc::c_int = 32;
pub const AV_LOG_VERBOSE: libc::c_int = 40;
pub const AV_LOG_DEBUG: libc::c_int = 48;
pub const AV_LOG_TRACE: libc::c_int = 56;
pub const AV_LOG_MAX_OFFSET: libc::c_int = 64;
pub const AV_LOG_SKIP_REPEATED: libc::c_int = 1;
pub const AV_LOG_PRINT_LEVEL: libc::c_int = 2;
pub const AVPALETTE_SIZE: libc::c_int = 1024;
pub const AVPALETTE_COUNT: libc::c_int = 256;
pub const AV_FOURCC_MAX_STRING_SIZE: libc::c_int = 32;
pub const AV_BUFFER_FLAG_READONLY: libc::c_int = 1;
pub const AV_CPU_FLAG_FORCE: u32 = 2147483648;
pub const AV_CPU_FLAG_MMX: libc::c_int = 1;
pub const AV_CPU_FLAG_MMXEXT: libc::c_int = 2;
pub const AV_CPU_FLAG_MMX2: libc::c_int = 2;
pub const AV_CPU_FLAG_3DNOW: libc::c_int = 4;
pub const AV_CPU_FLAG_SSE: libc::c_int = 8;
pub const AV_CPU_FLAG_SSE2: libc::c_int = 16;
pub const AV_CPU_FLAG_SSE2SLOW: libc::c_int = 1073741824;
pub const AV_CPU_FLAG_3DNOWEXT: libc::c_int = 32;
pub const AV_CPU_FLAG_SSE3: libc::c_int = 64;
pub const AV_CPU_FLAG_SSE3SLOW: libc::c_int = 536870912;
pub const AV_CPU_FLAG_SSSE3: libc::c_int = 128;
pub const AV_CPU_FLAG_SSSE3SLOW: libc::c_int = 67108864;
pub const AV_CPU_FLAG_ATOM: libc::c_int = 268435456;
pub const AV_CPU_FLAG_SSE4: libc::c_int = 256;
pub const AV_CPU_FLAG_SSE42: libc::c_int = 512;
pub const AV_CPU_FLAG_AESNI: libc::c_int = 524288;
pub const AV_CPU_FLAG_AVX: libc::c_int = 16384;
pub const AV_CPU_FLAG_AVXSLOW: libc::c_int = 134217728;
pub const AV_CPU_FLAG_XOP: libc::c_int = 1024;
pub const AV_CPU_FLAG_FMA4: libc::c_int = 2048;
pub const AV_CPU_FLAG_CMOV: libc::c_int = 4096;
pub const AV_CPU_FLAG_AVX2: libc::c_int = 32768;
pub const AV_CPU_FLAG_FMA3: libc::c_int = 65536;
pub const AV_CPU_FLAG_BMI1: libc::c_int = 131072;
pub const AV_CPU_FLAG_BMI2: libc::c_int = 262144;
pub const AV_CPU_FLAG_AVX512: libc::c_int = 1048576;
pub const AV_CPU_FLAG_ALTIVEC: libc::c_int = 1;
pub const AV_CPU_FLAG_VSX: libc::c_int = 2;
pub const AV_CPU_FLAG_POWER8: libc::c_int = 4;
pub const AV_CPU_FLAG_ARMV5TE: libc::c_int = 1;
pub const AV_CPU_FLAG_ARMV6: libc::c_int = 2;
pub const AV_CPU_FLAG_ARMV6T2: libc::c_int = 4;
pub const AV_CPU_FLAG_VFP: libc::c_int = 8;
pub const AV_CPU_FLAG_VFPV3: libc::c_int = 16;
pub const AV_CPU_FLAG_NEON: libc::c_int = 32;
pub const AV_CPU_FLAG_ARMV8: libc::c_int = 64;
pub const AV_CPU_FLAG_VFP_VM: libc::c_int = 128;
pub const AV_CPU_FLAG_SETEND: libc::c_int = 65536;
pub const AV_CPU_FLAG_MMI: libc::c_int = 1;
pub const AV_CPU_FLAG_MSA: libc::c_int = 2;
pub const AV_CH_FRONT_LEFT: libc::c_ulonglong = 1;
pub const AV_CH_FRONT_RIGHT: libc::c_ulonglong = 2;
pub const AV_CH_FRONT_CENTER: libc::c_ulonglong = 4;
pub const AV_CH_LOW_FREQUENCY: libc::c_ulonglong = 8;
pub const AV_CH_BACK_LEFT: libc::c_ulonglong = 16;
pub const AV_CH_BACK_RIGHT: libc::c_ulonglong = 32;
pub const AV_CH_FRONT_LEFT_OF_CENTER: libc::c_ulonglong = 64;
pub const AV_CH_FRONT_RIGHT_OF_CENTER: libc::c_ulonglong = 128;
pub const AV_CH_BACK_CENTER: libc::c_ulonglong = 256;
pub const AV_CH_SIDE_LEFT: libc::c_ulonglong = 512;
pub const AV_CH_SIDE_RIGHT: libc::c_ulonglong = 1024;
pub const AV_CH_TOP_CENTER: libc::c_ulonglong = 2048;
pub const AV_CH_TOP_FRONT_LEFT: libc::c_ulonglong = 4096;
pub const AV_CH_TOP_FRONT_CENTER: libc::c_ulonglong = 8192;
pub const AV_CH_TOP_FRONT_RIGHT: libc::c_ulonglong = 16384;
pub const AV_CH_TOP_BACK_LEFT: libc::c_ulonglong = 32768;
pub const AV_CH_TOP_BACK_CENTER: libc::c_ulonglong = 65536;
pub const AV_CH_TOP_BACK_RIGHT: libc::c_ulonglong = 131072;
pub const AV_CH_STEREO_LEFT: libc::c_ulonglong = 536870912;
pub const AV_CH_STEREO_RIGHT: libc::c_ulonglong = 1073741824;
pub const AV_CH_WIDE_LEFT: libc::c_ulonglong = 2147483648;
pub const AV_CH_WIDE_RIGHT: libc::c_ulonglong = 4294967296;
pub const AV_CH_SURROUND_DIRECT_LEFT: libc::c_ulonglong = 8589934592;
pub const AV_CH_SURROUND_DIRECT_RIGHT: libc::c_ulonglong = 17179869184;
pub const AV_CH_LOW_FREQUENCY_2: libc::c_ulonglong = 34359738368;
pub const AV_CH_TOP_SIDE_LEFT: libc::c_ulonglong = 68719476736;
pub const AV_CH_TOP_SIDE_RIGHT: libc::c_ulonglong = 137438953472;
pub const AV_CH_BOTTOM_FRONT_CENTER: libc::c_ulonglong = 274877906944;
pub const AV_CH_BOTTOM_FRONT_LEFT: libc::c_ulonglong = 549755813888;
pub const AV_CH_BOTTOM_FRONT_RIGHT: libc::c_ulonglong = 1099511627776;
pub const AV_CH_LAYOUT_NATIVE: libc::c_ulonglong = 9223372036854775808;
pub const AV_CH_LAYOUT_MONO: libc::c_ulonglong = 4;
pub const AV_CH_LAYOUT_STEREO: libc::c_ulonglong = 3;
pub const AV_CH_LAYOUT_2POINT1: libc::c_ulonglong = 11;
pub const AV_CH_LAYOUT_2_1: libc::c_ulonglong = 259;
pub const AV_CH_LAYOUT_SURROUND: libc::c_ulonglong = 7;
pub const AV_CH_LAYOUT_3POINT1: libc::c_ulonglong = 15;
pub const AV_CH_LAYOUT_4POINT0: libc::c_ulonglong = 263;
pub const AV_CH_LAYOUT_4POINT1: libc::c_ulonglong = 271;
pub const AV_CH_LAYOUT_2_2: libc::c_ulonglong = 1539;
pub const AV_CH_LAYOUT_QUAD: libc::c_ulonglong = 51;
pub const AV_CH_LAYOUT_5POINT0: libc::c_ulonglong = 1543;
pub const AV_CH_LAYOUT_5POINT1: libc::c_ulonglong = 1551;
pub const AV_CH_LAYOUT_5POINT0_BACK: libc::c_ulonglong = 55;
pub const AV_CH_LAYOUT_5POINT1_BACK: libc::c_ulonglong = 63;
pub const AV_CH_LAYOUT_6POINT0: libc::c_ulonglong = 1799;
pub const AV_CH_LAYOUT_6POINT0_FRONT: libc::c_ulonglong = 1731;
pub const AV_CH_LAYOUT_HEXAGONAL: libc::c_ulonglong = 311;
pub const AV_CH_LAYOUT_6POINT1: libc::c_ulonglong = 1807;
pub const AV_CH_LAYOUT_6POINT1_BACK: libc::c_ulonglong = 319;
pub const AV_CH_LAYOUT_6POINT1_FRONT: libc::c_ulonglong = 1739;
pub const AV_CH_LAYOUT_7POINT0: libc::c_ulonglong = 1591;
pub const AV_CH_LAYOUT_7POINT0_FRONT: libc::c_ulonglong = 1735;
pub const AV_CH_LAYOUT_7POINT1: libc::c_ulonglong = 1599;
pub const AV_CH_LAYOUT_7POINT1_WIDE: libc::c_ulonglong = 1743;
pub const AV_CH_LAYOUT_7POINT1_WIDE_BACK: libc::c_ulonglong = 255;
pub const AV_CH_LAYOUT_OCTAGONAL: libc::c_ulonglong = 1847;
pub const AV_CH_LAYOUT_HEXADECAGONAL: libc::c_ulonglong = 6442710839;
pub const AV_CH_LAYOUT_STEREO_DOWNMIX: libc::c_ulonglong = 1610612736;
pub const AV_CH_LAYOUT_22POINT2: libc::c_ulonglong = 2164663779327;
pub const AV_DICT_MATCH_CASE: libc::c_int = 1;
pub const AV_DICT_IGNORE_SUFFIX: libc::c_int = 2;
pub const AV_DICT_DONT_STRDUP_KEY: libc::c_int = 4;
pub const AV_DICT_DONT_STRDUP_VAL: libc::c_int = 8;
pub const AV_DICT_DONT_OVERWRITE: libc::c_int = 16;
pub const AV_DICT_APPEND: libc::c_int = 32;
pub const AV_DICT_MULTIKEY: libc::c_int = 64;
pub const AV_NUM_DATA_POINTERS: libc::c_int = 8;
pub const AV_FRAME_FLAG_CORRUPT: libc::c_int = 1;
pub const AV_FRAME_FLAG_DISCARD: libc::c_int = 4;
pub const FF_DECODE_ERROR_INVALID_BITSTREAM: libc::c_int = 1;
pub const FF_DECODE_ERROR_MISSING_REFERENCE: libc::c_int = 2;
pub const FF_DECODE_ERROR_CONCEALMENT_ACTIVE: libc::c_int = 4;
pub const FF_DECODE_ERROR_DECODE_SLICES: libc::c_int = 8;
pub const LIBAVCODEC_VERSION_MAJOR: libc::c_int = 58;
pub const LIBAVCODEC_VERSION_MINOR: libc::c_int = 134;
pub const LIBAVCODEC_VERSION_MICRO: libc::c_int = 100;
pub const AV_PKT_FLAG_KEY: libc::c_int = 1;
pub const AV_PKT_FLAG_CORRUPT: libc::c_int = 2;
pub const AV_PKT_FLAG_DISCARD: libc::c_int = 4;
pub const AV_PKT_FLAG_TRUSTED: libc::c_int = 8;
pub const AV_PKT_FLAG_DISPOSABLE: libc::c_int = 16;
pub const AV_CODEC_CAP_DRAW_HORIZ_BAND: libc::c_uint = 1;
pub const AV_CODEC_CAP_DR1: libc::c_uint = 2;
pub const AV_CODEC_CAP_TRUNCATED: libc::c_uint = 8;
pub const AV_CODEC_CAP_DELAY: libc::c_uint = 32;
pub const AV_CODEC_CAP_SMALL_LAST_FRAME: libc::c_uint = 64;
pub const AV_CODEC_CAP_SUBFRAMES: libc::c_uint = 256;
pub const AV_CODEC_CAP_EXPERIMENTAL: libc::c_uint = 512;
pub const AV_CODEC_CAP_CHANNEL_CONF: libc::c_uint = 1024;
pub const AV_CODEC_CAP_FRAME_THREADS: libc::c_uint = 4096;
pub const AV_CODEC_CAP_SLICE_THREADS: libc::c_uint = 8192;
pub const AV_CODEC_CAP_PARAM_CHANGE: libc::c_uint = 16384;
pub const AV_CODEC_CAP_OTHER_THREADS: libc::c_uint = 32768;
pub const AV_CODEC_CAP_AUTO_THREADS: libc::c_uint = 32768;
pub const AV_CODEC_CAP_VARIABLE_FRAME_SIZE: libc::c_uint = 65536;
pub const AV_CODEC_CAP_AVOID_PROBING: libc::c_uint = 131072;
pub const AV_CODEC_CAP_INTRA_ONLY: libc::c_uint = 1073741824;
pub const AV_CODEC_CAP_LOSSLESS: u32 = 2147483648;
pub const AV_CODEC_CAP_HARDWARE: libc::c_uint = 262144;
pub const AV_CODEC_CAP_HYBRID: libc::c_uint = 524288;
pub const AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE: libc::c_uint = 1048576;
pub const AV_CODEC_CAP_ENCODER_FLUSH: libc::c_uint = 2097152;
pub const AV_CODEC_PROP_INTRA_ONLY: libc::c_int = 1;
pub const AV_CODEC_PROP_LOSSY: libc::c_int = 2;
pub const AV_CODEC_PROP_LOSSLESS: libc::c_int = 4;
pub const AV_CODEC_PROP_REORDER: libc::c_int = 8;
pub const AV_CODEC_PROP_BITMAP_SUB: libc::c_int = 65536;
pub const AV_CODEC_PROP_TEXT_SUB: libc::c_int = 131072;
pub const AV_INPUT_BUFFER_PADDING_SIZE: libc::c_int = 64;
pub const AV_INPUT_BUFFER_MIN_SIZE: libc::c_int = 16384;
pub const AV_CODEC_FLAG_UNALIGNED: libc::c_uint = 1;
pub const AV_CODEC_FLAG_QSCALE: libc::c_uint = 2;
pub const AV_CODEC_FLAG_4MV: libc::c_uint = 4;
pub const AV_CODEC_FLAG_OUTPUT_CORRUPT: libc::c_uint = 8;
pub const AV_CODEC_FLAG_QPEL: libc::c_uint = 16;
pub const AV_CODEC_FLAG_DROPCHANGED: libc::c_uint = 32;
pub const AV_CODEC_FLAG_PASS1: libc::c_uint = 512;
pub const AV_CODEC_FLAG_PASS2: libc::c_uint = 1024;
pub const AV_CODEC_FLAG_LOOP_FILTER: libc::c_uint = 2048;
pub const AV_CODEC_FLAG_GRAY: libc::c_uint = 8192;
pub const AV_CODEC_FLAG_PSNR: libc::c_uint = 32768;
pub const AV_CODEC_FLAG_TRUNCATED: libc::c_uint = 65536;
pub const AV_CODEC_FLAG_INTERLACED_DCT: libc::c_uint = 262144;
pub const AV_CODEC_FLAG_LOW_DELAY: libc::c_uint = 524288;
pub const AV_CODEC_FLAG_GLOBAL_HEADER: libc::c_uint = 4194304;
pub const AV_CODEC_FLAG_BITEXACT: libc::c_uint = 8388608;
pub const AV_CODEC_FLAG_AC_PRED: libc::c_uint = 16777216;
pub const AV_CODEC_FLAG_INTERLACED_ME: libc::c_uint = 536870912;
pub const AV_CODEC_FLAG_CLOSED_GOP: u32 = 2147483648;
pub const AV_CODEC_FLAG2_FAST: libc::c_int = 1;
pub const AV_CODEC_FLAG2_NO_OUTPUT: libc::c_int = 4;
pub const AV_CODEC_FLAG2_LOCAL_HEADER: libc::c_int = 8;
pub const AV_CODEC_FLAG2_DROP_FRAME_TIMECODE: libc::c_int = 8192;
pub const AV_CODEC_FLAG2_CHUNKS: libc::c_int = 32768;
pub const AV_CODEC_FLAG2_IGNORE_CROP: libc::c_int = 65536;
pub const AV_CODEC_FLAG2_SHOW_ALL: libc::c_int = 4194304;
pub const AV_CODEC_FLAG2_EXPORT_MVS: libc::c_int = 268435456;
pub const AV_CODEC_FLAG2_SKIP_MANUAL: libc::c_int = 536870912;
pub const AV_CODEC_FLAG2_RO_FLUSH_NOOP: libc::c_int = 1073741824;
pub const AV_CODEC_EXPORT_DATA_MVS: libc::c_int = 1;
pub const AV_CODEC_EXPORT_DATA_PRFT: libc::c_int = 2;
pub const AV_CODEC_EXPORT_DATA_VIDEO_ENC_PARAMS: libc::c_int = 4;
pub const AV_CODEC_EXPORT_DATA_FILM_GRAIN: libc::c_int = 8;
pub const AV_GET_BUFFER_FLAG_REF: libc::c_int = 1;
pub const AV_GET_ENCODE_BUFFER_FLAG_REF: libc::c_int = 1;
pub const FF_COMPRESSION_DEFAULT: libc::c_int = -1;
pub const FF_PRED_LEFT: libc::c_int = 0;
pub const FF_PRED_PLANE: libc::c_int = 1;
pub const FF_PRED_MEDIAN: libc::c_int = 2;
pub const FF_CMP_SAD: libc::c_int = 0;
pub const FF_CMP_SSE: libc::c_int = 1;
pub const FF_CMP_SATD: libc::c_int = 2;
pub const FF_CMP_DCT: libc::c_int = 3;
pub const FF_CMP_PSNR: libc::c_int = 4;
pub const FF_CMP_BIT: libc::c_int = 5;
pub const FF_CMP_RD: libc::c_int = 6;
pub const FF_CMP_ZERO: libc::c_int = 7;
pub const FF_CMP_VSAD: libc::c_int = 8;
pub const FF_CMP_VSSE: libc::c_int = 9;
pub const FF_CMP_NSSE: libc::c_int = 10;
pub const FF_CMP_W53: libc::c_int = 11;
pub const FF_CMP_W97: libc::c_int = 12;
pub const FF_CMP_DCTMAX: libc::c_int = 13;
pub const FF_CMP_DCT264: libc::c_int = 14;
pub const FF_CMP_MEDIAN_SAD: libc::c_int = 15;
pub const FF_CMP_CHROMA: libc::c_int = 256;
pub const SLICE_FLAG_CODED_ORDER: libc::c_int = 1;
pub const SLICE_FLAG_ALLOW_FIELD: libc::c_int = 2;
pub const SLICE_FLAG_ALLOW_PLANE: libc::c_int = 4;
pub const FF_MB_DECISION_SIMPLE: libc::c_int = 0;
pub const FF_MB_DECISION_BITS: libc::c_int = 1;
pub const FF_MB_DECISION_RD: libc::c_int = 2;
pub const FF_CODER_TYPE_VLC: libc::c_int = 0;
pub const FF_CODER_TYPE_AC: libc::c_int = 1;
pub const FF_CODER_TYPE_RAW: libc::c_int = 2;
pub const FF_CODER_TYPE_RLE: libc::c_int = 3;
pub const FF_BUG_AUTODETECT: libc::c_int = 1;
pub const FF_BUG_XVID_ILACE: libc::c_int = 4;
pub const FF_BUG_UMP4: libc::c_int = 8;
pub const FF_BUG_NO_PADDING: libc::c_int = 16;
pub const FF_BUG_AMV: libc::c_int = 32;
pub const FF_BUG_QPEL_CHROMA: libc::c_int = 64;
pub const FF_BUG_STD_QPEL: libc::c_int = 128;
pub const FF_BUG_QPEL_CHROMA2: libc::c_int = 256;
pub const FF_BUG_DIRECT_BLOCKSIZE: libc::c_int = 512;
pub const FF_BUG_EDGE: libc::c_int = 1024;
pub const FF_BUG_HPEL_CHROMA: libc::c_int = 2048;
pub const FF_BUG_DC_CLIP: libc::c_int = 4096;
pub const FF_BUG_MS: libc::c_int = 8192;
pub const FF_BUG_TRUNCATED: libc::c_int = 16384;
pub const FF_BUG_IEDGE: libc::c_int = 32768;
pub const FF_COMPLIANCE_VERY_STRICT: libc::c_int = 2;
pub const FF_COMPLIANCE_STRICT: libc::c_int = 1;
pub const FF_COMPLIANCE_NORMAL: libc::c_int = 0;
pub const FF_COMPLIANCE_UNOFFICIAL: libc::c_int = -1;
pub const FF_COMPLIANCE_EXPERIMENTAL: libc::c_int = -2;
pub const FF_EC_GUESS_MVS: libc::c_int = 1;
pub const FF_EC_DEBLOCK: libc::c_int = 2;
pub const FF_EC_FAVOR_INTER: libc::c_int = 256;
pub const FF_DEBUG_PICT_INFO: libc::c_int = 1;
pub const FF_DEBUG_RC: libc::c_int = 2;
pub const FF_DEBUG_BITSTREAM: libc::c_int = 4;
pub const FF_DEBUG_MB_TYPE: libc::c_int = 8;
pub const FF_DEBUG_QP: libc::c_int = 16;
pub const FF_DEBUG_DCT_COEFF: libc::c_int = 64;
pub const FF_DEBUG_SKIP: libc::c_int = 128;
pub const FF_DEBUG_STARTCODE: libc::c_int = 256;
pub const FF_DEBUG_ER: libc::c_int = 1024;
pub const FF_DEBUG_MMCO: libc::c_int = 2048;
pub const FF_DEBUG_BUGS: libc::c_int = 4096;
pub const FF_DEBUG_BUFFERS: libc::c_int = 32768;
pub const FF_DEBUG_THREADS: libc::c_int = 65536;
pub const FF_DEBUG_GREEN_MD: libc::c_int = 8388608;
pub const FF_DEBUG_NOMC: libc::c_int = 16777216;
pub const AV_EF_CRCCHECK: libc::c_int = 1;
pub const AV_EF_BITSTREAM: libc::c_int = 2;
pub const AV_EF_BUFFER: libc::c_int = 4;
pub const AV_EF_EXPLODE: libc::c_int = 8;
pub const AV_EF_IGNORE_ERR: libc::c_int = 32768;
pub const AV_EF_CAREFUL: libc::c_int = 65536;
pub const AV_EF_COMPLIANT: libc::c_int = 131072;
pub const AV_EF_AGGRESSIVE: libc::c_int = 262144;
pub const FF_DCT_AUTO: libc::c_int = 0;
pub const FF_DCT_FASTINT: libc::c_int = 1;
pub const FF_DCT_INT: libc::c_int = 2;
pub const FF_DCT_MMX: libc::c_int = 3;
pub const FF_DCT_ALTIVEC: libc::c_int = 5;
pub const FF_DCT_FAAN: libc::c_int = 6;
pub const FF_IDCT_AUTO: libc::c_int = 0;
pub const FF_IDCT_INT: libc::c_int = 1;
pub const FF_IDCT_SIMPLE: libc::c_int = 2;
pub const FF_IDCT_SIMPLEMMX: libc::c_int = 3;
pub const FF_IDCT_ARM: libc::c_int = 7;
pub const FF_IDCT_ALTIVEC: libc::c_int = 8;
pub const FF_IDCT_SIMPLEARM: libc::c_int = 10;
pub const FF_IDCT_XVID: libc::c_int = 14;
pub const FF_IDCT_SIMPLEARMV5TE: libc::c_int = 16;
pub const FF_IDCT_SIMPLEARMV6: libc::c_int = 17;
pub const FF_IDCT_FAAN: libc::c_int = 20;
pub const FF_IDCT_SIMPLENEON: libc::c_int = 22;
pub const FF_IDCT_NONE: libc::c_int = 24;
pub const FF_IDCT_SIMPLEAUTO: libc::c_int = 128;
pub const FF_THREAD_FRAME: libc::c_int = 1;
pub const FF_THREAD_SLICE: libc::c_int = 2;
pub const FF_PROFILE_UNKNOWN: libc::c_int = -99;
pub const FF_PROFILE_RESERVED: libc::c_int = -100;
pub const FF_PROFILE_AAC_MAIN: libc::c_int = 0;
pub const FF_PROFILE_AAC_LOW: libc::c_int = 1;
pub const FF_PROFILE_AAC_SSR: libc::c_int = 2;
pub const FF_PROFILE_AAC_LTP: libc::c_int = 3;
pub const FF_PROFILE_AAC_HE: libc::c_int = 4;
pub const FF_PROFILE_AAC_HE_V2: libc::c_int = 28;
pub const FF_PROFILE_AAC_LD: libc::c_int = 22;
pub const FF_PROFILE_AAC_ELD: libc::c_int = 38;
pub const FF_PROFILE_MPEG2_AAC_LOW: libc::c_int = 128;
pub const FF_PROFILE_MPEG2_AAC_HE: libc::c_int = 131;
pub const FF_PROFILE_DNXHD: libc::c_int = 0;
pub const FF_PROFILE_DNXHR_LB: libc::c_int = 1;
pub const FF_PROFILE_DNXHR_SQ: libc::c_int = 2;
pub const FF_PROFILE_DNXHR_HQ: libc::c_int = 3;
pub const FF_PROFILE_DNXHR_HQX: libc::c_int = 4;
pub const FF_PROFILE_DNXHR_444: libc::c_int = 5;
pub const FF_PROFILE_DTS: libc::c_int = 20;
pub const FF_PROFILE_DTS_ES: libc::c_int = 30;
pub const FF_PROFILE_DTS_96_24: libc::c_int = 40;
pub const FF_PROFILE_DTS_HD_HRA: libc::c_int = 50;
pub const FF_PROFILE_DTS_HD_MA: libc::c_int = 60;
pub const FF_PROFILE_DTS_EXPRESS: libc::c_int = 70;
pub const FF_PROFILE_MPEG2_422: libc::c_int = 0;
pub const FF_PROFILE_MPEG2_HIGH: libc::c_int = 1;
pub const FF_PROFILE_MPEG2_SS: libc::c_int = 2;
pub const FF_PROFILE_MPEG2_SNR_SCALABLE: libc::c_int = 3;
pub const FF_PROFILE_MPEG2_MAIN: libc::c_int = 4;
pub const FF_PROFILE_MPEG2_SIMPLE: libc::c_int = 5;
pub const FF_PROFILE_H264_CONSTRAINED: libc::c_int = 512;
pub const FF_PROFILE_H264_INTRA: libc::c_int = 2048;
pub const FF_PROFILE_H264_BASELINE: libc::c_int = 66;
pub const FF_PROFILE_H264_CONSTRAINED_BASELINE: libc::c_int = 578;
pub const FF_PROFILE_H264_MAIN: libc::c_int = 77;
pub const FF_PROFILE_H264_EXTENDED: libc::c_int = 88;
pub const FF_PROFILE_H264_HIGH: libc::c_int = 100;
pub const FF_PROFILE_H264_HIGH_10: libc::c_int = 110;
pub const FF_PROFILE_H264_HIGH_10_INTRA: libc::c_int = 2158;
pub const FF_PROFILE_H264_MULTIVIEW_HIGH: libc::c_int = 118;
pub const FF_PROFILE_H264_HIGH_422: libc::c_int = 122;
pub const FF_PROFILE_H264_HIGH_422_INTRA: libc::c_int = 2170;
pub const FF_PROFILE_H264_STEREO_HIGH: libc::c_int = 128;
pub const FF_PROFILE_H264_HIGH_444: libc::c_int = 144;
pub const FF_PROFILE_H264_HIGH_444_PREDICTIVE: libc::c_int = 244;
pub const FF_PROFILE_H264_HIGH_444_INTRA: libc::c_int = 2292;
pub const FF_PROFILE_H264_CAVLC_444: libc::c_int = 44;
pub const FF_PROFILE_VC1_SIMPLE: libc::c_int = 0;
pub const FF_PROFILE_VC1_MAIN: libc::c_int = 1;
pub const FF_PROFILE_VC1_COMPLEX: libc::c_int = 2;
pub const FF_PROFILE_VC1_ADVANCED: libc::c_int = 3;
pub const FF_PROFILE_MPEG4_SIMPLE: libc::c_int = 0;
pub const FF_PROFILE_MPEG4_SIMPLE_SCALABLE: libc::c_int = 1;
pub const FF_PROFILE_MPEG4_CORE: libc::c_int = 2;
pub const FF_PROFILE_MPEG4_MAIN: libc::c_int = 3;
pub const FF_PROFILE_MPEG4_N_BIT: libc::c_int = 4;
pub const FF_PROFILE_MPEG4_SCALABLE_TEXTURE: libc::c_int = 5;
pub const FF_PROFILE_MPEG4_SIMPLE_FACE_ANIMATION: libc::c_int = 6;
pub const FF_PROFILE_MPEG4_BASIC_ANIMATED_TEXTURE: libc::c_int = 7;
pub const FF_PROFILE_MPEG4_HYBRID: libc::c_int = 8;
pub const FF_PROFILE_MPEG4_ADVANCED_REAL_TIME: libc::c_int = 9;
pub const FF_PROFILE_MPEG4_CORE_SCALABLE: libc::c_int = 10;
pub const FF_PROFILE_MPEG4_ADVANCED_CODING: libc::c_int = 11;
pub const FF_PROFILE_MPEG4_ADVANCED_CORE: libc::c_int = 12;
pub const FF_PROFILE_MPEG4_ADVANCED_SCALABLE_TEXTURE: libc::c_int = 13;
pub const FF_PROFILE_MPEG4_SIMPLE_STUDIO: libc::c_int = 14;
pub const FF_PROFILE_MPEG4_ADVANCED_SIMPLE: libc::c_int = 15;
pub const FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_0: libc::c_int = 1;
pub const FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_1: libc::c_int = 2;
pub const FF_PROFILE_JPEG2000_CSTREAM_NO_RESTRICTION: libc::c_int = 32768;
pub const FF_PROFILE_JPEG2000_DCINEMA_2K: libc::c_int = 3;
pub const FF_PROFILE_JPEG2000_DCINEMA_4K: libc::c_int = 4;
pub const FF_PROFILE_VP9_0: libc::c_int = 0;
pub const FF_PROFILE_VP9_1: libc::c_int = 1;
pub const FF_PROFILE_VP9_2: libc::c_int = 2;
pub const FF_PROFILE_VP9_3: libc::c_int = 3;
pub const FF_PROFILE_HEVC_MAIN: libc::c_int = 1;
pub const FF_PROFILE_HEVC_MAIN_10: libc::c_int = 2;
pub const FF_PROFILE_HEVC_MAIN_STILL_PICTURE: libc::c_int = 3;
pub const FF_PROFILE_HEVC_REXT: libc::c_int = 4;
pub const FF_PROFILE_VVC_MAIN_10: libc::c_int = 1;
pub const FF_PROFILE_VVC_MAIN_10_444: libc::c_int = 33;
pub const FF_PROFILE_AV1_MAIN: libc::c_int = 0;
pub const FF_PROFILE_AV1_HIGH: libc::c_int = 1;
pub const FF_PROFILE_AV1_PROFESSIONAL: libc::c_int = 2;
pub const FF_PROFILE_MJPEG_HUFFMAN_BASELINE_DCT: libc::c_int = 192;
pub const FF_PROFILE_MJPEG_HUFFMAN_EXTENDED_SEQUENTIAL_DCT: libc::c_int = 193;
pub const FF_PROFILE_MJPEG_HUFFMAN_PROGRESSIVE_DCT: libc::c_int = 194;
pub const FF_PROFILE_MJPEG_HUFFMAN_LOSSLESS: libc::c_int = 195;
pub const FF_PROFILE_MJPEG_JPEG_LS: libc::c_int = 247;
pub const FF_PROFILE_SBC_MSBC: libc::c_int = 1;
pub const FF_PROFILE_PRORES_PROXY: libc::c_int = 0;
pub const FF_PROFILE_PRORES_LT: libc::c_int = 1;
pub const FF_PROFILE_PRORES_STANDARD: libc::c_int = 2;
pub const FF_PROFILE_PRORES_HQ: libc::c_int = 3;
pub const FF_PROFILE_PRORES_4444: libc::c_int = 4;
pub const FF_PROFILE_PRORES_XQ: libc::c_int = 5;
pub const FF_PROFILE_ARIB_PROFILE_A: libc::c_int = 0;
pub const FF_PROFILE_ARIB_PROFILE_C: libc::c_int = 1;
pub const FF_PROFILE_KLVA_SYNC: libc::c_int = 0;
pub const FF_PROFILE_KLVA_ASYNC: libc::c_int = 1;
pub const FF_LEVEL_UNKNOWN: libc::c_int = -99;
pub const FF_SUB_CHARENC_MODE_DO_NOTHING: libc::c_int = -1;
pub const FF_SUB_CHARENC_MODE_AUTOMATIC: libc::c_int = 0;
pub const FF_SUB_CHARENC_MODE_PRE_DECODER: libc::c_int = 1;
pub const FF_SUB_CHARENC_MODE_IGNORE: libc::c_int = 2;
pub const FF_DEBUG_VIS_MV_P_FOR: libc::c_int = 1;
pub const FF_DEBUG_VIS_MV_B_FOR: libc::c_int = 2;
pub const FF_DEBUG_VIS_MV_B_BACK: libc::c_int = 4;
pub const FF_CODEC_PROPERTY_LOSSLESS: libc::c_int = 1;
pub const FF_CODEC_PROPERTY_CLOSED_CAPTIONS: libc::c_int = 2;
pub const FF_SUB_TEXT_FMT_ASS: libc::c_int = 0;
pub const FF_SUB_TEXT_FMT_ASS_WITH_TIMINGS: libc::c_int = 1;
pub const AV_HWACCEL_CODEC_CAP_EXPERIMENTAL: libc::c_int = 512;
pub const AV_HWACCEL_FLAG_IGNORE_LEVEL: libc::c_int = 1;
pub const AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH: libc::c_int = 2;
pub const AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH: libc::c_int = 4;
pub const AV_SUBTITLE_FLAG_FORCED: libc::c_int = 1;
pub const AV_PARSER_PTS_NB: libc::c_int = 4;
pub const PARSER_FLAG_COMPLETE_FRAMES: libc::c_int = 1;
pub const PARSER_FLAG_ONCE: libc::c_int = 2;
pub const PARSER_FLAG_FETCHED_OFFSET: libc::c_int = 4;
pub const PARSER_FLAG_USE_CODEC_TS: libc::c_int = 4096;
pub const DV_PROFILE_BYTES: libc::c_int = 480;
pub const VORBIS_FLAG_HEADER: libc::c_int = 1;
pub const VORBIS_FLAG_COMMENT: libc::c_int = 2;
pub const VORBIS_FLAG_SETUP: libc::c_int = 4;
pub const LIBAVDEVICE_VERSION_MAJOR: libc::c_int = 58;
pub const LIBAVDEVICE_VERSION_MINOR: libc::c_int = 13;
pub const LIBAVDEVICE_VERSION_MICRO: libc::c_int = 100;
pub const AV_OPT_FLAG_ENCODING_PARAM: libc::c_int = 1;
pub const AV_OPT_FLAG_DECODING_PARAM: libc::c_int = 2;
pub const AV_OPT_FLAG_AUDIO_PARAM: libc::c_int = 8;
pub const AV_OPT_FLAG_VIDEO_PARAM: libc::c_int = 16;
pub const AV_OPT_FLAG_SUBTITLE_PARAM: libc::c_int = 32;
pub const AV_OPT_FLAG_EXPORT: libc::c_int = 64;
pub const AV_OPT_FLAG_READONLY: libc::c_int = 128;
pub const AV_OPT_FLAG_BSF_PARAM: libc::c_int = 256;
pub const AV_OPT_FLAG_RUNTIME_PARAM: libc::c_int = 32768;
pub const AV_OPT_FLAG_FILTERING_PARAM: libc::c_int = 65536;
pub const AV_OPT_FLAG_DEPRECATED: libc::c_int = 131072;
pub const AV_OPT_FLAG_CHILD_CONSTS: libc::c_int = 262144;
pub const AV_OPT_SEARCH_CHILDREN: libc::c_int = 1;
pub const AV_OPT_SEARCH_FAKE_OBJ: libc::c_int = 2;
pub const AV_OPT_ALLOW_NULL: libc::c_int = 4;
pub const AV_OPT_MULTI_COMPONENT_RANGE: libc::c_int = 4096;
pub const AV_OPT_SERIALIZE_SKIP_DEFAULTS: libc::c_int = 1;
pub const AV_OPT_SERIALIZE_OPT_FLAGS_EXACT: libc::c_int = 2;
pub const _TIME_H: libc::c_int = 1;
pub const _BITS_TIME_H: libc::c_int = 1;
pub const CLOCK_REALTIME: libc::c_int = 0;
pub const CLOCK_MONOTONIC: libc::c_int = 1;
pub const CLOCK_PROCESS_CPUTIME_ID: libc::c_int = 2;
pub const CLOCK_THREAD_CPUTIME_ID: libc::c_int = 3;
pub const CLOCK_MONOTONIC_RAW: libc::c_int = 4;
pub const CLOCK_REALTIME_COARSE: libc::c_int = 5;
pub const CLOCK_MONOTONIC_COARSE: libc::c_int = 6;
pub const CLOCK_BOOTTIME: libc::c_int = 7;
pub const CLOCK_REALTIME_ALARM: libc::c_int = 8;
pub const CLOCK_BOOTTIME_ALARM: libc::c_int = 9;
pub const CLOCK_TAI: libc::c_int = 11;
pub const TIMER_ABSTIME: libc::c_int = 1;
pub const __struct_tm_defined: libc::c_int = 1;
pub const __itimerspec_defined: libc::c_int = 1;
pub const TIME_UTC: libc::c_int = 1;
pub const LIBAVFORMAT_VERSION_MAJOR: libc::c_int = 58;
pub const LIBAVFORMAT_VERSION_MINOR: libc::c_int = 76;
pub const LIBAVFORMAT_VERSION_MICRO: libc::c_int = 100;
pub const FF_API_R_FRAME_RATE: libc::c_int = 1;
pub const AVIO_SEEKABLE_NORMAL: libc::c_int = 1;
pub const AVIO_SEEKABLE_TIME: libc::c_int = 2;
pub const AVSEEK_SIZE: libc::c_int = 65536;
pub const AVSEEK_FORCE: libc::c_int = 131072;
pub const AVIO_FLAG_READ: libc::c_int = 1;
pub const AVIO_FLAG_WRITE: libc::c_int = 2;
pub const AVIO_FLAG_READ_WRITE: libc::c_int = 3;
pub const AVIO_FLAG_NONBLOCK: libc::c_int = 8;
pub const AVIO_FLAG_DIRECT: libc::c_int = 32768;
pub const AVPROBE_SCORE_EXTENSION: libc::c_int = 50;
pub const AVPROBE_SCORE_MIME: libc::c_int = 75;
pub const AVPROBE_SCORE_MAX: libc::c_int = 100;
pub const AVPROBE_PADDING_SIZE: libc::c_int = 32;
pub const AVFMT_NOFILE: libc::c_int = 1;
pub const AVFMT_NEEDNUMBER: libc::c_int = 2;
pub const AVFMT_SHOW_IDS: libc::c_int = 8;
pub const AVFMT_GLOBALHEADER: libc::c_int = 64;
pub const AVFMT_NOTIMESTAMPS: libc::c_int = 128;
pub const AVFMT_GENERIC_INDEX: libc::c_int = 256;
pub const AVFMT_TS_DISCONT: libc::c_int = 512;
pub const AVFMT_VARIABLE_FPS: libc::c_int = 1024;
pub const AVFMT_NODIMENSIONS: libc::c_int = 2048;
pub const AVFMT_NOSTREAMS: libc::c_int = 4096;
pub const AVFMT_NOBINSEARCH: libc::c_int = 8192;
pub const AVFMT_NOGENSEARCH: libc::c_int = 16384;
pub const AVFMT_NO_BYTE_SEEK: libc::c_int = 32768;
pub const AVFMT_ALLOW_FLUSH: libc::c_int = 65536;
pub const AVFMT_TS_NONSTRICT: libc::c_int = 131072;
pub const AVFMT_TS_NEGATIVE: libc::c_int = 262144;
pub const AVFMT_SEEK_TO_PTS: libc::c_int = 67108864;
pub const AVINDEX_KEYFRAME: libc::c_int = 1;
pub const AVINDEX_DISCARD_FRAME: libc::c_int = 2;
pub const AV_DISPOSITION_DEFAULT: libc::c_int = 1;
pub const AV_DISPOSITION_DUB: libc::c_int = 2;
pub const AV_DISPOSITION_ORIGINAL: libc::c_int = 4;
pub const AV_DISPOSITION_COMMENT: libc::c_int = 8;
pub const AV_DISPOSITION_LYRICS: libc::c_int = 16;
pub const AV_DISPOSITION_KARAOKE: libc::c_int = 32;
pub const AV_DISPOSITION_FORCED: libc::c_int = 64;
pub const AV_DISPOSITION_HEARING_IMPAIRED: libc::c_int = 128;
pub const AV_DISPOSITION_VISUAL_IMPAIRED: libc::c_int = 256;
pub const AV_DISPOSITION_CLEAN_EFFECTS: libc::c_int = 512;
pub const AV_DISPOSITION_ATTACHED_PIC: libc::c_int = 1024;
pub const AV_DISPOSITION_TIMED_THUMBNAILS: libc::c_int = 2048;
pub const AV_DISPOSITION_CAPTIONS: libc::c_int = 65536;
pub const AV_DISPOSITION_DESCRIPTIONS: libc::c_int = 131072;
pub const AV_DISPOSITION_METADATA: libc::c_int = 262144;
pub const AV_DISPOSITION_DEPENDENT: libc::c_int = 524288;
pub const AV_DISPOSITION_STILL_IMAGE: libc::c_int = 1048576;
pub const AV_PTS_WRAP_IGNORE: libc::c_int = 0;
pub const AV_PTS_WRAP_ADD_OFFSET: libc::c_int = 1;
pub const AV_PTS_WRAP_SUB_OFFSET: libc::c_int = -1;
pub const AVSTREAM_EVENT_FLAG_METADATA_UPDATED: libc::c_int = 1;
pub const AVSTREAM_EVENT_FLAG_NEW_PACKETS: libc::c_int = 2;
pub const AV_PROGRAM_RUNNING: libc::c_int = 1;
pub const AVFMTCTX_NOHEADER: libc::c_int = 1;
pub const AVFMTCTX_UNSEEKABLE: libc::c_int = 2;
pub const AVFMT_FLAG_GENPTS: libc::c_int = 1;
pub const AVFMT_FLAG_IGNIDX: libc::c_int = 2;
pub const AVFMT_FLAG_NONBLOCK: libc::c_int = 4;
pub const AVFMT_FLAG_IGNDTS: libc::c_int = 8;
pub const AVFMT_FLAG_NOFILLIN: libc::c_int = 16;
pub const AVFMT_FLAG_NOPARSE: libc::c_int = 32;
pub const AVFMT_FLAG_NOBUFFER: libc::c_int = 64;
pub const AVFMT_FLAG_CUSTOM_IO: libc::c_int = 128;
pub const AVFMT_FLAG_DISCARD_CORRUPT: libc::c_int = 256;
pub const AVFMT_FLAG_FLUSH_PACKETS: libc::c_int = 512;
pub const AVFMT_FLAG_BITEXACT: libc::c_int = 1024;
pub const AVFMT_FLAG_MP4A_LATM: libc::c_int = 32768;
pub const AVFMT_FLAG_SORT_DTS: libc::c_int = 65536;
pub const AVFMT_FLAG_PRIV_OPT: libc::c_int = 131072;
pub const AVFMT_FLAG_KEEP_SIDE_DATA: libc::c_int = 262144;
pub const AVFMT_FLAG_FAST_SEEK: libc::c_int = 524288;
pub const AVFMT_FLAG_SHORTEST: libc::c_int = 1048576;
pub const AVFMT_FLAG_AUTO_BSF: libc::c_int = 2097152;
pub const FF_FDEBUG_TS: libc::c_int = 1;
pub const AVFMT_EVENT_FLAG_METADATA_UPDATED: libc::c_int = 1;
pub const AVFMT_AVOID_NEG_TS_AUTO: libc::c_int = -1;
pub const AVFMT_AVOID_NEG_TS_MAKE_NON_NEGATIVE: libc::c_int = 1;
pub const AVFMT_AVOID_NEG_TS_MAKE_ZERO: libc::c_int = 2;
pub const AVSEEK_FLAG_BACKWARD: libc::c_int = 1;
pub const AVSEEK_FLAG_BYTE: libc::c_int = 2;
pub const AVSEEK_FLAG_ANY: libc::c_int = 4;
pub const AVSEEK_FLAG_FRAME: libc::c_int = 8;
pub const AVSTREAM_INIT_IN_WRITE_HEADER: libc::c_int = 0;
pub const AVSTREAM_INIT_IN_INIT_OUTPUT: libc::c_int = 1;
pub const AV_FRAME_FILENAME_FLAGS_MULTIPLE: libc::c_int = 1;
pub const LIBAVFILTER_VERSION_MAJOR: libc::c_int = 7;
pub const LIBAVFILTER_VERSION_MINOR: libc::c_int = 110;
pub const LIBAVFILTER_VERSION_MICRO: libc::c_int = 100;
pub const AVFILTER_FLAG_DYNAMIC_INPUTS: libc::c_int = 1;
pub const AVFILTER_FLAG_DYNAMIC_OUTPUTS: libc::c_int = 2;
pub const AVFILTER_FLAG_SLICE_THREADS: libc::c_int = 4;
pub const AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC: libc::c_int = 65536;
pub const AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL: libc::c_int = 131072;
pub const AVFILTER_FLAG_SUPPORT_TIMELINE: libc::c_int = 196608;
pub const AVFILTER_THREAD_SLICE: libc::c_int = 1;
pub const AVFILTER_CMD_FLAG_ONE: libc::c_int = 1;
pub const AVFILTER_CMD_FLAG_FAST: libc::c_int = 2;
pub const AV_BUFFERSINK_FLAG_PEEK: libc::c_int = 1;
pub const AV_BUFFERSINK_FLAG_NO_REQUEST: libc::c_int = 2;
pub const AV_BF_ROUNDS: libc::c_int = 16;
pub const AV_ESCAPE_FLAG_WHITESPACE: libc::c_int = 1;
pub const AV_ESCAPE_FLAG_STRICT: libc::c_int = 2;
pub const AV_ESCAPE_FLAG_XML_SINGLE_QUOTES: libc::c_int = 4;
pub const AV_ESCAPE_FLAG_XML_DOUBLE_QUOTES: libc::c_int = 8;
pub const AV_UTF8_FLAG_ACCEPT_INVALID_BIG_CODES: libc::c_int = 1;
pub const AV_UTF8_FLAG_ACCEPT_NON_CHARACTERS: libc::c_int = 2;
pub const AV_UTF8_FLAG_ACCEPT_SURROGATES: libc::c_int = 4;
pub const AV_UTF8_FLAG_EXCLUDE_XML_INVALID_CONTROL_CODES: libc::c_int = 8;
pub const AV_UTF8_FLAG_ACCEPT_ALL: libc::c_int = 7;
pub const AV_BPRINT_SIZE_AUTOMATIC: libc::c_int = 1;
pub const AV_BPRINT_SIZE_COUNT_ONLY: libc::c_int = 0;
pub const AV_HASH_MAX_SIZE: libc::c_int = 64;
pub const AV_PIX_FMT_FLAG_BE: libc::c_int = 1;
pub const AV_PIX_FMT_FLAG_PAL: libc::c_int = 2;
pub const AV_PIX_FMT_FLAG_BITSTREAM: libc::c_int = 4;
pub const AV_PIX_FMT_FLAG_HWACCEL: libc::c_int = 8;
pub const AV_PIX_FMT_FLAG_PLANAR: libc::c_int = 16;
pub const AV_PIX_FMT_FLAG_RGB: libc::c_int = 32;
pub const AV_PIX_FMT_FLAG_PSEUDOPAL: libc::c_int = 64;
pub const AV_PIX_FMT_FLAG_ALPHA: libc::c_int = 128;
pub const AV_PIX_FMT_FLAG_BAYER: libc::c_int = 256;
pub const AV_PIX_FMT_FLAG_FLOAT: libc::c_int = 512;
pub const FF_LOSS_RESOLUTION: libc::c_int = 1;
pub const FF_LOSS_DEPTH: libc::c_int = 2;
pub const FF_LOSS_COLORSPACE: libc::c_int = 4;
pub const FF_LOSS_ALPHA: libc::c_int = 8;
pub const FF_LOSS_COLORQUANT: libc::c_int = 16;
pub const FF_LOSS_CHROMA: libc::c_int = 32;
pub const AV_LZO_INPUT_DEPLETED: libc::c_int = 1;
pub const AV_LZO_OUTPUT_FULL: libc::c_int = 2;
pub const AV_LZO_INVALID_BACKPTR: libc::c_int = 4;
pub const AV_LZO_ERROR: libc::c_int = 8;
pub const AV_LZO_INPUT_PADDING: libc::c_int = 8;
pub const AV_LZO_OUTPUT_PADDING: libc::c_int = 12;
pub const AV_STEREO3D_FLAG_INVERT: libc::c_int = 1;
pub const AV_TIMECODE_STR_SIZE: libc::c_int = 23;
pub const LIBSWRESAMPLE_VERSION_MAJOR: libc::c_int = 3;
pub const LIBSWRESAMPLE_VERSION_MINOR: libc::c_int = 9;
pub const LIBSWRESAMPLE_VERSION_MICRO: libc::c_int = 100;
pub const SWR_FLAG_RESAMPLE: libc::c_int = 1;
pub const LIBSWSCALE_VERSION_MAJOR: libc::c_int = 5;
pub const LIBSWSCALE_VERSION_MINOR: libc::c_int = 9;
pub const LIBSWSCALE_VERSION_MICRO: libc::c_int = 100;
pub const SWS_FAST_BILINEAR: libc::c_int = 1;
pub const SWS_BILINEAR: libc::c_int = 2;
pub const SWS_BICUBIC: libc::c_int = 4;
pub const SWS_X: libc::c_int = 8;
pub const SWS_POINT: libc::c_int = 16;
pub const SWS_AREA: libc::c_int = 32;
pub const SWS_BICUBLIN: libc::c_int = 64;
pub const SWS_GAUSS: libc::c_int = 128;
pub const SWS_SINC: libc::c_int = 256;
pub const SWS_LANCZOS: libc::c_int = 512;
pub const SWS_SPLINE: libc::c_int = 1024;
pub const SWS_SRC_V_CHR_DROP_MASK: libc::c_int = 196608;
pub const SWS_SRC_V_CHR_DROP_SHIFT: libc::c_int = 16;
pub const SWS_PARAM_DEFAULT: libc::c_int = 123456;
pub const SWS_PRINT_INFO: libc::c_int = 4096;
pub const SWS_FULL_CHR_H_INT: libc::c_int = 8192;
pub const SWS_FULL_CHR_H_INP: libc::c_int = 16384;
pub const SWS_DIRECT_BGR: libc::c_int = 32768;
pub const SWS_ACCURATE_RND: libc::c_int = 262144;
pub const SWS_BITEXACT: libc::c_int = 524288;
pub const SWS_ERROR_DIFFUSION: libc::c_int = 8388608;
pub const SWS_MAX_REDUCE_CUTOFF: f64 = 0.002;
pub const SWS_CS_ITU709: libc::c_int = 1;
pub const SWS_CS_FCC: libc::c_int = 4;
pub const SWS_CS_ITU601: libc::c_int = 5;
pub const SWS_CS_ITU624: libc::c_int = 5;
pub const SWS_CS_SMPTE170M: libc::c_int = 5;
pub const SWS_CS_SMPTE240M: libc::c_int = 7;
pub const SWS_CS_DEFAULT: libc::c_int = 5;
pub const SWS_CS_BT2020: libc::c_int = 9;
pub type __u_char = libc::c_uchar;
pub type __u_short = libc::c_ushort;
pub type __u_int = libc::c_uint;
pub type __u_long = libc::c_ulong;
pub type __int8_t = libc::c_schar;
pub type __uint8_t = libc::c_uchar;
pub type __int16_t = libc::c_short;
pub type __uint16_t = libc::c_ushort;
pub type __int32_t = libc::c_int;
pub type __uint32_t = libc::c_uint;
pub type __int64_t = libc::c_long;
pub type __uint64_t = libc::c_ulong;
pub type __int_least8_t = __int8_t;
pub type __uint_least8_t = __uint8_t;
pub type __int_least16_t = __int16_t;
pub type __uint_least16_t = __uint16_t;
pub type __int_least32_t = __int32_t;
pub type __uint_least32_t = __uint32_t;
pub type __int_least64_t = __int64_t;
pub type __uint_least64_t = __uint64_t;
pub type __quad_t = libc::c_long;
pub type __u_quad_t = libc::c_ulong;
pub type __intmax_t = libc::c_long;
pub type __uintmax_t = libc::c_ulong;
pub type __dev_t = libc::c_ulong;
pub type __uid_t = libc::c_uint;
pub type __gid_t = libc::c_uint;
pub type __ino_t = libc::c_ulong;
pub type __ino64_t = libc::c_ulong;
pub type __mode_t = libc::c_uint;
pub type __nlink_t = libc::c_ulong;
pub type __off_t = libc::c_long;
pub type __off64_t = libc::c_long;
pub type __pid_t = libc::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct __fsid_t {
pub __val: [libc::c_int; 2usize],
}
#[test]
fn bindgen_test_layout___fsid_t() {
const UNINIT: ::std::mem::MaybeUninit<__fsid_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__fsid_t>(),
8usize,
concat!("Size of: ", stringify!(__fsid_t))
);
assert_eq!(
::std::mem::align_of::<__fsid_t>(),
4usize,
concat!("Alignment of ", stringify!(__fsid_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__val) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__fsid_t),
"::",
stringify!(__val)
)
);
}
pub type __clock_t = libc::c_long;
pub type __rlim_t = libc::c_ulong;
pub type __rlim64_t = libc::c_ulong;
pub type __id_t = libc::c_uint;
pub type __time_t = libc::c_long;
pub type __useconds_t = libc::c_uint;
pub type __suseconds_t = libc::c_long;
pub type __suseconds64_t = libc::c_long;
pub type __daddr_t = libc::c_int;
pub type __key_t = libc::c_int;
pub type __clockid_t = libc::c_int;
pub type __timer_t = *mut libc::c_void;
pub type __blksize_t = libc::c_long;
pub type __blkcnt_t = libc::c_long;
pub type __blkcnt64_t = libc::c_long;
pub type __fsblkcnt_t = libc::c_ulong;
pub type __fsblkcnt64_t = libc::c_ulong;
pub type __fsfilcnt_t = libc::c_ulong;
pub type __fsfilcnt64_t = libc::c_ulong;
pub type __fsword_t = libc::c_long;
pub type __ssize_t = libc::c_long;
pub type __syscall_slong_t = libc::c_long;
pub type __syscall_ulong_t = libc::c_ulong;
pub type __loff_t = __off64_t;
pub type __caddr_t = *mut libc::c_char;
pub type __intptr_t = libc::c_long;
pub type __socklen_t = libc::c_uint;
pub type __sig_atomic_t = libc::c_int;
pub type int_least8_t = __int_least8_t;
pub type int_least16_t = __int_least16_t;
pub type int_least32_t = __int_least32_t;
pub type int_least64_t = __int_least64_t;
pub type uint_least8_t = __uint_least8_t;
pub type uint_least16_t = __uint_least16_t;
pub type uint_least32_t = __uint_least32_t;
pub type uint_least64_t = __uint_least64_t;
pub type int_fast8_t = libc::c_schar;
pub type int_fast16_t = libc::c_long;
pub type int_fast32_t = libc::c_long;
pub type int_fast64_t = libc::c_long;
pub type uint_fast8_t = libc::c_uchar;
pub type uint_fast16_t = libc::c_ulong;
pub type uint_fast32_t = libc::c_ulong;
pub type uint_fast64_t = libc::c_ulong;
pub type intmax_t = __intmax_t;
pub type uintmax_t = __uintmax_t;
extern "C" {
pub fn avutil_version() -> libc::c_uint;
}
extern "C" {
pub fn av_version_info() -> *const libc::c_char;
}
extern "C" {
pub fn avutil_configuration() -> *const libc::c_char;
}
extern "C" {
pub fn avutil_license() -> *const libc::c_char;
}
#[repr(i32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVMediaType {
AVMEDIA_TYPE_UNKNOWN = -1,
AVMEDIA_TYPE_VIDEO = 0,
AVMEDIA_TYPE_AUDIO = 1,
AVMEDIA_TYPE_DATA = 2,
AVMEDIA_TYPE_SUBTITLE = 3,
AVMEDIA_TYPE_ATTACHMENT = 4,
AVMEDIA_TYPE_NB = 5,
}
extern "C" {
pub fn av_get_media_type_string(media_type: AVMediaType) -> *const libc::c_char;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVPictureType {
AV_PICTURE_TYPE_NONE = 0,
AV_PICTURE_TYPE_I = 1,
AV_PICTURE_TYPE_P = 2,
AV_PICTURE_TYPE_B = 3,
AV_PICTURE_TYPE_S = 4,
AV_PICTURE_TYPE_SI = 5,
AV_PICTURE_TYPE_SP = 6,
AV_PICTURE_TYPE_BI = 7,
}
extern "C" {
pub fn av_get_picture_type_char(pict_type: AVPictureType) -> libc::c_char;
}
pub type __gwchar_t = libc::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct imaxdiv_t {
pub quot: libc::c_long,
pub rem: libc::c_long,
}
#[test]
fn bindgen_test_layout_imaxdiv_t() {
const UNINIT: ::std::mem::MaybeUninit<imaxdiv_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<imaxdiv_t>(),
16usize,
concat!("Size of: ", stringify!(imaxdiv_t))
);
assert_eq!(
::std::mem::align_of::<imaxdiv_t>(),
8usize,
concat!("Alignment of ", stringify!(imaxdiv_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(imaxdiv_t),
"::",
stringify!(quot)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(imaxdiv_t),
"::",
stringify!(rem)
)
);
}
extern "C" {
pub fn imaxabs(__n: intmax_t) -> intmax_t;
}
extern "C" {
pub fn imaxdiv(__numer: intmax_t, __denom: intmax_t) -> imaxdiv_t;
}
extern "C" {
pub fn strtoimax(
__nptr: *const libc::c_char,
__endptr: *mut *mut libc::c_char,
__base: libc::c_int,
) -> intmax_t;
}
extern "C" {
pub fn strtoumax(
__nptr: *const libc::c_char,
__endptr: *mut *mut libc::c_char,
__base: libc::c_int,
) -> uintmax_t;
}
extern "C" {
pub fn wcstoimax(
__nptr: *const __gwchar_t,
__endptr: *mut *mut __gwchar_t,
__base: libc::c_int,
) -> intmax_t;
}
extern "C" {
pub fn wcstoumax(
__nptr: *const __gwchar_t,
__endptr: *mut *mut __gwchar_t,
__base: libc::c_int,
) -> uintmax_t;
}
pub type _Float32 = f32;
pub type _Float64 = f64;
pub type _Float32x = f64;
pub type _Float64x = u128;
pub type float_t = f32;
pub type double_t = f64;
extern "C" {
pub fn acos(__x: f64) -> f64;
}
extern "C" {
pub fn asin(__x: f64) -> f64;
}
extern "C" {
pub fn atan(__x: f64) -> f64;
}
extern "C" {
pub fn atan2(__y: f64, __x: f64) -> f64;
}
extern "C" {
pub fn cos(__x: f64) -> f64;
}
extern "C" {
pub fn sin(__x: f64) -> f64;
}
extern "C" {
pub fn tan(__x: f64) -> f64;
}
extern "C" {
pub fn cosh(__x: f64) -> f64;
}
extern "C" {
pub fn sinh(__x: f64) -> f64;
}
extern "C" {
pub fn tanh(__x: f64) -> f64;
}
extern "C" {
pub fn acosh(__x: f64) -> f64;
}
extern "C" {
pub fn asinh(__x: f64) -> f64;
}
extern "C" {
pub fn atanh(__x: f64) -> f64;
}
extern "C" {
pub fn exp(__x: f64) -> f64;
}
extern "C" {
pub fn frexp(__x: f64, __exponent: *mut libc::c_int) -> f64;
}
extern "C" {
pub fn ldexp(__x: f64, __exponent: libc::c_int) -> f64;
}
extern "C" {
pub fn log(__x: f64) -> f64;
}
extern "C" {
pub fn log10(__x: f64) -> f64;
}
extern "C" {
pub fn modf(__x: f64, __iptr: *mut f64) -> f64;
}
extern "C" {
pub fn expm1(__x: f64) -> f64;
}
extern "C" {
pub fn log1p(__x: f64) -> f64;
}
extern "C" {
pub fn logb(__x: f64) -> f64;
}
extern "C" {
pub fn exp2(__x: f64) -> f64;
}
extern "C" {
pub fn log2(__x: f64) -> f64;
}
extern "C" {
pub fn pow(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn sqrt(__x: f64) -> f64;
}
extern "C" {
pub fn hypot(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn cbrt(__x: f64) -> f64;
}
extern "C" {
pub fn ceil(__x: f64) -> f64;
}
extern "C" {
pub fn fabs(__x: f64) -> f64;
}
extern "C" {
pub fn floor(__x: f64) -> f64;
}
extern "C" {
pub fn fmod(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn isinf(__value: f64) -> libc::c_int;
}
extern "C" {
pub fn finite(__value: f64) -> libc::c_int;
}
extern "C" {
pub fn drem(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn significand(__x: f64) -> f64;
}
extern "C" {
pub fn copysign(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn nan(__tagb: *const libc::c_char) -> f64;
}
extern "C" {
pub fn isnan(__value: f64) -> libc::c_int;
}
extern "C" {
pub fn j0(arg1: f64) -> f64;
}
extern "C" {
pub fn j1(arg1: f64) -> f64;
}
extern "C" {
pub fn jn(arg1: libc::c_int, arg2: f64) -> f64;
}
extern "C" {
pub fn y0(arg1: f64) -> f64;
}
extern "C" {
pub fn y1(arg1: f64) -> f64;
}
extern "C" {
pub fn yn(arg1: libc::c_int, arg2: f64) -> f64;
}
extern "C" {
pub fn erf(arg1: f64) -> f64;
}
extern "C" {
pub fn erfc(arg1: f64) -> f64;
}
extern "C" {
pub fn lgamma(arg1: f64) -> f64;
}
extern "C" {
pub fn tgamma(arg1: f64) -> f64;
}
extern "C" {
pub fn gamma(arg1: f64) -> f64;
}
extern "C" {
pub fn lgamma_r(arg1: f64, __signgamp: *mut libc::c_int) -> f64;
}
extern "C" {
pub fn rint(__x: f64) -> f64;
}
extern "C" {
pub fn nextafter(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn remainder(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn scalbn(__x: f64, __n: libc::c_int) -> f64;
}
extern "C" {
pub fn ilogb(__x: f64) -> libc::c_int;
}
extern "C" {
pub fn scalbln(__x: f64, __n: libc::c_long) -> f64;
}
extern "C" {
pub fn nearbyint(__x: f64) -> f64;
}
extern "C" {
pub fn round(__x: f64) -> f64;
}
extern "C" {
pub fn trunc(__x: f64) -> f64;
}
extern "C" {
pub fn remquo(__x: f64, __y: f64, __quo: *mut libc::c_int) -> f64;
}
extern "C" {
pub fn lrint(__x: f64) -> libc::c_long;
}
extern "C" {
pub fn llrint(__x: f64) -> libc::c_longlong;
}
extern "C" {
pub fn lround(__x: f64) -> libc::c_long;
}
extern "C" {
pub fn llround(__x: f64) -> libc::c_longlong;
}
extern "C" {
pub fn fdim(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn fmax(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn fmin(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn fma(__x: f64, __y: f64, __z: f64) -> f64;
}
extern "C" {
pub fn scalb(__x: f64, __n: f64) -> f64;
}
extern "C" {
pub fn acosf(__x: f32) -> f32;
}
extern "C" {
pub fn asinf(__x: f32) -> f32;
}
extern "C" {
pub fn atanf(__x: f32) -> f32;
}
extern "C" {
pub fn atan2f(__y: f32, __x: f32) -> f32;
}
extern "C" {
pub fn cosf(__x: f32) -> f32;
}
extern "C" {
pub fn sinf(__x: f32) -> f32;
}
extern "C" {
pub fn tanf(__x: f32) -> f32;
}
extern "C" {
pub fn coshf(__x: f32) -> f32;
}
extern "C" {
pub fn sinhf(__x: f32) -> f32;
}
extern "C" {
pub fn tanhf(__x: f32) -> f32;
}
extern "C" {
pub fn acoshf(__x: f32) -> f32;
}
extern "C" {
pub fn asinhf(__x: f32) -> f32;
}
extern "C" {
pub fn atanhf(__x: f32) -> f32;
}
extern "C" {
pub fn expf(__x: f32) -> f32;
}
extern "C" {
pub fn frexpf(__x: f32, __exponent: *mut libc::c_int) -> f32;
}
extern "C" {
pub fn ldexpf(__x: f32, __exponent: libc::c_int) -> f32;
}
extern "C" {
pub fn logf(__x: f32) -> f32;
}
extern "C" {
pub fn log10f(__x: f32) -> f32;
}
extern "C" {
pub fn modff(__x: f32, __iptr: *mut f32) -> f32;
}
extern "C" {
pub fn expm1f(__x: f32) -> f32;
}
extern "C" {
pub fn log1pf(__x: f32) -> f32;
}
extern "C" {
pub fn logbf(__x: f32) -> f32;
}
extern "C" {
pub fn exp2f(__x: f32) -> f32;
}
extern "C" {
pub fn log2f(__x: f32) -> f32;
}
extern "C" {
pub fn powf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn sqrtf(__x: f32) -> f32;
}
extern "C" {
pub fn hypotf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn cbrtf(__x: f32) -> f32;
}
extern "C" {
pub fn ceilf(__x: f32) -> f32;
}
extern "C" {
pub fn fabsf(__x: f32) -> f32;
}
extern "C" {
pub fn floorf(__x: f32) -> f32;
}
extern "C" {
pub fn fmodf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn isinff(__value: f32) -> libc::c_int;
}
extern "C" {
pub fn finitef(__value: f32) -> libc::c_int;
}
extern "C" {
pub fn dremf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn significandf(__x: f32) -> f32;
}
extern "C" {
pub fn copysignf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn nanf(__tagb: *const libc::c_char) -> f32;
}
extern "C" {
pub fn isnanf(__value: f32) -> libc::c_int;
}
extern "C" {
pub fn j0f(arg1: f32) -> f32;
}
extern "C" {
pub fn j1f(arg1: f32) -> f32;
}
extern "C" {
pub fn jnf(arg1: libc::c_int, arg2: f32) -> f32;
}
extern "C" {
pub fn y0f(arg1: f32) -> f32;
}
extern "C" {
pub fn y1f(arg1: f32) -> f32;
}
extern "C" {
pub fn ynf(arg1: libc::c_int, arg2: f32) -> f32;
}
extern "C" {
pub fn erff(arg1: f32) -> f32;
}
extern "C" {
pub fn erfcf(arg1: f32) -> f32;
}
extern "C" {
pub fn lgammaf(arg1: f32) -> f32;
}
extern "C" {
pub fn tgammaf(arg1: f32) -> f32;
}
extern "C" {
pub fn gammaf(arg1: f32) -> f32;
}
extern "C" {
pub fn lgammaf_r(arg1: f32, __signgamp: *mut libc::c_int) -> f32;
}
extern "C" {
pub fn rintf(__x: f32) -> f32;
}
extern "C" {
pub fn nextafterf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn remainderf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn scalbnf(__x: f32, __n: libc::c_int) -> f32;
}
extern "C" {
pub fn ilogbf(__x: f32) -> libc::c_int;
}
extern "C" {
pub fn scalblnf(__x: f32, __n: libc::c_long) -> f32;
}
extern "C" {
pub fn nearbyintf(__x: f32) -> f32;
}
extern "C" {
pub fn roundf(__x: f32) -> f32;
}
extern "C" {
pub fn truncf(__x: f32) -> f32;
}
extern "C" {
pub fn remquof(__x: f32, __y: f32, __quo: *mut libc::c_int) -> f32;
}
extern "C" {
pub fn lrintf(__x: f32) -> libc::c_long;
}
extern "C" {
pub fn llrintf(__x: f32) -> libc::c_longlong;
}
extern "C" {
pub fn lroundf(__x: f32) -> libc::c_long;
}
extern "C" {
pub fn llroundf(__x: f32) -> libc::c_longlong;
}
extern "C" {
pub fn fdimf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn fmaxf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn fminf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn fmaf(__x: f32, __y: f32, __z: f32) -> f32;
}
extern "C" {
pub fn scalbf(__x: f32, __n: f32) -> f32;
}
extern "C" {
pub static mut signgam: libc::c_int;
}
pub const FP_NAN: _bindgen_ty_1 = _bindgen_ty_1::FP_NAN;
pub const FP_INFINITE: _bindgen_ty_1 = _bindgen_ty_1::FP_INFINITE;
pub const FP_ZERO: _bindgen_ty_1 = _bindgen_ty_1::FP_ZERO;
pub const FP_SUBNORMAL: _bindgen_ty_1 = _bindgen_ty_1::FP_SUBNORMAL;
pub const FP_NORMAL: _bindgen_ty_1 = _bindgen_ty_1::FP_NORMAL;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _bindgen_ty_1 {
FP_NAN = 0,
FP_INFINITE = 1,
FP_ZERO = 2,
FP_SUBNORMAL = 3,
FP_NORMAL = 4,
}
pub type va_list = __builtin_va_list;
pub type __gnuc_va_list = __builtin_va_list;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __mbstate_t {
pub __count: libc::c_int,
pub __value: __mbstate_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __mbstate_t__bindgen_ty_1 {
pub __wch: libc::c_uint,
pub __wchb: [libc::c_char; 4usize],
}
#[test]
fn bindgen_test_layout___mbstate_t__bindgen_ty_1() {
const UNINIT: ::std::mem::MaybeUninit<__mbstate_t__bindgen_ty_1> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__mbstate_t__bindgen_ty_1>(),
4usize,
concat!("Size of: ", stringify!(__mbstate_t__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<__mbstate_t__bindgen_ty_1>(),
4usize,
concat!("Alignment of ", stringify!(__mbstate_t__bindgen_ty_1))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__wch) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__mbstate_t__bindgen_ty_1),
"::",
stringify!(__wch)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__wchb) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__mbstate_t__bindgen_ty_1),
"::",
stringify!(__wchb)
)
);
}
#[test]
fn bindgen_test_layout___mbstate_t() {
const UNINIT: ::std::mem::MaybeUninit<__mbstate_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__mbstate_t>(),
8usize,
concat!("Size of: ", stringify!(__mbstate_t))
);
assert_eq!(
::std::mem::align_of::<__mbstate_t>(),
4usize,
concat!("Alignment of ", stringify!(__mbstate_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__count) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__mbstate_t),
"::",
stringify!(__count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__value) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(__mbstate_t),
"::",
stringify!(__value)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _G_fpos_t {
pub __pos: __off_t,
pub __state: __mbstate_t,
}
#[test]
fn bindgen_test_layout__G_fpos_t() {
const UNINIT: ::std::mem::MaybeUninit<_G_fpos_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_G_fpos_t>(),
16usize,
concat!("Size of: ", stringify!(_G_fpos_t))
);
assert_eq!(
::std::mem::align_of::<_G_fpos_t>(),
8usize,
concat!("Alignment of ", stringify!(_G_fpos_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pos) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_G_fpos_t),
"::",
stringify!(__pos)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__state) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_G_fpos_t),
"::",
stringify!(__state)
)
);
}
pub type __fpos_t = _G_fpos_t;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _G_fpos64_t {
pub __pos: __off64_t,
pub __state: __mbstate_t,
}
#[test]
fn bindgen_test_layout__G_fpos64_t() {
const UNINIT: ::std::mem::MaybeUninit<_G_fpos64_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_G_fpos64_t>(),
16usize,
concat!("Size of: ", stringify!(_G_fpos64_t))
);
assert_eq!(
::std::mem::align_of::<_G_fpos64_t>(),
8usize,
concat!("Alignment of ", stringify!(_G_fpos64_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pos) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_G_fpos64_t),
"::",
stringify!(__pos)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__state) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_G_fpos64_t),
"::",
stringify!(__state)
)
);
}
pub type __fpos64_t = _G_fpos64_t;
pub type __FILE = _IO_FILE;
pub type FILE = _IO_FILE;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_marker {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_codecvt {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_wide_data {
_unused: [u8; 0],
}
pub type _IO_lock_t = libc::c_void;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _IO_FILE {
pub _flags: libc::c_int,
pub _IO_read_ptr: *mut libc::c_char,
pub _IO_read_end: *mut libc::c_char,
pub _IO_read_base: *mut libc::c_char,
pub _IO_write_base: *mut libc::c_char,
pub _IO_write_ptr: *mut libc::c_char,
pub _IO_write_end: *mut libc::c_char,
pub _IO_buf_base: *mut libc::c_char,
pub _IO_buf_end: *mut libc::c_char,
pub _IO_save_base: *mut libc::c_char,
pub _IO_backup_base: *mut libc::c_char,
pub _IO_save_end: *mut libc::c_char,
pub _markers: *mut _IO_marker,
pub _chain: *mut _IO_FILE,
pub _fileno: libc::c_int,
pub _flags2: libc::c_int,
pub _old_offset: __off_t,
pub _cur_column: libc::c_ushort,
pub _vtable_offset: libc::c_schar,
pub _shortbuf: [libc::c_char; 1usize],
pub _lock: *mut _IO_lock_t,
pub _offset: __off64_t,
pub _codecvt: *mut _IO_codecvt,
pub _wide_data: *mut _IO_wide_data,
pub _freeres_list: *mut _IO_FILE,
pub _freeres_buf: *mut libc::c_void,
pub __pad5: usize,
pub _mode: libc::c_int,
pub _unused2: [libc::c_char; 20usize],
}
#[test]
fn bindgen_test_layout__IO_FILE() {
const UNINIT: ::std::mem::MaybeUninit<_IO_FILE> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_IO_FILE>(),
216usize,
concat!("Size of: ", stringify!(_IO_FILE))
);
assert_eq!(
::std::mem::align_of::<_IO_FILE>(),
8usize,
concat!("Alignment of ", stringify!(_IO_FILE))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._flags) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_read_ptr) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_read_ptr)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_read_end) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_read_end)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_read_base) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_read_base)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_write_base) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_write_base)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_write_ptr) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_write_ptr)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_write_end) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_write_end)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_buf_base) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_buf_base)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_buf_end) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_buf_end)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_save_base) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_save_base)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_backup_base) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_backup_base)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_save_end) as usize - ptr as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_save_end)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._markers) as usize - ptr as usize },
96usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_markers)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._chain) as usize - ptr as usize },
104usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_chain)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._fileno) as usize - ptr as usize },
112usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_fileno)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._flags2) as usize - ptr as usize },
116usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_flags2)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._old_offset) as usize - ptr as usize },
120usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_old_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._cur_column) as usize - ptr as usize },
128usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_cur_column)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._vtable_offset) as usize - ptr as usize },
130usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_vtable_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._shortbuf) as usize - ptr as usize },
131usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_shortbuf)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._lock) as usize - ptr as usize },
136usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_lock)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._offset) as usize - ptr as usize },
144usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._codecvt) as usize - ptr as usize },
152usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_codecvt)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._wide_data) as usize - ptr as usize },
160usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_wide_data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._freeres_list) as usize - ptr as usize },
168usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_freeres_list)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._freeres_buf) as usize - ptr as usize },
176usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_freeres_buf)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pad5) as usize - ptr as usize },
184usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(__pad5)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._mode) as usize - ptr as usize },
192usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_mode)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._unused2) as usize - ptr as usize },
196usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_unused2)
)
);
}
pub type off_t = __off_t;
pub type fpos_t = __fpos_t;
extern "C" {
pub static mut stdin: *mut FILE;
}
extern "C" {
pub static mut stdout: *mut FILE;
}
extern "C" {
pub static mut stderr: *mut FILE;
}
extern "C" {
pub fn remove(__filename: *const libc::c_char) -> libc::c_int;
}
extern "C" {
pub fn rename(__old: *const libc::c_char, __new: *const libc::c_char) -> libc::c_int;
}
extern "C" {
pub fn renameat(
__oldfd: libc::c_int,
__old: *const libc::c_char,
__newfd: libc::c_int,
__new: *const libc::c_char,
) -> libc::c_int;
}
extern "C" {
pub fn fclose(__stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn tmpfile() -> *mut FILE;
}
extern "C" {
pub fn tmpnam(arg1: *mut libc::c_char) -> *mut libc::c_char;
}
extern "C" {
pub fn tmpnam_r(__s: *mut libc::c_char) -> *mut libc::c_char;
}
extern "C" {
pub fn tempnam(__dir: *const libc::c_char, __pfx: *const libc::c_char) -> *mut libc::c_char;
}
extern "C" {
pub fn fflush(__stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn fflush_unlocked(__stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn fopen(__filename: *const libc::c_char, __modes: *const libc::c_char) -> *mut FILE;
}
extern "C" {
pub fn freopen(
__filename: *const libc::c_char,
__modes: *const libc::c_char,
__stream: *mut FILE,
) -> *mut FILE;
}
extern "C" {
pub fn fdopen(__fd: libc::c_int, __modes: *const libc::c_char) -> *mut FILE;
}
extern "C" {
pub fn fmemopen(
__s: *mut libc::c_void,
__len: usize,
__modes: *const libc::c_char,
) -> *mut FILE;
}
extern "C" {
pub fn open_memstream(__bufloc: *mut *mut libc::c_char, __sizeloc: *mut usize) -> *mut FILE;
}
extern "C" {
pub fn setbuf(__stream: *mut FILE, __buf: *mut libc::c_char);
}
extern "C" {
pub fn setvbuf(
__stream: *mut FILE,
__buf: *mut libc::c_char,
__modes: libc::c_int,
__n: usize,
) -> libc::c_int;
}
extern "C" {
pub fn setbuffer(__stream: *mut FILE, __buf: *mut libc::c_char, __size: usize);
}
extern "C" {
pub fn setlinebuf(__stream: *mut FILE);
}
extern "C" {
pub fn fprintf(__stream: *mut FILE, __format: *const libc::c_char, ...) -> libc::c_int;
}
extern "C" {
pub fn printf(__format: *const libc::c_char, ...) -> libc::c_int;
}
extern "C" {
pub fn sprintf(__s: *mut libc::c_char, __format: *const libc::c_char, ...) -> libc::c_int;
}
extern "C" {
pub fn vfprintf(
__s: *mut FILE,
__format: *const libc::c_char,
__arg: *mut __va_list_tag,
) -> libc::c_int;
}
extern "C" {
pub fn vprintf(__format: *const libc::c_char, __arg: *mut __va_list_tag) -> libc::c_int;
}
extern "C" {
pub fn vsprintf(
__s: *mut libc::c_char,
__format: *const libc::c_char,
__arg: *mut __va_list_tag,
) -> libc::c_int;
}
extern "C" {
pub fn snprintf(
__s: *mut libc::c_char,
__maxlen: libc::c_ulong,
__format: *const libc::c_char,
...
) -> libc::c_int;
}
extern "C" {
pub fn vsnprintf(
__s: *mut libc::c_char,
__maxlen: libc::c_ulong,
__format: *const libc::c_char,
__arg: *mut __va_list_tag,
) -> libc::c_int;
}
extern "C" {
pub fn vdprintf(
__fd: libc::c_int,
__fmt: *const libc::c_char,
__arg: *mut __va_list_tag,
) -> libc::c_int;
}
extern "C" {
pub fn dprintf(__fd: libc::c_int, __fmt: *const libc::c_char, ...) -> libc::c_int;
}
extern "C" {
pub fn fscanf(__stream: *mut FILE, __format: *const libc::c_char, ...) -> libc::c_int;
}
extern "C" {
pub fn scanf(__format: *const libc::c_char, ...) -> libc::c_int;
}
extern "C" {
pub fn sscanf(__s: *const libc::c_char, __format: *const libc::c_char, ...) -> libc::c_int;
}
extern "C" {
#[link_name = "\u{1}__isoc99_fscanf"]
pub fn fscanf1(__stream: *mut FILE, __format: *const libc::c_char, ...) -> libc::c_int;
}
extern "C" {
#[link_name = "\u{1}__isoc99_scanf"]
pub fn scanf1(__format: *const libc::c_char, ...) -> libc::c_int;
}
extern "C" {
#[link_name = "\u{1}__isoc99_sscanf"]
pub fn sscanf1(__s: *const libc::c_char, __format: *const libc::c_char, ...) -> libc::c_int;
}
extern "C" {
pub fn vfscanf(
__s: *mut FILE,
__format: *const libc::c_char,
__arg: *mut __va_list_tag,
) -> libc::c_int;
}
extern "C" {
pub fn vscanf(__format: *const libc::c_char, __arg: *mut __va_list_tag) -> libc::c_int;
}
extern "C" {
pub fn vsscanf(
__s: *const libc::c_char,
__format: *const libc::c_char,
__arg: *mut __va_list_tag,
) -> libc::c_int;
}
extern "C" {
#[link_name = "\u{1}__isoc99_vfscanf"]
pub fn vfscanf1(
__s: *mut FILE,
__format: *const libc::c_char,
__arg: *mut __va_list_tag,
) -> libc::c_int;
}
extern "C" {
#[link_name = "\u{1}__isoc99_vscanf"]
pub fn vscanf1(__format: *const libc::c_char, __arg: *mut __va_list_tag) -> libc::c_int;
}
extern "C" {
#[link_name = "\u{1}__isoc99_vsscanf"]
pub fn vsscanf1(
__s: *const libc::c_char,
__format: *const libc::c_char,
__arg: *mut __va_list_tag,
) -> libc::c_int;
}
extern "C" {
pub fn fgetc(__stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn getc(__stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn getchar() -> libc::c_int;
}
extern "C" {
pub fn getc_unlocked(__stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn getchar_unlocked() -> libc::c_int;
}
extern "C" {
pub fn fgetc_unlocked(__stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn fputc(__c: libc::c_int, __stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn putc(__c: libc::c_int, __stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn putchar(__c: libc::c_int) -> libc::c_int;
}
extern "C" {
pub fn fputc_unlocked(__c: libc::c_int, __stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn putc_unlocked(__c: libc::c_int, __stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn putchar_unlocked(__c: libc::c_int) -> libc::c_int;
}
extern "C" {
pub fn getw(__stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn putw(__w: libc::c_int, __stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn fgets(
__s: *mut libc::c_char,
__n: libc::c_int,
__stream: *mut FILE,
) -> *mut libc::c_char;
}
extern "C" {
pub fn getdelim(
__lineptr: *mut *mut libc::c_char,
__n: *mut usize,
__delimiter: libc::c_int,
__stream: *mut FILE,
) -> __ssize_t;
}
extern "C" {
pub fn getline(
__lineptr: *mut *mut libc::c_char,
__n: *mut usize,
__stream: *mut FILE,
) -> __ssize_t;
}
extern "C" {
pub fn fputs(__s: *const libc::c_char, __stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn puts(__s: *const libc::c_char) -> libc::c_int;
}
extern "C" {
pub fn ungetc(__c: libc::c_int, __stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn fread(
__ptr: *mut libc::c_void,
__size: libc::c_ulong,
__n: libc::c_ulong,
__stream: *mut FILE,
) -> libc::c_ulong;
}
extern "C" {
pub fn fwrite(
__ptr: *const libc::c_void,
__size: libc::c_ulong,
__n: libc::c_ulong,
__s: *mut FILE,
) -> libc::c_ulong;
}
extern "C" {
pub fn fread_unlocked(
__ptr: *mut libc::c_void,
__size: usize,
__n: usize,
__stream: *mut FILE,
) -> usize;
}
extern "C" {
pub fn fwrite_unlocked(
__ptr: *const libc::c_void,
__size: usize,
__n: usize,
__stream: *mut FILE,
) -> usize;
}
extern "C" {
pub fn fseek(__stream: *mut FILE, __off: libc::c_long, __whence: libc::c_int) -> libc::c_int;
}
extern "C" {
pub fn ftell(__stream: *mut FILE) -> libc::c_long;
}
extern "C" {
pub fn rewind(__stream: *mut FILE);
}
extern "C" {
pub fn fseeko(__stream: *mut FILE, __off: __off_t, __whence: libc::c_int) -> libc::c_int;
}
extern "C" {
pub fn ftello(__stream: *mut FILE) -> __off_t;
}
extern "C" {
pub fn fgetpos(__stream: *mut FILE, __pos: *mut fpos_t) -> libc::c_int;
}
extern "C" {
pub fn fsetpos(__stream: *mut FILE, __pos: *const fpos_t) -> libc::c_int;
}
extern "C" {
pub fn clearerr(__stream: *mut FILE);
}
extern "C" {
pub fn feof(__stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn ferror(__stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn clearerr_unlocked(__stream: *mut FILE);
}
extern "C" {
pub fn feof_unlocked(__stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn ferror_unlocked(__stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn perror(__s: *const libc::c_char);
}
extern "C" {
pub fn fileno(__stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn fileno_unlocked(__stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn pclose(__stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn popen(__command: *const libc::c_char, __modes: *const libc::c_char) -> *mut FILE;
}
extern "C" {
pub fn ctermid(__s: *mut libc::c_char) -> *mut libc::c_char;
}
extern "C" {
pub fn flockfile(__stream: *mut FILE);
}
extern "C" {
pub fn ftrylockfile(__stream: *mut FILE) -> libc::c_int;
}
extern "C" {
pub fn funlockfile(__stream: *mut FILE);
}
pub type wchar_t = libc::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct div_t {
pub quot: libc::c_int,
pub rem: libc::c_int,
}
#[test]
fn bindgen_test_layout_div_t() {
const UNINIT: ::std::mem::MaybeUninit<div_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<div_t>(),
8usize,
concat!("Size of: ", stringify!(div_t))
);
assert_eq!(
::std::mem::align_of::<div_t>(),
4usize,
concat!("Alignment of ", stringify!(div_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(div_t),
"::",
stringify!(quot)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(div_t),
"::",
stringify!(rem)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct ldiv_t {
pub quot: libc::c_long,
pub rem: libc::c_long,
}
#[test]
fn bindgen_test_layout_ldiv_t() {
const UNINIT: ::std::mem::MaybeUninit<ldiv_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<ldiv_t>(),
16usize,
concat!("Size of: ", stringify!(ldiv_t))
);
assert_eq!(
::std::mem::align_of::<ldiv_t>(),
8usize,
concat!("Alignment of ", stringify!(ldiv_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(ldiv_t),
"::",
stringify!(quot)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(ldiv_t),
"::",
stringify!(rem)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct lldiv_t {
pub quot: libc::c_longlong,
pub rem: libc::c_longlong,
}
#[test]
fn bindgen_test_layout_lldiv_t() {
const UNINIT: ::std::mem::MaybeUninit<lldiv_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<lldiv_t>(),
16usize,
concat!("Size of: ", stringify!(lldiv_t))
);
assert_eq!(
::std::mem::align_of::<lldiv_t>(),
8usize,
concat!("Alignment of ", stringify!(lldiv_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lldiv_t),
"::",
stringify!(quot)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lldiv_t),
"::",
stringify!(rem)
)
);
}
extern "C" {
pub fn atof(__nptr: *const libc::c_char) -> f64;
}
extern "C" {
pub fn atoi(__nptr: *const libc::c_char) -> libc::c_int;
}
extern "C" {
pub fn atol(__nptr: *const libc::c_char) -> libc::c_long;
}
extern "C" {
pub fn atoll(__nptr: *const libc::c_char) -> libc::c_longlong;
}
extern "C" {
pub fn strtod(__nptr: *const libc::c_char, __endptr: *mut *mut libc::c_char) -> f64;
}
extern "C" {
pub fn strtof(__nptr: *const libc::c_char, __endptr: *mut *mut libc::c_char) -> f32;
}
extern "C" {
pub fn strtol(
__nptr: *const libc::c_char,
__endptr: *mut *mut libc::c_char,
__base: libc::c_int,
) -> libc::c_long;
}
extern "C" {
pub fn strtoul(
__nptr: *const libc::c_char,
__endptr: *mut *mut libc::c_char,
__base: libc::c_int,
) -> libc::c_ulong;
}
extern "C" {
pub fn strtoq(
__nptr: *const libc::c_char,
__endptr: *mut *mut libc::c_char,
__base: libc::c_int,
) -> libc::c_longlong;
}
extern "C" {
pub fn strtouq(
__nptr: *const libc::c_char,
__endptr: *mut *mut libc::c_char,
__base: libc::c_int,
) -> libc::c_ulonglong;
}
extern "C" {
pub fn strtoll(
__nptr: *const libc::c_char,
__endptr: *mut *mut libc::c_char,
__base: libc::c_int,
) -> libc::c_longlong;
}
extern "C" {
pub fn strtoull(
__nptr: *const libc::c_char,
__endptr: *mut *mut libc::c_char,
__base: libc::c_int,
) -> libc::c_ulonglong;
}
extern "C" {
pub fn l64a(__n: libc::c_long) -> *mut libc::c_char;
}
extern "C" {
pub fn a64l(__s: *const libc::c_char) -> libc::c_long;
}
pub type u_char = __u_char;
pub type u_short = __u_short;
pub type u_int = __u_int;
pub type u_long = __u_long;
pub type quad_t = __quad_t;
pub type u_quad_t = __u_quad_t;
pub type fsid_t = __fsid_t;
pub type loff_t = __loff_t;
pub type ino_t = __ino_t;
pub type dev_t = __dev_t;
pub type gid_t = __gid_t;
pub type mode_t = __mode_t;
pub type nlink_t = __nlink_t;
pub type uid_t = __uid_t;
pub type pid_t = __pid_t;
pub type id_t = __id_t;
pub type daddr_t = __daddr_t;
pub type caddr_t = __caddr_t;
pub type key_t = __key_t;
pub type clock_t = __clock_t;
pub type clockid_t = __clockid_t;
pub type time_t = __time_t;
pub type timer_t = __timer_t;
pub type ulong = libc::c_ulong;
pub type ushort = libc::c_ushort;
pub type uint = libc::c_uint;
pub type u_int8_t = __uint8_t;
pub type u_int16_t = __uint16_t;
pub type u_int32_t = __uint32_t;
pub type u_int64_t = __uint64_t;
pub type register_t = libc::c_long;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct __sigset_t {
pub __val: [libc::c_ulong; 16usize],
}
#[test]
fn bindgen_test_layout___sigset_t() {
const UNINIT: ::std::mem::MaybeUninit<__sigset_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__sigset_t>(),
128usize,
concat!("Size of: ", stringify!(__sigset_t))
);
assert_eq!(
::std::mem::align_of::<__sigset_t>(),
8usize,
concat!("Alignment of ", stringify!(__sigset_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__val) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__sigset_t),
"::",
stringify!(__val)
)
);
}
pub type sigset_t = __sigset_t;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct timeval {
pub tv_sec: __time_t,
pub tv_usec: __suseconds_t,
}
#[test]
fn bindgen_test_layout_timeval() {
const UNINIT: ::std::mem::MaybeUninit<timeval> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<timeval>(),
16usize,
concat!("Size of: ", stringify!(timeval))
);
assert_eq!(
::std::mem::align_of::<timeval>(),
8usize,
concat!("Alignment of ", stringify!(timeval))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(timeval),
"::",
stringify!(tv_sec)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tv_usec) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(timeval),
"::",
stringify!(tv_usec)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct timespec {
pub tv_sec: __time_t,
pub tv_nsec: __syscall_slong_t,
}
#[test]
fn bindgen_test_layout_timespec() {
const UNINIT: ::std::mem::MaybeUninit<timespec> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<timespec>(),
16usize,
concat!("Size of: ", stringify!(timespec))
);
assert_eq!(
::std::mem::align_of::<timespec>(),
8usize,
concat!("Alignment of ", stringify!(timespec))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(timespec),
"::",
stringify!(tv_sec)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tv_nsec) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(timespec),
"::",
stringify!(tv_nsec)
)
);
}
pub type suseconds_t = __suseconds_t;
pub type __fd_mask = libc::c_long;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct fd_set {
pub __fds_bits: [__fd_mask; 16usize],
}
#[test]
fn bindgen_test_layout_fd_set() {
const UNINIT: ::std::mem::MaybeUninit<fd_set> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<fd_set>(),
128usize,
concat!("Size of: ", stringify!(fd_set))
);
assert_eq!(
::std::mem::align_of::<fd_set>(),
8usize,
concat!("Alignment of ", stringify!(fd_set))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__fds_bits) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(fd_set),
"::",
stringify!(__fds_bits)
)
);
}
pub type fd_mask = __fd_mask;
extern "C" {
pub fn select(
__nfds: libc::c_int,
__readfds: *mut fd_set,
__writefds: *mut fd_set,
__exceptfds: *mut fd_set,
__timeout: *mut timeval,
) -> libc::c_int;
}
extern "C" {
pub fn pselect(
__nfds: libc::c_int,
__readfds: *mut fd_set,
__writefds: *mut fd_set,
__exceptfds: *mut fd_set,
__timeout: *const timespec,
__sigmask: *const __sigset_t,
) -> libc::c_int;
}
pub type blksize_t = __blksize_t;
pub type blkcnt_t = __blkcnt_t;
pub type fsblkcnt_t = __fsblkcnt_t;
pub type fsfilcnt_t = __fsfilcnt_t;
#[repr(C)]
#[derive(Copy, Clone)]
pub union __atomic_wide_counter {
pub __value64: libc::c_ulonglong,
pub __value32: __atomic_wide_counter__bindgen_ty_1,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct __atomic_wide_counter__bindgen_ty_1 {
pub __low: libc::c_uint,
pub __high: libc::c_uint,
}
#[test]
fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1() {
const UNINIT: ::std::mem::MaybeUninit<__atomic_wide_counter__bindgen_ty_1> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__atomic_wide_counter__bindgen_ty_1>(),
8usize,
concat!("Size of: ", stringify!(__atomic_wide_counter__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<__atomic_wide_counter__bindgen_ty_1>(),
4usize,
concat!(
"Alignment of ",
stringify!(__atomic_wide_counter__bindgen_ty_1)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__low) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__atomic_wide_counter__bindgen_ty_1),
"::",
stringify!(__low)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__high) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(__atomic_wide_counter__bindgen_ty_1),
"::",
stringify!(__high)
)
);
}
#[test]
fn bindgen_test_layout___atomic_wide_counter() {
const UNINIT: ::std::mem::MaybeUninit<__atomic_wide_counter> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__atomic_wide_counter>(),
8usize,
concat!("Size of: ", stringify!(__atomic_wide_counter))
);
assert_eq!(
::std::mem::align_of::<__atomic_wide_counter>(),
8usize,
concat!("Alignment of ", stringify!(__atomic_wide_counter))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__value64) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__atomic_wide_counter),
"::",
stringify!(__value64)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__value32) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__atomic_wide_counter),
"::",
stringify!(__value32)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct __pthread_internal_list {
pub __prev: *mut __pthread_internal_list,
pub __next: *mut __pthread_internal_list,
}
#[test]
fn bindgen_test_layout___pthread_internal_list() {
const UNINIT: ::std::mem::MaybeUninit<__pthread_internal_list> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__pthread_internal_list>(),
16usize,
concat!("Size of: ", stringify!(__pthread_internal_list))
);
assert_eq!(
::std::mem::align_of::<__pthread_internal_list>(),
8usize,
concat!("Alignment of ", stringify!(__pthread_internal_list))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__prev) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_internal_list),
"::",
stringify!(__prev)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__next) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(__pthread_internal_list),
"::",
stringify!(__next)
)
);
}
pub type __pthread_list_t = __pthread_internal_list;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct __pthread_internal_slist {
pub __next: *mut __pthread_internal_slist,
}
#[test]
fn bindgen_test_layout___pthread_internal_slist() {
const UNINIT: ::std::mem::MaybeUninit<__pthread_internal_slist> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__pthread_internal_slist>(),
8usize,
concat!("Size of: ", stringify!(__pthread_internal_slist))
);
assert_eq!(
::std::mem::align_of::<__pthread_internal_slist>(),
8usize,
concat!("Alignment of ", stringify!(__pthread_internal_slist))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__next) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_internal_slist),
"::",
stringify!(__next)
)
);
}
pub type __pthread_slist_t = __pthread_internal_slist;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct __pthread_mutex_s {
pub __lock: libc::c_int,
pub __count: libc::c_uint,
pub __owner: libc::c_int,
pub __nusers: libc::c_uint,
pub __kind: libc::c_int,
pub __spins: libc::c_short,
pub __elision: libc::c_short,
pub __list: __pthread_list_t,
}
#[test]
fn bindgen_test_layout___pthread_mutex_s() {
const UNINIT: ::std::mem::MaybeUninit<__pthread_mutex_s> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__pthread_mutex_s>(),
40usize,
concat!("Size of: ", stringify!(__pthread_mutex_s))
);
assert_eq!(
::std::mem::align_of::<__pthread_mutex_s>(),
8usize,
concat!("Alignment of ", stringify!(__pthread_mutex_s))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__lock) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s),
"::",
stringify!(__lock)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__count) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s),
"::",
stringify!(__count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__owner) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s),
"::",
stringify!(__owner)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__nusers) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s),
"::",
stringify!(__nusers)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__kind) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s),
"::",
stringify!(__kind)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__spins) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s),
"::",
stringify!(__spins)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__elision) as usize - ptr as usize },
22usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s),
"::",
stringify!(__elision)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__list) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s),
"::",
stringify!(__list)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct __pthread_rwlock_arch_t {
pub __readers: libc::c_uint,
pub __writers: libc::c_uint,
pub __wrphase_futex: libc::c_uint,
pub __writers_futex: libc::c_uint,
pub __pad3: libc::c_uint,
pub __pad4: libc::c_uint,
pub __cur_writer: libc::c_int,
pub __shared: libc::c_int,
pub __rwelision: libc::c_schar,
pub __pad1: [libc::c_uchar; 7usize],
pub __pad2: libc::c_ulong,
pub __flags: libc::c_uint,
}
#[test]
fn bindgen_test_layout___pthread_rwlock_arch_t() {
const UNINIT: ::std::mem::MaybeUninit<__pthread_rwlock_arch_t> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__pthread_rwlock_arch_t>(),
56usize,
concat!("Size of: ", stringify!(__pthread_rwlock_arch_t))
);
assert_eq!(
::std::mem::align_of::<__pthread_rwlock_arch_t>(),
8usize,
concat!("Alignment of ", stringify!(__pthread_rwlock_arch_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__readers) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__readers)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__writers) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__writers)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__wrphase_futex) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__wrphase_futex)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__writers_futex) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__writers_futex)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pad3) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__pad3)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pad4) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__pad4)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__cur_writer) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__cur_writer)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__shared) as usize - ptr as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__shared)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__rwelision) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__rwelision)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pad1) as usize - ptr as usize },
33usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__pad1)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pad2) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__pad2)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__flags) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__flags)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __pthread_cond_s {
pub __wseq: __atomic_wide_counter,
pub __g1_start: __atomic_wide_counter,
pub __g_refs: [libc::c_uint; 2usize],
pub __g_size: [libc::c_uint; 2usize],
pub __g1_orig_size: libc::c_uint,
pub __wrefs: libc::c_uint,
pub __g_signals: [libc::c_uint; 2usize],
}
#[test]
fn bindgen_test_layout___pthread_cond_s() {
const UNINIT: ::std::mem::MaybeUninit<__pthread_cond_s> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__pthread_cond_s>(),
48usize,
concat!("Size of: ", stringify!(__pthread_cond_s))
);
assert_eq!(
::std::mem::align_of::<__pthread_cond_s>(),
8usize,
concat!("Alignment of ", stringify!(__pthread_cond_s))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__wseq) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s),
"::",
stringify!(__wseq)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__g1_start) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s),
"::",
stringify!(__g1_start)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__g_refs) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s),
"::",
stringify!(__g_refs)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__g_size) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s),
"::",
stringify!(__g_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__g1_orig_size) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s),
"::",
stringify!(__g1_orig_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__wrefs) as usize - ptr as usize },
36usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s),
"::",
stringify!(__wrefs)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__g_signals) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s),
"::",
stringify!(__g_signals)
)
);
}
pub type __tss_t = libc::c_uint;
pub type __thrd_t = libc::c_ulong;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct __once_flag {
pub __data: libc::c_int,
}
#[test]
fn bindgen_test_layout___once_flag() {
const UNINIT: ::std::mem::MaybeUninit<__once_flag> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__once_flag>(),
4usize,
concat!("Size of: ", stringify!(__once_flag))
);
assert_eq!(
::std::mem::align_of::<__once_flag>(),
4usize,
concat!("Alignment of ", stringify!(__once_flag))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__data) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__once_flag),
"::",
stringify!(__data)
)
);
}
pub type pthread_t = libc::c_ulong;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_mutexattr_t {
pub __size: [libc::c_char; 4usize],
pub __align: libc::c_int,
}
#[test]
fn bindgen_test_layout_pthread_mutexattr_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_mutexattr_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_mutexattr_t>(),
4usize,
concat!("Size of: ", stringify!(pthread_mutexattr_t))
);
assert_eq!(
::std::mem::align_of::<pthread_mutexattr_t>(),
4usize,
concat!("Alignment of ", stringify!(pthread_mutexattr_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_mutexattr_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_mutexattr_t),
"::",
stringify!(__align)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_condattr_t {
pub __size: [libc::c_char; 4usize],
pub __align: libc::c_int,
}
#[test]
fn bindgen_test_layout_pthread_condattr_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_condattr_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_condattr_t>(),
4usize,
concat!("Size of: ", stringify!(pthread_condattr_t))
);
assert_eq!(
::std::mem::align_of::<pthread_condattr_t>(),
4usize,
concat!("Alignment of ", stringify!(pthread_condattr_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_condattr_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_condattr_t),
"::",
stringify!(__align)
)
);
}
pub type pthread_key_t = libc::c_uint;
pub type pthread_once_t = libc::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_attr_t {
pub __size: [libc::c_char; 56usize],
pub __align: libc::c_long,
}
#[test]
fn bindgen_test_layout_pthread_attr_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_attr_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_attr_t>(),
56usize,
concat!("Size of: ", stringify!(pthread_attr_t))
);
assert_eq!(
::std::mem::align_of::<pthread_attr_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_attr_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_attr_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_attr_t),
"::",
stringify!(__align)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_mutex_t {
pub __data: __pthread_mutex_s,
pub __size: [libc::c_char; 40usize],
pub __align: libc::c_long,
}
#[test]
fn bindgen_test_layout_pthread_mutex_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_mutex_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_mutex_t>(),
40usize,
concat!("Size of: ", stringify!(pthread_mutex_t))
);
assert_eq!(
::std::mem::align_of::<pthread_mutex_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_mutex_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__data) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_mutex_t),
"::",
stringify!(__data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_mutex_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_mutex_t),
"::",
stringify!(__align)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_cond_t {
pub __data: __pthread_cond_s,
pub __size: [libc::c_char; 48usize],
pub __align: libc::c_longlong,
}
#[test]
fn bindgen_test_layout_pthread_cond_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_cond_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_cond_t>(),
48usize,
concat!("Size of: ", stringify!(pthread_cond_t))
);
assert_eq!(
::std::mem::align_of::<pthread_cond_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_cond_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__data) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_cond_t),
"::",
stringify!(__data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_cond_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_cond_t),
"::",
stringify!(__align)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlock_t {
pub __data: __pthread_rwlock_arch_t,
pub __size: [libc::c_char; 56usize],
pub __align: libc::c_long,
}
#[test]
fn bindgen_test_layout_pthread_rwlock_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_rwlock_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_rwlock_t>(),
56usize,
concat!("Size of: ", stringify!(pthread_rwlock_t))
);
assert_eq!(
::std::mem::align_of::<pthread_rwlock_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_rwlock_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__data) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_rwlock_t),
"::",
stringify!(__data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_rwlock_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_rwlock_t),
"::",
stringify!(__align)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlockattr_t {
pub __size: [libc::c_char; 8usize],
pub __align: libc::c_long,
}
#[test]
fn bindgen_test_layout_pthread_rwlockattr_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_rwlockattr_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_rwlockattr_t>(),
8usize,
concat!("Size of: ", stringify!(pthread_rwlockattr_t))
);
assert_eq!(
::std::mem::align_of::<pthread_rwlockattr_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_rwlockattr_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_rwlockattr_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_rwlockattr_t),
"::",
stringify!(__align)
)
);
}
pub type pthread_spinlock_t = libc::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrier_t {
pub __size: [libc::c_char; 32usize],
pub __align: libc::c_long,
}
#[test]
fn bindgen_test_layout_pthread_barrier_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_barrier_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_barrier_t>(),
32usize,
concat!("Size of: ", stringify!(pthread_barrier_t))
);
assert_eq!(
::std::mem::align_of::<pthread_barrier_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_barrier_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_barrier_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_barrier_t),
"::",
stringify!(__align)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrierattr_t {
pub __size: [libc::c_char; 4usize],
pub __align: libc::c_int,
}
#[test]
fn bindgen_test_layout_pthread_barrierattr_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_barrierattr_t> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_barrierattr_t>(),
4usize,
concat!("Size of: ", stringify!(pthread_barrierattr_t))
);
assert_eq!(
::std::mem::align_of::<pthread_barrierattr_t>(),
4usize,
concat!("Alignment of ", stringify!(pthread_barrierattr_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_barrierattr_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_barrierattr_t),
"::",
stringify!(__align)
)
);
}
extern "C" {
pub fn random() -> libc::c_long;
}
extern "C" {
pub fn srandom(__seed: libc::c_uint);
}
extern "C" {
pub fn initstate(
__seed: libc::c_uint,
__statebuf: *mut libc::c_char,
__statelen: usize,
) -> *mut libc::c_char;
}
extern "C" {
pub fn setstate(__statebuf: *mut libc::c_char) -> *mut libc::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct random_data {
pub fptr: *mut i32,
pub rptr: *mut i32,
pub state: *mut i32,
pub rand_type: libc::c_int,
pub rand_deg: libc::c_int,
pub rand_sep: libc::c_int,
pub end_ptr: *mut i32,
}
#[test]
fn bindgen_test_layout_random_data() {
const UNINIT: ::std::mem::MaybeUninit<random_data> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<random_data>(),
48usize,
concat!("Size of: ", stringify!(random_data))
);
assert_eq!(
::std::mem::align_of::<random_data>(),
8usize,
concat!("Alignment of ", stringify!(random_data))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).fptr) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(fptr)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rptr) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(rptr)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).state) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(state)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rand_type) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(rand_type)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rand_deg) as usize - ptr as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(rand_deg)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rand_sep) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(rand_sep)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).end_ptr) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(end_ptr)
)
);
}
extern "C" {
pub fn random_r(__buf: *mut random_data, __result: *mut i32) -> libc::c_int;
}
extern "C" {
pub fn srandom_r(__seed: libc::c_uint, __buf: *mut random_data) -> libc::c_int;
}
extern "C" {
pub fn initstate_r(
__seed: libc::c_uint,
__statebuf: *mut libc::c_char,
__statelen: usize,
__buf: *mut random_data,
) -> libc::c_int;
}
extern "C" {
pub fn setstate_r(__statebuf: *mut libc::c_char, __buf: *mut random_data) -> libc::c_int;
}
extern "C" {
pub fn rand() -> libc::c_int;
}
extern "C" {
pub fn srand(__seed: libc::c_uint);
}
extern "C" {
pub fn rand_r(__seed: *mut libc::c_uint) -> libc::c_int;
}
extern "C" {
pub fn drand48() -> f64;
}
extern "C" {
pub fn erand48(__xsubi: *mut libc::c_ushort) -> f64;
}
extern "C" {
pub fn lrand48() -> libc::c_long;
}
extern "C" {
pub fn nrand48(__xsubi: *mut libc::c_ushort) -> libc::c_long;
}
extern "C" {
pub fn mrand48() -> libc::c_long;
}
extern "C" {
pub fn jrand48(__xsubi: *mut libc::c_ushort) -> libc::c_long;
}
extern "C" {
pub fn srand48(__seedval: libc::c_long);
}
extern "C" {
pub fn seed48(__seed16v: *mut libc::c_ushort) -> *mut libc::c_ushort;
}
extern "C" {
pub fn lcong48(__param: *mut libc::c_ushort);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct drand48_data {
pub __x: [libc::c_ushort; 3usize],
pub __old_x: [libc::c_ushort; 3usize],
pub __c: libc::c_ushort,
pub __init: libc::c_ushort,
pub __a: libc::c_ulonglong,
}
#[test]
fn bindgen_test_layout_drand48_data() {
const UNINIT: ::std::mem::MaybeUninit<drand48_data> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<drand48_data>(),
24usize,
concat!("Size of: ", stringify!(drand48_data))
);
assert_eq!(
::std::mem::align_of::<drand48_data>(),
8usize,
concat!("Alignment of ", stringify!(drand48_data))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__x) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(drand48_data),
"::",
stringify!(__x)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__old_x) as usize - ptr as usize },
6usize,
concat!(
"Offset of field: ",
stringify!(drand48_data),
"::",
stringify!(__old_x)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__c) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(drand48_data),
"::",
stringify!(__c)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__init) as usize - ptr as usize },
14usize,
concat!(
"Offset of field: ",
stringify!(drand48_data),
"::",
stringify!(__init)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__a) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(drand48_data),
"::",
stringify!(__a)
)
);
}
extern "C" {
pub fn drand48_r(__buffer: *mut drand48_data, __result: *mut f64) -> libc::c_int;
}
extern "C" {
pub fn erand48_r(
__xsubi: *mut libc::c_ushort,
__buffer: *mut drand48_data,
__result: *mut f64,
) -> libc::c_int;
}
extern "C" {
pub fn lrand48_r(__buffer: *mut drand48_data, __result: *mut libc::c_long) -> libc::c_int;
}
extern "C" {
pub fn nrand48_r(
__xsubi: *mut libc::c_ushort,
__buffer: *mut drand48_data,
__result: *mut libc::c_long,
) -> libc::c_int;
}
extern "C" {
pub fn mrand48_r(__buffer: *mut drand48_data, __result: *mut libc::c_long) -> libc::c_int;
}
extern "C" {
pub fn jrand48_r(
__xsubi: *mut libc::c_ushort,
__buffer: *mut drand48_data,
__result: *mut libc::c_long,
) -> libc::c_int;
}
extern "C" {
pub fn srand48_r(__seedval: libc::c_long, __buffer: *mut drand48_data) -> libc::c_int;
}
extern "C" {
pub fn seed48_r(__seed16v: *mut libc::c_ushort, __buffer: *mut drand48_data) -> libc::c_int;
}
extern "C" {
pub fn lcong48_r(__param: *mut libc::c_ushort, __buffer: *mut drand48_data) -> libc::c_int;
}
extern "C" {
pub fn malloc(__size: libc::c_ulong) -> *mut libc::c_void;
}
extern "C" {
pub fn calloc(__nmemb: libc::c_ulong, __size: libc::c_ulong) -> *mut libc::c_void;
}
extern "C" {
pub fn realloc(__ptr: *mut libc::c_void, __size: libc::c_ulong) -> *mut libc::c_void;
}
extern "C" {
pub fn free(__ptr: *mut libc::c_void);
}
extern "C" {
pub fn reallocarray(
__ptr: *mut libc::c_void,
__nmemb: usize,
__size: usize,
) -> *mut libc::c_void;
}
extern "C" {
pub fn alloca(__size: libc::c_ulong) -> *mut libc::c_void;
}
extern "C" {
pub fn valloc(__size: usize) -> *mut libc::c_void;
}
extern "C" {
pub fn posix_memalign(
__memptr: *mut *mut libc::c_void,
__alignment: usize,
__size: usize,
) -> libc::c_int;
}
extern "C" {
pub fn aligned_alloc(__alignment: libc::c_ulong, __size: libc::c_ulong) -> *mut libc::c_void;
}
extern "C" {
pub fn abort() -> !;
}
extern "C" {
pub fn atexit(__func: ::std::option::Option<unsafe extern "C" fn()>) -> libc::c_int;
}
extern "C" {
pub fn at_quick_exit(__func: ::std::option::Option<unsafe extern "C" fn()>) -> libc::c_int;
}
extern "C" {
pub fn on_exit(
__func: ::std::option::Option<
unsafe extern "C" fn(__status: libc::c_int, __arg: *mut libc::c_void),
>,
__arg: *mut libc::c_void,
) -> libc::c_int;
}
extern "C" {
pub fn exit(__status: libc::c_int) -> !;
}
extern "C" {
pub fn quick_exit(__status: libc::c_int) -> !;
}
extern "C" {
pub fn getenv(__name: *const libc::c_char) -> *mut libc::c_char;
}
extern "C" {
pub fn putenv(__string: *mut libc::c_char) -> libc::c_int;
}
extern "C" {
pub fn setenv(
__name: *const libc::c_char,
__value: *const libc::c_char,
__replace: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn unsetenv(__name: *const libc::c_char) -> libc::c_int;
}
extern "C" {
pub fn clearenv() -> libc::c_int;
}
extern "C" {
pub fn mktemp(__template: *mut libc::c_char) -> *mut libc::c_char;
}
extern "C" {
pub fn mkstemp(__template: *mut libc::c_char) -> libc::c_int;
}
extern "C" {
pub fn mkstemps(__template: *mut libc::c_char, __suffixlen: libc::c_int) -> libc::c_int;
}
extern "C" {
pub fn mkdtemp(__template: *mut libc::c_char) -> *mut libc::c_char;
}
extern "C" {
pub fn system(__command: *const libc::c_char) -> libc::c_int;
}
extern "C" {
pub fn realpath(
__name: *const libc::c_char,
__resolved: *mut libc::c_char,
) -> *mut libc::c_char;
}
pub type __compar_fn_t = ::std::option::Option<
unsafe extern "C" fn(arg1: *const libc::c_void, arg2: *const libc::c_void) -> libc::c_int,
>;
extern "C" {
pub fn bsearch(
__key: *const libc::c_void,
__base: *const libc::c_void,
__nmemb: usize,
__size: usize,
__compar: __compar_fn_t,
) -> *mut libc::c_void;
}
extern "C" {
pub fn qsort(__base: *mut libc::c_void, __nmemb: usize, __size: usize, __compar: __compar_fn_t);
}
extern "C" {
pub fn abs(__x: libc::c_int) -> libc::c_int;
}
extern "C" {
pub fn labs(__x: libc::c_long) -> libc::c_long;
}
extern "C" {
pub fn llabs(__x: libc::c_longlong) -> libc::c_longlong;
}
extern "C" {
pub fn div(__numer: libc::c_int, __denom: libc::c_int) -> div_t;
}
extern "C" {
pub fn ldiv(__numer: libc::c_long, __denom: libc::c_long) -> ldiv_t;
}
extern "C" {
pub fn lldiv(__numer: libc::c_longlong, __denom: libc::c_longlong) -> lldiv_t;
}
extern "C" {
pub fn ecvt(
__value: f64,
__ndigit: libc::c_int,
__decpt: *mut libc::c_int,
__sign: *mut libc::c_int,
) -> *mut libc::c_char;
}
extern "C" {
pub fn fcvt(
__value: f64,
__ndigit: libc::c_int,
__decpt: *mut libc::c_int,
__sign: *mut libc::c_int,
) -> *mut libc::c_char;
}
extern "C" {
pub fn gcvt(__value: f64, __ndigit: libc::c_int, __buf: *mut libc::c_char)
-> *mut libc::c_char;
}
extern "C" {
pub fn mblen(__s: *const libc::c_char, __n: usize) -> libc::c_int;
}
extern "C" {
pub fn mbtowc(__pwc: *mut wchar_t, __s: *const libc::c_char, __n: usize) -> libc::c_int;
}
extern "C" {
pub fn wctomb(__s: *mut libc::c_char, __wchar: wchar_t) -> libc::c_int;
}
extern "C" {
pub fn mbstowcs(__pwcs: *mut wchar_t, __s: *const libc::c_char, __n: usize) -> usize;
}
extern "C" {
pub fn wcstombs(__s: *mut libc::c_char, __pwcs: *const wchar_t, __n: usize) -> usize;
}
extern "C" {
pub fn rpmatch(__response: *const libc::c_char) -> libc::c_int;
}
extern "C" {
pub fn getsubopt(
__optionp: *mut *mut libc::c_char,
__tokens: *const *mut libc::c_char,
__valuep: *mut *mut libc::c_char,
) -> libc::c_int;
}
extern "C" {
pub fn getloadavg(__loadavg: *mut f64, __nelem: libc::c_int) -> libc::c_int;
}
extern "C" {
pub fn memcpy(
__dest: *mut libc::c_void,
__src: *const libc::c_void,
__n: libc::c_ulong,
) -> *mut libc::c_void;
}
extern "C" {
pub fn memmove(
__dest: *mut libc::c_void,
__src: *const libc::c_void,
__n: libc::c_ulong,
) -> *mut libc::c_void;
}
extern "C" {
pub fn memccpy(
__dest: *mut libc::c_void,
__src: *const libc::c_void,
__c: libc::c_int,
__n: libc::c_ulong,
) -> *mut libc::c_void;
}
extern "C" {
pub fn memset(
__s: *mut libc::c_void,
__c: libc::c_int,
__n: libc::c_ulong,
) -> *mut libc::c_void;
}
extern "C" {
pub fn memcmp(
__s1: *const libc::c_void,
__s2: *const libc::c_void,
__n: libc::c_ulong,
) -> libc::c_int;
}
extern "C" {
pub fn memchr(
__s: *const libc::c_void,
__c: libc::c_int,
__n: libc::c_ulong,
) -> *mut libc::c_void;
}
extern "C" {
pub fn strcpy(__dest: *mut libc::c_char, __src: *const libc::c_char) -> *mut libc::c_char;
}
extern "C" {
pub fn strncpy(
__dest: *mut libc::c_char,
__src: *const libc::c_char,
__n: libc::c_ulong,
) -> *mut libc::c_char;
}
extern "C" {
pub fn strcat(__dest: *mut libc::c_char, __src: *const libc::c_char) -> *mut libc::c_char;
}
extern "C" {
pub fn strncat(
__dest: *mut libc::c_char,
__src: *const libc::c_char,
__n: libc::c_ulong,
) -> *mut libc::c_char;
}
extern "C" {
pub fn strcmp(__s1: *const libc::c_char, __s2: *const libc::c_char) -> libc::c_int;
}
extern "C" {
pub fn strncmp(
__s1: *const libc::c_char,
__s2: *const libc::c_char,
__n: libc::c_ulong,
) -> libc::c_int;
}
extern "C" {
pub fn strcoll(__s1: *const libc::c_char, __s2: *const libc::c_char) -> libc::c_int;
}
extern "C" {
pub fn strxfrm(
__dest: *mut libc::c_char,
__src: *const libc::c_char,
__n: libc::c_ulong,
) -> libc::c_ulong;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct __locale_struct {
pub __locales: [*mut __locale_data; 13usize],
pub __ctype_b: *const libc::c_ushort,
pub __ctype_tolower: *const libc::c_int,
pub __ctype_toupper: *const libc::c_int,
pub __names: [*const libc::c_char; 13usize],
}
#[test]
fn bindgen_test_layout___locale_struct() {
const UNINIT: ::std::mem::MaybeUninit<__locale_struct> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__locale_struct>(),
232usize,
concat!("Size of: ", stringify!(__locale_struct))
);
assert_eq!(
::std::mem::align_of::<__locale_struct>(),
8usize,
concat!("Alignment of ", stringify!(__locale_struct))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__locales) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__locale_struct),
"::",
stringify!(__locales)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__ctype_b) as usize - ptr as usize },
104usize,
concat!(
"Offset of field: ",
stringify!(__locale_struct),
"::",
stringify!(__ctype_b)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__ctype_tolower) as usize - ptr as usize },
112usize,
concat!(
"Offset of field: ",
stringify!(__locale_struct),
"::",
stringify!(__ctype_tolower)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__ctype_toupper) as usize - ptr as usize },
120usize,
concat!(
"Offset of field: ",
stringify!(__locale_struct),
"::",
stringify!(__ctype_toupper)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__names) as usize - ptr as usize },
128usize,
concat!(
"Offset of field: ",
stringify!(__locale_struct),
"::",
stringify!(__names)
)
);
}
pub type __locale_t = *mut __locale_struct;
pub type locale_t = __locale_t;
extern "C" {
pub fn strcoll_l(
__s1: *const libc::c_char,
__s2: *const libc::c_char,
__l: locale_t,
) -> libc::c_int;
}
extern "C" {
pub fn strxfrm_l(
__dest: *mut libc::c_char,
__src: *const libc::c_char,
__n: usize,
__l: locale_t,
) -> usize;
}
extern "C" {
pub fn strdup(__s: *const libc::c_char) -> *mut libc::c_char;
}
extern "C" {
pub fn strndup(__string: *const libc::c_char, __n: libc::c_ulong) -> *mut libc::c_char;
}
extern "C" {
pub fn strchr(__s: *const libc::c_char, __c: libc::c_int) -> *mut libc::c_char;
}
extern "C" {
pub fn strrchr(__s: *const libc::c_char, __c: libc::c_int) -> *mut libc::c_char;
}
extern "C" {
pub fn strcspn(__s: *const libc::c_char, __reject: *const libc::c_char) -> libc::c_ulong;
}
extern "C" {
pub fn strspn(__s: *const libc::c_char, __accept: *const libc::c_char) -> libc::c_ulong;
}
extern "C" {
pub fn strpbrk(__s: *const libc::c_char, __accept: *const libc::c_char) -> *mut libc::c_char;
}
extern "C" {
pub fn strstr(
__haystack: *const libc::c_char,
__needle: *const libc::c_char,
) -> *mut libc::c_char;
}
extern "C" {
pub fn strtok(__s: *mut libc::c_char, __delim: *const libc::c_char) -> *mut libc::c_char;
}
extern "C" {
pub fn strtok_r(
__s: *mut libc::c_char,
__delim: *const libc::c_char,
__save_ptr: *mut *mut libc::c_char,
) -> *mut libc::c_char;
}
extern "C" {
pub fn strlen(__s: *const libc::c_char) -> libc::c_ulong;
}
extern "C" {
pub fn strnlen(__string: *const libc::c_char, __maxlen: usize) -> usize;
}
extern "C" {
pub fn strerror(__errnum: libc::c_int) -> *mut libc::c_char;
}
extern "C" {
#[link_name = "\u{1}__xpg_strerror_r"]
pub fn strerror_r(
__errnum: libc::c_int,
__buf: *mut libc::c_char,
__buflen: usize,
) -> libc::c_int;
}
extern "C" {
pub fn strerror_l(__errnum: libc::c_int, __l: locale_t) -> *mut libc::c_char;
}
extern "C" {
pub fn bcmp(
__s1: *const libc::c_void,
__s2: *const libc::c_void,
__n: libc::c_ulong,
) -> libc::c_int;
}
extern "C" {
pub fn bcopy(__src: *const libc::c_void, __dest: *mut libc::c_void, __n: usize);
}
extern "C" {
pub fn bzero(__s: *mut libc::c_void, __n: libc::c_ulong);
}
extern "C" {
pub fn index(__s: *const libc::c_char, __c: libc::c_int) -> *mut libc::c_char;
}
extern "C" {
pub fn rindex(__s: *const libc::c_char, __c: libc::c_int) -> *mut libc::c_char;
}
extern "C" {
pub fn ffs(__i: libc::c_int) -> libc::c_int;
}
extern "C" {
pub fn ffsl(__l: libc::c_long) -> libc::c_int;
}
extern "C" {
pub fn ffsll(__ll: libc::c_longlong) -> libc::c_int;
}
extern "C" {
pub fn strcasecmp(__s1: *const libc::c_char, __s2: *const libc::c_char) -> libc::c_int;
}
extern "C" {
pub fn strncasecmp(
__s1: *const libc::c_char,
__s2: *const libc::c_char,
__n: libc::c_ulong,
) -> libc::c_int;
}
extern "C" {
pub fn strcasecmp_l(
__s1: *const libc::c_char,
__s2: *const libc::c_char,
__loc: locale_t,
) -> libc::c_int;
}
extern "C" {
pub fn strncasecmp_l(
__s1: *const libc::c_char,
__s2: *const libc::c_char,
__n: usize,
__loc: locale_t,
) -> libc::c_int;
}
extern "C" {
pub fn explicit_bzero(__s: *mut libc::c_void, __n: usize);
}
extern "C" {
pub fn strsep(
__stringp: *mut *mut libc::c_char,
__delim: *const libc::c_char,
) -> *mut libc::c_char;
}
extern "C" {
pub fn strsignal(__sig: libc::c_int) -> *mut libc::c_char;
}
extern "C" {
pub fn stpcpy(__dest: *mut libc::c_char, __src: *const libc::c_char) -> *mut libc::c_char;
}
extern "C" {
pub fn stpncpy(
__dest: *mut libc::c_char,
__src: *const libc::c_char,
__n: libc::c_ulong,
) -> *mut libc::c_char;
}
extern "C" {
pub fn av_log2(v: libc::c_uint) -> libc::c_int;
}
extern "C" {
pub fn av_log2_16bit(v: libc::c_uint) -> libc::c_int;
}
extern "C" {
pub fn av_strerror(
errnum: libc::c_int,
errbuf: *mut libc::c_char,
errbuf_size: usize,
) -> libc::c_int;
}
extern "C" {
pub fn av_malloc(size: usize) -> *mut libc::c_void;
}
extern "C" {
pub fn av_mallocz(size: usize) -> *mut libc::c_void;
}
extern "C" {
pub fn av_malloc_array(nmemb: usize, size: usize) -> *mut libc::c_void;
}
extern "C" {
pub fn av_mallocz_array(nmemb: usize, size: usize) -> *mut libc::c_void;
}
extern "C" {
pub fn av_calloc(nmemb: usize, size: usize) -> *mut libc::c_void;
}
extern "C" {
pub fn av_realloc(ptr: *mut libc::c_void, size: usize) -> *mut libc::c_void;
}
extern "C" {
pub fn av_reallocp(ptr: *mut libc::c_void, size: usize) -> libc::c_int;
}
extern "C" {
pub fn av_realloc_f(ptr: *mut libc::c_void, nelem: usize, elsize: usize) -> *mut libc::c_void;
}
extern "C" {
pub fn av_realloc_array(ptr: *mut libc::c_void, nmemb: usize, size: usize)
-> *mut libc::c_void;
}
extern "C" {
pub fn av_reallocp_array(ptr: *mut libc::c_void, nmemb: usize, size: usize) -> libc::c_int;
}
extern "C" {
pub fn av_fast_realloc(
ptr: *mut libc::c_void,
size: *mut libc::c_uint,
min_size: usize,
) -> *mut libc::c_void;
}
extern "C" {
pub fn av_fast_malloc(ptr: *mut libc::c_void, size: *mut libc::c_uint, min_size: usize);
}
extern "C" {
pub fn av_fast_mallocz(ptr: *mut libc::c_void, size: *mut libc::c_uint, min_size: usize);
}
extern "C" {
pub fn av_free(ptr: *mut libc::c_void);
}
extern "C" {
pub fn av_freep(ptr: *mut libc::c_void);
}
extern "C" {
pub fn av_strdup(s: *const libc::c_char) -> *mut libc::c_char;
}
extern "C" {
pub fn av_strndup(s: *const libc::c_char, len: usize) -> *mut libc::c_char;
}
extern "C" {
pub fn av_memdup(p: *const libc::c_void, size: usize) -> *mut libc::c_void;
}
extern "C" {
pub fn av_memcpy_backptr(dst: *mut u8, back: libc::c_int, cnt: libc::c_int);
}
extern "C" {
pub fn av_dynarray_add(
tab_ptr: *mut libc::c_void,
nb_ptr: *mut libc::c_int,
elem: *mut libc::c_void,
);
}
extern "C" {
pub fn av_dynarray_add_nofree(
tab_ptr: *mut libc::c_void,
nb_ptr: *mut libc::c_int,
elem: *mut libc::c_void,
) -> libc::c_int;
}
extern "C" {
pub fn av_dynarray2_add(
tab_ptr: *mut *mut libc::c_void,
nb_ptr: *mut libc::c_int,
elem_size: usize,
elem_data: *const u8,
) -> *mut libc::c_void;
}
extern "C" {
pub fn av_max_alloc(max: usize);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVRational {
pub num: libc::c_int,
pub den: libc::c_int,
}
#[test]
fn bindgen_test_layout_AVRational() {
const UNINIT: ::std::mem::MaybeUninit<AVRational> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVRational>(),
8usize,
concat!("Size of: ", stringify!(AVRational))
);
assert_eq!(
::std::mem::align_of::<AVRational>(),
4usize,
concat!("Alignment of ", stringify!(AVRational))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVRational),
"::",
stringify!(num)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).den) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(AVRational),
"::",
stringify!(den)
)
);
}
extern "C" {
pub fn av_reduce(
dst_num: *mut libc::c_int,
dst_den: *mut libc::c_int,
num: i64,
den: i64,
max: i64,
) -> libc::c_int;
}
extern "C" {
pub fn av_mul_q(b: AVRational, c: AVRational) -> AVRational;
}
extern "C" {
pub fn av_div_q(b: AVRational, c: AVRational) -> AVRational;
}
extern "C" {
pub fn av_add_q(b: AVRational, c: AVRational) -> AVRational;
}
extern "C" {
pub fn av_sub_q(b: AVRational, c: AVRational) -> AVRational;
}
extern "C" {
pub fn av_d2q(d: f64, max: libc::c_int) -> AVRational;
}
extern "C" {
pub fn av_nearer_q(q: AVRational, q1: AVRational, q2: AVRational) -> libc::c_int;
}
extern "C" {
pub fn av_find_nearest_q_idx(q: AVRational, q_list: *const AVRational) -> libc::c_int;
}
extern "C" {
pub fn av_q2intfloat(q: AVRational) -> u32;
}
extern "C" {
pub fn av_gcd_q(
a: AVRational,
b: AVRational,
max_den: libc::c_int,
def: AVRational,
) -> AVRational;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union av_intfloat32 {
pub i: u32,
pub f: f32,
}
#[test]
fn bindgen_test_layout_av_intfloat32() {
const UNINIT: ::std::mem::MaybeUninit<av_intfloat32> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<av_intfloat32>(),
4usize,
concat!("Size of: ", stringify!(av_intfloat32))
);
assert_eq!(
::std::mem::align_of::<av_intfloat32>(),
4usize,
concat!("Alignment of ", stringify!(av_intfloat32))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).i) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(av_intfloat32),
"::",
stringify!(i)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).f) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(av_intfloat32),
"::",
stringify!(f)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union av_intfloat64 {
pub i: u64,
pub f: f64,
}
#[test]
fn bindgen_test_layout_av_intfloat64() {
const UNINIT: ::std::mem::MaybeUninit<av_intfloat64> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<av_intfloat64>(),
8usize,
concat!("Size of: ", stringify!(av_intfloat64))
);
assert_eq!(
::std::mem::align_of::<av_intfloat64>(),
8usize,
concat!("Alignment of ", stringify!(av_intfloat64))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).i) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(av_intfloat64),
"::",
stringify!(i)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).f) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(av_intfloat64),
"::",
stringify!(f)
)
);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVRounding {
AV_ROUND_ZERO = 0,
AV_ROUND_INF = 1,
AV_ROUND_DOWN = 2,
AV_ROUND_UP = 3,
AV_ROUND_NEAR_INF = 5,
AV_ROUND_PASS_MINMAX = 8192,
}
extern "C" {
pub fn av_gcd(a: i64, b: i64) -> i64;
}
extern "C" {
pub fn av_rescale(a: i64, b: i64, c: i64) -> i64;
}
extern "C" {
pub fn av_rescale_rnd(a: i64, b: i64, c: i64, rnd: AVRounding) -> i64;
}
extern "C" {
pub fn av_rescale_q(a: i64, bq: AVRational, cq: AVRational) -> i64;
}
extern "C" {
pub fn av_rescale_q_rnd(a: i64, bq: AVRational, cq: AVRational, rnd: AVRounding) -> i64;
}
extern "C" {
pub fn av_compare_ts(ts_a: i64, tb_a: AVRational, ts_b: i64, tb_b: AVRational) -> libc::c_int;
}
extern "C" {
pub fn av_compare_mod(a: u64, b: u64, mod_: u64) -> i64;
}
extern "C" {
pub fn av_rescale_delta(
in_tb: AVRational,
in_ts: i64,
fs_tb: AVRational,
duration: libc::c_int,
last: *mut i64,
out_tb: AVRational,
) -> i64;
}
extern "C" {
pub fn av_add_stable(ts_tb: AVRational, ts: i64, inc_tb: AVRational, inc: i64) -> i64;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVClassCategory {
AV_CLASS_CATEGORY_NA = 0,
AV_CLASS_CATEGORY_INPUT = 1,
AV_CLASS_CATEGORY_OUTPUT = 2,
AV_CLASS_CATEGORY_MUXER = 3,
AV_CLASS_CATEGORY_DEMUXER = 4,
AV_CLASS_CATEGORY_ENCODER = 5,
AV_CLASS_CATEGORY_DECODER = 6,
AV_CLASS_CATEGORY_FILTER = 7,
AV_CLASS_CATEGORY_BITSTREAM_FILTER = 8,
AV_CLASS_CATEGORY_SWSCALER = 9,
AV_CLASS_CATEGORY_SWRESAMPLER = 10,
AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT = 40,
AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT = 41,
AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT = 42,
AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT = 43,
AV_CLASS_CATEGORY_DEVICE_OUTPUT = 44,
AV_CLASS_CATEGORY_DEVICE_INPUT = 45,
AV_CLASS_CATEGORY_NB = 46,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVClass {
pub class_name: *const libc::c_char,
pub item_name:
::std::option::Option<unsafe extern "C" fn(ctx: *mut libc::c_void) -> *const libc::c_char>,
pub option: *const AVOption,
pub version: libc::c_int,
pub log_level_offset_offset: libc::c_int,
pub parent_log_context_offset: libc::c_int,
pub child_next: ::std::option::Option<
unsafe extern "C" fn(obj: *mut libc::c_void, prev: *mut libc::c_void) -> *mut libc::c_void,
>,
pub child_class_next:
::std::option::Option<unsafe extern "C" fn(prev: *const AVClass) -> *const AVClass>,
pub category: AVClassCategory,
pub get_category:
::std::option::Option<unsafe extern "C" fn(ctx: *mut libc::c_void) -> AVClassCategory>,
pub query_ranges: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut *mut AVOptionRanges,
obj: *mut libc::c_void,
key: *const libc::c_char,
flags: libc::c_int,
) -> libc::c_int,
>,
pub child_class_iterate:
::std::option::Option<unsafe extern "C" fn(iter: *mut *mut libc::c_void) -> *const AVClass>,
}
#[test]
fn bindgen_test_layout_AVClass() {
const UNINIT: ::std::mem::MaybeUninit<AVClass> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVClass>(),
88usize,
concat!("Size of: ", stringify!(AVClass))
);
assert_eq!(
::std::mem::align_of::<AVClass>(),
8usize,
concat!("Alignment of ", stringify!(AVClass))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).class_name) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVClass),
"::",
stringify!(class_name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).item_name) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVClass),
"::",
stringify!(item_name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).option) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVClass),
"::",
stringify!(option)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVClass),
"::",
stringify!(version)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).log_level_offset_offset) as usize - ptr as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(AVClass),
"::",
stringify!(log_level_offset_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).parent_log_context_offset) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVClass),
"::",
stringify!(parent_log_context_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).child_next) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVClass),
"::",
stringify!(child_next)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).child_class_next) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVClass),
"::",
stringify!(child_class_next)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).category) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVClass),
"::",
stringify!(category)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).get_category) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(AVClass),
"::",
stringify!(get_category)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).query_ranges) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(AVClass),
"::",
stringify!(query_ranges)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).child_class_iterate) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(AVClass),
"::",
stringify!(child_class_iterate)
)
);
}
extern "C" {
pub fn av_log(avcl: *mut libc::c_void, level: libc::c_int, fmt: *const libc::c_char, ...);
}
extern "C" {
pub fn av_log_once(
avcl: *mut libc::c_void,
initial_level: libc::c_int,
subsequent_level: libc::c_int,
state: *mut libc::c_int,
fmt: *const libc::c_char,
...
);
}
extern "C" {
pub fn av_vlog(
avcl: *mut libc::c_void,
level: libc::c_int,
fmt: *const libc::c_char,
vl: *mut __va_list_tag,
);
}
extern "C" {
pub fn av_log_get_level() -> libc::c_int;
}
extern "C" {
pub fn av_log_set_level(level: libc::c_int);
}
extern "C" {
pub fn av_log_set_callback(
callback: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut libc::c_void,
arg2: libc::c_int,
arg3: *const libc::c_char,
arg4: *mut __va_list_tag,
),
>,
);
}
extern "C" {
pub fn av_log_default_callback(
avcl: *mut libc::c_void,
level: libc::c_int,
fmt: *const libc::c_char,
vl: *mut __va_list_tag,
);
}
extern "C" {
pub fn av_default_item_name(ctx: *mut libc::c_void) -> *const libc::c_char;
}
extern "C" {
pub fn av_default_get_category(ptr: *mut libc::c_void) -> AVClassCategory;
}
extern "C" {
pub fn av_log_format_line(
ptr: *mut libc::c_void,
level: libc::c_int,
fmt: *const libc::c_char,
vl: *mut __va_list_tag,
line: *mut libc::c_char,
line_size: libc::c_int,
print_prefix: *mut libc::c_int,
);
}
extern "C" {
pub fn av_log_format_line2(
ptr: *mut libc::c_void,
level: libc::c_int,
fmt: *const libc::c_char,
vl: *mut __va_list_tag,
line: *mut libc::c_char,
line_size: libc::c_int,
print_prefix: *mut libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_log_set_flags(arg: libc::c_int);
}
extern "C" {
pub fn av_log_get_flags() -> libc::c_int;
}
impl AVPixelFormat {
pub const AV_PIX_FMT_VAAPI: AVPixelFormat = AVPixelFormat::AV_PIX_FMT_VAAPI_VLD;
}
impl AVPixelFormat {
pub const AV_PIX_FMT_Y400A: AVPixelFormat = AVPixelFormat::AV_PIX_FMT_YA8;
}
impl AVPixelFormat {
pub const AV_PIX_FMT_GRAY8A: AVPixelFormat = AVPixelFormat::AV_PIX_FMT_YA8;
}
impl AVPixelFormat {
pub const AV_PIX_FMT_GBR24P: AVPixelFormat = AVPixelFormat::AV_PIX_FMT_GBRP;
}
#[repr(i32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVPixelFormat {
AV_PIX_FMT_NONE = -1,
AV_PIX_FMT_YUV420P = 0,
AV_PIX_FMT_YUYV422 = 1,
AV_PIX_FMT_RGB24 = 2,
AV_PIX_FMT_BGR24 = 3,
AV_PIX_FMT_YUV422P = 4,
AV_PIX_FMT_YUV444P = 5,
AV_PIX_FMT_YUV410P = 6,
AV_PIX_FMT_YUV411P = 7,
AV_PIX_FMT_GRAY8 = 8,
AV_PIX_FMT_MONOWHITE = 9,
AV_PIX_FMT_MONOBLACK = 10,
AV_PIX_FMT_PAL8 = 11,
AV_PIX_FMT_YUVJ420P = 12,
AV_PIX_FMT_YUVJ422P = 13,
AV_PIX_FMT_YUVJ444P = 14,
AV_PIX_FMT_UYVY422 = 15,
AV_PIX_FMT_UYYVYY411 = 16,
AV_PIX_FMT_BGR8 = 17,
AV_PIX_FMT_BGR4 = 18,
AV_PIX_FMT_BGR4_BYTE = 19,
AV_PIX_FMT_RGB8 = 20,
AV_PIX_FMT_RGB4 = 21,
AV_PIX_FMT_RGB4_BYTE = 22,
AV_PIX_FMT_NV12 = 23,
AV_PIX_FMT_NV21 = 24,
AV_PIX_FMT_ARGB = 25,
AV_PIX_FMT_RGBA = 26,
AV_PIX_FMT_ABGR = 27,
AV_PIX_FMT_BGRA = 28,
AV_PIX_FMT_GRAY16BE = 29,
AV_PIX_FMT_GRAY16LE = 30,
AV_PIX_FMT_YUV440P = 31,
AV_PIX_FMT_YUVJ440P = 32,
AV_PIX_FMT_YUVA420P = 33,
AV_PIX_FMT_RGB48BE = 34,
AV_PIX_FMT_RGB48LE = 35,
AV_PIX_FMT_RGB565BE = 36,
AV_PIX_FMT_RGB565LE = 37,
AV_PIX_FMT_RGB555BE = 38,
AV_PIX_FMT_RGB555LE = 39,
AV_PIX_FMT_BGR565BE = 40,
AV_PIX_FMT_BGR565LE = 41,
AV_PIX_FMT_BGR555BE = 42,
AV_PIX_FMT_BGR555LE = 43,
AV_PIX_FMT_VAAPI_MOCO = 44,
AV_PIX_FMT_VAAPI_IDCT = 45,
AV_PIX_FMT_VAAPI_VLD = 46,
AV_PIX_FMT_YUV420P16LE = 47,
AV_PIX_FMT_YUV420P16BE = 48,
AV_PIX_FMT_YUV422P16LE = 49,
AV_PIX_FMT_YUV422P16BE = 50,
AV_PIX_FMT_YUV444P16LE = 51,
AV_PIX_FMT_YUV444P16BE = 52,
AV_PIX_FMT_DXVA2_VLD = 53,
AV_PIX_FMT_RGB444LE = 54,
AV_PIX_FMT_RGB444BE = 55,
AV_PIX_FMT_BGR444LE = 56,
AV_PIX_FMT_BGR444BE = 57,
AV_PIX_FMT_YA8 = 58,
AV_PIX_FMT_BGR48BE = 59,
AV_PIX_FMT_BGR48LE = 60,
AV_PIX_FMT_YUV420P9BE = 61,
AV_PIX_FMT_YUV420P9LE = 62,
AV_PIX_FMT_YUV420P10BE = 63,
AV_PIX_FMT_YUV420P10LE = 64,
AV_PIX_FMT_YUV422P10BE = 65,
AV_PIX_FMT_YUV422P10LE = 66,
AV_PIX_FMT_YUV444P9BE = 67,
AV_PIX_FMT_YUV444P9LE = 68,
AV_PIX_FMT_YUV444P10BE = 69,
AV_PIX_FMT_YUV444P10LE = 70,
AV_PIX_FMT_YUV422P9BE = 71,
AV_PIX_FMT_YUV422P9LE = 72,
AV_PIX_FMT_GBRP = 73,
AV_PIX_FMT_GBRP9BE = 74,
AV_PIX_FMT_GBRP9LE = 75,
AV_PIX_FMT_GBRP10BE = 76,
AV_PIX_FMT_GBRP10LE = 77,
AV_PIX_FMT_GBRP16BE = 78,
AV_PIX_FMT_GBRP16LE = 79,
AV_PIX_FMT_YUVA422P = 80,
AV_PIX_FMT_YUVA444P = 81,
AV_PIX_FMT_YUVA420P9BE = 82,
AV_PIX_FMT_YUVA420P9LE = 83,
AV_PIX_FMT_YUVA422P9BE = 84,
AV_PIX_FMT_YUVA422P9LE = 85,
AV_PIX_FMT_YUVA444P9BE = 86,
AV_PIX_FMT_YUVA444P9LE = 87,
AV_PIX_FMT_YUVA420P10BE = 88,
AV_PIX_FMT_YUVA420P10LE = 89,
AV_PIX_FMT_YUVA422P10BE = 90,
AV_PIX_FMT_YUVA422P10LE = 91,
AV_PIX_FMT_YUVA444P10BE = 92,
AV_PIX_FMT_YUVA444P10LE = 93,
AV_PIX_FMT_YUVA420P16BE = 94,
AV_PIX_FMT_YUVA420P16LE = 95,
AV_PIX_FMT_YUVA422P16BE = 96,
AV_PIX_FMT_YUVA422P16LE = 97,
AV_PIX_FMT_YUVA444P16BE = 98,
AV_PIX_FMT_YUVA444P16LE = 99,
AV_PIX_FMT_VDPAU = 100,
AV_PIX_FMT_XYZ12LE = 101,
AV_PIX_FMT_XYZ12BE = 102,
AV_PIX_FMT_NV16 = 103,
AV_PIX_FMT_NV20LE = 104,
AV_PIX_FMT_NV20BE = 105,
AV_PIX_FMT_RGBA64BE = 106,
AV_PIX_FMT_RGBA64LE = 107,
AV_PIX_FMT_BGRA64BE = 108,
AV_PIX_FMT_BGRA64LE = 109,
AV_PIX_FMT_YVYU422 = 110,
AV_PIX_FMT_YA16BE = 111,
AV_PIX_FMT_YA16LE = 112,
AV_PIX_FMT_GBRAP = 113,
AV_PIX_FMT_GBRAP16BE = 114,
AV_PIX_FMT_GBRAP16LE = 115,
AV_PIX_FMT_QSV = 116,
AV_PIX_FMT_MMAL = 117,
AV_PIX_FMT_D3D11VA_VLD = 118,
AV_PIX_FMT_CUDA = 119,
AV_PIX_FMT_0RGB = 120,
AV_PIX_FMT_RGB0 = 121,
AV_PIX_FMT_0BGR = 122,
AV_PIX_FMT_BGR0 = 123,
AV_PIX_FMT_YUV420P12BE = 124,
AV_PIX_FMT_YUV420P12LE = 125,
AV_PIX_FMT_YUV420P14BE = 126,
AV_PIX_FMT_YUV420P14LE = 127,
AV_PIX_FMT_YUV422P12BE = 128,
AV_PIX_FMT_YUV422P12LE = 129,
AV_PIX_FMT_YUV422P14BE = 130,
AV_PIX_FMT_YUV422P14LE = 131,
AV_PIX_FMT_YUV444P12BE = 132,
AV_PIX_FMT_YUV444P12LE = 133,
AV_PIX_FMT_YUV444P14BE = 134,
AV_PIX_FMT_YUV444P14LE = 135,
AV_PIX_FMT_GBRP12BE = 136,
AV_PIX_FMT_GBRP12LE = 137,
AV_PIX_FMT_GBRP14BE = 138,
AV_PIX_FMT_GBRP14LE = 139,
AV_PIX_FMT_YUVJ411P = 140,
AV_PIX_FMT_BAYER_BGGR8 = 141,
AV_PIX_FMT_BAYER_RGGB8 = 142,
AV_PIX_FMT_BAYER_GBRG8 = 143,
AV_PIX_FMT_BAYER_GRBG8 = 144,
AV_PIX_FMT_BAYER_BGGR16LE = 145,
AV_PIX_FMT_BAYER_BGGR16BE = 146,
AV_PIX_FMT_BAYER_RGGB16LE = 147,
AV_PIX_FMT_BAYER_RGGB16BE = 148,
AV_PIX_FMT_BAYER_GBRG16LE = 149,
AV_PIX_FMT_BAYER_GBRG16BE = 150,
AV_PIX_FMT_BAYER_GRBG16LE = 151,
AV_PIX_FMT_BAYER_GRBG16BE = 152,
AV_PIX_FMT_XVMC = 153,
AV_PIX_FMT_YUV440P10LE = 154,
AV_PIX_FMT_YUV440P10BE = 155,
AV_PIX_FMT_YUV440P12LE = 156,
AV_PIX_FMT_YUV440P12BE = 157,
AV_PIX_FMT_AYUV64LE = 158,
AV_PIX_FMT_AYUV64BE = 159,
AV_PIX_FMT_VIDEOTOOLBOX = 160,
AV_PIX_FMT_P010LE = 161,
AV_PIX_FMT_P010BE = 162,
AV_PIX_FMT_GBRAP12BE = 163,
AV_PIX_FMT_GBRAP12LE = 164,
AV_PIX_FMT_GBRAP10BE = 165,
AV_PIX_FMT_GBRAP10LE = 166,
AV_PIX_FMT_MEDIACODEC = 167,
AV_PIX_FMT_GRAY12BE = 168,
AV_PIX_FMT_GRAY12LE = 169,
AV_PIX_FMT_GRAY10BE = 170,
AV_PIX_FMT_GRAY10LE = 171,
AV_PIX_FMT_P016LE = 172,
AV_PIX_FMT_P016BE = 173,
AV_PIX_FMT_D3D11 = 174,
AV_PIX_FMT_GRAY9BE = 175,
AV_PIX_FMT_GRAY9LE = 176,
AV_PIX_FMT_GBRPF32BE = 177,
AV_PIX_FMT_GBRPF32LE = 178,
AV_PIX_FMT_GBRAPF32BE = 179,
AV_PIX_FMT_GBRAPF32LE = 180,
AV_PIX_FMT_DRM_PRIME = 181,
AV_PIX_FMT_OPENCL = 182,
AV_PIX_FMT_GRAY14BE = 183,
AV_PIX_FMT_GRAY14LE = 184,
AV_PIX_FMT_GRAYF32BE = 185,
AV_PIX_FMT_GRAYF32LE = 186,
AV_PIX_FMT_YUVA422P12BE = 187,
AV_PIX_FMT_YUVA422P12LE = 188,
AV_PIX_FMT_YUVA444P12BE = 189,
AV_PIX_FMT_YUVA444P12LE = 190,
AV_PIX_FMT_NV24 = 191,
AV_PIX_FMT_NV42 = 192,
AV_PIX_FMT_VULKAN = 193,
AV_PIX_FMT_Y210BE = 194,
AV_PIX_FMT_Y210LE = 195,
AV_PIX_FMT_X2RGB10LE = 196,
AV_PIX_FMT_X2RGB10BE = 197,
AV_PIX_FMT_NB = 198,
}
impl AVColorPrimaries {
pub const AVCOL_PRI_SMPTEST428_1: AVColorPrimaries = AVColorPrimaries::AVCOL_PRI_SMPTE428;
}
impl AVColorPrimaries {
pub const AVCOL_PRI_JEDEC_P22: AVColorPrimaries = AVColorPrimaries::AVCOL_PRI_EBU3213;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVColorPrimaries {
AVCOL_PRI_RESERVED0 = 0,
AVCOL_PRI_BT709 = 1,
AVCOL_PRI_UNSPECIFIED = 2,
AVCOL_PRI_RESERVED = 3,
AVCOL_PRI_BT470M = 4,
AVCOL_PRI_BT470BG = 5,
AVCOL_PRI_SMPTE170M = 6,
AVCOL_PRI_SMPTE240M = 7,
AVCOL_PRI_FILM = 8,
AVCOL_PRI_BT2020 = 9,
AVCOL_PRI_SMPTE428 = 10,
AVCOL_PRI_SMPTE431 = 11,
AVCOL_PRI_SMPTE432 = 12,
AVCOL_PRI_EBU3213 = 22,
AVCOL_PRI_NB = 23,
}
impl AVColorTransferCharacteristic {
pub const AVCOL_TRC_SMPTEST2084: AVColorTransferCharacteristic =
AVColorTransferCharacteristic::AVCOL_TRC_SMPTE2084;
}
impl AVColorTransferCharacteristic {
pub const AVCOL_TRC_SMPTEST428_1: AVColorTransferCharacteristic =
AVColorTransferCharacteristic::AVCOL_TRC_SMPTE428;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVColorTransferCharacteristic {
AVCOL_TRC_RESERVED0 = 0,
AVCOL_TRC_BT709 = 1,
AVCOL_TRC_UNSPECIFIED = 2,
AVCOL_TRC_RESERVED = 3,
AVCOL_TRC_GAMMA22 = 4,
AVCOL_TRC_GAMMA28 = 5,
AVCOL_TRC_SMPTE170M = 6,
AVCOL_TRC_SMPTE240M = 7,
AVCOL_TRC_LINEAR = 8,
AVCOL_TRC_LOG = 9,
AVCOL_TRC_LOG_SQRT = 10,
AVCOL_TRC_IEC61966_2_4 = 11,
AVCOL_TRC_BT1361_ECG = 12,
AVCOL_TRC_IEC61966_2_1 = 13,
AVCOL_TRC_BT2020_10 = 14,
AVCOL_TRC_BT2020_12 = 15,
AVCOL_TRC_SMPTE2084 = 16,
AVCOL_TRC_SMPTE428 = 17,
AVCOL_TRC_ARIB_STD_B67 = 18,
AVCOL_TRC_NB = 19,
}
impl AVColorSpace {
pub const AVCOL_SPC_YCOCG: AVColorSpace = AVColorSpace::AVCOL_SPC_YCGCO;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVColorSpace {
AVCOL_SPC_RGB = 0,
AVCOL_SPC_BT709 = 1,
AVCOL_SPC_UNSPECIFIED = 2,
AVCOL_SPC_RESERVED = 3,
AVCOL_SPC_FCC = 4,
AVCOL_SPC_BT470BG = 5,
AVCOL_SPC_SMPTE170M = 6,
AVCOL_SPC_SMPTE240M = 7,
AVCOL_SPC_YCGCO = 8,
AVCOL_SPC_BT2020_NCL = 9,
AVCOL_SPC_BT2020_CL = 10,
AVCOL_SPC_SMPTE2085 = 11,
AVCOL_SPC_CHROMA_DERIVED_NCL = 12,
AVCOL_SPC_CHROMA_DERIVED_CL = 13,
AVCOL_SPC_ICTCP = 14,
AVCOL_SPC_NB = 15,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVColorRange {
AVCOL_RANGE_UNSPECIFIED = 0,
AVCOL_RANGE_MPEG = 1,
AVCOL_RANGE_JPEG = 2,
AVCOL_RANGE_NB = 3,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVChromaLocation {
AVCHROMA_LOC_UNSPECIFIED = 0,
AVCHROMA_LOC_LEFT = 1,
AVCHROMA_LOC_CENTER = 2,
AVCHROMA_LOC_TOPLEFT = 3,
AVCHROMA_LOC_TOP = 4,
AVCHROMA_LOC_BOTTOMLEFT = 5,
AVCHROMA_LOC_BOTTOM = 6,
AVCHROMA_LOC_NB = 7,
}
extern "C" {
pub fn av_int_list_length_for_size(
elsize: libc::c_uint,
list: *const libc::c_void,
term: u64,
) -> libc::c_uint;
}
extern "C" {
pub fn av_fopen_utf8(path: *const libc::c_char, mode: *const libc::c_char) -> *mut FILE;
}
extern "C" {
pub fn av_get_time_base_q() -> AVRational;
}
extern "C" {
pub fn av_fourcc_make_string(buf: *mut libc::c_char, fourcc: u32) -> *mut libc::c_char;
}
#[repr(i32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVSampleFormat {
AV_SAMPLE_FMT_NONE = -1,
AV_SAMPLE_FMT_U8 = 0,
AV_SAMPLE_FMT_S16 = 1,
AV_SAMPLE_FMT_S32 = 2,
AV_SAMPLE_FMT_FLT = 3,
AV_SAMPLE_FMT_DBL = 4,
AV_SAMPLE_FMT_U8P = 5,
AV_SAMPLE_FMT_S16P = 6,
AV_SAMPLE_FMT_S32P = 7,
AV_SAMPLE_FMT_FLTP = 8,
AV_SAMPLE_FMT_DBLP = 9,
AV_SAMPLE_FMT_S64 = 10,
AV_SAMPLE_FMT_S64P = 11,
AV_SAMPLE_FMT_NB = 12,
}
extern "C" {
pub fn av_get_sample_fmt_name(sample_fmt: AVSampleFormat) -> *const libc::c_char;
}
extern "C" {
pub fn av_get_sample_fmt(name: *const libc::c_char) -> AVSampleFormat;
}
extern "C" {
pub fn av_get_alt_sample_fmt(sample_fmt: AVSampleFormat, planar: libc::c_int)
-> AVSampleFormat;
}
extern "C" {
pub fn av_get_packed_sample_fmt(sample_fmt: AVSampleFormat) -> AVSampleFormat;
}
extern "C" {
pub fn av_get_planar_sample_fmt(sample_fmt: AVSampleFormat) -> AVSampleFormat;
}
extern "C" {
pub fn av_get_sample_fmt_string(
buf: *mut libc::c_char,
buf_size: libc::c_int,
sample_fmt: AVSampleFormat,
) -> *mut libc::c_char;
}
extern "C" {
pub fn av_get_bytes_per_sample(sample_fmt: AVSampleFormat) -> libc::c_int;
}
extern "C" {
pub fn av_sample_fmt_is_planar(sample_fmt: AVSampleFormat) -> libc::c_int;
}
extern "C" {
pub fn av_samples_get_buffer_size(
linesize: *mut libc::c_int,
nb_channels: libc::c_int,
nb_samples: libc::c_int,
sample_fmt: AVSampleFormat,
align: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_samples_fill_arrays(
audio_data: *mut *mut u8,
linesize: *mut libc::c_int,
buf: *const u8,
nb_channels: libc::c_int,
nb_samples: libc::c_int,
sample_fmt: AVSampleFormat,
align: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_samples_alloc(
audio_data: *mut *mut u8,
linesize: *mut libc::c_int,
nb_channels: libc::c_int,
nb_samples: libc::c_int,
sample_fmt: AVSampleFormat,
align: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_samples_alloc_array_and_samples(
audio_data: *mut *mut *mut u8,
linesize: *mut libc::c_int,
nb_channels: libc::c_int,
nb_samples: libc::c_int,
sample_fmt: AVSampleFormat,
align: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_samples_copy(
dst: *mut *mut u8,
src: *const *mut u8,
dst_offset: libc::c_int,
src_offset: libc::c_int,
nb_samples: libc::c_int,
nb_channels: libc::c_int,
sample_fmt: AVSampleFormat,
) -> libc::c_int;
}
extern "C" {
pub fn av_samples_set_silence(
audio_data: *mut *mut u8,
offset: libc::c_int,
nb_samples: libc::c_int,
nb_channels: libc::c_int,
sample_fmt: AVSampleFormat,
) -> libc::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVBuffer {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVBufferRef {
pub buffer: *mut AVBuffer,
pub data: *mut u8,
pub size: libc::c_int,
}
#[test]
fn bindgen_test_layout_AVBufferRef() {
const UNINIT: ::std::mem::MaybeUninit<AVBufferRef> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVBufferRef>(),
24usize,
concat!("Size of: ", stringify!(AVBufferRef))
);
assert_eq!(
::std::mem::align_of::<AVBufferRef>(),
8usize,
concat!("Alignment of ", stringify!(AVBufferRef))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).buffer) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVBufferRef),
"::",
stringify!(buffer)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVBufferRef),
"::",
stringify!(data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVBufferRef),
"::",
stringify!(size)
)
);
}
extern "C" {
pub fn av_buffer_alloc(size: libc::c_int) -> *mut AVBufferRef;
}
extern "C" {
pub fn av_buffer_allocz(size: libc::c_int) -> *mut AVBufferRef;
}
extern "C" {
pub fn av_buffer_create(
data: *mut u8,
size: libc::c_int,
free: ::std::option::Option<unsafe extern "C" fn(opaque: *mut libc::c_void, data: *mut u8)>,
opaque: *mut libc::c_void,
flags: libc::c_int,
) -> *mut AVBufferRef;
}
extern "C" {
pub fn av_buffer_default_free(opaque: *mut libc::c_void, data: *mut u8);
}
extern "C" {
pub fn av_buffer_ref(buf: *mut AVBufferRef) -> *mut AVBufferRef;
}
extern "C" {
pub fn av_buffer_unref(buf: *mut *mut AVBufferRef);
}
extern "C" {
pub fn av_buffer_is_writable(buf: *const AVBufferRef) -> libc::c_int;
}
extern "C" {
pub fn av_buffer_get_opaque(buf: *const AVBufferRef) -> *mut libc::c_void;
}
extern "C" {
pub fn av_buffer_get_ref_count(buf: *const AVBufferRef) -> libc::c_int;
}
extern "C" {
pub fn av_buffer_make_writable(buf: *mut *mut AVBufferRef) -> libc::c_int;
}
extern "C" {
pub fn av_buffer_realloc(buf: *mut *mut AVBufferRef, size: libc::c_int) -> libc::c_int;
}
extern "C" {
pub fn av_buffer_replace(dst: *mut *mut AVBufferRef, src: *mut AVBufferRef) -> libc::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVBufferPool {
_unused: [u8; 0],
}
extern "C" {
pub fn av_buffer_pool_init(
size: libc::c_int,
alloc: ::std::option::Option<unsafe extern "C" fn(size: libc::c_int) -> *mut AVBufferRef>,
) -> *mut AVBufferPool;
}
extern "C" {
pub fn av_buffer_pool_init2(
size: libc::c_int,
opaque: *mut libc::c_void,
alloc: ::std::option::Option<
unsafe extern "C" fn(opaque: *mut libc::c_void, size: libc::c_int) -> *mut AVBufferRef,
>,
pool_free: ::std::option::Option<unsafe extern "C" fn(opaque: *mut libc::c_void)>,
) -> *mut AVBufferPool;
}
extern "C" {
pub fn av_buffer_pool_uninit(pool: *mut *mut AVBufferPool);
}
extern "C" {
pub fn av_buffer_pool_get(pool: *mut AVBufferPool) -> *mut AVBufferRef;
}
extern "C" {
pub fn av_buffer_pool_buffer_get_opaque(ref_: *mut AVBufferRef) -> *mut libc::c_void;
}
extern "C" {
pub fn av_get_cpu_flags() -> libc::c_int;
}
extern "C" {
pub fn av_force_cpu_flags(flags: libc::c_int);
}
extern "C" {
pub fn av_set_cpu_flags_mask(mask: libc::c_int);
}
extern "C" {
pub fn av_parse_cpu_flags(s: *const libc::c_char) -> libc::c_int;
}
extern "C" {
pub fn av_parse_cpu_caps(flags: *mut libc::c_uint, s: *const libc::c_char) -> libc::c_int;
}
extern "C" {
pub fn av_cpu_count() -> libc::c_int;
}
extern "C" {
pub fn av_cpu_max_align() -> usize;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVMatrixEncoding {
AV_MATRIX_ENCODING_NONE = 0,
AV_MATRIX_ENCODING_DOLBY = 1,
AV_MATRIX_ENCODING_DPLII = 2,
AV_MATRIX_ENCODING_DPLIIX = 3,
AV_MATRIX_ENCODING_DPLIIZ = 4,
AV_MATRIX_ENCODING_DOLBYEX = 5,
AV_MATRIX_ENCODING_DOLBYHEADPHONE = 6,
AV_MATRIX_ENCODING_NB = 7,
}
extern "C" {
pub fn av_get_channel_layout(name: *const libc::c_char) -> u64;
}
extern "C" {
pub fn av_get_extended_channel_layout(
name: *const libc::c_char,
channel_layout: *mut u64,
nb_channels: *mut libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_get_channel_layout_string(
buf: *mut libc::c_char,
buf_size: libc::c_int,
nb_channels: libc::c_int,
channel_layout: u64,
);
}
extern "C" {
pub fn av_bprint_channel_layout(
bp: *mut AVBPrint,
nb_channels: libc::c_int,
channel_layout: u64,
);
}
extern "C" {
pub fn av_get_channel_layout_nb_channels(channel_layout: u64) -> libc::c_int;
}
extern "C" {
pub fn av_get_default_channel_layout(nb_channels: libc::c_int) -> i64;
}
extern "C" {
pub fn av_get_channel_layout_channel_index(channel_layout: u64, channel: u64) -> libc::c_int;
}
extern "C" {
pub fn av_channel_layout_extract_channel(channel_layout: u64, index: libc::c_int) -> u64;
}
extern "C" {
pub fn av_get_channel_name(channel: u64) -> *const libc::c_char;
}
extern "C" {
pub fn av_get_channel_description(channel: u64) -> *const libc::c_char;
}
extern "C" {
pub fn av_get_standard_channel_layout(
index: libc::c_uint,
layout: *mut u64,
name: *mut *const libc::c_char,
) -> libc::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVDictionaryEntry {
pub key: *mut libc::c_char,
pub value: *mut libc::c_char,
}
#[test]
fn bindgen_test_layout_AVDictionaryEntry() {
const UNINIT: ::std::mem::MaybeUninit<AVDictionaryEntry> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVDictionaryEntry>(),
16usize,
concat!("Size of: ", stringify!(AVDictionaryEntry))
);
assert_eq!(
::std::mem::align_of::<AVDictionaryEntry>(),
8usize,
concat!("Alignment of ", stringify!(AVDictionaryEntry))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).key) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVDictionaryEntry),
"::",
stringify!(key)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVDictionaryEntry),
"::",
stringify!(value)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVDictionary {
_unused: [u8; 0],
}
extern "C" {
pub fn av_dict_get(
m: *const AVDictionary,
key: *const libc::c_char,
prev: *const AVDictionaryEntry,
flags: libc::c_int,
) -> *mut AVDictionaryEntry;
}
extern "C" {
pub fn av_dict_count(m: *const AVDictionary) -> libc::c_int;
}
extern "C" {
pub fn av_dict_set(
pm: *mut *mut AVDictionary,
key: *const libc::c_char,
value: *const libc::c_char,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_dict_set_int(
pm: *mut *mut AVDictionary,
key: *const libc::c_char,
value: i64,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_dict_parse_string(
pm: *mut *mut AVDictionary,
str_: *const libc::c_char,
key_val_sep: *const libc::c_char,
pairs_sep: *const libc::c_char,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_dict_copy(
dst: *mut *mut AVDictionary,
src: *const AVDictionary,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_dict_free(m: *mut *mut AVDictionary);
}
extern "C" {
pub fn av_dict_get_string(
m: *const AVDictionary,
buffer: *mut *mut libc::c_char,
key_val_sep: libc::c_char,
pairs_sep: libc::c_char,
) -> libc::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVFrameSideDataType {
AV_FRAME_DATA_PANSCAN = 0,
AV_FRAME_DATA_A53_CC = 1,
AV_FRAME_DATA_STEREO3D = 2,
AV_FRAME_DATA_MATRIXENCODING = 3,
AV_FRAME_DATA_DOWNMIX_INFO = 4,
AV_FRAME_DATA_REPLAYGAIN = 5,
AV_FRAME_DATA_DISPLAYMATRIX = 6,
AV_FRAME_DATA_AFD = 7,
AV_FRAME_DATA_MOTION_VECTORS = 8,
AV_FRAME_DATA_SKIP_SAMPLES = 9,
AV_FRAME_DATA_AUDIO_SERVICE_TYPE = 10,
AV_FRAME_DATA_MASTERING_DISPLAY_METADATA = 11,
AV_FRAME_DATA_GOP_TIMECODE = 12,
AV_FRAME_DATA_SPHERICAL = 13,
AV_FRAME_DATA_CONTENT_LIGHT_LEVEL = 14,
AV_FRAME_DATA_ICC_PROFILE = 15,
AV_FRAME_DATA_QP_TABLE_PROPERTIES = 16,
AV_FRAME_DATA_QP_TABLE_DATA = 17,
AV_FRAME_DATA_S12M_TIMECODE = 18,
AV_FRAME_DATA_DYNAMIC_HDR_PLUS = 19,
AV_FRAME_DATA_REGIONS_OF_INTEREST = 20,
AV_FRAME_DATA_VIDEO_ENC_PARAMS = 21,
AV_FRAME_DATA_SEI_UNREGISTERED = 22,
AV_FRAME_DATA_FILM_GRAIN_PARAMS = 23,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVActiveFormatDescription {
AV_AFD_SAME = 8,
AV_AFD_4_3 = 9,
AV_AFD_16_9 = 10,
AV_AFD_14_9 = 11,
AV_AFD_4_3_SP_14_9 = 13,
AV_AFD_16_9_SP_14_9 = 14,
AV_AFD_SP_4_3 = 15,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVFrameSideData {
pub type_: AVFrameSideDataType,
pub data: *mut u8,
pub size: libc::c_int,
pub metadata: *mut AVDictionary,
pub buf: *mut AVBufferRef,
}
#[test]
fn bindgen_test_layout_AVFrameSideData() {
const UNINIT: ::std::mem::MaybeUninit<AVFrameSideData> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVFrameSideData>(),
40usize,
concat!("Size of: ", stringify!(AVFrameSideData))
);
assert_eq!(
::std::mem::align_of::<AVFrameSideData>(),
8usize,
concat!("Alignment of ", stringify!(AVFrameSideData))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVFrameSideData),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVFrameSideData),
"::",
stringify!(data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVFrameSideData),
"::",
stringify!(size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).metadata) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVFrameSideData),
"::",
stringify!(metadata)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVFrameSideData),
"::",
stringify!(buf)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVRegionOfInterest {
pub self_size: u32,
pub top: libc::c_int,
pub bottom: libc::c_int,
pub left: libc::c_int,
pub right: libc::c_int,
pub qoffset: AVRational,
}
#[test]
fn bindgen_test_layout_AVRegionOfInterest() {
const UNINIT: ::std::mem::MaybeUninit<AVRegionOfInterest> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVRegionOfInterest>(),
28usize,
concat!("Size of: ", stringify!(AVRegionOfInterest))
);
assert_eq!(
::std::mem::align_of::<AVRegionOfInterest>(),
4usize,
concat!("Alignment of ", stringify!(AVRegionOfInterest))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).self_size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVRegionOfInterest),
"::",
stringify!(self_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).top) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(AVRegionOfInterest),
"::",
stringify!(top)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).bottom) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVRegionOfInterest),
"::",
stringify!(bottom)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).left) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(AVRegionOfInterest),
"::",
stringify!(left)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).right) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVRegionOfInterest),
"::",
stringify!(right)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).qoffset) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(AVRegionOfInterest),
"::",
stringify!(qoffset)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVFrame {
pub data: [*mut u8; 8usize],
pub linesize: [libc::c_int; 8usize],
pub extended_data: *mut *mut u8,
pub width: libc::c_int,
pub height: libc::c_int,
pub nb_samples: libc::c_int,
pub format: libc::c_int,
pub key_frame: libc::c_int,
pub pict_type: AVPictureType,
pub sample_aspect_ratio: AVRational,
pub pts: i64,
pub pkt_pts: i64,
pub pkt_dts: i64,
pub coded_picture_number: libc::c_int,
pub display_picture_number: libc::c_int,
pub quality: libc::c_int,
pub opaque: *mut libc::c_void,
pub error: [u64; 8usize],
pub repeat_pict: libc::c_int,
pub interlaced_frame: libc::c_int,
pub top_field_first: libc::c_int,
pub palette_has_changed: libc::c_int,
pub reordered_opaque: i64,
pub sample_rate: libc::c_int,
pub channel_layout: u64,
pub buf: [*mut AVBufferRef; 8usize],
pub extended_buf: *mut *mut AVBufferRef,
pub nb_extended_buf: libc::c_int,
pub side_data: *mut *mut AVFrameSideData,
pub nb_side_data: libc::c_int,
pub flags: libc::c_int,
pub color_range: AVColorRange,
pub color_primaries: AVColorPrimaries,
pub color_trc: AVColorTransferCharacteristic,
pub colorspace: AVColorSpace,
pub chroma_location: AVChromaLocation,
pub best_effort_timestamp: i64,
pub pkt_pos: i64,
pub pkt_duration: i64,
pub metadata: *mut AVDictionary,
pub decode_error_flags: libc::c_int,
pub channels: libc::c_int,
pub pkt_size: libc::c_int,
pub qscale_table: *mut i8,
pub qstride: libc::c_int,
pub qscale_type: libc::c_int,
pub qp_table_buf: *mut AVBufferRef,
pub hw_frames_ctx: *mut AVBufferRef,
pub opaque_ref: *mut AVBufferRef,
pub crop_top: usize,
pub crop_bottom: usize,
pub crop_left: usize,
pub crop_right: usize,
pub private_ref: *mut AVBufferRef,
}
#[test]
fn bindgen_test_layout_AVFrame() {
const UNINIT: ::std::mem::MaybeUninit<AVFrame> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVFrame>(),
536usize,
concat!("Size of: ", stringify!(AVFrame))
);
assert_eq!(
::std::mem::align_of::<AVFrame>(),
8usize,
concat!("Alignment of ", stringify!(AVFrame))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).linesize) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(linesize)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).extended_data) as usize - ptr as usize },
96usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(extended_data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize },
104usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(width)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).height) as usize - ptr as usize },
108usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(height)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_samples) as usize - ptr as usize },
112usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(nb_samples)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).format) as usize - ptr as usize },
116usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(format)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).key_frame) as usize - ptr as usize },
120usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(key_frame)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pict_type) as usize - ptr as usize },
124usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(pict_type)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sample_aspect_ratio) as usize - ptr as usize },
128usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(sample_aspect_ratio)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pts) as usize - ptr as usize },
136usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(pts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pkt_pts) as usize - ptr as usize },
144usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(pkt_pts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pkt_dts) as usize - ptr as usize },
152usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(pkt_dts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).coded_picture_number) as usize - ptr as usize },
160usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(coded_picture_number)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).display_picture_number) as usize - ptr as usize },
164usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(display_picture_number)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).quality) as usize - ptr as usize },
168usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(quality)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).opaque) as usize - ptr as usize },
176usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(opaque)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).error) as usize - ptr as usize },
184usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(error)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).repeat_pict) as usize - ptr as usize },
248usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(repeat_pict)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).interlaced_frame) as usize - ptr as usize },
252usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(interlaced_frame)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).top_field_first) as usize - ptr as usize },
256usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(top_field_first)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).palette_has_changed) as usize - ptr as usize },
260usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(palette_has_changed)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).reordered_opaque) as usize - ptr as usize },
264usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(reordered_opaque)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sample_rate) as usize - ptr as usize },
272usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(sample_rate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).channel_layout) as usize - ptr as usize },
280usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(channel_layout)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize },
288usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(buf)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).extended_buf) as usize - ptr as usize },
352usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(extended_buf)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_extended_buf) as usize - ptr as usize },
360usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(nb_extended_buf)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).side_data) as usize - ptr as usize },
368usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(side_data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_side_data) as usize - ptr as usize },
376usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(nb_side_data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize },
380usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).color_range) as usize - ptr as usize },
384usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(color_range)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).color_primaries) as usize - ptr as usize },
388usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(color_primaries)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).color_trc) as usize - ptr as usize },
392usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(color_trc)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).colorspace) as usize - ptr as usize },
396usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(colorspace)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).chroma_location) as usize - ptr as usize },
400usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(chroma_location)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).best_effort_timestamp) as usize - ptr as usize },
408usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(best_effort_timestamp)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pkt_pos) as usize - ptr as usize },
416usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(pkt_pos)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pkt_duration) as usize - ptr as usize },
424usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(pkt_duration)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).metadata) as usize - ptr as usize },
432usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(metadata)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).decode_error_flags) as usize - ptr as usize },
440usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(decode_error_flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).channels) as usize - ptr as usize },
444usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(channels)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pkt_size) as usize - ptr as usize },
448usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(pkt_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).qscale_table) as usize - ptr as usize },
456usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(qscale_table)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).qstride) as usize - ptr as usize },
464usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(qstride)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).qscale_type) as usize - ptr as usize },
468usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(qscale_type)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).qp_table_buf) as usize - ptr as usize },
472usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(qp_table_buf)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).hw_frames_ctx) as usize - ptr as usize },
480usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(hw_frames_ctx)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).opaque_ref) as usize - ptr as usize },
488usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(opaque_ref)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).crop_top) as usize - ptr as usize },
496usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(crop_top)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).crop_bottom) as usize - ptr as usize },
504usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(crop_bottom)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).crop_left) as usize - ptr as usize },
512usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(crop_left)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).crop_right) as usize - ptr as usize },
520usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(crop_right)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).private_ref) as usize - ptr as usize },
528usize,
concat!(
"Offset of field: ",
stringify!(AVFrame),
"::",
stringify!(private_ref)
)
);
}
extern "C" {
pub fn av_frame_get_best_effort_timestamp(frame: *const AVFrame) -> i64;
}
extern "C" {
pub fn av_frame_set_best_effort_timestamp(frame: *mut AVFrame, val: i64);
}
extern "C" {
pub fn av_frame_get_pkt_duration(frame: *const AVFrame) -> i64;
}
extern "C" {
pub fn av_frame_set_pkt_duration(frame: *mut AVFrame, val: i64);
}
extern "C" {
pub fn av_frame_get_pkt_pos(frame: *const AVFrame) -> i64;
}
extern "C" {
pub fn av_frame_set_pkt_pos(frame: *mut AVFrame, val: i64);
}
extern "C" {
pub fn av_frame_get_channel_layout(frame: *const AVFrame) -> i64;
}
extern "C" {
pub fn av_frame_set_channel_layout(frame: *mut AVFrame, val: i64);
}
extern "C" {
pub fn av_frame_get_channels(frame: *const AVFrame) -> libc::c_int;
}
extern "C" {
pub fn av_frame_set_channels(frame: *mut AVFrame, val: libc::c_int);
}
extern "C" {
pub fn av_frame_get_sample_rate(frame: *const AVFrame) -> libc::c_int;
}
extern "C" {
pub fn av_frame_set_sample_rate(frame: *mut AVFrame, val: libc::c_int);
}
extern "C" {
pub fn av_frame_get_metadata(frame: *const AVFrame) -> *mut AVDictionary;
}
extern "C" {
pub fn av_frame_set_metadata(frame: *mut AVFrame, val: *mut AVDictionary);
}
extern "C" {
pub fn av_frame_get_decode_error_flags(frame: *const AVFrame) -> libc::c_int;
}
extern "C" {
pub fn av_frame_set_decode_error_flags(frame: *mut AVFrame, val: libc::c_int);
}
extern "C" {
pub fn av_frame_get_pkt_size(frame: *const AVFrame) -> libc::c_int;
}
extern "C" {
pub fn av_frame_set_pkt_size(frame: *mut AVFrame, val: libc::c_int);
}
extern "C" {
pub fn av_frame_get_qp_table(
f: *mut AVFrame,
stride: *mut libc::c_int,
type_: *mut libc::c_int,
) -> *mut i8;
}
extern "C" {
pub fn av_frame_set_qp_table(
f: *mut AVFrame,
buf: *mut AVBufferRef,
stride: libc::c_int,
type_: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_frame_get_colorspace(frame: *const AVFrame) -> AVColorSpace;
}
extern "C" {
pub fn av_frame_set_colorspace(frame: *mut AVFrame, val: AVColorSpace);
}
extern "C" {
pub fn av_frame_get_color_range(frame: *const AVFrame) -> AVColorRange;
}
extern "C" {
pub fn av_frame_set_color_range(frame: *mut AVFrame, val: AVColorRange);
}
extern "C" {
pub fn av_get_colorspace_name(val: AVColorSpace) -> *const libc::c_char;
}
extern "C" {
pub fn av_frame_alloc() -> *mut AVFrame;
}
extern "C" {
pub fn av_frame_free(frame: *mut *mut AVFrame);
}
extern "C" {
pub fn av_frame_ref(dst: *mut AVFrame, src: *const AVFrame) -> libc::c_int;
}
extern "C" {
pub fn av_frame_clone(src: *const AVFrame) -> *mut AVFrame;
}
extern "C" {
pub fn av_frame_unref(frame: *mut AVFrame);
}
extern "C" {
pub fn av_frame_move_ref(dst: *mut AVFrame, src: *mut AVFrame);
}
extern "C" {
pub fn av_frame_get_buffer(frame: *mut AVFrame, align: libc::c_int) -> libc::c_int;
}
extern "C" {
pub fn av_frame_is_writable(frame: *mut AVFrame) -> libc::c_int;
}
extern "C" {
pub fn av_frame_make_writable(frame: *mut AVFrame) -> libc::c_int;
}
extern "C" {
pub fn av_frame_copy(dst: *mut AVFrame, src: *const AVFrame) -> libc::c_int;
}
extern "C" {
pub fn av_frame_copy_props(dst: *mut AVFrame, src: *const AVFrame) -> libc::c_int;
}
extern "C" {
pub fn av_frame_get_plane_buffer(frame: *mut AVFrame, plane: libc::c_int) -> *mut AVBufferRef;
}
extern "C" {
pub fn av_frame_new_side_data(
frame: *mut AVFrame,
type_: AVFrameSideDataType,
size: libc::c_int,
) -> *mut AVFrameSideData;
}
extern "C" {
pub fn av_frame_new_side_data_from_buf(
frame: *mut AVFrame,
type_: AVFrameSideDataType,
buf: *mut AVBufferRef,
) -> *mut AVFrameSideData;
}
extern "C" {
pub fn av_frame_get_side_data(
frame: *const AVFrame,
type_: AVFrameSideDataType,
) -> *mut AVFrameSideData;
}
extern "C" {
pub fn av_frame_remove_side_data(frame: *mut AVFrame, type_: AVFrameSideDataType);
}
pub const AV_FRAME_CROP_UNALIGNED: _bindgen_ty_2 = _bindgen_ty_2::AV_FRAME_CROP_UNALIGNED;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _bindgen_ty_2 {
AV_FRAME_CROP_UNALIGNED = 1,
}
extern "C" {
pub fn av_frame_apply_cropping(frame: *mut AVFrame, flags: libc::c_int) -> libc::c_int;
}
extern "C" {
pub fn av_frame_side_data_name(type_: AVFrameSideDataType) -> *const libc::c_char;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVHWDeviceType {
AV_HWDEVICE_TYPE_NONE = 0,
AV_HWDEVICE_TYPE_VDPAU = 1,
AV_HWDEVICE_TYPE_CUDA = 2,
AV_HWDEVICE_TYPE_VAAPI = 3,
AV_HWDEVICE_TYPE_DXVA2 = 4,
AV_HWDEVICE_TYPE_QSV = 5,
AV_HWDEVICE_TYPE_VIDEOTOOLBOX = 6,
AV_HWDEVICE_TYPE_D3D11VA = 7,
AV_HWDEVICE_TYPE_DRM = 8,
AV_HWDEVICE_TYPE_OPENCL = 9,
AV_HWDEVICE_TYPE_MEDIACODEC = 10,
AV_HWDEVICE_TYPE_VULKAN = 11,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVHWDeviceInternal {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVHWDeviceContext {
pub av_class: *const AVClass,
pub internal: *mut AVHWDeviceInternal,
pub type_: AVHWDeviceType,
pub hwctx: *mut libc::c_void,
pub free: ::std::option::Option<unsafe extern "C" fn(ctx: *mut AVHWDeviceContext)>,
pub user_opaque: *mut libc::c_void,
}
#[test]
fn bindgen_test_layout_AVHWDeviceContext() {
const UNINIT: ::std::mem::MaybeUninit<AVHWDeviceContext> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVHWDeviceContext>(),
48usize,
concat!("Size of: ", stringify!(AVHWDeviceContext))
);
assert_eq!(
::std::mem::align_of::<AVHWDeviceContext>(),
8usize,
concat!("Alignment of ", stringify!(AVHWDeviceContext))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).av_class) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVHWDeviceContext),
"::",
stringify!(av_class)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).internal) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVHWDeviceContext),
"::",
stringify!(internal)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVHWDeviceContext),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).hwctx) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVHWDeviceContext),
"::",
stringify!(hwctx)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).free) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVHWDeviceContext),
"::",
stringify!(free)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).user_opaque) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVHWDeviceContext),
"::",
stringify!(user_opaque)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVHWFramesInternal {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVHWFramesContext {
pub av_class: *const AVClass,
pub internal: *mut AVHWFramesInternal,
pub device_ref: *mut AVBufferRef,
pub device_ctx: *mut AVHWDeviceContext,
pub hwctx: *mut libc::c_void,
pub free: ::std::option::Option<unsafe extern "C" fn(ctx: *mut AVHWFramesContext)>,
pub user_opaque: *mut libc::c_void,
pub pool: *mut AVBufferPool,
pub initial_pool_size: libc::c_int,
pub format: AVPixelFormat,
pub sw_format: AVPixelFormat,
pub width: libc::c_int,
pub height: libc::c_int,
}
#[test]
fn bindgen_test_layout_AVHWFramesContext() {
const UNINIT: ::std::mem::MaybeUninit<AVHWFramesContext> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVHWFramesContext>(),
88usize,
concat!("Size of: ", stringify!(AVHWFramesContext))
);
assert_eq!(
::std::mem::align_of::<AVHWFramesContext>(),
8usize,
concat!("Alignment of ", stringify!(AVHWFramesContext))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).av_class) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVHWFramesContext),
"::",
stringify!(av_class)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).internal) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVHWFramesContext),
"::",
stringify!(internal)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).device_ref) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVHWFramesContext),
"::",
stringify!(device_ref)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).device_ctx) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVHWFramesContext),
"::",
stringify!(device_ctx)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).hwctx) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVHWFramesContext),
"::",
stringify!(hwctx)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).free) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVHWFramesContext),
"::",
stringify!(free)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).user_opaque) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVHWFramesContext),
"::",
stringify!(user_opaque)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pool) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVHWFramesContext),
"::",
stringify!(pool)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).initial_pool_size) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(AVHWFramesContext),
"::",
stringify!(initial_pool_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).format) as usize - ptr as usize },
68usize,
concat!(
"Offset of field: ",
stringify!(AVHWFramesContext),
"::",
stringify!(format)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sw_format) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(AVHWFramesContext),
"::",
stringify!(sw_format)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize },
76usize,
concat!(
"Offset of field: ",
stringify!(AVHWFramesContext),
"::",
stringify!(width)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).height) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(AVHWFramesContext),
"::",
stringify!(height)
)
);
}
extern "C" {
pub fn av_hwdevice_find_type_by_name(name: *const libc::c_char) -> AVHWDeviceType;
}
extern "C" {
pub fn av_hwdevice_get_type_name(type_: AVHWDeviceType) -> *const libc::c_char;
}
extern "C" {
pub fn av_hwdevice_iterate_types(prev: AVHWDeviceType) -> AVHWDeviceType;
}
extern "C" {
pub fn av_hwdevice_ctx_alloc(type_: AVHWDeviceType) -> *mut AVBufferRef;
}
extern "C" {
pub fn av_hwdevice_ctx_init(ref_: *mut AVBufferRef) -> libc::c_int;
}
extern "C" {
pub fn av_hwdevice_ctx_create(
device_ctx: *mut *mut AVBufferRef,
type_: AVHWDeviceType,
device: *const libc::c_char,
opts: *mut AVDictionary,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_hwdevice_ctx_create_derived(
dst_ctx: *mut *mut AVBufferRef,
type_: AVHWDeviceType,
src_ctx: *mut AVBufferRef,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_hwdevice_ctx_create_derived_opts(
dst_ctx: *mut *mut AVBufferRef,
type_: AVHWDeviceType,
src_ctx: *mut AVBufferRef,
options: *mut AVDictionary,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_hwframe_ctx_alloc(device_ctx: *mut AVBufferRef) -> *mut AVBufferRef;
}
extern "C" {
pub fn av_hwframe_ctx_init(ref_: *mut AVBufferRef) -> libc::c_int;
}
extern "C" {
pub fn av_hwframe_get_buffer(
hwframe_ctx: *mut AVBufferRef,
frame: *mut AVFrame,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_hwframe_transfer_data(
dst: *mut AVFrame,
src: *const AVFrame,
flags: libc::c_int,
) -> libc::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVHWFrameTransferDirection {
AV_HWFRAME_TRANSFER_DIRECTION_FROM = 0,
AV_HWFRAME_TRANSFER_DIRECTION_TO = 1,
}
extern "C" {
pub fn av_hwframe_transfer_get_formats(
hwframe_ctx: *mut AVBufferRef,
dir: AVHWFrameTransferDirection,
formats: *mut *mut AVPixelFormat,
flags: libc::c_int,
) -> libc::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVHWFramesConstraints {
pub valid_hw_formats: *mut AVPixelFormat,
pub valid_sw_formats: *mut AVPixelFormat,
pub min_width: libc::c_int,
pub min_height: libc::c_int,
pub max_width: libc::c_int,
pub max_height: libc::c_int,
}
#[test]
fn bindgen_test_layout_AVHWFramesConstraints() {
const UNINIT: ::std::mem::MaybeUninit<AVHWFramesConstraints> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVHWFramesConstraints>(),
32usize,
concat!("Size of: ", stringify!(AVHWFramesConstraints))
);
assert_eq!(
::std::mem::align_of::<AVHWFramesConstraints>(),
8usize,
concat!("Alignment of ", stringify!(AVHWFramesConstraints))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).valid_hw_formats) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVHWFramesConstraints),
"::",
stringify!(valid_hw_formats)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).valid_sw_formats) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVHWFramesConstraints),
"::",
stringify!(valid_sw_formats)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).min_width) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVHWFramesConstraints),
"::",
stringify!(min_width)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).min_height) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(AVHWFramesConstraints),
"::",
stringify!(min_height)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_width) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVHWFramesConstraints),
"::",
stringify!(max_width)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_height) as usize - ptr as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(AVHWFramesConstraints),
"::",
stringify!(max_height)
)
);
}
extern "C" {
pub fn av_hwdevice_hwconfig_alloc(device_ctx: *mut AVBufferRef) -> *mut libc::c_void;
}
extern "C" {
pub fn av_hwdevice_get_hwframe_constraints(
ref_: *mut AVBufferRef,
hwconfig: *const libc::c_void,
) -> *mut AVHWFramesConstraints;
}
extern "C" {
pub fn av_hwframe_constraints_free(constraints: *mut *mut AVHWFramesConstraints);
}
pub const AV_HWFRAME_MAP_READ: _bindgen_ty_3 = _bindgen_ty_3::AV_HWFRAME_MAP_READ;
pub const AV_HWFRAME_MAP_WRITE: _bindgen_ty_3 = _bindgen_ty_3::AV_HWFRAME_MAP_WRITE;
pub const AV_HWFRAME_MAP_OVERWRITE: _bindgen_ty_3 = _bindgen_ty_3::AV_HWFRAME_MAP_OVERWRITE;
pub const AV_HWFRAME_MAP_DIRECT: _bindgen_ty_3 = _bindgen_ty_3::AV_HWFRAME_MAP_DIRECT;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _bindgen_ty_3 {
AV_HWFRAME_MAP_READ = 1,
AV_HWFRAME_MAP_WRITE = 2,
AV_HWFRAME_MAP_OVERWRITE = 4,
AV_HWFRAME_MAP_DIRECT = 8,
}
extern "C" {
pub fn av_hwframe_map(
dst: *mut AVFrame,
src: *const AVFrame,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_hwframe_ctx_create_derived(
derived_frame_ctx: *mut *mut AVBufferRef,
format: AVPixelFormat,
derived_device_ctx: *mut AVBufferRef,
source_frame_ctx: *mut AVBufferRef,
flags: libc::c_int,
) -> libc::c_int;
}
impl AVCodecID {
pub const AV_CODEC_ID_FIRST_AUDIO: AVCodecID = AVCodecID::AV_CODEC_ID_PCM_S16LE;
}
impl AVCodecID {
pub const AV_CODEC_ID_FIRST_SUBTITLE: AVCodecID = AVCodecID::AV_CODEC_ID_DVD_SUBTITLE;
}
impl AVCodecID {
pub const AV_CODEC_ID_FIRST_UNKNOWN: AVCodecID = AVCodecID::AV_CODEC_ID_TTF;
}
#[repr(u32)]
#[doc = " Identify the syntax and semantics of the bitstream.\n The principle is roughly:\n Two decoders with the same ID can decode the same streams.\n Two encoders with the same ID can encode compatible streams.\n There may be slight deviations from the principle due to implementation\n details.\n\n If you add a codec ID to this list, add it so that\n 1. no value of an existing codec ID changes (that would break ABI),\n 2. it is as close as possible to similar codecs\n\n After adding new codec IDs, do not forget to add an entry to the codec\n descriptor list and bump libavcodec minor version."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVCodecID {
AV_CODEC_ID_NONE = 0,
AV_CODEC_ID_MPEG1VIDEO = 1,
#[doc = "< preferred ID for MPEG-1/2 video decoding"]
AV_CODEC_ID_MPEG2VIDEO = 2,
AV_CODEC_ID_H261 = 3,
AV_CODEC_ID_H263 = 4,
AV_CODEC_ID_RV10 = 5,
AV_CODEC_ID_RV20 = 6,
AV_CODEC_ID_MJPEG = 7,
AV_CODEC_ID_MJPEGB = 8,
AV_CODEC_ID_LJPEG = 9,
AV_CODEC_ID_SP5X = 10,
AV_CODEC_ID_JPEGLS = 11,
AV_CODEC_ID_MPEG4 = 12,
AV_CODEC_ID_RAWVIDEO = 13,
AV_CODEC_ID_MSMPEG4V1 = 14,
AV_CODEC_ID_MSMPEG4V2 = 15,
AV_CODEC_ID_MSMPEG4V3 = 16,
AV_CODEC_ID_WMV1 = 17,
AV_CODEC_ID_WMV2 = 18,
AV_CODEC_ID_H263P = 19,
AV_CODEC_ID_H263I = 20,
AV_CODEC_ID_FLV1 = 21,
AV_CODEC_ID_SVQ1 = 22,
AV_CODEC_ID_SVQ3 = 23,
AV_CODEC_ID_DVVIDEO = 24,
AV_CODEC_ID_HUFFYUV = 25,
AV_CODEC_ID_CYUV = 26,
AV_CODEC_ID_H264 = 27,
AV_CODEC_ID_INDEO3 = 28,
AV_CODEC_ID_VP3 = 29,
AV_CODEC_ID_THEORA = 30,
AV_CODEC_ID_ASV1 = 31,
AV_CODEC_ID_ASV2 = 32,
AV_CODEC_ID_FFV1 = 33,
AV_CODEC_ID_4XM = 34,
AV_CODEC_ID_VCR1 = 35,
AV_CODEC_ID_CLJR = 36,
AV_CODEC_ID_MDEC = 37,
AV_CODEC_ID_ROQ = 38,
AV_CODEC_ID_INTERPLAY_VIDEO = 39,
AV_CODEC_ID_XAN_WC3 = 40,
AV_CODEC_ID_XAN_WC4 = 41,
AV_CODEC_ID_RPZA = 42,
AV_CODEC_ID_CINEPAK = 43,
AV_CODEC_ID_WS_VQA = 44,
AV_CODEC_ID_MSRLE = 45,
AV_CODEC_ID_MSVIDEO1 = 46,
AV_CODEC_ID_IDCIN = 47,
AV_CODEC_ID_8BPS = 48,
AV_CODEC_ID_SMC = 49,
AV_CODEC_ID_FLIC = 50,
AV_CODEC_ID_TRUEMOTION1 = 51,
AV_CODEC_ID_VMDVIDEO = 52,
AV_CODEC_ID_MSZH = 53,
AV_CODEC_ID_ZLIB = 54,
AV_CODEC_ID_QTRLE = 55,
AV_CODEC_ID_TSCC = 56,
AV_CODEC_ID_ULTI = 57,
AV_CODEC_ID_QDRAW = 58,
AV_CODEC_ID_VIXL = 59,
AV_CODEC_ID_QPEG = 60,
AV_CODEC_ID_PNG = 61,
AV_CODEC_ID_PPM = 62,
AV_CODEC_ID_PBM = 63,
AV_CODEC_ID_PGM = 64,
AV_CODEC_ID_PGMYUV = 65,
AV_CODEC_ID_PAM = 66,
AV_CODEC_ID_FFVHUFF = 67,
AV_CODEC_ID_RV30 = 68,
AV_CODEC_ID_RV40 = 69,
AV_CODEC_ID_VC1 = 70,
AV_CODEC_ID_WMV3 = 71,
AV_CODEC_ID_LOCO = 72,
AV_CODEC_ID_WNV1 = 73,
AV_CODEC_ID_AASC = 74,
AV_CODEC_ID_INDEO2 = 75,
AV_CODEC_ID_FRAPS = 76,
AV_CODEC_ID_TRUEMOTION2 = 77,
AV_CODEC_ID_BMP = 78,
AV_CODEC_ID_CSCD = 79,
AV_CODEC_ID_MMVIDEO = 80,
AV_CODEC_ID_ZMBV = 81,
AV_CODEC_ID_AVS = 82,
AV_CODEC_ID_SMACKVIDEO = 83,
AV_CODEC_ID_NUV = 84,
AV_CODEC_ID_KMVC = 85,
AV_CODEC_ID_FLASHSV = 86,
AV_CODEC_ID_CAVS = 87,
AV_CODEC_ID_JPEG2000 = 88,
AV_CODEC_ID_VMNC = 89,
AV_CODEC_ID_VP5 = 90,
AV_CODEC_ID_VP6 = 91,
AV_CODEC_ID_VP6F = 92,
AV_CODEC_ID_TARGA = 93,
AV_CODEC_ID_DSICINVIDEO = 94,
AV_CODEC_ID_TIERTEXSEQVIDEO = 95,
AV_CODEC_ID_TIFF = 96,
AV_CODEC_ID_GIF = 97,
AV_CODEC_ID_DXA = 98,
AV_CODEC_ID_DNXHD = 99,
AV_CODEC_ID_THP = 100,
AV_CODEC_ID_SGI = 101,
AV_CODEC_ID_C93 = 102,
AV_CODEC_ID_BETHSOFTVID = 103,
AV_CODEC_ID_PTX = 104,
AV_CODEC_ID_TXD = 105,
AV_CODEC_ID_VP6A = 106,
AV_CODEC_ID_AMV = 107,
AV_CODEC_ID_VB = 108,
AV_CODEC_ID_PCX = 109,
AV_CODEC_ID_SUNRAST = 110,
AV_CODEC_ID_INDEO4 = 111,
AV_CODEC_ID_INDEO5 = 112,
AV_CODEC_ID_MIMIC = 113,
AV_CODEC_ID_RL2 = 114,
AV_CODEC_ID_ESCAPE124 = 115,
AV_CODEC_ID_DIRAC = 116,
AV_CODEC_ID_BFI = 117,
AV_CODEC_ID_CMV = 118,
AV_CODEC_ID_MOTIONPIXELS = 119,
AV_CODEC_ID_TGV = 120,
AV_CODEC_ID_TGQ = 121,
AV_CODEC_ID_TQI = 122,
AV_CODEC_ID_AURA = 123,
AV_CODEC_ID_AURA2 = 124,
AV_CODEC_ID_V210X = 125,
AV_CODEC_ID_TMV = 126,
AV_CODEC_ID_V210 = 127,
AV_CODEC_ID_DPX = 128,
AV_CODEC_ID_MAD = 129,
AV_CODEC_ID_FRWU = 130,
AV_CODEC_ID_FLASHSV2 = 131,
AV_CODEC_ID_CDGRAPHICS = 132,
AV_CODEC_ID_R210 = 133,
AV_CODEC_ID_ANM = 134,
AV_CODEC_ID_BINKVIDEO = 135,
AV_CODEC_ID_IFF_ILBM = 136,
AV_CODEC_ID_KGV1 = 137,
AV_CODEC_ID_YOP = 138,
AV_CODEC_ID_VP8 = 139,
AV_CODEC_ID_PICTOR = 140,
AV_CODEC_ID_ANSI = 141,
AV_CODEC_ID_A64_MULTI = 142,
AV_CODEC_ID_A64_MULTI5 = 143,
AV_CODEC_ID_R10K = 144,
AV_CODEC_ID_MXPEG = 145,
AV_CODEC_ID_LAGARITH = 146,
AV_CODEC_ID_PRORES = 147,
AV_CODEC_ID_JV = 148,
AV_CODEC_ID_DFA = 149,
AV_CODEC_ID_WMV3IMAGE = 150,
AV_CODEC_ID_VC1IMAGE = 151,
AV_CODEC_ID_UTVIDEO = 152,
AV_CODEC_ID_BMV_VIDEO = 153,
AV_CODEC_ID_VBLE = 154,
AV_CODEC_ID_DXTORY = 155,
AV_CODEC_ID_V410 = 156,
AV_CODEC_ID_XWD = 157,
AV_CODEC_ID_CDXL = 158,
AV_CODEC_ID_XBM = 159,
AV_CODEC_ID_ZEROCODEC = 160,
AV_CODEC_ID_MSS1 = 161,
AV_CODEC_ID_MSA1 = 162,
AV_CODEC_ID_TSCC2 = 163,
AV_CODEC_ID_MTS2 = 164,
AV_CODEC_ID_CLLC = 165,
AV_CODEC_ID_MSS2 = 166,
AV_CODEC_ID_VP9 = 167,
AV_CODEC_ID_AIC = 168,
AV_CODEC_ID_ESCAPE130 = 169,
AV_CODEC_ID_G2M = 170,
AV_CODEC_ID_WEBP = 171,
AV_CODEC_ID_HNM4_VIDEO = 172,
AV_CODEC_ID_HEVC = 173,
AV_CODEC_ID_FIC = 174,
AV_CODEC_ID_ALIAS_PIX = 175,
AV_CODEC_ID_BRENDER_PIX = 176,
AV_CODEC_ID_PAF_VIDEO = 177,
AV_CODEC_ID_EXR = 178,
AV_CODEC_ID_VP7 = 179,
AV_CODEC_ID_SANM = 180,
AV_CODEC_ID_SGIRLE = 181,
AV_CODEC_ID_MVC1 = 182,
AV_CODEC_ID_MVC2 = 183,
AV_CODEC_ID_HQX = 184,
AV_CODEC_ID_TDSC = 185,
AV_CODEC_ID_HQ_HQA = 186,
AV_CODEC_ID_HAP = 187,
AV_CODEC_ID_DDS = 188,
AV_CODEC_ID_DXV = 189,
AV_CODEC_ID_SCREENPRESSO = 190,
AV_CODEC_ID_RSCC = 191,
AV_CODEC_ID_AVS2 = 192,
AV_CODEC_ID_PGX = 193,
AV_CODEC_ID_AVS3 = 194,
AV_CODEC_ID_MSP2 = 195,
AV_CODEC_ID_VVC = 196,
AV_CODEC_ID_Y41P = 32768,
AV_CODEC_ID_AVRP = 32769,
AV_CODEC_ID_012V = 32770,
AV_CODEC_ID_AVUI = 32771,
AV_CODEC_ID_AYUV = 32772,
AV_CODEC_ID_TARGA_Y216 = 32773,
AV_CODEC_ID_V308 = 32774,
AV_CODEC_ID_V408 = 32775,
AV_CODEC_ID_YUV4 = 32776,
AV_CODEC_ID_AVRN = 32777,
AV_CODEC_ID_CPIA = 32778,
AV_CODEC_ID_XFACE = 32779,
AV_CODEC_ID_SNOW = 32780,
AV_CODEC_ID_SMVJPEG = 32781,
AV_CODEC_ID_APNG = 32782,
AV_CODEC_ID_DAALA = 32783,
AV_CODEC_ID_CFHD = 32784,
AV_CODEC_ID_TRUEMOTION2RT = 32785,
AV_CODEC_ID_M101 = 32786,
AV_CODEC_ID_MAGICYUV = 32787,
AV_CODEC_ID_SHEERVIDEO = 32788,
AV_CODEC_ID_YLC = 32789,
AV_CODEC_ID_PSD = 32790,
AV_CODEC_ID_PIXLET = 32791,
AV_CODEC_ID_SPEEDHQ = 32792,
AV_CODEC_ID_FMVC = 32793,
AV_CODEC_ID_SCPR = 32794,
AV_CODEC_ID_CLEARVIDEO = 32795,
AV_CODEC_ID_XPM = 32796,
AV_CODEC_ID_AV1 = 32797,
AV_CODEC_ID_BITPACKED = 32798,
AV_CODEC_ID_MSCC = 32799,
AV_CODEC_ID_SRGC = 32800,
AV_CODEC_ID_SVG = 32801,
AV_CODEC_ID_GDV = 32802,
AV_CODEC_ID_FITS = 32803,
AV_CODEC_ID_IMM4 = 32804,
AV_CODEC_ID_PROSUMER = 32805,
AV_CODEC_ID_MWSC = 32806,
AV_CODEC_ID_WCMV = 32807,
AV_CODEC_ID_RASC = 32808,
AV_CODEC_ID_HYMT = 32809,
AV_CODEC_ID_ARBC = 32810,
AV_CODEC_ID_AGM = 32811,
AV_CODEC_ID_LSCR = 32812,
AV_CODEC_ID_VP4 = 32813,
AV_CODEC_ID_IMM5 = 32814,
AV_CODEC_ID_MVDV = 32815,
AV_CODEC_ID_MVHA = 32816,
AV_CODEC_ID_CDTOONS = 32817,
AV_CODEC_ID_MV30 = 32818,
AV_CODEC_ID_NOTCHLC = 32819,
AV_CODEC_ID_PFM = 32820,
AV_CODEC_ID_MOBICLIP = 32821,
AV_CODEC_ID_PHOTOCD = 32822,
AV_CODEC_ID_IPU = 32823,
AV_CODEC_ID_ARGO = 32824,
AV_CODEC_ID_CRI = 32825,
AV_CODEC_ID_SIMBIOSIS_IMX = 32826,
AV_CODEC_ID_SGA_VIDEO = 32827,
AV_CODEC_ID_PCM_S16LE = 65536,
AV_CODEC_ID_PCM_S16BE = 65537,
AV_CODEC_ID_PCM_U16LE = 65538,
AV_CODEC_ID_PCM_U16BE = 65539,
AV_CODEC_ID_PCM_S8 = 65540,
AV_CODEC_ID_PCM_U8 = 65541,
AV_CODEC_ID_PCM_MULAW = 65542,
AV_CODEC_ID_PCM_ALAW = 65543,
AV_CODEC_ID_PCM_S32LE = 65544,
AV_CODEC_ID_PCM_S32BE = 65545,
AV_CODEC_ID_PCM_U32LE = 65546,
AV_CODEC_ID_PCM_U32BE = 65547,
AV_CODEC_ID_PCM_S24LE = 65548,
AV_CODEC_ID_PCM_S24BE = 65549,
AV_CODEC_ID_PCM_U24LE = 65550,
AV_CODEC_ID_PCM_U24BE = 65551,
AV_CODEC_ID_PCM_S24DAUD = 65552,
AV_CODEC_ID_PCM_ZORK = 65553,
AV_CODEC_ID_PCM_S16LE_PLANAR = 65554,
AV_CODEC_ID_PCM_DVD = 65555,
AV_CODEC_ID_PCM_F32BE = 65556,
AV_CODEC_ID_PCM_F32LE = 65557,
AV_CODEC_ID_PCM_F64BE = 65558,
AV_CODEC_ID_PCM_F64LE = 65559,
AV_CODEC_ID_PCM_BLURAY = 65560,
AV_CODEC_ID_PCM_LXF = 65561,
AV_CODEC_ID_S302M = 65562,
AV_CODEC_ID_PCM_S8_PLANAR = 65563,
AV_CODEC_ID_PCM_S24LE_PLANAR = 65564,
AV_CODEC_ID_PCM_S32LE_PLANAR = 65565,
AV_CODEC_ID_PCM_S16BE_PLANAR = 65566,
AV_CODEC_ID_PCM_S64LE = 67584,
AV_CODEC_ID_PCM_S64BE = 67585,
AV_CODEC_ID_PCM_F16LE = 67586,
AV_CODEC_ID_PCM_F24LE = 67587,
AV_CODEC_ID_PCM_VIDC = 67588,
AV_CODEC_ID_PCM_SGA = 67589,
AV_CODEC_ID_ADPCM_IMA_QT = 69632,
AV_CODEC_ID_ADPCM_IMA_WAV = 69633,
AV_CODEC_ID_ADPCM_IMA_DK3 = 69634,
AV_CODEC_ID_ADPCM_IMA_DK4 = 69635,
AV_CODEC_ID_ADPCM_IMA_WS = 69636,
AV_CODEC_ID_ADPCM_IMA_SMJPEG = 69637,
AV_CODEC_ID_ADPCM_MS = 69638,
AV_CODEC_ID_ADPCM_4XM = 69639,
AV_CODEC_ID_ADPCM_XA = 69640,
AV_CODEC_ID_ADPCM_ADX = 69641,
AV_CODEC_ID_ADPCM_EA = 69642,
AV_CODEC_ID_ADPCM_G726 = 69643,
AV_CODEC_ID_ADPCM_CT = 69644,
AV_CODEC_ID_ADPCM_SWF = 69645,
AV_CODEC_ID_ADPCM_YAMAHA = 69646,
AV_CODEC_ID_ADPCM_SBPRO_4 = 69647,
AV_CODEC_ID_ADPCM_SBPRO_3 = 69648,
AV_CODEC_ID_ADPCM_SBPRO_2 = 69649,
AV_CODEC_ID_ADPCM_THP = 69650,
AV_CODEC_ID_ADPCM_IMA_AMV = 69651,
AV_CODEC_ID_ADPCM_EA_R1 = 69652,
AV_CODEC_ID_ADPCM_EA_R3 = 69653,
AV_CODEC_ID_ADPCM_EA_R2 = 69654,
AV_CODEC_ID_ADPCM_IMA_EA_SEAD = 69655,
AV_CODEC_ID_ADPCM_IMA_EA_EACS = 69656,
AV_CODEC_ID_ADPCM_EA_XAS = 69657,
AV_CODEC_ID_ADPCM_EA_MAXIS_XA = 69658,
AV_CODEC_ID_ADPCM_IMA_ISS = 69659,
AV_CODEC_ID_ADPCM_G722 = 69660,
AV_CODEC_ID_ADPCM_IMA_APC = 69661,
AV_CODEC_ID_ADPCM_VIMA = 69662,
AV_CODEC_ID_ADPCM_AFC = 71680,
AV_CODEC_ID_ADPCM_IMA_OKI = 71681,
AV_CODEC_ID_ADPCM_DTK = 71682,
AV_CODEC_ID_ADPCM_IMA_RAD = 71683,
AV_CODEC_ID_ADPCM_G726LE = 71684,
AV_CODEC_ID_ADPCM_THP_LE = 71685,
AV_CODEC_ID_ADPCM_PSX = 71686,
AV_CODEC_ID_ADPCM_AICA = 71687,
AV_CODEC_ID_ADPCM_IMA_DAT4 = 71688,
AV_CODEC_ID_ADPCM_MTAF = 71689,
AV_CODEC_ID_ADPCM_AGM = 71690,
AV_CODEC_ID_ADPCM_ARGO = 71691,
AV_CODEC_ID_ADPCM_IMA_SSI = 71692,
AV_CODEC_ID_ADPCM_ZORK = 71693,
AV_CODEC_ID_ADPCM_IMA_APM = 71694,
AV_CODEC_ID_ADPCM_IMA_ALP = 71695,
AV_CODEC_ID_ADPCM_IMA_MTF = 71696,
AV_CODEC_ID_ADPCM_IMA_CUNNING = 71697,
AV_CODEC_ID_ADPCM_IMA_MOFLEX = 71698,
AV_CODEC_ID_AMR_NB = 73728,
AV_CODEC_ID_AMR_WB = 73729,
AV_CODEC_ID_RA_144 = 77824,
AV_CODEC_ID_RA_288 = 77825,
AV_CODEC_ID_ROQ_DPCM = 81920,
AV_CODEC_ID_INTERPLAY_DPCM = 81921,
AV_CODEC_ID_XAN_DPCM = 81922,
AV_CODEC_ID_SOL_DPCM = 81923,
AV_CODEC_ID_SDX2_DPCM = 83968,
AV_CODEC_ID_GREMLIN_DPCM = 83969,
AV_CODEC_ID_DERF_DPCM = 83970,
AV_CODEC_ID_MP2 = 86016,
#[doc = "< preferred ID for decoding MPEG audio layer 1, 2 or 3"]
AV_CODEC_ID_MP3 = 86017,
AV_CODEC_ID_AAC = 86018,
AV_CODEC_ID_AC3 = 86019,
AV_CODEC_ID_DTS = 86020,
AV_CODEC_ID_VORBIS = 86021,
AV_CODEC_ID_DVAUDIO = 86022,
AV_CODEC_ID_WMAV1 = 86023,
AV_CODEC_ID_WMAV2 = 86024,
AV_CODEC_ID_MACE3 = 86025,
AV_CODEC_ID_MACE6 = 86026,
AV_CODEC_ID_VMDAUDIO = 86027,
AV_CODEC_ID_FLAC = 86028,
AV_CODEC_ID_MP3ADU = 86029,
AV_CODEC_ID_MP3ON4 = 86030,
AV_CODEC_ID_SHORTEN = 86031,
AV_CODEC_ID_ALAC = 86032,
AV_CODEC_ID_WESTWOOD_SND1 = 86033,
#[doc = "< as in Berlin toast format"]
AV_CODEC_ID_GSM = 86034,
AV_CODEC_ID_QDM2 = 86035,
AV_CODEC_ID_COOK = 86036,
AV_CODEC_ID_TRUESPEECH = 86037,
AV_CODEC_ID_TTA = 86038,
AV_CODEC_ID_SMACKAUDIO = 86039,
AV_CODEC_ID_QCELP = 86040,
AV_CODEC_ID_WAVPACK = 86041,
AV_CODEC_ID_DSICINAUDIO = 86042,
AV_CODEC_ID_IMC = 86043,
AV_CODEC_ID_MUSEPACK7 = 86044,
AV_CODEC_ID_MLP = 86045,
AV_CODEC_ID_GSM_MS = 86046,
AV_CODEC_ID_ATRAC3 = 86047,
AV_CODEC_ID_APE = 86048,
AV_CODEC_ID_NELLYMOSER = 86049,
AV_CODEC_ID_MUSEPACK8 = 86050,
AV_CODEC_ID_SPEEX = 86051,
AV_CODEC_ID_WMAVOICE = 86052,
AV_CODEC_ID_WMAPRO = 86053,
AV_CODEC_ID_WMALOSSLESS = 86054,
AV_CODEC_ID_ATRAC3P = 86055,
AV_CODEC_ID_EAC3 = 86056,
AV_CODEC_ID_SIPR = 86057,
AV_CODEC_ID_MP1 = 86058,
AV_CODEC_ID_TWINVQ = 86059,
AV_CODEC_ID_TRUEHD = 86060,
AV_CODEC_ID_MP4ALS = 86061,
AV_CODEC_ID_ATRAC1 = 86062,
AV_CODEC_ID_BINKAUDIO_RDFT = 86063,
AV_CODEC_ID_BINKAUDIO_DCT = 86064,
AV_CODEC_ID_AAC_LATM = 86065,
AV_CODEC_ID_QDMC = 86066,
AV_CODEC_ID_CELT = 86067,
AV_CODEC_ID_G723_1 = 86068,
AV_CODEC_ID_G729 = 86069,
AV_CODEC_ID_8SVX_EXP = 86070,
AV_CODEC_ID_8SVX_FIB = 86071,
AV_CODEC_ID_BMV_AUDIO = 86072,
AV_CODEC_ID_RALF = 86073,
AV_CODEC_ID_IAC = 86074,
AV_CODEC_ID_ILBC = 86075,
AV_CODEC_ID_OPUS = 86076,
AV_CODEC_ID_COMFORT_NOISE = 86077,
AV_CODEC_ID_TAK = 86078,
AV_CODEC_ID_METASOUND = 86079,
AV_CODEC_ID_PAF_AUDIO = 86080,
AV_CODEC_ID_ON2AVC = 86081,
AV_CODEC_ID_DSS_SP = 86082,
AV_CODEC_ID_CODEC2 = 86083,
AV_CODEC_ID_FFWAVESYNTH = 88064,
AV_CODEC_ID_SONIC = 88065,
AV_CODEC_ID_SONIC_LS = 88066,
AV_CODEC_ID_EVRC = 88067,
AV_CODEC_ID_SMV = 88068,
AV_CODEC_ID_DSD_LSBF = 88069,
AV_CODEC_ID_DSD_MSBF = 88070,
AV_CODEC_ID_DSD_LSBF_PLANAR = 88071,
AV_CODEC_ID_DSD_MSBF_PLANAR = 88072,
AV_CODEC_ID_4GV = 88073,
AV_CODEC_ID_INTERPLAY_ACM = 88074,
AV_CODEC_ID_XMA1 = 88075,
AV_CODEC_ID_XMA2 = 88076,
AV_CODEC_ID_DST = 88077,
AV_CODEC_ID_ATRAC3AL = 88078,
AV_CODEC_ID_ATRAC3PAL = 88079,
AV_CODEC_ID_DOLBY_E = 88080,
AV_CODEC_ID_APTX = 88081,
AV_CODEC_ID_APTX_HD = 88082,
AV_CODEC_ID_SBC = 88083,
AV_CODEC_ID_ATRAC9 = 88084,
AV_CODEC_ID_HCOM = 88085,
AV_CODEC_ID_ACELP_KELVIN = 88086,
AV_CODEC_ID_MPEGH_3D_AUDIO = 88087,
AV_CODEC_ID_SIREN = 88088,
AV_CODEC_ID_HCA = 88089,
AV_CODEC_ID_FASTAUDIO = 88090,
AV_CODEC_ID_DVD_SUBTITLE = 94208,
AV_CODEC_ID_DVB_SUBTITLE = 94209,
#[doc = "< raw UTF-8 text"]
AV_CODEC_ID_TEXT = 94210,
AV_CODEC_ID_XSUB = 94211,
AV_CODEC_ID_SSA = 94212,
AV_CODEC_ID_MOV_TEXT = 94213,
AV_CODEC_ID_HDMV_PGS_SUBTITLE = 94214,
AV_CODEC_ID_DVB_TELETEXT = 94215,
AV_CODEC_ID_SRT = 94216,
AV_CODEC_ID_MICRODVD = 96256,
AV_CODEC_ID_EIA_608 = 96257,
AV_CODEC_ID_JACOSUB = 96258,
AV_CODEC_ID_SAMI = 96259,
AV_CODEC_ID_REALTEXT = 96260,
AV_CODEC_ID_STL = 96261,
AV_CODEC_ID_SUBVIEWER1 = 96262,
AV_CODEC_ID_SUBVIEWER = 96263,
AV_CODEC_ID_SUBRIP = 96264,
AV_CODEC_ID_WEBVTT = 96265,
AV_CODEC_ID_MPL2 = 96266,
AV_CODEC_ID_VPLAYER = 96267,
AV_CODEC_ID_PJS = 96268,
AV_CODEC_ID_ASS = 96269,
AV_CODEC_ID_HDMV_TEXT_SUBTITLE = 96270,
AV_CODEC_ID_TTML = 96271,
AV_CODEC_ID_ARIB_CAPTION = 96272,
AV_CODEC_ID_TTF = 98304,
#[doc = "< Contain timestamp estimated through PCR of program stream."]
AV_CODEC_ID_SCTE_35 = 98305,
AV_CODEC_ID_EPG = 98306,
AV_CODEC_ID_BINTEXT = 100352,
AV_CODEC_ID_XBIN = 100353,
AV_CODEC_ID_IDF = 100354,
AV_CODEC_ID_OTF = 100355,
AV_CODEC_ID_SMPTE_KLV = 100356,
AV_CODEC_ID_DVD_NAV = 100357,
AV_CODEC_ID_TIMED_ID3 = 100358,
AV_CODEC_ID_BIN_DATA = 100359,
#[doc = "< codec_id is not known (like AV_CODEC_ID_NONE) but lavf should attempt to identify it"]
AV_CODEC_ID_PROBE = 102400,
#[doc = "< _FAKE_ codec to indicate a raw MPEG-2 TS\n stream (only used by libavformat)"]
AV_CODEC_ID_MPEG2TS = 131072,
#[doc = "< _FAKE_ codec to indicate a MPEG-4 Systems\n stream (only used by libavformat)"]
AV_CODEC_ID_MPEG4SYSTEMS = 131073,
#[doc = "< Dummy codec for streams containing only metadata information."]
AV_CODEC_ID_FFMETADATA = 135168,
#[doc = "< Passthrough codec, AVFrames wrapped in AVPacket"]
AV_CODEC_ID_WRAPPED_AVFRAME = 135169,
}
extern "C" {
#[doc = " Get the type of the given codec."]
pub fn avcodec_get_type(codec_id: AVCodecID) -> AVMediaType;
}
extern "C" {
#[doc = " Get the name of a codec.\n @return a static string identifying the codec; never NULL"]
pub fn avcodec_get_name(id: AVCodecID) -> *const libc::c_char;
}
#[repr(u32)]
#[doc = " @addtogroup lavc_core"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVFieldOrder {
AV_FIELD_UNKNOWN = 0,
AV_FIELD_PROGRESSIVE = 1,
AV_FIELD_TT = 2,
AV_FIELD_BB = 3,
AV_FIELD_TB = 4,
AV_FIELD_BT = 5,
}
#[doc = " This struct describes the properties of an encoded stream.\n\n sizeof(AVCodecParameters) is not a part of the public ABI, this struct must\n be allocated with avcodec_parameters_alloc() and freed with\n avcodec_parameters_free()."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVCodecParameters {
#[doc = " General type of the encoded data."]
pub codec_type: AVMediaType,
#[doc = " Specific type of the encoded data (the codec used)."]
pub codec_id: AVCodecID,
#[doc = " Additional information about the codec (corresponds to the AVI FOURCC)."]
pub codec_tag: u32,
#[doc = " Extra binary data needed for initializing the decoder, codec-dependent.\n\n Must be allocated with av_malloc() and will be freed by\n avcodec_parameters_free(). The allocated size of extradata must be at\n least extradata_size + AV_INPUT_BUFFER_PADDING_SIZE, with the padding\n bytes zeroed."]
pub extradata: *mut u8,
#[doc = " Size of the extradata content in bytes."]
pub extradata_size: libc::c_int,
#[doc = " - video: the pixel format, the value corresponds to enum AVPixelFormat.\n - audio: the sample format, the value corresponds to enum AVSampleFormat."]
pub format: libc::c_int,
#[doc = " The average bitrate of the encoded data (in bits per second)."]
pub bit_rate: i64,
#[doc = " The number of bits per sample in the codedwords.\n\n This is basically the bitrate per sample. It is mandatory for a bunch of\n formats to actually decode them. It's the number of bits for one sample in\n the actual coded bitstream.\n\n This could be for example 4 for ADPCM\n For PCM formats this matches bits_per_raw_sample\n Can be 0"]
pub bits_per_coded_sample: libc::c_int,
#[doc = " This is the number of valid bits in each output sample. If the\n sample format has more bits, the least significant bits are additional\n padding bits, which are always 0. Use right shifts to reduce the sample\n to its actual size. For example, audio formats with 24 bit samples will\n have bits_per_raw_sample set to 24, and format set to AV_SAMPLE_FMT_S32.\n To get the original sample use \"(int32_t)sample >> 8\".\"\n\n For ADPCM this might be 12 or 16 or similar\n Can be 0"]
pub bits_per_raw_sample: libc::c_int,
#[doc = " Codec-specific bitstream restrictions that the stream conforms to."]
pub profile: libc::c_int,
pub level: libc::c_int,
#[doc = " Video only. The dimensions of the video frame in pixels."]
pub width: libc::c_int,
pub height: libc::c_int,
#[doc = " Video only. The aspect ratio (width / height) which a single pixel\n should have when displayed.\n\n When the aspect ratio is unknown / undefined, the numerator should be\n set to 0 (the denominator may have any value)."]
pub sample_aspect_ratio: AVRational,
#[doc = " Video only. The order of the fields in interlaced video."]
pub field_order: AVFieldOrder,
#[doc = " Video only. Additional colorspace characteristics."]
pub color_range: AVColorRange,
pub color_primaries: AVColorPrimaries,
pub color_trc: AVColorTransferCharacteristic,
pub color_space: AVColorSpace,
pub chroma_location: AVChromaLocation,
#[doc = " Video only. Number of delayed frames."]
pub video_delay: libc::c_int,
#[doc = " Audio only. The channel layout bitmask. May be 0 if the channel layout is\n unknown or unspecified, otherwise the number of bits set must be equal to\n the channels field."]
pub channel_layout: u64,
#[doc = " Audio only. The number of audio channels."]
pub channels: libc::c_int,
#[doc = " Audio only. The number of audio samples per second."]
pub sample_rate: libc::c_int,
#[doc = " Audio only. The number of bytes per coded audio frame, required by some\n formats.\n\n Corresponds to nBlockAlign in WAVEFORMATEX."]
pub block_align: libc::c_int,
#[doc = " Audio only. Audio frame size, if known. Required by some formats to be static."]
pub frame_size: libc::c_int,
#[doc = " Audio only. The amount of padding (in samples) inserted by the encoder at\n the beginning of the audio. I.e. this number of leading decoded samples\n must be discarded by the caller to get the original audio without leading\n padding."]
pub initial_padding: libc::c_int,
#[doc = " Audio only. The amount of padding (in samples) appended by the encoder to\n the end of the audio. I.e. this number of decoded samples must be\n discarded by the caller from the end of the stream to get the original\n audio without any trailing padding."]
pub trailing_padding: libc::c_int,
#[doc = " Audio only. Number of samples to skip after a discontinuity."]
pub seek_preroll: libc::c_int,
}
#[test]
fn bindgen_test_layout_AVCodecParameters() {
const UNINIT: ::std::mem::MaybeUninit<AVCodecParameters> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVCodecParameters>(),
144usize,
concat!("Size of: ", stringify!(AVCodecParameters))
);
assert_eq!(
::std::mem::align_of::<AVCodecParameters>(),
8usize,
concat!("Alignment of ", stringify!(AVCodecParameters))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).codec_type) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(codec_type)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).codec_id) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(codec_id)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).codec_tag) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(codec_tag)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).extradata) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(extradata)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).extradata_size) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(extradata_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).format) as usize - ptr as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(format)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).bit_rate) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(bit_rate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).bits_per_coded_sample) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(bits_per_coded_sample)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).bits_per_raw_sample) as usize - ptr as usize },
44usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(bits_per_raw_sample)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).profile) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(profile)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).level) as usize - ptr as usize },
52usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(level)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(width)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).height) as usize - ptr as usize },
60usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(height)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sample_aspect_ratio) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(sample_aspect_ratio)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).field_order) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(field_order)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).color_range) as usize - ptr as usize },
76usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(color_range)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).color_primaries) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(color_primaries)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).color_trc) as usize - ptr as usize },
84usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(color_trc)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).color_space) as usize - ptr as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(color_space)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).chroma_location) as usize - ptr as usize },
92usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(chroma_location)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).video_delay) as usize - ptr as usize },
96usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(video_delay)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).channel_layout) as usize - ptr as usize },
104usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(channel_layout)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).channels) as usize - ptr as usize },
112usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(channels)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sample_rate) as usize - ptr as usize },
116usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(sample_rate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).block_align) as usize - ptr as usize },
120usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(block_align)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).frame_size) as usize - ptr as usize },
124usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(frame_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).initial_padding) as usize - ptr as usize },
128usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(initial_padding)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).trailing_padding) as usize - ptr as usize },
132usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(trailing_padding)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).seek_preroll) as usize - ptr as usize },
136usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParameters),
"::",
stringify!(seek_preroll)
)
);
}
extern "C" {
#[doc = " Allocate a new AVCodecParameters and set its fields to default values\n (unknown/invalid/0). The returned struct must be freed with\n avcodec_parameters_free()."]
pub fn avcodec_parameters_alloc() -> *mut AVCodecParameters;
}
extern "C" {
#[doc = " Free an AVCodecParameters instance and everything associated with it and\n write NULL to the supplied pointer."]
pub fn avcodec_parameters_free(par: *mut *mut AVCodecParameters);
}
extern "C" {
#[doc = " Copy the contents of src to dst. Any allocated fields in dst are freed and\n replaced with newly allocated duplicates of the corresponding fields in src.\n\n @return >= 0 on success, a negative AVERROR code on failure."]
pub fn avcodec_parameters_copy(
dst: *mut AVCodecParameters,
src: *const AVCodecParameters,
) -> libc::c_int;
}
#[repr(u32)]
#[doc = " @defgroup lavc_packet AVPacket\n\n Types and functions for working with AVPacket.\n @{"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVPacketSideDataType {
#[doc = " An AV_PKT_DATA_PALETTE side data packet contains exactly AVPALETTE_SIZE\n bytes worth of palette. This side data signals that a new palette is\n present."]
AV_PKT_DATA_PALETTE = 0,
#[doc = " The AV_PKT_DATA_NEW_EXTRADATA is used to notify the codec or the format\n that the extradata buffer was changed and the receiving side should\n act upon it appropriately. The new extradata is embedded in the side\n data buffer and should be immediately used for processing the current\n frame or packet."]
AV_PKT_DATA_NEW_EXTRADATA = 1,
#[doc = " An AV_PKT_DATA_PARAM_CHANGE side data packet is laid out as follows:\n @code\n u32le param_flags\n if (param_flags & AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT)\n s32le channel_count\n if (param_flags & AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_LAYOUT)\n u64le channel_layout\n if (param_flags & AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE)\n s32le sample_rate\n if (param_flags & AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS)\n s32le width\n s32le height\n @endcode"]
AV_PKT_DATA_PARAM_CHANGE = 2,
#[doc = " An AV_PKT_DATA_H263_MB_INFO side data packet contains a number of\n structures with info about macroblocks relevant to splitting the\n packet into smaller packets on macroblock edges (e.g. as for RFC 2190).\n That is, it does not necessarily contain info about all macroblocks,\n as long as the distance between macroblocks in the info is smaller\n than the target payload size.\n Each MB info structure is 12 bytes, and is laid out as follows:\n @code\n u32le bit offset from the start of the packet\n u8 current quantizer at the start of the macroblock\n u8 GOB number\n u16le macroblock address within the GOB\n u8 horizontal MV predictor\n u8 vertical MV predictor\n u8 horizontal MV predictor for block number 3\n u8 vertical MV predictor for block number 3\n @endcode"]
AV_PKT_DATA_H263_MB_INFO = 3,
#[doc = " This side data should be associated with an audio stream and contains\n ReplayGain information in form of the AVReplayGain struct."]
AV_PKT_DATA_REPLAYGAIN = 4,
#[doc = " This side data contains a 3x3 transformation matrix describing an affine\n transformation that needs to be applied to the decoded video frames for\n correct presentation.\n\n See libavutil/display.h for a detailed description of the data."]
AV_PKT_DATA_DISPLAYMATRIX = 5,
#[doc = " This side data should be associated with a video stream and contains\n Stereoscopic 3D information in form of the AVStereo3D struct."]
AV_PKT_DATA_STEREO3D = 6,
#[doc = " This side data should be associated with an audio stream and corresponds\n to enum AVAudioServiceType."]
AV_PKT_DATA_AUDIO_SERVICE_TYPE = 7,
#[doc = " This side data contains quality related information from the encoder.\n @code\n u32le quality factor of the compressed frame. Allowed range is between 1 (good) and FF_LAMBDA_MAX (bad).\n u8 picture type\n u8 error count\n u16 reserved\n u64le[error count] sum of squared differences between encoder in and output\n @endcode"]
AV_PKT_DATA_QUALITY_STATS = 8,
#[doc = " This side data contains an integer value representing the stream index\n of a \"fallback\" track. A fallback track indicates an alternate\n track to use when the current track can not be decoded for some reason.\n e.g. no decoder available for codec."]
AV_PKT_DATA_FALLBACK_TRACK = 9,
#[doc = " This side data corresponds to the AVCPBProperties struct."]
AV_PKT_DATA_CPB_PROPERTIES = 10,
#[doc = " Recommmends skipping the specified number of samples\n @code\n u32le number of samples to skip from start of this packet\n u32le number of samples to skip from end of this packet\n u8 reason for start skip\n u8 reason for end skip (0=padding silence, 1=convergence)\n @endcode"]
AV_PKT_DATA_SKIP_SAMPLES = 11,
#[doc = " An AV_PKT_DATA_JP_DUALMONO side data packet indicates that\n the packet may contain \"dual mono\" audio specific to Japanese DTV\n and if it is true, recommends only the selected channel to be used.\n @code\n u8 selected channels (0=mail/left, 1=sub/right, 2=both)\n @endcode"]
AV_PKT_DATA_JP_DUALMONO = 12,
#[doc = " A list of zero terminated key/value strings. There is no end marker for\n the list, so it is required to rely on the side data size to stop."]
AV_PKT_DATA_STRINGS_METADATA = 13,
#[doc = " Subtitle event position\n @code\n u32le x1\n u32le y1\n u32le x2\n u32le y2\n @endcode"]
AV_PKT_DATA_SUBTITLE_POSITION = 14,
#[doc = " Data found in BlockAdditional element of matroska container. There is\n no end marker for the data, so it is required to rely on the side data\n size to recognize the end. 8 byte id (as found in BlockAddId) followed\n by data."]
AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL = 15,
#[doc = " The optional first identifier line of a WebVTT cue."]
AV_PKT_DATA_WEBVTT_IDENTIFIER = 16,
#[doc = " The optional settings (rendering instructions) that immediately\n follow the timestamp specifier of a WebVTT cue."]
AV_PKT_DATA_WEBVTT_SETTINGS = 17,
#[doc = " A list of zero terminated key/value strings. There is no end marker for\n the list, so it is required to rely on the side data size to stop. This\n side data includes updated metadata which appeared in the stream."]
AV_PKT_DATA_METADATA_UPDATE = 18,
#[doc = " MPEGTS stream ID as uint8_t, this is required to pass the stream ID\n information from the demuxer to the corresponding muxer."]
AV_PKT_DATA_MPEGTS_STREAM_ID = 19,
#[doc = " Mastering display metadata (based on SMPTE-2086:2014). This metadata\n should be associated with a video stream and contains data in the form\n of the AVMasteringDisplayMetadata struct."]
AV_PKT_DATA_MASTERING_DISPLAY_METADATA = 20,
#[doc = " This side data should be associated with a video stream and corresponds\n to the AVSphericalMapping structure."]
AV_PKT_DATA_SPHERICAL = 21,
#[doc = " Content light level (based on CTA-861.3). This metadata should be\n associated with a video stream and contains data in the form of the\n AVContentLightMetadata struct."]
AV_PKT_DATA_CONTENT_LIGHT_LEVEL = 22,
#[doc = " ATSC A53 Part 4 Closed Captions. This metadata should be associated with\n a video stream. A53 CC bitstream is stored as uint8_t in AVPacketSideData.data.\n The number of bytes of CC data is AVPacketSideData.size."]
AV_PKT_DATA_A53_CC = 23,
#[doc = " This side data is encryption initialization data.\n The format is not part of ABI, use av_encryption_init_info_* methods to\n access."]
AV_PKT_DATA_ENCRYPTION_INIT_INFO = 24,
#[doc = " This side data contains encryption info for how to decrypt the packet.\n The format is not part of ABI, use av_encryption_info_* methods to access."]
AV_PKT_DATA_ENCRYPTION_INFO = 25,
#[doc = " Active Format Description data consisting of a single byte as specified\n in ETSI TS 101 154 using AVActiveFormatDescription enum."]
AV_PKT_DATA_AFD = 26,
#[doc = " Producer Reference Time data corresponding to the AVProducerReferenceTime struct,\n usually exported by some encoders (on demand through the prft flag set in the\n AVCodecContext export_side_data field)."]
AV_PKT_DATA_PRFT = 27,
#[doc = " ICC profile data consisting of an opaque octet buffer following the\n format described by ISO 15076-1."]
AV_PKT_DATA_ICC_PROFILE = 28,
#[doc = " DOVI configuration\n ref:\n dolby-vision-bitstreams-within-the-iso-base-media-file-format-v2.1.2, section 2.2\n dolby-vision-bitstreams-in-mpeg-2-transport-stream-multiplex-v1.2, section 3.3\n Tags are stored in struct AVDOVIDecoderConfigurationRecord."]
AV_PKT_DATA_DOVI_CONF = 29,
#[doc = " Timecode which conforms to SMPTE ST 12-1:2014. The data is an array of 4 uint32_t\n where the first uint32_t describes how many (1-3) of the other timecodes are used.\n The timecode format is described in the documentation of av_timecode_get_smpte_from_framenum()\n function in libavutil/timecode.h."]
AV_PKT_DATA_S12M_TIMECODE = 30,
#[doc = " The number of side data types.\n This is not part of the public API/ABI in the sense that it may\n change when new side data types are added.\n This must stay the last enum value.\n If its value becomes huge, some code using it\n needs to be updated as it assumes it to be smaller than other limits."]
AV_PKT_DATA_NB = 31,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVPacketSideData {
pub data: *mut u8,
pub size: libc::c_int,
pub type_: AVPacketSideDataType,
}
#[test]
fn bindgen_test_layout_AVPacketSideData() {
const UNINIT: ::std::mem::MaybeUninit<AVPacketSideData> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVPacketSideData>(),
16usize,
concat!("Size of: ", stringify!(AVPacketSideData))
);
assert_eq!(
::std::mem::align_of::<AVPacketSideData>(),
8usize,
concat!("Alignment of ", stringify!(AVPacketSideData))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVPacketSideData),
"::",
stringify!(data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVPacketSideData),
"::",
stringify!(size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(AVPacketSideData),
"::",
stringify!(type_)
)
);
}
#[doc = " This structure stores compressed data. It is typically exported by demuxers\n and then passed as input to decoders, or received as output from encoders and\n then passed to muxers.\n\n For video, it should typically contain one compressed frame. For audio it may\n contain several compressed frames. Encoders are allowed to output empty\n packets, with no compressed data, containing only side data\n (e.g. to update some stream parameters at the end of encoding).\n\n The semantics of data ownership depends on the buf field.\n If it is set, the packet data is dynamically allocated and is\n valid indefinitely until a call to av_packet_unref() reduces the\n reference count to 0.\n\n If the buf field is not set av_packet_ref() would make a copy instead\n of increasing the reference count.\n\n The side data is always allocated with av_malloc(), copied by\n av_packet_ref() and freed by av_packet_unref().\n\n sizeof(AVPacket) being a part of the public ABI is deprecated. once\n av_init_packet() is removed, new packets will only be able to be allocated\n with av_packet_alloc(), and new fields may be added to the end of the struct\n with a minor bump.\n\n @see av_packet_alloc\n @see av_packet_ref\n @see av_packet_unref"]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVPacket {
#[doc = " A reference to the reference-counted buffer where the packet data is\n stored.\n May be NULL, then the packet data is not reference-counted."]
pub buf: *mut AVBufferRef,
#[doc = " Presentation timestamp in AVStream->time_base units; the time at which\n the decompressed packet will be presented to the user.\n Can be AV_NOPTS_VALUE if it is not stored in the file.\n pts MUST be larger or equal to dts as presentation cannot happen before\n decompression, unless one wants to view hex dumps. Some formats misuse\n the terms dts and pts/cts to mean something different. Such timestamps\n must be converted to true pts/dts before they are stored in AVPacket."]
pub pts: i64,
#[doc = " Decompression timestamp in AVStream->time_base units; the time at which\n the packet is decompressed.\n Can be AV_NOPTS_VALUE if it is not stored in the file."]
pub dts: i64,
pub data: *mut u8,
pub size: libc::c_int,
pub stream_index: libc::c_int,
#[doc = " A combination of AV_PKT_FLAG values"]
pub flags: libc::c_int,
#[doc = " Additional packet data that can be provided by the container.\n Packet can contain several types of side information."]
pub side_data: *mut AVPacketSideData,
pub side_data_elems: libc::c_int,
#[doc = " Duration of this packet in AVStream->time_base units, 0 if unknown.\n Equals next_pts - this_pts in presentation order."]
pub duration: i64,
#[doc = "< byte position in stream, -1 if unknown"]
pub pos: i64,
#[doc = " @deprecated Same as the duration field, but as int64_t. This was required\n for Matroska subtitles, whose duration values could overflow when the\n duration field was still an int."]
pub convergence_duration: i64,
}
#[test]
fn bindgen_test_layout_AVPacket() {
const UNINIT: ::std::mem::MaybeUninit<AVPacket> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVPacket>(),
88usize,
concat!("Size of: ", stringify!(AVPacket))
);
assert_eq!(
::std::mem::align_of::<AVPacket>(),
8usize,
concat!("Alignment of ", stringify!(AVPacket))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVPacket),
"::",
stringify!(buf)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pts) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVPacket),
"::",
stringify!(pts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).dts) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVPacket),
"::",
stringify!(dts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVPacket),
"::",
stringify!(data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVPacket),
"::",
stringify!(size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).stream_index) as usize - ptr as usize },
36usize,
concat!(
"Offset of field: ",
stringify!(AVPacket),
"::",
stringify!(stream_index)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVPacket),
"::",
stringify!(flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).side_data) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVPacket),
"::",
stringify!(side_data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).side_data_elems) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVPacket),
"::",
stringify!(side_data_elems)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).duration) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(AVPacket),
"::",
stringify!(duration)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pos) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(AVPacket),
"::",
stringify!(pos)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).convergence_duration) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(AVPacket),
"::",
stringify!(convergence_duration)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVPacketList {
pub pkt: AVPacket,
pub next: *mut AVPacketList,
}
#[test]
fn bindgen_test_layout_AVPacketList() {
const UNINIT: ::std::mem::MaybeUninit<AVPacketList> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVPacketList>(),
96usize,
concat!("Size of: ", stringify!(AVPacketList))
);
assert_eq!(
::std::mem::align_of::<AVPacketList>(),
8usize,
concat!("Alignment of ", stringify!(AVPacketList))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pkt) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVPacketList),
"::",
stringify!(pkt)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).next) as usize - ptr as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(AVPacketList),
"::",
stringify!(next)
)
);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVSideDataParamChangeFlags {
AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT = 1,
AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_LAYOUT = 2,
AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE = 4,
AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS = 8,
}
extern "C" {
#[doc = " Allocate an AVPacket and set its fields to default values. The resulting\n struct must be freed using av_packet_free().\n\n @return An AVPacket filled with default values or NULL on failure.\n\n @note this only allocates the AVPacket itself, not the data buffers. Those\n must be allocated through other means such as av_new_packet.\n\n @see av_new_packet"]
pub fn av_packet_alloc() -> *mut AVPacket;
}
extern "C" {
#[doc = " Create a new packet that references the same data as src.\n\n This is a shortcut for av_packet_alloc()+av_packet_ref().\n\n @return newly created AVPacket on success, NULL on error.\n\n @see av_packet_alloc\n @see av_packet_ref"]
pub fn av_packet_clone(src: *const AVPacket) -> *mut AVPacket;
}
extern "C" {
#[doc = " Free the packet, if the packet is reference counted, it will be\n unreferenced first.\n\n @param pkt packet to be freed. The pointer will be set to NULL.\n @note passing NULL is a no-op."]
pub fn av_packet_free(pkt: *mut *mut AVPacket);
}
extern "C" {
#[doc = " Initialize optional fields of a packet with default values.\n\n Note, this does not touch the data and size members, which have to be\n initialized separately.\n\n @param pkt packet\n\n @see av_packet_alloc\n @see av_packet_unref\n\n @deprecated This function is deprecated. Once it's removed,\nsizeof(AVPacket) will not be a part of the ABI anymore."]
pub fn av_init_packet(pkt: *mut AVPacket);
}
extern "C" {
#[doc = " Allocate the payload of a packet and initialize its fields with\n default values.\n\n @param pkt packet\n @param size wanted payload size\n @return 0 if OK, AVERROR_xxx otherwise"]
pub fn av_new_packet(pkt: *mut AVPacket, size: libc::c_int) -> libc::c_int;
}
extern "C" {
#[doc = " Reduce packet size, correctly zeroing padding\n\n @param pkt packet\n @param size new size"]
pub fn av_shrink_packet(pkt: *mut AVPacket, size: libc::c_int);
}
extern "C" {
#[doc = " Increase packet size, correctly zeroing padding\n\n @param pkt packet\n @param grow_by number of bytes by which to increase the size of the packet"]
pub fn av_grow_packet(pkt: *mut AVPacket, grow_by: libc::c_int) -> libc::c_int;
}
extern "C" {
#[doc = " Initialize a reference-counted packet from av_malloc()ed data.\n\n @param pkt packet to be initialized. This function will set the data, size,\n and buf fields, all others are left untouched.\n @param data Data allocated by av_malloc() to be used as packet data. If this\n function returns successfully, the data is owned by the underlying AVBuffer.\n The caller may not access the data through other means.\n @param size size of data in bytes, without the padding. I.e. the full buffer\n size is assumed to be size + AV_INPUT_BUFFER_PADDING_SIZE.\n\n @return 0 on success, a negative AVERROR on error"]
pub fn av_packet_from_data(pkt: *mut AVPacket, data: *mut u8, size: libc::c_int)
-> libc::c_int;
}
extern "C" {
#[doc = " @warning This is a hack - the packet memory allocation stuff is broken. The\n packet is allocated if it was not really allocated.\n\n @deprecated Use av_packet_ref or av_packet_make_refcounted"]
pub fn av_dup_packet(pkt: *mut AVPacket) -> libc::c_int;
}
extern "C" {
#[doc = " Copy packet, including contents\n\n @return 0 on success, negative AVERROR on fail\n\n @deprecated Use av_packet_ref"]
pub fn av_copy_packet(dst: *mut AVPacket, src: *const AVPacket) -> libc::c_int;
}
extern "C" {
#[doc = " Copy packet side data\n\n @return 0 on success, negative AVERROR on fail\n\n @deprecated Use av_packet_copy_props"]
pub fn av_copy_packet_side_data(dst: *mut AVPacket, src: *const AVPacket) -> libc::c_int;
}
extern "C" {
#[doc = " Free a packet.\n\n @deprecated Use av_packet_unref\n\n @param pkt packet to free"]
pub fn av_free_packet(pkt: *mut AVPacket);
}
extern "C" {
#[doc = " Allocate new information of a packet.\n\n @param pkt packet\n @param type side information type\n @param size side information size\n @return pointer to fresh allocated data or NULL otherwise"]
pub fn av_packet_new_side_data(
pkt: *mut AVPacket,
type_: AVPacketSideDataType,
size: libc::c_int,
) -> *mut u8;
}
extern "C" {
#[doc = " Wrap an existing array as a packet side data.\n\n @param pkt packet\n @param type side information type\n @param data the side data array. It must be allocated with the av_malloc()\n family of functions. The ownership of the data is transferred to\n pkt.\n @param size side information size\n @return a non-negative number on success, a negative AVERROR code on\n failure. On failure, the packet is unchanged and the data remains\n owned by the caller."]
pub fn av_packet_add_side_data(
pkt: *mut AVPacket,
type_: AVPacketSideDataType,
data: *mut u8,
size: usize,
) -> libc::c_int;
}
extern "C" {
#[doc = " Shrink the already allocated side data buffer\n\n @param pkt packet\n @param type side information type\n @param size new side information size\n @return 0 on success, < 0 on failure"]
pub fn av_packet_shrink_side_data(
pkt: *mut AVPacket,
type_: AVPacketSideDataType,
size: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Get side information from packet.\n\n @param pkt packet\n @param type desired side information type\n @param size If supplied, *size will be set to the size of the side data\n or to zero if the desired side data is not present.\n @return pointer to data if present or NULL otherwise"]
pub fn av_packet_get_side_data(
pkt: *const AVPacket,
type_: AVPacketSideDataType,
size: *mut libc::c_int,
) -> *mut u8;
}
extern "C" {
pub fn av_packet_merge_side_data(pkt: *mut AVPacket) -> libc::c_int;
}
extern "C" {
pub fn av_packet_split_side_data(pkt: *mut AVPacket) -> libc::c_int;
}
extern "C" {
pub fn av_packet_side_data_name(type_: AVPacketSideDataType) -> *const libc::c_char;
}
extern "C" {
pub fn av_packet_pack_dictionary(dict: *mut AVDictionary, size: *mut libc::c_int) -> *mut u8;
}
extern "C" {
pub fn av_packet_unpack_dictionary(
data: *const u8,
size: libc::c_int,
dict: *mut *mut AVDictionary,
) -> libc::c_int;
}
extern "C" {
#[doc = " Convenience function to free all the side data stored.\n All the other fields stay untouched.\n\n @param pkt packet"]
pub fn av_packet_free_side_data(pkt: *mut AVPacket);
}
extern "C" {
#[doc = " Setup a new reference to the data described by a given packet\n\n If src is reference-counted, setup dst as a new reference to the\n buffer in src. Otherwise allocate a new buffer in dst and copy the\n data from src into it.\n\n All the other fields are copied from src.\n\n @see av_packet_unref\n\n @param dst Destination packet. Will be completely overwritten.\n @param src Source packet\n\n @return 0 on success, a negative AVERROR on error. On error, dst\n will be blank (as if returned by av_packet_alloc())."]
pub fn av_packet_ref(dst: *mut AVPacket, src: *const AVPacket) -> libc::c_int;
}
extern "C" {
#[doc = " Wipe the packet.\n\n Unreference the buffer referenced by the packet and reset the\n remaining packet fields to their default values.\n\n @param pkt The packet to be unreferenced."]
pub fn av_packet_unref(pkt: *mut AVPacket);
}
extern "C" {
#[doc = " Move every field in src to dst and reset src.\n\n @see av_packet_unref\n\n @param src Source packet, will be reset\n @param dst Destination packet"]
pub fn av_packet_move_ref(dst: *mut AVPacket, src: *mut AVPacket);
}
extern "C" {
#[doc = " Copy only \"properties\" fields from src to dst.\n\n Properties for the purpose of this function are all the fields\n beside those related to the packet data (buf, data, size)\n\n @param dst Destination packet\n @param src Source packet\n\n @return 0 on success AVERROR on failure."]
pub fn av_packet_copy_props(dst: *mut AVPacket, src: *const AVPacket) -> libc::c_int;
}
extern "C" {
#[doc = " Ensure the data described by a given packet is reference counted.\n\n @note This function does not ensure that the reference will be writable.\n Use av_packet_make_writable instead for that purpose.\n\n @see av_packet_ref\n @see av_packet_make_writable\n\n @param pkt packet whose data should be made reference counted.\n\n @return 0 on success, a negative AVERROR on error. On failure, the\n packet is unchanged."]
pub fn av_packet_make_refcounted(pkt: *mut AVPacket) -> libc::c_int;
}
extern "C" {
#[doc = " Create a writable reference for the data described by a given packet,\n avoiding data copy if possible.\n\n @param pkt Packet whose data should be made writable.\n\n @return 0 on success, a negative AVERROR on failure. On failure, the\n packet is unchanged."]
pub fn av_packet_make_writable(pkt: *mut AVPacket) -> libc::c_int;
}
extern "C" {
#[doc = " Convert valid timing fields (timestamps / durations) in a packet from one\n timebase to another. Timestamps with unknown values (AV_NOPTS_VALUE) will be\n ignored.\n\n @param pkt packet on which the conversion will be performed\n @param tb_src source timebase, in which the timing fields in pkt are\n expressed\n @param tb_dst destination timebase, to which the timing fields will be\n converted"]
pub fn av_packet_rescale_ts(pkt: *mut AVPacket, tb_src: AVRational, tb_dst: AVRational);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVBSFInternal {
_unused: [u8; 0],
}
#[doc = " The bitstream filter state.\n\n This struct must be allocated with av_bsf_alloc() and freed with\n av_bsf_free().\n\n The fields in the struct will only be changed (by the caller or by the\n filter) as described in their documentation, and are to be considered\n immutable otherwise."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVBSFContext {
#[doc = " A class for logging and AVOptions"]
pub av_class: *const AVClass,
#[doc = " The bitstream filter this context is an instance of."]
pub filter: *const AVBitStreamFilter,
#[doc = " Opaque libavcodec internal data. Must not be touched by the caller in any\n way."]
pub internal: *mut AVBSFInternal,
#[doc = " Opaque filter-specific private data. If filter->priv_class is non-NULL,\n this is an AVOptions-enabled struct."]
pub priv_data: *mut libc::c_void,
#[doc = " Parameters of the input stream. This field is allocated in\n av_bsf_alloc(), it needs to be filled by the caller before\n av_bsf_init()."]
pub par_in: *mut AVCodecParameters,
#[doc = " Parameters of the output stream. This field is allocated in\n av_bsf_alloc(), it is set by the filter in av_bsf_init()."]
pub par_out: *mut AVCodecParameters,
#[doc = " The timebase used for the timestamps of the input packets. Set by the\n caller before av_bsf_init()."]
pub time_base_in: AVRational,
#[doc = " The timebase used for the timestamps of the output packets. Set by the\n filter in av_bsf_init()."]
pub time_base_out: AVRational,
}
#[test]
fn bindgen_test_layout_AVBSFContext() {
const UNINIT: ::std::mem::MaybeUninit<AVBSFContext> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVBSFContext>(),
64usize,
concat!("Size of: ", stringify!(AVBSFContext))
);
assert_eq!(
::std::mem::align_of::<AVBSFContext>(),
8usize,
concat!("Alignment of ", stringify!(AVBSFContext))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).av_class) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVBSFContext),
"::",
stringify!(av_class)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).filter) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVBSFContext),
"::",
stringify!(filter)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).internal) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVBSFContext),
"::",
stringify!(internal)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).priv_data) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVBSFContext),
"::",
stringify!(priv_data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).par_in) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVBSFContext),
"::",
stringify!(par_in)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).par_out) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVBSFContext),
"::",
stringify!(par_out)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).time_base_in) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVBSFContext),
"::",
stringify!(time_base_in)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).time_base_out) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVBSFContext),
"::",
stringify!(time_base_out)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVBitStreamFilter {
pub name: *const libc::c_char,
#[doc = " A list of codec ids supported by the filter, terminated by\n AV_CODEC_ID_NONE.\n May be NULL, in that case the bitstream filter works with any codec id."]
pub codec_ids: *const AVCodecID,
#[doc = " A class for the private data, used to declare bitstream filter private\n AVOptions. This field is NULL for bitstream filters that do not declare\n any options.\n\n If this field is non-NULL, the first member of the filter private data\n must be a pointer to AVClass, which will be set by libavcodec generic\n code to this class."]
pub priv_class: *const AVClass,
#[doc = " No fields below this line are part of the public API. They\n may not be used outside of libavcodec and can be changed and\n removed at will.\n New public fields should be added right above.\n"]
pub priv_data_size: libc::c_int,
pub init: ::std::option::Option<unsafe extern "C" fn(ctx: *mut AVBSFContext) -> libc::c_int>,
pub filter: ::std::option::Option<
unsafe extern "C" fn(ctx: *mut AVBSFContext, pkt: *mut AVPacket) -> libc::c_int,
>,
pub close: ::std::option::Option<unsafe extern "C" fn(ctx: *mut AVBSFContext)>,
pub flush: ::std::option::Option<unsafe extern "C" fn(ctx: *mut AVBSFContext)>,
}
#[test]
fn bindgen_test_layout_AVBitStreamFilter() {
const UNINIT: ::std::mem::MaybeUninit<AVBitStreamFilter> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVBitStreamFilter>(),
64usize,
concat!("Size of: ", stringify!(AVBitStreamFilter))
);
assert_eq!(
::std::mem::align_of::<AVBitStreamFilter>(),
8usize,
concat!("Alignment of ", stringify!(AVBitStreamFilter))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVBitStreamFilter),
"::",
stringify!(name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).codec_ids) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVBitStreamFilter),
"::",
stringify!(codec_ids)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).priv_class) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVBitStreamFilter),
"::",
stringify!(priv_class)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).priv_data_size) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVBitStreamFilter),
"::",
stringify!(priv_data_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVBitStreamFilter),
"::",
stringify!(init)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).filter) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVBitStreamFilter),
"::",
stringify!(filter)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).close) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVBitStreamFilter),
"::",
stringify!(close)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).flush) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVBitStreamFilter),
"::",
stringify!(flush)
)
);
}
extern "C" {
#[doc = " @return a bitstream filter with the specified name or NULL if no such\n bitstream filter exists."]
pub fn av_bsf_get_by_name(name: *const libc::c_char) -> *const AVBitStreamFilter;
}
extern "C" {
#[doc = " Iterate over all registered bitstream filters.\n\n @param opaque a pointer where libavcodec will store the iteration state. Must\n point to NULL to start the iteration.\n\n @return the next registered bitstream filter or NULL when the iteration is\n finished"]
pub fn av_bsf_iterate(opaque: *mut *mut libc::c_void) -> *const AVBitStreamFilter;
}
extern "C" {
#[doc = " Allocate a context for a given bitstream filter. The caller must fill in the\n context parameters as described in the documentation and then call\n av_bsf_init() before sending any data to the filter.\n\n @param filter the filter for which to allocate an instance.\n @param ctx a pointer into which the pointer to the newly-allocated context\n will be written. It must be freed with av_bsf_free() after the\n filtering is done.\n\n @return 0 on success, a negative AVERROR code on failure"]
pub fn av_bsf_alloc(
filter: *const AVBitStreamFilter,
ctx: *mut *mut AVBSFContext,
) -> libc::c_int;
}
extern "C" {
#[doc = " Prepare the filter for use, after all the parameters and options have been\n set."]
pub fn av_bsf_init(ctx: *mut AVBSFContext) -> libc::c_int;
}
extern "C" {
#[doc = " Submit a packet for filtering.\n\n After sending each packet, the filter must be completely drained by calling\n av_bsf_receive_packet() repeatedly until it returns AVERROR(EAGAIN) or\n AVERROR_EOF.\n\n @param pkt the packet to filter. The bitstream filter will take ownership of\n the packet and reset the contents of pkt. pkt is not touched if an error occurs.\n If pkt is empty (i.e. NULL, or pkt->data is NULL and pkt->side_data_elems zero),\n it signals the end of the stream (i.e. no more non-empty packets will be sent;\n sending more empty packets does nothing) and will cause the filter to output\n any packets it may have buffered internally.\n\n @return 0 on success. AVERROR(EAGAIN) if packets need to be retrieved from the\n filter (using av_bsf_receive_packet()) before new input can be consumed. Another\n negative AVERROR value if an error occurs."]
pub fn av_bsf_send_packet(ctx: *mut AVBSFContext, pkt: *mut AVPacket) -> libc::c_int;
}
extern "C" {
#[doc = " Retrieve a filtered packet.\n\n @param[out] pkt this struct will be filled with the contents of the filtered\n packet. It is owned by the caller and must be freed using\n av_packet_unref() when it is no longer needed.\n This parameter should be \"clean\" (i.e. freshly allocated\n with av_packet_alloc() or unreffed with av_packet_unref())\n when this function is called. If this function returns\n successfully, the contents of pkt will be completely\n overwritten by the returned data. On failure, pkt is not\n touched.\n\n @return 0 on success. AVERROR(EAGAIN) if more packets need to be sent to the\n filter (using av_bsf_send_packet()) to get more output. AVERROR_EOF if there\n will be no further output from the filter. Another negative AVERROR value if\n an error occurs.\n\n @note one input packet may result in several output packets, so after sending\n a packet with av_bsf_send_packet(), this function needs to be called\n repeatedly until it stops returning 0. It is also possible for a filter to\n output fewer packets than were sent to it, so this function may return\n AVERROR(EAGAIN) immediately after a successful av_bsf_send_packet() call."]
pub fn av_bsf_receive_packet(ctx: *mut AVBSFContext, pkt: *mut AVPacket) -> libc::c_int;
}
extern "C" {
#[doc = " Reset the internal bitstream filter state. Should be called e.g. when seeking."]
pub fn av_bsf_flush(ctx: *mut AVBSFContext);
}
extern "C" {
#[doc = " Free a bitstream filter context and everything associated with it; write NULL\n into the supplied pointer."]
pub fn av_bsf_free(ctx: *mut *mut AVBSFContext);
}
extern "C" {
#[doc = " Get the AVClass for AVBSFContext. It can be used in combination with\n AV_OPT_SEARCH_FAKE_OBJ for examining options.\n\n @see av_opt_find()."]
pub fn av_bsf_get_class() -> *const AVClass;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVBSFList {
_unused: [u8; 0],
}
extern "C" {
#[doc = " Allocate empty list of bitstream filters.\n The list must be later freed by av_bsf_list_free()\n or finalized by av_bsf_list_finalize().\n\n @return Pointer to @ref AVBSFList on success, NULL in case of failure"]
pub fn av_bsf_list_alloc() -> *mut AVBSFList;
}
extern "C" {
#[doc = " Free list of bitstream filters.\n\n @param lst Pointer to pointer returned by av_bsf_list_alloc()"]
pub fn av_bsf_list_free(lst: *mut *mut AVBSFList);
}
extern "C" {
#[doc = " Append bitstream filter to the list of bitstream filters.\n\n @param lst List to append to\n @param bsf Filter context to be appended\n\n @return >=0 on success, negative AVERROR in case of failure"]
pub fn av_bsf_list_append(lst: *mut AVBSFList, bsf: *mut AVBSFContext) -> libc::c_int;
}
extern "C" {
#[doc = " Construct new bitstream filter context given it's name and options\n and append it to the list of bitstream filters.\n\n @param lst List to append to\n @param bsf_name Name of the bitstream filter\n @param options Options for the bitstream filter, can be set to NULL\n\n @return >=0 on success, negative AVERROR in case of failure"]
pub fn av_bsf_list_append2(
lst: *mut AVBSFList,
bsf_name: *const libc::c_char,
options: *mut *mut AVDictionary,
) -> libc::c_int;
}
extern "C" {
#[doc = " Finalize list of bitstream filters.\n\n This function will transform @ref AVBSFList to single @ref AVBSFContext,\n so the whole chain of bitstream filters can be treated as single filter\n freshly allocated by av_bsf_alloc().\n If the call is successful, @ref AVBSFList structure is freed and lst\n will be set to NULL. In case of failure, caller is responsible for\n freeing the structure by av_bsf_list_free()\n\n @param lst Filter list structure to be transformed\n @param[out] bsf Pointer to be set to newly created @ref AVBSFContext structure\n representing the chain of bitstream filters\n\n @return >=0 on success, negative AVERROR in case of failure"]
pub fn av_bsf_list_finalize(
lst: *mut *mut AVBSFList,
bsf: *mut *mut AVBSFContext,
) -> libc::c_int;
}
extern "C" {
#[doc = " Parse string describing list of bitstream filters and create single\n @ref AVBSFContext describing the whole chain of bitstream filters.\n Resulting @ref AVBSFContext can be treated as any other @ref AVBSFContext freshly\n allocated by av_bsf_alloc().\n\n @param str String describing chain of bitstream filters in format\n `bsf1[=opt1=val1:opt2=val2][,bsf2]`\n @param[out] bsf Pointer to be set to newly created @ref AVBSFContext structure\n representing the chain of bitstream filters\n\n @return >=0 on success, negative AVERROR in case of failure"]
pub fn av_bsf_list_parse_str(
str_: *const libc::c_char,
bsf: *mut *mut AVBSFContext,
) -> libc::c_int;
}
extern "C" {
#[doc = " Get null/pass-through bitstream filter.\n\n @param[out] bsf Pointer to be set to new instance of pass-through bitstream filter\n\n @return"]
pub fn av_bsf_get_null_filter(bsf: *mut *mut AVBSFContext) -> libc::c_int;
}
#[doc = " AVProfile."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVProfile {
pub profile: libc::c_int,
#[doc = "< short name for the profile"]
pub name: *const libc::c_char,
}
#[test]
fn bindgen_test_layout_AVProfile() {
const UNINIT: ::std::mem::MaybeUninit<AVProfile> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVProfile>(),
16usize,
concat!("Size of: ", stringify!(AVProfile))
);
assert_eq!(
::std::mem::align_of::<AVProfile>(),
8usize,
concat!("Alignment of ", stringify!(AVProfile))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).profile) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVProfile),
"::",
stringify!(profile)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVProfile),
"::",
stringify!(name)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVCodecDefault {
_unused: [u8; 0],
}
#[doc = " AVCodec."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVCodec {
#[doc = " Name of the codec implementation.\n The name is globally unique among encoders and among decoders (but an\n encoder and a decoder can share the same name).\n This is the primary way to find a codec from the user perspective."]
pub name: *const libc::c_char,
#[doc = " Descriptive name for the codec, meant to be more human readable than name.\n You should use the NULL_IF_CONFIG_SMALL() macro to define it."]
pub long_name: *const libc::c_char,
pub type_: AVMediaType,
pub id: AVCodecID,
#[doc = " Codec capabilities.\n see AV_CODEC_CAP_*"]
pub capabilities: libc::c_int,
#[doc = "< array of supported framerates, or NULL if any, array is terminated by {0,0}"]
pub supported_framerates: *const AVRational,
#[doc = "< array of supported pixel formats, or NULL if unknown, array is terminated by -1"]
pub pix_fmts: *const AVPixelFormat,
#[doc = "< array of supported audio samplerates, or NULL if unknown, array is terminated by 0"]
pub supported_samplerates: *const libc::c_int,
#[doc = "< array of supported sample formats, or NULL if unknown, array is terminated by -1"]
pub sample_fmts: *const AVSampleFormat,
#[doc = "< array of support channel layouts, or NULL if unknown. array is terminated by 0"]
pub channel_layouts: *const u64,
#[doc = "< maximum value for lowres supported by the decoder"]
pub max_lowres: u8,
#[doc = "< AVClass for the private context"]
pub priv_class: *const AVClass,
#[doc = "< array of recognized profiles, or NULL if unknown, array is terminated by {FF_PROFILE_UNKNOWN}"]
pub profiles: *const AVProfile,
#[doc = " Group name of the codec implementation.\n This is a short symbolic name of the wrapper backing this codec. A\n wrapper uses some kind of external implementation for the codec, such\n as an external library, or a codec implementation provided by the OS or\n the hardware.\n If this field is NULL, this is a builtin, libavcodec native codec.\n If non-NULL, this will be the suffix in AVCodec.name in most cases\n (usually AVCodec.name will be of the form \"<codec_name>_<wrapper_name>\")."]
pub wrapper_name: *const libc::c_char,
#[doc = " No fields below this line are part of the public API. They\n may not be used outside of libavcodec and can be changed and\n removed at will.\n New public fields should be added right above.\n"]
pub priv_data_size: libc::c_int,
pub next: *mut AVCodec,
#[doc = " @name Frame-level threading support functions\n @{\n/\n/**\n Copy necessary context variables from a previous thread context to the current one.\n If not defined, the next thread will start automatically; otherwise, the codec\n must call ff_thread_finish_setup().\n\n dst and src will (rarely) point to the same context, in which case memcpy should be skipped."]
pub update_thread_context: ::std::option::Option<
unsafe extern "C" fn(dst: *mut AVCodecContext, src: *const AVCodecContext) -> libc::c_int,
>,
#[doc = " Private codec-specific defaults."]
pub defaults: *const AVCodecDefault,
#[doc = " Initialize codec static data, called from av_codec_iterate().\n\n This is not intended for time consuming operations as it is\n run for every codec regardless of that codec being used."]
pub init_static_data: ::std::option::Option<unsafe extern "C" fn(codec: *mut AVCodec)>,
pub init: ::std::option::Option<unsafe extern "C" fn(arg1: *mut AVCodecContext) -> libc::c_int>,
pub encode_sub: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut AVCodecContext,
buf: *mut u8,
buf_size: libc::c_int,
sub: *const AVSubtitle,
) -> libc::c_int,
>,
#[doc = " Encode data to an AVPacket.\n\n @param avctx codec context\n @param avpkt output AVPacket\n @param[in] frame AVFrame containing the raw data to be encoded\n @param[out] got_packet_ptr encoder sets to 0 or 1 to indicate that a\n non-empty packet was returned in avpkt.\n @return 0 on success, negative error code on failure"]
pub encode2: ::std::option::Option<
unsafe extern "C" fn(
avctx: *mut AVCodecContext,
avpkt: *mut AVPacket,
frame: *const AVFrame,
got_packet_ptr: *mut libc::c_int,
) -> libc::c_int,
>,
#[doc = " Decode picture or subtitle data.\n\n @param avctx codec context\n @param outdata codec type dependent output struct\n @param[out] got_frame_ptr decoder sets to 0 or 1 to indicate that a\n non-empty frame or subtitle was returned in\n outdata.\n @param[in] avpkt AVPacket containing the data to be decoded\n @return amount of bytes read from the packet on success, negative error\n code on failure"]
pub decode: ::std::option::Option<
unsafe extern "C" fn(
avctx: *mut AVCodecContext,
outdata: *mut libc::c_void,
got_frame_ptr: *mut libc::c_int,
avpkt: *mut AVPacket,
) -> libc::c_int,
>,
pub close:
::std::option::Option<unsafe extern "C" fn(arg1: *mut AVCodecContext) -> libc::c_int>,
#[doc = " Encode API with decoupled frame/packet dataflow. This function is called\n to get one output packet. It should call ff_encode_get_frame() to obtain\n input data."]
pub receive_packet: ::std::option::Option<
unsafe extern "C" fn(avctx: *mut AVCodecContext, avpkt: *mut AVPacket) -> libc::c_int,
>,
#[doc = " Decode API with decoupled packet/frame dataflow. This function is called\n to get one output frame. It should call ff_decode_get_packet() to obtain\n input data."]
pub receive_frame: ::std::option::Option<
unsafe extern "C" fn(avctx: *mut AVCodecContext, frame: *mut AVFrame) -> libc::c_int,
>,
#[doc = " Flush buffers.\n Will be called when seeking"]
pub flush: ::std::option::Option<unsafe extern "C" fn(arg1: *mut AVCodecContext)>,
#[doc = " Internal codec capabilities.\n See FF_CODEC_CAP_* in internal.h"]
pub caps_internal: libc::c_int,
#[doc = " Decoding only, a comma-separated list of bitstream filters to apply to\n packets before decoding."]
pub bsfs: *const libc::c_char,
#[doc = " Array of pointers to hardware configurations supported by the codec,\n or NULL if no hardware supported. The array is terminated by a NULL\n pointer.\n\n The user can only access this field via avcodec_get_hw_config()."]
pub hw_configs: *const *mut AVCodecHWConfigInternal,
#[doc = " List of supported codec_tags, terminated by FF_CODEC_TAGS_END."]
pub codec_tags: *const u32,
}
#[test]
fn bindgen_test_layout_AVCodec() {
const UNINIT: ::std::mem::MaybeUninit<AVCodec> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVCodec>(),
240usize,
concat!("Size of: ", stringify!(AVCodec))
);
assert_eq!(
::std::mem::align_of::<AVCodec>(),
8usize,
concat!("Alignment of ", stringify!(AVCodec))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).long_name) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(long_name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).id) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(id)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).capabilities) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(capabilities)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).supported_framerates) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(supported_framerates)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pix_fmts) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(pix_fmts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).supported_samplerates) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(supported_samplerates)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sample_fmts) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(sample_fmts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).channel_layouts) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(channel_layouts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_lowres) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(max_lowres)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).priv_class) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(priv_class)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).profiles) as usize - ptr as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(profiles)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).wrapper_name) as usize - ptr as usize },
96usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(wrapper_name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).priv_data_size) as usize - ptr as usize },
104usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(priv_data_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).next) as usize - ptr as usize },
112usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(next)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).update_thread_context) as usize - ptr as usize },
120usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(update_thread_context)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).defaults) as usize - ptr as usize },
128usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(defaults)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).init_static_data) as usize - ptr as usize },
136usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(init_static_data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize },
144usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(init)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).encode_sub) as usize - ptr as usize },
152usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(encode_sub)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).encode2) as usize - ptr as usize },
160usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(encode2)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).decode) as usize - ptr as usize },
168usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(decode)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).close) as usize - ptr as usize },
176usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(close)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).receive_packet) as usize - ptr as usize },
184usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(receive_packet)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).receive_frame) as usize - ptr as usize },
192usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(receive_frame)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).flush) as usize - ptr as usize },
200usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(flush)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).caps_internal) as usize - ptr as usize },
208usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(caps_internal)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).bsfs) as usize - ptr as usize },
216usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(bsfs)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).hw_configs) as usize - ptr as usize },
224usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(hw_configs)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).codec_tags) as usize - ptr as usize },
232usize,
concat!(
"Offset of field: ",
stringify!(AVCodec),
"::",
stringify!(codec_tags)
)
);
}
extern "C" {
#[doc = " Iterate over all registered codecs.\n\n @param opaque a pointer where libavcodec will store the iteration state. Must\n point to NULL to start the iteration.\n\n @return the next registered codec or NULL when the iteration is\n finished"]
pub fn av_codec_iterate(opaque: *mut *mut libc::c_void) -> *const AVCodec;
}
extern "C" {
#[doc = " Find a registered decoder with a matching codec ID.\n\n @param id AVCodecID of the requested decoder\n @return A decoder if one was found, NULL otherwise."]
pub fn avcodec_find_decoder(id: AVCodecID) -> *mut AVCodec;
}
extern "C" {
#[doc = " Find a registered decoder with the specified name.\n\n @param name name of the requested decoder\n @return A decoder if one was found, NULL otherwise."]
pub fn avcodec_find_decoder_by_name(name: *const libc::c_char) -> *mut AVCodec;
}
extern "C" {
#[doc = " Find a registered encoder with a matching codec ID.\n\n @param id AVCodecID of the requested encoder\n @return An encoder if one was found, NULL otherwise."]
pub fn avcodec_find_encoder(id: AVCodecID) -> *mut AVCodec;
}
extern "C" {
#[doc = " Find a registered encoder with the specified name.\n\n @param name name of the requested encoder\n @return An encoder if one was found, NULL otherwise."]
pub fn avcodec_find_encoder_by_name(name: *const libc::c_char) -> *mut AVCodec;
}
extern "C" {
#[doc = " @return a non-zero number if codec is an encoder, zero otherwise"]
pub fn av_codec_is_encoder(codec: *const AVCodec) -> libc::c_int;
}
extern "C" {
#[doc = " @return a non-zero number if codec is a decoder, zero otherwise"]
pub fn av_codec_is_decoder(codec: *const AVCodec) -> libc::c_int;
}
pub const AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX: _bindgen_ty_4 =
_bindgen_ty_4::AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX;
pub const AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX: _bindgen_ty_4 =
_bindgen_ty_4::AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX;
pub const AV_CODEC_HW_CONFIG_METHOD_INTERNAL: _bindgen_ty_4 =
_bindgen_ty_4::AV_CODEC_HW_CONFIG_METHOD_INTERNAL;
pub const AV_CODEC_HW_CONFIG_METHOD_AD_HOC: _bindgen_ty_4 =
_bindgen_ty_4::AV_CODEC_HW_CONFIG_METHOD_AD_HOC;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _bindgen_ty_4 {
#[doc = " The codec supports this format via the hw_device_ctx interface.\n\n When selecting this format, AVCodecContext.hw_device_ctx should\n have been set to a device of the specified type before calling\n avcodec_open2()."]
AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX = 1,
#[doc = " The codec supports this format via the hw_frames_ctx interface.\n\n When selecting this format for a decoder,\n AVCodecContext.hw_frames_ctx should be set to a suitable frames\n context inside the get_format() callback. The frames context\n must have been created on a device of the specified type.\n\n When selecting this format for an encoder,\n AVCodecContext.hw_frames_ctx should be set to the context which\n will be used for the input frames before calling avcodec_open2()."]
AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX = 2,
#[doc = " The codec supports this format by some internal method.\n\n This format can be selected without any additional configuration -\n no device or frames context is required."]
AV_CODEC_HW_CONFIG_METHOD_INTERNAL = 4,
#[doc = " The codec supports this format by some ad-hoc method.\n\n Additional settings and/or function calls are required. See the\n codec-specific documentation for details. (Methods requiring\n this sort of configuration are deprecated and others should be\n used in preference.)"]
AV_CODEC_HW_CONFIG_METHOD_AD_HOC = 8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVCodecHWConfig {
#[doc = " For decoders, a hardware pixel format which that decoder may be\n able to decode to if suitable hardware is available.\n\n For encoders, a pixel format which the encoder may be able to\n accept. If set to AV_PIX_FMT_NONE, this applies to all pixel\n formats supported by the codec."]
pub pix_fmt: AVPixelFormat,
#[doc = " Bit set of AV_CODEC_HW_CONFIG_METHOD_* flags, describing the possible\n setup methods which can be used with this configuration."]
pub methods: libc::c_int,
#[doc = " The device type associated with the configuration.\n\n Must be set for AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX and\n AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX, otherwise unused."]
pub device_type: AVHWDeviceType,
}
#[test]
fn bindgen_test_layout_AVCodecHWConfig() {
const UNINIT: ::std::mem::MaybeUninit<AVCodecHWConfig> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVCodecHWConfig>(),
12usize,
concat!("Size of: ", stringify!(AVCodecHWConfig))
);
assert_eq!(
::std::mem::align_of::<AVCodecHWConfig>(),
4usize,
concat!("Alignment of ", stringify!(AVCodecHWConfig))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pix_fmt) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVCodecHWConfig),
"::",
stringify!(pix_fmt)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).methods) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(AVCodecHWConfig),
"::",
stringify!(methods)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).device_type) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVCodecHWConfig),
"::",
stringify!(device_type)
)
);
}
extern "C" {
#[doc = " Retrieve supported hardware configurations for a codec.\n\n Values of index from zero to some maximum return the indexed configuration\n descriptor; all other values return NULL. If the codec does not support\n any hardware configurations then it will always return NULL."]
pub fn avcodec_get_hw_config(
codec: *const AVCodec,
index: libc::c_int,
) -> *const AVCodecHWConfig;
}
#[doc = " This struct describes the properties of a single codec described by an\n AVCodecID.\n @see avcodec_descriptor_get()"]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVCodecDescriptor {
pub id: AVCodecID,
pub type_: AVMediaType,
#[doc = " Name of the codec described by this descriptor. It is non-empty and\n unique for each codec descriptor. It should contain alphanumeric\n characters and '_' only."]
pub name: *const libc::c_char,
#[doc = " A more descriptive name for this codec. May be NULL."]
pub long_name: *const libc::c_char,
#[doc = " Codec properties, a combination of AV_CODEC_PROP_* flags."]
pub props: libc::c_int,
#[doc = " MIME type(s) associated with the codec.\n May be NULL; if not, a NULL-terminated array of MIME types.\n The first item is always non-NULL and is the preferred MIME type."]
pub mime_types: *const *const libc::c_char,
#[doc = " If non-NULL, an array of profiles recognized for this codec.\n Terminated with FF_PROFILE_UNKNOWN."]
pub profiles: *const AVProfile,
}
#[test]
fn bindgen_test_layout_AVCodecDescriptor() {
const UNINIT: ::std::mem::MaybeUninit<AVCodecDescriptor> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVCodecDescriptor>(),
48usize,
concat!("Size of: ", stringify!(AVCodecDescriptor))
);
assert_eq!(
::std::mem::align_of::<AVCodecDescriptor>(),
8usize,
concat!("Alignment of ", stringify!(AVCodecDescriptor))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).id) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVCodecDescriptor),
"::",
stringify!(id)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(AVCodecDescriptor),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVCodecDescriptor),
"::",
stringify!(name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).long_name) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVCodecDescriptor),
"::",
stringify!(long_name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).props) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVCodecDescriptor),
"::",
stringify!(props)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).mime_types) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVCodecDescriptor),
"::",
stringify!(mime_types)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).profiles) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVCodecDescriptor),
"::",
stringify!(profiles)
)
);
}
extern "C" {
#[doc = " @return descriptor for given codec ID or NULL if no descriptor exists."]
pub fn avcodec_descriptor_get(id: AVCodecID) -> *const AVCodecDescriptor;
}
extern "C" {
#[doc = " Iterate over all codec descriptors known to libavcodec.\n\n @param prev previous descriptor. NULL to get the first descriptor.\n\n @return next descriptor or NULL after the last descriptor"]
pub fn avcodec_descriptor_next(prev: *const AVCodecDescriptor) -> *const AVCodecDescriptor;
}
extern "C" {
#[doc = " @return codec descriptor with the given name or NULL if no such descriptor\n exists."]
pub fn avcodec_descriptor_get_by_name(name: *const libc::c_char) -> *const AVCodecDescriptor;
}
#[repr(i32)]
#[doc = " @ingroup lavc_decoding"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVDiscard {
#[doc = "< discard nothing"]
AVDISCARD_NONE = -16,
#[doc = "< discard useless packets like 0 size packets in avi"]
AVDISCARD_DEFAULT = 0,
#[doc = "< discard all non reference"]
AVDISCARD_NONREF = 8,
#[doc = "< discard all bidirectional frames"]
AVDISCARD_BIDIR = 16,
#[doc = "< discard all non intra frames"]
AVDISCARD_NONINTRA = 24,
#[doc = "< discard all frames except keyframes"]
AVDISCARD_NONKEY = 32,
#[doc = "< discard all"]
AVDISCARD_ALL = 48,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVAudioServiceType {
AV_AUDIO_SERVICE_TYPE_MAIN = 0,
AV_AUDIO_SERVICE_TYPE_EFFECTS = 1,
AV_AUDIO_SERVICE_TYPE_VISUALLY_IMPAIRED = 2,
AV_AUDIO_SERVICE_TYPE_HEARING_IMPAIRED = 3,
AV_AUDIO_SERVICE_TYPE_DIALOGUE = 4,
AV_AUDIO_SERVICE_TYPE_COMMENTARY = 5,
AV_AUDIO_SERVICE_TYPE_EMERGENCY = 6,
AV_AUDIO_SERVICE_TYPE_VOICE_OVER = 7,
AV_AUDIO_SERVICE_TYPE_KARAOKE = 8,
#[doc = "< Not part of ABI"]
AV_AUDIO_SERVICE_TYPE_NB = 9,
}
#[doc = " @ingroup lavc_encoding"]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq)]
pub struct RcOverride {
pub start_frame: libc::c_int,
pub end_frame: libc::c_int,
pub qscale: libc::c_int,
pub quality_factor: f32,
}
#[test]
fn bindgen_test_layout_RcOverride() {
const UNINIT: ::std::mem::MaybeUninit<RcOverride> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<RcOverride>(),
16usize,
concat!("Size of: ", stringify!(RcOverride))
);
assert_eq!(
::std::mem::align_of::<RcOverride>(),
4usize,
concat!("Alignment of ", stringify!(RcOverride))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).start_frame) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(RcOverride),
"::",
stringify!(start_frame)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).end_frame) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(RcOverride),
"::",
stringify!(end_frame)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).qscale) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(RcOverride),
"::",
stringify!(qscale)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).quality_factor) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(RcOverride),
"::",
stringify!(quality_factor)
)
);
}
#[doc = " Pan Scan area.\n This specifies the area which should be displayed.\n Note there may be multiple such areas for one frame."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVPanScan {
#[doc = " id\n - encoding: Set by user.\n - decoding: Set by libavcodec."]
pub id: libc::c_int,
#[doc = " width and height in 1/16 pel\n - encoding: Set by user.\n - decoding: Set by libavcodec."]
pub width: libc::c_int,
pub height: libc::c_int,
#[doc = " position of the top left corner in 1/16 pel for up to 3 fields/frames\n - encoding: Set by user.\n - decoding: Set by libavcodec."]
pub position: [[i16; 2usize]; 3usize],
}
#[test]
fn bindgen_test_layout_AVPanScan() {
const UNINIT: ::std::mem::MaybeUninit<AVPanScan> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVPanScan>(),
24usize,
concat!("Size of: ", stringify!(AVPanScan))
);
assert_eq!(
::std::mem::align_of::<AVPanScan>(),
4usize,
concat!("Alignment of ", stringify!(AVPanScan))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).id) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVPanScan),
"::",
stringify!(id)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(AVPanScan),
"::",
stringify!(width)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).height) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVPanScan),
"::",
stringify!(height)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).position) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(AVPanScan),
"::",
stringify!(position)
)
);
}
#[doc = " This structure describes the bitrate properties of an encoded bitstream. It\n roughly corresponds to a subset the VBV parameters for MPEG-2 or HRD\n parameters for H.264/HEVC."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVCPBProperties {
pub max_bitrate: libc::c_int,
pub min_bitrate: libc::c_int,
pub avg_bitrate: libc::c_int,
#[doc = " The size of the buffer to which the ratecontrol is applied, in bits.\n Zero if unknown or unspecified."]
pub buffer_size: libc::c_int,
#[doc = " The delay between the time the packet this structure is associated with\n is received and the time when it should be decoded, in periods of a 27MHz\n clock.\n\n UINT64_MAX when unknown or unspecified."]
pub vbv_delay: u64,
}
#[test]
fn bindgen_test_layout_AVCPBProperties() {
const UNINIT: ::std::mem::MaybeUninit<AVCPBProperties> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVCPBProperties>(),
24usize,
concat!("Size of: ", stringify!(AVCPBProperties))
);
assert_eq!(
::std::mem::align_of::<AVCPBProperties>(),
8usize,
concat!("Alignment of ", stringify!(AVCPBProperties))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_bitrate) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVCPBProperties),
"::",
stringify!(max_bitrate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).min_bitrate) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(AVCPBProperties),
"::",
stringify!(min_bitrate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).avg_bitrate) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVCPBProperties),
"::",
stringify!(avg_bitrate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).buffer_size) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(AVCPBProperties),
"::",
stringify!(buffer_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).vbv_delay) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVCPBProperties),
"::",
stringify!(vbv_delay)
)
);
}
#[doc = " This structure supplies correlation between a packet timestamp and a wall clock\n production time. The definition follows the Producer Reference Time ('prft')\n as defined in ISO/IEC 14496-12"]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVProducerReferenceTime {
#[doc = " A UTC timestamp, in microseconds, since Unix epoch (e.g, av_gettime())."]
pub wallclock: i64,
pub flags: libc::c_int,
}
#[test]
fn bindgen_test_layout_AVProducerReferenceTime() {
const UNINIT: ::std::mem::MaybeUninit<AVProducerReferenceTime> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVProducerReferenceTime>(),
16usize,
concat!("Size of: ", stringify!(AVProducerReferenceTime))
);
assert_eq!(
::std::mem::align_of::<AVProducerReferenceTime>(),
8usize,
concat!("Alignment of ", stringify!(AVProducerReferenceTime))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).wallclock) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVProducerReferenceTime),
"::",
stringify!(wallclock)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVProducerReferenceTime),
"::",
stringify!(flags)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVCodecInternal {
_unused: [u8; 0],
}
#[doc = " main external API structure.\n New fields can be added to the end with minor version bumps.\n Removal, reordering and changes to existing fields require a major\n version bump.\n You can use AVOptions (av_opt* / av_set/get*()) to access these fields from user\n applications.\n The name string for AVOptions options matches the associated command line\n parameter name and can be found in libavcodec/options_table.h\n The AVOption/command line parameter names differ in some cases from the C\n structure field names for historic reasons or brevity.\n sizeof(AVCodecContext) must not be used outside libav*."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq)]
pub struct AVCodecContext {
#[doc = " information on struct for av_log\n - set by avcodec_alloc_context3"]
pub av_class: *const AVClass,
pub log_level_offset: libc::c_int,
pub codec_type: AVMediaType,
pub codec: *const AVCodec,
pub codec_id: AVCodecID,
#[doc = " fourcc (LSB first, so \"ABCD\" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').\n This is used to work around some encoder bugs.\n A demuxer should set this to what is stored in the field used to identify the codec.\n If there are multiple such fields in a container then the demuxer should choose the one\n which maximizes the information about the used codec.\n If the codec tag field in a container is larger than 32 bits then the demuxer should\n remap the longer ID to 32 bits with a table or other structure. Alternatively a new\n extra_codec_tag + size could be added but for this a clear advantage must be demonstrated\n first.\n - encoding: Set by user, if not then the default based on codec_id will be used.\n - decoding: Set by user, will be converted to uppercase by libavcodec during init."]
pub codec_tag: libc::c_uint,
pub priv_data: *mut libc::c_void,
#[doc = " Private context used for internal data.\n\n Unlike priv_data, this is not codec-specific. It is used in general\n libavcodec functions."]
pub internal: *mut AVCodecInternal,
#[doc = " Private data of the user, can be used to carry app specific stuff.\n - encoding: Set by user.\n - decoding: Set by user."]
pub opaque: *mut libc::c_void,
#[doc = " the average bitrate\n - encoding: Set by user; unused for constant quantizer encoding.\n - decoding: Set by user, may be overwritten by libavcodec\n if this info is available in the stream"]
pub bit_rate: i64,
#[doc = " number of bits the bitstream is allowed to diverge from the reference.\n the reference can be CBR (for CBR pass1) or VBR (for pass2)\n - encoding: Set by user; unused for constant quantizer encoding.\n - decoding: unused"]
pub bit_rate_tolerance: libc::c_int,
#[doc = " Global quality for codecs which cannot change it per frame.\n This should be proportional to MPEG-1/2/4 qscale.\n - encoding: Set by user.\n - decoding: unused"]
pub global_quality: libc::c_int,
#[doc = " - encoding: Set by user.\n - decoding: unused"]
pub compression_level: libc::c_int,
#[doc = " AV_CODEC_FLAG_*.\n - encoding: Set by user.\n - decoding: Set by user."]
pub flags: libc::c_int,
#[doc = " AV_CODEC_FLAG2_*\n - encoding: Set by user.\n - decoding: Set by user."]
pub flags2: libc::c_int,
#[doc = " some codecs need / can use extradata like Huffman tables.\n MJPEG: Huffman tables\n rv10: additional flags\n MPEG-4: global headers (they can be in the bitstream or here)\n The allocated memory should be AV_INPUT_BUFFER_PADDING_SIZE bytes larger\n than extradata_size to avoid problems if it is read with the bitstream reader.\n The bytewise contents of extradata must not depend on the architecture or CPU endianness.\n Must be allocated with the av_malloc() family of functions.\n - encoding: Set/allocated/freed by libavcodec.\n - decoding: Set/allocated/freed by user."]
pub extradata: *mut u8,
pub extradata_size: libc::c_int,
#[doc = " This is the fundamental unit of time (in seconds) in terms\n of which frame timestamps are represented. For fixed-fps content,\n timebase should be 1/framerate and timestamp increments should be\n identically 1.\n This often, but not always is the inverse of the frame rate or field rate\n for video. 1/time_base is not the average frame rate if the frame rate is not\n constant.\n\n Like containers, elementary streams also can store timestamps, 1/time_base\n is the unit in which these timestamps are specified.\n As example of such codec time base see ISO/IEC 14496-2:2001(E)\n vop_time_increment_resolution and fixed_vop_rate\n (fixed_vop_rate == 0 implies that it is different from the framerate)\n\n - encoding: MUST be set by user.\n - decoding: the use of this field for decoding is deprecated.\n Use framerate instead."]
pub time_base: AVRational,
#[doc = " For some codecs, the time base is closer to the field rate than the frame rate.\n Most notably, H.264 and MPEG-2 specify time_base as half of frame duration\n if no telecine is used ...\n\n Set to time_base ticks per frame. Default 1, e.g., H.264/MPEG-2 set it to 2."]
pub ticks_per_frame: libc::c_int,
#[doc = " Codec delay.\n\n Encoding: Number of frames delay there will be from the encoder input to\n the decoder output. (we assume the decoder matches the spec)\n Decoding: Number of frames delay in addition to what a standard decoder\n as specified in the spec would produce.\n\n Video:\n Number of frames the decoded output will be delayed relative to the\n encoded input.\n\n Audio:\n For encoding, this field is unused (see initial_padding).\n\n For decoding, this is the number of samples the decoder needs to\n output before the decoder's output is valid. When seeking, you should\n start decoding this many samples prior to your desired seek point.\n\n - encoding: Set by libavcodec.\n - decoding: Set by libavcodec."]
pub delay: libc::c_int,
#[doc = " picture width / height.\n\n @note Those fields may not match the values of the last\n AVFrame output by avcodec_decode_video2 due frame\n reordering.\n\n - encoding: MUST be set by user.\n - decoding: May be set by the user before opening the decoder if known e.g.\n from the container. Some decoders will require the dimensions\n to be set by the caller. During decoding, the decoder may\n overwrite those values as required while parsing the data."]
pub width: libc::c_int,
#[doc = " picture width / height.\n\n @note Those fields may not match the values of the last\n AVFrame output by avcodec_decode_video2 due frame\n reordering.\n\n - encoding: MUST be set by user.\n - decoding: May be set by the user before opening the decoder if known e.g.\n from the container. Some decoders will require the dimensions\n to be set by the caller. During decoding, the decoder may\n overwrite those values as required while parsing the data."]
pub height: libc::c_int,
#[doc = " Bitstream width / height, may be different from width/height e.g. when\n the decoded frame is cropped before being output or lowres is enabled.\n\n @note Those field may not match the value of the last\n AVFrame output by avcodec_receive_frame() due frame\n reordering.\n\n - encoding: unused\n - decoding: May be set by the user before opening the decoder if known\n e.g. from the container. During decoding, the decoder may\n overwrite those values as required while parsing the data."]
pub coded_width: libc::c_int,
#[doc = " Bitstream width / height, may be different from width/height e.g. when\n the decoded frame is cropped before being output or lowres is enabled.\n\n @note Those field may not match the value of the last\n AVFrame output by avcodec_receive_frame() due frame\n reordering.\n\n - encoding: unused\n - decoding: May be set by the user before opening the decoder if known\n e.g. from the container. During decoding, the decoder may\n overwrite those values as required while parsing the data."]
pub coded_height: libc::c_int,
#[doc = " the number of pictures in a group of pictures, or 0 for intra_only\n - encoding: Set by user.\n - decoding: unused"]
pub gop_size: libc::c_int,
#[doc = " Pixel format, see AV_PIX_FMT_xxx.\n May be set by the demuxer if known from headers.\n May be overridden by the decoder if it knows better.\n\n @note This field may not match the value of the last\n AVFrame output by avcodec_receive_frame() due frame\n reordering.\n\n - encoding: Set by user.\n - decoding: Set by user if known, overridden by libavcodec while\n parsing the data."]
pub pix_fmt: AVPixelFormat,
#[doc = " If non NULL, 'draw_horiz_band' is called by the libavcodec\n decoder to draw a horizontal band. It improves cache usage. Not\n all codecs can do that. You must check the codec capabilities\n beforehand.\n When multithreading is used, it may be called from multiple threads\n at the same time; threads might draw different parts of the same AVFrame,\n or multiple AVFrames, and there is no guarantee that slices will be drawn\n in order.\n The function is also used by hardware acceleration APIs.\n It is called at least once during frame decoding to pass\n the data needed for hardware render.\n In that mode instead of pixel data, AVFrame points to\n a structure specific to the acceleration API. The application\n reads the structure and can change some fields to indicate progress\n or mark state.\n - encoding: unused\n - decoding: Set by user.\n @param height the height of the slice\n @param y the y position of the slice\n @param type 1->top field, 2->bottom field, 3->frame\n @param offset offset into the AVFrame.data from which the slice should be read"]
pub draw_horiz_band: ::std::option::Option<
unsafe extern "C" fn(
s: *mut AVCodecContext,
src: *const AVFrame,
offset: *mut libc::c_int,
y: libc::c_int,
type_: libc::c_int,
height: libc::c_int,
),
>,
#[doc = " callback to negotiate the pixelFormat\n @param fmt is the list of formats which are supported by the codec,\n it is terminated by -1 as 0 is a valid format, the formats are ordered by quality.\n The first is always the native one.\n @note The callback may be called again immediately if initialization for\n the selected (hardware-accelerated) pixel format failed.\n @warning Behavior is undefined if the callback returns a value not\n in the fmt list of formats.\n @return the chosen format\n - encoding: unused\n - decoding: Set by user, if not set the native format will be chosen."]
pub get_format: ::std::option::Option<
unsafe extern "C" fn(s: *mut AVCodecContext, fmt: *const AVPixelFormat) -> AVPixelFormat,
>,
#[doc = " maximum number of B-frames between non-B-frames\n Note: The output will be delayed by max_b_frames+1 relative to the input.\n - encoding: Set by user.\n - decoding: unused"]
pub max_b_frames: libc::c_int,
#[doc = " qscale factor between IP and B-frames\n If > 0 then the last P-frame quantizer will be used (q= lastp_q*factor+offset).\n If < 0 then normal ratecontrol will be done (q= -normal_q*factor+offset).\n - encoding: Set by user.\n - decoding: unused"]
pub b_quant_factor: f32,
#[doc = " @deprecated use encoder private options instead"]
pub b_frame_strategy: libc::c_int,
#[doc = " qscale offset between IP and B-frames\n - encoding: Set by user.\n - decoding: unused"]
pub b_quant_offset: f32,
#[doc = " Size of the frame reordering buffer in the decoder.\n For MPEG-2 it is 1 IPB or 0 low delay IP.\n - encoding: Set by libavcodec.\n - decoding: Set by libavcodec."]
pub has_b_frames: libc::c_int,
#[doc = " @deprecated use encoder private options instead"]
pub mpeg_quant: libc::c_int,
#[doc = " qscale factor between P- and I-frames\n If > 0 then the last P-frame quantizer will be used (q = lastp_q * factor + offset).\n If < 0 then normal ratecontrol will be done (q= -normal_q*factor+offset).\n - encoding: Set by user.\n - decoding: unused"]
pub i_quant_factor: f32,
#[doc = " qscale offset between P and I-frames\n - encoding: Set by user.\n - decoding: unused"]
pub i_quant_offset: f32,
#[doc = " luminance masking (0-> disabled)\n - encoding: Set by user.\n - decoding: unused"]
pub lumi_masking: f32,
#[doc = " temporary complexity masking (0-> disabled)\n - encoding: Set by user.\n - decoding: unused"]
pub temporal_cplx_masking: f32,
#[doc = " spatial complexity masking (0-> disabled)\n - encoding: Set by user.\n - decoding: unused"]
pub spatial_cplx_masking: f32,
#[doc = " p block masking (0-> disabled)\n - encoding: Set by user.\n - decoding: unused"]
pub p_masking: f32,
#[doc = " darkness masking (0-> disabled)\n - encoding: Set by user.\n - decoding: unused"]
pub dark_masking: f32,
#[doc = " slice count\n - encoding: Set by libavcodec.\n - decoding: Set by user (or 0)."]
pub slice_count: libc::c_int,
#[doc = " @deprecated use encoder private options instead"]
pub prediction_method: libc::c_int,
#[doc = " slice offsets in the frame in bytes\n - encoding: Set/allocated by libavcodec.\n - decoding: Set/allocated by user (or NULL)."]
pub slice_offset: *mut libc::c_int,
#[doc = " sample aspect ratio (0 if unknown)\n That is the width of a pixel divided by the height of the pixel.\n Numerator and denominator must be relatively prime and smaller than 256 for some video standards.\n - encoding: Set by user.\n - decoding: Set by libavcodec."]
pub sample_aspect_ratio: AVRational,
#[doc = " motion estimation comparison function\n - encoding: Set by user.\n - decoding: unused"]
pub me_cmp: libc::c_int,
#[doc = " subpixel motion estimation comparison function\n - encoding: Set by user.\n - decoding: unused"]
pub me_sub_cmp: libc::c_int,
#[doc = " macroblock comparison function (not supported yet)\n - encoding: Set by user.\n - decoding: unused"]
pub mb_cmp: libc::c_int,
#[doc = " interlaced DCT comparison function\n - encoding: Set by user.\n - decoding: unused"]
pub ildct_cmp: libc::c_int,
#[doc = " ME diamond size & shape\n - encoding: Set by user.\n - decoding: unused"]
pub dia_size: libc::c_int,
#[doc = " amount of previous MV predictors (2a+1 x 2a+1 square)\n - encoding: Set by user.\n - decoding: unused"]
pub last_predictor_count: libc::c_int,
#[doc = " @deprecated use encoder private options instead"]
pub pre_me: libc::c_int,
#[doc = " motion estimation prepass comparison function\n - encoding: Set by user.\n - decoding: unused"]
pub me_pre_cmp: libc::c_int,
#[doc = " ME prepass diamond size & shape\n - encoding: Set by user.\n - decoding: unused"]
pub pre_dia_size: libc::c_int,
#[doc = " subpel ME quality\n - encoding: Set by user.\n - decoding: unused"]
pub me_subpel_quality: libc::c_int,
#[doc = " maximum motion estimation search range in subpel units\n If 0 then no limit.\n\n - encoding: Set by user.\n - decoding: unused"]
pub me_range: libc::c_int,
#[doc = " slice flags\n - encoding: unused\n - decoding: Set by user."]
pub slice_flags: libc::c_int,
#[doc = " macroblock decision mode\n - encoding: Set by user.\n - decoding: unused"]
pub mb_decision: libc::c_int,
#[doc = " custom intra quantization matrix\n Must be allocated with the av_malloc() family of functions, and will be freed in\n avcodec_free_context().\n - encoding: Set/allocated by user, freed by libavcodec. Can be NULL.\n - decoding: Set/allocated/freed by libavcodec."]
pub intra_matrix: *mut u16,
#[doc = " custom inter quantization matrix\n Must be allocated with the av_malloc() family of functions, and will be freed in\n avcodec_free_context().\n - encoding: Set/allocated by user, freed by libavcodec. Can be NULL.\n - decoding: Set/allocated/freed by libavcodec."]
pub inter_matrix: *mut u16,
#[doc = " @deprecated use encoder private options instead"]
pub scenechange_threshold: libc::c_int,
#[doc = " @deprecated use encoder private options instead"]
pub noise_reduction: libc::c_int,
#[doc = " precision of the intra DC coefficient - 8\n - encoding: Set by user.\n - decoding: Set by libavcodec"]
pub intra_dc_precision: libc::c_int,
#[doc = " Number of macroblock rows at the top which are skipped.\n - encoding: unused\n - decoding: Set by user."]
pub skip_top: libc::c_int,
#[doc = " Number of macroblock rows at the bottom which are skipped.\n - encoding: unused\n - decoding: Set by user."]
pub skip_bottom: libc::c_int,
#[doc = " minimum MB Lagrange multiplier\n - encoding: Set by user.\n - decoding: unused"]
pub mb_lmin: libc::c_int,
#[doc = " maximum MB Lagrange multiplier\n - encoding: Set by user.\n - decoding: unused"]
pub mb_lmax: libc::c_int,
#[doc = " @deprecated use encoder private options instead"]
pub me_penalty_compensation: libc::c_int,
#[doc = " - encoding: Set by user.\n - decoding: unused"]
pub bidir_refine: libc::c_int,
#[doc = " @deprecated use encoder private options instead"]
pub brd_scale: libc::c_int,
#[doc = " minimum GOP size\n - encoding: Set by user.\n - decoding: unused"]
pub keyint_min: libc::c_int,
#[doc = " number of reference frames\n - encoding: Set by user.\n - decoding: Set by lavc."]
pub refs: libc::c_int,
#[doc = " @deprecated use encoder private options instead"]
pub chromaoffset: libc::c_int,
#[doc = " Note: Value depends upon the compare function used for fullpel ME.\n - encoding: Set by user.\n - decoding: unused"]
pub mv0_threshold: libc::c_int,
#[doc = " @deprecated use encoder private options instead"]
pub b_sensitivity: libc::c_int,
#[doc = " Chromaticity coordinates of the source primaries.\n - encoding: Set by user\n - decoding: Set by libavcodec"]
pub color_primaries: AVColorPrimaries,
#[doc = " Color Transfer Characteristic.\n - encoding: Set by user\n - decoding: Set by libavcodec"]
pub color_trc: AVColorTransferCharacteristic,
#[doc = " YUV colorspace type.\n - encoding: Set by user\n - decoding: Set by libavcodec"]
pub colorspace: AVColorSpace,
#[doc = " MPEG vs JPEG YUV range.\n - encoding: Set by user\n - decoding: Set by libavcodec"]
pub color_range: AVColorRange,
#[doc = " This defines the location of chroma samples.\n - encoding: Set by user\n - decoding: Set by libavcodec"]
pub chroma_sample_location: AVChromaLocation,
#[doc = " Number of slices.\n Indicates number of picture subdivisions. Used for parallelized\n decoding.\n - encoding: Set by user\n - decoding: unused"]
pub slices: libc::c_int,
#[doc = " Field order\n - encoding: set by libavcodec\n - decoding: Set by user."]
pub field_order: AVFieldOrder,
#[doc = "< samples per second"]
pub sample_rate: libc::c_int,
#[doc = "< number of audio channels"]
pub channels: libc::c_int,
#[doc = "< sample format"]
pub sample_fmt: AVSampleFormat,
#[doc = " Number of samples per channel in an audio frame.\n\n - encoding: set by libavcodec in avcodec_open2(). Each submitted frame\n except the last must contain exactly frame_size samples per channel.\n May be 0 when the codec has AV_CODEC_CAP_VARIABLE_FRAME_SIZE set, then the\n frame size is not restricted.\n - decoding: may be set by some decoders to indicate constant frame size"]
pub frame_size: libc::c_int,
#[doc = " Frame counter, set by libavcodec.\n\n - decoding: total number of frames returned from the decoder so far.\n - encoding: total number of frames passed to the encoder so far.\n\n @note the counter is not incremented if encoding/decoding resulted in\n an error."]
pub frame_number: libc::c_int,
#[doc = " number of bytes per packet if constant and known or 0\n Used by some WAV based audio codecs."]
pub block_align: libc::c_int,
#[doc = " Audio cutoff bandwidth (0 means \"automatic\")\n - encoding: Set by user.\n - decoding: unused"]
pub cutoff: libc::c_int,
#[doc = " Audio channel layout.\n - encoding: set by user.\n - decoding: set by user, may be overwritten by libavcodec."]
pub channel_layout: u64,
#[doc = " Request decoder to use this channel layout if it can (0 for default)\n - encoding: unused\n - decoding: Set by user."]
pub request_channel_layout: u64,
#[doc = " Type of service that the audio stream conveys.\n - encoding: Set by user.\n - decoding: Set by libavcodec."]
pub audio_service_type: AVAudioServiceType,
#[doc = " desired sample format\n - encoding: Not used.\n - decoding: Set by user.\n Decoder will decode to this format if it can."]
pub request_sample_fmt: AVSampleFormat,
#[doc = " This callback is called at the beginning of each frame to get data\n buffer(s) for it. There may be one contiguous buffer for all the data or\n there may be a buffer per each data plane or anything in between. What\n this means is, you may set however many entries in buf[] you feel necessary.\n Each buffer must be reference-counted using the AVBuffer API (see description\n of buf[] below).\n\n The following fields will be set in the frame before this callback is\n called:\n - format\n - width, height (video only)\n - sample_rate, channel_layout, nb_samples (audio only)\n Their values may differ from the corresponding values in\n AVCodecContext. This callback must use the frame values, not the codec\n context values, to calculate the required buffer size.\n\n This callback must fill the following fields in the frame:\n - data[]\n - linesize[]\n - extended_data:\n * if the data is planar audio with more than 8 channels, then this\n callback must allocate and fill extended_data to contain all pointers\n to all data planes. data[] must hold as many pointers as it can.\n extended_data must be allocated with av_malloc() and will be freed in\n av_frame_unref().\n * otherwise extended_data must point to data\n - buf[] must contain one or more pointers to AVBufferRef structures. Each of\n the frame's data and extended_data pointers must be contained in these. That\n is, one AVBufferRef for each allocated chunk of memory, not necessarily one\n AVBufferRef per data[] entry. See: av_buffer_create(), av_buffer_alloc(),\n and av_buffer_ref().\n - extended_buf and nb_extended_buf must be allocated with av_malloc() by\n this callback and filled with the extra buffers if there are more\n buffers than buf[] can hold. extended_buf will be freed in\n av_frame_unref().\n\n If AV_CODEC_CAP_DR1 is not set then get_buffer2() must call\n avcodec_default_get_buffer2() instead of providing buffers allocated by\n some other means.\n\n Each data plane must be aligned to the maximum required by the target\n CPU.\n\n @see avcodec_default_get_buffer2()\n\n Video:\n\n If AV_GET_BUFFER_FLAG_REF is set in flags then the frame may be reused\n (read and/or written to if it is writable) later by libavcodec.\n\n avcodec_align_dimensions2() should be used to find the required width and\n height, as they normally need to be rounded up to the next multiple of 16.\n\n Some decoders do not support linesizes changing between frames.\n\n If frame multithreading is used, this callback may be called from a\n different thread, but not from more than one at once. Does not need to be\n reentrant.\n\n @see avcodec_align_dimensions2()\n\n Audio:\n\n Decoders request a buffer of a particular size by setting\n AVFrame.nb_samples prior to calling get_buffer2(). The decoder may,\n however, utilize only part of the buffer by setting AVFrame.nb_samples\n to a smaller value in the output frame.\n\n As a convenience, av_samples_get_buffer_size() and\n av_samples_fill_arrays() in libavutil may be used by custom get_buffer2()\n functions to find the required data size and to fill data pointers and\n linesize. In AVFrame.linesize, only linesize[0] may be set for audio\n since all planes must be the same size.\n\n @see av_samples_get_buffer_size(), av_samples_fill_arrays()\n\n - encoding: unused\n - decoding: Set by libavcodec, user can override."]
pub get_buffer2: ::std::option::Option<
unsafe extern "C" fn(
s: *mut AVCodecContext,
frame: *mut AVFrame,
flags: libc::c_int,
) -> libc::c_int,
>,
#[doc = " If non-zero, the decoded audio and video frames returned from\n avcodec_decode_video2() and avcodec_decode_audio4() are reference-counted\n and are valid indefinitely. The caller must free them with\n av_frame_unref() when they are not needed anymore.\n Otherwise, the decoded frames must not be freed by the caller and are\n only valid until the next decode call.\n\n This is always automatically enabled if avcodec_receive_frame() is used.\n\n - encoding: unused\n - decoding: set by the caller before avcodec_open2()."]
pub refcounted_frames: libc::c_int,
#[doc = "< amount of qscale change between easy & hard scenes (0.0-1.0)"]
pub qcompress: f32,
#[doc = "< amount of qscale smoothing over time (0.0-1.0)"]
pub qblur: f32,
#[doc = " minimum quantizer\n - encoding: Set by user.\n - decoding: unused"]
pub qmin: libc::c_int,
#[doc = " maximum quantizer\n - encoding: Set by user.\n - decoding: unused"]
pub qmax: libc::c_int,
#[doc = " maximum quantizer difference between frames\n - encoding: Set by user.\n - decoding: unused"]
pub max_qdiff: libc::c_int,
#[doc = " decoder bitstream buffer size\n - encoding: Set by user.\n - decoding: unused"]
pub rc_buffer_size: libc::c_int,
#[doc = " ratecontrol override, see RcOverride\n - encoding: Allocated/set/freed by user.\n - decoding: unused"]
pub rc_override_count: libc::c_int,
pub rc_override: *mut RcOverride,
#[doc = " maximum bitrate\n - encoding: Set by user.\n - decoding: Set by user, may be overwritten by libavcodec."]
pub rc_max_rate: i64,
#[doc = " minimum bitrate\n - encoding: Set by user.\n - decoding: unused"]
pub rc_min_rate: i64,
#[doc = " Ratecontrol attempt to use, at maximum, <value> of what can be used without an underflow.\n - encoding: Set by user.\n - decoding: unused."]
pub rc_max_available_vbv_use: f32,
#[doc = " Ratecontrol attempt to use, at least, <value> times the amount needed to prevent a vbv overflow.\n - encoding: Set by user.\n - decoding: unused."]
pub rc_min_vbv_overflow_use: f32,
#[doc = " Number of bits which should be loaded into the rc buffer before decoding starts.\n - encoding: Set by user.\n - decoding: unused"]
pub rc_initial_buffer_occupancy: libc::c_int,
#[doc = " @deprecated use encoder private options instead"]
pub coder_type: libc::c_int,
#[doc = " @deprecated use encoder private options instead"]
pub context_model: libc::c_int,
#[doc = " @deprecated use encoder private options instead"]
pub frame_skip_threshold: libc::c_int,
#[doc = " @deprecated use encoder private options instead"]
pub frame_skip_factor: libc::c_int,
#[doc = " @deprecated use encoder private options instead"]
pub frame_skip_exp: libc::c_int,
#[doc = " @deprecated use encoder private options instead"]
pub frame_skip_cmp: libc::c_int,
#[doc = " trellis RD quantization\n - encoding: Set by user.\n - decoding: unused"]
pub trellis: libc::c_int,
#[doc = " @deprecated use encoder private options instead"]
pub min_prediction_order: libc::c_int,
#[doc = " @deprecated use encoder private options instead"]
pub max_prediction_order: libc::c_int,
#[doc = " @deprecated use encoder private options instead"]
pub timecode_frame_start: i64,
#[doc = " @deprecated unused"]
pub rtp_callback: ::std::option::Option<
unsafe extern "C" fn(
avctx: *mut AVCodecContext,
data: *mut libc::c_void,
size: libc::c_int,
mb_nb: libc::c_int,
),
>,
#[doc = " @deprecated use encoder private options instead"]
pub rtp_payload_size: libc::c_int,
pub mv_bits: libc::c_int,
pub header_bits: libc::c_int,
pub i_tex_bits: libc::c_int,
pub p_tex_bits: libc::c_int,
pub i_count: libc::c_int,
pub p_count: libc::c_int,
pub skip_count: libc::c_int,
pub misc_bits: libc::c_int,
#[doc = " @deprecated this field is unused"]
pub frame_bits: libc::c_int,
#[doc = " pass1 encoding statistics output buffer\n - encoding: Set by libavcodec.\n - decoding: unused"]
pub stats_out: *mut libc::c_char,
#[doc = " pass2 encoding statistics input buffer\n Concatenated stuff from stats_out of pass1 should be placed here.\n - encoding: Allocated/set/freed by user.\n - decoding: unused"]
pub stats_in: *mut libc::c_char,
#[doc = " Work around bugs in encoders which sometimes cannot be detected automatically.\n - encoding: Set by user\n - decoding: Set by user"]
pub workaround_bugs: libc::c_int,
#[doc = " strictly follow the standard (MPEG-4, ...).\n - encoding: Set by user.\n - decoding: Set by user.\n Setting this to STRICT or higher means the encoder and decoder will\n generally do stupid things, whereas setting it to unofficial or lower\n will mean the encoder might produce output that is not supported by all\n spec-compliant decoders. Decoders don't differentiate between normal,\n unofficial and experimental (that is, they always try to decode things\n when they can) unless they are explicitly asked to behave stupidly\n (=strictly conform to the specs)"]
pub strict_std_compliance: libc::c_int,
#[doc = " error concealment flags\n - encoding: unused\n - decoding: Set by user."]
pub error_concealment: libc::c_int,
#[doc = " debug\n - encoding: Set by user.\n - decoding: Set by user."]
pub debug: libc::c_int,
#[doc = " Error recognition; may misdetect some more or less valid parts as errors.\n - encoding: Set by user.\n - decoding: Set by user."]
pub err_recognition: libc::c_int,
#[doc = " opaque 64-bit number (generally a PTS) that will be reordered and\n output in AVFrame.reordered_opaque\n - encoding: Set by libavcodec to the reordered_opaque of the input\n frame corresponding to the last returned packet. Only\n supported by encoders with the\n AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE capability.\n - decoding: Set by user."]
pub reordered_opaque: i64,
#[doc = " Hardware accelerator in use\n - encoding: unused.\n - decoding: Set by libavcodec"]
pub hwaccel: *const AVHWAccel,
#[doc = " Hardware accelerator context.\n For some hardware accelerators, a global context needs to be\n provided by the user. In that case, this holds display-dependent\n data FFmpeg cannot instantiate itself. Please refer to the\n FFmpeg HW accelerator documentation to know how to fill this\n is. e.g. for VA API, this is a struct vaapi_context.\n - encoding: unused\n - decoding: Set by user"]
pub hwaccel_context: *mut libc::c_void,
#[doc = " error\n - encoding: Set by libavcodec if flags & AV_CODEC_FLAG_PSNR.\n - decoding: unused"]
pub error: [u64; 8usize],
#[doc = " DCT algorithm, see FF_DCT_* below\n - encoding: Set by user.\n - decoding: unused"]
pub dct_algo: libc::c_int,
#[doc = " IDCT algorithm, see FF_IDCT_* below.\n - encoding: Set by user.\n - decoding: Set by user."]
pub idct_algo: libc::c_int,
#[doc = " bits per sample/pixel from the demuxer (needed for huffyuv).\n - encoding: Set by libavcodec.\n - decoding: Set by user."]
pub bits_per_coded_sample: libc::c_int,
#[doc = " Bits per sample/pixel of internal libavcodec pixel/sample format.\n - encoding: set by user.\n - decoding: set by libavcodec."]
pub bits_per_raw_sample: libc::c_int,
#[doc = " low resolution decoding, 1-> 1/2 size, 2->1/4 size\n - encoding: unused\n - decoding: Set by user."]
pub lowres: libc::c_int,
#[doc = " the picture in the bitstream\n - encoding: Set by libavcodec.\n - decoding: unused\n\n @deprecated use the quality factor packet side data instead"]
pub coded_frame: *mut AVFrame,
#[doc = " thread count\n is used to decide how many independent tasks should be passed to execute()\n - encoding: Set by user.\n - decoding: Set by user."]
pub thread_count: libc::c_int,
#[doc = " Which multithreading methods to use.\n Use of FF_THREAD_FRAME will increase decoding delay by one frame per thread,\n so clients which cannot provide future frames should not use it.\n\n - encoding: Set by user, otherwise the default is used.\n - decoding: Set by user, otherwise the default is used."]
pub thread_type: libc::c_int,
#[doc = " Which multithreading methods are in use by the codec.\n - encoding: Set by libavcodec.\n - decoding: Set by libavcodec."]
pub active_thread_type: libc::c_int,
#[doc = " Set by the client if its custom get_buffer() callback can be called\n synchronously from another thread, which allows faster multithreaded decoding.\n draw_horiz_band() will be called from other threads regardless of this setting.\n Ignored if the default get_buffer() is used.\n - encoding: Set by user.\n - decoding: Set by user.\n\n @deprecated the custom get_buffer2() callback should always be\n thread-safe. Thread-unsafe get_buffer2() implementations will be\n invalid starting with LIBAVCODEC_VERSION_MAJOR=60; in other words,\n libavcodec will behave as if this field was always set to 1.\n Callers that want to be forward compatible with future libavcodec\n versions should wrap access to this field in\n #if LIBAVCODEC_VERSION_MAJOR < 60"]
pub thread_safe_callbacks: libc::c_int,
#[doc = " The codec may call this to execute several independent things.\n It will return only after finishing all tasks.\n The user may replace this with some multithreaded implementation,\n the default implementation will execute the parts serially.\n @param count the number of things to execute\n - encoding: Set by libavcodec, user can override.\n - decoding: Set by libavcodec, user can override."]
pub execute: ::std::option::Option<
unsafe extern "C" fn(
c: *mut AVCodecContext,
func: ::std::option::Option<
unsafe extern "C" fn(
c2: *mut AVCodecContext,
arg: *mut libc::c_void,
) -> libc::c_int,
>,
arg2: *mut libc::c_void,
ret: *mut libc::c_int,
count: libc::c_int,
size: libc::c_int,
) -> libc::c_int,
>,
#[doc = " The codec may call this to execute several independent things.\n It will return only after finishing all tasks.\n The user may replace this with some multithreaded implementation,\n the default implementation will execute the parts serially.\n Also see avcodec_thread_init and e.g. the --enable-pthread configure option.\n @param c context passed also to func\n @param count the number of things to execute\n @param arg2 argument passed unchanged to func\n @param ret return values of executed functions, must have space for \"count\" values. May be NULL.\n @param func function that will be called count times, with jobnr from 0 to count-1.\n threadnr will be in the range 0 to c->thread_count-1 < MAX_THREADS and so that no\n two instances of func executing at the same time will have the same threadnr.\n @return always 0 currently, but code should handle a future improvement where when any call to func\n returns < 0 no further calls to func may be done and < 0 is returned.\n - encoding: Set by libavcodec, user can override.\n - decoding: Set by libavcodec, user can override."]
pub execute2: ::std::option::Option<
unsafe extern "C" fn(
c: *mut AVCodecContext,
func: ::std::option::Option<
unsafe extern "C" fn(
c2: *mut AVCodecContext,
arg: *mut libc::c_void,
jobnr: libc::c_int,
threadnr: libc::c_int,
) -> libc::c_int,
>,
arg2: *mut libc::c_void,
ret: *mut libc::c_int,
count: libc::c_int,
) -> libc::c_int,
>,
#[doc = " noise vs. sse weight for the nsse comparison function\n - encoding: Set by user.\n - decoding: unused"]
pub nsse_weight: libc::c_int,
#[doc = " profile\n - encoding: Set by user.\n - decoding: Set by libavcodec."]
pub profile: libc::c_int,
#[doc = " level\n - encoding: Set by user.\n - decoding: Set by libavcodec."]
pub level: libc::c_int,
#[doc = " Skip loop filtering for selected frames.\n - encoding: unused\n - decoding: Set by user."]
pub skip_loop_filter: AVDiscard,
#[doc = " Skip IDCT/dequantization for selected frames.\n - encoding: unused\n - decoding: Set by user."]
pub skip_idct: AVDiscard,
#[doc = " Skip decoding for selected frames.\n - encoding: unused\n - decoding: Set by user."]
pub skip_frame: AVDiscard,
#[doc = " Header containing style information for text subtitles.\n For SUBTITLE_ASS subtitle type, it should contain the whole ASS\n [Script Info] and [V4+ Styles] section, plus the [Events] line and\n the Format line following. It shouldn't include any Dialogue line.\n - encoding: Set/allocated/freed by user (before avcodec_open2())\n - decoding: Set/allocated/freed by libavcodec (by avcodec_open2())"]
pub subtitle_header: *mut u8,
pub subtitle_header_size: libc::c_int,
#[doc = " VBV delay coded in the last frame (in periods of a 27 MHz clock).\n Used for compliant TS muxing.\n - encoding: Set by libavcodec.\n - decoding: unused.\n @deprecated this value is now exported as a part of\n AV_PKT_DATA_CPB_PROPERTIES packet side data"]
pub vbv_delay: u64,
#[doc = " Encoding only and set by default. Allow encoders to output packets\n that do not contain any encoded data, only side data.\n\n Some encoders need to output such packets, e.g. to update some stream\n parameters at the end of encoding.\n\n @deprecated this field disables the default behaviour and\n it is kept only for compatibility."]
pub side_data_only_packets: libc::c_int,
#[doc = " Audio only. The number of \"priming\" samples (padding) inserted by the\n encoder at the beginning of the audio. I.e. this number of leading\n decoded samples must be discarded by the caller to get the original audio\n without leading padding.\n\n - decoding: unused\n - encoding: Set by libavcodec. The timestamps on the output packets are\n adjusted by the encoder so that they always refer to the\n first sample of the data actually contained in the packet,\n including any added padding. E.g. if the timebase is\n 1/samplerate and the timestamp of the first input sample is\n 0, the timestamp of the first output packet will be\n -initial_padding."]
pub initial_padding: libc::c_int,
#[doc = " - decoding: For codecs that store a framerate value in the compressed\n bitstream, the decoder may export it here. { 0, 1} when\n unknown.\n - encoding: May be used to signal the framerate of CFR content to an\n encoder."]
pub framerate: AVRational,
#[doc = " Nominal unaccelerated pixel format, see AV_PIX_FMT_xxx.\n - encoding: unused.\n - decoding: Set by libavcodec before calling get_format()"]
pub sw_pix_fmt: AVPixelFormat,
#[doc = " Timebase in which pkt_dts/pts and AVPacket.dts/pts are.\n - encoding unused.\n - decoding set by user."]
pub pkt_timebase: AVRational,
#[doc = " AVCodecDescriptor\n - encoding: unused.\n - decoding: set by libavcodec."]
pub codec_descriptor: *const AVCodecDescriptor,
#[doc = " Current statistics for PTS correction.\n - decoding: maintained and used by libavcodec, not intended to be used by user apps\n - encoding: unused"]
pub pts_correction_num_faulty_pts: i64,
#[doc = " Number of incorrect PTS values so far"]
pub pts_correction_num_faulty_dts: i64,
#[doc = " Number of incorrect DTS values so far"]
pub pts_correction_last_pts: i64,
#[doc = " PTS of the last frame"]
pub pts_correction_last_dts: i64,
#[doc = " Character encoding of the input subtitles file.\n - decoding: set by user\n - encoding: unused"]
pub sub_charenc: *mut libc::c_char,
#[doc = " Subtitles character encoding mode. Formats or codecs might be adjusting\n this setting (if they are doing the conversion themselves for instance).\n - decoding: set by libavcodec\n - encoding: unused"]
pub sub_charenc_mode: libc::c_int,
#[doc = " Skip processing alpha if supported by codec.\n Note that if the format uses pre-multiplied alpha (common with VP6,\n and recommended due to better video quality/compression)\n the image will look as if alpha-blended onto a black background.\n However for formats that do not use pre-multiplied alpha\n there might be serious artefacts (though e.g. libswscale currently\n assumes pre-multiplied alpha anyway).\n\n - decoding: set by user\n - encoding: unused"]
pub skip_alpha: libc::c_int,
#[doc = " Number of samples to skip after a discontinuity\n - decoding: unused\n - encoding: set by libavcodec"]
pub seek_preroll: libc::c_int,
#[doc = " @deprecated unused"]
pub debug_mv: libc::c_int,
#[doc = " custom intra quantization matrix\n - encoding: Set by user, can be NULL.\n - decoding: unused."]
pub chroma_intra_matrix: *mut u16,
#[doc = " dump format separator.\n can be \", \" or \"\\n \" or anything else\n - encoding: Set by user.\n - decoding: Set by user."]
pub dump_separator: *mut u8,
#[doc = " ',' separated list of allowed decoders.\n If NULL then all are allowed\n - encoding: unused\n - decoding: set by user"]
pub codec_whitelist: *mut libc::c_char,
#[doc = " Properties of the stream that gets decoded\n - encoding: unused\n - decoding: set by libavcodec"]
pub properties: libc::c_uint,
#[doc = " Additional data associated with the entire coded stream.\n\n - decoding: unused\n - encoding: may be set by libavcodec after avcodec_open2()."]
pub coded_side_data: *mut AVPacketSideData,
pub nb_coded_side_data: libc::c_int,
#[doc = " A reference to the AVHWFramesContext describing the input (for encoding)\n or output (decoding) frames. The reference is set by the caller and\n afterwards owned (and freed) by libavcodec - it should never be read by\n the caller after being set.\n\n - decoding: This field should be set by the caller from the get_format()\n callback. The previous reference (if any) will always be\n unreffed by libavcodec before the get_format() call.\n\n If the default get_buffer2() is used with a hwaccel pixel\n format, then this AVHWFramesContext will be used for\n allocating the frame buffers.\n\n - encoding: For hardware encoders configured to use a hwaccel pixel\n format, this field should be set by the caller to a reference\n to the AVHWFramesContext describing input frames.\n AVHWFramesContext.format must be equal to\n AVCodecContext.pix_fmt.\n\n This field should be set before avcodec_open2() is called."]
pub hw_frames_ctx: *mut AVBufferRef,
#[doc = " Control the form of AVSubtitle.rects[N]->ass\n - decoding: set by user\n - encoding: unused"]
pub sub_text_format: libc::c_int,
#[doc = " Audio only. The amount of padding (in samples) appended by the encoder to\n the end of the audio. I.e. this number of decoded samples must be\n discarded by the caller from the end of the stream to get the original\n audio without any trailing padding.\n\n - decoding: unused\n - encoding: unused"]
pub trailing_padding: libc::c_int,
#[doc = " The number of pixels per image to maximally accept.\n\n - decoding: set by user\n - encoding: set by user"]
pub max_pixels: i64,
#[doc = " A reference to the AVHWDeviceContext describing the device which will\n be used by a hardware encoder/decoder. The reference is set by the\n caller and afterwards owned (and freed) by libavcodec.\n\n This should be used if either the codec device does not require\n hardware frames or any that are used are to be allocated internally by\n libavcodec. If the user wishes to supply any of the frames used as\n encoder input or decoder output then hw_frames_ctx should be used\n instead. When hw_frames_ctx is set in get_format() for a decoder, this\n field will be ignored while decoding the associated stream segment, but\n may again be used on a following one after another get_format() call.\n\n For both encoders and decoders this field should be set before\n avcodec_open2() is called and must not be written to thereafter.\n\n Note that some decoders may require this field to be set initially in\n order to support hw_frames_ctx at all - in that case, all frames\n contexts used must be created on the same device."]
pub hw_device_ctx: *mut AVBufferRef,
#[doc = " Bit set of AV_HWACCEL_FLAG_* flags, which affect hardware accelerated\n decoding (if active).\n - encoding: unused\n - decoding: Set by user (either before avcodec_open2(), or in the\n AVCodecContext.get_format callback)"]
pub hwaccel_flags: libc::c_int,
#[doc = " Video decoding only. Certain video codecs support cropping, meaning that\n only a sub-rectangle of the decoded frame is intended for display. This\n option controls how cropping is handled by libavcodec.\n\n When set to 1 (the default), libavcodec will apply cropping internally.\n I.e. it will modify the output frame width/height fields and offset the\n data pointers (only by as much as possible while preserving alignment, or\n by the full amount if the AV_CODEC_FLAG_UNALIGNED flag is set) so that\n the frames output by the decoder refer only to the cropped area. The\n crop_* fields of the output frames will be zero.\n\n When set to 0, the width/height fields of the output frames will be set\n to the coded dimensions and the crop_* fields will describe the cropping\n rectangle. Applying the cropping is left to the caller.\n\n @warning When hardware acceleration with opaque output frames is used,\n libavcodec is unable to apply cropping from the top/left border.\n\n @note when this option is set to zero, the width/height fields of the\n AVCodecContext and output AVFrames have different meanings. The codec\n context fields store display dimensions (with the coded dimensions in\n coded_width/height), while the frame fields store the coded dimensions\n (with the display dimensions being determined by the crop_* fields)."]
pub apply_cropping: libc::c_int,
pub extra_hw_frames: libc::c_int,
#[doc = " The percentage of damaged samples to discard a frame.\n\n - decoding: set by user\n - encoding: unused"]
pub discard_damaged_percentage: libc::c_int,
#[doc = " The number of samples per frame to maximally accept.\n\n - decoding: set by user\n - encoding: set by user"]
pub max_samples: i64,
#[doc = " Bit set of AV_CODEC_EXPORT_DATA_* flags, which affects the kind of\n metadata exported in frame, packet, or coded stream side data by\n decoders and encoders.\n\n - decoding: set by user\n - encoding: set by user"]
pub export_side_data: libc::c_int,
#[doc = " This callback is called at the beginning of each packet to get a data\n buffer for it.\n\n The following field will be set in the packet before this callback is\n called:\n - size\n This callback must use the above value to calculate the required buffer size,\n which must padded by at least AV_INPUT_BUFFER_PADDING_SIZE bytes.\n\n This callback must fill the following fields in the packet:\n - data: alignment requirements for AVPacket apply, if any. Some architectures and\n encoders may benefit from having aligned data.\n - buf: must contain a pointer to an AVBufferRef structure. The packet's\n data pointer must be contained in it. See: av_buffer_create(), av_buffer_alloc(),\n and av_buffer_ref().\n\n If AV_CODEC_CAP_DR1 is not set then get_encode_buffer() must call\n avcodec_default_get_encode_buffer() instead of providing a buffer allocated by\n some other means.\n\n The flags field may contain a combination of AV_GET_ENCODE_BUFFER_FLAG_ flags.\n They may be used for example to hint what use the buffer may get after being\n created.\n Implementations of this callback may ignore flags they don't understand.\n If AV_GET_ENCODE_BUFFER_FLAG_REF is set in flags then the packet may be reused\n (read and/or written to if it is writable) later by libavcodec.\n\n This callback must be thread-safe, as when frame threading is used, it may\n be called from multiple threads simultaneously.\n\n @see avcodec_default_get_encode_buffer()\n\n - encoding: Set by libavcodec, user can override.\n - decoding: unused"]
pub get_encode_buffer: ::std::option::Option<
unsafe extern "C" fn(
s: *mut AVCodecContext,
pkt: *mut AVPacket,
flags: libc::c_int,
) -> libc::c_int,
>,
}
#[test]
fn bindgen_test_layout_AVCodecContext() {
const UNINIT: ::std::mem::MaybeUninit<AVCodecContext> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVCodecContext>(),
1080usize,
concat!("Size of: ", stringify!(AVCodecContext))
);
assert_eq!(
::std::mem::align_of::<AVCodecContext>(),
8usize,
concat!("Alignment of ", stringify!(AVCodecContext))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).av_class) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(av_class)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).log_level_offset) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(log_level_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).codec_type) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(codec_type)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).codec) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(codec)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).codec_id) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(codec_id)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).codec_tag) as usize - ptr as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(codec_tag)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).priv_data) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(priv_data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).internal) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(internal)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).opaque) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(opaque)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).bit_rate) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(bit_rate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).bit_rate_tolerance) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(bit_rate_tolerance)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).global_quality) as usize - ptr as usize },
68usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(global_quality)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).compression_level) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(compression_level)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize },
76usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).flags2) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(flags2)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).extradata) as usize - ptr as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(extradata)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).extradata_size) as usize - ptr as usize },
96usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(extradata_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).time_base) as usize - ptr as usize },
100usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(time_base)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ticks_per_frame) as usize - ptr as usize },
108usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(ticks_per_frame)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).delay) as usize - ptr as usize },
112usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(delay)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize },
116usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(width)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).height) as usize - ptr as usize },
120usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(height)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).coded_width) as usize - ptr as usize },
124usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(coded_width)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).coded_height) as usize - ptr as usize },
128usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(coded_height)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).gop_size) as usize - ptr as usize },
132usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(gop_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pix_fmt) as usize - ptr as usize },
136usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(pix_fmt)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).draw_horiz_band) as usize - ptr as usize },
144usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(draw_horiz_band)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).get_format) as usize - ptr as usize },
152usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(get_format)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_b_frames) as usize - ptr as usize },
160usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(max_b_frames)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).b_quant_factor) as usize - ptr as usize },
164usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(b_quant_factor)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).b_frame_strategy) as usize - ptr as usize },
168usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(b_frame_strategy)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).b_quant_offset) as usize - ptr as usize },
172usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(b_quant_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).has_b_frames) as usize - ptr as usize },
176usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(has_b_frames)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).mpeg_quant) as usize - ptr as usize },
180usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(mpeg_quant)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).i_quant_factor) as usize - ptr as usize },
184usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(i_quant_factor)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).i_quant_offset) as usize - ptr as usize },
188usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(i_quant_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).lumi_masking) as usize - ptr as usize },
192usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(lumi_masking)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).temporal_cplx_masking) as usize - ptr as usize },
196usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(temporal_cplx_masking)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).spatial_cplx_masking) as usize - ptr as usize },
200usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(spatial_cplx_masking)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).p_masking) as usize - ptr as usize },
204usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(p_masking)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).dark_masking) as usize - ptr as usize },
208usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(dark_masking)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).slice_count) as usize - ptr as usize },
212usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(slice_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).prediction_method) as usize - ptr as usize },
216usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(prediction_method)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).slice_offset) as usize - ptr as usize },
224usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(slice_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sample_aspect_ratio) as usize - ptr as usize },
232usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(sample_aspect_ratio)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).me_cmp) as usize - ptr as usize },
240usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(me_cmp)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).me_sub_cmp) as usize - ptr as usize },
244usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(me_sub_cmp)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).mb_cmp) as usize - ptr as usize },
248usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(mb_cmp)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ildct_cmp) as usize - ptr as usize },
252usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(ildct_cmp)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).dia_size) as usize - ptr as usize },
256usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(dia_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).last_predictor_count) as usize - ptr as usize },
260usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(last_predictor_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pre_me) as usize - ptr as usize },
264usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(pre_me)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).me_pre_cmp) as usize - ptr as usize },
268usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(me_pre_cmp)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pre_dia_size) as usize - ptr as usize },
272usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(pre_dia_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).me_subpel_quality) as usize - ptr as usize },
276usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(me_subpel_quality)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).me_range) as usize - ptr as usize },
280usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(me_range)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).slice_flags) as usize - ptr as usize },
284usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(slice_flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).mb_decision) as usize - ptr as usize },
288usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(mb_decision)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).intra_matrix) as usize - ptr as usize },
296usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(intra_matrix)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).inter_matrix) as usize - ptr as usize },
304usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(inter_matrix)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).scenechange_threshold) as usize - ptr as usize },
312usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(scenechange_threshold)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).noise_reduction) as usize - ptr as usize },
316usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(noise_reduction)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).intra_dc_precision) as usize - ptr as usize },
320usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(intra_dc_precision)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).skip_top) as usize - ptr as usize },
324usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(skip_top)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).skip_bottom) as usize - ptr as usize },
328usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(skip_bottom)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).mb_lmin) as usize - ptr as usize },
332usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(mb_lmin)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).mb_lmax) as usize - ptr as usize },
336usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(mb_lmax)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).me_penalty_compensation) as usize - ptr as usize },
340usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(me_penalty_compensation)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).bidir_refine) as usize - ptr as usize },
344usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(bidir_refine)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).brd_scale) as usize - ptr as usize },
348usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(brd_scale)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).keyint_min) as usize - ptr as usize },
352usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(keyint_min)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).refs) as usize - ptr as usize },
356usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(refs)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).chromaoffset) as usize - ptr as usize },
360usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(chromaoffset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).mv0_threshold) as usize - ptr as usize },
364usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(mv0_threshold)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).b_sensitivity) as usize - ptr as usize },
368usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(b_sensitivity)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).color_primaries) as usize - ptr as usize },
372usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(color_primaries)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).color_trc) as usize - ptr as usize },
376usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(color_trc)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).colorspace) as usize - ptr as usize },
380usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(colorspace)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).color_range) as usize - ptr as usize },
384usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(color_range)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).chroma_sample_location) as usize - ptr as usize },
388usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(chroma_sample_location)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).slices) as usize - ptr as usize },
392usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(slices)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).field_order) as usize - ptr as usize },
396usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(field_order)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sample_rate) as usize - ptr as usize },
400usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(sample_rate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).channels) as usize - ptr as usize },
404usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(channels)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sample_fmt) as usize - ptr as usize },
408usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(sample_fmt)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).frame_size) as usize - ptr as usize },
412usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(frame_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).frame_number) as usize - ptr as usize },
416usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(frame_number)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).block_align) as usize - ptr as usize },
420usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(block_align)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).cutoff) as usize - ptr as usize },
424usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(cutoff)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).channel_layout) as usize - ptr as usize },
432usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(channel_layout)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).request_channel_layout) as usize - ptr as usize },
440usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(request_channel_layout)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).audio_service_type) as usize - ptr as usize },
448usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(audio_service_type)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).request_sample_fmt) as usize - ptr as usize },
452usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(request_sample_fmt)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).get_buffer2) as usize - ptr as usize },
456usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(get_buffer2)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).refcounted_frames) as usize - ptr as usize },
464usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(refcounted_frames)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).qcompress) as usize - ptr as usize },
468usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(qcompress)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).qblur) as usize - ptr as usize },
472usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(qblur)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).qmin) as usize - ptr as usize },
476usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(qmin)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).qmax) as usize - ptr as usize },
480usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(qmax)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_qdiff) as usize - ptr as usize },
484usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(max_qdiff)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rc_buffer_size) as usize - ptr as usize },
488usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(rc_buffer_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rc_override_count) as usize - ptr as usize },
492usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(rc_override_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rc_override) as usize - ptr as usize },
496usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(rc_override)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rc_max_rate) as usize - ptr as usize },
504usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(rc_max_rate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rc_min_rate) as usize - ptr as usize },
512usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(rc_min_rate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rc_max_available_vbv_use) as usize - ptr as usize },
520usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(rc_max_available_vbv_use)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rc_min_vbv_overflow_use) as usize - ptr as usize },
524usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(rc_min_vbv_overflow_use)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rc_initial_buffer_occupancy) as usize - ptr as usize },
528usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(rc_initial_buffer_occupancy)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).coder_type) as usize - ptr as usize },
532usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(coder_type)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).context_model) as usize - ptr as usize },
536usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(context_model)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).frame_skip_threshold) as usize - ptr as usize },
540usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(frame_skip_threshold)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).frame_skip_factor) as usize - ptr as usize },
544usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(frame_skip_factor)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).frame_skip_exp) as usize - ptr as usize },
548usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(frame_skip_exp)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).frame_skip_cmp) as usize - ptr as usize },
552usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(frame_skip_cmp)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).trellis) as usize - ptr as usize },
556usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(trellis)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).min_prediction_order) as usize - ptr as usize },
560usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(min_prediction_order)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_prediction_order) as usize - ptr as usize },
564usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(max_prediction_order)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).timecode_frame_start) as usize - ptr as usize },
568usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(timecode_frame_start)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rtp_callback) as usize - ptr as usize },
576usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(rtp_callback)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rtp_payload_size) as usize - ptr as usize },
584usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(rtp_payload_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).mv_bits) as usize - ptr as usize },
588usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(mv_bits)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).header_bits) as usize - ptr as usize },
592usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(header_bits)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).i_tex_bits) as usize - ptr as usize },
596usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(i_tex_bits)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).p_tex_bits) as usize - ptr as usize },
600usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(p_tex_bits)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).i_count) as usize - ptr as usize },
604usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(i_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).p_count) as usize - ptr as usize },
608usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(p_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).skip_count) as usize - ptr as usize },
612usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(skip_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).misc_bits) as usize - ptr as usize },
616usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(misc_bits)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).frame_bits) as usize - ptr as usize },
620usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(frame_bits)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).stats_out) as usize - ptr as usize },
624usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(stats_out)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).stats_in) as usize - ptr as usize },
632usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(stats_in)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).workaround_bugs) as usize - ptr as usize },
640usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(workaround_bugs)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).strict_std_compliance) as usize - ptr as usize },
644usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(strict_std_compliance)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).error_concealment) as usize - ptr as usize },
648usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(error_concealment)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).debug) as usize - ptr as usize },
652usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(debug)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).err_recognition) as usize - ptr as usize },
656usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(err_recognition)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).reordered_opaque) as usize - ptr as usize },
664usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(reordered_opaque)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).hwaccel) as usize - ptr as usize },
672usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(hwaccel)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).hwaccel_context) as usize - ptr as usize },
680usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(hwaccel_context)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).error) as usize - ptr as usize },
688usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(error)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).dct_algo) as usize - ptr as usize },
752usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(dct_algo)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).idct_algo) as usize - ptr as usize },
756usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(idct_algo)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).bits_per_coded_sample) as usize - ptr as usize },
760usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(bits_per_coded_sample)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).bits_per_raw_sample) as usize - ptr as usize },
764usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(bits_per_raw_sample)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).lowres) as usize - ptr as usize },
768usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(lowres)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).coded_frame) as usize - ptr as usize },
776usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(coded_frame)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).thread_count) as usize - ptr as usize },
784usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(thread_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).thread_type) as usize - ptr as usize },
788usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(thread_type)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).active_thread_type) as usize - ptr as usize },
792usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(active_thread_type)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).thread_safe_callbacks) as usize - ptr as usize },
796usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(thread_safe_callbacks)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).execute) as usize - ptr as usize },
800usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(execute)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).execute2) as usize - ptr as usize },
808usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(execute2)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nsse_weight) as usize - ptr as usize },
816usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(nsse_weight)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).profile) as usize - ptr as usize },
820usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(profile)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).level) as usize - ptr as usize },
824usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(level)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).skip_loop_filter) as usize - ptr as usize },
828usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(skip_loop_filter)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).skip_idct) as usize - ptr as usize },
832usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(skip_idct)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).skip_frame) as usize - ptr as usize },
836usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(skip_frame)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).subtitle_header) as usize - ptr as usize },
840usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(subtitle_header)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).subtitle_header_size) as usize - ptr as usize },
848usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(subtitle_header_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).vbv_delay) as usize - ptr as usize },
856usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(vbv_delay)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).side_data_only_packets) as usize - ptr as usize },
864usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(side_data_only_packets)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).initial_padding) as usize - ptr as usize },
868usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(initial_padding)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).framerate) as usize - ptr as usize },
872usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(framerate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sw_pix_fmt) as usize - ptr as usize },
880usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(sw_pix_fmt)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pkt_timebase) as usize - ptr as usize },
884usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(pkt_timebase)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).codec_descriptor) as usize - ptr as usize },
896usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(codec_descriptor)
)
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).pts_correction_num_faulty_pts) as usize - ptr as usize
},
904usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(pts_correction_num_faulty_pts)
)
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).pts_correction_num_faulty_dts) as usize - ptr as usize
},
912usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(pts_correction_num_faulty_dts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pts_correction_last_pts) as usize - ptr as usize },
920usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(pts_correction_last_pts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pts_correction_last_dts) as usize - ptr as usize },
928usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(pts_correction_last_dts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sub_charenc) as usize - ptr as usize },
936usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(sub_charenc)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sub_charenc_mode) as usize - ptr as usize },
944usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(sub_charenc_mode)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).skip_alpha) as usize - ptr as usize },
948usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(skip_alpha)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).seek_preroll) as usize - ptr as usize },
952usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(seek_preroll)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).debug_mv) as usize - ptr as usize },
956usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(debug_mv)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).chroma_intra_matrix) as usize - ptr as usize },
960usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(chroma_intra_matrix)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).dump_separator) as usize - ptr as usize },
968usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(dump_separator)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).codec_whitelist) as usize - ptr as usize },
976usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(codec_whitelist)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).properties) as usize - ptr as usize },
984usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(properties)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).coded_side_data) as usize - ptr as usize },
992usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(coded_side_data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_coded_side_data) as usize - ptr as usize },
1000usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(nb_coded_side_data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).hw_frames_ctx) as usize - ptr as usize },
1008usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(hw_frames_ctx)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sub_text_format) as usize - ptr as usize },
1016usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(sub_text_format)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).trailing_padding) as usize - ptr as usize },
1020usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(trailing_padding)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_pixels) as usize - ptr as usize },
1024usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(max_pixels)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).hw_device_ctx) as usize - ptr as usize },
1032usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(hw_device_ctx)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).hwaccel_flags) as usize - ptr as usize },
1040usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(hwaccel_flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).apply_cropping) as usize - ptr as usize },
1044usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(apply_cropping)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).extra_hw_frames) as usize - ptr as usize },
1048usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(extra_hw_frames)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).discard_damaged_percentage) as usize - ptr as usize },
1052usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(discard_damaged_percentage)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_samples) as usize - ptr as usize },
1056usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(max_samples)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).export_side_data) as usize - ptr as usize },
1064usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(export_side_data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).get_encode_buffer) as usize - ptr as usize },
1072usize,
concat!(
"Offset of field: ",
stringify!(AVCodecContext),
"::",
stringify!(get_encode_buffer)
)
);
}
extern "C" {
#[doc = " Accessors for some AVCodecContext fields. These used to be provided for ABI\n compatibility, and do not need to be used anymore."]
pub fn av_codec_get_pkt_timebase(avctx: *const AVCodecContext) -> AVRational;
}
extern "C" {
pub fn av_codec_set_pkt_timebase(avctx: *mut AVCodecContext, val: AVRational);
}
extern "C" {
pub fn av_codec_get_codec_descriptor(avctx: *const AVCodecContext) -> *const AVCodecDescriptor;
}
extern "C" {
pub fn av_codec_set_codec_descriptor(
avctx: *mut AVCodecContext,
desc: *const AVCodecDescriptor,
);
}
extern "C" {
pub fn av_codec_get_codec_properties(avctx: *const AVCodecContext) -> libc::c_uint;
}
extern "C" {
pub fn av_codec_get_lowres(avctx: *const AVCodecContext) -> libc::c_int;
}
extern "C" {
pub fn av_codec_set_lowres(avctx: *mut AVCodecContext, val: libc::c_int);
}
extern "C" {
pub fn av_codec_get_seek_preroll(avctx: *const AVCodecContext) -> libc::c_int;
}
extern "C" {
pub fn av_codec_set_seek_preroll(avctx: *mut AVCodecContext, val: libc::c_int);
}
extern "C" {
pub fn av_codec_get_chroma_intra_matrix(avctx: *const AVCodecContext) -> *mut u16;
}
extern "C" {
pub fn av_codec_set_chroma_intra_matrix(avctx: *mut AVCodecContext, val: *mut u16);
}
extern "C" {
pub fn av_codec_get_max_lowres(codec: *const AVCodec) -> libc::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MpegEncContext {
_unused: [u8; 0],
}
#[doc = " @defgroup lavc_hwaccel AVHWAccel\n\n @note Nothing in this structure should be accessed by the user. At some\n point in future it will not be externally visible at all.\n\n @{"]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVHWAccel {
#[doc = " Name of the hardware accelerated codec.\n The name is globally unique among encoders and among decoders (but an\n encoder and a decoder can share the same name)."]
pub name: *const libc::c_char,
#[doc = " Type of codec implemented by the hardware accelerator.\n\n See AVMEDIA_TYPE_xxx"]
pub type_: AVMediaType,
#[doc = " Codec implemented by the hardware accelerator.\n\n See AV_CODEC_ID_xxx"]
pub id: AVCodecID,
#[doc = " Supported pixel format.\n\n Only hardware accelerated formats are supported here."]
pub pix_fmt: AVPixelFormat,
#[doc = " Hardware accelerated codec capabilities.\n see AV_HWACCEL_CODEC_CAP_*"]
pub capabilities: libc::c_int,
#[doc = " Allocate a custom buffer"]
pub alloc_frame: ::std::option::Option<
unsafe extern "C" fn(avctx: *mut AVCodecContext, frame: *mut AVFrame) -> libc::c_int,
>,
#[doc = " Called at the beginning of each frame or field picture.\n\n Meaningful frame information (codec specific) is guaranteed to\n be parsed at this point. This function is mandatory.\n\n Note that buf can be NULL along with buf_size set to 0.\n Otherwise, this means the whole frame is available at this point.\n\n @param avctx the codec context\n @param buf the frame data buffer base\n @param buf_size the size of the frame in bytes\n @return zero if successful, a negative value otherwise"]
pub start_frame: ::std::option::Option<
unsafe extern "C" fn(
avctx: *mut AVCodecContext,
buf: *const u8,
buf_size: u32,
) -> libc::c_int,
>,
#[doc = " Callback for parameter data (SPS/PPS/VPS etc).\n\n Useful for hardware decoders which keep persistent state about the\n video parameters, and need to receive any changes to update that state.\n\n @param avctx the codec context\n @param type the nal unit type\n @param buf the nal unit data buffer\n @param buf_size the size of the nal unit in bytes\n @return zero if successful, a negative value otherwise"]
pub decode_params: ::std::option::Option<
unsafe extern "C" fn(
avctx: *mut AVCodecContext,
type_: libc::c_int,
buf: *const u8,
buf_size: u32,
) -> libc::c_int,
>,
#[doc = " Callback for each slice.\n\n Meaningful slice information (codec specific) is guaranteed to\n be parsed at this point. This function is mandatory.\n The only exception is XvMC, that works on MB level.\n\n @param avctx the codec context\n @param buf the slice data buffer base\n @param buf_size the size of the slice in bytes\n @return zero if successful, a negative value otherwise"]
pub decode_slice: ::std::option::Option<
unsafe extern "C" fn(
avctx: *mut AVCodecContext,
buf: *const u8,
buf_size: u32,
) -> libc::c_int,
>,
#[doc = " Called at the end of each frame or field picture.\n\n The whole picture is parsed at this point and can now be sent\n to the hardware accelerator. This function is mandatory.\n\n @param avctx the codec context\n @return zero if successful, a negative value otherwise"]
pub end_frame:
::std::option::Option<unsafe extern "C" fn(avctx: *mut AVCodecContext) -> libc::c_int>,
#[doc = " Size of per-frame hardware accelerator private data.\n\n Private data is allocated with av_mallocz() before\n AVCodecContext.get_buffer() and deallocated after\n AVCodecContext.release_buffer()."]
pub frame_priv_data_size: libc::c_int,
#[doc = " Called for every Macroblock in a slice.\n\n XvMC uses it to replace the ff_mpv_reconstruct_mb().\n Instead of decoding to raw picture, MB parameters are\n stored in an array provided by the video driver.\n\n @param s the mpeg context"]
pub decode_mb: ::std::option::Option<unsafe extern "C" fn(s: *mut MpegEncContext)>,
#[doc = " Initialize the hwaccel private data.\n\n This will be called from ff_get_format(), after hwaccel and\n hwaccel_context are set and the hwaccel private data in AVCodecInternal\n is allocated."]
pub init:
::std::option::Option<unsafe extern "C" fn(avctx: *mut AVCodecContext) -> libc::c_int>,
#[doc = " Uninitialize the hwaccel private data.\n\n This will be called from get_format() or avcodec_close(), after hwaccel\n and hwaccel_context are already uninitialized."]
pub uninit:
::std::option::Option<unsafe extern "C" fn(avctx: *mut AVCodecContext) -> libc::c_int>,
#[doc = " Size of the private data to allocate in\n AVCodecInternal.hwaccel_priv_data."]
pub priv_data_size: libc::c_int,
#[doc = " Internal hwaccel capabilities."]
pub caps_internal: libc::c_int,
#[doc = " Fill the given hw_frames context with current codec parameters. Called\n from get_format. Refer to avcodec_get_hw_frames_parameters() for\n details.\n\n This CAN be called before AVHWAccel.init is called, and you must assume\n that avctx->hwaccel_priv_data is invalid."]
pub frame_params: ::std::option::Option<
unsafe extern "C" fn(
avctx: *mut AVCodecContext,
hw_frames_ctx: *mut AVBufferRef,
) -> libc::c_int,
>,
}
#[test]
fn bindgen_test_layout_AVHWAccel() {
const UNINIT: ::std::mem::MaybeUninit<AVHWAccel> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVHWAccel>(),
112usize,
concat!("Size of: ", stringify!(AVHWAccel))
);
assert_eq!(
::std::mem::align_of::<AVHWAccel>(),
8usize,
concat!("Alignment of ", stringify!(AVHWAccel))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVHWAccel),
"::",
stringify!(name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVHWAccel),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).id) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(AVHWAccel),
"::",
stringify!(id)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pix_fmt) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVHWAccel),
"::",
stringify!(pix_fmt)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).capabilities) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(AVHWAccel),
"::",
stringify!(capabilities)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).alloc_frame) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVHWAccel),
"::",
stringify!(alloc_frame)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).start_frame) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVHWAccel),
"::",
stringify!(start_frame)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).decode_params) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVHWAccel),
"::",
stringify!(decode_params)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).decode_slice) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVHWAccel),
"::",
stringify!(decode_slice)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).end_frame) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVHWAccel),
"::",
stringify!(end_frame)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).frame_priv_data_size) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(AVHWAccel),
"::",
stringify!(frame_priv_data_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).decode_mb) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(AVHWAccel),
"::",
stringify!(decode_mb)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(AVHWAccel),
"::",
stringify!(init)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).uninit) as usize - ptr as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(AVHWAccel),
"::",
stringify!(uninit)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).priv_data_size) as usize - ptr as usize },
96usize,
concat!(
"Offset of field: ",
stringify!(AVHWAccel),
"::",
stringify!(priv_data_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).caps_internal) as usize - ptr as usize },
100usize,
concat!(
"Offset of field: ",
stringify!(AVHWAccel),
"::",
stringify!(caps_internal)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).frame_params) as usize - ptr as usize },
104usize,
concat!(
"Offset of field: ",
stringify!(AVHWAccel),
"::",
stringify!(frame_params)
)
);
}
#[doc = " Picture data structure.\n\n Up to four components can be stored into it, the last component is\n alpha.\n @deprecated use AVFrame or imgutils functions instead"]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVPicture {
#[doc = "< pointers to the image data planes"]
pub data: [*mut u8; 8usize],
#[doc = "< number of bytes per line"]
pub linesize: [libc::c_int; 8usize],
}
#[test]
fn bindgen_test_layout_AVPicture() {
const UNINIT: ::std::mem::MaybeUninit<AVPicture> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVPicture>(),
96usize,
concat!("Size of: ", stringify!(AVPicture))
);
assert_eq!(
::std::mem::align_of::<AVPicture>(),
8usize,
concat!("Alignment of ", stringify!(AVPicture))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVPicture),
"::",
stringify!(data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).linesize) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(AVPicture),
"::",
stringify!(linesize)
)
);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVSubtitleType {
SUBTITLE_NONE = 0,
#[doc = "< A bitmap, pict will be set"]
SUBTITLE_BITMAP = 1,
#[doc = " Plain text, the text field must be set by the decoder and is\n authoritative. ass and pict fields may contain approximations."]
SUBTITLE_TEXT = 2,
#[doc = " Formatted text, the ass field must be set by the decoder and is\n authoritative. pict and text fields may contain approximations."]
SUBTITLE_ASS = 3,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVSubtitleRect {
#[doc = "< top left corner of pict, undefined when pict is not set"]
pub x: libc::c_int,
#[doc = "< top left corner of pict, undefined when pict is not set"]
pub y: libc::c_int,
#[doc = "< width of pict, undefined when pict is not set"]
pub w: libc::c_int,
#[doc = "< height of pict, undefined when pict is not set"]
pub h: libc::c_int,
#[doc = "< number of colors in pict, undefined when pict is not set"]
pub nb_colors: libc::c_int,
#[doc = " @deprecated unused"]
pub pict: AVPicture,
#[doc = " data+linesize for the bitmap of this subtitle.\n Can be set for text/ass as well once they are rendered."]
pub data: [*mut u8; 4usize],
pub linesize: [libc::c_int; 4usize],
pub type_: AVSubtitleType,
#[doc = "< 0 terminated plain UTF-8 text"]
pub text: *mut libc::c_char,
#[doc = " 0 terminated ASS/SSA compatible event line.\n The presentation of this is unaffected by the other values in this\n struct."]
pub ass: *mut libc::c_char,
pub flags: libc::c_int,
}
#[test]
fn bindgen_test_layout_AVSubtitleRect() {
const UNINIT: ::std::mem::MaybeUninit<AVSubtitleRect> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVSubtitleRect>(),
200usize,
concat!("Size of: ", stringify!(AVSubtitleRect))
);
assert_eq!(
::std::mem::align_of::<AVSubtitleRect>(),
8usize,
concat!("Alignment of ", stringify!(AVSubtitleRect))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVSubtitleRect),
"::",
stringify!(x)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(AVSubtitleRect),
"::",
stringify!(y)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVSubtitleRect),
"::",
stringify!(w)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(AVSubtitleRect),
"::",
stringify!(h)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_colors) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVSubtitleRect),
"::",
stringify!(nb_colors)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pict) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVSubtitleRect),
"::",
stringify!(pict)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize },
120usize,
concat!(
"Offset of field: ",
stringify!(AVSubtitleRect),
"::",
stringify!(data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).linesize) as usize - ptr as usize },
152usize,
concat!(
"Offset of field: ",
stringify!(AVSubtitleRect),
"::",
stringify!(linesize)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize },
168usize,
concat!(
"Offset of field: ",
stringify!(AVSubtitleRect),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).text) as usize - ptr as usize },
176usize,
concat!(
"Offset of field: ",
stringify!(AVSubtitleRect),
"::",
stringify!(text)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ass) as usize - ptr as usize },
184usize,
concat!(
"Offset of field: ",
stringify!(AVSubtitleRect),
"::",
stringify!(ass)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize },
192usize,
concat!(
"Offset of field: ",
stringify!(AVSubtitleRect),
"::",
stringify!(flags)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVSubtitle {
pub format: u16,
pub start_display_time: u32,
pub end_display_time: u32,
pub num_rects: libc::c_uint,
pub rects: *mut *mut AVSubtitleRect,
#[doc = "< Same as packet pts, in AV_TIME_BASE"]
pub pts: i64,
}
#[test]
fn bindgen_test_layout_AVSubtitle() {
const UNINIT: ::std::mem::MaybeUninit<AVSubtitle> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVSubtitle>(),
32usize,
concat!("Size of: ", stringify!(AVSubtitle))
);
assert_eq!(
::std::mem::align_of::<AVSubtitle>(),
8usize,
concat!("Alignment of ", stringify!(AVSubtitle))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).format) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVSubtitle),
"::",
stringify!(format)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).start_display_time) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(AVSubtitle),
"::",
stringify!(start_display_time)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).end_display_time) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVSubtitle),
"::",
stringify!(end_display_time)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).num_rects) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(AVSubtitle),
"::",
stringify!(num_rects)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rects) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVSubtitle),
"::",
stringify!(rects)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pts) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVSubtitle),
"::",
stringify!(pts)
)
);
}
extern "C" {
#[doc = " If c is NULL, returns the first registered codec,\n if c is non-NULL, returns the next registered codec after c,\n or NULL if c is the last one."]
pub fn av_codec_next(c: *const AVCodec) -> *mut AVCodec;
}
extern "C" {
#[doc = " Return the LIBAVCODEC_VERSION_INT constant."]
pub fn avcodec_version() -> libc::c_uint;
}
extern "C" {
#[doc = " Return the libavcodec build-time configuration."]
pub fn avcodec_configuration() -> *const libc::c_char;
}
extern "C" {
#[doc = " Return the libavcodec license."]
pub fn avcodec_license() -> *const libc::c_char;
}
extern "C" {
#[doc = " @deprecated Calling this function is unnecessary."]
pub fn avcodec_register(codec: *mut AVCodec);
}
extern "C" {
#[doc = " @deprecated Calling this function is unnecessary."]
pub fn avcodec_register_all();
}
extern "C" {
#[doc = " Allocate an AVCodecContext and set its fields to default values. The\n resulting struct should be freed with avcodec_free_context().\n\n @param codec if non-NULL, allocate private data and initialize defaults\n for the given codec. It is illegal to then call avcodec_open2()\n with a different codec.\n If NULL, then the codec-specific defaults won't be initialized,\n which may result in suboptimal default settings (this is\n important mainly for encoders, e.g. libx264).\n\n @return An AVCodecContext filled with default values or NULL on failure."]
pub fn avcodec_alloc_context3(codec: *const AVCodec) -> *mut AVCodecContext;
}
extern "C" {
#[doc = " Free the codec context and everything associated with it and write NULL to\n the provided pointer."]
pub fn avcodec_free_context(avctx: *mut *mut AVCodecContext);
}
extern "C" {
#[doc = " @deprecated This function should not be used, as closing and opening a codec\n context multiple time is not supported. A new codec context should be\n allocated for each new use."]
pub fn avcodec_get_context_defaults3(
s: *mut AVCodecContext,
codec: *const AVCodec,
) -> libc::c_int;
}
extern "C" {
#[doc = " Get the AVClass for AVCodecContext. It can be used in combination with\n AV_OPT_SEARCH_FAKE_OBJ for examining options.\n\n @see av_opt_find()."]
pub fn avcodec_get_class() -> *const AVClass;
}
extern "C" {
#[doc = " @deprecated This function should not be used."]
pub fn avcodec_get_frame_class() -> *const AVClass;
}
extern "C" {
#[doc = " Get the AVClass for AVSubtitleRect. It can be used in combination with\n AV_OPT_SEARCH_FAKE_OBJ for examining options.\n\n @see av_opt_find()."]
pub fn avcodec_get_subtitle_rect_class() -> *const AVClass;
}
extern "C" {
#[doc = " Copy the settings of the source AVCodecContext into the destination\n AVCodecContext. The resulting destination codec context will be\n unopened, i.e. you are required to call avcodec_open2() before you\n can use this AVCodecContext to decode/encode video/audio data.\n\n @param dest target codec context, should be initialized with\n avcodec_alloc_context3(NULL), but otherwise uninitialized\n @param src source codec context\n @return AVERROR() on error (e.g. memory allocation error), 0 on success\n\n @deprecated The semantics of this function are ill-defined and it should not\n be used. If you need to transfer the stream parameters from one codec context\n to another, use an intermediate AVCodecParameters instance and the\n avcodec_parameters_from_context() / avcodec_parameters_to_context()\n functions."]
pub fn avcodec_copy_context(
dest: *mut AVCodecContext,
src: *const AVCodecContext,
) -> libc::c_int;
}
extern "C" {
#[doc = " Fill the parameters struct based on the values from the supplied codec\n context. Any allocated fields in par are freed and replaced with duplicates\n of the corresponding fields in codec.\n\n @return >= 0 on success, a negative AVERROR code on failure"]
pub fn avcodec_parameters_from_context(
par: *mut AVCodecParameters,
codec: *const AVCodecContext,
) -> libc::c_int;
}
extern "C" {
#[doc = " Fill the codec context based on the values from the supplied codec\n parameters. Any allocated fields in codec that have a corresponding field in\n par are freed and replaced with duplicates of the corresponding field in par.\n Fields in codec that do not have a counterpart in par are not touched.\n\n @return >= 0 on success, a negative AVERROR code on failure."]
pub fn avcodec_parameters_to_context(
codec: *mut AVCodecContext,
par: *const AVCodecParameters,
) -> libc::c_int;
}
extern "C" {
#[doc = " Initialize the AVCodecContext to use the given AVCodec. Prior to using this\n function the context has to be allocated with avcodec_alloc_context3().\n\n The functions avcodec_find_decoder_by_name(), avcodec_find_encoder_by_name(),\n avcodec_find_decoder() and avcodec_find_encoder() provide an easy way for\n retrieving a codec.\n\n @warning This function is not thread safe!\n\n @note Always call this function before using decoding routines (such as\n @ref avcodec_receive_frame()).\n\n @code\n av_dict_set(&opts, \"b\", \"2.5M\", 0);\n codec = avcodec_find_decoder(AV_CODEC_ID_H264);\n if (!codec)\n exit(1);\n\n context = avcodec_alloc_context3(codec);\n\n if (avcodec_open2(context, codec, opts) < 0)\n exit(1);\n @endcode\n\n @param avctx The context to initialize.\n @param codec The codec to open this context for. If a non-NULL codec has been\n previously passed to avcodec_alloc_context3() or\n for this context, then this parameter MUST be either NULL or\n equal to the previously passed codec.\n @param options A dictionary filled with AVCodecContext and codec-private options.\n On return this object will be filled with options that were not found.\n\n @return zero on success, a negative value on error\n @see avcodec_alloc_context3(), avcodec_find_decoder(), avcodec_find_encoder(),\n av_dict_set(), av_opt_find()."]
pub fn avcodec_open2(
avctx: *mut AVCodecContext,
codec: *const AVCodec,
options: *mut *mut AVDictionary,
) -> libc::c_int;
}
extern "C" {
#[doc = " Close a given AVCodecContext and free all the data associated with it\n (but not the AVCodecContext itself).\n\n Calling this function on an AVCodecContext that hasn't been opened will free\n the codec-specific data allocated in avcodec_alloc_context3() with a non-NULL\n codec. Subsequent calls will do nothing.\n\n @note Do not use this function. Use avcodec_free_context() to destroy a\n codec context (either open or closed). Opening and closing a codec context\n multiple times is not supported anymore -- use multiple codec contexts\n instead."]
pub fn avcodec_close(avctx: *mut AVCodecContext) -> libc::c_int;
}
extern "C" {
#[doc = " Free all allocated data in the given subtitle struct.\n\n @param sub AVSubtitle to free."]
pub fn avsubtitle_free(sub: *mut AVSubtitle);
}
extern "C" {
#[doc = " The default callback for AVCodecContext.get_buffer2(). It is made public so\n it can be called by custom get_buffer2() implementations for decoders without\n AV_CODEC_CAP_DR1 set."]
pub fn avcodec_default_get_buffer2(
s: *mut AVCodecContext,
frame: *mut AVFrame,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " The default callback for AVCodecContext.get_encode_buffer(). It is made public so\n it can be called by custom get_encode_buffer() implementations for encoders without\n AV_CODEC_CAP_DR1 set."]
pub fn avcodec_default_get_encode_buffer(
s: *mut AVCodecContext,
pkt: *mut AVPacket,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Modify width and height values so that they will result in a memory\n buffer that is acceptable for the codec if you do not use any horizontal\n padding.\n\n May only be used if a codec with AV_CODEC_CAP_DR1 has been opened."]
pub fn avcodec_align_dimensions(
s: *mut AVCodecContext,
width: *mut libc::c_int,
height: *mut libc::c_int,
);
}
extern "C" {
#[doc = " Modify width and height values so that they will result in a memory\n buffer that is acceptable for the codec if you also ensure that all\n line sizes are a multiple of the respective linesize_align[i].\n\n May only be used if a codec with AV_CODEC_CAP_DR1 has been opened."]
pub fn avcodec_align_dimensions2(
s: *mut AVCodecContext,
width: *mut libc::c_int,
height: *mut libc::c_int,
linesize_align: *mut libc::c_int,
);
}
extern "C" {
#[doc = " Converts AVChromaLocation to swscale x/y chroma position.\n\n The positions represent the chroma (0,0) position in a coordinates system\n with luma (0,0) representing the origin and luma(1,1) representing 256,256\n\n @param xpos horizontal chroma sample position\n @param ypos vertical chroma sample position"]
pub fn avcodec_enum_to_chroma_pos(
xpos: *mut libc::c_int,
ypos: *mut libc::c_int,
pos: AVChromaLocation,
) -> libc::c_int;
}
extern "C" {
#[doc = " Converts swscale x/y chroma position to AVChromaLocation.\n\n The positions represent the chroma (0,0) position in a coordinates system\n with luma (0,0) representing the origin and luma(1,1) representing 256,256\n\n @param xpos horizontal chroma sample position\n @param ypos vertical chroma sample position"]
pub fn avcodec_chroma_pos_to_enum(xpos: libc::c_int, ypos: libc::c_int) -> AVChromaLocation;
}
extern "C" {
#[doc = " Decode the audio frame of size avpkt->size from avpkt->data into frame.\n\n Some decoders may support multiple frames in a single AVPacket. Such\n decoders would then just decode the first frame and the return value would be\n less than the packet size. In this case, avcodec_decode_audio4 has to be\n called again with an AVPacket containing the remaining data in order to\n decode the second frame, etc... Even if no frames are returned, the packet\n needs to be fed to the decoder with remaining data until it is completely\n consumed or an error occurs.\n\n Some decoders (those marked with AV_CODEC_CAP_DELAY) have a delay between input\n and output. This means that for some packets they will not immediately\n produce decoded output and need to be flushed at the end of decoding to get\n all the decoded data. Flushing is done by calling this function with packets\n with avpkt->data set to NULL and avpkt->size set to 0 until it stops\n returning samples. It is safe to flush even those decoders that are not\n marked with AV_CODEC_CAP_DELAY, then no samples will be returned.\n\n @warning The input buffer, avpkt->data must be AV_INPUT_BUFFER_PADDING_SIZE\n larger than the actual read bytes because some optimized bitstream\n readers read 32 or 64 bits at once and could read over the end.\n\n @note The AVCodecContext MUST have been opened with @ref avcodec_open2()\n before packets may be fed to the decoder.\n\n @param avctx the codec context\n @param[out] frame The AVFrame in which to store decoded audio samples.\n The decoder will allocate a buffer for the decoded frame by\n calling the AVCodecContext.get_buffer2() callback.\n When AVCodecContext.refcounted_frames is set to 1, the frame is\n reference counted and the returned reference belongs to the\n caller. The caller must release the frame using av_frame_unref()\n when the frame is no longer needed. The caller may safely write\n to the frame if av_frame_is_writable() returns 1.\n When AVCodecContext.refcounted_frames is set to 0, the returned\n reference belongs to the decoder and is valid only until the\n next call to this function or until closing or flushing the\n decoder. The caller may not write to it.\n @param[out] got_frame_ptr Zero if no frame could be decoded, otherwise it is\n non-zero. Note that this field being set to zero\n does not mean that an error has occurred. For\n decoders with AV_CODEC_CAP_DELAY set, no given decode\n call is guaranteed to produce a frame.\n @param[in] avpkt The input AVPacket containing the input buffer.\n At least avpkt->data and avpkt->size should be set. Some\n decoders might also require additional fields to be set.\n @return A negative error code is returned if an error occurred during\n decoding, otherwise the number of bytes consumed from the input\n AVPacket is returned.\n\n @deprecated Use avcodec_send_packet() and avcodec_receive_frame()."]
pub fn avcodec_decode_audio4(
avctx: *mut AVCodecContext,
frame: *mut AVFrame,
got_frame_ptr: *mut libc::c_int,
avpkt: *const AVPacket,
) -> libc::c_int;
}
extern "C" {
#[doc = " Decode the video frame of size avpkt->size from avpkt->data into picture.\n Some decoders may support multiple frames in a single AVPacket, such\n decoders would then just decode the first frame.\n\n @warning The input buffer must be AV_INPUT_BUFFER_PADDING_SIZE larger than\n the actual read bytes because some optimized bitstream readers read 32 or 64\n bits at once and could read over the end.\n\n @warning The end of the input buffer buf should be set to 0 to ensure that\n no overreading happens for damaged MPEG streams.\n\n @note Codecs which have the AV_CODEC_CAP_DELAY capability set have a delay\n between input and output, these need to be fed with avpkt->data=NULL,\n avpkt->size=0 at the end to return the remaining frames.\n\n @note The AVCodecContext MUST have been opened with @ref avcodec_open2()\n before packets may be fed to the decoder.\n\n @param avctx the codec context\n @param[out] picture The AVFrame in which the decoded video frame will be stored.\n Use av_frame_alloc() to get an AVFrame. The codec will\n allocate memory for the actual bitmap by calling the\n AVCodecContext.get_buffer2() callback.\n When AVCodecContext.refcounted_frames is set to 1, the frame is\n reference counted and the returned reference belongs to the\n caller. The caller must release the frame using av_frame_unref()\n when the frame is no longer needed. The caller may safely write\n to the frame if av_frame_is_writable() returns 1.\n When AVCodecContext.refcounted_frames is set to 0, the returned\n reference belongs to the decoder and is valid only until the\n next call to this function or until closing or flushing the\n decoder. The caller may not write to it.\n\n @param[in] avpkt The input AVPacket containing the input buffer.\n You can create such packet with av_init_packet() and by then setting\n data and size, some decoders might in addition need other fields like\n flags&AV_PKT_FLAG_KEY. All decoders are designed to use the least\n fields possible.\n @param[in,out] got_picture_ptr Zero if no frame could be decompressed, otherwise, it is nonzero.\n @return On error a negative value is returned, otherwise the number of bytes\n used or zero if no frame could be decompressed.\n\n @deprecated Use avcodec_send_packet() and avcodec_receive_frame()."]
pub fn avcodec_decode_video2(
avctx: *mut AVCodecContext,
picture: *mut AVFrame,
got_picture_ptr: *mut libc::c_int,
avpkt: *const AVPacket,
) -> libc::c_int;
}
extern "C" {
#[doc = " Decode a subtitle message.\n Return a negative value on error, otherwise return the number of bytes used.\n If no subtitle could be decompressed, got_sub_ptr is zero.\n Otherwise, the subtitle is stored in *sub.\n Note that AV_CODEC_CAP_DR1 is not available for subtitle codecs. This is for\n simplicity, because the performance difference is expected to be negligible\n and reusing a get_buffer written for video codecs would probably perform badly\n due to a potentially very different allocation pattern.\n\n Some decoders (those marked with AV_CODEC_CAP_DELAY) have a delay between input\n and output. This means that for some packets they will not immediately\n produce decoded output and need to be flushed at the end of decoding to get\n all the decoded data. Flushing is done by calling this function with packets\n with avpkt->data set to NULL and avpkt->size set to 0 until it stops\n returning subtitles. It is safe to flush even those decoders that are not\n marked with AV_CODEC_CAP_DELAY, then no subtitles will be returned.\n\n @note The AVCodecContext MUST have been opened with @ref avcodec_open2()\n before packets may be fed to the decoder.\n\n @param avctx the codec context\n @param[out] sub The preallocated AVSubtitle in which the decoded subtitle will be stored,\n must be freed with avsubtitle_free if *got_sub_ptr is set.\n @param[in,out] got_sub_ptr Zero if no subtitle could be decompressed, otherwise, it is nonzero.\n @param[in] avpkt The input AVPacket containing the input buffer."]
pub fn avcodec_decode_subtitle2(
avctx: *mut AVCodecContext,
sub: *mut AVSubtitle,
got_sub_ptr: *mut libc::c_int,
avpkt: *mut AVPacket,
) -> libc::c_int;
}
extern "C" {
#[doc = " Supply raw packet data as input to a decoder.\n\n Internally, this call will copy relevant AVCodecContext fields, which can\n influence decoding per-packet, and apply them when the packet is actually\n decoded. (For example AVCodecContext.skip_frame, which might direct the\n decoder to drop the frame contained by the packet sent with this function.)\n\n @warning The input buffer, avpkt->data must be AV_INPUT_BUFFER_PADDING_SIZE\n larger than the actual read bytes because some optimized bitstream\n readers read 32 or 64 bits at once and could read over the end.\n\n @warning Do not mix this API with the legacy API (like avcodec_decode_video2())\n on the same AVCodecContext. It will return unexpected results now\n or in future libavcodec versions.\n\n @note The AVCodecContext MUST have been opened with @ref avcodec_open2()\n before packets may be fed to the decoder.\n\n @param avctx codec context\n @param[in] avpkt The input AVPacket. Usually, this will be a single video\n frame, or several complete audio frames.\n Ownership of the packet remains with the caller, and the\n decoder will not write to the packet. The decoder may create\n a reference to the packet data (or copy it if the packet is\n not reference-counted).\n Unlike with older APIs, the packet is always fully consumed,\n and if it contains multiple frames (e.g. some audio codecs),\n will require you to call avcodec_receive_frame() multiple\n times afterwards before you can send a new packet.\n It can be NULL (or an AVPacket with data set to NULL and\n size set to 0); in this case, it is considered a flush\n packet, which signals the end of the stream. Sending the\n first flush packet will return success. Subsequent ones are\n unnecessary and will return AVERROR_EOF. If the decoder\n still has frames buffered, it will return them after sending\n a flush packet.\n\n @return 0 on success, otherwise negative error code:\n AVERROR(EAGAIN): input is not accepted in the current state - user\n must read output with avcodec_receive_frame() (once\n all output is read, the packet should be resent, and\n the call will not fail with EAGAIN).\n AVERROR_EOF: the decoder has been flushed, and no new packets can\n be sent to it (also returned if more than 1 flush\n packet is sent)\n AVERROR(EINVAL): codec not opened, it is an encoder, or requires flush\n AVERROR(ENOMEM): failed to add packet to internal queue, or similar\n other errors: legitimate decoding errors"]
pub fn avcodec_send_packet(avctx: *mut AVCodecContext, avpkt: *const AVPacket) -> libc::c_int;
}
extern "C" {
#[doc = " Return decoded output data from a decoder.\n\n @param avctx codec context\n @param frame This will be set to a reference-counted video or audio\n frame (depending on the decoder type) allocated by the\n decoder. Note that the function will always call\n av_frame_unref(frame) before doing anything else.\n\n @return\n 0: success, a frame was returned\n AVERROR(EAGAIN): output is not available in this state - user must try\n to send new input\n AVERROR_EOF: the decoder has been fully flushed, and there will be\n no more output frames\n AVERROR(EINVAL): codec not opened, or it is an encoder\n AVERROR_INPUT_CHANGED: current decoded frame has changed parameters\n with respect to first decoded frame. Applicable\n when flag AV_CODEC_FLAG_DROPCHANGED is set.\n other negative values: legitimate decoding errors"]
pub fn avcodec_receive_frame(avctx: *mut AVCodecContext, frame: *mut AVFrame) -> libc::c_int;
}
extern "C" {
#[doc = " Supply a raw video or audio frame to the encoder. Use avcodec_receive_packet()\n to retrieve buffered output packets.\n\n @param avctx codec context\n @param[in] frame AVFrame containing the raw audio or video frame to be encoded.\n Ownership of the frame remains with the caller, and the\n encoder will not write to the frame. The encoder may create\n a reference to the frame data (or copy it if the frame is\n not reference-counted).\n It can be NULL, in which case it is considered a flush\n packet. This signals the end of the stream. If the encoder\n still has packets buffered, it will return them after this\n call. Once flushing mode has been entered, additional flush\n packets are ignored, and sending frames will return\n AVERROR_EOF.\n\n For audio:\n If AV_CODEC_CAP_VARIABLE_FRAME_SIZE is set, then each frame\n can have any number of samples.\n If it is not set, frame->nb_samples must be equal to\n avctx->frame_size for all frames except the last.\n The final frame may be smaller than avctx->frame_size.\n @return 0 on success, otherwise negative error code:\n AVERROR(EAGAIN): input is not accepted in the current state - user\n must read output with avcodec_receive_packet() (once\n all output is read, the packet should be resent, and\n the call will not fail with EAGAIN).\n AVERROR_EOF: the encoder has been flushed, and no new frames can\n be sent to it\n AVERROR(EINVAL): codec not opened, refcounted_frames not set, it is a\n decoder, or requires flush\n AVERROR(ENOMEM): failed to add packet to internal queue, or similar\n other errors: legitimate encoding errors"]
pub fn avcodec_send_frame(avctx: *mut AVCodecContext, frame: *const AVFrame) -> libc::c_int;
}
extern "C" {
#[doc = " Read encoded data from the encoder.\n\n @param avctx codec context\n @param avpkt This will be set to a reference-counted packet allocated by the\n encoder. Note that the function will always call\n av_packet_unref(avpkt) before doing anything else.\n @return 0 on success, otherwise negative error code:\n AVERROR(EAGAIN): output is not available in the current state - user\n must try to send input\n AVERROR_EOF: the encoder has been fully flushed, and there will be\n no more output packets\n AVERROR(EINVAL): codec not opened, or it is a decoder\n other errors: legitimate encoding errors"]
pub fn avcodec_receive_packet(avctx: *mut AVCodecContext, avpkt: *mut AVPacket) -> libc::c_int;
}
extern "C" {
#[doc = " Create and return a AVHWFramesContext with values adequate for hardware\n decoding. This is meant to get called from the get_format callback, and is\n a helper for preparing a AVHWFramesContext for AVCodecContext.hw_frames_ctx.\n This API is for decoding with certain hardware acceleration modes/APIs only.\n\n The returned AVHWFramesContext is not initialized. The caller must do this\n with av_hwframe_ctx_init().\n\n Calling this function is not a requirement, but makes it simpler to avoid\n codec or hardware API specific details when manually allocating frames.\n\n Alternatively to this, an API user can set AVCodecContext.hw_device_ctx,\n which sets up AVCodecContext.hw_frames_ctx fully automatically, and makes\n it unnecessary to call this function or having to care about\n AVHWFramesContext initialization at all.\n\n There are a number of requirements for calling this function:\n\n - It must be called from get_format with the same avctx parameter that was\n passed to get_format. Calling it outside of get_format is not allowed, and\n can trigger undefined behavior.\n - The function is not always supported (see description of return values).\n Even if this function returns successfully, hwaccel initialization could\n fail later. (The degree to which implementations check whether the stream\n is actually supported varies. Some do this check only after the user's\n get_format callback returns.)\n - The hw_pix_fmt must be one of the choices suggested by get_format. If the\n user decides to use a AVHWFramesContext prepared with this API function,\n the user must return the same hw_pix_fmt from get_format.\n - The device_ref passed to this function must support the given hw_pix_fmt.\n - After calling this API function, it is the user's responsibility to\n initialize the AVHWFramesContext (returned by the out_frames_ref parameter),\n and to set AVCodecContext.hw_frames_ctx to it. If done, this must be done\n before returning from get_format (this is implied by the normal\n AVCodecContext.hw_frames_ctx API rules).\n - The AVHWFramesContext parameters may change every time time get_format is\n called. Also, AVCodecContext.hw_frames_ctx is reset before get_format. So\n you are inherently required to go through this process again on every\n get_format call.\n - It is perfectly possible to call this function without actually using\n the resulting AVHWFramesContext. One use-case might be trying to reuse a\n previously initialized AVHWFramesContext, and calling this API function\n only to test whether the required frame parameters have changed.\n - Fields that use dynamically allocated values of any kind must not be set\n by the user unless setting them is explicitly allowed by the documentation.\n If the user sets AVHWFramesContext.free and AVHWFramesContext.user_opaque,\n the new free callback must call the potentially set previous free callback.\n This API call may set any dynamically allocated fields, including the free\n callback.\n\n The function will set at least the following fields on AVHWFramesContext\n (potentially more, depending on hwaccel API):\n\n - All fields set by av_hwframe_ctx_alloc().\n - Set the format field to hw_pix_fmt.\n - Set the sw_format field to the most suited and most versatile format. (An\n implication is that this will prefer generic formats over opaque formats\n with arbitrary restrictions, if possible.)\n - Set the width/height fields to the coded frame size, rounded up to the\n API-specific minimum alignment.\n - Only _if_ the hwaccel requires a pre-allocated pool: set the initial_pool_size\n field to the number of maximum reference surfaces possible with the codec,\n plus 1 surface for the user to work (meaning the user can safely reference\n at most 1 decoded surface at a time), plus additional buffering introduced\n by frame threading. If the hwaccel does not require pre-allocation, the\n field is left to 0, and the decoder will allocate new surfaces on demand\n during decoding.\n - Possibly AVHWFramesContext.hwctx fields, depending on the underlying\n hardware API.\n\n Essentially, out_frames_ref returns the same as av_hwframe_ctx_alloc(), but\n with basic frame parameters set.\n\n The function is stateless, and does not change the AVCodecContext or the\n device_ref AVHWDeviceContext.\n\n @param avctx The context which is currently calling get_format, and which\n implicitly contains all state needed for filling the returned\n AVHWFramesContext properly.\n @param device_ref A reference to the AVHWDeviceContext describing the device\n which will be used by the hardware decoder.\n @param hw_pix_fmt The hwaccel format you are going to return from get_format.\n @param out_frames_ref On success, set to a reference to an _uninitialized_\n AVHWFramesContext, created from the given device_ref.\n Fields will be set to values required for decoding.\n Not changed if an error is returned.\n @return zero on success, a negative value on error. The following error codes\n have special semantics:\n AVERROR(ENOENT): the decoder does not support this functionality. Setup\n is always manual, or it is a decoder which does not\n support setting AVCodecContext.hw_frames_ctx at all,\n or it is a software format.\n AVERROR(EINVAL): it is known that hardware decoding is not supported for\n this configuration, or the device_ref is not supported\n for the hwaccel referenced by hw_pix_fmt."]
pub fn avcodec_get_hw_frames_parameters(
avctx: *mut AVCodecContext,
device_ref: *mut AVBufferRef,
hw_pix_fmt: AVPixelFormat,
out_frames_ref: *mut *mut AVBufferRef,
) -> libc::c_int;
}
#[repr(u32)]
#[doc = " @defgroup lavc_parsing Frame parsing\n @{"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVPictureStructure {
AV_PICTURE_STRUCTURE_UNKNOWN = 0,
AV_PICTURE_STRUCTURE_TOP_FIELD = 1,
AV_PICTURE_STRUCTURE_BOTTOM_FIELD = 2,
AV_PICTURE_STRUCTURE_FRAME = 3,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVCodecParserContext {
pub priv_data: *mut libc::c_void,
pub parser: *mut AVCodecParser,
pub frame_offset: i64,
pub cur_offset: i64,
pub next_frame_offset: i64,
pub pict_type: libc::c_int,
#[doc = " This field is used for proper frame duration computation in lavf.\n It signals, how much longer the frame duration of the current frame\n is compared to normal frame duration.\n\n frame_duration = (1 + repeat_pict) * time_base\n\n It is used by codecs like H.264 to display telecined material."]
pub repeat_pict: libc::c_int,
pub pts: i64,
pub dts: i64,
pub last_pts: i64,
pub last_dts: i64,
pub fetch_timestamp: libc::c_int,
pub cur_frame_start_index: libc::c_int,
pub cur_frame_offset: [i64; 4usize],
pub cur_frame_pts: [i64; 4usize],
pub cur_frame_dts: [i64; 4usize],
pub flags: libc::c_int,
#[doc = "< byte offset from starting packet start"]
pub offset: i64,
pub cur_frame_end: [i64; 4usize],
#[doc = " Set by parser to 1 for key frames and 0 for non-key frames.\n It is initialized to -1, so if the parser doesn't set this flag,\n old-style fallback using AV_PICTURE_TYPE_I picture type as key frames\n will be used."]
pub key_frame: libc::c_int,
#[doc = " @deprecated unused"]
pub convergence_duration: i64,
#[doc = " Synchronization point for start of timestamp generation.\n\n Set to >0 for sync point, 0 for no sync point and <0 for undefined\n (default).\n\n For example, this corresponds to presence of H.264 buffering period\n SEI message."]
pub dts_sync_point: libc::c_int,
#[doc = " Offset of the current timestamp against last timestamp sync point in\n units of AVCodecContext.time_base.\n\n Set to INT_MIN when dts_sync_point unused. Otherwise, it must\n contain a valid timestamp offset.\n\n Note that the timestamp of sync point has usually a nonzero\n dts_ref_dts_delta, which refers to the previous sync point. Offset of\n the next frame after timestamp sync point will be usually 1.\n\n For example, this corresponds to H.264 cpb_removal_delay."]
pub dts_ref_dts_delta: libc::c_int,
#[doc = " Presentation delay of current frame in units of AVCodecContext.time_base.\n\n Set to INT_MIN when dts_sync_point unused. Otherwise, it must\n contain valid non-negative timestamp delta (presentation time of a frame\n must not lie in the past).\n\n This delay represents the difference between decoding and presentation\n time of the frame.\n\n For example, this corresponds to H.264 dpb_output_delay."]
pub pts_dts_delta: libc::c_int,
#[doc = " Position of the packet in file.\n\n Analogous to cur_frame_pts/dts"]
pub cur_frame_pos: [i64; 4usize],
#[doc = " Byte position of currently parsed frame in stream."]
pub pos: i64,
#[doc = " Previous frame byte position."]
pub last_pos: i64,
#[doc = " Duration of the current frame.\n For audio, this is in units of 1 / AVCodecContext.sample_rate.\n For all other types, this is in units of AVCodecContext.time_base."]
pub duration: libc::c_int,
pub field_order: AVFieldOrder,
#[doc = " Indicate whether a picture is coded as a frame, top field or bottom field.\n\n For example, H.264 field_pic_flag equal to 0 corresponds to\n AV_PICTURE_STRUCTURE_FRAME. An H.264 picture with field_pic_flag\n equal to 1 and bottom_field_flag equal to 0 corresponds to\n AV_PICTURE_STRUCTURE_TOP_FIELD."]
pub picture_structure: AVPictureStructure,
#[doc = " Picture number incremented in presentation or output order.\n This field may be reinitialized at the first picture of a new sequence.\n\n For example, this corresponds to H.264 PicOrderCnt."]
pub output_picture_number: libc::c_int,
#[doc = " Dimensions of the decoded video intended for presentation."]
pub width: libc::c_int,
pub height: libc::c_int,
#[doc = " Dimensions of the coded video."]
pub coded_width: libc::c_int,
pub coded_height: libc::c_int,
#[doc = " The format of the coded data, corresponds to enum AVPixelFormat for video\n and for enum AVSampleFormat for audio.\n\n Note that a decoder can have considerable freedom in how exactly it\n decodes the data, so the format reported here might be different from the\n one returned by a decoder."]
pub format: libc::c_int,
}
#[test]
fn bindgen_test_layout_AVCodecParserContext() {
const UNINIT: ::std::mem::MaybeUninit<AVCodecParserContext> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVCodecParserContext>(),
352usize,
concat!("Size of: ", stringify!(AVCodecParserContext))
);
assert_eq!(
::std::mem::align_of::<AVCodecParserContext>(),
8usize,
concat!("Alignment of ", stringify!(AVCodecParserContext))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).priv_data) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(priv_data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).parser) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(parser)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).frame_offset) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(frame_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).cur_offset) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(cur_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).next_frame_offset) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(next_frame_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pict_type) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(pict_type)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).repeat_pict) as usize - ptr as usize },
44usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(repeat_pict)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pts) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(pts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).dts) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(dts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).last_pts) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(last_pts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).last_dts) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(last_dts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).fetch_timestamp) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(fetch_timestamp)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).cur_frame_start_index) as usize - ptr as usize },
84usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(cur_frame_start_index)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).cur_frame_offset) as usize - ptr as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(cur_frame_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).cur_frame_pts) as usize - ptr as usize },
120usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(cur_frame_pts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).cur_frame_dts) as usize - ptr as usize },
152usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(cur_frame_dts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize },
184usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize },
192usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).cur_frame_end) as usize - ptr as usize },
200usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(cur_frame_end)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).key_frame) as usize - ptr as usize },
232usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(key_frame)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).convergence_duration) as usize - ptr as usize },
240usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(convergence_duration)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).dts_sync_point) as usize - ptr as usize },
248usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(dts_sync_point)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).dts_ref_dts_delta) as usize - ptr as usize },
252usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(dts_ref_dts_delta)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pts_dts_delta) as usize - ptr as usize },
256usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(pts_dts_delta)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).cur_frame_pos) as usize - ptr as usize },
264usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(cur_frame_pos)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pos) as usize - ptr as usize },
296usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(pos)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).last_pos) as usize - ptr as usize },
304usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(last_pos)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).duration) as usize - ptr as usize },
312usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(duration)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).field_order) as usize - ptr as usize },
316usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(field_order)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).picture_structure) as usize - ptr as usize },
320usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(picture_structure)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).output_picture_number) as usize - ptr as usize },
324usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(output_picture_number)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize },
328usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(width)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).height) as usize - ptr as usize },
332usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(height)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).coded_width) as usize - ptr as usize },
336usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(coded_width)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).coded_height) as usize - ptr as usize },
340usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(coded_height)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).format) as usize - ptr as usize },
344usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParserContext),
"::",
stringify!(format)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVCodecParser {
pub codec_ids: [libc::c_int; 5usize],
pub priv_data_size: libc::c_int,
pub parser_init:
::std::option::Option<unsafe extern "C" fn(s: *mut AVCodecParserContext) -> libc::c_int>,
pub parser_parse: ::std::option::Option<
unsafe extern "C" fn(
s: *mut AVCodecParserContext,
avctx: *mut AVCodecContext,
poutbuf: *mut *const u8,
poutbuf_size: *mut libc::c_int,
buf: *const u8,
buf_size: libc::c_int,
) -> libc::c_int,
>,
pub parser_close: ::std::option::Option<unsafe extern "C" fn(s: *mut AVCodecParserContext)>,
pub split: ::std::option::Option<
unsafe extern "C" fn(
avctx: *mut AVCodecContext,
buf: *const u8,
buf_size: libc::c_int,
) -> libc::c_int,
>,
pub next: *mut AVCodecParser,
}
#[test]
fn bindgen_test_layout_AVCodecParser() {
const UNINIT: ::std::mem::MaybeUninit<AVCodecParser> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVCodecParser>(),
64usize,
concat!("Size of: ", stringify!(AVCodecParser))
);
assert_eq!(
::std::mem::align_of::<AVCodecParser>(),
8usize,
concat!("Alignment of ", stringify!(AVCodecParser))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).codec_ids) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParser),
"::",
stringify!(codec_ids)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).priv_data_size) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParser),
"::",
stringify!(priv_data_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).parser_init) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParser),
"::",
stringify!(parser_init)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).parser_parse) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParser),
"::",
stringify!(parser_parse)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).parser_close) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParser),
"::",
stringify!(parser_close)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).split) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParser),
"::",
stringify!(split)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).next) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVCodecParser),
"::",
stringify!(next)
)
);
}
extern "C" {
#[doc = " Iterate over all registered codec parsers.\n\n @param opaque a pointer where libavcodec will store the iteration state. Must\n point to NULL to start the iteration.\n\n @return the next registered codec parser or NULL when the iteration is\n finished"]
pub fn av_parser_iterate(opaque: *mut *mut libc::c_void) -> *const AVCodecParser;
}
extern "C" {
pub fn av_parser_next(c: *const AVCodecParser) -> *mut AVCodecParser;
}
extern "C" {
pub fn av_register_codec_parser(parser: *mut AVCodecParser);
}
extern "C" {
pub fn av_parser_init(codec_id: libc::c_int) -> *mut AVCodecParserContext;
}
extern "C" {
#[doc = " Parse a packet.\n\n @param s parser context.\n @param avctx codec context.\n @param poutbuf set to pointer to parsed buffer or NULL if not yet finished.\n @param poutbuf_size set to size of parsed buffer or zero if not yet finished.\n @param buf input buffer.\n @param buf_size buffer size in bytes without the padding. I.e. the full buffer\nsize is assumed to be buf_size + AV_INPUT_BUFFER_PADDING_SIZE.\nTo signal EOF, this should be 0 (so that the last frame\ncan be output).\n @param pts input presentation timestamp.\n @param dts input decoding timestamp.\n @param pos input byte position in stream.\n @return the number of bytes of the input bitstream used.\n\n Example:\n @code\n while(in_len){\n len = av_parser_parse2(myparser, AVCodecContext, &data, &size,\n in_data, in_len,\n pts, dts, pos);\n in_data += len;\n in_len -= len;\n\n if(size)\n decode_frame(data, size);\n }\n @endcode"]
pub fn av_parser_parse2(
s: *mut AVCodecParserContext,
avctx: *mut AVCodecContext,
poutbuf: *mut *mut u8,
poutbuf_size: *mut libc::c_int,
buf: *const u8,
buf_size: libc::c_int,
pts: i64,
dts: i64,
pos: i64,
) -> libc::c_int;
}
extern "C" {
#[doc = " @return 0 if the output buffer is a subset of the input, 1 if it is allocated and must be freed\n @deprecated Use dump_extradata, remove_extra or extract_extradata\n bitstream filters instead."]
pub fn av_parser_change(
s: *mut AVCodecParserContext,
avctx: *mut AVCodecContext,
poutbuf: *mut *mut u8,
poutbuf_size: *mut libc::c_int,
buf: *const u8,
buf_size: libc::c_int,
keyframe: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_parser_close(s: *mut AVCodecParserContext);
}
extern "C" {
#[doc = " Encode a frame of audio.\n\n Takes input samples from frame and writes the next output packet, if\n available, to avpkt. The output packet does not necessarily contain data for\n the most recent frame, as encoders can delay, split, and combine input frames\n internally as needed.\n\n @param avctx codec context\n @param avpkt output AVPacket.\n The user can supply an output buffer by setting\n avpkt->data and avpkt->size prior to calling the\n function, but if the size of the user-provided data is not\n large enough, encoding will fail. If avpkt->data and\n avpkt->size are set, avpkt->destruct must also be set. All\n other AVPacket fields will be reset by the encoder using\n av_init_packet(). If avpkt->data is NULL, the encoder will\n allocate it. The encoder will set avpkt->size to the size\n of the output packet.\n\n If this function fails or produces no output, avpkt will be\n freed using av_packet_unref().\n @param[in] frame AVFrame containing the raw audio data to be encoded.\n May be NULL when flushing an encoder that has the\n AV_CODEC_CAP_DELAY capability set.\n If AV_CODEC_CAP_VARIABLE_FRAME_SIZE is set, then each frame\n can have any number of samples.\n If it is not set, frame->nb_samples must be equal to\n avctx->frame_size for all frames except the last.\n The final frame may be smaller than avctx->frame_size.\n @param[out] got_packet_ptr This field is set to 1 by libavcodec if the\n output packet is non-empty, and to 0 if it is\n empty. If the function returns an error, the\n packet can be assumed to be invalid, and the\n value of got_packet_ptr is undefined and should\n not be used.\n @return 0 on success, negative error code on failure\n\n @deprecated use avcodec_send_frame()/avcodec_receive_packet() instead.\n If allowed and required, set AVCodecContext.get_encode_buffer to\n a custom function to pass user supplied output buffers."]
pub fn avcodec_encode_audio2(
avctx: *mut AVCodecContext,
avpkt: *mut AVPacket,
frame: *const AVFrame,
got_packet_ptr: *mut libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Encode a frame of video.\n\n Takes input raw video data from frame and writes the next output packet, if\n available, to avpkt. The output packet does not necessarily contain data for\n the most recent frame, as encoders can delay and reorder input frames\n internally as needed.\n\n @param avctx codec context\n @param avpkt output AVPacket.\n The user can supply an output buffer by setting\n avpkt->data and avpkt->size prior to calling the\n function, but if the size of the user-provided data is not\n large enough, encoding will fail. All other AVPacket fields\n will be reset by the encoder using av_init_packet(). If\n avpkt->data is NULL, the encoder will allocate it.\n The encoder will set avpkt->size to the size of the\n output packet. The returned data (if any) belongs to the\n caller, he is responsible for freeing it.\n\n If this function fails or produces no output, avpkt will be\n freed using av_packet_unref().\n @param[in] frame AVFrame containing the raw video data to be encoded.\n May be NULL when flushing an encoder that has the\n AV_CODEC_CAP_DELAY capability set.\n @param[out] got_packet_ptr This field is set to 1 by libavcodec if the\n output packet is non-empty, and to 0 if it is\n empty. If the function returns an error, the\n packet can be assumed to be invalid, and the\n value of got_packet_ptr is undefined and should\n not be used.\n @return 0 on success, negative error code on failure\n\n @deprecated use avcodec_send_frame()/avcodec_receive_packet() instead.\n If allowed and required, set AVCodecContext.get_encode_buffer to\n a custom function to pass user supplied output buffers."]
pub fn avcodec_encode_video2(
avctx: *mut AVCodecContext,
avpkt: *mut AVPacket,
frame: *const AVFrame,
got_packet_ptr: *mut libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn avcodec_encode_subtitle(
avctx: *mut AVCodecContext,
buf: *mut u8,
buf_size: libc::c_int,
sub: *const AVSubtitle,
) -> libc::c_int;
}
extern "C" {
#[doc = " @deprecated unused"]
pub fn avpicture_alloc(
picture: *mut AVPicture,
pix_fmt: AVPixelFormat,
width: libc::c_int,
height: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " @deprecated unused"]
pub fn avpicture_free(picture: *mut AVPicture);
}
extern "C" {
#[doc = " @deprecated use av_image_fill_arrays() instead."]
pub fn avpicture_fill(
picture: *mut AVPicture,
ptr: *const u8,
pix_fmt: AVPixelFormat,
width: libc::c_int,
height: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " @deprecated use av_image_copy_to_buffer() instead."]
pub fn avpicture_layout(
src: *const AVPicture,
pix_fmt: AVPixelFormat,
width: libc::c_int,
height: libc::c_int,
dest: *mut libc::c_uchar,
dest_size: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " @deprecated use av_image_get_buffer_size() instead."]
pub fn avpicture_get_size(
pix_fmt: AVPixelFormat,
width: libc::c_int,
height: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " @deprecated av_image_copy() instead."]
pub fn av_picture_copy(
dst: *mut AVPicture,
src: *const AVPicture,
pix_fmt: AVPixelFormat,
width: libc::c_int,
height: libc::c_int,
);
}
extern "C" {
#[doc = " @deprecated unused"]
pub fn av_picture_crop(
dst: *mut AVPicture,
src: *const AVPicture,
pix_fmt: AVPixelFormat,
top_band: libc::c_int,
left_band: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " @deprecated unused"]
pub fn av_picture_pad(
dst: *mut AVPicture,
src: *const AVPicture,
height: libc::c_int,
width: libc::c_int,
pix_fmt: AVPixelFormat,
padtop: libc::c_int,
padbottom: libc::c_int,
padleft: libc::c_int,
padright: libc::c_int,
color: *mut libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " @deprecated Use av_pix_fmt_get_chroma_sub_sample"]
pub fn avcodec_get_chroma_sub_sample(
pix_fmt: AVPixelFormat,
h_shift: *mut libc::c_int,
v_shift: *mut libc::c_int,
);
}
extern "C" {
#[doc = " Return a value representing the fourCC code associated to the\n pixel format pix_fmt, or 0 if no associated fourCC code can be\n found."]
pub fn avcodec_pix_fmt_to_codec_tag(pix_fmt: AVPixelFormat) -> libc::c_uint;
}
extern "C" {
#[doc = " Find the best pixel format to convert to given a certain source pixel\n format. When converting from one pixel format to another, information loss\n may occur. For example, when converting from RGB24 to GRAY, the color\n information will be lost. Similarly, other losses occur when converting from\n some formats to other formats. avcodec_find_best_pix_fmt_of_2() searches which of\n the given pixel formats should be used to suffer the least amount of loss.\n The pixel formats from which it chooses one, are determined by the\n pix_fmt_list parameter.\n\n\n @param[in] pix_fmt_list AV_PIX_FMT_NONE terminated array of pixel formats to choose from\n @param[in] src_pix_fmt source pixel format\n @param[in] has_alpha Whether the source pixel format alpha channel is used.\n @param[out] loss_ptr Combination of flags informing you what kind of losses will occur.\n @return The best pixel format to convert to or -1 if none was found."]
pub fn avcodec_find_best_pix_fmt_of_list(
pix_fmt_list: *const AVPixelFormat,
src_pix_fmt: AVPixelFormat,
has_alpha: libc::c_int,
loss_ptr: *mut libc::c_int,
) -> AVPixelFormat;
}
extern "C" {
#[doc = " @deprecated see av_get_pix_fmt_loss()"]
pub fn avcodec_get_pix_fmt_loss(
dst_pix_fmt: AVPixelFormat,
src_pix_fmt: AVPixelFormat,
has_alpha: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " @deprecated see av_find_best_pix_fmt_of_2()"]
pub fn avcodec_find_best_pix_fmt_of_2(
dst_pix_fmt1: AVPixelFormat,
dst_pix_fmt2: AVPixelFormat,
src_pix_fmt: AVPixelFormat,
has_alpha: libc::c_int,
loss_ptr: *mut libc::c_int,
) -> AVPixelFormat;
}
extern "C" {
pub fn avcodec_find_best_pix_fmt2(
dst_pix_fmt1: AVPixelFormat,
dst_pix_fmt2: AVPixelFormat,
src_pix_fmt: AVPixelFormat,
has_alpha: libc::c_int,
loss_ptr: *mut libc::c_int,
) -> AVPixelFormat;
}
extern "C" {
pub fn avcodec_default_get_format(
s: *mut AVCodecContext,
fmt: *const AVPixelFormat,
) -> AVPixelFormat;
}
extern "C" {
#[doc = " Put a string representing the codec tag codec_tag in buf.\n\n @param buf buffer to place codec tag in\n @param buf_size size in bytes of buf\n @param codec_tag codec tag to assign\n @return the length of the string that would have been generated if\n enough space had been available, excluding the trailing null\n\n @deprecated see av_fourcc_make_string() and av_fourcc2str()."]
pub fn av_get_codec_tag_string(
buf: *mut libc::c_char,
buf_size: usize,
codec_tag: libc::c_uint,
) -> usize;
}
extern "C" {
pub fn avcodec_string(
buf: *mut libc::c_char,
buf_size: libc::c_int,
enc: *mut AVCodecContext,
encode: libc::c_int,
);
}
extern "C" {
#[doc = " Return a name for the specified profile, if available.\n\n @param codec the codec that is searched for the given profile\n @param profile the profile value for which a name is requested\n @return A name for the profile if found, NULL otherwise."]
pub fn av_get_profile_name(codec: *const AVCodec, profile: libc::c_int) -> *const libc::c_char;
}
extern "C" {
#[doc = " Return a name for the specified profile, if available.\n\n @param codec_id the ID of the codec to which the requested profile belongs\n @param profile the profile value for which a name is requested\n @return A name for the profile if found, NULL otherwise.\n\n @note unlike av_get_profile_name(), which searches a list of profiles\n supported by a specific decoder or encoder implementation, this\n function searches the list of profiles from the AVCodecDescriptor"]
pub fn avcodec_profile_name(codec_id: AVCodecID, profile: libc::c_int) -> *const libc::c_char;
}
extern "C" {
pub fn avcodec_default_execute(
c: *mut AVCodecContext,
func: ::std::option::Option<
unsafe extern "C" fn(c2: *mut AVCodecContext, arg2: *mut libc::c_void) -> libc::c_int,
>,
arg: *mut libc::c_void,
ret: *mut libc::c_int,
count: libc::c_int,
size: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn avcodec_default_execute2(
c: *mut AVCodecContext,
func: ::std::option::Option<
unsafe extern "C" fn(
c2: *mut AVCodecContext,
arg2: *mut libc::c_void,
arg1: libc::c_int,
arg2: libc::c_int,
) -> libc::c_int,
>,
arg: *mut libc::c_void,
ret: *mut libc::c_int,
count: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Fill AVFrame audio data and linesize pointers.\n\n The buffer buf must be a preallocated buffer with a size big enough\n to contain the specified samples amount. The filled AVFrame data\n pointers will point to this buffer.\n\n AVFrame extended_data channel pointers are allocated if necessary for\n planar audio.\n\n @param frame the AVFrame\n frame->nb_samples must be set prior to calling the\n function. This function fills in frame->data,\n frame->extended_data, frame->linesize[0].\n @param nb_channels channel count\n @param sample_fmt sample format\n @param buf buffer to use for frame data\n @param buf_size size of buffer\n @param align plane size sample alignment (0 = default)\n @return >=0 on success, negative error code on failure\n @todo return the size in bytes required to store the samples in\n case of success, at the next libavutil bump"]
pub fn avcodec_fill_audio_frame(
frame: *mut AVFrame,
nb_channels: libc::c_int,
sample_fmt: AVSampleFormat,
buf: *const u8,
buf_size: libc::c_int,
align: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Reset the internal codec state / flush internal buffers. Should be called\n e.g. when seeking or when switching to a different stream.\n\n @note for decoders, when refcounted frames are not used\n (i.e. avctx->refcounted_frames is 0), this invalidates the frames previously\n returned from the decoder. When refcounted frames are used, the decoder just\n releases any references it might keep internally, but the caller's reference\n remains valid.\n\n @note for encoders, this function will only do something if the encoder\n declares support for AV_CODEC_CAP_ENCODER_FLUSH. When called, the encoder\n will drain any remaining packets, and can then be re-used for a different\n stream (as opposed to sending a null frame which will leave the encoder\n in a permanent EOF state after draining). This can be desirable if the\n cost of tearing down and replacing the encoder instance is high."]
pub fn avcodec_flush_buffers(avctx: *mut AVCodecContext);
}
extern "C" {
#[doc = " Return codec bits per sample.\n\n @param[in] codec_id the codec\n @return Number of bits per sample or zero if unknown for the given codec."]
pub fn av_get_bits_per_sample(codec_id: AVCodecID) -> libc::c_int;
}
extern "C" {
#[doc = " Return the PCM codec associated with a sample format.\n @param be endianness, 0 for little, 1 for big,\n -1 (or anything else) for native\n @return AV_CODEC_ID_PCM_* or AV_CODEC_ID_NONE"]
pub fn av_get_pcm_codec(fmt: AVSampleFormat, be: libc::c_int) -> AVCodecID;
}
extern "C" {
#[doc = " Return codec bits per sample.\n Only return non-zero if the bits per sample is exactly correct, not an\n approximation.\n\n @param[in] codec_id the codec\n @return Number of bits per sample or zero if unknown for the given codec."]
pub fn av_get_exact_bits_per_sample(codec_id: AVCodecID) -> libc::c_int;
}
extern "C" {
#[doc = " Return audio frame duration.\n\n @param avctx codec context\n @param frame_bytes size of the frame, or 0 if unknown\n @return frame duration, in samples, if known. 0 if not able to\n determine."]
pub fn av_get_audio_frame_duration(
avctx: *mut AVCodecContext,
frame_bytes: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " This function is the same as av_get_audio_frame_duration(), except it works\n with AVCodecParameters instead of an AVCodecContext."]
pub fn av_get_audio_frame_duration2(
par: *mut AVCodecParameters,
frame_bytes: libc::c_int,
) -> libc::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVBitStreamFilterContext {
pub priv_data: *mut libc::c_void,
pub filter: *const AVBitStreamFilter,
pub parser: *mut AVCodecParserContext,
pub next: *mut AVBitStreamFilterContext,
#[doc = " Internal default arguments, used if NULL is passed to av_bitstream_filter_filter().\n Not for access by library users."]
pub args: *mut libc::c_char,
}
#[test]
fn bindgen_test_layout_AVBitStreamFilterContext() {
const UNINIT: ::std::mem::MaybeUninit<AVBitStreamFilterContext> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVBitStreamFilterContext>(),
40usize,
concat!("Size of: ", stringify!(AVBitStreamFilterContext))
);
assert_eq!(
::std::mem::align_of::<AVBitStreamFilterContext>(),
8usize,
concat!("Alignment of ", stringify!(AVBitStreamFilterContext))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).priv_data) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVBitStreamFilterContext),
"::",
stringify!(priv_data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).filter) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVBitStreamFilterContext),
"::",
stringify!(filter)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).parser) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVBitStreamFilterContext),
"::",
stringify!(parser)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).next) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVBitStreamFilterContext),
"::",
stringify!(next)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).args) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVBitStreamFilterContext),
"::",
stringify!(args)
)
);
}
extern "C" {
#[doc = " @deprecated the old bitstream filtering API (using AVBitStreamFilterContext)\n is deprecated. Use the new bitstream filtering API (using AVBSFContext)."]
pub fn av_register_bitstream_filter(bsf: *mut AVBitStreamFilter);
}
extern "C" {
#[doc = " @deprecated the old bitstream filtering API (using AVBitStreamFilterContext)\n is deprecated. Use av_bsf_get_by_name(), av_bsf_alloc(), and av_bsf_init()\n from the new bitstream filtering API (using AVBSFContext)."]
pub fn av_bitstream_filter_init(name: *const libc::c_char) -> *mut AVBitStreamFilterContext;
}
extern "C" {
#[doc = " @deprecated the old bitstream filtering API (using AVBitStreamFilterContext)\n is deprecated. Use av_bsf_send_packet() and av_bsf_receive_packet() from the\n new bitstream filtering API (using AVBSFContext)."]
pub fn av_bitstream_filter_filter(
bsfc: *mut AVBitStreamFilterContext,
avctx: *mut AVCodecContext,
args: *const libc::c_char,
poutbuf: *mut *mut u8,
poutbuf_size: *mut libc::c_int,
buf: *const u8,
buf_size: libc::c_int,
keyframe: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " @deprecated the old bitstream filtering API (using AVBitStreamFilterContext)\n is deprecated. Use av_bsf_free() from the new bitstream filtering API (using\n AVBSFContext)."]
pub fn av_bitstream_filter_close(bsf: *mut AVBitStreamFilterContext);
}
extern "C" {
#[doc = " @deprecated the old bitstream filtering API (using AVBitStreamFilterContext)\n is deprecated. Use av_bsf_iterate() from the new bitstream filtering API (using\n AVBSFContext)."]
pub fn av_bitstream_filter_next(f: *const AVBitStreamFilter) -> *const AVBitStreamFilter;
}
extern "C" {
pub fn av_bsf_next(opaque: *mut *mut libc::c_void) -> *const AVBitStreamFilter;
}
extern "C" {
#[doc = " Same behaviour av_fast_malloc but the buffer has additional\n AV_INPUT_BUFFER_PADDING_SIZE at the end which will always be 0.\n\n In addition the whole buffer will initially and after resizes\n be 0-initialized so that no uninitialized data will ever appear."]
pub fn av_fast_padded_malloc(ptr: *mut libc::c_void, size: *mut libc::c_uint, min_size: usize);
}
extern "C" {
#[doc = " Same behaviour av_fast_padded_malloc except that buffer will always\n be 0-initialized after call."]
pub fn av_fast_padded_mallocz(ptr: *mut libc::c_void, size: *mut libc::c_uint, min_size: usize);
}
extern "C" {
#[doc = " Encode extradata length to a buffer. Used by xiph codecs.\n\n @param s buffer to write to; must be at least (v/255+1) bytes long\n @param v size of extradata in bytes\n @return number of bytes written to the buffer."]
pub fn av_xiphlacing(s: *mut libc::c_uchar, v: libc::c_uint) -> libc::c_uint;
}
extern "C" {
#[doc = " Register the hardware accelerator hwaccel.\n\n @deprecated This function doesn't do anything."]
pub fn av_register_hwaccel(hwaccel: *mut AVHWAccel);
}
extern "C" {
#[doc = " If hwaccel is NULL, returns the first registered hardware accelerator,\n if hwaccel is non-NULL, returns the next registered hardware accelerator\n after hwaccel, or NULL if hwaccel is the last one.\n\n @deprecated AVHWaccel structures contain no user-serviceable parts, so\n this function should not be used."]
pub fn av_hwaccel_next(hwaccel: *const AVHWAccel) -> *mut AVHWAccel;
}
#[repr(u32)]
#[doc = " Lock operation used by lockmgr\n\n @deprecated Deprecated together with av_lockmgr_register()."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVLockOp {
#[doc = "< Create a mutex"]
AV_LOCK_CREATE = 0,
#[doc = "< Lock the mutex"]
AV_LOCK_OBTAIN = 1,
#[doc = "< Unlock the mutex"]
AV_LOCK_RELEASE = 2,
#[doc = "< Free mutex resources"]
AV_LOCK_DESTROY = 3,
}
extern "C" {
#[doc = " Register a user provided lock manager supporting the operations\n specified by AVLockOp. The \"mutex\" argument to the function points\n to a (void *) where the lockmgr should store/get a pointer to a user\n allocated mutex. It is NULL upon AV_LOCK_CREATE and equal to the\n value left by the last call for all other ops. If the lock manager is\n unable to perform the op then it should leave the mutex in the same\n state as when it was called and return a non-zero value. However,\n when called with AV_LOCK_DESTROY the mutex will always be assumed to\n have been successfully destroyed. If av_lockmgr_register succeeds\n it will return a non-negative value, if it fails it will return a\n negative value and destroy all mutex and unregister all callbacks.\n av_lockmgr_register is not thread-safe, it must be called from a\n single thread before any calls which make use of locking are used.\n\n @param cb User defined callback. av_lockmgr_register invokes calls\n to this callback and the previously registered callback.\n The callback will be used to create more than one mutex\n each of which must be backed by its own underlying locking\n mechanism (i.e. do not use a single static object to\n implement your lock manager). If cb is set to NULL the\n lockmgr will be unregistered.\n\n @deprecated This function does nothing, and always returns 0. Be sure to\n build with thread support to get basic thread safety."]
pub fn av_lockmgr_register(
cb: ::std::option::Option<
unsafe extern "C" fn(mutex: *mut *mut libc::c_void, op: AVLockOp) -> libc::c_int,
>,
) -> libc::c_int;
}
extern "C" {
#[doc = " @return a positive value if s is open (i.e. avcodec_open2() was called on it\n with no corresponding avcodec_close()), 0 otherwise."]
pub fn avcodec_is_open(s: *mut AVCodecContext) -> libc::c_int;
}
extern "C" {
#[doc = " Allocate a CPB properties structure and initialize its fields to default\n values.\n\n @param size if non-NULL, the size of the allocated struct will be written\n here. This is useful for embedding it in side data.\n\n @return the newly allocated struct or NULL on failure"]
pub fn av_cpb_properties_alloc(size: *mut usize) -> *mut AVCPBProperties;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVDVProfile {
pub dsf: libc::c_int,
pub video_stype: libc::c_int,
pub frame_size: libc::c_int,
pub difseg_size: libc::c_int,
pub n_difchan: libc::c_int,
pub time_base: AVRational,
pub ltc_divisor: libc::c_int,
pub height: libc::c_int,
pub width: libc::c_int,
pub sar: [AVRational; 2usize],
pub pix_fmt: AVPixelFormat,
pub bpm: libc::c_int,
pub block_sizes: *const u8,
pub audio_stride: libc::c_int,
pub audio_min_samples: [libc::c_int; 3usize],
pub audio_samples_dist: [libc::c_int; 5usize],
pub audio_shuffle: *const [libc::c_uchar; 9usize],
}
#[test]
fn bindgen_test_layout_AVDVProfile() {
const UNINIT: ::std::mem::MaybeUninit<AVDVProfile> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVDVProfile>(),
120usize,
concat!("Size of: ", stringify!(AVDVProfile))
);
assert_eq!(
::std::mem::align_of::<AVDVProfile>(),
8usize,
concat!("Alignment of ", stringify!(AVDVProfile))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).dsf) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVDVProfile),
"::",
stringify!(dsf)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).video_stype) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(AVDVProfile),
"::",
stringify!(video_stype)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).frame_size) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVDVProfile),
"::",
stringify!(frame_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).difseg_size) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(AVDVProfile),
"::",
stringify!(difseg_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).n_difchan) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVDVProfile),
"::",
stringify!(n_difchan)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).time_base) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(AVDVProfile),
"::",
stringify!(time_base)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ltc_divisor) as usize - ptr as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(AVDVProfile),
"::",
stringify!(ltc_divisor)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).height) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVDVProfile),
"::",
stringify!(height)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize },
36usize,
concat!(
"Offset of field: ",
stringify!(AVDVProfile),
"::",
stringify!(width)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sar) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVDVProfile),
"::",
stringify!(sar)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pix_fmt) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVDVProfile),
"::",
stringify!(pix_fmt)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).bpm) as usize - ptr as usize },
60usize,
concat!(
"Offset of field: ",
stringify!(AVDVProfile),
"::",
stringify!(bpm)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).block_sizes) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(AVDVProfile),
"::",
stringify!(block_sizes)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).audio_stride) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(AVDVProfile),
"::",
stringify!(audio_stride)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).audio_min_samples) as usize - ptr as usize },
76usize,
concat!(
"Offset of field: ",
stringify!(AVDVProfile),
"::",
stringify!(audio_min_samples)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).audio_samples_dist) as usize - ptr as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(AVDVProfile),
"::",
stringify!(audio_samples_dist)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).audio_shuffle) as usize - ptr as usize },
112usize,
concat!(
"Offset of field: ",
stringify!(AVDVProfile),
"::",
stringify!(audio_shuffle)
)
);
}
extern "C" {
#[doc = " Get a DV profile for the provided compressed frame.\n\n @param sys the profile used for the previous frame, may be NULL\n @param frame the compressed data buffer\n @param buf_size size of the buffer in bytes\n @return the DV profile for the supplied data or NULL on failure"]
pub fn av_dv_frame_profile(
sys: *const AVDVProfile,
frame: *const u8,
buf_size: libc::c_uint,
) -> *const AVDVProfile;
}
extern "C" {
#[doc = " Get a DV profile for the provided stream parameters."]
pub fn av_dv_codec_profile(
width: libc::c_int,
height: libc::c_int,
pix_fmt: AVPixelFormat,
) -> *const AVDVProfile;
}
extern "C" {
#[doc = " Get a DV profile for the provided stream parameters.\n The frame rate is used as a best-effort parameter."]
pub fn av_dv_codec_profile2(
width: libc::c_int,
height: libc::c_int,
pix_fmt: AVPixelFormat,
frame_rate: AVRational,
) -> *const AVDVProfile;
}
#[doc = " @defgroup lavc_fft FFT functions\n @ingroup lavc_misc\n\n @{"]
pub type FFTSample = f32;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq)]
pub struct FFTComplex {
pub re: FFTSample,
pub im: FFTSample,
}
#[test]
fn bindgen_test_layout_FFTComplex() {
const UNINIT: ::std::mem::MaybeUninit<FFTComplex> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<FFTComplex>(),
8usize,
concat!("Size of: ", stringify!(FFTComplex))
);
assert_eq!(
::std::mem::align_of::<FFTComplex>(),
4usize,
concat!("Alignment of ", stringify!(FFTComplex))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).re) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(FFTComplex),
"::",
stringify!(re)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).im) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(FFTComplex),
"::",
stringify!(im)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FFTContext {
_unused: [u8; 0],
}
extern "C" {
#[doc = " Set up a complex FFT.\n @param nbits log2 of the length of the input array\n @param inverse if 0 perform the forward transform, if 1 perform the inverse"]
pub fn av_fft_init(nbits: libc::c_int, inverse: libc::c_int) -> *mut FFTContext;
}
extern "C" {
#[doc = " Do the permutation needed BEFORE calling ff_fft_calc()."]
pub fn av_fft_permute(s: *mut FFTContext, z: *mut FFTComplex);
}
extern "C" {
#[doc = " Do a complex FFT with the parameters defined in av_fft_init(). The\n input data must be permuted before. No 1.0/sqrt(n) normalization is done."]
pub fn av_fft_calc(s: *mut FFTContext, z: *mut FFTComplex);
}
extern "C" {
pub fn av_fft_end(s: *mut FFTContext);
}
extern "C" {
pub fn av_mdct_init(nbits: libc::c_int, inverse: libc::c_int, scale: f64) -> *mut FFTContext;
}
extern "C" {
pub fn av_imdct_calc(s: *mut FFTContext, output: *mut FFTSample, input: *const FFTSample);
}
extern "C" {
pub fn av_imdct_half(s: *mut FFTContext, output: *mut FFTSample, input: *const FFTSample);
}
extern "C" {
pub fn av_mdct_calc(s: *mut FFTContext, output: *mut FFTSample, input: *const FFTSample);
}
extern "C" {
pub fn av_mdct_end(s: *mut FFTContext);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum RDFTransformType {
DFT_R2C = 0,
IDFT_C2R = 1,
IDFT_R2C = 2,
DFT_C2R = 3,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct RDFTContext {
_unused: [u8; 0],
}
extern "C" {
#[doc = " Set up a real FFT.\n @param nbits log2 of the length of the input array\n @param trans the type of transform"]
pub fn av_rdft_init(nbits: libc::c_int, trans: RDFTransformType) -> *mut RDFTContext;
}
extern "C" {
pub fn av_rdft_calc(s: *mut RDFTContext, data: *mut FFTSample);
}
extern "C" {
pub fn av_rdft_end(s: *mut RDFTContext);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct DCTContext {
_unused: [u8; 0],
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum DCTTransformType {
DCT_II = 0,
DCT_III = 1,
DCT_I = 2,
DST_I = 3,
}
extern "C" {
#[doc = " Set up DCT.\n\n @param nbits size of the input array:\n (1 << nbits) for DCT-II, DCT-III and DST-I\n (1 << nbits) + 1 for DCT-I\n @param type the type of transform\n\n @note the first element of the input of DST-I is ignored"]
pub fn av_dct_init(nbits: libc::c_int, type_: DCTTransformType) -> *mut DCTContext;
}
extern "C" {
pub fn av_dct_calc(s: *mut DCTContext, data: *mut FFTSample);
}
extern "C" {
pub fn av_dct_end(s: *mut DCTContext);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVVorbisParseContext {
_unused: [u8; 0],
}
extern "C" {
#[doc = " Allocate and initialize the Vorbis parser using headers in the extradata."]
pub fn av_vorbis_parse_init(
extradata: *const u8,
extradata_size: libc::c_int,
) -> *mut AVVorbisParseContext;
}
extern "C" {
#[doc = " Free the parser and everything associated with it."]
pub fn av_vorbis_parse_free(s: *mut *mut AVVorbisParseContext);
}
extern "C" {
#[doc = " Get the duration for a Vorbis packet.\n\n If @p flags is @c NULL,\n special frames are considered invalid.\n\n @param s Vorbis parser context\n @param buf buffer containing a Vorbis frame\n @param buf_size size of the buffer\n @param flags flags for special frames"]
pub fn av_vorbis_parse_frame_flags(
s: *mut AVVorbisParseContext,
buf: *const u8,
buf_size: libc::c_int,
flags: *mut libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Get the duration for a Vorbis packet.\n\n @param s Vorbis parser context\n @param buf buffer containing a Vorbis frame\n @param buf_size size of the buffer"]
pub fn av_vorbis_parse_frame(
s: *mut AVVorbisParseContext,
buf: *const u8,
buf_size: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_vorbis_parse_reset(s: *mut AVVorbisParseContext);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVOptionType {
AV_OPT_TYPE_FLAGS = 0,
AV_OPT_TYPE_INT = 1,
AV_OPT_TYPE_INT64 = 2,
AV_OPT_TYPE_DOUBLE = 3,
AV_OPT_TYPE_FLOAT = 4,
AV_OPT_TYPE_STRING = 5,
AV_OPT_TYPE_RATIONAL = 6,
AV_OPT_TYPE_BINARY = 7,
AV_OPT_TYPE_DICT = 8,
AV_OPT_TYPE_UINT64 = 9,
AV_OPT_TYPE_CONST = 10,
AV_OPT_TYPE_IMAGE_SIZE = 11,
AV_OPT_TYPE_PIXEL_FMT = 12,
AV_OPT_TYPE_SAMPLE_FMT = 13,
AV_OPT_TYPE_VIDEO_RATE = 14,
AV_OPT_TYPE_DURATION = 15,
AV_OPT_TYPE_COLOR = 16,
AV_OPT_TYPE_CHANNEL_LAYOUT = 17,
AV_OPT_TYPE_BOOL = 18,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct AVOption {
pub name: *const libc::c_char,
pub help: *const libc::c_char,
pub offset: libc::c_int,
pub type_: AVOptionType,
pub default_val: AVOption__bindgen_ty_1,
pub min: f64,
pub max: f64,
pub flags: libc::c_int,
pub unit: *const libc::c_char,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union AVOption__bindgen_ty_1 {
pub i64_: i64,
pub dbl: f64,
pub str_: *const libc::c_char,
pub q: AVRational,
}
#[test]
fn bindgen_test_layout_AVOption__bindgen_ty_1() {
const UNINIT: ::std::mem::MaybeUninit<AVOption__bindgen_ty_1> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVOption__bindgen_ty_1>(),
8usize,
concat!("Size of: ", stringify!(AVOption__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<AVOption__bindgen_ty_1>(),
8usize,
concat!("Alignment of ", stringify!(AVOption__bindgen_ty_1))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).i64_) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVOption__bindgen_ty_1),
"::",
stringify!(i64_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).dbl) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVOption__bindgen_ty_1),
"::",
stringify!(dbl)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).str_) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVOption__bindgen_ty_1),
"::",
stringify!(str_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).q) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVOption__bindgen_ty_1),
"::",
stringify!(q)
)
);
}
#[test]
fn bindgen_test_layout_AVOption() {
const UNINIT: ::std::mem::MaybeUninit<AVOption> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVOption>(),
64usize,
concat!("Size of: ", stringify!(AVOption))
);
assert_eq!(
::std::mem::align_of::<AVOption>(),
8usize,
concat!("Alignment of ", stringify!(AVOption))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVOption),
"::",
stringify!(name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).help) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVOption),
"::",
stringify!(help)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVOption),
"::",
stringify!(offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(AVOption),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).default_val) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVOption),
"::",
stringify!(default_val)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).min) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVOption),
"::",
stringify!(min)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVOption),
"::",
stringify!(max)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVOption),
"::",
stringify!(flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).unit) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVOption),
"::",
stringify!(unit)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq)]
pub struct AVOptionRange {
pub str_: *const libc::c_char,
pub value_min: f64,
pub value_max: f64,
pub component_min: f64,
pub component_max: f64,
pub is_range: libc::c_int,
}
#[test]
fn bindgen_test_layout_AVOptionRange() {
const UNINIT: ::std::mem::MaybeUninit<AVOptionRange> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVOptionRange>(),
48usize,
concat!("Size of: ", stringify!(AVOptionRange))
);
assert_eq!(
::std::mem::align_of::<AVOptionRange>(),
8usize,
concat!("Alignment of ", stringify!(AVOptionRange))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).str_) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVOptionRange),
"::",
stringify!(str_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).value_min) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVOptionRange),
"::",
stringify!(value_min)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).value_max) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVOptionRange),
"::",
stringify!(value_max)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).component_min) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVOptionRange),
"::",
stringify!(component_min)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).component_max) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVOptionRange),
"::",
stringify!(component_max)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).is_range) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVOptionRange),
"::",
stringify!(is_range)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVOptionRanges {
pub range: *mut *mut AVOptionRange,
pub nb_ranges: libc::c_int,
pub nb_components: libc::c_int,
}
#[test]
fn bindgen_test_layout_AVOptionRanges() {
const UNINIT: ::std::mem::MaybeUninit<AVOptionRanges> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVOptionRanges>(),
16usize,
concat!("Size of: ", stringify!(AVOptionRanges))
);
assert_eq!(
::std::mem::align_of::<AVOptionRanges>(),
8usize,
concat!("Alignment of ", stringify!(AVOptionRanges))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).range) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVOptionRanges),
"::",
stringify!(range)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_ranges) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVOptionRanges),
"::",
stringify!(nb_ranges)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_components) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(AVOptionRanges),
"::",
stringify!(nb_components)
)
);
}
extern "C" {
pub fn av_opt_show2(
obj: *mut libc::c_void,
av_log_obj: *mut libc::c_void,
req_flags: libc::c_int,
rej_flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_set_defaults(s: *mut libc::c_void);
}
extern "C" {
pub fn av_opt_set_defaults2(s: *mut libc::c_void, mask: libc::c_int, flags: libc::c_int);
}
extern "C" {
pub fn av_set_options_string(
ctx: *mut libc::c_void,
opts: *const libc::c_char,
key_val_sep: *const libc::c_char,
pairs_sep: *const libc::c_char,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_set_from_string(
ctx: *mut libc::c_void,
opts: *const libc::c_char,
shorthand: *const *const libc::c_char,
key_val_sep: *const libc::c_char,
pairs_sep: *const libc::c_char,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_free(obj: *mut libc::c_void);
}
extern "C" {
pub fn av_opt_flag_is_set(
obj: *mut libc::c_void,
field_name: *const libc::c_char,
flag_name: *const libc::c_char,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_set_dict(obj: *mut libc::c_void, options: *mut *mut AVDictionary) -> libc::c_int;
}
extern "C" {
pub fn av_opt_set_dict2(
obj: *mut libc::c_void,
options: *mut *mut AVDictionary,
search_flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_get_key_value(
ropts: *mut *const libc::c_char,
key_val_sep: *const libc::c_char,
pairs_sep: *const libc::c_char,
flags: libc::c_uint,
rkey: *mut *mut libc::c_char,
rval: *mut *mut libc::c_char,
) -> libc::c_int;
}
pub const AV_OPT_FLAG_IMPLICIT_KEY: _bindgen_ty_5 = _bindgen_ty_5::AV_OPT_FLAG_IMPLICIT_KEY;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _bindgen_ty_5 {
AV_OPT_FLAG_IMPLICIT_KEY = 1,
}
extern "C" {
pub fn av_opt_eval_flags(
obj: *mut libc::c_void,
o: *const AVOption,
val: *const libc::c_char,
flags_out: *mut libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_eval_int(
obj: *mut libc::c_void,
o: *const AVOption,
val: *const libc::c_char,
int_out: *mut libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_eval_int64(
obj: *mut libc::c_void,
o: *const AVOption,
val: *const libc::c_char,
int64_out: *mut i64,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_eval_float(
obj: *mut libc::c_void,
o: *const AVOption,
val: *const libc::c_char,
float_out: *mut f32,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_eval_double(
obj: *mut libc::c_void,
o: *const AVOption,
val: *const libc::c_char,
double_out: *mut f64,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_eval_q(
obj: *mut libc::c_void,
o: *const AVOption,
val: *const libc::c_char,
q_out: *mut AVRational,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_find(
obj: *mut libc::c_void,
name: *const libc::c_char,
unit: *const libc::c_char,
opt_flags: libc::c_int,
search_flags: libc::c_int,
) -> *const AVOption;
}
extern "C" {
pub fn av_opt_find2(
obj: *mut libc::c_void,
name: *const libc::c_char,
unit: *const libc::c_char,
opt_flags: libc::c_int,
search_flags: libc::c_int,
target_obj: *mut *mut libc::c_void,
) -> *const AVOption;
}
extern "C" {
pub fn av_opt_next(obj: *const libc::c_void, prev: *const AVOption) -> *const AVOption;
}
extern "C" {
pub fn av_opt_child_next(obj: *mut libc::c_void, prev: *mut libc::c_void) -> *mut libc::c_void;
}
extern "C" {
pub fn av_opt_child_class_next(parent: *const AVClass, prev: *const AVClass) -> *const AVClass;
}
extern "C" {
pub fn av_opt_child_class_iterate(
parent: *const AVClass,
iter: *mut *mut libc::c_void,
) -> *const AVClass;
}
extern "C" {
pub fn av_opt_set(
obj: *mut libc::c_void,
name: *const libc::c_char,
val: *const libc::c_char,
search_flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_set_int(
obj: *mut libc::c_void,
name: *const libc::c_char,
val: i64,
search_flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_set_double(
obj: *mut libc::c_void,
name: *const libc::c_char,
val: f64,
search_flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_set_q(
obj: *mut libc::c_void,
name: *const libc::c_char,
val: AVRational,
search_flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_set_bin(
obj: *mut libc::c_void,
name: *const libc::c_char,
val: *const u8,
size: libc::c_int,
search_flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_set_image_size(
obj: *mut libc::c_void,
name: *const libc::c_char,
w: libc::c_int,
h: libc::c_int,
search_flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_set_pixel_fmt(
obj: *mut libc::c_void,
name: *const libc::c_char,
fmt: AVPixelFormat,
search_flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_set_sample_fmt(
obj: *mut libc::c_void,
name: *const libc::c_char,
fmt: AVSampleFormat,
search_flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_set_video_rate(
obj: *mut libc::c_void,
name: *const libc::c_char,
val: AVRational,
search_flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_set_channel_layout(
obj: *mut libc::c_void,
name: *const libc::c_char,
ch_layout: i64,
search_flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_set_dict_val(
obj: *mut libc::c_void,
name: *const libc::c_char,
val: *const AVDictionary,
search_flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_get(
obj: *mut libc::c_void,
name: *const libc::c_char,
search_flags: libc::c_int,
out_val: *mut *mut u8,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_get_int(
obj: *mut libc::c_void,
name: *const libc::c_char,
search_flags: libc::c_int,
out_val: *mut i64,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_get_double(
obj: *mut libc::c_void,
name: *const libc::c_char,
search_flags: libc::c_int,
out_val: *mut f64,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_get_q(
obj: *mut libc::c_void,
name: *const libc::c_char,
search_flags: libc::c_int,
out_val: *mut AVRational,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_get_image_size(
obj: *mut libc::c_void,
name: *const libc::c_char,
search_flags: libc::c_int,
w_out: *mut libc::c_int,
h_out: *mut libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_get_pixel_fmt(
obj: *mut libc::c_void,
name: *const libc::c_char,
search_flags: libc::c_int,
out_fmt: *mut AVPixelFormat,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_get_sample_fmt(
obj: *mut libc::c_void,
name: *const libc::c_char,
search_flags: libc::c_int,
out_fmt: *mut AVSampleFormat,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_get_video_rate(
obj: *mut libc::c_void,
name: *const libc::c_char,
search_flags: libc::c_int,
out_val: *mut AVRational,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_get_channel_layout(
obj: *mut libc::c_void,
name: *const libc::c_char,
search_flags: libc::c_int,
ch_layout: *mut i64,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_get_dict_val(
obj: *mut libc::c_void,
name: *const libc::c_char,
search_flags: libc::c_int,
out_val: *mut *mut AVDictionary,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_ptr(
avclass: *const AVClass,
obj: *mut libc::c_void,
name: *const libc::c_char,
) -> *mut libc::c_void;
}
extern "C" {
pub fn av_opt_freep_ranges(ranges: *mut *mut AVOptionRanges);
}
extern "C" {
pub fn av_opt_query_ranges(
arg1: *mut *mut AVOptionRanges,
obj: *mut libc::c_void,
key: *const libc::c_char,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_copy(dest: *mut libc::c_void, src: *const libc::c_void) -> libc::c_int;
}
extern "C" {
pub fn av_opt_query_ranges_default(
arg1: *mut *mut AVOptionRanges,
obj: *mut libc::c_void,
key: *const libc::c_char,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_is_set_to_default(obj: *mut libc::c_void, o: *const AVOption) -> libc::c_int;
}
extern "C" {
pub fn av_opt_is_set_to_default_by_name(
obj: *mut libc::c_void,
name: *const libc::c_char,
search_flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_opt_serialize(
obj: *mut libc::c_void,
opt_flags: libc::c_int,
flags: libc::c_int,
buffer: *mut *mut libc::c_char,
key_val_sep: libc::c_char,
pairs_sep: libc::c_char,
) -> libc::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct tm {
pub tm_sec: libc::c_int,
pub tm_min: libc::c_int,
pub tm_hour: libc::c_int,
pub tm_mday: libc::c_int,
pub tm_mon: libc::c_int,
pub tm_year: libc::c_int,
pub tm_wday: libc::c_int,
pub tm_yday: libc::c_int,
pub tm_isdst: libc::c_int,
pub tm_gmtoff: libc::c_long,
pub tm_zone: *const libc::c_char,
}
#[test]
fn bindgen_test_layout_tm() {
const UNINIT: ::std::mem::MaybeUninit<tm> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<tm>(),
56usize,
concat!("Size of: ", stringify!(tm))
);
assert_eq!(
::std::mem::align_of::<tm>(),
8usize,
concat!("Alignment of ", stringify!(tm))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tm_sec) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_sec)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tm_min) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_min)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tm_hour) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_hour)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tm_mday) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_mday)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tm_mon) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_mon)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tm_year) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_year)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tm_wday) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_wday)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tm_yday) as usize - ptr as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_yday)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tm_isdst) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_isdst)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tm_gmtoff) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_gmtoff)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tm_zone) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_zone)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct itimerspec {
pub it_interval: timespec,
pub it_value: timespec,
}
#[test]
fn bindgen_test_layout_itimerspec() {
const UNINIT: ::std::mem::MaybeUninit<itimerspec> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<itimerspec>(),
32usize,
concat!("Size of: ", stringify!(itimerspec))
);
assert_eq!(
::std::mem::align_of::<itimerspec>(),
8usize,
concat!("Alignment of ", stringify!(itimerspec))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).it_interval) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(itimerspec),
"::",
stringify!(it_interval)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).it_value) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(itimerspec),
"::",
stringify!(it_value)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sigevent {
_unused: [u8; 0],
}
extern "C" {
pub fn clock() -> clock_t;
}
extern "C" {
pub fn time(__timer: *mut time_t) -> time_t;
}
extern "C" {
pub fn difftime(__time1: time_t, __time0: time_t) -> f64;
}
extern "C" {
pub fn mktime(__tp: *mut tm) -> time_t;
}
extern "C" {
pub fn strftime(
__s: *mut libc::c_char,
__maxsize: usize,
__format: *const libc::c_char,
__tp: *const tm,
) -> usize;
}
extern "C" {
pub fn strftime_l(
__s: *mut libc::c_char,
__maxsize: usize,
__format: *const libc::c_char,
__tp: *const tm,
__loc: locale_t,
) -> usize;
}
extern "C" {
pub fn gmtime(__timer: *const time_t) -> *mut tm;
}
extern "C" {
pub fn localtime(__timer: *const time_t) -> *mut tm;
}
extern "C" {
pub fn gmtime_r(__timer: *const time_t, __tp: *mut tm) -> *mut tm;
}
extern "C" {
pub fn localtime_r(__timer: *const time_t, __tp: *mut tm) -> *mut tm;
}
extern "C" {
pub fn asctime(__tp: *const tm) -> *mut libc::c_char;
}
extern "C" {
pub fn ctime(__timer: *const time_t) -> *mut libc::c_char;
}
extern "C" {
pub fn asctime_r(__tp: *const tm, __buf: *mut libc::c_char) -> *mut libc::c_char;
}
extern "C" {
pub fn ctime_r(__timer: *const time_t, __buf: *mut libc::c_char) -> *mut libc::c_char;
}
extern "C" {
pub static mut __tzname: [*mut libc::c_char; 2usize];
}
extern "C" {
pub static mut __daylight: libc::c_int;
}
extern "C" {
pub static mut __timezone: libc::c_long;
}
extern "C" {
pub static mut tzname: [*mut libc::c_char; 2usize];
}
extern "C" {
pub fn tzset();
}
extern "C" {
pub static mut daylight: libc::c_int;
}
extern "C" {
pub static mut timezone: libc::c_long;
}
extern "C" {
pub fn timegm(__tp: *mut tm) -> time_t;
}
extern "C" {
pub fn timelocal(__tp: *mut tm) -> time_t;
}
extern "C" {
pub fn dysize(__year: libc::c_int) -> libc::c_int;
}
extern "C" {
pub fn nanosleep(__requested_time: *const timespec, __remaining: *mut timespec) -> libc::c_int;
}
extern "C" {
pub fn clock_getres(__clock_id: clockid_t, __res: *mut timespec) -> libc::c_int;
}
extern "C" {
pub fn clock_gettime(__clock_id: clockid_t, __tp: *mut timespec) -> libc::c_int;
}
extern "C" {
pub fn clock_settime(__clock_id: clockid_t, __tp: *const timespec) -> libc::c_int;
}
extern "C" {
pub fn clock_nanosleep(
__clock_id: clockid_t,
__flags: libc::c_int,
__req: *const timespec,
__rem: *mut timespec,
) -> libc::c_int;
}
extern "C" {
pub fn clock_getcpuclockid(__pid: pid_t, __clock_id: *mut clockid_t) -> libc::c_int;
}
extern "C" {
pub fn timer_create(
__clock_id: clockid_t,
__evp: *mut sigevent,
__timerid: *mut timer_t,
) -> libc::c_int;
}
extern "C" {
pub fn timer_delete(__timerid: timer_t) -> libc::c_int;
}
extern "C" {
pub fn timer_settime(
__timerid: timer_t,
__flags: libc::c_int,
__value: *const itimerspec,
__ovalue: *mut itimerspec,
) -> libc::c_int;
}
extern "C" {
pub fn timer_gettime(__timerid: timer_t, __value: *mut itimerspec) -> libc::c_int;
}
extern "C" {
pub fn timer_getoverrun(__timerid: timer_t) -> libc::c_int;
}
extern "C" {
pub fn timespec_get(__ts: *mut timespec, __base: libc::c_int) -> libc::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVIOInterruptCB {
pub callback:
::std::option::Option<unsafe extern "C" fn(arg1: *mut libc::c_void) -> libc::c_int>,
pub opaque: *mut libc::c_void,
}
#[test]
fn bindgen_test_layout_AVIOInterruptCB() {
const UNINIT: ::std::mem::MaybeUninit<AVIOInterruptCB> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVIOInterruptCB>(),
16usize,
concat!("Size of: ", stringify!(AVIOInterruptCB))
);
assert_eq!(
::std::mem::align_of::<AVIOInterruptCB>(),
8usize,
concat!("Alignment of ", stringify!(AVIOInterruptCB))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).callback) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVIOInterruptCB),
"::",
stringify!(callback)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).opaque) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVIOInterruptCB),
"::",
stringify!(opaque)
)
);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVIODirEntryType {
AVIO_ENTRY_UNKNOWN = 0,
AVIO_ENTRY_BLOCK_DEVICE = 1,
AVIO_ENTRY_CHARACTER_DEVICE = 2,
AVIO_ENTRY_DIRECTORY = 3,
AVIO_ENTRY_NAMED_PIPE = 4,
AVIO_ENTRY_SYMBOLIC_LINK = 5,
AVIO_ENTRY_SOCKET = 6,
AVIO_ENTRY_FILE = 7,
AVIO_ENTRY_SERVER = 8,
AVIO_ENTRY_SHARE = 9,
AVIO_ENTRY_WORKGROUP = 10,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVIODirEntry {
pub name: *mut libc::c_char,
pub type_: libc::c_int,
pub utf8: libc::c_int,
pub size: i64,
pub modification_timestamp: i64,
pub access_timestamp: i64,
pub status_change_timestamp: i64,
pub user_id: i64,
pub group_id: i64,
pub filemode: i64,
}
#[test]
fn bindgen_test_layout_AVIODirEntry() {
const UNINIT: ::std::mem::MaybeUninit<AVIODirEntry> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVIODirEntry>(),
72usize,
concat!("Size of: ", stringify!(AVIODirEntry))
);
assert_eq!(
::std::mem::align_of::<AVIODirEntry>(),
8usize,
concat!("Alignment of ", stringify!(AVIODirEntry))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVIODirEntry),
"::",
stringify!(name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVIODirEntry),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).utf8) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(AVIODirEntry),
"::",
stringify!(utf8)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVIODirEntry),
"::",
stringify!(size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).modification_timestamp) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVIODirEntry),
"::",
stringify!(modification_timestamp)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).access_timestamp) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVIODirEntry),
"::",
stringify!(access_timestamp)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).status_change_timestamp) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVIODirEntry),
"::",
stringify!(status_change_timestamp)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).user_id) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVIODirEntry),
"::",
stringify!(user_id)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).group_id) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVIODirEntry),
"::",
stringify!(group_id)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).filemode) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(AVIODirEntry),
"::",
stringify!(filemode)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVIODirContext {
pub url_context: *mut URLContext,
}
#[test]
fn bindgen_test_layout_AVIODirContext() {
const UNINIT: ::std::mem::MaybeUninit<AVIODirContext> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVIODirContext>(),
8usize,
concat!("Size of: ", stringify!(AVIODirContext))
);
assert_eq!(
::std::mem::align_of::<AVIODirContext>(),
8usize,
concat!("Alignment of ", stringify!(AVIODirContext))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).url_context) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVIODirContext),
"::",
stringify!(url_context)
)
);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVIODataMarkerType {
AVIO_DATA_MARKER_HEADER = 0,
AVIO_DATA_MARKER_SYNC_POINT = 1,
AVIO_DATA_MARKER_BOUNDARY_POINT = 2,
AVIO_DATA_MARKER_UNKNOWN = 3,
AVIO_DATA_MARKER_TRAILER = 4,
AVIO_DATA_MARKER_FLUSH_POINT = 5,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVIOContext {
pub av_class: *const AVClass,
pub buffer: *mut libc::c_uchar,
pub buffer_size: libc::c_int,
pub buf_ptr: *mut libc::c_uchar,
pub buf_end: *mut libc::c_uchar,
pub opaque: *mut libc::c_void,
pub read_packet: ::std::option::Option<
unsafe extern "C" fn(
opaque: *mut libc::c_void,
buf: *mut u8,
buf_size: libc::c_int,
) -> libc::c_int,
>,
pub write_packet: ::std::option::Option<
unsafe extern "C" fn(
opaque: *mut libc::c_void,
buf: *mut u8,
buf_size: libc::c_int,
) -> libc::c_int,
>,
pub seek: ::std::option::Option<
unsafe extern "C" fn(opaque: *mut libc::c_void, offset: i64, whence: libc::c_int) -> i64,
>,
pub pos: i64,
pub eof_reached: libc::c_int,
pub write_flag: libc::c_int,
pub max_packet_size: libc::c_int,
pub checksum: libc::c_ulong,
pub checksum_ptr: *mut libc::c_uchar,
pub update_checksum: ::std::option::Option<
unsafe extern "C" fn(
checksum: libc::c_ulong,
buf: *const u8,
size: libc::c_uint,
) -> libc::c_ulong,
>,
pub error: libc::c_int,
pub read_pause: ::std::option::Option<
unsafe extern "C" fn(opaque: *mut libc::c_void, pause: libc::c_int) -> libc::c_int,
>,
pub read_seek: ::std::option::Option<
unsafe extern "C" fn(
opaque: *mut libc::c_void,
stream_index: libc::c_int,
timestamp: i64,
flags: libc::c_int,
) -> i64,
>,
pub seekable: libc::c_int,
pub maxsize: i64,
pub direct: libc::c_int,
pub bytes_read: i64,
pub seek_count: libc::c_int,
pub writeout_count: libc::c_int,
pub orig_buffer_size: libc::c_int,
pub short_seek_threshold: libc::c_int,
pub protocol_whitelist: *const libc::c_char,
pub protocol_blacklist: *const libc::c_char,
pub write_data_type: ::std::option::Option<
unsafe extern "C" fn(
opaque: *mut libc::c_void,
buf: *mut u8,
buf_size: libc::c_int,
type_: AVIODataMarkerType,
time: i64,
) -> libc::c_int,
>,
pub ignore_boundary_point: libc::c_int,
pub current_type: AVIODataMarkerType,
pub last_time: i64,
pub short_seek_get:
::std::option::Option<unsafe extern "C" fn(opaque: *mut libc::c_void) -> libc::c_int>,
pub written: i64,
pub buf_ptr_max: *mut libc::c_uchar,
pub min_packet_size: libc::c_int,
}
#[test]
fn bindgen_test_layout_AVIOContext() {
const UNINIT: ::std::mem::MaybeUninit<AVIOContext> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVIOContext>(),
264usize,
concat!("Size of: ", stringify!(AVIOContext))
);
assert_eq!(
::std::mem::align_of::<AVIOContext>(),
8usize,
concat!("Alignment of ", stringify!(AVIOContext))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).av_class) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(av_class)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).buffer) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(buffer)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).buffer_size) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(buffer_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).buf_ptr) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(buf_ptr)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).buf_end) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(buf_end)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).opaque) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(opaque)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).read_packet) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(read_packet)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).write_packet) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(write_packet)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).seek) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(seek)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pos) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(pos)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).eof_reached) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(eof_reached)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).write_flag) as usize - ptr as usize },
84usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(write_flag)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_packet_size) as usize - ptr as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(max_packet_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).checksum) as usize - ptr as usize },
96usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(checksum)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).checksum_ptr) as usize - ptr as usize },
104usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(checksum_ptr)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).update_checksum) as usize - ptr as usize },
112usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(update_checksum)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).error) as usize - ptr as usize },
120usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(error)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).read_pause) as usize - ptr as usize },
128usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(read_pause)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).read_seek) as usize - ptr as usize },
136usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(read_seek)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).seekable) as usize - ptr as usize },
144usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(seekable)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).maxsize) as usize - ptr as usize },
152usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(maxsize)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).direct) as usize - ptr as usize },
160usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(direct)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).bytes_read) as usize - ptr as usize },
168usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(bytes_read)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).seek_count) as usize - ptr as usize },
176usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(seek_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).writeout_count) as usize - ptr as usize },
180usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(writeout_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).orig_buffer_size) as usize - ptr as usize },
184usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(orig_buffer_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).short_seek_threshold) as usize - ptr as usize },
188usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(short_seek_threshold)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).protocol_whitelist) as usize - ptr as usize },
192usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(protocol_whitelist)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).protocol_blacklist) as usize - ptr as usize },
200usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(protocol_blacklist)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).write_data_type) as usize - ptr as usize },
208usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(write_data_type)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ignore_boundary_point) as usize - ptr as usize },
216usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(ignore_boundary_point)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).current_type) as usize - ptr as usize },
220usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(current_type)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).last_time) as usize - ptr as usize },
224usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(last_time)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).short_seek_get) as usize - ptr as usize },
232usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(short_seek_get)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).written) as usize - ptr as usize },
240usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(written)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).buf_ptr_max) as usize - ptr as usize },
248usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(buf_ptr_max)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).min_packet_size) as usize - ptr as usize },
256usize,
concat!(
"Offset of field: ",
stringify!(AVIOContext),
"::",
stringify!(min_packet_size)
)
);
}
extern "C" {
pub fn avio_find_protocol_name(url: *const libc::c_char) -> *const libc::c_char;
}
extern "C" {
pub fn avio_check(url: *const libc::c_char, flags: libc::c_int) -> libc::c_int;
}
extern "C" {
pub fn avpriv_io_move(
url_src: *const libc::c_char,
url_dst: *const libc::c_char,
) -> libc::c_int;
}
extern "C" {
pub fn avpriv_io_delete(url: *const libc::c_char) -> libc::c_int;
}
extern "C" {
pub fn avio_open_dir(
s: *mut *mut AVIODirContext,
url: *const libc::c_char,
options: *mut *mut AVDictionary,
) -> libc::c_int;
}
extern "C" {
pub fn avio_read_dir(s: *mut AVIODirContext, next: *mut *mut AVIODirEntry) -> libc::c_int;
}
extern "C" {
pub fn avio_close_dir(s: *mut *mut AVIODirContext) -> libc::c_int;
}
extern "C" {
pub fn avio_free_directory_entry(entry: *mut *mut AVIODirEntry);
}
extern "C" {
pub fn avio_alloc_context(
buffer: *mut libc::c_uchar,
buffer_size: libc::c_int,
write_flag: libc::c_int,
opaque: *mut libc::c_void,
read_packet: ::std::option::Option<
unsafe extern "C" fn(
opaque: *mut libc::c_void,
buf: *mut u8,
buf_size: libc::c_int,
) -> libc::c_int,
>,
write_packet: ::std::option::Option<
unsafe extern "C" fn(
opaque: *mut libc::c_void,
buf: *mut u8,
buf_size: libc::c_int,
) -> libc::c_int,
>,
seek: ::std::option::Option<
unsafe extern "C" fn(
opaque: *mut libc::c_void,
offset: i64,
whence: libc::c_int,
) -> i64,
>,
) -> *mut AVIOContext;
}
extern "C" {
pub fn avio_context_free(s: *mut *mut AVIOContext);
}
extern "C" {
pub fn avio_w8(s: *mut AVIOContext, b: libc::c_int);
}
extern "C" {
pub fn avio_write(s: *mut AVIOContext, buf: *const libc::c_uchar, size: libc::c_int);
}
extern "C" {
pub fn avio_wl64(s: *mut AVIOContext, val: u64);
}
extern "C" {
pub fn avio_wb64(s: *mut AVIOContext, val: u64);
}
extern "C" {
pub fn avio_wl32(s: *mut AVIOContext, val: libc::c_uint);
}
extern "C" {
pub fn avio_wb32(s: *mut AVIOContext, val: libc::c_uint);
}
extern "C" {
pub fn avio_wl24(s: *mut AVIOContext, val: libc::c_uint);
}
extern "C" {
pub fn avio_wb24(s: *mut AVIOContext, val: libc::c_uint);
}
extern "C" {
pub fn avio_wl16(s: *mut AVIOContext, val: libc::c_uint);
}
extern "C" {
pub fn avio_wb16(s: *mut AVIOContext, val: libc::c_uint);
}
extern "C" {
pub fn avio_put_str(s: *mut AVIOContext, str_: *const libc::c_char) -> libc::c_int;
}
extern "C" {
pub fn avio_put_str16le(s: *mut AVIOContext, str_: *const libc::c_char) -> libc::c_int;
}
extern "C" {
pub fn avio_put_str16be(s: *mut AVIOContext, str_: *const libc::c_char) -> libc::c_int;
}
extern "C" {
pub fn avio_write_marker(s: *mut AVIOContext, time: i64, type_: AVIODataMarkerType);
}
extern "C" {
pub fn avio_seek(s: *mut AVIOContext, offset: i64, whence: libc::c_int) -> i64;
}
extern "C" {
pub fn avio_skip(s: *mut AVIOContext, offset: i64) -> i64;
}
extern "C" {
pub fn avio_size(s: *mut AVIOContext) -> i64;
}
extern "C" {
pub fn avio_feof(s: *mut AVIOContext) -> libc::c_int;
}
extern "C" {
pub fn avio_printf(s: *mut AVIOContext, fmt: *const libc::c_char, ...) -> libc::c_int;
}
extern "C" {
pub fn avio_print_string_array(s: *mut AVIOContext, strings: *mut *const libc::c_char);
}
extern "C" {
pub fn avio_flush(s: *mut AVIOContext);
}
extern "C" {
pub fn avio_read(
s: *mut AVIOContext,
buf: *mut libc::c_uchar,
size: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn avio_read_partial(
s: *mut AVIOContext,
buf: *mut libc::c_uchar,
size: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn avio_r8(s: *mut AVIOContext) -> libc::c_int;
}
extern "C" {
pub fn avio_rl16(s: *mut AVIOContext) -> libc::c_uint;
}
extern "C" {
pub fn avio_rl24(s: *mut AVIOContext) -> libc::c_uint;
}
extern "C" {
pub fn avio_rl32(s: *mut AVIOContext) -> libc::c_uint;
}
extern "C" {
pub fn avio_rl64(s: *mut AVIOContext) -> u64;
}
extern "C" {
pub fn avio_rb16(s: *mut AVIOContext) -> libc::c_uint;
}
extern "C" {
pub fn avio_rb24(s: *mut AVIOContext) -> libc::c_uint;
}
extern "C" {
pub fn avio_rb32(s: *mut AVIOContext) -> libc::c_uint;
}
extern "C" {
pub fn avio_rb64(s: *mut AVIOContext) -> u64;
}
extern "C" {
pub fn avio_get_str(
pb: *mut AVIOContext,
maxlen: libc::c_int,
buf: *mut libc::c_char,
buflen: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn avio_get_str16le(
pb: *mut AVIOContext,
maxlen: libc::c_int,
buf: *mut libc::c_char,
buflen: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn avio_get_str16be(
pb: *mut AVIOContext,
maxlen: libc::c_int,
buf: *mut libc::c_char,
buflen: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn avio_open(
s: *mut *mut AVIOContext,
url: *const libc::c_char,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn avio_open2(
s: *mut *mut AVIOContext,
url: *const libc::c_char,
flags: libc::c_int,
int_cb: *const AVIOInterruptCB,
options: *mut *mut AVDictionary,
) -> libc::c_int;
}
extern "C" {
pub fn avio_close(s: *mut AVIOContext) -> libc::c_int;
}
extern "C" {
pub fn avio_closep(s: *mut *mut AVIOContext) -> libc::c_int;
}
extern "C" {
pub fn avio_open_dyn_buf(s: *mut *mut AVIOContext) -> libc::c_int;
}
extern "C" {
pub fn avio_get_dyn_buf(s: *mut AVIOContext, pbuffer: *mut *mut u8) -> libc::c_int;
}
extern "C" {
pub fn avio_close_dyn_buf(s: *mut AVIOContext, pbuffer: *mut *mut u8) -> libc::c_int;
}
extern "C" {
pub fn avio_enum_protocols(
opaque: *mut *mut libc::c_void,
output: libc::c_int,
) -> *const libc::c_char;
}
extern "C" {
pub fn avio_protocol_get_class(name: *const libc::c_char) -> *const AVClass;
}
extern "C" {
pub fn avio_pause(h: *mut AVIOContext, pause: libc::c_int) -> libc::c_int;
}
extern "C" {
pub fn avio_seek_time(
h: *mut AVIOContext,
stream_index: libc::c_int,
timestamp: i64,
flags: libc::c_int,
) -> i64;
}
extern "C" {
pub fn avio_read_to_bprint(
h: *mut AVIOContext,
pb: *mut AVBPrint,
max_size: usize,
) -> libc::c_int;
}
extern "C" {
pub fn avio_accept(s: *mut AVIOContext, c: *mut *mut AVIOContext) -> libc::c_int;
}
extern "C" {
pub fn avio_handshake(c: *mut AVIOContext) -> libc::c_int;
}
extern "C" {
pub fn av_get_packet(s: *mut AVIOContext, pkt: *mut AVPacket, size: libc::c_int)
-> libc::c_int;
}
extern "C" {
pub fn av_append_packet(
s: *mut AVIOContext,
pkt: *mut AVPacket,
size: libc::c_int,
) -> libc::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVCodecTag {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVProbeData {
pub filename: *const libc::c_char,
pub buf: *mut libc::c_uchar,
pub buf_size: libc::c_int,
pub mime_type: *const libc::c_char,
}
#[test]
fn bindgen_test_layout_AVProbeData() {
const UNINIT: ::std::mem::MaybeUninit<AVProbeData> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVProbeData>(),
32usize,
concat!("Size of: ", stringify!(AVProbeData))
);
assert_eq!(
::std::mem::align_of::<AVProbeData>(),
8usize,
concat!("Alignment of ", stringify!(AVProbeData))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).filename) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVProbeData),
"::",
stringify!(filename)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVProbeData),
"::",
stringify!(buf)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).buf_size) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVProbeData),
"::",
stringify!(buf_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).mime_type) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVProbeData),
"::",
stringify!(mime_type)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVOutputFormat {
pub name: *const libc::c_char,
pub long_name: *const libc::c_char,
pub mime_type: *const libc::c_char,
pub extensions: *const libc::c_char,
pub audio_codec: AVCodecID,
pub video_codec: AVCodecID,
pub subtitle_codec: AVCodecID,
pub flags: libc::c_int,
pub codec_tag: *const *const AVCodecTag,
pub priv_class: *const AVClass,
pub next: *mut AVOutputFormat,
pub priv_data_size: libc::c_int,
pub write_header:
::std::option::Option<unsafe extern "C" fn(arg1: *mut AVFormatContext) -> libc::c_int>,
pub write_packet: ::std::option::Option<
unsafe extern "C" fn(arg1: *mut AVFormatContext, pkt: *mut AVPacket) -> libc::c_int,
>,
pub write_trailer:
::std::option::Option<unsafe extern "C" fn(arg1: *mut AVFormatContext) -> libc::c_int>,
pub interleave_packet: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut AVFormatContext,
out: *mut AVPacket,
in_: *mut AVPacket,
flush: libc::c_int,
) -> libc::c_int,
>,
pub query_codec: ::std::option::Option<
unsafe extern "C" fn(id: AVCodecID, std_compliance: libc::c_int) -> libc::c_int,
>,
pub get_output_timestamp: ::std::option::Option<
unsafe extern "C" fn(
s: *mut AVFormatContext,
stream: libc::c_int,
dts: *mut i64,
wall: *mut i64,
),
>,
pub control_message: ::std::option::Option<
unsafe extern "C" fn(
s: *mut AVFormatContext,
type_: libc::c_int,
data: *mut libc::c_void,
data_size: usize,
) -> libc::c_int,
>,
pub write_uncoded_frame: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut AVFormatContext,
stream_index: libc::c_int,
frame: *mut *mut AVFrame,
flags: libc::c_uint,
) -> libc::c_int,
>,
pub get_device_list: ::std::option::Option<
unsafe extern "C" fn(
s: *mut AVFormatContext,
device_list: *mut AVDeviceInfoList,
) -> libc::c_int,
>,
pub create_device_capabilities: ::std::option::Option<
unsafe extern "C" fn(
s: *mut AVFormatContext,
caps: *mut AVDeviceCapabilitiesQuery,
) -> libc::c_int,
>,
pub free_device_capabilities: ::std::option::Option<
unsafe extern "C" fn(
s: *mut AVFormatContext,
caps: *mut AVDeviceCapabilitiesQuery,
) -> libc::c_int,
>,
pub data_codec: AVCodecID,
pub init:
::std::option::Option<unsafe extern "C" fn(arg1: *mut AVFormatContext) -> libc::c_int>,
pub deinit: ::std::option::Option<unsafe extern "C" fn(arg1: *mut AVFormatContext)>,
pub check_bitstream: ::std::option::Option<
unsafe extern "C" fn(arg1: *mut AVFormatContext, pkt: *const AVPacket) -> libc::c_int,
>,
}
#[test]
fn bindgen_test_layout_AVOutputFormat() {
const UNINIT: ::std::mem::MaybeUninit<AVOutputFormat> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVOutputFormat>(),
200usize,
concat!("Size of: ", stringify!(AVOutputFormat))
);
assert_eq!(
::std::mem::align_of::<AVOutputFormat>(),
8usize,
concat!("Alignment of ", stringify!(AVOutputFormat))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).long_name) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(long_name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).mime_type) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(mime_type)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).extensions) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(extensions)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).audio_codec) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(audio_codec)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).video_codec) as usize - ptr as usize },
36usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(video_codec)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).subtitle_codec) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(subtitle_codec)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize },
44usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).codec_tag) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(codec_tag)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).priv_class) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(priv_class)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).next) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(next)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).priv_data_size) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(priv_data_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).write_header) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(write_header)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).write_packet) as usize - ptr as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(write_packet)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).write_trailer) as usize - ptr as usize },
96usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(write_trailer)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).interleave_packet) as usize - ptr as usize },
104usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(interleave_packet)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).query_codec) as usize - ptr as usize },
112usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(query_codec)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).get_output_timestamp) as usize - ptr as usize },
120usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(get_output_timestamp)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).control_message) as usize - ptr as usize },
128usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(control_message)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).write_uncoded_frame) as usize - ptr as usize },
136usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(write_uncoded_frame)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).get_device_list) as usize - ptr as usize },
144usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(get_device_list)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).create_device_capabilities) as usize - ptr as usize },
152usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(create_device_capabilities)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).free_device_capabilities) as usize - ptr as usize },
160usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(free_device_capabilities)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).data_codec) as usize - ptr as usize },
168usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(data_codec)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize },
176usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(init)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).deinit) as usize - ptr as usize },
184usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(deinit)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).check_bitstream) as usize - ptr as usize },
192usize,
concat!(
"Offset of field: ",
stringify!(AVOutputFormat),
"::",
stringify!(check_bitstream)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVInputFormat {
pub name: *const libc::c_char,
pub long_name: *const libc::c_char,
pub flags: libc::c_int,
pub extensions: *const libc::c_char,
pub codec_tag: *const *const AVCodecTag,
pub priv_class: *const AVClass,
pub mime_type: *const libc::c_char,
pub next: *mut AVInputFormat,
pub raw_codec_id: libc::c_int,
pub priv_data_size: libc::c_int,
pub read_probe:
::std::option::Option<unsafe extern "C" fn(arg1: *const AVProbeData) -> libc::c_int>,
pub read_header:
::std::option::Option<unsafe extern "C" fn(arg1: *mut AVFormatContext) -> libc::c_int>,
pub read_packet: ::std::option::Option<
unsafe extern "C" fn(arg1: *mut AVFormatContext, pkt: *mut AVPacket) -> libc::c_int,
>,
pub read_close:
::std::option::Option<unsafe extern "C" fn(arg1: *mut AVFormatContext) -> libc::c_int>,
pub read_seek: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut AVFormatContext,
stream_index: libc::c_int,
timestamp: i64,
flags: libc::c_int,
) -> libc::c_int,
>,
pub read_timestamp: ::std::option::Option<
unsafe extern "C" fn(
s: *mut AVFormatContext,
stream_index: libc::c_int,
pos: *mut i64,
pos_limit: i64,
) -> i64,
>,
pub read_play:
::std::option::Option<unsafe extern "C" fn(arg1: *mut AVFormatContext) -> libc::c_int>,
pub read_pause:
::std::option::Option<unsafe extern "C" fn(arg1: *mut AVFormatContext) -> libc::c_int>,
pub read_seek2: ::std::option::Option<
unsafe extern "C" fn(
s: *mut AVFormatContext,
stream_index: libc::c_int,
min_ts: i64,
ts: i64,
max_ts: i64,
flags: libc::c_int,
) -> libc::c_int,
>,
pub get_device_list: ::std::option::Option<
unsafe extern "C" fn(
s: *mut AVFormatContext,
device_list: *mut AVDeviceInfoList,
) -> libc::c_int,
>,
pub create_device_capabilities: ::std::option::Option<
unsafe extern "C" fn(
s: *mut AVFormatContext,
caps: *mut AVDeviceCapabilitiesQuery,
) -> libc::c_int,
>,
pub free_device_capabilities: ::std::option::Option<
unsafe extern "C" fn(
s: *mut AVFormatContext,
caps: *mut AVDeviceCapabilitiesQuery,
) -> libc::c_int,
>,
}
#[test]
fn bindgen_test_layout_AVInputFormat() {
const UNINIT: ::std::mem::MaybeUninit<AVInputFormat> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVInputFormat>(),
168usize,
concat!("Size of: ", stringify!(AVInputFormat))
);
assert_eq!(
::std::mem::align_of::<AVInputFormat>(),
8usize,
concat!("Alignment of ", stringify!(AVInputFormat))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVInputFormat),
"::",
stringify!(name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).long_name) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVInputFormat),
"::",
stringify!(long_name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVInputFormat),
"::",
stringify!(flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).extensions) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVInputFormat),
"::",
stringify!(extensions)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).codec_tag) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVInputFormat),
"::",
stringify!(codec_tag)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).priv_class) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVInputFormat),
"::",
stringify!(priv_class)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).mime_type) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVInputFormat),
"::",
stringify!(mime_type)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).next) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVInputFormat),
"::",
stringify!(next)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).raw_codec_id) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(AVInputFormat),
"::",
stringify!(raw_codec_id)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).priv_data_size) as usize - ptr as usize },
68usize,
concat!(
"Offset of field: ",
stringify!(AVInputFormat),
"::",
stringify!(priv_data_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).read_probe) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(AVInputFormat),
"::",
stringify!(read_probe)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).read_header) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(AVInputFormat),
"::",
stringify!(read_header)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).read_packet) as usize - ptr as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(AVInputFormat),
"::",
stringify!(read_packet)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).read_close) as usize - ptr as usize },
96usize,
concat!(
"Offset of field: ",
stringify!(AVInputFormat),
"::",
stringify!(read_close)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).read_seek) as usize - ptr as usize },
104usize,
concat!(
"Offset of field: ",
stringify!(AVInputFormat),
"::",
stringify!(read_seek)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).read_timestamp) as usize - ptr as usize },
112usize,
concat!(
"Offset of field: ",
stringify!(AVInputFormat),
"::",
stringify!(read_timestamp)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).read_play) as usize - ptr as usize },
120usize,
concat!(
"Offset of field: ",
stringify!(AVInputFormat),
"::",
stringify!(read_play)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).read_pause) as usize - ptr as usize },
128usize,
concat!(
"Offset of field: ",
stringify!(AVInputFormat),
"::",
stringify!(read_pause)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).read_seek2) as usize - ptr as usize },
136usize,
concat!(
"Offset of field: ",
stringify!(AVInputFormat),
"::",
stringify!(read_seek2)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).get_device_list) as usize - ptr as usize },
144usize,
concat!(
"Offset of field: ",
stringify!(AVInputFormat),
"::",
stringify!(get_device_list)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).create_device_capabilities) as usize - ptr as usize },
152usize,
concat!(
"Offset of field: ",
stringify!(AVInputFormat),
"::",
stringify!(create_device_capabilities)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).free_device_capabilities) as usize - ptr as usize },
160usize,
concat!(
"Offset of field: ",
stringify!(AVInputFormat),
"::",
stringify!(free_device_capabilities)
)
);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVStreamParseType {
AVSTREAM_PARSE_NONE = 0,
AVSTREAM_PARSE_FULL = 1,
AVSTREAM_PARSE_HEADERS = 2,
AVSTREAM_PARSE_TIMESTAMPS = 3,
AVSTREAM_PARSE_FULL_ONCE = 4,
AVSTREAM_PARSE_FULL_RAW = 5,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVIndexEntry {
pub pos: i64,
pub timestamp: i64,
pub _bitfield_align_1: [u32; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
pub min_distance: libc::c_int,
}
#[test]
fn bindgen_test_layout_AVIndexEntry() {
const UNINIT: ::std::mem::MaybeUninit<AVIndexEntry> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVIndexEntry>(),
24usize,
concat!("Size of: ", stringify!(AVIndexEntry))
);
assert_eq!(
::std::mem::align_of::<AVIndexEntry>(),
8usize,
concat!("Alignment of ", stringify!(AVIndexEntry))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pos) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVIndexEntry),
"::",
stringify!(pos)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).timestamp) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVIndexEntry),
"::",
stringify!(timestamp)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).min_distance) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(AVIndexEntry),
"::",
stringify!(min_distance)
)
);
}
impl AVIndexEntry {
#[inline]
pub fn flags(&self) -> libc::c_int {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
}
#[inline]
pub fn set_flags(&mut self, val: libc::c_int) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 2u8, val as u64)
}
}
#[inline]
pub fn size(&self) -> libc::c_int {
unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) }
}
#[inline]
pub fn set_size(&mut self, val: libc::c_int) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(2usize, 30u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
flags: libc::c_int,
size: libc::c_int,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 2u8, {
let flags: u32 = unsafe { ::std::mem::transmute(flags) };
flags as u64
});
__bindgen_bitfield_unit.set(2usize, 30u8, {
let size: u32 = unsafe { ::std::mem::transmute(size) };
size as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVStreamInternal {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVStream {
pub index: libc::c_int,
pub id: libc::c_int,
pub codec: *mut AVCodecContext,
pub priv_data: *mut libc::c_void,
pub time_base: AVRational,
pub start_time: i64,
pub duration: i64,
pub nb_frames: i64,
pub disposition: libc::c_int,
pub discard: AVDiscard,
pub sample_aspect_ratio: AVRational,
pub metadata: *mut AVDictionary,
pub avg_frame_rate: AVRational,
pub attached_pic: AVPacket,
pub side_data: *mut AVPacketSideData,
pub nb_side_data: libc::c_int,
pub event_flags: libc::c_int,
pub r_frame_rate: AVRational,
pub recommended_encoder_configuration: *mut libc::c_char,
pub codecpar: *mut AVCodecParameters,
pub unused: *mut libc::c_void,
pub pts_wrap_bits: libc::c_int,
pub first_dts: i64,
pub cur_dts: i64,
pub last_IP_pts: i64,
pub last_IP_duration: libc::c_int,
pub probe_packets: libc::c_int,
pub codec_info_nb_frames: libc::c_int,
pub need_parsing: AVStreamParseType,
pub parser: *mut AVCodecParserContext,
pub unused7: *mut libc::c_void,
pub unused6: AVProbeData,
pub unused5: [i64; 17usize],
pub index_entries: *mut AVIndexEntry,
pub nb_index_entries: libc::c_int,
pub index_entries_allocated_size: libc::c_uint,
pub stream_identifier: libc::c_int,
pub unused8: libc::c_int,
pub unused9: libc::c_int,
pub unused10: libc::c_int,
pub internal: *mut AVStreamInternal,
}
#[test]
fn bindgen_test_layout_AVStream() {
const UNINIT: ::std::mem::MaybeUninit<AVStream> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVStream>(),
496usize,
concat!("Size of: ", stringify!(AVStream))
);
assert_eq!(
::std::mem::align_of::<AVStream>(),
8usize,
concat!("Alignment of ", stringify!(AVStream))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).index) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(index)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).id) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(id)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).codec) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(codec)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).priv_data) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(priv_data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).time_base) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(time_base)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).start_time) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(start_time)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).duration) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(duration)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_frames) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(nb_frames)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).disposition) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(disposition)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).discard) as usize - ptr as usize },
60usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(discard)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sample_aspect_ratio) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(sample_aspect_ratio)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).metadata) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(metadata)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).avg_frame_rate) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(avg_frame_rate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).attached_pic) as usize - ptr as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(attached_pic)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).side_data) as usize - ptr as usize },
176usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(side_data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_side_data) as usize - ptr as usize },
184usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(nb_side_data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).event_flags) as usize - ptr as usize },
188usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(event_flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).r_frame_rate) as usize - ptr as usize },
192usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(r_frame_rate)
)
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).recommended_encoder_configuration) as usize - ptr as usize
},
200usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(recommended_encoder_configuration)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).codecpar) as usize - ptr as usize },
208usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(codecpar)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).unused) as usize - ptr as usize },
216usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(unused)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pts_wrap_bits) as usize - ptr as usize },
224usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(pts_wrap_bits)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).first_dts) as usize - ptr as usize },
232usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(first_dts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).cur_dts) as usize - ptr as usize },
240usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(cur_dts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).last_IP_pts) as usize - ptr as usize },
248usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(last_IP_pts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).last_IP_duration) as usize - ptr as usize },
256usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(last_IP_duration)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).probe_packets) as usize - ptr as usize },
260usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(probe_packets)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).codec_info_nb_frames) as usize - ptr as usize },
264usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(codec_info_nb_frames)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).need_parsing) as usize - ptr as usize },
268usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(need_parsing)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).parser) as usize - ptr as usize },
272usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(parser)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).unused7) as usize - ptr as usize },
280usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(unused7)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).unused6) as usize - ptr as usize },
288usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(unused6)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).unused5) as usize - ptr as usize },
320usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(unused5)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).index_entries) as usize - ptr as usize },
456usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(index_entries)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_index_entries) as usize - ptr as usize },
464usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(nb_index_entries)
)
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).index_entries_allocated_size) as usize - ptr as usize
},
468usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(index_entries_allocated_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).stream_identifier) as usize - ptr as usize },
472usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(stream_identifier)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).unused8) as usize - ptr as usize },
476usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(unused8)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).unused9) as usize - ptr as usize },
480usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(unused9)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).unused10) as usize - ptr as usize },
484usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(unused10)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).internal) as usize - ptr as usize },
488usize,
concat!(
"Offset of field: ",
stringify!(AVStream),
"::",
stringify!(internal)
)
);
}
extern "C" {
pub fn av_stream_get_r_frame_rate(s: *const AVStream) -> AVRational;
}
extern "C" {
pub fn av_stream_set_r_frame_rate(s: *mut AVStream, r: AVRational);
}
extern "C" {
pub fn av_stream_get_recommended_encoder_configuration(s: *const AVStream)
-> *mut libc::c_char;
}
extern "C" {
pub fn av_stream_set_recommended_encoder_configuration(
s: *mut AVStream,
configuration: *mut libc::c_char,
);
}
extern "C" {
pub fn av_stream_get_parser(s: *const AVStream) -> *mut AVCodecParserContext;
}
extern "C" {
pub fn av_stream_get_end_pts(st: *const AVStream) -> i64;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVProgram {
pub id: libc::c_int,
pub flags: libc::c_int,
pub discard: AVDiscard,
pub stream_index: *mut libc::c_uint,
pub nb_stream_indexes: libc::c_uint,
pub metadata: *mut AVDictionary,
pub program_num: libc::c_int,
pub pmt_pid: libc::c_int,
pub pcr_pid: libc::c_int,
pub pmt_version: libc::c_int,
pub start_time: i64,
pub end_time: i64,
pub pts_wrap_reference: i64,
pub pts_wrap_behavior: libc::c_int,
}
#[test]
fn bindgen_test_layout_AVProgram() {
const UNINIT: ::std::mem::MaybeUninit<AVProgram> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVProgram>(),
88usize,
concat!("Size of: ", stringify!(AVProgram))
);
assert_eq!(
::std::mem::align_of::<AVProgram>(),
8usize,
concat!("Alignment of ", stringify!(AVProgram))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).id) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVProgram),
"::",
stringify!(id)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(AVProgram),
"::",
stringify!(flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).discard) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVProgram),
"::",
stringify!(discard)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).stream_index) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVProgram),
"::",
stringify!(stream_index)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_stream_indexes) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVProgram),
"::",
stringify!(nb_stream_indexes)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).metadata) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVProgram),
"::",
stringify!(metadata)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).program_num) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVProgram),
"::",
stringify!(program_num)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pmt_pid) as usize - ptr as usize },
44usize,
concat!(
"Offset of field: ",
stringify!(AVProgram),
"::",
stringify!(pmt_pid)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pcr_pid) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVProgram),
"::",
stringify!(pcr_pid)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pmt_version) as usize - ptr as usize },
52usize,
concat!(
"Offset of field: ",
stringify!(AVProgram),
"::",
stringify!(pmt_version)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).start_time) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVProgram),
"::",
stringify!(start_time)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).end_time) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(AVProgram),
"::",
stringify!(end_time)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pts_wrap_reference) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(AVProgram),
"::",
stringify!(pts_wrap_reference)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pts_wrap_behavior) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(AVProgram),
"::",
stringify!(pts_wrap_behavior)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVChapter {
pub id: libc::c_int,
pub time_base: AVRational,
pub start: i64,
pub end: i64,
pub metadata: *mut AVDictionary,
}
#[test]
fn bindgen_test_layout_AVChapter() {
const UNINIT: ::std::mem::MaybeUninit<AVChapter> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVChapter>(),
40usize,
concat!("Size of: ", stringify!(AVChapter))
);
assert_eq!(
::std::mem::align_of::<AVChapter>(),
8usize,
concat!("Alignment of ", stringify!(AVChapter))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).id) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVChapter),
"::",
stringify!(id)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).time_base) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(AVChapter),
"::",
stringify!(time_base)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).start) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVChapter),
"::",
stringify!(start)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).end) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVChapter),
"::",
stringify!(end)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).metadata) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVChapter),
"::",
stringify!(metadata)
)
);
}
pub type av_format_control_message = ::std::option::Option<
unsafe extern "C" fn(
s: *mut AVFormatContext,
type_: libc::c_int,
data: *mut libc::c_void,
data_size: usize,
) -> libc::c_int,
>;
pub type AVOpenCallback = ::std::option::Option<
unsafe extern "C" fn(
s: *mut AVFormatContext,
pb: *mut *mut AVIOContext,
url: *const libc::c_char,
flags: libc::c_int,
int_cb: *const AVIOInterruptCB,
options: *mut *mut AVDictionary,
) -> libc::c_int,
>;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVDurationEstimationMethod {
AVFMT_DURATION_FROM_PTS = 0,
AVFMT_DURATION_FROM_STREAM = 1,
AVFMT_DURATION_FROM_BITRATE = 2,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVFormatInternal {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVFormatContext {
pub av_class: *const AVClass,
pub iformat: *mut AVInputFormat,
pub oformat: *mut AVOutputFormat,
pub priv_data: *mut libc::c_void,
pub pb: *mut AVIOContext,
pub ctx_flags: libc::c_int,
pub nb_streams: libc::c_uint,
pub streams: *mut *mut AVStream,
pub filename: [libc::c_char; 1024usize],
pub url: *mut libc::c_char,
pub start_time: i64,
pub duration: i64,
pub bit_rate: i64,
pub packet_size: libc::c_uint,
pub max_delay: libc::c_int,
pub flags: libc::c_int,
pub probesize: i64,
pub max_analyze_duration: i64,
pub key: *const u8,
pub keylen: libc::c_int,
pub nb_programs: libc::c_uint,
pub programs: *mut *mut AVProgram,
pub video_codec_id: AVCodecID,
pub audio_codec_id: AVCodecID,
pub subtitle_codec_id: AVCodecID,
pub max_index_size: libc::c_uint,
pub max_picture_buffer: libc::c_uint,
pub nb_chapters: libc::c_uint,
pub chapters: *mut *mut AVChapter,
pub metadata: *mut AVDictionary,
pub start_time_realtime: i64,
pub fps_probe_size: libc::c_int,
pub error_recognition: libc::c_int,
pub interrupt_callback: AVIOInterruptCB,
pub debug: libc::c_int,
pub max_interleave_delta: i64,
pub strict_std_compliance: libc::c_int,
pub event_flags: libc::c_int,
pub max_ts_probe: libc::c_int,
pub avoid_negative_ts: libc::c_int,
pub ts_id: libc::c_int,
pub audio_preload: libc::c_int,
pub max_chunk_duration: libc::c_int,
pub max_chunk_size: libc::c_int,
pub use_wallclock_as_timestamps: libc::c_int,
pub avio_flags: libc::c_int,
pub duration_estimation_method: AVDurationEstimationMethod,
pub skip_initial_bytes: i64,
pub correct_ts_overflow: libc::c_uint,
pub seek2any: libc::c_int,
pub flush_packets: libc::c_int,
pub probe_score: libc::c_int,
pub format_probesize: libc::c_int,
pub codec_whitelist: *mut libc::c_char,
pub format_whitelist: *mut libc::c_char,
pub internal: *mut AVFormatInternal,
pub io_repositioned: libc::c_int,
pub video_codec: *mut AVCodec,
pub audio_codec: *mut AVCodec,
pub subtitle_codec: *mut AVCodec,
pub data_codec: *mut AVCodec,
pub metadata_header_padding: libc::c_int,
pub opaque: *mut libc::c_void,
pub control_message_cb: av_format_control_message,
pub output_ts_offset: i64,
pub dump_separator: *mut u8,
pub data_codec_id: AVCodecID,
pub open_cb: ::std::option::Option<
unsafe extern "C" fn(
s: *mut AVFormatContext,
p: *mut *mut AVIOContext,
url: *const libc::c_char,
flags: libc::c_int,
int_cb: *const AVIOInterruptCB,
options: *mut *mut AVDictionary,
) -> libc::c_int,
>,
pub protocol_whitelist: *mut libc::c_char,
pub io_open: ::std::option::Option<
unsafe extern "C" fn(
s: *mut AVFormatContext,
pb: *mut *mut AVIOContext,
url: *const libc::c_char,
flags: libc::c_int,
options: *mut *mut AVDictionary,
) -> libc::c_int,
>,
pub io_close:
::std::option::Option<unsafe extern "C" fn(s: *mut AVFormatContext, pb: *mut AVIOContext)>,
pub protocol_blacklist: *mut libc::c_char,
pub max_streams: libc::c_int,
pub skip_estimate_duration_from_pts: libc::c_int,
pub max_probe_packets: libc::c_int,
}
#[test]
fn bindgen_test_layout_AVFormatContext() {
const UNINIT: ::std::mem::MaybeUninit<AVFormatContext> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVFormatContext>(),
1504usize,
concat!("Size of: ", stringify!(AVFormatContext))
);
assert_eq!(
::std::mem::align_of::<AVFormatContext>(),
8usize,
concat!("Alignment of ", stringify!(AVFormatContext))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).av_class) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(av_class)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).iformat) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(iformat)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).oformat) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(oformat)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).priv_data) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(priv_data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pb) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(pb)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ctx_flags) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(ctx_flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_streams) as usize - ptr as usize },
44usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(nb_streams)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).streams) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(streams)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).filename) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(filename)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).url) as usize - ptr as usize },
1080usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(url)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).start_time) as usize - ptr as usize },
1088usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(start_time)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).duration) as usize - ptr as usize },
1096usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(duration)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).bit_rate) as usize - ptr as usize },
1104usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(bit_rate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).packet_size) as usize - ptr as usize },
1112usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(packet_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_delay) as usize - ptr as usize },
1116usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(max_delay)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize },
1120usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).probesize) as usize - ptr as usize },
1128usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(probesize)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_analyze_duration) as usize - ptr as usize },
1136usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(max_analyze_duration)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).key) as usize - ptr as usize },
1144usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(key)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).keylen) as usize - ptr as usize },
1152usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(keylen)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_programs) as usize - ptr as usize },
1156usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(nb_programs)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).programs) as usize - ptr as usize },
1160usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(programs)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).video_codec_id) as usize - ptr as usize },
1168usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(video_codec_id)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).audio_codec_id) as usize - ptr as usize },
1172usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(audio_codec_id)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).subtitle_codec_id) as usize - ptr as usize },
1176usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(subtitle_codec_id)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_index_size) as usize - ptr as usize },
1180usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(max_index_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_picture_buffer) as usize - ptr as usize },
1184usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(max_picture_buffer)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_chapters) as usize - ptr as usize },
1188usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(nb_chapters)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).chapters) as usize - ptr as usize },
1192usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(chapters)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).metadata) as usize - ptr as usize },
1200usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(metadata)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).start_time_realtime) as usize - ptr as usize },
1208usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(start_time_realtime)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).fps_probe_size) as usize - ptr as usize },
1216usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(fps_probe_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).error_recognition) as usize - ptr as usize },
1220usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(error_recognition)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).interrupt_callback) as usize - ptr as usize },
1224usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(interrupt_callback)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).debug) as usize - ptr as usize },
1240usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(debug)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_interleave_delta) as usize - ptr as usize },
1248usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(max_interleave_delta)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).strict_std_compliance) as usize - ptr as usize },
1256usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(strict_std_compliance)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).event_flags) as usize - ptr as usize },
1260usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(event_flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_ts_probe) as usize - ptr as usize },
1264usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(max_ts_probe)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).avoid_negative_ts) as usize - ptr as usize },
1268usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(avoid_negative_ts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ts_id) as usize - ptr as usize },
1272usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(ts_id)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).audio_preload) as usize - ptr as usize },
1276usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(audio_preload)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_chunk_duration) as usize - ptr as usize },
1280usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(max_chunk_duration)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_chunk_size) as usize - ptr as usize },
1284usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(max_chunk_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).use_wallclock_as_timestamps) as usize - ptr as usize },
1288usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(use_wallclock_as_timestamps)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).avio_flags) as usize - ptr as usize },
1292usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(avio_flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).duration_estimation_method) as usize - ptr as usize },
1296usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(duration_estimation_method)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).skip_initial_bytes) as usize - ptr as usize },
1304usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(skip_initial_bytes)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).correct_ts_overflow) as usize - ptr as usize },
1312usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(correct_ts_overflow)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).seek2any) as usize - ptr as usize },
1316usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(seek2any)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).flush_packets) as usize - ptr as usize },
1320usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(flush_packets)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).probe_score) as usize - ptr as usize },
1324usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(probe_score)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).format_probesize) as usize - ptr as usize },
1328usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(format_probesize)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).codec_whitelist) as usize - ptr as usize },
1336usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(codec_whitelist)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).format_whitelist) as usize - ptr as usize },
1344usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(format_whitelist)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).internal) as usize - ptr as usize },
1352usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(internal)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).io_repositioned) as usize - ptr as usize },
1360usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(io_repositioned)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).video_codec) as usize - ptr as usize },
1368usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(video_codec)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).audio_codec) as usize - ptr as usize },
1376usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(audio_codec)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).subtitle_codec) as usize - ptr as usize },
1384usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(subtitle_codec)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).data_codec) as usize - ptr as usize },
1392usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(data_codec)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).metadata_header_padding) as usize - ptr as usize },
1400usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(metadata_header_padding)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).opaque) as usize - ptr as usize },
1408usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(opaque)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).control_message_cb) as usize - ptr as usize },
1416usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(control_message_cb)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).output_ts_offset) as usize - ptr as usize },
1424usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(output_ts_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).dump_separator) as usize - ptr as usize },
1432usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(dump_separator)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).data_codec_id) as usize - ptr as usize },
1440usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(data_codec_id)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).open_cb) as usize - ptr as usize },
1448usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(open_cb)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).protocol_whitelist) as usize - ptr as usize },
1456usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(protocol_whitelist)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).io_open) as usize - ptr as usize },
1464usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(io_open)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).io_close) as usize - ptr as usize },
1472usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(io_close)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).protocol_blacklist) as usize - ptr as usize },
1480usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(protocol_blacklist)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_streams) as usize - ptr as usize },
1488usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(max_streams)
)
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).skip_estimate_duration_from_pts) as usize - ptr as usize
},
1492usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(skip_estimate_duration_from_pts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_probe_packets) as usize - ptr as usize },
1496usize,
concat!(
"Offset of field: ",
stringify!(AVFormatContext),
"::",
stringify!(max_probe_packets)
)
);
}
extern "C" {
pub fn av_format_get_probe_score(s: *const AVFormatContext) -> libc::c_int;
}
extern "C" {
pub fn av_format_get_video_codec(s: *const AVFormatContext) -> *mut AVCodec;
}
extern "C" {
pub fn av_format_set_video_codec(s: *mut AVFormatContext, c: *mut AVCodec);
}
extern "C" {
pub fn av_format_get_audio_codec(s: *const AVFormatContext) -> *mut AVCodec;
}
extern "C" {
pub fn av_format_set_audio_codec(s: *mut AVFormatContext, c: *mut AVCodec);
}
extern "C" {
pub fn av_format_get_subtitle_codec(s: *const AVFormatContext) -> *mut AVCodec;
}
extern "C" {
pub fn av_format_set_subtitle_codec(s: *mut AVFormatContext, c: *mut AVCodec);
}
extern "C" {
pub fn av_format_get_data_codec(s: *const AVFormatContext) -> *mut AVCodec;
}
extern "C" {
pub fn av_format_set_data_codec(s: *mut AVFormatContext, c: *mut AVCodec);
}
extern "C" {
pub fn av_format_get_metadata_header_padding(s: *const AVFormatContext) -> libc::c_int;
}
extern "C" {
pub fn av_format_set_metadata_header_padding(s: *mut AVFormatContext, c: libc::c_int);
}
extern "C" {
pub fn av_format_get_opaque(s: *const AVFormatContext) -> *mut libc::c_void;
}
extern "C" {
pub fn av_format_set_opaque(s: *mut AVFormatContext, opaque: *mut libc::c_void);
}
extern "C" {
pub fn av_format_get_control_message_cb(s: *const AVFormatContext)
-> av_format_control_message;
}
extern "C" {
pub fn av_format_set_control_message_cb(
s: *mut AVFormatContext,
callback: av_format_control_message,
);
}
extern "C" {
pub fn av_format_get_open_cb(s: *const AVFormatContext) -> AVOpenCallback;
}
extern "C" {
pub fn av_format_set_open_cb(s: *mut AVFormatContext, callback: AVOpenCallback);
}
extern "C" {
pub fn av_format_inject_global_side_data(s: *mut AVFormatContext);
}
extern "C" {
pub fn av_fmt_ctx_get_duration_estimation_method(
ctx: *const AVFormatContext,
) -> AVDurationEstimationMethod;
}
extern "C" {
pub fn avformat_version() -> libc::c_uint;
}
extern "C" {
pub fn avformat_configuration() -> *const libc::c_char;
}
extern "C" {
pub fn avformat_license() -> *const libc::c_char;
}
extern "C" {
pub fn av_register_all();
}
extern "C" {
pub fn av_register_input_format(format: *mut AVInputFormat);
}
extern "C" {
pub fn av_register_output_format(format: *mut AVOutputFormat);
}
extern "C" {
pub fn avformat_network_init() -> libc::c_int;
}
extern "C" {
pub fn avformat_network_deinit() -> libc::c_int;
}
extern "C" {
pub fn av_iformat_next(f: *const AVInputFormat) -> *mut AVInputFormat;
}
extern "C" {
pub fn av_oformat_next(f: *const AVOutputFormat) -> *mut AVOutputFormat;
}
extern "C" {
pub fn av_muxer_iterate(opaque: *mut *mut libc::c_void) -> *const AVOutputFormat;
}
extern "C" {
pub fn av_demuxer_iterate(opaque: *mut *mut libc::c_void) -> *const AVInputFormat;
}
extern "C" {
pub fn avformat_alloc_context() -> *mut AVFormatContext;
}
extern "C" {
pub fn avformat_free_context(s: *mut AVFormatContext);
}
extern "C" {
pub fn avformat_get_class() -> *const AVClass;
}
extern "C" {
pub fn avformat_new_stream(s: *mut AVFormatContext, c: *const AVCodec) -> *mut AVStream;
}
extern "C" {
pub fn av_stream_add_side_data(
st: *mut AVStream,
type_: AVPacketSideDataType,
data: *mut u8,
size: usize,
) -> libc::c_int;
}
extern "C" {
pub fn av_stream_new_side_data(
stream: *mut AVStream,
type_: AVPacketSideDataType,
size: libc::c_int,
) -> *mut u8;
}
extern "C" {
pub fn av_stream_get_side_data(
stream: *const AVStream,
type_: AVPacketSideDataType,
size: *mut libc::c_int,
) -> *mut u8;
}
extern "C" {
pub fn av_new_program(s: *mut AVFormatContext, id: libc::c_int) -> *mut AVProgram;
}
extern "C" {
pub fn avformat_alloc_output_context2(
ctx: *mut *mut AVFormatContext,
oformat: *mut AVOutputFormat,
format_name: *const libc::c_char,
filename: *const libc::c_char,
) -> libc::c_int;
}
extern "C" {
pub fn av_find_input_format(short_name: *const libc::c_char) -> *mut AVInputFormat;
}
extern "C" {
pub fn av_probe_input_format(
pd: *mut AVProbeData,
is_opened: libc::c_int,
) -> *mut AVInputFormat;
}
extern "C" {
pub fn av_probe_input_format2(
pd: *mut AVProbeData,
is_opened: libc::c_int,
score_max: *mut libc::c_int,
) -> *mut AVInputFormat;
}
extern "C" {
pub fn av_probe_input_format3(
pd: *mut AVProbeData,
is_opened: libc::c_int,
score_ret: *mut libc::c_int,
) -> *mut AVInputFormat;
}
extern "C" {
pub fn av_probe_input_buffer2(
pb: *mut AVIOContext,
fmt: *mut *mut AVInputFormat,
url: *const libc::c_char,
logctx: *mut libc::c_void,
offset: libc::c_uint,
max_probe_size: libc::c_uint,
) -> libc::c_int;
}
extern "C" {
pub fn av_probe_input_buffer(
pb: *mut AVIOContext,
fmt: *mut *mut AVInputFormat,
url: *const libc::c_char,
logctx: *mut libc::c_void,
offset: libc::c_uint,
max_probe_size: libc::c_uint,
) -> libc::c_int;
}
extern "C" {
pub fn avformat_open_input(
ps: *mut *mut AVFormatContext,
url: *const libc::c_char,
fmt: *mut AVInputFormat,
options: *mut *mut AVDictionary,
) -> libc::c_int;
}
extern "C" {
pub fn av_demuxer_open(ic: *mut AVFormatContext) -> libc::c_int;
}
extern "C" {
pub fn avformat_find_stream_info(
ic: *mut AVFormatContext,
options: *mut *mut AVDictionary,
) -> libc::c_int;
}
extern "C" {
pub fn av_find_program_from_stream(
ic: *mut AVFormatContext,
last: *mut AVProgram,
s: libc::c_int,
) -> *mut AVProgram;
}
extern "C" {
pub fn av_program_add_stream_index(
ac: *mut AVFormatContext,
progid: libc::c_int,
idx: libc::c_uint,
);
}
extern "C" {
pub fn av_find_best_stream(
ic: *mut AVFormatContext,
type_: AVMediaType,
wanted_stream_nb: libc::c_int,
related_stream: libc::c_int,
decoder_ret: *mut *mut AVCodec,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_read_frame(s: *mut AVFormatContext, pkt: *mut AVPacket) -> libc::c_int;
}
extern "C" {
pub fn av_seek_frame(
s: *mut AVFormatContext,
stream_index: libc::c_int,
timestamp: i64,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn avformat_seek_file(
s: *mut AVFormatContext,
stream_index: libc::c_int,
min_ts: i64,
ts: i64,
max_ts: i64,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn avformat_flush(s: *mut AVFormatContext) -> libc::c_int;
}
extern "C" {
pub fn av_read_play(s: *mut AVFormatContext) -> libc::c_int;
}
extern "C" {
pub fn av_read_pause(s: *mut AVFormatContext) -> libc::c_int;
}
extern "C" {
pub fn avformat_close_input(s: *mut *mut AVFormatContext);
}
extern "C" {
pub fn avformat_write_header(
s: *mut AVFormatContext,
options: *mut *mut AVDictionary,
) -> libc::c_int;
}
extern "C" {
pub fn avformat_init_output(
s: *mut AVFormatContext,
options: *mut *mut AVDictionary,
) -> libc::c_int;
}
extern "C" {
pub fn av_write_frame(s: *mut AVFormatContext, pkt: *mut AVPacket) -> libc::c_int;
}
extern "C" {
pub fn av_interleaved_write_frame(s: *mut AVFormatContext, pkt: *mut AVPacket) -> libc::c_int;
}
extern "C" {
pub fn av_write_uncoded_frame(
s: *mut AVFormatContext,
stream_index: libc::c_int,
frame: *mut AVFrame,
) -> libc::c_int;
}
extern "C" {
pub fn av_interleaved_write_uncoded_frame(
s: *mut AVFormatContext,
stream_index: libc::c_int,
frame: *mut AVFrame,
) -> libc::c_int;
}
extern "C" {
pub fn av_write_uncoded_frame_query(
s: *mut AVFormatContext,
stream_index: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_write_trailer(s: *mut AVFormatContext) -> libc::c_int;
}
extern "C" {
pub fn av_guess_format(
short_name: *const libc::c_char,
filename: *const libc::c_char,
mime_type: *const libc::c_char,
) -> *mut AVOutputFormat;
}
extern "C" {
pub fn av_guess_codec(
fmt: *mut AVOutputFormat,
short_name: *const libc::c_char,
filename: *const libc::c_char,
mime_type: *const libc::c_char,
type_: AVMediaType,
) -> AVCodecID;
}
extern "C" {
pub fn av_get_output_timestamp(
s: *mut AVFormatContext,
stream: libc::c_int,
dts: *mut i64,
wall: *mut i64,
) -> libc::c_int;
}
extern "C" {
pub fn av_hex_dump(f: *mut FILE, buf: *const u8, size: libc::c_int);
}
extern "C" {
pub fn av_hex_dump_log(
avcl: *mut libc::c_void,
level: libc::c_int,
buf: *const u8,
size: libc::c_int,
);
}
extern "C" {
pub fn av_pkt_dump2(
f: *mut FILE,
pkt: *const AVPacket,
dump_payload: libc::c_int,
st: *const AVStream,
);
}
extern "C" {
pub fn av_pkt_dump_log2(
avcl: *mut libc::c_void,
level: libc::c_int,
pkt: *const AVPacket,
dump_payload: libc::c_int,
st: *const AVStream,
);
}
extern "C" {
pub fn av_codec_get_id(tags: *const *const AVCodecTag, tag: libc::c_uint) -> AVCodecID;
}
extern "C" {
pub fn av_codec_get_tag(tags: *const *const AVCodecTag, id: AVCodecID) -> libc::c_uint;
}
extern "C" {
pub fn av_codec_get_tag2(
tags: *const *const AVCodecTag,
id: AVCodecID,
tag: *mut libc::c_uint,
) -> libc::c_int;
}
extern "C" {
pub fn av_find_default_stream_index(s: *mut AVFormatContext) -> libc::c_int;
}
extern "C" {
pub fn av_index_search_timestamp(
st: *mut AVStream,
timestamp: i64,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_add_index_entry(
st: *mut AVStream,
pos: i64,
timestamp: i64,
size: libc::c_int,
distance: libc::c_int,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_url_split(
proto: *mut libc::c_char,
proto_size: libc::c_int,
authorization: *mut libc::c_char,
authorization_size: libc::c_int,
hostname: *mut libc::c_char,
hostname_size: libc::c_int,
port_ptr: *mut libc::c_int,
path: *mut libc::c_char,
path_size: libc::c_int,
url: *const libc::c_char,
);
}
extern "C" {
pub fn av_dump_format(
ic: *mut AVFormatContext,
index: libc::c_int,
url: *const libc::c_char,
is_output: libc::c_int,
);
}
extern "C" {
pub fn av_get_frame_filename2(
buf: *mut libc::c_char,
buf_size: libc::c_int,
path: *const libc::c_char,
number: libc::c_int,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_get_frame_filename(
buf: *mut libc::c_char,
buf_size: libc::c_int,
path: *const libc::c_char,
number: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_filename_number_test(filename: *const libc::c_char) -> libc::c_int;
}
extern "C" {
pub fn av_sdp_create(
ac: *mut *mut AVFormatContext,
n_files: libc::c_int,
buf: *mut libc::c_char,
size: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn av_match_ext(
filename: *const libc::c_char,
extensions: *const libc::c_char,
) -> libc::c_int;
}
extern "C" {
pub fn avformat_query_codec(
ofmt: *const AVOutputFormat,
codec_id: AVCodecID,
std_compliance: libc::c_int,
) -> libc::c_int;
}
extern "C" {
pub fn avformat_get_riff_video_tags() -> *const AVCodecTag;
}
extern "C" {
pub fn avformat_get_riff_audio_tags() -> *const AVCodecTag;
}
extern "C" {
pub fn avformat_get_mov_video_tags() -> *const AVCodecTag;
}
extern "C" {
pub fn avformat_get_mov_audio_tags() -> *const AVCodecTag;
}
extern "C" {
pub fn av_guess_sample_aspect_ratio(
format: *mut AVFormatContext,
stream: *mut AVStream,
frame: *mut AVFrame,
) -> AVRational;
}
extern "C" {
pub fn av_guess_frame_rate(
ctx: *mut AVFormatContext,
stream: *mut AVStream,
frame: *mut AVFrame,
) -> AVRational;
}
extern "C" {
pub fn avformat_match_stream_specifier(
s: *mut AVFormatContext,
st: *mut AVStream,
spec: *const libc::c_char,
) -> libc::c_int;
}
extern "C" {
pub fn avformat_queue_attached_pictures(s: *mut AVFormatContext) -> libc::c_int;
}
extern "C" {
pub fn av_apply_bitstream_filters(
codec: *mut AVCodecContext,
pkt: *mut AVPacket,
bsfc: *mut AVBitStreamFilterContext,
) -> libc::c_int;
}
#[repr(i32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVTimebaseSource {
AVFMT_TBCF_AUTO = -1,
AVFMT_TBCF_DECODER = 0,
AVFMT_TBCF_DEMUXER = 1,
AVFMT_TBCF_R_FRAMERATE = 2,
}
extern "C" {
pub fn avformat_transfer_internal_stream_timing_info(
ofmt: *const AVOutputFormat,
ost: *mut AVStream,
ist: *const AVStream,
copy_tb: AVTimebaseSource,
) -> libc::c_int;
}
extern "C" {
pub fn av_stream_get_codec_timebase(st: *const AVStream) -> AVRational;
}
extern "C" {
#[doc = " Return the LIBAVDEVICE_VERSION_INT constant."]
pub fn avdevice_version() -> libc::c_uint;
}
extern "C" {
#[doc = " Return the libavdevice build-time configuration."]
pub fn avdevice_configuration() -> *const libc::c_char;
}
extern "C" {
#[doc = " Return the libavdevice license."]
pub fn avdevice_license() -> *const libc::c_char;
}
extern "C" {
#[doc = " Initialize libavdevice and register all the input and output devices."]
pub fn avdevice_register_all();
}
extern "C" {
#[doc = " Audio input devices iterator.\n\n If d is NULL, returns the first registered input audio/video device,\n if d is non-NULL, returns the next registered input audio/video device after d\n or NULL if d is the last one."]
pub fn av_input_audio_device_next(d: *mut AVInputFormat) -> *mut AVInputFormat;
}
extern "C" {
#[doc = " Video input devices iterator.\n\n If d is NULL, returns the first registered input audio/video device,\n if d is non-NULL, returns the next registered input audio/video device after d\n or NULL if d is the last one."]
pub fn av_input_video_device_next(d: *mut AVInputFormat) -> *mut AVInputFormat;
}
extern "C" {
#[doc = " Audio output devices iterator.\n\n If d is NULL, returns the first registered output audio/video device,\n if d is non-NULL, returns the next registered output audio/video device after d\n or NULL if d is the last one."]
pub fn av_output_audio_device_next(d: *mut AVOutputFormat) -> *mut AVOutputFormat;
}
extern "C" {
#[doc = " Video output devices iterator.\n\n If d is NULL, returns the first registered output audio/video device,\n if d is non-NULL, returns the next registered output audio/video device after d\n or NULL if d is the last one."]
pub fn av_output_video_device_next(d: *mut AVOutputFormat) -> *mut AVOutputFormat;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVDeviceRect {
#[doc = "< x coordinate of top left corner"]
pub x: libc::c_int,
#[doc = "< y coordinate of top left corner"]
pub y: libc::c_int,
#[doc = "< width"]
pub width: libc::c_int,
#[doc = "< height"]
pub height: libc::c_int,
}
#[test]
fn bindgen_test_layout_AVDeviceRect() {
const UNINIT: ::std::mem::MaybeUninit<AVDeviceRect> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVDeviceRect>(),
16usize,
concat!("Size of: ", stringify!(AVDeviceRect))
);
assert_eq!(
::std::mem::align_of::<AVDeviceRect>(),
4usize,
concat!("Alignment of ", stringify!(AVDeviceRect))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVDeviceRect),
"::",
stringify!(x)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(AVDeviceRect),
"::",
stringify!(y)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVDeviceRect),
"::",
stringify!(width)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).height) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(AVDeviceRect),
"::",
stringify!(height)
)
);
}
#[repr(u32)]
#[doc = " Message types used by avdevice_app_to_dev_control_message()."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVAppToDevMessageType {
#[doc = " Dummy message."]
AV_APP_TO_DEV_NONE = 1313820229,
#[doc = " Window size change message.\n\n Message is sent to the device every time the application changes the size\n of the window device renders to.\n Message should also be sent right after window is created.\n\n data: AVDeviceRect: new window size."]
AV_APP_TO_DEV_WINDOW_SIZE = 1195724621,
#[doc = " Repaint request message.\n\n Message is sent to the device when window has to be repainted.\n\n data: AVDeviceRect: area required to be repainted.\n NULL: whole area is required to be repainted."]
AV_APP_TO_DEV_WINDOW_REPAINT = 1380274241,
#[doc = " Request pause/play.\n\n Application requests pause/unpause playback.\n Mostly usable with devices that have internal buffer.\n By default devices are not paused.\n\n data: NULL"]
AV_APP_TO_DEV_PAUSE = 1346458912,
#[doc = " Request pause/play.\n\n Application requests pause/unpause playback.\n Mostly usable with devices that have internal buffer.\n By default devices are not paused.\n\n data: NULL"]
AV_APP_TO_DEV_PLAY = 1347174745,
#[doc = " Request pause/play.\n\n Application requests pause/unpause playback.\n Mostly usable with devices that have internal buffer.\n By default devices are not paused.\n\n data: NULL"]
AV_APP_TO_DEV_TOGGLE_PAUSE = 1346458964,
#[doc = " Volume control message.\n\n Set volume level. It may be device-dependent if volume\n is changed per stream or system wide. Per stream volume\n change is expected when possible.\n\n data: double: new volume with range of 0.0 - 1.0."]
AV_APP_TO_DEV_SET_VOLUME = 1398165324,
#[doc = " Mute control messages.\n\n Change mute state. It may be device-dependent if mute status\n is changed per stream or system wide. Per stream mute status\n change is expected when possible.\n\n data: NULL."]
AV_APP_TO_DEV_MUTE = 541939028,
#[doc = " Mute control messages.\n\n Change mute state. It may be device-dependent if mute status\n is changed per stream or system wide. Per stream mute status\n change is expected when possible.\n\n data: NULL."]
AV_APP_TO_DEV_UNMUTE = 1431131476,
#[doc = " Mute control messages.\n\n Change mute state. It may be device-dependent if mute status\n is changed per stream or system wide. Per stream mute status\n change is expected when possible.\n\n data: NULL."]
AV_APP_TO_DEV_TOGGLE_MUTE = 1414354260,
#[doc = " Get volume/mute messages.\n\n Force the device to send AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED or\n AV_DEV_TO_APP_MUTE_STATE_CHANGED command respectively.\n\n data: NULL."]
AV_APP_TO_DEV_GET_VOLUME = 1196838732,
#[doc = " Get volume/mute messages.\n\n Force the device to send AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED or\n AV_DEV_TO_APP_MUTE_STATE_CHANGED command respectively.\n\n data: NULL."]
AV_APP_TO_DEV_GET_MUTE = 1196250452,
}
#[repr(u32)]
#[doc = " Message types used by avdevice_dev_to_app_control_message()."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVDevToAppMessageType {
#[doc = " Dummy message."]
AV_DEV_TO_APP_NONE = 1313820229,
#[doc = " Create window buffer message.\n\n Device requests to create a window buffer. Exact meaning is device-\n and application-dependent. Message is sent before rendering first\n frame and all one-shot initializations should be done here.\n Application is allowed to ignore preferred window buffer size.\n\n @note: Application is obligated to inform about window buffer size\n with AV_APP_TO_DEV_WINDOW_SIZE message.\n\n data: AVDeviceRect: preferred size of the window buffer.\n NULL: no preferred size of the window buffer."]
AV_DEV_TO_APP_CREATE_WINDOW_BUFFER = 1111708229,
#[doc = " Prepare window buffer message.\n\n Device requests to prepare a window buffer for rendering.\n Exact meaning is device- and application-dependent.\n Message is sent before rendering of each frame.\n\n data: NULL."]
AV_DEV_TO_APP_PREPARE_WINDOW_BUFFER = 1112560197,
#[doc = " Display window buffer message.\n\n Device requests to display a window buffer.\n Message is sent when new frame is ready to be displayed.\n Usually buffers need to be swapped in handler of this message.\n\n data: NULL."]
AV_DEV_TO_APP_DISPLAY_WINDOW_BUFFER = 1111771475,
#[doc = " Destroy window buffer message.\n\n Device requests to destroy a window buffer.\n Message is sent when device is about to be destroyed and window\n buffer is not required anymore.\n\n data: NULL."]
AV_DEV_TO_APP_DESTROY_WINDOW_BUFFER = 1111770451,
#[doc = " Buffer fullness status messages.\n\n Device signals buffer overflow/underflow.\n\n data: NULL."]
AV_DEV_TO_APP_BUFFER_OVERFLOW = 1112491596,
#[doc = " Buffer fullness status messages.\n\n Device signals buffer overflow/underflow.\n\n data: NULL."]
AV_DEV_TO_APP_BUFFER_UNDERFLOW = 1112884812,
#[doc = " Buffer readable/writable.\n\n Device informs that buffer is readable/writable.\n When possible, device informs how many bytes can be read/write.\n\n @warning Device may not inform when number of bytes than can be read/write changes.\n\n data: int64_t: amount of bytes available to read/write.\n NULL: amount of bytes available to read/write is not known."]
AV_DEV_TO_APP_BUFFER_READABLE = 1112687648,
#[doc = " Buffer readable/writable.\n\n Device informs that buffer is readable/writable.\n When possible, device informs how many bytes can be read/write.\n\n @warning Device may not inform when number of bytes than can be read/write changes.\n\n data: int64_t: amount of bytes available to read/write.\n NULL: amount of bytes available to read/write is not known."]
AV_DEV_TO_APP_BUFFER_WRITABLE = 1113018912,
#[doc = " Mute state change message.\n\n Device informs that mute state has changed.\n\n data: int: 0 for not muted state, non-zero for muted state."]
AV_DEV_TO_APP_MUTE_STATE_CHANGED = 1129141588,
#[doc = " Volume level change message.\n\n Device informs that volume level has changed.\n\n data: double: new volume with range of 0.0 - 1.0."]
AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED = 1129729868,
}
extern "C" {
#[doc = " Send control message from application to device.\n\n @param s device context.\n @param type message type.\n @param data message data. Exact type depends on message type.\n @param data_size size of message data.\n @return >= 0 on success, negative on error.\n AVERROR(ENOSYS) when device doesn't implement handler of the message."]
pub fn avdevice_app_to_dev_control_message(
s: *mut AVFormatContext,
type_: AVAppToDevMessageType,
data: *mut libc::c_void,
data_size: usize,
) -> libc::c_int;
}
extern "C" {
#[doc = " Send control message from device to application.\n\n @param s device context.\n @param type message type.\n @param data message data. Can be NULL.\n @param data_size size of message data.\n @return >= 0 on success, negative on error.\n AVERROR(ENOSYS) when application doesn't implement handler of the message."]
pub fn avdevice_dev_to_app_control_message(
s: *mut AVFormatContext,
type_: AVDevToAppMessageType,
data: *mut libc::c_void,
data_size: usize,
) -> libc::c_int;
}
#[doc = " Structure describes device capabilities.\n\n It is used by devices in conjunction with av_device_capabilities AVOption table\n to implement capabilities probing API based on AVOption API. Should not be used directly."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVDeviceCapabilitiesQuery {
pub av_class: *const AVClass,
pub device_context: *mut AVFormatContext,
pub codec: AVCodecID,
pub sample_format: AVSampleFormat,
pub pixel_format: AVPixelFormat,
pub sample_rate: libc::c_int,
pub channels: libc::c_int,
pub channel_layout: i64,
pub window_width: libc::c_int,
pub window_height: libc::c_int,
pub frame_width: libc::c_int,
pub frame_height: libc::c_int,
pub fps: AVRational,
}
#[test]
fn bindgen_test_layout_AVDeviceCapabilitiesQuery() {
const UNINIT: ::std::mem::MaybeUninit<AVDeviceCapabilitiesQuery> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVDeviceCapabilitiesQuery>(),
72usize,
concat!("Size of: ", stringify!(AVDeviceCapabilitiesQuery))
);
assert_eq!(
::std::mem::align_of::<AVDeviceCapabilitiesQuery>(),
8usize,
concat!("Alignment of ", stringify!(AVDeviceCapabilitiesQuery))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).av_class) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVDeviceCapabilitiesQuery),
"::",
stringify!(av_class)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).device_context) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVDeviceCapabilitiesQuery),
"::",
stringify!(device_context)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).codec) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVDeviceCapabilitiesQuery),
"::",
stringify!(codec)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sample_format) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(AVDeviceCapabilitiesQuery),
"::",
stringify!(sample_format)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pixel_format) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVDeviceCapabilitiesQuery),
"::",
stringify!(pixel_format)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sample_rate) as usize - ptr as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(AVDeviceCapabilitiesQuery),
"::",
stringify!(sample_rate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).channels) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVDeviceCapabilitiesQuery),
"::",
stringify!(channels)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).channel_layout) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVDeviceCapabilitiesQuery),
"::",
stringify!(channel_layout)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).window_width) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVDeviceCapabilitiesQuery),
"::",
stringify!(window_width)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).window_height) as usize - ptr as usize },
52usize,
concat!(
"Offset of field: ",
stringify!(AVDeviceCapabilitiesQuery),
"::",
stringify!(window_height)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).frame_width) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVDeviceCapabilitiesQuery),
"::",
stringify!(frame_width)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).frame_height) as usize - ptr as usize },
60usize,
concat!(
"Offset of field: ",
stringify!(AVDeviceCapabilitiesQuery),
"::",
stringify!(frame_height)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).fps) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(AVDeviceCapabilitiesQuery),
"::",
stringify!(fps)
)
);
}
extern "C" {
#[doc = " AVOption table used by devices to implement device capabilities API. Should not be used by a user."]
pub static av_device_capabilities: [AVOption; 0usize];
}
extern "C" {
#[doc = " Initialize capabilities probing API based on AVOption API.\n\n avdevice_capabilities_free() must be called when query capabilities API is\n not used anymore.\n\n @param[out] caps Device capabilities data. Pointer to a NULL pointer must be passed.\n @param s Context of the device.\n @param device_options An AVDictionary filled with device-private options.\n On return this parameter will be destroyed and replaced with a dict\n containing options that were not found. May be NULL.\n The same options must be passed later to avformat_write_header() for output\n devices or avformat_open_input() for input devices, or at any other place\n that affects device-private options.\n\n @return >= 0 on success, negative otherwise."]
pub fn avdevice_capabilities_create(
caps: *mut *mut AVDeviceCapabilitiesQuery,
s: *mut AVFormatContext,
device_options: *mut *mut AVDictionary,
) -> libc::c_int;
}
extern "C" {
#[doc = " Free resources created by avdevice_capabilities_create()\n\n @param caps Device capabilities data to be freed.\n @param s Context of the device."]
pub fn avdevice_capabilities_free(
caps: *mut *mut AVDeviceCapabilitiesQuery,
s: *mut AVFormatContext,
);
}
#[doc = " Structure describes basic parameters of the device."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVDeviceInfo {
#[doc = "< device name, format depends on device"]
pub device_name: *mut libc::c_char,
#[doc = "< human friendly name"]
pub device_description: *mut libc::c_char,
}
#[test]
fn bindgen_test_layout_AVDeviceInfo() {
const UNINIT: ::std::mem::MaybeUninit<AVDeviceInfo> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVDeviceInfo>(),
16usize,
concat!("Size of: ", stringify!(AVDeviceInfo))
);
assert_eq!(
::std::mem::align_of::<AVDeviceInfo>(),
8usize,
concat!("Alignment of ", stringify!(AVDeviceInfo))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).device_name) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVDeviceInfo),
"::",
stringify!(device_name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).device_description) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVDeviceInfo),
"::",
stringify!(device_description)
)
);
}
#[doc = " List of devices."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVDeviceInfoList {
#[doc = "< list of autodetected devices"]
pub devices: *mut *mut AVDeviceInfo,
#[doc = "< number of autodetected devices"]
pub nb_devices: libc::c_int,
#[doc = "< index of default device or -1 if no default"]
pub default_device: libc::c_int,
}
#[test]
fn bindgen_test_layout_AVDeviceInfoList() {
const UNINIT: ::std::mem::MaybeUninit<AVDeviceInfoList> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVDeviceInfoList>(),
16usize,
concat!("Size of: ", stringify!(AVDeviceInfoList))
);
assert_eq!(
::std::mem::align_of::<AVDeviceInfoList>(),
8usize,
concat!("Alignment of ", stringify!(AVDeviceInfoList))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).devices) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVDeviceInfoList),
"::",
stringify!(devices)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_devices) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVDeviceInfoList),
"::",
stringify!(nb_devices)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).default_device) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(AVDeviceInfoList),
"::",
stringify!(default_device)
)
);
}
extern "C" {
#[doc = " List devices.\n\n Returns available device names and their parameters.\n\n @note: Some devices may accept system-dependent device names that cannot be\n autodetected. The list returned by this function cannot be assumed to\n be always completed.\n\n @param s device context.\n @param[out] device_list list of autodetected devices.\n @return count of autodetected devices, negative on error."]
pub fn avdevice_list_devices(
s: *mut AVFormatContext,
device_list: *mut *mut AVDeviceInfoList,
) -> libc::c_int;
}
extern "C" {
#[doc = " Convenient function to free result of avdevice_list_devices().\n\n @param devices device list to be freed."]
pub fn avdevice_free_list_devices(device_list: *mut *mut AVDeviceInfoList);
}
extern "C" {
#[doc = " List devices.\n\n Returns available device names and their parameters.\n These are convinient wrappers for avdevice_list_devices().\n Device context is allocated and deallocated internally.\n\n @param device device format. May be NULL if device name is set.\n @param device_name device name. May be NULL if device format is set.\n @param device_options An AVDictionary filled with device-private options. May be NULL.\n The same options must be passed later to avformat_write_header() for output\n devices or avformat_open_input() for input devices, or at any other place\n that affects device-private options.\n @param[out] device_list list of autodetected devices\n @return count of autodetected devices, negative on error.\n @note device argument takes precedence over device_name when both are set."]
pub fn avdevice_list_input_sources(
device: *mut AVInputFormat,
device_name: *const libc::c_char,
device_options: *mut AVDictionary,
device_list: *mut *mut AVDeviceInfoList,
) -> libc::c_int;
}
extern "C" {
pub fn avdevice_list_output_sinks(
device: *mut AVOutputFormat,
device_name: *const libc::c_char,
device_options: *mut AVDictionary,
device_list: *mut *mut AVDeviceInfoList,
) -> libc::c_int;
}
extern "C" {
#[doc = " Return the LIBAVFILTER_VERSION_INT constant."]
pub fn avfilter_version() -> libc::c_uint;
}
extern "C" {
#[doc = " Return the libavfilter build-time configuration."]
pub fn avfilter_configuration() -> *const libc::c_char;
}
extern "C" {
#[doc = " Return the libavfilter license."]
pub fn avfilter_license() -> *const libc::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVFilterPad {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVFilterFormats {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVFilterChannelLayouts {
_unused: [u8; 0],
}
extern "C" {
#[doc = " Get the number of elements in a NULL-terminated array of AVFilterPads (e.g.\n AVFilter.inputs/outputs)."]
pub fn avfilter_pad_count(pads: *const AVFilterPad) -> libc::c_int;
}
extern "C" {
#[doc = " Get the name of an AVFilterPad.\n\n @param pads an array of AVFilterPads\n @param pad_idx index of the pad in the array; it is the caller's\n responsibility to ensure the index is valid\n\n @return name of the pad_idx'th pad in pads"]
pub fn avfilter_pad_get_name(
pads: *const AVFilterPad,
pad_idx: libc::c_int,
) -> *const libc::c_char;
}
extern "C" {
#[doc = " Get the type of an AVFilterPad.\n\n @param pads an array of AVFilterPads\n @param pad_idx index of the pad in the array; it is the caller's\n responsibility to ensure the index is valid\n\n @return type of the pad_idx'th pad in pads"]
pub fn avfilter_pad_get_type(pads: *const AVFilterPad, pad_idx: libc::c_int) -> AVMediaType;
}
#[doc = " Filter definition. This defines the pads a filter contains, and all the\n callback functions used to interact with the filter."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVFilter {
#[doc = " Filter name. Must be non-NULL and unique among filters."]
pub name: *const libc::c_char,
#[doc = " A description of the filter. May be NULL.\n\n You should use the NULL_IF_CONFIG_SMALL() macro to define it."]
pub description: *const libc::c_char,
#[doc = " List of inputs, terminated by a zeroed element.\n\n NULL if there are no (static) inputs. Instances of filters with\n AVFILTER_FLAG_DYNAMIC_INPUTS set may have more inputs than present in\n this list."]
pub inputs: *const AVFilterPad,
#[doc = " List of outputs, terminated by a zeroed element.\n\n NULL if there are no (static) outputs. Instances of filters with\n AVFILTER_FLAG_DYNAMIC_OUTPUTS set may have more outputs than present in\n this list."]
pub outputs: *const AVFilterPad,
#[doc = " A class for the private data, used to declare filter private AVOptions.\n This field is NULL for filters that do not declare any options.\n\n If this field is non-NULL, the first member of the filter private data\n must be a pointer to AVClass, which will be set by libavfilter generic\n code to this class."]
pub priv_class: *const AVClass,
#[doc = " A combination of AVFILTER_FLAG_*"]
pub flags: libc::c_int,
#[doc = " Filter pre-initialization function\n\n This callback will be called immediately after the filter context is\n allocated, to allow allocating and initing sub-objects.\n\n If this callback is not NULL, the uninit callback will be called on\n allocation failure.\n\n @return 0 on success,\n AVERROR code on failure (but the code will be\n dropped and treated as ENOMEM by the calling code)"]
pub preinit:
::std::option::Option<unsafe extern "C" fn(ctx: *mut AVFilterContext) -> libc::c_int>,
#[doc = " Filter initialization function.\n\n This callback will be called only once during the filter lifetime, after\n all the options have been set, but before links between filters are\n established and format negotiation is done.\n\n Basic filter initialization should be done here. Filters with dynamic\n inputs and/or outputs should create those inputs/outputs here based on\n provided options. No more changes to this filter's inputs/outputs can be\n done after this callback.\n\n This callback must not assume that the filter links exist or frame\n parameters are known.\n\n @ref AVFilter.uninit \"uninit\" is guaranteed to be called even if\n initialization fails, so this callback does not have to clean up on\n failure.\n\n @return 0 on success, a negative AVERROR on failure"]
pub init: ::std::option::Option<unsafe extern "C" fn(ctx: *mut AVFilterContext) -> libc::c_int>,
#[doc = " Should be set instead of @ref AVFilter.init \"init\" by the filters that\n want to pass a dictionary of AVOptions to nested contexts that are\n allocated during init.\n\n On return, the options dict should be freed and replaced with one that\n contains all the options which could not be processed by this filter (or\n with NULL if all the options were processed).\n\n Otherwise the semantics is the same as for @ref AVFilter.init \"init\"."]
pub init_dict: ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut AVFilterContext,
options: *mut *mut AVDictionary,
) -> libc::c_int,
>,
#[doc = " Filter uninitialization function.\n\n Called only once right before the filter is freed. Should deallocate any\n memory held by the filter, release any buffer references, etc. It does\n not need to deallocate the AVFilterContext.priv memory itself.\n\n This callback may be called even if @ref AVFilter.init \"init\" was not\n called or failed, so it must be prepared to handle such a situation."]
pub uninit: ::std::option::Option<unsafe extern "C" fn(ctx: *mut AVFilterContext)>,
#[doc = " Query formats supported by the filter on its inputs and outputs.\n\n This callback is called after the filter is initialized (so the inputs\n and outputs are fixed), shortly before the format negotiation. This\n callback may be called more than once.\n\n This callback must set AVFilterLink.outcfg.formats on every input link and\n AVFilterLink.incfg.formats on every output link to a list of pixel/sample\n formats that the filter supports on that link. For audio links, this\n filter must also set @ref AVFilterLink.incfg.samplerates \"in_samplerates\" /\n @ref AVFilterLink.outcfg.samplerates \"out_samplerates\" and\n @ref AVFilterLink.incfg.channel_layouts \"in_channel_layouts\" /\n @ref AVFilterLink.outcfg.channel_layouts \"out_channel_layouts\" analogously.\n\n This callback may be NULL for filters with one input, in which case\n libavfilter assumes that it supports all input formats and preserves\n them on output.\n\n @return zero on success, a negative value corresponding to an\n AVERROR code otherwise"]
pub query_formats:
::std::option::Option<unsafe extern "C" fn(arg1: *mut AVFilterContext) -> libc::c_int>,
#[doc = "< size of private data to allocate for the filter"]
pub priv_size: libc::c_int,
#[doc = "< Additional flags for avfilter internal use only."]
pub flags_internal: libc::c_int,
#[doc = " Used by the filter registration system. Must not be touched by any other\n code."]
pub next: *mut AVFilter,
#[doc = " Make the filter instance process a command.\n\n @param cmd the command to process, for handling simplicity all commands must be alphanumeric only\n @param arg the argument for the command\n @param res a buffer with size res_size where the filter(s) can return a response. This must not change when the command is not supported.\n @param flags if AVFILTER_CMD_FLAG_FAST is set and the command would be\n time consuming then a filter should treat it like an unsupported command\n\n @returns >=0 on success otherwise an error code.\n AVERROR(ENOSYS) on unsupported commands"]
pub process_command: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut AVFilterContext,
cmd: *const libc::c_char,
arg: *const libc::c_char,
res: *mut libc::c_char,
res_len: libc::c_int,
flags: libc::c_int,
) -> libc::c_int,
>,
#[doc = " Filter initialization function, alternative to the init()\n callback. Args contains the user-supplied parameters, opaque is\n used for providing binary data."]
pub init_opaque: ::std::option::Option<
unsafe extern "C" fn(ctx: *mut AVFilterContext, opaque: *mut libc::c_void) -> libc::c_int,
>,
#[doc = " Filter activation function.\n\n Called when any processing is needed from the filter, instead of any\n filter_frame and request_frame on pads.\n\n The function must examine inlinks and outlinks and perform a single\n step of processing. If there is nothing to do, the function must do\n nothing and not return an error. If more steps are or may be\n possible, it must use ff_filter_set_ready() to schedule another\n activation."]
pub activate:
::std::option::Option<unsafe extern "C" fn(ctx: *mut AVFilterContext) -> libc::c_int>,
}
#[test]
fn bindgen_test_layout_AVFilter() {
const UNINIT: ::std::mem::MaybeUninit<AVFilter> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVFilter>(),
128usize,
concat!("Size of: ", stringify!(AVFilter))
);
assert_eq!(
::std::mem::align_of::<AVFilter>(),
8usize,
concat!("Alignment of ", stringify!(AVFilter))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVFilter),
"::",
stringify!(name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).description) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVFilter),
"::",
stringify!(description)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).inputs) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVFilter),
"::",
stringify!(inputs)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).outputs) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVFilter),
"::",
stringify!(outputs)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).priv_class) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVFilter),
"::",
stringify!(priv_class)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVFilter),
"::",
stringify!(flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).preinit) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVFilter),
"::",
stringify!(preinit)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVFilter),
"::",
stringify!(init)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).init_dict) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(AVFilter),
"::",
stringify!(init_dict)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).uninit) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(AVFilter),
"::",
stringify!(uninit)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).query_formats) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(AVFilter),
"::",
stringify!(query_formats)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).priv_size) as usize - ptr as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(AVFilter),
"::",
stringify!(priv_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).flags_internal) as usize - ptr as usize },
92usize,
concat!(
"Offset of field: ",
stringify!(AVFilter),
"::",
stringify!(flags_internal)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).next) as usize - ptr as usize },
96usize,
concat!(
"Offset of field: ",
stringify!(AVFilter),
"::",
stringify!(next)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).process_command) as usize - ptr as usize },
104usize,
concat!(
"Offset of field: ",
stringify!(AVFilter),
"::",
stringify!(process_command)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).init_opaque) as usize - ptr as usize },
112usize,
concat!(
"Offset of field: ",
stringify!(AVFilter),
"::",
stringify!(init_opaque)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).activate) as usize - ptr as usize },
120usize,
concat!(
"Offset of field: ",
stringify!(AVFilter),
"::",
stringify!(activate)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVFilterInternal {
_unused: [u8; 0],
}
#[doc = " An instance of a filter"]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVFilterContext {
#[doc = "< needed for av_log() and filters common options"]
pub av_class: *const AVClass,
#[doc = "< the AVFilter of which this is an instance"]
pub filter: *const AVFilter,
#[doc = "< name of this filter instance"]
pub name: *mut libc::c_char,
#[doc = "< array of input pads"]
pub input_pads: *mut AVFilterPad,
#[doc = "< array of pointers to input links"]
pub inputs: *mut *mut AVFilterLink,
#[doc = "< number of input pads"]
pub nb_inputs: libc::c_uint,
#[doc = "< array of output pads"]
pub output_pads: *mut AVFilterPad,
#[doc = "< array of pointers to output links"]
pub outputs: *mut *mut AVFilterLink,
#[doc = "< number of output pads"]
pub nb_outputs: libc::c_uint,
#[doc = "< private data for use by the filter"]
pub priv_: *mut libc::c_void,
#[doc = "< filtergraph this filter belongs to"]
pub graph: *mut AVFilterGraph,
#[doc = " Type of multithreading being allowed/used. A combination of\n AVFILTER_THREAD_* flags.\n\n May be set by the caller before initializing the filter to forbid some\n or all kinds of multithreading for this filter. The default is allowing\n everything.\n\n When the filter is initialized, this field is combined using bit AND with\n AVFilterGraph.thread_type to get the final mask used for determining\n allowed threading types. I.e. a threading type needs to be set in both\n to be allowed.\n\n After the filter is initialized, libavfilter sets this field to the\n threading type that is actually used (0 for no multithreading)."]
pub thread_type: libc::c_int,
#[doc = " An opaque struct for libavfilter internal use."]
pub internal: *mut AVFilterInternal,
pub command_queue: *mut AVFilterCommand,
#[doc = "< enable expression string"]
pub enable_str: *mut libc::c_char,
#[doc = "< parsed expression (AVExpr*)"]
pub enable: *mut libc::c_void,
#[doc = "< variable values for the enable expression"]
pub var_values: *mut f64,
#[doc = "< the enabled state from the last expression evaluation"]
pub is_disabled: libc::c_int,
#[doc = " For filters which will create hardware frames, sets the device the\n filter should create them in. All other filters will ignore this field:\n in particular, a filter which consumes or processes hardware frames will\n instead use the hw_frames_ctx field in AVFilterLink to carry the\n hardware context information."]
pub hw_device_ctx: *mut AVBufferRef,
#[doc = " Max number of threads allowed in this filter instance.\n If <= 0, its value is ignored.\n Overrides global number of threads set per filter graph."]
pub nb_threads: libc::c_int,
#[doc = " Ready status of the filter.\n A non-0 value means that the filter needs activating;\n a higher value suggests a more urgent activation."]
pub ready: libc::c_uint,
#[doc = " Sets the number of extra hardware frames which the filter will\n allocate on its output links for use in following filters or by\n the caller.\n\n Some hardware filters require all frames that they will use for\n output to be defined in advance before filtering starts. For such\n filters, any hardware frame pools used for output must therefore be\n of fixed size. The extra frames set here are on top of any number\n that the filter needs internally in order to operate normally.\n\n This field must be set before the graph containing this filter is\n configured."]
pub extra_hw_frames: libc::c_int,
}
#[test]
fn bindgen_test_layout_AVFilterContext() {
const UNINIT: ::std::mem::MaybeUninit<AVFilterContext> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVFilterContext>(),
168usize,
concat!("Size of: ", stringify!(AVFilterContext))
);
assert_eq!(
::std::mem::align_of::<AVFilterContext>(),
8usize,
concat!("Alignment of ", stringify!(AVFilterContext))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).av_class) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVFilterContext),
"::",
stringify!(av_class)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).filter) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVFilterContext),
"::",
stringify!(filter)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVFilterContext),
"::",
stringify!(name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).input_pads) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVFilterContext),
"::",
stringify!(input_pads)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).inputs) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVFilterContext),
"::",
stringify!(inputs)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_inputs) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVFilterContext),
"::",
stringify!(nb_inputs)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).output_pads) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVFilterContext),
"::",
stringify!(output_pads)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).outputs) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVFilterContext),
"::",
stringify!(outputs)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_outputs) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(AVFilterContext),
"::",
stringify!(nb_outputs)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).priv_) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(AVFilterContext),
"::",
stringify!(priv_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).graph) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(AVFilterContext),
"::",
stringify!(graph)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).thread_type) as usize - ptr as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(AVFilterContext),
"::",
stringify!(thread_type)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).internal) as usize - ptr as usize },
96usize,
concat!(
"Offset of field: ",
stringify!(AVFilterContext),
"::",
stringify!(internal)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).command_queue) as usize - ptr as usize },
104usize,
concat!(
"Offset of field: ",
stringify!(AVFilterContext),
"::",
stringify!(command_queue)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).enable_str) as usize - ptr as usize },
112usize,
concat!(
"Offset of field: ",
stringify!(AVFilterContext),
"::",
stringify!(enable_str)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).enable) as usize - ptr as usize },
120usize,
concat!(
"Offset of field: ",
stringify!(AVFilterContext),
"::",
stringify!(enable)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).var_values) as usize - ptr as usize },
128usize,
concat!(
"Offset of field: ",
stringify!(AVFilterContext),
"::",
stringify!(var_values)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).is_disabled) as usize - ptr as usize },
136usize,
concat!(
"Offset of field: ",
stringify!(AVFilterContext),
"::",
stringify!(is_disabled)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).hw_device_ctx) as usize - ptr as usize },
144usize,
concat!(
"Offset of field: ",
stringify!(AVFilterContext),
"::",
stringify!(hw_device_ctx)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_threads) as usize - ptr as usize },
152usize,
concat!(
"Offset of field: ",
stringify!(AVFilterContext),
"::",
stringify!(nb_threads)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ready) as usize - ptr as usize },
156usize,
concat!(
"Offset of field: ",
stringify!(AVFilterContext),
"::",
stringify!(ready)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).extra_hw_frames) as usize - ptr as usize },
160usize,
concat!(
"Offset of field: ",
stringify!(AVFilterContext),
"::",
stringify!(extra_hw_frames)
)
);
}
#[doc = " Lists of formats / etc. supported by an end of a link.\n\n This structure is directly part of AVFilterLink, in two copies:\n one for the source filter, one for the destination filter.\n\n These lists are used for negotiating the format to actually be used,\n which will be loaded into the format and channel_layout members of\n AVFilterLink, when chosen."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVFilterFormatsConfig {
#[doc = " List of supported formats (pixel or sample)."]
pub formats: *mut AVFilterFormats,
#[doc = " Lists of supported sample rates, only for audio."]
pub samplerates: *mut AVFilterFormats,
#[doc = " Lists of supported channel layouts, only for audio."]
pub channel_layouts: *mut AVFilterChannelLayouts,
}
#[test]
fn bindgen_test_layout_AVFilterFormatsConfig() {
const UNINIT: ::std::mem::MaybeUninit<AVFilterFormatsConfig> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVFilterFormatsConfig>(),
24usize,
concat!("Size of: ", stringify!(AVFilterFormatsConfig))
);
assert_eq!(
::std::mem::align_of::<AVFilterFormatsConfig>(),
8usize,
concat!("Alignment of ", stringify!(AVFilterFormatsConfig))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).formats) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVFilterFormatsConfig),
"::",
stringify!(formats)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).samplerates) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVFilterFormatsConfig),
"::",
stringify!(samplerates)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).channel_layouts) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVFilterFormatsConfig),
"::",
stringify!(channel_layouts)
)
);
}
#[doc = " A link between two filters. This contains pointers to the source and\n destination filters between which this link exists, and the indexes of\n the pads involved. In addition, this link also contains the parameters\n which have been negotiated and agreed upon between the filter, such as\n image dimensions, format, etc.\n\n Applications must not normally access the link structure directly.\n Use the buffersrc and buffersink API instead.\n In the future, access to the header may be reserved for filters\n implementation."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVFilterLink {
#[doc = "< source filter"]
pub src: *mut AVFilterContext,
#[doc = "< output pad on the source filter"]
pub srcpad: *mut AVFilterPad,
#[doc = "< dest filter"]
pub dst: *mut AVFilterContext,
#[doc = "< input pad on the dest filter"]
pub dstpad: *mut AVFilterPad,
#[doc = "< filter media type"]
pub type_: AVMediaType,
#[doc = "< agreed upon image width"]
pub w: libc::c_int,
#[doc = "< agreed upon image height"]
pub h: libc::c_int,
#[doc = "< agreed upon sample aspect ratio"]
pub sample_aspect_ratio: AVRational,
#[doc = "< channel layout of current buffer (see libavutil/channel_layout.h)"]
pub channel_layout: u64,
#[doc = "< samples per second"]
pub sample_rate: libc::c_int,
#[doc = "< agreed upon media format"]
pub format: libc::c_int,
#[doc = " Define the time base used by the PTS of the frames/samples\n which will pass through this link.\n During the configuration stage, each filter is supposed to\n change only the output timebase, while the timebase of the\n input link is assumed to be an unchangeable property."]
pub time_base: AVRational,
#[doc = " Lists of supported formats / etc. supported by the input filter."]
pub incfg: AVFilterFormatsConfig,
#[doc = " Lists of supported formats / etc. supported by the output filter."]
pub outcfg: AVFilterFormatsConfig,
pub init_state: AVFilterLink__bindgen_ty_1,
#[doc = " Graph the filter belongs to."]
pub graph: *mut AVFilterGraph,
#[doc = " Current timestamp of the link, as defined by the most recent\n frame(s), in link time_base units."]
pub current_pts: i64,
#[doc = " Current timestamp of the link, as defined by the most recent\n frame(s), in AV_TIME_BASE units."]
pub current_pts_us: i64,
#[doc = " Index in the age array."]
pub age_index: libc::c_int,
#[doc = " Frame rate of the stream on the link, or 1/0 if unknown or variable;\n if left to 0/0, will be automatically copied from the first input\n of the source filter if it exists.\n\n Sources should set it to the best estimation of the real frame rate.\n If the source frame rate is unknown or variable, set this to 1/0.\n Filters should update it if necessary depending on their function.\n Sinks can use it to set a default output frame rate.\n It is similar to the r_frame_rate field in AVStream."]
pub frame_rate: AVRational,
#[doc = " Buffer partially filled with samples to achieve a fixed/minimum size."]
pub partial_buf: *mut AVFrame,
#[doc = " Size of the partial buffer to allocate.\n Must be between min_samples and max_samples."]
pub partial_buf_size: libc::c_int,
#[doc = " Minimum number of samples to filter at once. If filter_frame() is\n called with fewer samples, it will accumulate them in partial_buf.\n This field and the related ones must not be changed after filtering\n has started.\n If 0, all related fields are ignored."]
pub min_samples: libc::c_int,
#[doc = " Maximum number of samples to filter at once. If filter_frame() is\n called with more samples, it will split them."]
pub max_samples: libc::c_int,
#[doc = " Number of channels."]
pub channels: libc::c_int,
#[doc = " Number of past frames sent through the link."]
pub frame_count_in: i64,
#[doc = " Number of past frames sent through the link."]
pub frame_count_out: i64,
#[doc = " A pointer to a FFFramePool struct."]
pub frame_pool: *mut libc::c_void,
#[doc = " True if a frame is currently wanted on the output of this filter.\n Set when ff_request_frame() is called by the output,\n cleared when a frame is filtered."]
pub frame_wanted_out: libc::c_int,
#[doc = " For hwaccel pixel formats, this should be a reference to the\n AVHWFramesContext describing the frames."]
pub hw_frames_ctx: *mut AVBufferRef,
#[doc = " Internal structure members.\n The fields below this limit are internal for libavfilter's use\n and must in no way be accessed by applications."]
pub reserved: [libc::c_char; 61440usize],
}
pub const AVFilterLink_AVLINK_UNINIT: AVFilterLink__bindgen_ty_1 =
AVFilterLink__bindgen_ty_1::AVLINK_UNINIT;
pub const AVFilterLink_AVLINK_STARTINIT: AVFilterLink__bindgen_ty_1 =
AVFilterLink__bindgen_ty_1::AVLINK_STARTINIT;
pub const AVFilterLink_AVLINK_INIT: AVFilterLink__bindgen_ty_1 =
AVFilterLink__bindgen_ty_1::AVLINK_INIT;
#[repr(u32)]
#[doc = " stage of the initialization of the link properties (dimensions, etc)"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVFilterLink__bindgen_ty_1 {
#[doc = "< not started"]
AVLINK_UNINIT = 0,
#[doc = "< started, but incomplete"]
AVLINK_STARTINIT = 1,
#[doc = "< complete"]
AVLINK_INIT = 2,
}
#[test]
fn bindgen_test_layout_AVFilterLink() {
const UNINIT: ::std::mem::MaybeUninit<AVFilterLink> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVFilterLink>(),
61680usize,
concat!("Size of: ", stringify!(AVFilterLink))
);
assert_eq!(
::std::mem::align_of::<AVFilterLink>(),
8usize,
concat!("Alignment of ", stringify!(AVFilterLink))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).src) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(src)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).srcpad) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(srcpad)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).dst) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(dst)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).dstpad) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(dstpad)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
36usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(w)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(h)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sample_aspect_ratio) as usize - ptr as usize },
44usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(sample_aspect_ratio)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).channel_layout) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(channel_layout)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sample_rate) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(sample_rate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).format) as usize - ptr as usize },
68usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(format)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).time_base) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(time_base)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).incfg) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(incfg)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).outcfg) as usize - ptr as usize },
104usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(outcfg)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).init_state) as usize - ptr as usize },
128usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(init_state)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).graph) as usize - ptr as usize },
136usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(graph)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).current_pts) as usize - ptr as usize },
144usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(current_pts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).current_pts_us) as usize - ptr as usize },
152usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(current_pts_us)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).age_index) as usize - ptr as usize },
160usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(age_index)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).frame_rate) as usize - ptr as usize },
164usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(frame_rate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).partial_buf) as usize - ptr as usize },
176usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(partial_buf)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).partial_buf_size) as usize - ptr as usize },
184usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(partial_buf_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).min_samples) as usize - ptr as usize },
188usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(min_samples)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_samples) as usize - ptr as usize },
192usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(max_samples)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).channels) as usize - ptr as usize },
196usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(channels)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).frame_count_in) as usize - ptr as usize },
200usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(frame_count_in)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).frame_count_out) as usize - ptr as usize },
208usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(frame_count_out)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).frame_pool) as usize - ptr as usize },
216usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(frame_pool)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).frame_wanted_out) as usize - ptr as usize },
224usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(frame_wanted_out)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).hw_frames_ctx) as usize - ptr as usize },
232usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(hw_frames_ctx)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).reserved) as usize - ptr as usize },
240usize,
concat!(
"Offset of field: ",
stringify!(AVFilterLink),
"::",
stringify!(reserved)
)
);
}
extern "C" {
#[doc = " Link two filters together.\n\n @param src the source filter\n @param srcpad index of the output pad on the source filter\n @param dst the destination filter\n @param dstpad index of the input pad on the destination filter\n @return zero on success"]
pub fn avfilter_link(
src: *mut AVFilterContext,
srcpad: libc::c_uint,
dst: *mut AVFilterContext,
dstpad: libc::c_uint,
) -> libc::c_int;
}
extern "C" {
#[doc = " Free the link in *link, and set its pointer to NULL."]
pub fn avfilter_link_free(link: *mut *mut AVFilterLink);
}
extern "C" {
#[doc = " Get the number of channels of a link.\n @deprecated Use av_buffersink_get_channels()"]
pub fn avfilter_link_get_channels(link: *mut AVFilterLink) -> libc::c_int;
}
extern "C" {
#[doc = " Set the closed field of a link.\n @deprecated applications are not supposed to mess with links, they should\n close the sinks."]
pub fn avfilter_link_set_closed(link: *mut AVFilterLink, closed: libc::c_int);
}
extern "C" {
#[doc = " Negotiate the media format, dimensions, etc of all inputs to a filter.\n\n @param filter the filter to negotiate the properties for its inputs\n @return zero on successful negotiation"]
pub fn avfilter_config_links(filter: *mut AVFilterContext) -> libc::c_int;
}
extern "C" {
#[doc = " Make the filter instance process a command.\n It is recommended to use avfilter_graph_send_command()."]
pub fn avfilter_process_command(
filter: *mut AVFilterContext,
cmd: *const libc::c_char,
arg: *const libc::c_char,
res: *mut libc::c_char,
res_len: libc::c_int,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Iterate over all registered filters.\n\n @param opaque a pointer where libavfilter will store the iteration state. Must\n point to NULL to start the iteration.\n\n @return the next registered filter or NULL when the iteration is\n finished"]
pub fn av_filter_iterate(opaque: *mut *mut libc::c_void) -> *const AVFilter;
}
extern "C" {
#[doc = " Initialize the filter system. Register all builtin filters."]
pub fn avfilter_register_all();
}
extern "C" {
#[doc = " Register a filter. This is only needed if you plan to use\n avfilter_get_by_name later to lookup the AVFilter structure by name. A\n filter can still by instantiated with avfilter_graph_alloc_filter even if it\n is not registered.\n\n @param filter the filter to register\n @return 0 if the registration was successful, a negative value\n otherwise"]
pub fn avfilter_register(filter: *mut AVFilter) -> libc::c_int;
}
extern "C" {
#[doc = " Iterate over all registered filters.\n @return If prev is non-NULL, next registered filter after prev or NULL if\n prev is the last filter. If prev is NULL, return the first registered filter."]
pub fn avfilter_next(prev: *const AVFilter) -> *const AVFilter;
}
extern "C" {
#[doc = " Get a filter definition matching the given name.\n\n @param name the filter name to find\n @return the filter definition, if any matching one is registered.\n NULL if none found."]
pub fn avfilter_get_by_name(name: *const libc::c_char) -> *const AVFilter;
}
extern "C" {
#[doc = " Initialize a filter with the supplied parameters.\n\n @param ctx uninitialized filter context to initialize\n @param args Options to initialize the filter with. This must be a\n ':'-separated list of options in the 'key=value' form.\n May be NULL if the options have been set directly using the\n AVOptions API or there are no options that need to be set.\n @return 0 on success, a negative AVERROR on failure"]
pub fn avfilter_init_str(ctx: *mut AVFilterContext, args: *const libc::c_char) -> libc::c_int;
}
extern "C" {
#[doc = " Initialize a filter with the supplied dictionary of options.\n\n @param ctx uninitialized filter context to initialize\n @param options An AVDictionary filled with options for this filter. On\n return this parameter will be destroyed and replaced with\n a dict containing options that were not found. This dictionary\n must be freed by the caller.\n May be NULL, then this function is equivalent to\n avfilter_init_str() with the second parameter set to NULL.\n @return 0 on success, a negative AVERROR on failure\n\n @note This function and avfilter_init_str() do essentially the same thing,\n the difference is in manner in which the options are passed. It is up to the\n calling code to choose whichever is more preferable. The two functions also\n behave differently when some of the provided options are not declared as\n supported by the filter. In such a case, avfilter_init_str() will fail, but\n this function will leave those extra options in the options AVDictionary and\n continue as usual."]
pub fn avfilter_init_dict(
ctx: *mut AVFilterContext,
options: *mut *mut AVDictionary,
) -> libc::c_int;
}
extern "C" {
#[doc = " Free a filter context. This will also remove the filter from its\n filtergraph's list of filters.\n\n @param filter the filter to free"]
pub fn avfilter_free(filter: *mut AVFilterContext);
}
extern "C" {
#[doc = " Insert a filter in the middle of an existing link.\n\n @param link the link into which the filter should be inserted\n @param filt the filter to be inserted\n @param filt_srcpad_idx the input pad on the filter to connect\n @param filt_dstpad_idx the output pad on the filter to connect\n @return zero on success"]
pub fn avfilter_insert_filter(
link: *mut AVFilterLink,
filt: *mut AVFilterContext,
filt_srcpad_idx: libc::c_uint,
filt_dstpad_idx: libc::c_uint,
) -> libc::c_int;
}
extern "C" {
#[doc = " @return AVClass for AVFilterContext.\n\n @see av_opt_find()."]
pub fn avfilter_get_class() -> *const AVClass;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVFilterGraphInternal {
_unused: [u8; 0],
}
#[doc = " A function pointer passed to the @ref AVFilterGraph.execute callback to be\n executed multiple times, possibly in parallel.\n\n @param ctx the filter context the job belongs to\n @param arg an opaque parameter passed through from @ref\n AVFilterGraph.execute\n @param jobnr the index of the job being executed\n @param nb_jobs the total number of jobs\n\n @return 0 on success, a negative AVERROR on error"]
pub type avfilter_action_func = ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut AVFilterContext,
arg: *mut libc::c_void,
jobnr: libc::c_int,
nb_jobs: libc::c_int,
) -> libc::c_int,
>;
#[doc = " A function executing multiple jobs, possibly in parallel.\n\n @param ctx the filter context to which the jobs belong\n @param func the function to be called multiple times\n @param arg the argument to be passed to func\n @param ret a nb_jobs-sized array to be filled with return values from each\n invocation of func\n @param nb_jobs the number of jobs to execute\n\n @return 0 on success, a negative AVERROR on error"]
pub type avfilter_execute_func = ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut AVFilterContext,
func: avfilter_action_func,
arg: *mut libc::c_void,
ret: *mut libc::c_int,
nb_jobs: libc::c_int,
) -> libc::c_int,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVFilterGraph {
pub av_class: *const AVClass,
pub filters: *mut *mut AVFilterContext,
pub nb_filters: libc::c_uint,
#[doc = "< sws options to use for the auto-inserted scale filters"]
pub scale_sws_opts: *mut libc::c_char,
#[doc = "< libavresample options to use for the auto-inserted resample filters"]
pub resample_lavr_opts: *mut libc::c_char,
#[doc = " Type of multithreading allowed for filters in this graph. A combination\n of AVFILTER_THREAD_* flags.\n\n May be set by the caller at any point, the setting will apply to all\n filters initialized after that. The default is allowing everything.\n\n When a filter in this graph is initialized, this field is combined using\n bit AND with AVFilterContext.thread_type to get the final mask used for\n determining allowed threading types. I.e. a threading type needs to be\n set in both to be allowed."]
pub thread_type: libc::c_int,
#[doc = " Maximum number of threads used by filters in this graph. May be set by\n the caller before adding any filters to the filtergraph. Zero (the\n default) means that the number of threads is determined automatically."]
pub nb_threads: libc::c_int,
#[doc = " Opaque object for libavfilter internal use."]
pub internal: *mut AVFilterGraphInternal,
#[doc = " Opaque user data. May be set by the caller to an arbitrary value, e.g. to\n be used from callbacks like @ref AVFilterGraph.execute.\n Libavfilter will not touch this field in any way."]
pub opaque: *mut libc::c_void,
#[doc = " This callback may be set by the caller immediately after allocating the\n graph and before adding any filters to it, to provide a custom\n multithreading implementation.\n\n If set, filters with slice threading capability will call this callback\n to execute multiple jobs in parallel.\n\n If this field is left unset, libavfilter will use its internal\n implementation, which may or may not be multithreaded depending on the\n platform and build options."]
pub execute: avfilter_execute_func,
#[doc = "< swr options to use for the auto-inserted aresample filters, Access ONLY through AVOptions"]
pub aresample_swr_opts: *mut libc::c_char,
#[doc = " Private fields\n\n The following fields are for internal use only.\n Their type, offset, number and semantic can change without notice."]
pub sink_links: *mut *mut AVFilterLink,
pub sink_links_count: libc::c_int,
pub disable_auto_convert: libc::c_uint,
}
#[test]
fn bindgen_test_layout_AVFilterGraph() {
const UNINIT: ::std::mem::MaybeUninit<AVFilterGraph> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVFilterGraph>(),
96usize,
concat!("Size of: ", stringify!(AVFilterGraph))
);
assert_eq!(
::std::mem::align_of::<AVFilterGraph>(),
8usize,
concat!("Alignment of ", stringify!(AVFilterGraph))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).av_class) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVFilterGraph),
"::",
stringify!(av_class)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).filters) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVFilterGraph),
"::",
stringify!(filters)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_filters) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVFilterGraph),
"::",
stringify!(nb_filters)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).scale_sws_opts) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVFilterGraph),
"::",
stringify!(scale_sws_opts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).resample_lavr_opts) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVFilterGraph),
"::",
stringify!(resample_lavr_opts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).thread_type) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVFilterGraph),
"::",
stringify!(thread_type)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_threads) as usize - ptr as usize },
44usize,
concat!(
"Offset of field: ",
stringify!(AVFilterGraph),
"::",
stringify!(nb_threads)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).internal) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVFilterGraph),
"::",
stringify!(internal)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).opaque) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVFilterGraph),
"::",
stringify!(opaque)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).execute) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(AVFilterGraph),
"::",
stringify!(execute)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).aresample_swr_opts) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(AVFilterGraph),
"::",
stringify!(aresample_swr_opts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sink_links) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(AVFilterGraph),
"::",
stringify!(sink_links)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sink_links_count) as usize - ptr as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(AVFilterGraph),
"::",
stringify!(sink_links_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).disable_auto_convert) as usize - ptr as usize },
92usize,
concat!(
"Offset of field: ",
stringify!(AVFilterGraph),
"::",
stringify!(disable_auto_convert)
)
);
}
extern "C" {
#[doc = " Allocate a filter graph.\n\n @return the allocated filter graph on success or NULL."]
pub fn avfilter_graph_alloc() -> *mut AVFilterGraph;
}
extern "C" {
#[doc = " Create a new filter instance in a filter graph.\n\n @param graph graph in which the new filter will be used\n @param filter the filter to create an instance of\n @param name Name to give to the new instance (will be copied to\n AVFilterContext.name). This may be used by the caller to identify\n different filters, libavfilter itself assigns no semantics to\n this parameter. May be NULL.\n\n @return the context of the newly created filter instance (note that it is\n also retrievable directly through AVFilterGraph.filters or with\n avfilter_graph_get_filter()) on success or NULL on failure."]
pub fn avfilter_graph_alloc_filter(
graph: *mut AVFilterGraph,
filter: *const AVFilter,
name: *const libc::c_char,
) -> *mut AVFilterContext;
}
extern "C" {
#[doc = " Get a filter instance identified by instance name from graph.\n\n @param graph filter graph to search through.\n @param name filter instance name (should be unique in the graph).\n @return the pointer to the found filter instance or NULL if it\n cannot be found."]
pub fn avfilter_graph_get_filter(
graph: *mut AVFilterGraph,
name: *const libc::c_char,
) -> *mut AVFilterContext;
}
extern "C" {
#[doc = " Create and add a filter instance into an existing graph.\n The filter instance is created from the filter filt and inited\n with the parameter args. opaque is currently ignored.\n\n In case of success put in *filt_ctx the pointer to the created\n filter instance, otherwise set *filt_ctx to NULL.\n\n @param name the instance name to give to the created filter instance\n @param graph_ctx the filter graph\n @return a negative AVERROR error code in case of failure, a non\n negative value otherwise"]
pub fn avfilter_graph_create_filter(
filt_ctx: *mut *mut AVFilterContext,
filt: *const AVFilter,
name: *const libc::c_char,
args: *const libc::c_char,
opaque: *mut libc::c_void,
graph_ctx: *mut AVFilterGraph,
) -> libc::c_int;
}
extern "C" {
#[doc = " Enable or disable automatic format conversion inside the graph.\n\n Note that format conversion can still happen inside explicitly inserted\n scale and aresample filters.\n\n @param flags any of the AVFILTER_AUTO_CONVERT_* constants"]
pub fn avfilter_graph_set_auto_convert(graph: *mut AVFilterGraph, flags: libc::c_uint);
}
pub const AVFILTER_AUTO_CONVERT_ALL: _bindgen_ty_6 = _bindgen_ty_6::AVFILTER_AUTO_CONVERT_ALL;
pub const AVFILTER_AUTO_CONVERT_NONE: _bindgen_ty_6 = _bindgen_ty_6::AVFILTER_AUTO_CONVERT_NONE;
#[repr(i32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _bindgen_ty_6 {
#[doc = "< all automatic conversions enabled"]
AVFILTER_AUTO_CONVERT_ALL = 0,
#[doc = "< all automatic conversions disabled"]
AVFILTER_AUTO_CONVERT_NONE = -1,
}
extern "C" {
#[doc = " Check validity and configure all the links and formats in the graph.\n\n @param graphctx the filter graph\n @param log_ctx context used for logging\n @return >= 0 in case of success, a negative AVERROR code otherwise"]
pub fn avfilter_graph_config(
graphctx: *mut AVFilterGraph,
log_ctx: *mut libc::c_void,
) -> libc::c_int;
}
extern "C" {
#[doc = " Free a graph, destroy its links, and set *graph to NULL.\n If *graph is NULL, do nothing."]
pub fn avfilter_graph_free(graph: *mut *mut AVFilterGraph);
}
#[doc = " A linked-list of the inputs/outputs of the filter chain.\n\n This is mainly useful for avfilter_graph_parse() / avfilter_graph_parse2(),\n where it is used to communicate open (unlinked) inputs and outputs from and\n to the caller.\n This struct specifies, per each not connected pad contained in the graph, the\n filter context and the pad index required for establishing a link."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVFilterInOut {
#[doc = " unique name for this input/output in the list"]
pub name: *mut libc::c_char,
#[doc = " filter context associated to this input/output"]
pub filter_ctx: *mut AVFilterContext,
#[doc = " index of the filt_ctx pad to use for linking"]
pub pad_idx: libc::c_int,
#[doc = " next input/input in the list, NULL if this is the last"]
pub next: *mut AVFilterInOut,
}
#[test]
fn bindgen_test_layout_AVFilterInOut() {
const UNINIT: ::std::mem::MaybeUninit<AVFilterInOut> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVFilterInOut>(),
32usize,
concat!("Size of: ", stringify!(AVFilterInOut))
);
assert_eq!(
::std::mem::align_of::<AVFilterInOut>(),
8usize,
concat!("Alignment of ", stringify!(AVFilterInOut))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVFilterInOut),
"::",
stringify!(name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).filter_ctx) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVFilterInOut),
"::",
stringify!(filter_ctx)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pad_idx) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVFilterInOut),
"::",
stringify!(pad_idx)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).next) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVFilterInOut),
"::",
stringify!(next)
)
);
}
extern "C" {
#[doc = " Allocate a single AVFilterInOut entry.\n Must be freed with avfilter_inout_free().\n @return allocated AVFilterInOut on success, NULL on failure."]
pub fn avfilter_inout_alloc() -> *mut AVFilterInOut;
}
extern "C" {
#[doc = " Free the supplied list of AVFilterInOut and set *inout to NULL.\n If *inout is NULL, do nothing."]
pub fn avfilter_inout_free(inout: *mut *mut AVFilterInOut);
}
extern "C" {
#[doc = " Add a graph described by a string to a graph.\n\n @note The caller must provide the lists of inputs and outputs,\n which therefore must be known before calling the function.\n\n @note The inputs parameter describes inputs of the already existing\n part of the graph; i.e. from the point of view of the newly created\n part, they are outputs. Similarly the outputs parameter describes\n outputs of the already existing filters, which are provided as\n inputs to the parsed filters.\n\n @param graph the filter graph where to link the parsed graph context\n @param filters string to be parsed\n @param inputs linked list to the inputs of the graph\n @param outputs linked list to the outputs of the graph\n @return zero on success, a negative AVERROR code on error"]
pub fn avfilter_graph_parse(
graph: *mut AVFilterGraph,
filters: *const libc::c_char,
inputs: *mut AVFilterInOut,
outputs: *mut AVFilterInOut,
log_ctx: *mut libc::c_void,
) -> libc::c_int;
}
extern "C" {
#[doc = " Add a graph described by a string to a graph.\n\n In the graph filters description, if the input label of the first\n filter is not specified, \"in\" is assumed; if the output label of\n the last filter is not specified, \"out\" is assumed.\n\n @param graph the filter graph where to link the parsed graph context\n @param filters string to be parsed\n @param inputs pointer to a linked list to the inputs of the graph, may be NULL.\n If non-NULL, *inputs is updated to contain the list of open inputs\n after the parsing, should be freed with avfilter_inout_free().\n @param outputs pointer to a linked list to the outputs of the graph, may be NULL.\n If non-NULL, *outputs is updated to contain the list of open outputs\n after the parsing, should be freed with avfilter_inout_free().\n @return non negative on success, a negative AVERROR code on error"]
pub fn avfilter_graph_parse_ptr(
graph: *mut AVFilterGraph,
filters: *const libc::c_char,
inputs: *mut *mut AVFilterInOut,
outputs: *mut *mut AVFilterInOut,
log_ctx: *mut libc::c_void,
) -> libc::c_int;
}
extern "C" {
#[doc = " Add a graph described by a string to a graph.\n\n @param[in] graph the filter graph where to link the parsed graph context\n @param[in] filters string to be parsed\n @param[out] inputs a linked list of all free (unlinked) inputs of the\n parsed graph will be returned here. It is to be freed\n by the caller using avfilter_inout_free().\n @param[out] outputs a linked list of all free (unlinked) outputs of the\n parsed graph will be returned here. It is to be freed by the\n caller using avfilter_inout_free().\n @return zero on success, a negative AVERROR code on error\n\n @note This function returns the inputs and outputs that are left\n unlinked after parsing the graph and the caller then deals with\n them.\n @note This function makes no reference whatsoever to already\n existing parts of the graph and the inputs parameter will on return\n contain inputs of the newly parsed part of the graph. Analogously\n the outputs parameter will contain outputs of the newly created\n filters."]
pub fn avfilter_graph_parse2(
graph: *mut AVFilterGraph,
filters: *const libc::c_char,
inputs: *mut *mut AVFilterInOut,
outputs: *mut *mut AVFilterInOut,
) -> libc::c_int;
}
extern "C" {
#[doc = " Send a command to one or more filter instances.\n\n @param graph the filter graph\n @param target the filter(s) to which the command should be sent\n \"all\" sends to all filters\n otherwise it can be a filter or filter instance name\n which will send the command to all matching filters.\n @param cmd the command to send, for handling simplicity all commands must be alphanumeric only\n @param arg the argument for the command\n @param res a buffer with size res_size where the filter(s) can return a response.\n\n @returns >=0 on success otherwise an error code.\n AVERROR(ENOSYS) on unsupported commands"]
pub fn avfilter_graph_send_command(
graph: *mut AVFilterGraph,
target: *const libc::c_char,
cmd: *const libc::c_char,
arg: *const libc::c_char,
res: *mut libc::c_char,
res_len: libc::c_int,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Queue a command for one or more filter instances.\n\n @param graph the filter graph\n @param target the filter(s) to which the command should be sent\n \"all\" sends to all filters\n otherwise it can be a filter or filter instance name\n which will send the command to all matching filters.\n @param cmd the command to sent, for handling simplicity all commands must be alphanumeric only\n @param arg the argument for the command\n @param ts time at which the command should be sent to the filter\n\n @note As this executes commands after this function returns, no return code\n from the filter is provided, also AVFILTER_CMD_FLAG_ONE is not supported."]
pub fn avfilter_graph_queue_command(
graph: *mut AVFilterGraph,
target: *const libc::c_char,
cmd: *const libc::c_char,
arg: *const libc::c_char,
flags: libc::c_int,
ts: f64,
) -> libc::c_int;
}
extern "C" {
#[doc = " Dump a graph into a human-readable string representation.\n\n @param graph the graph to dump\n @param options formatting options; currently ignored\n @return a string, or NULL in case of memory allocation failure;\n the string must be freed using av_free"]
pub fn avfilter_graph_dump(
graph: *mut AVFilterGraph,
options: *const libc::c_char,
) -> *mut libc::c_char;
}
extern "C" {
#[doc = " Request a frame on the oldest sink link.\n\n If the request returns AVERROR_EOF, try the next.\n\n Note that this function is not meant to be the sole scheduling mechanism\n of a filtergraph, only a convenience function to help drain a filtergraph\n in a balanced way under normal circumstances.\n\n Also note that AVERROR_EOF does not mean that frames did not arrive on\n some of the sinks during the process.\n When there are multiple sink links, in case the requested link\n returns an EOF, this may cause a filter to flush pending frames\n which are sent to another sink link, although unrequested.\n\n @return the return value of ff_request_frame(),\n or AVERROR_EOF if all links returned AVERROR_EOF"]
pub fn avfilter_graph_request_oldest(graph: *mut AVFilterGraph) -> libc::c_int;
}
extern "C" {
#[doc = " Get a frame with filtered data from sink and put it in frame.\n\n @param ctx pointer to a buffersink or abuffersink filter context.\n @param frame pointer to an allocated frame that will be filled with data.\n The data must be freed using av_frame_unref() / av_frame_free()\n @param flags a combination of AV_BUFFERSINK_FLAG_* flags\n\n @return >= 0 in for success, a negative AVERROR code for failure."]
pub fn av_buffersink_get_frame_flags(
ctx: *mut AVFilterContext,
frame: *mut AVFrame,
flags: libc::c_int,
) -> libc::c_int;
}
#[doc = " Deprecated and unused struct to use for initializing a buffersink context."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVBufferSinkParams {
#[doc = "< list of allowed pixel formats, terminated by AV_PIX_FMT_NONE"]
pub pixel_fmts: *const AVPixelFormat,
}
#[test]
fn bindgen_test_layout_AVBufferSinkParams() {
const UNINIT: ::std::mem::MaybeUninit<AVBufferSinkParams> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVBufferSinkParams>(),
8usize,
concat!("Size of: ", stringify!(AVBufferSinkParams))
);
assert_eq!(
::std::mem::align_of::<AVBufferSinkParams>(),
8usize,
concat!("Alignment of ", stringify!(AVBufferSinkParams))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pixel_fmts) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVBufferSinkParams),
"::",
stringify!(pixel_fmts)
)
);
}
extern "C" {
#[doc = " Create an AVBufferSinkParams structure.\n\n Must be freed with av_free()."]
pub fn av_buffersink_params_alloc() -> *mut AVBufferSinkParams;
}
#[doc = " Deprecated and unused struct to use for initializing an abuffersink context."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVABufferSinkParams {
#[doc = "< list of allowed sample formats, terminated by AV_SAMPLE_FMT_NONE"]
pub sample_fmts: *const AVSampleFormat,
#[doc = "< list of allowed channel layouts, terminated by -1"]
pub channel_layouts: *const i64,
#[doc = "< list of allowed channel counts, terminated by -1"]
pub channel_counts: *const libc::c_int,
#[doc = "< if not 0, accept any channel count or layout"]
pub all_channel_counts: libc::c_int,
#[doc = "< list of allowed sample rates, terminated by -1"]
pub sample_rates: *mut libc::c_int,
}
#[test]
fn bindgen_test_layout_AVABufferSinkParams() {
const UNINIT: ::std::mem::MaybeUninit<AVABufferSinkParams> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVABufferSinkParams>(),
40usize,
concat!("Size of: ", stringify!(AVABufferSinkParams))
);
assert_eq!(
::std::mem::align_of::<AVABufferSinkParams>(),
8usize,
concat!("Alignment of ", stringify!(AVABufferSinkParams))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sample_fmts) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVABufferSinkParams),
"::",
stringify!(sample_fmts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).channel_layouts) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVABufferSinkParams),
"::",
stringify!(channel_layouts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).channel_counts) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVABufferSinkParams),
"::",
stringify!(channel_counts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).all_channel_counts) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVABufferSinkParams),
"::",
stringify!(all_channel_counts)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sample_rates) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVABufferSinkParams),
"::",
stringify!(sample_rates)
)
);
}
extern "C" {
#[doc = " Create an AVABufferSinkParams structure.\n\n Must be freed with av_free()."]
pub fn av_abuffersink_params_alloc() -> *mut AVABufferSinkParams;
}
extern "C" {
#[doc = " Set the frame size for an audio buffer sink.\n\n All calls to av_buffersink_get_buffer_ref will return a buffer with\n exactly the specified number of samples, or AVERROR(EAGAIN) if there is\n not enough. The last buffer at EOF will be padded with 0."]
pub fn av_buffersink_set_frame_size(ctx: *mut AVFilterContext, frame_size: libc::c_uint);
}
extern "C" {
#[doc = " @defgroup lavfi_buffersink_accessors Buffer sink accessors\n Get the properties of the stream\n @{"]
pub fn av_buffersink_get_type(ctx: *const AVFilterContext) -> AVMediaType;
}
extern "C" {
pub fn av_buffersink_get_time_base(ctx: *const AVFilterContext) -> AVRational;
}
extern "C" {
pub fn av_buffersink_get_format(ctx: *const AVFilterContext) -> libc::c_int;
}
extern "C" {
pub fn av_buffersink_get_frame_rate(ctx: *const AVFilterContext) -> AVRational;
}
extern "C" {
pub fn av_buffersink_get_w(ctx: *const AVFilterContext) -> libc::c_int;
}
extern "C" {
pub fn av_buffersink_get_h(ctx: *const AVFilterContext) -> libc::c_int;
}
extern "C" {
pub fn av_buffersink_get_sample_aspect_ratio(ctx: *const AVFilterContext) -> AVRational;
}
extern "C" {
pub fn av_buffersink_get_channels(ctx: *const AVFilterContext) -> libc::c_int;
}
extern "C" {
pub fn av_buffersink_get_channel_layout(ctx: *const AVFilterContext) -> u64;
}
extern "C" {
pub fn av_buffersink_get_sample_rate(ctx: *const AVFilterContext) -> libc::c_int;
}
extern "C" {
pub fn av_buffersink_get_hw_frames_ctx(ctx: *const AVFilterContext) -> *mut AVBufferRef;
}
extern "C" {
#[doc = " Get a frame with filtered data from sink and put it in frame.\n\n @param ctx pointer to a context of a buffersink or abuffersink AVFilter.\n @param frame pointer to an allocated frame that will be filled with data.\n The data must be freed using av_frame_unref() / av_frame_free()\n\n @return\n - >= 0 if a frame was successfully returned.\n - AVERROR(EAGAIN) if no frames are available at this point; more\n input frames must be added to the filtergraph to get more output.\n - AVERROR_EOF if there will be no more output frames on this sink.\n - A different negative AVERROR code in other failure cases."]
pub fn av_buffersink_get_frame(ctx: *mut AVFilterContext, frame: *mut AVFrame) -> libc::c_int;
}
extern "C" {
#[doc = " Same as av_buffersink_get_frame(), but with the ability to specify the number\n of samples read. This function is less efficient than\n av_buffersink_get_frame(), because it copies the data around.\n\n @param ctx pointer to a context of the abuffersink AVFilter.\n @param frame pointer to an allocated frame that will be filled with data.\n The data must be freed using av_frame_unref() / av_frame_free()\n frame will contain exactly nb_samples audio samples, except at\n the end of stream, when it can contain less than nb_samples.\n\n @return The return codes have the same meaning as for\n av_buffersink_get_frame().\n\n @warning do not mix this function with av_buffersink_get_frame(). Use only one or\n the other with a single sink, not both."]
pub fn av_buffersink_get_samples(
ctx: *mut AVFilterContext,
frame: *mut AVFrame,
nb_samples: libc::c_int,
) -> libc::c_int;
}
pub const AV_BUFFERSRC_FLAG_NO_CHECK_FORMAT: _bindgen_ty_7 =
_bindgen_ty_7::AV_BUFFERSRC_FLAG_NO_CHECK_FORMAT;
pub const AV_BUFFERSRC_FLAG_PUSH: _bindgen_ty_7 = _bindgen_ty_7::AV_BUFFERSRC_FLAG_PUSH;
pub const AV_BUFFERSRC_FLAG_KEEP_REF: _bindgen_ty_7 = _bindgen_ty_7::AV_BUFFERSRC_FLAG_KEEP_REF;
#[repr(u32)]
#[doc = " @defgroup lavfi_buffersrc Buffer source API\n @ingroup lavfi\n @{"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _bindgen_ty_7 {
#[doc = " Do not check for format changes."]
AV_BUFFERSRC_FLAG_NO_CHECK_FORMAT = 1,
#[doc = " Immediately push the frame to the output."]
AV_BUFFERSRC_FLAG_PUSH = 4,
#[doc = " Keep a reference to the frame.\n If the frame if reference-counted, create a new reference; otherwise\n copy the frame data."]
AV_BUFFERSRC_FLAG_KEEP_REF = 8,
}
extern "C" {
#[doc = " Get the number of failed requests.\n\n A failed request is when the request_frame method is called while no\n frame is present in the buffer.\n The number is reset when a frame is added."]
pub fn av_buffersrc_get_nb_failed_requests(buffer_src: *mut AVFilterContext) -> libc::c_uint;
}
#[doc = " This structure contains the parameters describing the frames that will be\n passed to this filter.\n\n It should be allocated with av_buffersrc_parameters_alloc() and freed with\n av_free(). All the allocated fields in it remain owned by the caller."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVBufferSrcParameters {
#[doc = " video: the pixel format, value corresponds to enum AVPixelFormat\n audio: the sample format, value corresponds to enum AVSampleFormat"]
pub format: libc::c_int,
#[doc = " The timebase to be used for the timestamps on the input frames."]
pub time_base: AVRational,
#[doc = " Video only, the display dimensions of the input frames."]
pub width: libc::c_int,
#[doc = " Video only, the display dimensions of the input frames."]
pub height: libc::c_int,
#[doc = " Video only, the sample (pixel) aspect ratio."]
pub sample_aspect_ratio: AVRational,
#[doc = " Video only, the frame rate of the input video. This field must only be\n set to a non-zero value if input stream has a known constant framerate\n and should be left at its initial value if the framerate is variable or\n unknown."]
pub frame_rate: AVRational,
#[doc = " Video with a hwaccel pixel format only. This should be a reference to an\n AVHWFramesContext instance describing the input frames."]
pub hw_frames_ctx: *mut AVBufferRef,
#[doc = " Audio only, the audio sampling rate in samples per second."]
pub sample_rate: libc::c_int,
#[doc = " Audio only, the audio channel layout"]
pub channel_layout: u64,
}
#[test]
fn bindgen_test_layout_AVBufferSrcParameters() {
const UNINIT: ::std::mem::MaybeUninit<AVBufferSrcParameters> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVBufferSrcParameters>(),
64usize,
concat!("Size of: ", stringify!(AVBufferSrcParameters))
);
assert_eq!(
::std::mem::align_of::<AVBufferSrcParameters>(),
8usize,
concat!("Alignment of ", stringify!(AVBufferSrcParameters))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).format) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVBufferSrcParameters),
"::",
stringify!(format)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).time_base) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(AVBufferSrcParameters),
"::",
stringify!(time_base)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(AVBufferSrcParameters),
"::",
stringify!(width)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).height) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVBufferSrcParameters),
"::",
stringify!(height)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sample_aspect_ratio) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(AVBufferSrcParameters),
"::",
stringify!(sample_aspect_ratio)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).frame_rate) as usize - ptr as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(AVBufferSrcParameters),
"::",
stringify!(frame_rate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).hw_frames_ctx) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVBufferSrcParameters),
"::",
stringify!(hw_frames_ctx)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sample_rate) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(AVBufferSrcParameters),
"::",
stringify!(sample_rate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).channel_layout) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(AVBufferSrcParameters),
"::",
stringify!(channel_layout)
)
);
}
extern "C" {
#[doc = " Allocate a new AVBufferSrcParameters instance. It should be freed by the\n caller with av_free()."]
pub fn av_buffersrc_parameters_alloc() -> *mut AVBufferSrcParameters;
}
extern "C" {
#[doc = " Initialize the buffersrc or abuffersrc filter with the provided parameters.\n This function may be called multiple times, the later calls override the\n previous ones. Some of the parameters may also be set through AVOptions, then\n whatever method is used last takes precedence.\n\n @param ctx an instance of the buffersrc or abuffersrc filter\n @param param the stream parameters. The frames later passed to this filter\n must conform to those parameters. All the allocated fields in\n param remain owned by the caller, libavfilter will make internal\n copies or references when necessary.\n @return 0 on success, a negative AVERROR code on failure."]
pub fn av_buffersrc_parameters_set(
ctx: *mut AVFilterContext,
param: *mut AVBufferSrcParameters,
) -> libc::c_int;
}
extern "C" {
#[doc = " Add a frame to the buffer source.\n\n @param ctx an instance of the buffersrc filter\n @param frame frame to be added. If the frame is reference counted, this\n function will make a new reference to it. Otherwise the frame data will be\n copied.\n\n @return 0 on success, a negative AVERROR on error\n\n This function is equivalent to av_buffersrc_add_frame_flags() with the\n AV_BUFFERSRC_FLAG_KEEP_REF flag."]
pub fn av_buffersrc_write_frame(
ctx: *mut AVFilterContext,
frame: *const AVFrame,
) -> libc::c_int;
}
extern "C" {
#[doc = " Add a frame to the buffer source.\n\n @param ctx an instance of the buffersrc filter\n @param frame frame to be added. If the frame is reference counted, this\n function will take ownership of the reference(s) and reset the frame.\n Otherwise the frame data will be copied. If this function returns an error,\n the input frame is not touched.\n\n @return 0 on success, a negative AVERROR on error.\n\n @note the difference between this function and av_buffersrc_write_frame() is\n that av_buffersrc_write_frame() creates a new reference to the input frame,\n while this function takes ownership of the reference passed to it.\n\n This function is equivalent to av_buffersrc_add_frame_flags() without the\n AV_BUFFERSRC_FLAG_KEEP_REF flag."]
pub fn av_buffersrc_add_frame(ctx: *mut AVFilterContext, frame: *mut AVFrame) -> libc::c_int;
}
extern "C" {
#[doc = " Add a frame to the buffer source.\n\n By default, if the frame is reference-counted, this function will take\n ownership of the reference(s) and reset the frame. This can be controlled\n using the flags.\n\n If this function returns an error, the input frame is not touched.\n\n @param buffer_src pointer to a buffer source context\n @param frame a frame, or NULL to mark EOF\n @param flags a combination of AV_BUFFERSRC_FLAG_*\n @return >= 0 in case of success, a negative AVERROR code\n in case of failure"]
pub fn av_buffersrc_add_frame_flags(
buffer_src: *mut AVFilterContext,
frame: *mut AVFrame,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Close the buffer source after EOF.\n\n This is similar to passing NULL to av_buffersrc_add_frame_flags()\n except it takes the timestamp of the EOF, i.e. the timestamp of the end\n of the last frame."]
pub fn av_buffersrc_close(
ctx: *mut AVFilterContext,
pts: i64,
flags: libc::c_uint,
) -> libc::c_int;
}
pub type AVAdler = libc::c_ulong;
extern "C" {
#[doc = " Calculate the Adler32 checksum of a buffer.\n\n Passing the return value to a subsequent av_adler32_update() call\n allows the checksum of multiple buffers to be calculated as though\n they were concatenated.\n\n @param adler initial checksum value\n @param buf pointer to input buffer\n @param len size of input buffer\n @return updated checksum"]
pub fn av_adler32_update(adler: AVAdler, buf: *const u8, len: libc::c_uint) -> AVAdler;
}
extern "C" {
#[doc = " @defgroup lavu_aes AES\n @ingroup lavu_crypto\n @{"]
pub static av_aes_size: libc::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVAES {
_unused: [u8; 0],
}
extern "C" {
#[doc = " Allocate an AVAES context."]
pub fn av_aes_alloc() -> *mut AVAES;
}
extern "C" {
#[doc = " Initialize an AVAES context.\n @param key_bits 128, 192 or 256\n @param decrypt 0 for encryption, 1 for decryption"]
pub fn av_aes_init(
a: *mut AVAES,
key: *const u8,
key_bits: libc::c_int,
decrypt: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Encrypt or decrypt a buffer using a previously initialized context.\n @param count number of 16 byte blocks\n @param dst destination array, can be equal to src\n @param src source array, can be equal to dst\n @param iv initialization vector for CBC mode, if NULL then ECB will be used\n @param decrypt 0 for encryption, 1 for decryption"]
pub fn av_aes_crypt(
a: *mut AVAES,
dst: *mut u8,
src: *const u8,
count: libc::c_int,
iv: *mut u8,
decrypt: libc::c_int,
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVFifoBuffer {
pub buffer: *mut u8,
pub rptr: *mut u8,
pub wptr: *mut u8,
pub end: *mut u8,
pub rndx: u32,
pub wndx: u32,
}
#[test]
fn bindgen_test_layout_AVFifoBuffer() {
const UNINIT: ::std::mem::MaybeUninit<AVFifoBuffer> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVFifoBuffer>(),
40usize,
concat!("Size of: ", stringify!(AVFifoBuffer))
);
assert_eq!(
::std::mem::align_of::<AVFifoBuffer>(),
8usize,
concat!("Alignment of ", stringify!(AVFifoBuffer))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).buffer) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVFifoBuffer),
"::",
stringify!(buffer)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rptr) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVFifoBuffer),
"::",
stringify!(rptr)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).wptr) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVFifoBuffer),
"::",
stringify!(wptr)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).end) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVFifoBuffer),
"::",
stringify!(end)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rndx) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVFifoBuffer),
"::",
stringify!(rndx)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).wndx) as usize - ptr as usize },
36usize,
concat!(
"Offset of field: ",
stringify!(AVFifoBuffer),
"::",
stringify!(wndx)
)
);
}
extern "C" {
#[doc = " Initialize an AVFifoBuffer.\n @param size of FIFO\n @return AVFifoBuffer or NULL in case of memory allocation failure"]
pub fn av_fifo_alloc(size: libc::c_uint) -> *mut AVFifoBuffer;
}
extern "C" {
#[doc = " Initialize an AVFifoBuffer.\n @param nmemb number of elements\n @param size size of the single element\n @return AVFifoBuffer or NULL in case of memory allocation failure"]
pub fn av_fifo_alloc_array(nmemb: usize, size: usize) -> *mut AVFifoBuffer;
}
extern "C" {
#[doc = " Free an AVFifoBuffer.\n @param f AVFifoBuffer to free"]
pub fn av_fifo_free(f: *mut AVFifoBuffer);
}
extern "C" {
#[doc = " Free an AVFifoBuffer and reset pointer to NULL.\n @param f AVFifoBuffer to free"]
pub fn av_fifo_freep(f: *mut *mut AVFifoBuffer);
}
extern "C" {
#[doc = " Reset the AVFifoBuffer to the state right after av_fifo_alloc, in particular it is emptied.\n @param f AVFifoBuffer to reset"]
pub fn av_fifo_reset(f: *mut AVFifoBuffer);
}
extern "C" {
#[doc = " Return the amount of data in bytes in the AVFifoBuffer, that is the\n amount of data you can read from it.\n @param f AVFifoBuffer to read from\n @return size"]
pub fn av_fifo_size(f: *const AVFifoBuffer) -> libc::c_int;
}
extern "C" {
#[doc = " Return the amount of space in bytes in the AVFifoBuffer, that is the\n amount of data you can write into it.\n @param f AVFifoBuffer to write into\n @return size"]
pub fn av_fifo_space(f: *const AVFifoBuffer) -> libc::c_int;
}
extern "C" {
#[doc = " Feed data at specific position from an AVFifoBuffer to a user-supplied callback.\n Similar as av_fifo_gereric_read but without discarding data.\n @param f AVFifoBuffer to read from\n @param offset offset from current read position\n @param buf_size number of bytes to read\n @param func generic read function\n @param dest data destination"]
pub fn av_fifo_generic_peek_at(
f: *mut AVFifoBuffer,
dest: *mut libc::c_void,
offset: libc::c_int,
buf_size: libc::c_int,
func: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut libc::c_void,
arg2: *mut libc::c_void,
arg3: libc::c_int,
),
>,
) -> libc::c_int;
}
extern "C" {
#[doc = " Feed data from an AVFifoBuffer to a user-supplied callback.\n Similar as av_fifo_gereric_read but without discarding data.\n @param f AVFifoBuffer to read from\n @param buf_size number of bytes to read\n @param func generic read function\n @param dest data destination"]
pub fn av_fifo_generic_peek(
f: *mut AVFifoBuffer,
dest: *mut libc::c_void,
buf_size: libc::c_int,
func: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut libc::c_void,
arg2: *mut libc::c_void,
arg3: libc::c_int,
),
>,
) -> libc::c_int;
}
extern "C" {
#[doc = " Feed data from an AVFifoBuffer to a user-supplied callback.\n @param f AVFifoBuffer to read from\n @param buf_size number of bytes to read\n @param func generic read function\n @param dest data destination"]
pub fn av_fifo_generic_read(
f: *mut AVFifoBuffer,
dest: *mut libc::c_void,
buf_size: libc::c_int,
func: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut libc::c_void,
arg2: *mut libc::c_void,
arg3: libc::c_int,
),
>,
) -> libc::c_int;
}
extern "C" {
#[doc = " Feed data from a user-supplied callback to an AVFifoBuffer.\n @param f AVFifoBuffer to write to\n @param src data source; non-const since it may be used as a\n modifiable context by the function defined in func\n @param size number of bytes to write\n @param func generic write function; the first parameter is src,\n the second is dest_buf, the third is dest_buf_size.\n func must return the number of bytes written to dest_buf, or <= 0 to\n indicate no more data available to write.\n If func is NULL, src is interpreted as a simple byte array for source data.\n @return the number of bytes written to the FIFO"]
pub fn av_fifo_generic_write(
f: *mut AVFifoBuffer,
src: *mut libc::c_void,
size: libc::c_int,
func: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut libc::c_void,
arg2: *mut libc::c_void,
arg3: libc::c_int,
) -> libc::c_int,
>,
) -> libc::c_int;
}
extern "C" {
#[doc = " Resize an AVFifoBuffer.\n In case of reallocation failure, the old FIFO is kept unchanged.\n\n @param f AVFifoBuffer to resize\n @param size new AVFifoBuffer size in bytes\n @return <0 for failure, >=0 otherwise"]
pub fn av_fifo_realloc2(f: *mut AVFifoBuffer, size: libc::c_uint) -> libc::c_int;
}
extern "C" {
#[doc = " Enlarge an AVFifoBuffer.\n In case of reallocation failure, the old FIFO is kept unchanged.\n The new fifo size may be larger than the requested size.\n\n @param f AVFifoBuffer to resize\n @param additional_space the amount of space in bytes to allocate in addition to av_fifo_size()\n @return <0 for failure, >=0 otherwise"]
pub fn av_fifo_grow(f: *mut AVFifoBuffer, additional_space: libc::c_uint) -> libc::c_int;
}
extern "C" {
#[doc = " Read and discard the specified amount of data from an AVFifoBuffer.\n @param f AVFifoBuffer to read from\n @param size amount of data to read in bytes"]
pub fn av_fifo_drain(f: *mut AVFifoBuffer, size: libc::c_int);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVAudioFifo {
_unused: [u8; 0],
}
extern "C" {
#[doc = " Free an AVAudioFifo.\n\n @param af AVAudioFifo to free"]
pub fn av_audio_fifo_free(af: *mut AVAudioFifo);
}
extern "C" {
#[doc = " Allocate an AVAudioFifo.\n\n @param sample_fmt sample format\n @param channels number of channels\n @param nb_samples initial allocation size, in samples\n @return newly allocated AVAudioFifo, or NULL on error"]
pub fn av_audio_fifo_alloc(
sample_fmt: AVSampleFormat,
channels: libc::c_int,
nb_samples: libc::c_int,
) -> *mut AVAudioFifo;
}
extern "C" {
#[doc = " Reallocate an AVAudioFifo.\n\n @param af AVAudioFifo to reallocate\n @param nb_samples new allocation size, in samples\n @return 0 if OK, or negative AVERROR code on failure"]
pub fn av_audio_fifo_realloc(af: *mut AVAudioFifo, nb_samples: libc::c_int) -> libc::c_int;
}
extern "C" {
#[doc = " Write data to an AVAudioFifo.\n\n The AVAudioFifo will be reallocated automatically if the available space\n is less than nb_samples.\n\n @see enum AVSampleFormat\n The documentation for AVSampleFormat describes the data layout.\n\n @param af AVAudioFifo to write to\n @param data audio data plane pointers\n @param nb_samples number of samples to write\n @return number of samples actually written, or negative AVERROR\n code on failure. If successful, the number of samples\n actually written will always be nb_samples."]
pub fn av_audio_fifo_write(
af: *mut AVAudioFifo,
data: *mut *mut libc::c_void,
nb_samples: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Peek data from an AVAudioFifo.\n\n @see enum AVSampleFormat\n The documentation for AVSampleFormat describes the data layout.\n\n @param af AVAudioFifo to read from\n @param data audio data plane pointers\n @param nb_samples number of samples to peek\n @return number of samples actually peek, or negative AVERROR code\n on failure. The number of samples actually peek will not\n be greater than nb_samples, and will only be less than\n nb_samples if av_audio_fifo_size is less than nb_samples."]
pub fn av_audio_fifo_peek(
af: *mut AVAudioFifo,
data: *mut *mut libc::c_void,
nb_samples: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Peek data from an AVAudioFifo.\n\n @see enum AVSampleFormat\n The documentation for AVSampleFormat describes the data layout.\n\n @param af AVAudioFifo to read from\n @param data audio data plane pointers\n @param nb_samples number of samples to peek\n @param offset offset from current read position\n @return number of samples actually peek, or negative AVERROR code\n on failure. The number of samples actually peek will not\n be greater than nb_samples, and will only be less than\n nb_samples if av_audio_fifo_size is less than nb_samples."]
pub fn av_audio_fifo_peek_at(
af: *mut AVAudioFifo,
data: *mut *mut libc::c_void,
nb_samples: libc::c_int,
offset: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Read data from an AVAudioFifo.\n\n @see enum AVSampleFormat\n The documentation for AVSampleFormat describes the data layout.\n\n @param af AVAudioFifo to read from\n @param data audio data plane pointers\n @param nb_samples number of samples to read\n @return number of samples actually read, or negative AVERROR code\n on failure. The number of samples actually read will not\n be greater than nb_samples, and will only be less than\n nb_samples if av_audio_fifo_size is less than nb_samples."]
pub fn av_audio_fifo_read(
af: *mut AVAudioFifo,
data: *mut *mut libc::c_void,
nb_samples: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Drain data from an AVAudioFifo.\n\n Removes the data without reading it.\n\n @param af AVAudioFifo to drain\n @param nb_samples number of samples to drain\n @return 0 if OK, or negative AVERROR code on failure"]
pub fn av_audio_fifo_drain(af: *mut AVAudioFifo, nb_samples: libc::c_int) -> libc::c_int;
}
extern "C" {
#[doc = " Reset the AVAudioFifo buffer.\n\n This empties all data in the buffer.\n\n @param af AVAudioFifo to reset"]
pub fn av_audio_fifo_reset(af: *mut AVAudioFifo);
}
extern "C" {
#[doc = " Get the current number of samples in the AVAudioFifo available for reading.\n\n @param af the AVAudioFifo to query\n @return number of samples available for reading"]
pub fn av_audio_fifo_size(af: *mut AVAudioFifo) -> libc::c_int;
}
extern "C" {
#[doc = " Get the current number of samples in the AVAudioFifo available for writing.\n\n @param af the AVAudioFifo to query\n @return number of samples available for writing"]
pub fn av_audio_fifo_space(af: *mut AVAudioFifo) -> libc::c_int;
}
extern "C" {
#[doc = " Decode a base64-encoded string.\n\n @param out buffer for decoded data\n @param in null-terminated input string\n @param out_size size in bytes of the out buffer, must be at\n least 3/4 of the length of in, that is AV_BASE64_DECODE_SIZE(strlen(in))\n @return number of bytes written, or a negative value in case of\n invalid input"]
pub fn av_base64_decode(
out: *mut u8,
in_: *const libc::c_char,
out_size: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Encode data to base64 and null-terminate.\n\n @param out buffer for encoded data\n @param out_size size in bytes of the out buffer (including the\n null terminator), must be at least AV_BASE64_SIZE(in_size)\n @param in input buffer containing the data to encode\n @param in_size size in bytes of the in buffer\n @return out or NULL in case of error"]
pub fn av_base64_encode(
out: *mut libc::c_char,
out_size: libc::c_int,
in_: *const u8,
in_size: libc::c_int,
) -> *mut libc::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVBlowfish {
pub p: [u32; 18usize],
pub s: [[u32; 256usize]; 4usize],
}
#[test]
fn bindgen_test_layout_AVBlowfish() {
const UNINIT: ::std::mem::MaybeUninit<AVBlowfish> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVBlowfish>(),
4168usize,
concat!("Size of: ", stringify!(AVBlowfish))
);
assert_eq!(
::std::mem::align_of::<AVBlowfish>(),
4usize,
concat!("Alignment of ", stringify!(AVBlowfish))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVBlowfish),
"::",
stringify!(p)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(AVBlowfish),
"::",
stringify!(s)
)
);
}
extern "C" {
#[doc = " Allocate an AVBlowfish context."]
pub fn av_blowfish_alloc() -> *mut AVBlowfish;
}
extern "C" {
#[doc = " Initialize an AVBlowfish context.\n\n @param ctx an AVBlowfish context\n @param key a key\n @param key_len length of the key"]
pub fn av_blowfish_init(ctx: *mut AVBlowfish, key: *const u8, key_len: libc::c_int);
}
extern "C" {
#[doc = " Encrypt or decrypt a buffer using a previously initialized context.\n\n @param ctx an AVBlowfish context\n @param xl left four bytes halves of input to be encrypted\n @param xr right four bytes halves of input to be encrypted\n @param decrypt 0 for encryption, 1 for decryption"]
pub fn av_blowfish_crypt_ecb(
ctx: *mut AVBlowfish,
xl: *mut u32,
xr: *mut u32,
decrypt: libc::c_int,
);
}
extern "C" {
#[doc = " Encrypt or decrypt a buffer using a previously initialized context.\n\n @param ctx an AVBlowfish context\n @param dst destination array, can be equal to src\n @param src source array, can be equal to dst\n @param count number of 8 byte blocks\n @param iv initialization vector for CBC mode, if NULL ECB will be used\n @param decrypt 0 for encryption, 1 for decryption"]
pub fn av_blowfish_crypt(
ctx: *mut AVBlowfish,
dst: *mut u8,
src: *const u8,
count: libc::c_int,
iv: *mut u8,
decrypt: libc::c_int,
);
}
extern "C" {
#[doc = " Return non-zero if pfx is a prefix of str. If it is, *ptr is set to\n the address of the first character in str after the prefix.\n\n @param str input string\n @param pfx prefix to test\n @param ptr updated if the prefix is matched inside str\n @return non-zero if the prefix matches, zero otherwise"]
pub fn av_strstart(
str_: *const libc::c_char,
pfx: *const libc::c_char,
ptr: *mut *const libc::c_char,
) -> libc::c_int;
}
extern "C" {
#[doc = " Return non-zero if pfx is a prefix of str independent of case. If\n it is, *ptr is set to the address of the first character in str\n after the prefix.\n\n @param str input string\n @param pfx prefix to test\n @param ptr updated if the prefix is matched inside str\n @return non-zero if the prefix matches, zero otherwise"]
pub fn av_stristart(
str_: *const libc::c_char,
pfx: *const libc::c_char,
ptr: *mut *const libc::c_char,
) -> libc::c_int;
}
extern "C" {
#[doc = " Locate the first case-independent occurrence in the string haystack\n of the string needle. A zero-length string needle is considered to\n match at the start of haystack.\n\n This function is a case-insensitive version of the standard strstr().\n\n @param haystack string to search in\n @param needle string to search for\n @return pointer to the located match within haystack\n or a null pointer if no match"]
pub fn av_stristr(
haystack: *const libc::c_char,
needle: *const libc::c_char,
) -> *mut libc::c_char;
}
extern "C" {
#[doc = " Locate the first occurrence of the string needle in the string haystack\n where not more than hay_length characters are searched. A zero-length\n string needle is considered to match at the start of haystack.\n\n This function is a length-limited version of the standard strstr().\n\n @param haystack string to search in\n @param needle string to search for\n @param hay_length length of string to search in\n @return pointer to the located match within haystack\n or a null pointer if no match"]
pub fn av_strnstr(
haystack: *const libc::c_char,
needle: *const libc::c_char,
hay_length: usize,
) -> *mut libc::c_char;
}
extern "C" {
#[doc = " Copy the string src to dst, but no more than size - 1 bytes, and\n null-terminate dst.\n\n This function is the same as BSD strlcpy().\n\n @param dst destination buffer\n @param src source string\n @param size size of destination buffer\n @return the length of src\n\n @warning since the return value is the length of src, src absolutely\n _must_ be a properly 0-terminated string, otherwise this will read beyond\n the end of the buffer and possibly crash."]
pub fn av_strlcpy(dst: *mut libc::c_char, src: *const libc::c_char, size: usize) -> usize;
}
extern "C" {
#[doc = " Append the string src to the string dst, but to a total length of\n no more than size - 1 bytes, and null-terminate dst.\n\n This function is similar to BSD strlcat(), but differs when\n size <= strlen(dst).\n\n @param dst destination buffer\n @param src source string\n @param size size of destination buffer\n @return the total length of src and dst\n\n @warning since the return value use the length of src and dst, these\n absolutely _must_ be a properly 0-terminated strings, otherwise this\n will read beyond the end of the buffer and possibly crash."]
pub fn av_strlcat(dst: *mut libc::c_char, src: *const libc::c_char, size: usize) -> usize;
}
extern "C" {
#[doc = " Append output to a string, according to a format. Never write out of\n the destination buffer, and always put a terminating 0 within\n the buffer.\n @param dst destination buffer (string to which the output is\n appended)\n @param size total size of the destination buffer\n @param fmt printf-compatible format string, specifying how the\n following parameters are used\n @return the length of the string that would have been generated\n if enough space had been available"]
pub fn av_strlcatf(dst: *mut libc::c_char, size: usize, fmt: *const libc::c_char, ...)
-> usize;
}
extern "C" {
#[doc = " Print arguments following specified format into a large enough auto\n allocated buffer. It is similar to GNU asprintf().\n @param fmt printf-compatible format string, specifying how the\n following parameters are used.\n @return the allocated string\n @note You have to free the string yourself with av_free()."]
pub fn av_asprintf(fmt: *const libc::c_char, ...) -> *mut libc::c_char;
}
extern "C" {
#[doc = " Convert a number to an av_malloced string.\n @deprecated use av_asprintf() with \"%f\" or a more specific format"]
pub fn av_d2str(d: f64) -> *mut libc::c_char;
}
extern "C" {
#[doc = " Unescape the given string until a non escaped terminating char,\n and return the token corresponding to the unescaped string.\n\n The normal \\ and ' escaping is supported. Leading and trailing\n whitespaces are removed, unless they are escaped with '\\' or are\n enclosed between ''.\n\n @param buf the buffer to parse, buf will be updated to point to the\n terminating char\n @param term a 0-terminated list of terminating chars\n @return the malloced unescaped string, which must be av_freed by\n the user, NULL in case of allocation failure"]
pub fn av_get_token(
buf: *mut *const libc::c_char,
term: *const libc::c_char,
) -> *mut libc::c_char;
}
extern "C" {
#[doc = " Split the string into several tokens which can be accessed by\n successive calls to av_strtok().\n\n A token is defined as a sequence of characters not belonging to the\n set specified in delim.\n\n On the first call to av_strtok(), s should point to the string to\n parse, and the value of saveptr is ignored. In subsequent calls, s\n should be NULL, and saveptr should be unchanged since the previous\n call.\n\n This function is similar to strtok_r() defined in POSIX.1.\n\n @param s the string to parse, may be NULL\n @param delim 0-terminated list of token delimiters, must be non-NULL\n @param saveptr user-provided pointer which points to stored\n information necessary for av_strtok() to continue scanning the same\n string. saveptr is updated to point to the next character after the\n first delimiter found, or to NULL if the string was terminated\n @return the found token, or NULL when no token is found"]
pub fn av_strtok(
s: *mut libc::c_char,
delim: *const libc::c_char,
saveptr: *mut *mut libc::c_char,
) -> *mut libc::c_char;
}
extern "C" {
#[doc = " Locale-independent case-insensitive compare.\n @note This means only ASCII-range characters are case-insensitive"]
pub fn av_strcasecmp(a: *const libc::c_char, b: *const libc::c_char) -> libc::c_int;
}
extern "C" {
#[doc = " Locale-independent case-insensitive compare.\n @note This means only ASCII-range characters are case-insensitive"]
pub fn av_strncasecmp(a: *const libc::c_char, b: *const libc::c_char, n: usize) -> libc::c_int;
}
extern "C" {
#[doc = " Locale-independent strings replace.\n @note This means only ASCII-range characters are replace"]
pub fn av_strireplace(
str_: *const libc::c_char,
from: *const libc::c_char,
to: *const libc::c_char,
) -> *mut libc::c_char;
}
extern "C" {
#[doc = " Thread safe basename.\n @param path the string to parse, on DOS both \\ and / are considered separators.\n @return pointer to the basename substring.\n If path does not contain a slash, the function returns a copy of path.\n If path is a NULL pointer or points to an empty string, a pointer\n to a string \".\" is returned."]
pub fn av_basename(path: *const libc::c_char) -> *const libc::c_char;
}
extern "C" {
#[doc = " Thread safe dirname.\n @param path the string to parse, on DOS both \\ and / are considered separators.\n @return A pointer to a string that's the parent directory of path.\n If path is a NULL pointer or points to an empty string, a pointer\n to a string \".\" is returned.\n @note the function may modify the contents of the path, so copies should be passed."]
pub fn av_dirname(path: *mut libc::c_char) -> *const libc::c_char;
}
extern "C" {
#[doc = " Match instances of a name in a comma-separated list of names.\n List entries are checked from the start to the end of the names list,\n the first match ends further processing. If an entry prefixed with '-'\n matches, then 0 is returned. The \"ALL\" list entry is considered to\n match all names.\n\n @param name Name to look for.\n @param names List of names.\n @return 1 on match, 0 otherwise."]
pub fn av_match_name(name: *const libc::c_char, names: *const libc::c_char) -> libc::c_int;
}
extern "C" {
#[doc = " Append path component to the existing path.\n Path separator '/' is placed between when needed.\n Resulting string have to be freed with av_free().\n @param path base path\n @param component component to be appended\n @return new path or NULL on error."]
pub fn av_append_path_component(
path: *const libc::c_char,
component: *const libc::c_char,
) -> *mut libc::c_char;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVEscapeMode {
#[doc = "< Use auto-selected escaping mode."]
AV_ESCAPE_MODE_AUTO = 0,
#[doc = "< Use backslash escaping."]
AV_ESCAPE_MODE_BACKSLASH = 1,
#[doc = "< Use single-quote escaping."]
AV_ESCAPE_MODE_QUOTE = 2,
#[doc = "< Use XML non-markup character data escaping."]
AV_ESCAPE_MODE_XML = 3,
}
extern "C" {
#[doc = " Escape string in src, and put the escaped string in an allocated\n string in *dst, which must be freed with av_free().\n\n @param dst pointer where an allocated string is put\n @param src string to escape, must be non-NULL\n @param special_chars string containing the special characters which\n need to be escaped, can be NULL\n @param mode escape mode to employ, see AV_ESCAPE_MODE_* macros.\n Any unknown value for mode will be considered equivalent to\n AV_ESCAPE_MODE_BACKSLASH, but this behaviour can change without\n notice.\n @param flags flags which control how to escape, see AV_ESCAPE_FLAG_ macros\n @return the length of the allocated string, or a negative error code in case of error\n @see av_bprint_escape()"]
pub fn av_escape(
dst: *mut *mut libc::c_char,
src: *const libc::c_char,
special_chars: *const libc::c_char,
mode: AVEscapeMode,
flags: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Read and decode a single UTF-8 code point (character) from the\n buffer in *buf, and update *buf to point to the next byte to\n decode.\n\n In case of an invalid byte sequence, the pointer will be updated to\n the next byte after the invalid sequence and the function will\n return an error code.\n\n Depending on the specified flags, the function will also fail in\n case the decoded code point does not belong to a valid range.\n\n @note For speed-relevant code a carefully implemented use of\n GET_UTF8() may be preferred.\n\n @param codep pointer used to return the parsed code in case of success.\n The value in *codep is set even in case the range check fails.\n @param bufp pointer to the address the first byte of the sequence\n to decode, updated by the function to point to the\n byte next after the decoded sequence\n @param buf_end pointer to the end of the buffer, points to the next\n byte past the last in the buffer. This is used to\n avoid buffer overreads (in case of an unfinished\n UTF-8 sequence towards the end of the buffer).\n @param flags a collection of AV_UTF8_FLAG_* flags\n @return >= 0 in case a sequence was successfully read, a negative\n value in case of invalid sequence"]
pub fn av_utf8_decode(
codep: *mut i32,
bufp: *mut *const u8,
buf_end: *const u8,
flags: libc::c_uint,
) -> libc::c_int;
}
extern "C" {
#[doc = " Check if a name is in a list.\n @returns 0 if not found, or the 1 based index where it has been found in the\n list."]
pub fn av_match_list(
name: *const libc::c_char,
list: *const libc::c_char,
separator: libc::c_char,
) -> libc::c_int;
}
extern "C" {
#[doc = " See libc sscanf manual for more information.\n Locale-independent sscanf implementation."]
pub fn av_sscanf(string: *const libc::c_char, format: *const libc::c_char, ...) -> libc::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct ff_pad_helper_AVBPrint {
pub str_: *mut libc::c_char,
pub len: libc::c_uint,
pub size: libc::c_uint,
pub size_max: libc::c_uint,
pub reserved_internal_buffer: [libc::c_char; 1usize],
}
#[test]
fn bindgen_test_layout_ff_pad_helper_AVBPrint() {
const UNINIT: ::std::mem::MaybeUninit<ff_pad_helper_AVBPrint> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<ff_pad_helper_AVBPrint>(),
24usize,
concat!("Size of: ", stringify!(ff_pad_helper_AVBPrint))
);
assert_eq!(
::std::mem::align_of::<ff_pad_helper_AVBPrint>(),
8usize,
concat!("Alignment of ", stringify!(ff_pad_helper_AVBPrint))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).str_) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(ff_pad_helper_AVBPrint),
"::",
stringify!(str_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(ff_pad_helper_AVBPrint),
"::",
stringify!(len)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(ff_pad_helper_AVBPrint),
"::",
stringify!(size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).size_max) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(ff_pad_helper_AVBPrint),
"::",
stringify!(size_max)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).reserved_internal_buffer) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(ff_pad_helper_AVBPrint),
"::",
stringify!(reserved_internal_buffer)
)
);
}
#[doc = " Buffer to print data progressively\n\n The string buffer grows as necessary and is always 0-terminated.\n The content of the string is never accessed, and thus is\n encoding-agnostic and can even hold binary data.\n\n Small buffers are kept in the structure itself, and thus require no\n memory allocation at all (unless the contents of the buffer is needed\n after the structure goes out of scope). This is almost as lightweight as\n declaring a local \"char buf[512]\".\n\n The length of the string can go beyond the allocated size: the buffer is\n then truncated, but the functions still keep account of the actual total\n length.\n\n In other words, buf->len can be greater than buf->size and records the\n total length of what would have been to the buffer if there had been\n enough memory.\n\n Append operations do not need to be tested for failure: if a memory\n allocation fails, data stop being appended to the buffer, but the length\n is still updated. This situation can be tested with\n av_bprint_is_complete().\n\n The size_max field determines several possible behaviours:\n\n size_max = -1 (= UINT_MAX) or any large value will let the buffer be\n reallocated as necessary, with an amortized linear cost.\n\n size_max = 0 prevents writing anything to the buffer: only the total\n length is computed. The write operations can then possibly be repeated in\n a buffer with exactly the necessary size\n (using size_init = size_max = len + 1).\n\n size_max = 1 is automatically replaced by the exact size available in the\n structure itself, thus ensuring no dynamic memory allocation. The\n internal buffer is large enough to hold a reasonable paragraph of text,\n such as the current paragraph."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVBPrint {
pub str_: *mut libc::c_char,
pub len: libc::c_uint,
pub size: libc::c_uint,
pub size_max: libc::c_uint,
pub reserved_internal_buffer: [libc::c_char; 1usize],
pub reserved_padding: [libc::c_char; 1000usize],
}
#[test]
fn bindgen_test_layout_AVBPrint() {
const UNINIT: ::std::mem::MaybeUninit<AVBPrint> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVBPrint>(),
1024usize,
concat!("Size of: ", stringify!(AVBPrint))
);
assert_eq!(
::std::mem::align_of::<AVBPrint>(),
8usize,
concat!("Alignment of ", stringify!(AVBPrint))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).str_) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVBPrint),
"::",
stringify!(str_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVBPrint),
"::",
stringify!(len)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(AVBPrint),
"::",
stringify!(size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).size_max) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVBPrint),
"::",
stringify!(size_max)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).reserved_internal_buffer) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(AVBPrint),
"::",
stringify!(reserved_internal_buffer)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).reserved_padding) as usize - ptr as usize },
21usize,
concat!(
"Offset of field: ",
stringify!(AVBPrint),
"::",
stringify!(reserved_padding)
)
);
}
extern "C" {
#[doc = " Init a print buffer.\n\n @param buf buffer to init\n @param size_init initial size (including the final 0)\n @param size_max maximum size;\n 0 means do not write anything, just count the length;\n 1 is replaced by the maximum value for automatic storage;\n any large value means that the internal buffer will be\n reallocated as needed up to that limit; -1 is converted to\n UINT_MAX, the largest limit possible.\n Check also AV_BPRINT_SIZE_* macros."]
pub fn av_bprint_init(buf: *mut AVBPrint, size_init: libc::c_uint, size_max: libc::c_uint);
}
extern "C" {
#[doc = " Init a print buffer using a pre-existing buffer.\n\n The buffer will not be reallocated.\n\n @param buf buffer structure to init\n @param buffer byte buffer to use for the string data\n @param size size of buffer"]
pub fn av_bprint_init_for_buffer(
buf: *mut AVBPrint,
buffer: *mut libc::c_char,
size: libc::c_uint,
);
}
extern "C" {
#[doc = " Append a formatted string to a print buffer."]
pub fn av_bprintf(buf: *mut AVBPrint, fmt: *const libc::c_char, ...);
}
extern "C" {
#[doc = " Append a formatted string to a print buffer."]
pub fn av_vbprintf(buf: *mut AVBPrint, fmt: *const libc::c_char, vl_arg: *mut __va_list_tag);
}
extern "C" {
#[doc = " Append char c n times to a print buffer."]
pub fn av_bprint_chars(buf: *mut AVBPrint, c: libc::c_char, n: libc::c_uint);
}
extern "C" {
#[doc = " Append data to a print buffer.\n\n param buf bprint buffer to use\n param data pointer to data\n param size size of data"]
pub fn av_bprint_append_data(buf: *mut AVBPrint, data: *const libc::c_char, size: libc::c_uint);
}
extern "C" {
#[doc = " Append a formatted date and time to a print buffer.\n\n param buf bprint buffer to use\n param fmt date and time format string, see strftime()\n param tm broken-down time structure to translate\n\n @note due to poor design of the standard strftime function, it may\n produce poor results if the format string expands to a very long text and\n the bprint buffer is near the limit stated by the size_max option."]
pub fn av_bprint_strftime(buf: *mut AVBPrint, fmt: *const libc::c_char, tm: *const tm);
}
extern "C" {
#[doc = " Allocate bytes in the buffer for external use.\n\n @param[in] buf buffer structure\n @param[in] size required size\n @param[out] mem pointer to the memory area\n @param[out] actual_size size of the memory area after allocation;\n can be larger or smaller than size"]
pub fn av_bprint_get_buffer(
buf: *mut AVBPrint,
size: libc::c_uint,
mem: *mut *mut libc::c_uchar,
actual_size: *mut libc::c_uint,
);
}
extern "C" {
#[doc = " Reset the string to \"\" but keep internal allocated data."]
pub fn av_bprint_clear(buf: *mut AVBPrint);
}
extern "C" {
#[doc = " Finalize a print buffer.\n\n The print buffer can no longer be used afterwards,\n but the len and size fields are still valid.\n\n @arg[out] ret_str if not NULL, used to return a permanent copy of the\n buffer contents, or NULL if memory allocation fails;\n if NULL, the buffer is discarded and freed\n @return 0 for success or error code (probably AVERROR(ENOMEM))"]
pub fn av_bprint_finalize(buf: *mut AVBPrint, ret_str: *mut *mut libc::c_char) -> libc::c_int;
}
extern "C" {
#[doc = " Escape the content in src and append it to dstbuf.\n\n @param dstbuf already inited destination bprint buffer\n @param src string containing the text to escape\n @param special_chars string containing the special characters which\n need to be escaped, can be NULL\n @param mode escape mode to employ, see AV_ESCAPE_MODE_* macros.\n Any unknown value for mode will be considered equivalent to\n AV_ESCAPE_MODE_BACKSLASH, but this behaviour can change without\n notice.\n @param flags flags which control how to escape, see AV_ESCAPE_FLAG_* macros"]
pub fn av_bprint_escape(
dstbuf: *mut AVBPrint,
src: *const libc::c_char,
special_chars: *const libc::c_char,
mode: AVEscapeMode,
flags: libc::c_int,
);
}
extern "C" {
#[doc = " @file\n @brief Public header for libavutil CAMELLIA algorithm\n @defgroup lavu_camellia CAMELLIA\n @ingroup lavu_crypto\n @{"]
pub static av_camellia_size: libc::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVCAMELLIA {
_unused: [u8; 0],
}
extern "C" {
#[doc = " Allocate an AVCAMELLIA context\n To free the struct: av_free(ptr)"]
pub fn av_camellia_alloc() -> *mut AVCAMELLIA;
}
extern "C" {
#[doc = " Initialize an AVCAMELLIA context.\n\n @param ctx an AVCAMELLIA context\n @param key a key of 16, 24, 32 bytes used for encryption/decryption\n @param key_bits number of keybits: possible are 128, 192, 256"]
pub fn av_camellia_init(
ctx: *mut AVCAMELLIA,
key: *const u8,
key_bits: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Encrypt or decrypt a buffer using a previously initialized context\n\n @param ctx an AVCAMELLIA context\n @param dst destination array, can be equal to src\n @param src source array, can be equal to dst\n @param count number of 16 byte blocks\n @paran iv initialization vector for CBC mode, NULL for ECB mode\n @param decrypt 0 for encryption, 1 for decryption"]
pub fn av_camellia_crypt(
ctx: *mut AVCAMELLIA,
dst: *mut u8,
src: *const u8,
count: libc::c_int,
iv: *mut u8,
decrypt: libc::c_int,
);
}
extern "C" {
#[doc = " @file\n @brief Public header for libavutil CAST5 algorithm\n @defgroup lavu_cast5 CAST5\n @ingroup lavu_crypto\n @{"]
pub static av_cast5_size: libc::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVCAST5 {
_unused: [u8; 0],
}
extern "C" {
#[doc = " Allocate an AVCAST5 context\n To free the struct: av_free(ptr)"]
pub fn av_cast5_alloc() -> *mut AVCAST5;
}
extern "C" {
#[doc = " Initialize an AVCAST5 context.\n\n @param ctx an AVCAST5 context\n @param key a key of 5,6,...16 bytes used for encryption/decryption\n @param key_bits number of keybits: possible are 40,48,...,128\n @return 0 on success, less than 0 on failure"]
pub fn av_cast5_init(ctx: *mut AVCAST5, key: *const u8, key_bits: libc::c_int) -> libc::c_int;
}
extern "C" {
#[doc = " Encrypt or decrypt a buffer using a previously initialized context, ECB mode only\n\n @param ctx an AVCAST5 context\n @param dst destination array, can be equal to src\n @param src source array, can be equal to dst\n @param count number of 8 byte blocks\n @param decrypt 0 for encryption, 1 for decryption"]
pub fn av_cast5_crypt(
ctx: *mut AVCAST5,
dst: *mut u8,
src: *const u8,
count: libc::c_int,
decrypt: libc::c_int,
);
}
extern "C" {
#[doc = " Encrypt or decrypt a buffer using a previously initialized context\n\n @param ctx an AVCAST5 context\n @param dst destination array, can be equal to src\n @param src source array, can be equal to dst\n @param count number of 8 byte blocks\n @param iv initialization vector for CBC mode, NULL for ECB mode\n @param decrypt 0 for encryption, 1 for decryption"]
pub fn av_cast5_crypt2(
ctx: *mut AVCAST5,
dst: *mut u8,
src: *const u8,
count: libc::c_int,
iv: *mut u8,
decrypt: libc::c_int,
);
}
#[doc = " @defgroup lavu_crc32 CRC\n @ingroup lavu_hash\n CRC (Cyclic Redundancy Check) hash function implementation.\n\n This module supports numerous CRC polynomials, in addition to the most\n widely used CRC-32-IEEE. See @ref AVCRCId for a list of available\n polynomials.\n\n @{"]
pub type AVCRC = u32;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVCRCId {
AV_CRC_8_ATM = 0,
AV_CRC_16_ANSI = 1,
AV_CRC_16_CCITT = 2,
AV_CRC_32_IEEE = 3,
AV_CRC_32_IEEE_LE = 4,
AV_CRC_16_ANSI_LE = 5,
AV_CRC_24_IEEE = 6,
AV_CRC_8_EBU = 7,
AV_CRC_MAX = 8,
}
extern "C" {
#[doc = " Initialize a CRC table.\n @param ctx must be an array of size sizeof(AVCRC)*257 or sizeof(AVCRC)*1024\n @param le If 1, the lowest bit represents the coefficient for the highest\n exponent of the corresponding polynomial (both for poly and\n actual CRC).\n If 0, you must swap the CRC parameter and the result of av_crc\n if you need the standard representation (can be simplified in\n most cases to e.g. bswap16):\n av_bswap32(crc << (32-bits))\n @param bits number of bits for the CRC\n @param poly generator polynomial without the x**bits coefficient, in the\n representation as specified by le\n @param ctx_size size of ctx in bytes\n @return <0 on failure"]
pub fn av_crc_init(
ctx: *mut AVCRC,
le: libc::c_int,
bits: libc::c_int,
poly: u32,
ctx_size: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Get an initialized standard CRC table.\n @param crc_id ID of a standard CRC\n @return a pointer to the CRC table or NULL on failure"]
pub fn av_crc_get_table(crc_id: AVCRCId) -> *const AVCRC;
}
extern "C" {
#[doc = " Calculate the CRC of a block.\n @param crc CRC of previous blocks if any or initial value for CRC\n @return CRC updated with the data from the given block\n\n @see av_crc_init() \"le\" parameter"]
pub fn av_crc(ctx: *const AVCRC, crc: u32, buffer: *const u8, length: usize) -> u32;
}
extern "C" {
#[doc = " Extract the rotation component of the transformation matrix.\n\n @param matrix the transformation matrix\n @return the angle (in degrees) by which the transformation rotates the frame\n counterclockwise. The angle will be in range [-180.0, 180.0],\n or NaN if the matrix is singular.\n\n @note floating point numbers are inherently inexact, so callers are\n recommended to round the return value to nearest integer before use."]
pub fn av_display_rotation_get(matrix: *const i32) -> f64;
}
extern "C" {
#[doc = " Initialize a transformation matrix describing a pure counterclockwise\n rotation by the specified angle (in degrees).\n\n @param matrix an allocated transformation matrix (will be fully overwritten\n by this function)\n @param angle rotation angle in degrees."]
pub fn av_display_rotation_set(matrix: *mut i32, angle: f64);
}
extern "C" {
#[doc = " Flip the input matrix horizontally and/or vertically.\n\n @param matrix an allocated transformation matrix\n @param hflip whether the matrix should be flipped horizontally\n @param vflip whether the matrix should be flipped vertically"]
pub fn av_display_matrix_flip(matrix: *mut i32, hflip: libc::c_int, vflip: libc::c_int);
}
#[repr(u32)]
#[doc = " Possible downmix types."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVDownmixType {
#[doc = "< Not indicated."]
AV_DOWNMIX_TYPE_UNKNOWN = 0,
#[doc = "< Lo/Ro 2-channel downmix (Stereo)."]
AV_DOWNMIX_TYPE_LORO = 1,
#[doc = "< Lt/Rt 2-channel downmix, Dolby Surround compatible."]
AV_DOWNMIX_TYPE_LTRT = 2,
#[doc = "< Lt/Rt 2-channel downmix, Dolby Pro Logic II compatible."]
AV_DOWNMIX_TYPE_DPLII = 3,
#[doc = "< Number of downmix types. Not part of ABI."]
AV_DOWNMIX_TYPE_NB = 4,
}
#[doc = " This structure describes optional metadata relevant to a downmix procedure.\n\n All fields are set by the decoder to the value indicated in the audio\n bitstream (if present), or to a \"sane\" default otherwise."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq)]
pub struct AVDownmixInfo {
#[doc = " Type of downmix preferred by the mastering engineer."]
pub preferred_downmix_type: AVDownmixType,
#[doc = " Absolute scale factor representing the nominal level of the center\n channel during a regular downmix."]
pub center_mix_level: f64,
#[doc = " Absolute scale factor representing the nominal level of the center\n channel during an Lt/Rt compatible downmix."]
pub center_mix_level_ltrt: f64,
#[doc = " Absolute scale factor representing the nominal level of the surround\n channels during a regular downmix."]
pub surround_mix_level: f64,
#[doc = " Absolute scale factor representing the nominal level of the surround\n channels during an Lt/Rt compatible downmix."]
pub surround_mix_level_ltrt: f64,
#[doc = " Absolute scale factor representing the level at which the LFE data is\n mixed into L/R channels during downmixing."]
pub lfe_mix_level: f64,
}
#[test]
fn bindgen_test_layout_AVDownmixInfo() {
const UNINIT: ::std::mem::MaybeUninit<AVDownmixInfo> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVDownmixInfo>(),
48usize,
concat!("Size of: ", stringify!(AVDownmixInfo))
);
assert_eq!(
::std::mem::align_of::<AVDownmixInfo>(),
8usize,
concat!("Alignment of ", stringify!(AVDownmixInfo))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).preferred_downmix_type) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVDownmixInfo),
"::",
stringify!(preferred_downmix_type)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).center_mix_level) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVDownmixInfo),
"::",
stringify!(center_mix_level)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).center_mix_level_ltrt) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVDownmixInfo),
"::",
stringify!(center_mix_level_ltrt)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).surround_mix_level) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVDownmixInfo),
"::",
stringify!(surround_mix_level)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).surround_mix_level_ltrt) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVDownmixInfo),
"::",
stringify!(surround_mix_level_ltrt)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).lfe_mix_level) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(AVDownmixInfo),
"::",
stringify!(lfe_mix_level)
)
);
}
extern "C" {
#[doc = " Get a frame's AV_FRAME_DATA_DOWNMIX_INFO side data for editing.\n\n If the side data is absent, it is created and added to the frame.\n\n @param frame the frame for which the side data is to be obtained or created\n\n @return the AVDownmixInfo structure to be edited by the caller, or NULL if\n the structure cannot be allocated."]
pub fn av_downmix_info_update_side_data(frame: *mut AVFrame) -> *mut AVDownmixInfo;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVExpr {
_unused: [u8; 0],
}
extern "C" {
#[doc = " Parse and evaluate an expression.\n Note, this is significantly slower than av_expr_eval().\n\n @param res a pointer to a double where is put the result value of\n the expression, or NAN in case of error\n @param s expression as a zero terminated string, for example \"1+2^3+5*5+sin(2/3)\"\n @param const_names NULL terminated array of zero terminated strings of constant identifiers, for example {\"PI\", \"E\", 0}\n @param const_values a zero terminated array of values for the identifiers from const_names\n @param func1_names NULL terminated array of zero terminated strings of funcs1 identifiers\n @param funcs1 NULL terminated array of function pointers for functions which take 1 argument\n @param func2_names NULL terminated array of zero terminated strings of funcs2 identifiers\n @param funcs2 NULL terminated array of function pointers for functions which take 2 arguments\n @param opaque a pointer which will be passed to all functions from funcs1 and funcs2\n @param log_ctx parent logging context\n @return >= 0 in case of success, a negative value corresponding to an\n AVERROR code otherwise"]
pub fn av_expr_parse_and_eval(
res: *mut f64,
s: *const libc::c_char,
const_names: *const *const libc::c_char,
const_values: *const f64,
func1_names: *const *const libc::c_char,
funcs1: *const ::std::option::Option<
unsafe extern "C" fn(arg1: *mut libc::c_void, arg2: f64) -> f64,
>,
func2_names: *const *const libc::c_char,
funcs2: *const ::std::option::Option<
unsafe extern "C" fn(arg1: *mut libc::c_void, arg2: f64, arg3: f64) -> f64,
>,
opaque: *mut libc::c_void,
log_offset: libc::c_int,
log_ctx: *mut libc::c_void,
) -> libc::c_int;
}
extern "C" {
#[doc = " Parse an expression.\n\n @param expr a pointer where is put an AVExpr containing the parsed\n value in case of successful parsing, or NULL otherwise.\n The pointed to AVExpr must be freed with av_expr_free() by the user\n when it is not needed anymore.\n @param s expression as a zero terminated string, for example \"1+2^3+5*5+sin(2/3)\"\n @param const_names NULL terminated array of zero terminated strings of constant identifiers, for example {\"PI\", \"E\", 0}\n @param func1_names NULL terminated array of zero terminated strings of funcs1 identifiers\n @param funcs1 NULL terminated array of function pointers for functions which take 1 argument\n @param func2_names NULL terminated array of zero terminated strings of funcs2 identifiers\n @param funcs2 NULL terminated array of function pointers for functions which take 2 arguments\n @param log_ctx parent logging context\n @return >= 0 in case of success, a negative value corresponding to an\n AVERROR code otherwise"]
pub fn av_expr_parse(
expr: *mut *mut AVExpr,
s: *const libc::c_char,
const_names: *const *const libc::c_char,
func1_names: *const *const libc::c_char,
funcs1: *const ::std::option::Option<
unsafe extern "C" fn(arg1: *mut libc::c_void, arg2: f64) -> f64,
>,
func2_names: *const *const libc::c_char,
funcs2: *const ::std::option::Option<
unsafe extern "C" fn(arg1: *mut libc::c_void, arg2: f64, arg3: f64) -> f64,
>,
log_offset: libc::c_int,
log_ctx: *mut libc::c_void,
) -> libc::c_int;
}
extern "C" {
#[doc = " Evaluate a previously parsed expression.\n\n @param const_values a zero terminated array of values for the identifiers from av_expr_parse() const_names\n @param opaque a pointer which will be passed to all functions from funcs1 and funcs2\n @return the value of the expression"]
pub fn av_expr_eval(e: *mut AVExpr, const_values: *const f64, opaque: *mut libc::c_void)
-> f64;
}
extern "C" {
#[doc = " Track the presence of variables and their number of occurrences in a parsed expression\n\n @param counter a zero-initialized array where the count of each variable will be stored\n @param size size of array\n @return 0 on success, a negative value indicates that no expression or array was passed\n or size was zero"]
pub fn av_expr_count_vars(
e: *mut AVExpr,
counter: *mut libc::c_uint,
size: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Track the presence of user provided functions and their number of occurrences\n in a parsed expression.\n\n @param counter a zero-initialized array where the count of each function will be stored\n if you passed 5 functions with 2 arguments to av_expr_parse()\n then for arg=2 this will use upto 5 entries.\n @param size size of array\n @param arg number of arguments the counted functions have\n @return 0 on success, a negative value indicates that no expression or array was passed\n or size was zero"]
pub fn av_expr_count_func(
e: *mut AVExpr,
counter: *mut libc::c_uint,
size: libc::c_int,
arg: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Free a parsed expression previously created with av_expr_parse()."]
pub fn av_expr_free(e: *mut AVExpr);
}
extern "C" {
#[doc = " Parse the string in numstr and return its value as a double. If\n the string is empty, contains only whitespaces, or does not contain\n an initial substring that has the expected syntax for a\n floating-point number, no conversion is performed. In this case,\n returns a value of zero and the value returned in tail is the value\n of numstr.\n\n @param numstr a string representing a number, may contain one of\n the International System number postfixes, for example 'K', 'M',\n 'G'. If 'i' is appended after the postfix, powers of 2 are used\n instead of powers of 10. The 'B' postfix multiplies the value by\n 8, and can be appended after another postfix or used alone. This\n allows using for example 'KB', 'MiB', 'G' and 'B' as postfix.\n @param tail if non-NULL puts here the pointer to the char next\n after the last parsed character"]
pub fn av_strtod(numstr: *const libc::c_char, tail: *mut *mut libc::c_char) -> f64;
}
extern "C" {
#[doc = " Read the file with name filename, and put its content in a newly\n allocated buffer or map it with mmap() when available.\n In case of success set *bufptr to the read or mmapped buffer, and\n *size to the size in bytes of the buffer in *bufptr.\n Unlike mmap this function succeeds with zero sized files, in this\n case *bufptr will be set to NULL and *size will be set to 0.\n The returned buffer must be released with av_file_unmap().\n\n @param log_offset loglevel offset used for logging\n @param log_ctx context used for logging\n @return a non negative number in case of success, a negative value\n corresponding to an AVERROR error code in case of failure"]
pub fn av_file_map(
filename: *const libc::c_char,
bufptr: *mut *mut u8,
size: *mut usize,
log_offset: libc::c_int,
log_ctx: *mut libc::c_void,
) -> libc::c_int;
}
extern "C" {
#[doc = " Unmap or free the buffer bufptr created by av_file_map().\n\n @param size size in bytes of bufptr, must be the same as returned\n by av_file_map()"]
pub fn av_file_unmap(bufptr: *mut u8, size: usize);
}
extern "C" {
#[doc = " Wrapper to work around the lack of mkstemp() on mingw.\n Also, tries to create file in /tmp first, if possible.\n *prefix can be a character constant; *filename will be allocated internally.\n @return file descriptor of opened file (or negative value corresponding to an\n AVERROR code on error)\n and opened file name in **filename.\n @note On very old libcs it is necessary to set a secure umask before\n calling this, av_tempfile() can't call umask itself as it is used in\n libraries and could interfere with the calling application.\n @deprecated as fd numbers cannot be passed saftely between libs on some platforms"]
pub fn av_tempfile(
prefix: *const libc::c_char,
filename: *mut *mut libc::c_char,
log_offset: libc::c_int,
log_ctx: *mut libc::c_void,
) -> libc::c_int;
}
#[doc = " @example ffhash.c\n This example is a simple command line application that takes one or more\n arguments. It demonstrates a typical use of the hashing API with allocation,\n initialization, updating, and finalizing."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVHashContext {
_unused: [u8; 0],
}
extern "C" {
#[doc = " Allocate a hash context for the algorithm specified by name.\n\n @return >= 0 for success, a negative error code for failure\n\n @note The context is not initialized after a call to this function; you must\n call av_hash_init() to do so."]
pub fn av_hash_alloc(ctx: *mut *mut AVHashContext, name: *const libc::c_char) -> libc::c_int;
}
extern "C" {
#[doc = " Get the names of available hash algorithms.\n\n This function can be used to enumerate the algorithms.\n\n @param[in] i Index of the hash algorithm, starting from 0\n @return Pointer to a static string or `NULL` if `i` is out of range"]
pub fn av_hash_names(i: libc::c_int) -> *const libc::c_char;
}
extern "C" {
#[doc = " Get the name of the algorithm corresponding to the given hash context."]
pub fn av_hash_get_name(ctx: *const AVHashContext) -> *const libc::c_char;
}
extern "C" {
#[doc = " Get the size of the resulting hash value in bytes.\n\n The maximum value this function will currently return is available as macro\n #AV_HASH_MAX_SIZE.\n\n @param[in] ctx Hash context\n @return Size of the hash value in bytes"]
pub fn av_hash_get_size(ctx: *const AVHashContext) -> libc::c_int;
}
extern "C" {
#[doc = " Initialize or reset a hash context.\n\n @param[in,out] ctx Hash context"]
pub fn av_hash_init(ctx: *mut AVHashContext);
}
extern "C" {
pub fn av_hash_update(ctx: *mut AVHashContext, src: *const u8, len: libc::c_int);
}
extern "C" {
#[doc = " Finalize a hash context and compute the actual hash value.\n\n The minimum size of `dst` buffer is given by av_hash_get_size() or\n #AV_HASH_MAX_SIZE. The use of the latter macro is discouraged.\n\n It is not safe to update or finalize a hash context again, if it has already\n been finalized.\n\n @param[in,out] ctx Hash context\n @param[out] dst Where the final hash value will be stored\n\n @see av_hash_final_bin() provides an alternative API"]
pub fn av_hash_final(ctx: *mut AVHashContext, dst: *mut u8);
}
extern "C" {
#[doc = " Finalize a hash context and store the actual hash value in a buffer.\n\n It is not safe to update or finalize a hash context again, if it has already\n been finalized.\n\n If `size` is smaller than the hash size (given by av_hash_get_size()), the\n hash is truncated; if size is larger, the buffer is padded with 0.\n\n @param[in,out] ctx Hash context\n @param[out] dst Where the final hash value will be stored\n @param[in] size Number of bytes to write to `dst`"]
pub fn av_hash_final_bin(ctx: *mut AVHashContext, dst: *mut u8, size: libc::c_int);
}
extern "C" {
#[doc = " Finalize a hash context and store the hexadecimal representation of the\n actual hash value as a string.\n\n It is not safe to update or finalize a hash context again, if it has already\n been finalized.\n\n The string is always 0-terminated.\n\n If `size` is smaller than `2 * hash_size + 1`, where `hash_size` is the\n value returned by av_hash_get_size(), the string will be truncated.\n\n @param[in,out] ctx Hash context\n @param[out] dst Where the string will be stored\n @param[in] size Maximum number of bytes to write to `dst`"]
pub fn av_hash_final_hex(ctx: *mut AVHashContext, dst: *mut u8, size: libc::c_int);
}
extern "C" {
#[doc = " Finalize a hash context and store the Base64 representation of the\n actual hash value as a string.\n\n It is not safe to update or finalize a hash context again, if it has already\n been finalized.\n\n The string is always 0-terminated.\n\n If `size` is smaller than AV_BASE64_SIZE(hash_size), where `hash_size` is\n the value returned by av_hash_get_size(), the string will be truncated.\n\n @param[in,out] ctx Hash context\n @param[out] dst Where the final hash value will be stored\n @param[in] size Maximum number of bytes to write to `dst`"]
pub fn av_hash_final_b64(ctx: *mut AVHashContext, dst: *mut u8, size: libc::c_int);
}
extern "C" {
#[doc = " Free hash context and set hash context pointer to `NULL`.\n\n @param[in,out] ctx Pointer to hash context"]
pub fn av_hash_freep(ctx: *mut *mut AVHashContext);
}
#[repr(u32)]
#[doc = " @defgroup lavu_hmac HMAC\n @ingroup lavu_crypto\n @{"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVHMACType {
AV_HMAC_MD5 = 0,
AV_HMAC_SHA1 = 1,
AV_HMAC_SHA224 = 2,
AV_HMAC_SHA256 = 3,
AV_HMAC_SHA384 = 4,
AV_HMAC_SHA512 = 5,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVHMAC {
_unused: [u8; 0],
}
extern "C" {
#[doc = " Allocate an AVHMAC context.\n @param type The hash function used for the HMAC."]
pub fn av_hmac_alloc(type_: AVHMACType) -> *mut AVHMAC;
}
extern "C" {
#[doc = " Free an AVHMAC context.\n @param ctx The context to free, may be NULL"]
pub fn av_hmac_free(ctx: *mut AVHMAC);
}
extern "C" {
#[doc = " Initialize an AVHMAC context with an authentication key.\n @param ctx The HMAC context\n @param key The authentication key\n @param keylen The length of the key, in bytes"]
pub fn av_hmac_init(ctx: *mut AVHMAC, key: *const u8, keylen: libc::c_uint);
}
extern "C" {
#[doc = " Hash data with the HMAC.\n @param ctx The HMAC context\n @param data The data to hash\n @param len The length of the data, in bytes"]
pub fn av_hmac_update(ctx: *mut AVHMAC, data: *const u8, len: libc::c_uint);
}
extern "C" {
#[doc = " Finish hashing and output the HMAC digest.\n @param ctx The HMAC context\n @param out The output buffer to write the digest into\n @param outlen The length of the out buffer, in bytes\n @return The number of bytes written to out, or a negative error code."]
pub fn av_hmac_final(ctx: *mut AVHMAC, out: *mut u8, outlen: libc::c_uint) -> libc::c_int;
}
extern "C" {
#[doc = " Hash an array of data with a key.\n @param ctx The HMAC context\n @param data The data to hash\n @param len The length of the data, in bytes\n @param key The authentication key\n @param keylen The length of the key, in bytes\n @param out The output buffer to write the digest into\n @param outlen The length of the out buffer, in bytes\n @return The number of bytes written to out, or a negative error code."]
pub fn av_hmac_calc(
ctx: *mut AVHMAC,
data: *const u8,
len: libc::c_uint,
key: *const u8,
keylen: libc::c_uint,
out: *mut u8,
outlen: libc::c_uint,
) -> libc::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVComponentDescriptor {
#[doc = " Which of the 4 planes contains the component."]
pub plane: libc::c_int,
#[doc = " Number of elements between 2 horizontally consecutive pixels.\n Elements are bits for bitstream formats, bytes otherwise."]
pub step: libc::c_int,
#[doc = " Number of elements before the component of the first pixel.\n Elements are bits for bitstream formats, bytes otherwise."]
pub offset: libc::c_int,
#[doc = " Number of least significant bits that must be shifted away\n to get the value."]
pub shift: libc::c_int,
#[doc = " Number of bits in the component."]
pub depth: libc::c_int,
#[doc = " deprecated, use step instead"]
pub step_minus1: libc::c_int,
#[doc = " deprecated, use depth instead"]
pub depth_minus1: libc::c_int,
#[doc = " deprecated, use offset instead"]
pub offset_plus1: libc::c_int,
}
#[test]
fn bindgen_test_layout_AVComponentDescriptor() {
const UNINIT: ::std::mem::MaybeUninit<AVComponentDescriptor> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVComponentDescriptor>(),
32usize,
concat!("Size of: ", stringify!(AVComponentDescriptor))
);
assert_eq!(
::std::mem::align_of::<AVComponentDescriptor>(),
4usize,
concat!("Alignment of ", stringify!(AVComponentDescriptor))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).plane) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVComponentDescriptor),
"::",
stringify!(plane)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).step) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(AVComponentDescriptor),
"::",
stringify!(step)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVComponentDescriptor),
"::",
stringify!(offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).shift) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(AVComponentDescriptor),
"::",
stringify!(shift)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).depth) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVComponentDescriptor),
"::",
stringify!(depth)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).step_minus1) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(AVComponentDescriptor),
"::",
stringify!(step_minus1)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).depth_minus1) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVComponentDescriptor),
"::",
stringify!(depth_minus1)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).offset_plus1) as usize - ptr as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(AVComponentDescriptor),
"::",
stringify!(offset_plus1)
)
);
}
#[doc = " Descriptor that unambiguously describes how the bits of a pixel are\n stored in the up to 4 data planes of an image. It also stores the\n subsampling factors and number of components.\n\n @note This is separate of the colorspace (RGB, YCbCr, YPbPr, JPEG-style YUV\n and all the YUV variants) AVPixFmtDescriptor just stores how values\n are stored not what these values represent."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVPixFmtDescriptor {
pub name: *const libc::c_char,
#[doc = "< The number of components each pixel has, (1-4)"]
pub nb_components: u8,
#[doc = " Amount to shift the luma width right to find the chroma width.\n For YV12 this is 1 for example.\n chroma_width = AV_CEIL_RSHIFT(luma_width, log2_chroma_w)\n The note above is needed to ensure rounding up.\n This value only refers to the chroma components."]
pub log2_chroma_w: u8,
#[doc = " Amount to shift the luma height right to find the chroma height.\n For YV12 this is 1 for example.\n chroma_height= AV_CEIL_RSHIFT(luma_height, log2_chroma_h)\n The note above is needed to ensure rounding up.\n This value only refers to the chroma components."]
pub log2_chroma_h: u8,
#[doc = " Combination of AV_PIX_FMT_FLAG_... flags."]
pub flags: u64,
#[doc = " Parameters that describe how pixels are packed.\n If the format has 1 or 2 components, then luma is 0.\n If the format has 3 or 4 components:\n if the RGB flag is set then 0 is red, 1 is green and 2 is blue;\n otherwise 0 is luma, 1 is chroma-U and 2 is chroma-V.\n\n If present, the Alpha channel is always the last component."]
pub comp: [AVComponentDescriptor; 4usize],
#[doc = " Alternative comma-separated names."]
pub alias: *const libc::c_char,
}
#[test]
fn bindgen_test_layout_AVPixFmtDescriptor() {
const UNINIT: ::std::mem::MaybeUninit<AVPixFmtDescriptor> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVPixFmtDescriptor>(),
160usize,
concat!("Size of: ", stringify!(AVPixFmtDescriptor))
);
assert_eq!(
::std::mem::align_of::<AVPixFmtDescriptor>(),
8usize,
concat!("Alignment of ", stringify!(AVPixFmtDescriptor))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVPixFmtDescriptor),
"::",
stringify!(name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_components) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVPixFmtDescriptor),
"::",
stringify!(nb_components)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).log2_chroma_w) as usize - ptr as usize },
9usize,
concat!(
"Offset of field: ",
stringify!(AVPixFmtDescriptor),
"::",
stringify!(log2_chroma_w)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).log2_chroma_h) as usize - ptr as usize },
10usize,
concat!(
"Offset of field: ",
stringify!(AVPixFmtDescriptor),
"::",
stringify!(log2_chroma_h)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVPixFmtDescriptor),
"::",
stringify!(flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).comp) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVPixFmtDescriptor),
"::",
stringify!(comp)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).alias) as usize - ptr as usize },
152usize,
concat!(
"Offset of field: ",
stringify!(AVPixFmtDescriptor),
"::",
stringify!(alias)
)
);
}
extern "C" {
#[doc = " Return the number of bits per pixel used by the pixel format\n described by pixdesc. Note that this is not the same as the number\n of bits per sample.\n\n The returned number of bits refers to the number of bits actually\n used for storing the pixel information, that is padding bits are\n not counted."]
pub fn av_get_bits_per_pixel(pixdesc: *const AVPixFmtDescriptor) -> libc::c_int;
}
extern "C" {
#[doc = " Return the number of bits per pixel for the pixel format\n described by pixdesc, including any padding or unused bits."]
pub fn av_get_padded_bits_per_pixel(pixdesc: *const AVPixFmtDescriptor) -> libc::c_int;
}
extern "C" {
#[doc = " @return a pixel format descriptor for provided pixel format or NULL if\n this pixel format is unknown."]
pub fn av_pix_fmt_desc_get(pix_fmt: AVPixelFormat) -> *const AVPixFmtDescriptor;
}
extern "C" {
#[doc = " Iterate over all pixel format descriptors known to libavutil.\n\n @param prev previous descriptor. NULL to get the first descriptor.\n\n @return next descriptor or NULL after the last descriptor"]
pub fn av_pix_fmt_desc_next(prev: *const AVPixFmtDescriptor) -> *const AVPixFmtDescriptor;
}
extern "C" {
#[doc = " @return an AVPixelFormat id described by desc, or AV_PIX_FMT_NONE if desc\n is not a valid pointer to a pixel format descriptor."]
pub fn av_pix_fmt_desc_get_id(desc: *const AVPixFmtDescriptor) -> AVPixelFormat;
}
extern "C" {
#[doc = " Utility function to access log2_chroma_w log2_chroma_h from\n the pixel format AVPixFmtDescriptor.\n\n @param[in] pix_fmt the pixel format\n @param[out] h_shift store log2_chroma_w (horizontal/width shift)\n @param[out] v_shift store log2_chroma_h (vertical/height shift)\n\n @return 0 on success, AVERROR(ENOSYS) on invalid or unknown pixel format"]
pub fn av_pix_fmt_get_chroma_sub_sample(
pix_fmt: AVPixelFormat,
h_shift: *mut libc::c_int,
v_shift: *mut libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " @return number of planes in pix_fmt, a negative AVERROR if pix_fmt is not a\n valid pixel format."]
pub fn av_pix_fmt_count_planes(pix_fmt: AVPixelFormat) -> libc::c_int;
}
extern "C" {
#[doc = " @return the name for provided color range or NULL if unknown."]
pub fn av_color_range_name(range: AVColorRange) -> *const libc::c_char;
}
extern "C" {
#[doc = " @return the AVColorRange value for name or an AVError if not found."]
pub fn av_color_range_from_name(name: *const libc::c_char) -> libc::c_int;
}
extern "C" {
#[doc = " @return the name for provided color primaries or NULL if unknown."]
pub fn av_color_primaries_name(primaries: AVColorPrimaries) -> *const libc::c_char;
}
extern "C" {
#[doc = " @return the AVColorPrimaries value for name or an AVError if not found."]
pub fn av_color_primaries_from_name(name: *const libc::c_char) -> libc::c_int;
}
extern "C" {
#[doc = " @return the name for provided color transfer or NULL if unknown."]
pub fn av_color_transfer_name(transfer: AVColorTransferCharacteristic) -> *const libc::c_char;
}
extern "C" {
#[doc = " @return the AVColorTransferCharacteristic value for name or an AVError if not found."]
pub fn av_color_transfer_from_name(name: *const libc::c_char) -> libc::c_int;
}
extern "C" {
#[doc = " @return the name for provided color space or NULL if unknown."]
pub fn av_color_space_name(space: AVColorSpace) -> *const libc::c_char;
}
extern "C" {
#[doc = " @return the AVColorSpace value for name or an AVError if not found."]
pub fn av_color_space_from_name(name: *const libc::c_char) -> libc::c_int;
}
extern "C" {
#[doc = " @return the name for provided chroma location or NULL if unknown."]
pub fn av_chroma_location_name(location: AVChromaLocation) -> *const libc::c_char;
}
extern "C" {
#[doc = " @return the AVChromaLocation value for name or an AVError if not found."]
pub fn av_chroma_location_from_name(name: *const libc::c_char) -> libc::c_int;
}
extern "C" {
#[doc = " Return the pixel format corresponding to name.\n\n If there is no pixel format with name name, then looks for a\n pixel format with the name corresponding to the native endian\n format of name.\n For example in a little-endian system, first looks for \"gray16\",\n then for \"gray16le\".\n\n Finally if no pixel format has been found, returns AV_PIX_FMT_NONE."]
pub fn av_get_pix_fmt(name: *const libc::c_char) -> AVPixelFormat;
}
extern "C" {
#[doc = " Return the short name for a pixel format, NULL in case pix_fmt is\n unknown.\n\n @see av_get_pix_fmt(), av_get_pix_fmt_string()"]
pub fn av_get_pix_fmt_name(pix_fmt: AVPixelFormat) -> *const libc::c_char;
}
extern "C" {
#[doc = " Print in buf the string corresponding to the pixel format with\n number pix_fmt, or a header if pix_fmt is negative.\n\n @param buf the buffer where to write the string\n @param buf_size the size of buf\n @param pix_fmt the number of the pixel format to print the\n corresponding info string, or a negative value to print the\n corresponding header."]
pub fn av_get_pix_fmt_string(
buf: *mut libc::c_char,
buf_size: libc::c_int,
pix_fmt: AVPixelFormat,
) -> *mut libc::c_char;
}
extern "C" {
#[doc = " Read a line from an image, and write the values of the\n pixel format component c to dst.\n\n @param data the array containing the pointers to the planes of the image\n @param linesize the array containing the linesizes of the image\n @param desc the pixel format descriptor for the image\n @param x the horizontal coordinate of the first pixel to read\n @param y the vertical coordinate of the first pixel to read\n @param w the width of the line to read, that is the number of\n values to write to dst\n @param read_pal_component if not zero and the format is a paletted\n format writes the values corresponding to the palette\n component c in data[1] to dst, rather than the palette indexes in\n data[0]. The behavior is undefined if the format is not paletted.\n @param dst_element_size size of elements in dst array (2 or 4 byte)"]
pub fn av_read_image_line2(
dst: *mut libc::c_void,
data: *mut *const u8,
linesize: *const libc::c_int,
desc: *const AVPixFmtDescriptor,
x: libc::c_int,
y: libc::c_int,
c: libc::c_int,
w: libc::c_int,
read_pal_component: libc::c_int,
dst_element_size: libc::c_int,
);
}
extern "C" {
pub fn av_read_image_line(
dst: *mut u16,
data: *mut *const u8,
linesize: *const libc::c_int,
desc: *const AVPixFmtDescriptor,
x: libc::c_int,
y: libc::c_int,
c: libc::c_int,
w: libc::c_int,
read_pal_component: libc::c_int,
);
}
extern "C" {
#[doc = " Write the values from src to the pixel format component c of an\n image line.\n\n @param src array containing the values to write\n @param data the array containing the pointers to the planes of the\n image to write into. It is supposed to be zeroed.\n @param linesize the array containing the linesizes of the image\n @param desc the pixel format descriptor for the image\n @param x the horizontal coordinate of the first pixel to write\n @param y the vertical coordinate of the first pixel to write\n @param w the width of the line to write, that is the number of\n values to write to the image line\n @param src_element_size size of elements in src array (2 or 4 byte)"]
pub fn av_write_image_line2(
src: *const libc::c_void,
data: *mut *mut u8,
linesize: *const libc::c_int,
desc: *const AVPixFmtDescriptor,
x: libc::c_int,
y: libc::c_int,
c: libc::c_int,
w: libc::c_int,
src_element_size: libc::c_int,
);
}
extern "C" {
pub fn av_write_image_line(
src: *const u16,
data: *mut *mut u8,
linesize: *const libc::c_int,
desc: *const AVPixFmtDescriptor,
x: libc::c_int,
y: libc::c_int,
c: libc::c_int,
w: libc::c_int,
);
}
extern "C" {
#[doc = " Utility function to swap the endianness of a pixel format.\n\n @param[in] pix_fmt the pixel format\n\n @return pixel format with swapped endianness if it exists,\n otherwise AV_PIX_FMT_NONE"]
pub fn av_pix_fmt_swap_endianness(pix_fmt: AVPixelFormat) -> AVPixelFormat;
}
extern "C" {
#[doc = " Compute what kind of losses will occur when converting from one specific\n pixel format to another.\n When converting from one pixel format to another, information loss may occur.\n For example, when converting from RGB24 to GRAY, the color information will\n be lost. Similarly, other losses occur when converting from some formats to\n other formats. These losses can involve loss of chroma, but also loss of\n resolution, loss of color depth, loss due to the color space conversion, loss\n of the alpha bits or loss due to color quantization.\n av_get_fix_fmt_loss() informs you about the various types of losses\n which will occur when converting from one pixel format to another.\n\n @param[in] dst_pix_fmt destination pixel format\n @param[in] src_pix_fmt source pixel format\n @param[in] has_alpha Whether the source pixel format alpha channel is used.\n @return Combination of flags informing you what kind of losses will occur\n (maximum loss for an invalid dst_pix_fmt)."]
pub fn av_get_pix_fmt_loss(
dst_pix_fmt: AVPixelFormat,
src_pix_fmt: AVPixelFormat,
has_alpha: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Compute what kind of losses will occur when converting from one specific\n pixel format to another.\n When converting from one pixel format to another, information loss may occur.\n For example, when converting from RGB24 to GRAY, the color information will\n be lost. Similarly, other losses occur when converting from some formats to\n other formats. These losses can involve loss of chroma, but also loss of\n resolution, loss of color depth, loss due to the color space conversion, loss\n of the alpha bits or loss due to color quantization.\n av_get_fix_fmt_loss() informs you about the various types of losses\n which will occur when converting from one pixel format to another.\n\n @param[in] dst_pix_fmt destination pixel format\n @param[in] src_pix_fmt source pixel format\n @param[in] has_alpha Whether the source pixel format alpha channel is used.\n @return Combination of flags informing you what kind of losses will occur\n (maximum loss for an invalid dst_pix_fmt)."]
pub fn av_find_best_pix_fmt_of_2(
dst_pix_fmt1: AVPixelFormat,
dst_pix_fmt2: AVPixelFormat,
src_pix_fmt: AVPixelFormat,
has_alpha: libc::c_int,
loss_ptr: *mut libc::c_int,
) -> AVPixelFormat;
}
extern "C" {
#[doc = " Compute the max pixel step for each plane of an image with a\n format described by pixdesc.\n\n The pixel step is the distance in bytes between the first byte of\n the group of bytes which describe a pixel component and the first\n byte of the successive group in the same plane for the same\n component.\n\n @param max_pixsteps an array which is filled with the max pixel step\n for each plane. Since a plane may contain different pixel\n components, the computed max_pixsteps[plane] is relative to the\n component in the plane with the max pixel step.\n @param max_pixstep_comps an array which is filled with the component\n for each plane which has the max pixel step. May be NULL."]
pub fn av_image_fill_max_pixsteps(
max_pixsteps: *mut libc::c_int,
max_pixstep_comps: *mut libc::c_int,
pixdesc: *const AVPixFmtDescriptor,
);
}
extern "C" {
#[doc = " Compute the size of an image line with format pix_fmt and width\n width for the plane plane.\n\n @return the computed size in bytes"]
pub fn av_image_get_linesize(
pix_fmt: AVPixelFormat,
width: libc::c_int,
plane: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Fill plane linesizes for an image with pixel format pix_fmt and\n width width.\n\n @param linesizes array to be filled with the linesize for each plane\n @return >= 0 in case of success, a negative error code otherwise"]
pub fn av_image_fill_linesizes(
linesizes: *mut libc::c_int,
pix_fmt: AVPixelFormat,
width: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Fill plane sizes for an image with pixel format pix_fmt and height height.\n\n @param size the array to be filled with the size of each image plane\n @param linesizes the array containing the linesize for each\n plane, should be filled by av_image_fill_linesizes()\n @return >= 0 in case of success, a negative error code otherwise\n\n @note The linesize parameters have the type ptrdiff_t here, while they are\n int for av_image_fill_linesizes()."]
pub fn av_image_fill_plane_sizes(
size: *mut usize,
pix_fmt: AVPixelFormat,
height: libc::c_int,
linesizes: *const isize,
) -> libc::c_int;
}
extern "C" {
#[doc = " Fill plane data pointers for an image with pixel format pix_fmt and\n height height.\n\n @param data pointers array to be filled with the pointer for each image plane\n @param ptr the pointer to a buffer which will contain the image\n @param linesizes the array containing the linesize for each\n plane, should be filled by av_image_fill_linesizes()\n @return the size in bytes required for the image buffer, a negative\n error code in case of failure"]
pub fn av_image_fill_pointers(
data: *mut *mut u8,
pix_fmt: AVPixelFormat,
height: libc::c_int,
ptr: *mut u8,
linesizes: *const libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Allocate an image with size w and h and pixel format pix_fmt, and\n fill pointers and linesizes accordingly.\n The allocated image buffer has to be freed by using\n av_freep(&pointers[0]).\n\n @param align the value to use for buffer size alignment\n @return the size in bytes required for the image buffer, a negative\n error code in case of failure"]
pub fn av_image_alloc(
pointers: *mut *mut u8,
linesizes: *mut libc::c_int,
w: libc::c_int,
h: libc::c_int,
pix_fmt: AVPixelFormat,
align: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Copy image plane from src to dst.\n That is, copy \"height\" number of lines of \"bytewidth\" bytes each.\n The first byte of each successive line is separated by *_linesize\n bytes.\n\n bytewidth must be contained by both absolute values of dst_linesize\n and src_linesize, otherwise the function behavior is undefined.\n\n @param dst_linesize linesize for the image plane in dst\n @param src_linesize linesize for the image plane in src"]
pub fn av_image_copy_plane(
dst: *mut u8,
dst_linesize: libc::c_int,
src: *const u8,
src_linesize: libc::c_int,
bytewidth: libc::c_int,
height: libc::c_int,
);
}
extern "C" {
#[doc = " Copy image in src_data to dst_data.\n\n @param dst_linesizes linesizes for the image in dst_data\n @param src_linesizes linesizes for the image in src_data"]
pub fn av_image_copy(
dst_data: *mut *mut u8,
dst_linesizes: *mut libc::c_int,
src_data: *mut *const u8,
src_linesizes: *const libc::c_int,
pix_fmt: AVPixelFormat,
width: libc::c_int,
height: libc::c_int,
);
}
extern "C" {
#[doc = " Copy image data located in uncacheable (e.g. GPU mapped) memory. Where\n available, this function will use special functionality for reading from such\n memory, which may result in greatly improved performance compared to plain\n av_image_copy().\n\n The data pointers and the linesizes must be aligned to the maximum required\n by the CPU architecture.\n\n @note The linesize parameters have the type ptrdiff_t here, while they are\n int for av_image_copy().\n @note On x86, the linesizes currently need to be aligned to the cacheline\n size (i.e. 64) to get improved performance."]
pub fn av_image_copy_uc_from(
dst_data: *mut *mut u8,
dst_linesizes: *const isize,
src_data: *mut *const u8,
src_linesizes: *const isize,
pix_fmt: AVPixelFormat,
width: libc::c_int,
height: libc::c_int,
);
}
extern "C" {
#[doc = " Setup the data pointers and linesizes based on the specified image\n parameters and the provided array.\n\n The fields of the given image are filled in by using the src\n address which points to the image data buffer. Depending on the\n specified pixel format, one or multiple image data pointers and\n line sizes will be set. If a planar format is specified, several\n pointers will be set pointing to the different picture planes and\n the line sizes of the different planes will be stored in the\n lines_sizes array. Call with src == NULL to get the required\n size for the src buffer.\n\n To allocate the buffer and fill in the dst_data and dst_linesize in\n one call, use av_image_alloc().\n\n @param dst_data data pointers to be filled in\n @param dst_linesize linesizes for the image in dst_data to be filled in\n @param src buffer which will contain or contains the actual image data, can be NULL\n @param pix_fmt the pixel format of the image\n @param width the width of the image in pixels\n @param height the height of the image in pixels\n @param align the value used in src for linesize alignment\n @return the size in bytes required for src, a negative error code\n in case of failure"]
pub fn av_image_fill_arrays(
dst_data: *mut *mut u8,
dst_linesize: *mut libc::c_int,
src: *const u8,
pix_fmt: AVPixelFormat,
width: libc::c_int,
height: libc::c_int,
align: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Return the size in bytes of the amount of data required to store an\n image with the given parameters.\n\n @param pix_fmt the pixel format of the image\n @param width the width of the image in pixels\n @param height the height of the image in pixels\n @param align the assumed linesize alignment\n @return the buffer size in bytes, a negative error code in case of failure"]
pub fn av_image_get_buffer_size(
pix_fmt: AVPixelFormat,
width: libc::c_int,
height: libc::c_int,
align: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Copy image data from an image into a buffer.\n\n av_image_get_buffer_size() can be used to compute the required size\n for the buffer to fill.\n\n @param dst a buffer into which picture data will be copied\n @param dst_size the size in bytes of dst\n @param src_data pointers containing the source image data\n @param src_linesize linesizes for the image in src_data\n @param pix_fmt the pixel format of the source image\n @param width the width of the source image in pixels\n @param height the height of the source image in pixels\n @param align the assumed linesize alignment for dst\n @return the number of bytes written to dst, or a negative value\n (error code) on error"]
pub fn av_image_copy_to_buffer(
dst: *mut u8,
dst_size: libc::c_int,
src_data: *const *const u8,
src_linesize: *const libc::c_int,
pix_fmt: AVPixelFormat,
width: libc::c_int,
height: libc::c_int,
align: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Check if the given dimension of an image is valid, meaning that all\n bytes of the image can be addressed with a signed int.\n\n @param w the width of the picture\n @param h the height of the picture\n @param log_offset the offset to sum to the log level for logging with log_ctx\n @param log_ctx the parent logging context, it may be NULL\n @return >= 0 if valid, a negative error code otherwise"]
pub fn av_image_check_size(
w: libc::c_uint,
h: libc::c_uint,
log_offset: libc::c_int,
log_ctx: *mut libc::c_void,
) -> libc::c_int;
}
extern "C" {
#[doc = " Check if the given dimension of an image is valid, meaning that all\n bytes of a plane of an image with the specified pix_fmt can be addressed\n with a signed int.\n\n @param w the width of the picture\n @param h the height of the picture\n @param max_pixels the maximum number of pixels the user wants to accept\n @param pix_fmt the pixel format, can be AV_PIX_FMT_NONE if unknown.\n @param log_offset the offset to sum to the log level for logging with log_ctx\n @param log_ctx the parent logging context, it may be NULL\n @return >= 0 if valid, a negative error code otherwise"]
pub fn av_image_check_size2(
w: libc::c_uint,
h: libc::c_uint,
max_pixels: i64,
pix_fmt: AVPixelFormat,
log_offset: libc::c_int,
log_ctx: *mut libc::c_void,
) -> libc::c_int;
}
extern "C" {
#[doc = " Check if the given sample aspect ratio of an image is valid.\n\n It is considered invalid if the denominator is 0 or if applying the ratio\n to the image size would make the smaller dimension less than 1. If the\n sar numerator is 0, it is considered unknown and will return as valid.\n\n @param w width of the image\n @param h height of the image\n @param sar sample aspect ratio of the image\n @return 0 if valid, a negative AVERROR code otherwise"]
pub fn av_image_check_sar(w: libc::c_uint, h: libc::c_uint, sar: AVRational) -> libc::c_int;
}
extern "C" {
#[doc = " Overwrite the image data with black. This is suitable for filling a\n sub-rectangle of an image, meaning the padding between the right most pixel\n and the left most pixel on the next line will not be overwritten. For some\n formats, the image size might be rounded up due to inherent alignment.\n\n If the pixel format has alpha, the alpha is cleared to opaque.\n\n This can return an error if the pixel format is not supported. Normally, all\n non-hwaccel pixel formats should be supported.\n\n Passing NULL for dst_data is allowed. Then the function returns whether the\n operation would have succeeded. (It can return an error if the pix_fmt is\n not supported.)\n\n @param dst_data data pointers to destination image\n @param dst_linesize linesizes for the destination image\n @param pix_fmt the pixel format of the image\n @param range the color range of the image (important for colorspaces such as YUV)\n @param width the width of the image in pixels\n @param height the height of the image in pixels\n @return 0 if the image data was cleared, a negative AVERROR code otherwise"]
pub fn av_image_fill_black(
dst_data: *mut *mut u8,
dst_linesize: *const isize,
pix_fmt: AVPixelFormat,
range: AVColorRange,
width: libc::c_int,
height: libc::c_int,
) -> libc::c_int;
}
#[doc = " Context structure for the Lagged Fibonacci PRNG.\n The exact layout, types and content of this struct may change and should\n not be accessed directly. Only its sizeof() is guranteed to stay the same\n to allow easy instanciation."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVLFG {
pub state: [libc::c_uint; 64usize],
pub index: libc::c_int,
}
#[test]
fn bindgen_test_layout_AVLFG() {
const UNINIT: ::std::mem::MaybeUninit<AVLFG> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVLFG>(),
260usize,
concat!("Size of: ", stringify!(AVLFG))
);
assert_eq!(
::std::mem::align_of::<AVLFG>(),
4usize,
concat!("Alignment of ", stringify!(AVLFG))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).state) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVLFG),
"::",
stringify!(state)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).index) as usize - ptr as usize },
256usize,
concat!(
"Offset of field: ",
stringify!(AVLFG),
"::",
stringify!(index)
)
);
}
extern "C" {
pub fn av_lfg_init(c: *mut AVLFG, seed: libc::c_uint);
}
extern "C" {
#[doc = " Seed the state of the ALFG using binary data.\n\n Return value: 0 on success, negative value (AVERROR) on failure."]
pub fn av_lfg_init_from_data(
c: *mut AVLFG,
data: *const u8,
length: libc::c_uint,
) -> libc::c_int;
}
extern "C" {
#[doc = " Get the next two numbers generated by a Box-Muller Gaussian\n generator using the random numbers issued by lfg.\n\n @param out array where the two generated numbers are placed"]
pub fn av_bmg_get(lfg: *mut AVLFG, out: *mut f64);
}
extern "C" {
#[doc = " @brief Decodes LZO 1x compressed data.\n @param out output buffer\n @param outlen size of output buffer, number of bytes left are returned here\n @param in input buffer\n @param inlen size of input buffer, number of bytes left are returned here\n @return 0 on success, otherwise a combination of the error flags above\n\n Make sure all buffers are appropriately padded, in must provide\n AV_LZO_INPUT_PADDING, out must provide AV_LZO_OUTPUT_PADDING additional bytes."]
pub fn av_lzo1x_decode(
out: *mut libc::c_void,
outlen: *mut libc::c_int,
in_: *const libc::c_void,
inlen: *mut libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " @defgroup lavu_md5 MD5\n @ingroup lavu_hash\n MD5 hash function implementation.\n\n @{"]
pub static av_md5_size: libc::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVMD5 {
_unused: [u8; 0],
}
extern "C" {
#[doc = " Allocate an AVMD5 context."]
pub fn av_md5_alloc() -> *mut AVMD5;
}
extern "C" {
#[doc = " Initialize MD5 hashing.\n\n @param ctx pointer to the function context (of size av_md5_size)"]
pub fn av_md5_init(ctx: *mut AVMD5);
}
extern "C" {
pub fn av_md5_update(ctx: *mut AVMD5, src: *const u8, len: libc::c_int);
}
extern "C" {
#[doc = " Finish hashing and output digest value.\n\n @param ctx hash function context\n @param dst buffer where output digest value is stored"]
pub fn av_md5_final(ctx: *mut AVMD5, dst: *mut u8);
}
extern "C" {
pub fn av_md5_sum(dst: *mut u8, src: *const u8, len: libc::c_int);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVMotionVector {
#[doc = " Where the current macroblock comes from; negative value when it comes\n from the past, positive value when it comes from the future.\n XXX: set exact relative ref frame reference instead of a +/- 1 \"direction\"."]
pub source: i32,
#[doc = " Width and height of the block."]
pub w: u8,
#[doc = " Width and height of the block."]
pub h: u8,
#[doc = " Absolute source position. Can be outside the frame area."]
pub src_x: i16,
#[doc = " Absolute source position. Can be outside the frame area."]
pub src_y: i16,
#[doc = " Absolute destination position. Can be outside the frame area."]
pub dst_x: i16,
#[doc = " Absolute destination position. Can be outside the frame area."]
pub dst_y: i16,
#[doc = " Extra flag information.\n Currently unused."]
pub flags: u64,
#[doc = " Motion vector\n src_x = dst_x + motion_x / motion_scale\n src_y = dst_y + motion_y / motion_scale"]
pub motion_x: i32,
#[doc = " Motion vector\n src_x = dst_x + motion_x / motion_scale\n src_y = dst_y + motion_y / motion_scale"]
pub motion_y: i32,
pub motion_scale: u16,
}
#[test]
fn bindgen_test_layout_AVMotionVector() {
const UNINIT: ::std::mem::MaybeUninit<AVMotionVector> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVMotionVector>(),
40usize,
concat!("Size of: ", stringify!(AVMotionVector))
);
assert_eq!(
::std::mem::align_of::<AVMotionVector>(),
8usize,
concat!("Alignment of ", stringify!(AVMotionVector))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).source) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVMotionVector),
"::",
stringify!(source)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(AVMotionVector),
"::",
stringify!(w)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize },
5usize,
concat!(
"Offset of field: ",
stringify!(AVMotionVector),
"::",
stringify!(h)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).src_x) as usize - ptr as usize },
6usize,
concat!(
"Offset of field: ",
stringify!(AVMotionVector),
"::",
stringify!(src_x)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).src_y) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVMotionVector),
"::",
stringify!(src_y)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).dst_x) as usize - ptr as usize },
10usize,
concat!(
"Offset of field: ",
stringify!(AVMotionVector),
"::",
stringify!(dst_x)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).dst_y) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(AVMotionVector),
"::",
stringify!(dst_y)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVMotionVector),
"::",
stringify!(flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).motion_x) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(AVMotionVector),
"::",
stringify!(motion_x)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).motion_y) as usize - ptr as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(AVMotionVector),
"::",
stringify!(motion_y)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).motion_scale) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(AVMotionVector),
"::",
stringify!(motion_scale)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVMurMur3 {
_unused: [u8; 0],
}
extern "C" {
#[doc = " Allocate an AVMurMur3 hash context.\n\n @return Uninitialized hash context or `NULL` in case of error"]
pub fn av_murmur3_alloc() -> *mut AVMurMur3;
}
extern "C" {
#[doc = " Initialize or reinitialize an AVMurMur3 hash context with a seed.\n\n @param[out] c Hash context\n @param[in] seed Random seed\n\n @see av_murmur3_init()\n @see @ref lavu_murmur3_seedinfo \"Detailed description\" on a discussion of\n seeds for MurmurHash3."]
pub fn av_murmur3_init_seeded(c: *mut AVMurMur3, seed: u64);
}
extern "C" {
#[doc = " Initialize or reinitialize an AVMurMur3 hash context.\n\n Equivalent to av_murmur3_init_seeded() with a built-in seed.\n\n @param[out] c Hash context\n\n @see av_murmur3_init_seeded()\n @see @ref lavu_murmur3_seedinfo \"Detailed description\" on a discussion of\n seeds for MurmurHash3."]
pub fn av_murmur3_init(c: *mut AVMurMur3);
}
extern "C" {
pub fn av_murmur3_update(c: *mut AVMurMur3, src: *const u8, len: libc::c_int);
}
extern "C" {
#[doc = " Finish hashing and output digest value.\n\n @param[in,out] c Hash context\n @param[out] dst Buffer where output digest value is stored"]
pub fn av_murmur3_final(c: *mut AVMurMur3, dst: *mut u8);
}
extern "C" {
#[doc = " Parse str and store the parsed ratio in q.\n\n Note that a ratio with infinite (1/0) or negative value is\n considered valid, so you should check on the returned value if you\n want to exclude those values.\n\n The undefined value can be expressed using the \"0:0\" string.\n\n @param[in,out] q pointer to the AVRational which will contain the ratio\n @param[in] str the string to parse: it has to be a string in the format\n num:den, a float number or an expression\n @param[in] max the maximum allowed numerator and denominator\n @param[in] log_offset log level offset which is applied to the log\n level of log_ctx\n @param[in] log_ctx parent logging context\n @return >= 0 on success, a negative error code otherwise"]
pub fn av_parse_ratio(
q: *mut AVRational,
str_: *const libc::c_char,
max: libc::c_int,
log_offset: libc::c_int,
log_ctx: *mut libc::c_void,
) -> libc::c_int;
}
extern "C" {
#[doc = " Parse str and put in width_ptr and height_ptr the detected values.\n\n @param[in,out] width_ptr pointer to the variable which will contain the detected\n width value\n @param[in,out] height_ptr pointer to the variable which will contain the detected\n height value\n @param[in] str the string to parse: it has to be a string in the format\n width x height or a valid video size abbreviation.\n @return >= 0 on success, a negative error code otherwise"]
pub fn av_parse_video_size(
width_ptr: *mut libc::c_int,
height_ptr: *mut libc::c_int,
str_: *const libc::c_char,
) -> libc::c_int;
}
extern "C" {
#[doc = " Parse str and store the detected values in *rate.\n\n @param[in,out] rate pointer to the AVRational which will contain the detected\n frame rate\n @param[in] str the string to parse: it has to be a string in the format\n rate_num / rate_den, a float number or a valid video rate abbreviation\n @return >= 0 on success, a negative error code otherwise"]
pub fn av_parse_video_rate(rate: *mut AVRational, str_: *const libc::c_char) -> libc::c_int;
}
extern "C" {
#[doc = " Put the RGBA values that correspond to color_string in rgba_color.\n\n @param color_string a string specifying a color. It can be the name of\n a color (case insensitive match) or a [0x|#]RRGGBB[AA] sequence,\n possibly followed by \"@\" and a string representing the alpha\n component.\n The alpha component may be a string composed by \"0x\" followed by an\n hexadecimal number or a decimal number between 0.0 and 1.0, which\n represents the opacity value (0x00/0.0 means completely transparent,\n 0xff/1.0 completely opaque).\n If the alpha component is not specified then 0xff is assumed.\n The string \"random\" will result in a random color.\n @param slen length of the initial part of color_string containing the\n color. It can be set to -1 if color_string is a null terminated string\n containing nothing else than the color.\n @return >= 0 in case of success, a negative value in case of\n failure (for example if color_string cannot be parsed)."]
pub fn av_parse_color(
rgba_color: *mut u8,
color_string: *const libc::c_char,
slen: libc::c_int,
log_ctx: *mut libc::c_void,
) -> libc::c_int;
}
extern "C" {
#[doc = " Get the name of a color from the internal table of hard-coded named\n colors.\n\n This function is meant to enumerate the color names recognized by\n av_parse_color().\n\n @param color_idx index of the requested color, starting from 0\n @param rgbp if not NULL, will point to a 3-elements array with the color value in RGB\n @return the color name string or NULL if color_idx is not in the array"]
pub fn av_get_known_color_name(
color_idx: libc::c_int,
rgb: *mut *const u8,
) -> *const libc::c_char;
}
extern "C" {
#[doc = " Parse timestr and return in *time a corresponding number of\n microseconds.\n\n @param timeval puts here the number of microseconds corresponding\n to the string in timestr. If the string represents a duration, it\n is the number of microseconds contained in the time interval. If\n the string is a date, is the number of microseconds since 1st of\n January, 1970 up to the time of the parsed date. If timestr cannot\n be successfully parsed, set *time to INT64_MIN.\n\n @param timestr a string representing a date or a duration.\n - If a date the syntax is:\n @code\n [{YYYY-MM-DD|YYYYMMDD}[T|t| ]]{{HH:MM:SS[.m...]]]}|{HHMMSS[.m...]]]}}[Z]\n now\n @endcode\n If the value is \"now\" it takes the current time.\n Time is local time unless Z is appended, in which case it is\n interpreted as UTC.\n If the year-month-day part is not specified it takes the current\n year-month-day.\n - If a duration the syntax is:\n @code\n [-][HH:]MM:SS[.m...]\n [-]S+[.m...]\n @endcode\n @param duration flag which tells how to interpret timestr, if not\n zero timestr is interpreted as a duration, otherwise as a date\n @return >= 0 in case of success, a negative value corresponding to an\n AVERROR code otherwise"]
pub fn av_parse_time(
timeval: *mut i64,
timestr: *const libc::c_char,
duration: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Attempt to find a specific tag in a URL.\n\n syntax: '?tag1=val1&tag2=val2...'. Little URL decoding is done.\n Return 1 if found."]
pub fn av_find_info_tag(
arg: *mut libc::c_char,
arg_size: libc::c_int,
tag1: *const libc::c_char,
info: *const libc::c_char,
) -> libc::c_int;
}
extern "C" {
#[doc = " Simplified version of strptime\n\n Parse the input string p according to the format string fmt and\n store its results in the structure dt.\n This implementation supports only a subset of the formats supported\n by the standard strptime().\n\n The supported input field descriptors are listed below.\n - %H: the hour as a decimal number, using a 24-hour clock, in the\n range '00' through '23'\n - %J: hours as a decimal number, in the range '0' through INT_MAX\n - %M: the minute as a decimal number, using a 24-hour clock, in the\n range '00' through '59'\n - %S: the second as a decimal number, using a 24-hour clock, in the\n range '00' through '59'\n - %Y: the year as a decimal number, using the Gregorian calendar\n - %m: the month as a decimal number, in the range '1' through '12'\n - %d: the day of the month as a decimal number, in the range '1'\n through '31'\n - %T: alias for '%H:%M:%S'\n - %%: a literal '%'\n\n @return a pointer to the first character not processed in this function\n call. In case the input string contains more characters than\n required by the format string the return value points right after\n the last consumed input character. In case the whole input string\n is consumed the return value points to the null byte at the end of\n the string. On failure NULL is returned."]
pub fn av_small_strptime(
p: *const libc::c_char,
fmt: *const libc::c_char,
dt: *mut tm,
) -> *mut libc::c_char;
}
extern "C" {
#[doc = " Convert the decomposed UTC time in tm to a time_t value."]
pub fn av_timegm(tm: *mut tm) -> time_t;
}
extern "C" {
#[doc = " Get a seed to use in conjunction with random functions.\n This function tries to provide a good seed at a best effort bases.\n Its possible to call this function multiple times if more bits are needed.\n It can be quite slow, which is why it should only be used as seed for a faster\n PRNG. The quality of the seed depends on the platform."]
pub fn av_get_random_seed() -> u32;
}
#[doc = " ReplayGain information (see\n http://wiki.hydrogenaudio.org/index.php?title=ReplayGain_1.0_specification).\n The size of this struct is a part of the public ABI."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVReplayGain {
#[doc = " Track replay gain in microbels (divide by 100000 to get the value in dB).\n Should be set to INT32_MIN when unknown."]
pub track_gain: i32,
#[doc = " Peak track amplitude, with 100000 representing full scale (but values\n may overflow). 0 when unknown."]
pub track_peak: u32,
#[doc = " Same as track_gain, but for the whole album."]
pub album_gain: i32,
#[doc = " Same as track_peak, but for the whole album,"]
pub album_peak: u32,
}
#[test]
fn bindgen_test_layout_AVReplayGain() {
const UNINIT: ::std::mem::MaybeUninit<AVReplayGain> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVReplayGain>(),
16usize,
concat!("Size of: ", stringify!(AVReplayGain))
);
assert_eq!(
::std::mem::align_of::<AVReplayGain>(),
4usize,
concat!("Alignment of ", stringify!(AVReplayGain))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).track_gain) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVReplayGain),
"::",
stringify!(track_gain)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).track_peak) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(AVReplayGain),
"::",
stringify!(track_peak)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).album_gain) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVReplayGain),
"::",
stringify!(album_gain)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).album_peak) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(AVReplayGain),
"::",
stringify!(album_peak)
)
);
}
extern "C" {
#[doc = " @defgroup lavu_ripemd RIPEMD\n @ingroup lavu_hash\n RIPEMD hash function implementation.\n\n @{"]
pub static av_ripemd_size: libc::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVRIPEMD {
_unused: [u8; 0],
}
extern "C" {
#[doc = " Allocate an AVRIPEMD context."]
pub fn av_ripemd_alloc() -> *mut AVRIPEMD;
}
extern "C" {
#[doc = " Initialize RIPEMD hashing.\n\n @param context pointer to the function context (of size av_ripemd_size)\n @param bits number of bits in digest (128, 160, 256 or 320 bits)\n @return zero if initialization succeeded, -1 otherwise"]
pub fn av_ripemd_init(context: *mut AVRIPEMD, bits: libc::c_int) -> libc::c_int;
}
extern "C" {
pub fn av_ripemd_update(context: *mut AVRIPEMD, data: *const u8, len: libc::c_uint);
}
extern "C" {
#[doc = " Finish hashing and output digest value.\n\n @param context hash function context\n @param digest buffer where output digest value is stored"]
pub fn av_ripemd_final(context: *mut AVRIPEMD, digest: *mut u8);
}
extern "C" {
#[doc = " @defgroup lavu_sha SHA\n @ingroup lavu_hash\n SHA-1 and SHA-256 (Secure Hash Algorithm) hash function implementations.\n\n This module supports the following SHA hash functions:\n\n - SHA-1: 160 bits\n - SHA-224: 224 bits, as a variant of SHA-2\n - SHA-256: 256 bits, as a variant of SHA-2\n\n @see For SHA-384, SHA-512, and variants thereof, see @ref lavu_sha512.\n\n @{"]
pub static av_sha_size: libc::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVSHA {
_unused: [u8; 0],
}
extern "C" {
#[doc = " Allocate an AVSHA context."]
pub fn av_sha_alloc() -> *mut AVSHA;
}
extern "C" {
#[doc = " Initialize SHA-1 or SHA-2 hashing.\n\n @param context pointer to the function context (of size av_sha_size)\n @param bits number of bits in digest (SHA-1 - 160 bits, SHA-2 224 or 256 bits)\n @return zero if initialization succeeded, -1 otherwise"]
pub fn av_sha_init(context: *mut AVSHA, bits: libc::c_int) -> libc::c_int;
}
extern "C" {
pub fn av_sha_update(ctx: *mut AVSHA, data: *const u8, len: libc::c_uint);
}
extern "C" {
#[doc = " Finish hashing and output digest value.\n\n @param context hash function context\n @param digest buffer where output digest value is stored"]
pub fn av_sha_final(context: *mut AVSHA, digest: *mut u8);
}
extern "C" {
#[doc = " @defgroup lavu_sha512 SHA-512\n @ingroup lavu_hash\n SHA-512 (Secure Hash Algorithm) hash function implementations.\n\n This module supports the following SHA-2 hash functions:\n\n - SHA-512/224: 224 bits\n - SHA-512/256: 256 bits\n - SHA-384: 384 bits\n - SHA-512: 512 bits\n\n @see For SHA-1, SHA-256, and variants thereof, see @ref lavu_sha.\n\n @{"]
pub static av_sha512_size: libc::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVSHA512 {
_unused: [u8; 0],
}
extern "C" {
#[doc = " Allocate an AVSHA512 context."]
pub fn av_sha512_alloc() -> *mut AVSHA512;
}
extern "C" {
#[doc = " Initialize SHA-2 512 hashing.\n\n @param context pointer to the function context (of size av_sha512_size)\n @param bits number of bits in digest (224, 256, 384 or 512 bits)\n @return zero if initialization succeeded, -1 otherwise"]
pub fn av_sha512_init(context: *mut AVSHA512, bits: libc::c_int) -> libc::c_int;
}
extern "C" {
pub fn av_sha512_update(context: *mut AVSHA512, data: *const u8, len: libc::c_uint);
}
extern "C" {
#[doc = " Finish hashing and output digest value.\n\n @param context hash function context\n @param digest buffer where output digest value is stored"]
pub fn av_sha512_final(context: *mut AVSHA512, digest: *mut u8);
}
#[repr(u32)]
#[doc = " List of possible 3D Types"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVStereo3DType {
#[doc = " Video is not stereoscopic (and metadata has to be there)."]
AV_STEREO3D_2D = 0,
#[doc = " Views are next to each other.\n\n @code{.unparsed}\n LLLLRRRR\n LLLLRRRR\n LLLLRRRR\n ...\n @endcode"]
AV_STEREO3D_SIDEBYSIDE = 1,
#[doc = " Views are on top of each other.\n\n @code{.unparsed}\n LLLLLLLL\n LLLLLLLL\n RRRRRRRR\n RRRRRRRR\n @endcode"]
AV_STEREO3D_TOPBOTTOM = 2,
#[doc = " Views are alternated temporally.\n\n @code{.unparsed}\n frame0 frame1 frame2 ...\n LLLLLLLL RRRRRRRR LLLLLLLL\n LLLLLLLL RRRRRRRR LLLLLLLL\n LLLLLLLL RRRRRRRR LLLLLLLL\n ... ... ...\n @endcode"]
AV_STEREO3D_FRAMESEQUENCE = 3,
#[doc = " Views are packed in a checkerboard-like structure per pixel.\n\n @code{.unparsed}\n LRLRLRLR\n RLRLRLRL\n LRLRLRLR\n ...\n @endcode"]
AV_STEREO3D_CHECKERBOARD = 4,
#[doc = " Views are next to each other, but when upscaling\n apply a checkerboard pattern.\n\n @code{.unparsed}\n LLLLRRRR L L L L R R R R\n LLLLRRRR => L L L L R R R R\n LLLLRRRR L L L L R R R R\n LLLLRRRR L L L L R R R R\n @endcode"]
AV_STEREO3D_SIDEBYSIDE_QUINCUNX = 5,
#[doc = " Views are packed per line, as if interlaced.\n\n @code{.unparsed}\n LLLLLLLL\n RRRRRRRR\n LLLLLLLL\n ...\n @endcode"]
AV_STEREO3D_LINES = 6,
#[doc = " Views are packed per column.\n\n @code{.unparsed}\n LRLRLRLR\n LRLRLRLR\n LRLRLRLR\n ...\n @endcode"]
AV_STEREO3D_COLUMNS = 7,
}
#[repr(u32)]
#[doc = " List of possible view types."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVStereo3DView {
#[doc = " Frame contains two packed views."]
AV_STEREO3D_VIEW_PACKED = 0,
#[doc = " Frame contains only the left view."]
AV_STEREO3D_VIEW_LEFT = 1,
#[doc = " Frame contains only the right view."]
AV_STEREO3D_VIEW_RIGHT = 2,
}
#[doc = " Stereo 3D type: this structure describes how two videos are packed\n within a single video surface, with additional information as needed.\n\n @note The struct must be allocated with av_stereo3d_alloc() and\n its size is not a part of the public ABI."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVStereo3D {
#[doc = " How views are packed within the video."]
pub type_: AVStereo3DType,
#[doc = " Additional information about the frame packing."]
pub flags: libc::c_int,
#[doc = " Determines which views are packed."]
pub view: AVStereo3DView,
}
#[test]
fn bindgen_test_layout_AVStereo3D() {
const UNINIT: ::std::mem::MaybeUninit<AVStereo3D> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVStereo3D>(),
12usize,
concat!("Size of: ", stringify!(AVStereo3D))
);
assert_eq!(
::std::mem::align_of::<AVStereo3D>(),
4usize,
concat!("Alignment of ", stringify!(AVStereo3D))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVStereo3D),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(AVStereo3D),
"::",
stringify!(flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).view) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVStereo3D),
"::",
stringify!(view)
)
);
}
extern "C" {
#[doc = " Allocate an AVStereo3D structure and set its fields to default values.\n The resulting struct can be freed using av_freep().\n\n @return An AVStereo3D filled with default values or NULL on failure."]
pub fn av_stereo3d_alloc() -> *mut AVStereo3D;
}
extern "C" {
#[doc = " Allocate a complete AVFrameSideData and add it to the frame.\n\n @param frame The frame which side data is added to.\n\n @return The AVStereo3D structure to be filled by caller."]
pub fn av_stereo3d_create_side_data(frame: *mut AVFrame) -> *mut AVStereo3D;
}
extern "C" {
#[doc = " Provide a human-readable name of a given stereo3d type.\n\n @param type The input stereo3d type value.\n\n @return The name of the stereo3d value, or \"unknown\"."]
pub fn av_stereo3d_type_name(type_: libc::c_uint) -> *const libc::c_char;
}
extern "C" {
#[doc = " Get the AVStereo3DType form a human-readable name.\n\n @param name The input string.\n\n @return The AVStereo3DType value, or -1 if not found."]
pub fn av_stereo3d_from_name(name: *const libc::c_char) -> libc::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVThreadMessageQueue {
_unused: [u8; 0],
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVThreadMessageFlags {
#[doc = " Perform non-blocking operation.\n If this flag is set, send and recv operations are non-blocking and\n return AVERROR(EAGAIN) immediately if they can not proceed."]
AV_THREAD_MESSAGE_NONBLOCK = 1,
}
extern "C" {
#[doc = " Allocate a new message queue.\n\n @param mq pointer to the message queue\n @param nelem maximum number of elements in the queue\n @param elsize size of each element in the queue\n @return >=0 for success; <0 for error, in particular AVERROR(ENOSYS) if\n lavu was built without thread support"]
pub fn av_thread_message_queue_alloc(
mq: *mut *mut AVThreadMessageQueue,
nelem: libc::c_uint,
elsize: libc::c_uint,
) -> libc::c_int;
}
extern "C" {
#[doc = " Free a message queue.\n\n The message queue must no longer be in use by another thread."]
pub fn av_thread_message_queue_free(mq: *mut *mut AVThreadMessageQueue);
}
extern "C" {
#[doc = " Send a message on the queue."]
pub fn av_thread_message_queue_send(
mq: *mut AVThreadMessageQueue,
msg: *mut libc::c_void,
flags: libc::c_uint,
) -> libc::c_int;
}
extern "C" {
#[doc = " Receive a message from the queue."]
pub fn av_thread_message_queue_recv(
mq: *mut AVThreadMessageQueue,
msg: *mut libc::c_void,
flags: libc::c_uint,
) -> libc::c_int;
}
extern "C" {
#[doc = " Set the sending error code.\n\n If the error code is set to non-zero, av_thread_message_queue_send() will\n return it immediately. Conventional values, such as AVERROR_EOF or\n AVERROR(EAGAIN), can be used to cause the sending thread to stop or\n suspend its operation."]
pub fn av_thread_message_queue_set_err_send(mq: *mut AVThreadMessageQueue, err: libc::c_int);
}
extern "C" {
#[doc = " Set the receiving error code.\n\n If the error code is set to non-zero, av_thread_message_queue_recv() will\n return it immediately when there are no longer available messages.\n Conventional values, such as AVERROR_EOF or AVERROR(EAGAIN), can be used\n to cause the receiving thread to stop or suspend its operation."]
pub fn av_thread_message_queue_set_err_recv(mq: *mut AVThreadMessageQueue, err: libc::c_int);
}
extern "C" {
#[doc = " Set the optional free message callback function which will be called if an\n operation is removing messages from the queue."]
pub fn av_thread_message_queue_set_free_func(
mq: *mut AVThreadMessageQueue,
free_func: ::std::option::Option<unsafe extern "C" fn(msg: *mut libc::c_void)>,
);
}
extern "C" {
#[doc = " Return the current number of messages in the queue.\n\n @return the current number of messages or AVERROR(ENOSYS) if lavu was built\n without thread support"]
pub fn av_thread_message_queue_nb_elems(mq: *mut AVThreadMessageQueue) -> libc::c_int;
}
extern "C" {
#[doc = " Flush the message queue\n\n This function is mostly equivalent to reading and free-ing every message\n except that it will be done in a single operation (no lock/unlock between\n reads)."]
pub fn av_thread_message_flush(mq: *mut AVThreadMessageQueue);
}
extern "C" {
#[doc = " Get the current time in microseconds."]
pub fn av_gettime() -> i64;
}
extern "C" {
#[doc = " Get the current time in microseconds since some unspecified starting point.\n On platforms that support it, the time comes from a monotonic clock\n This property makes this time source ideal for measuring relative time.\n The returned values may not be monotonic on platforms where a monotonic\n clock is not available."]
pub fn av_gettime_relative() -> i64;
}
extern "C" {
#[doc = " Indicates with a boolean result if the av_gettime_relative() time source\n is monotonic."]
pub fn av_gettime_relative_is_monotonic() -> libc::c_int;
}
extern "C" {
#[doc = " Sleep for a period of time. Although the duration is expressed in\n microseconds, the actual delay may be rounded to the precision of the\n system timer.\n\n @param usec Number of microseconds to sleep.\n @return zero on success or (negative) error code."]
pub fn av_usleep(usec: libc::c_uint) -> libc::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum AVTimecodeFlag {
#[doc = "< timecode is drop frame"]
AV_TIMECODE_FLAG_DROPFRAME = 1,
#[doc = "< timecode wraps after 24 hours"]
AV_TIMECODE_FLAG_24HOURSMAX = 2,
#[doc = "< negative time values are allowed"]
AV_TIMECODE_FLAG_ALLOWNEGATIVE = 4,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVTimecode {
#[doc = "< timecode frame start (first base frame number)"]
pub start: libc::c_int,
#[doc = "< flags such as drop frame, +24 hours support, ..."]
pub flags: u32,
#[doc = "< frame rate in rational form"]
pub rate: AVRational,
#[doc = "< frame per second; must be consistent with the rate field"]
pub fps: libc::c_uint,
}
#[test]
fn bindgen_test_layout_AVTimecode() {
const UNINIT: ::std::mem::MaybeUninit<AVTimecode> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVTimecode>(),
20usize,
concat!("Size of: ", stringify!(AVTimecode))
);
assert_eq!(
::std::mem::align_of::<AVTimecode>(),
4usize,
concat!("Alignment of ", stringify!(AVTimecode))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).start) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVTimecode),
"::",
stringify!(start)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(AVTimecode),
"::",
stringify!(flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rate) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVTimecode),
"::",
stringify!(rate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).fps) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVTimecode),
"::",
stringify!(fps)
)
);
}
extern "C" {
#[doc = " Adjust frame number for NTSC drop frame time code.\n\n @param framenum frame number to adjust\n @param fps frame per second, multiples of 30\n @return adjusted frame number\n @warning adjustment is only valid for multiples of NTSC 29.97"]
pub fn av_timecode_adjust_ntsc_framenum2(
framenum: libc::c_int,
fps: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Convert frame number to SMPTE 12M binary representation.\n\n @param tc timecode data correctly initialized\n @param framenum frame number\n @return the SMPTE binary representation\n\n See SMPTE ST 314M-2005 Sec 4.4.2.2.1 \"Time code pack (TC)\"\n the format description as follows:\n bits 0-5: hours, in BCD(6bits)\n bits 6: BGF1\n bits 7: BGF2 (NTSC) or FIELD (PAL)\n bits 8-14: minutes, in BCD(7bits)\n bits 15: BGF0 (NTSC) or BGF2 (PAL)\n bits 16-22: seconds, in BCD(7bits)\n bits 23: FIELD (NTSC) or BGF0 (PAL)\n bits 24-29: frames, in BCD(6bits)\n bits 30: drop frame flag (0: non drop, 1: drop)\n bits 31: color frame flag (0: unsync mode, 1: sync mode)\n @note BCD numbers (6 or 7 bits): 4 or 5 lower bits for units, 2 higher bits for tens.\n @note Frame number adjustment is automatically done in case of drop timecode,\n you do NOT have to call av_timecode_adjust_ntsc_framenum2().\n @note The frame number is relative to tc->start.\n @note Color frame (CF) and binary group flags (BGF) bits are set to zero."]
pub fn av_timecode_get_smpte_from_framenum(tc: *const AVTimecode, framenum: libc::c_int)
-> u32;
}
extern "C" {
#[doc = " Convert sei info to SMPTE 12M binary representation.\n\n @param rate frame rate in rational form\n @param drop drop flag\n @param hh hour\n @param mm minute\n @param ss second\n @param ff frame number\n @return the SMPTE binary representation"]
pub fn av_timecode_get_smpte(
rate: AVRational,
drop: libc::c_int,
hh: libc::c_int,
mm: libc::c_int,
ss: libc::c_int,
ff: libc::c_int,
) -> u32;
}
extern "C" {
#[doc = " Load timecode string in buf.\n\n @param buf destination buffer, must be at least AV_TIMECODE_STR_SIZE long\n @param tc timecode data correctly initialized\n @param framenum frame number\n @return the buf parameter\n\n @note Timecode representation can be a negative timecode and have more than\n 24 hours, but will only be honored if the flags are correctly set.\n @note The frame number is relative to tc->start."]
pub fn av_timecode_make_string(
tc: *const AVTimecode,
buf: *mut libc::c_char,
framenum: libc::c_int,
) -> *mut libc::c_char;
}
extern "C" {
#[doc = " Get the timecode string from the SMPTE timecode format.\n\n In contrast to av_timecode_make_smpte_tc_string this function supports 50/60\n fps timecodes by using the field bit.\n\n @param buf destination buffer, must be at least AV_TIMECODE_STR_SIZE long\n @param rate frame rate of the timecode\n @param tcsmpte the 32-bit SMPTE timecode\n @param prevent_df prevent the use of a drop flag when it is known the DF bit\n is arbitrary\n @param skip_field prevent the use of a field flag when it is known the field\n bit is arbitrary (e.g. because it is used as PC flag)\n @return the buf parameter"]
pub fn av_timecode_make_smpte_tc_string2(
buf: *mut libc::c_char,
rate: AVRational,
tcsmpte: u32,
prevent_df: libc::c_int,
skip_field: libc::c_int,
) -> *mut libc::c_char;
}
extern "C" {
#[doc = " Get the timecode string from the SMPTE timecode format.\n\n @param buf destination buffer, must be at least AV_TIMECODE_STR_SIZE long\n @param tcsmpte the 32-bit SMPTE timecode\n @param prevent_df prevent the use of a drop flag when it is known the DF bit\n is arbitrary\n @return the buf parameter"]
pub fn av_timecode_make_smpte_tc_string(
buf: *mut libc::c_char,
tcsmpte: u32,
prevent_df: libc::c_int,
) -> *mut libc::c_char;
}
extern "C" {
#[doc = " Get the timecode string from the 25-bit timecode format (MPEG GOP format).\n\n @param buf destination buffer, must be at least AV_TIMECODE_STR_SIZE long\n @param tc25bit the 25-bits timecode\n @return the buf parameter"]
pub fn av_timecode_make_mpeg_tc_string(
buf: *mut libc::c_char,
tc25bit: u32,
) -> *mut libc::c_char;
}
extern "C" {
#[doc = " Init a timecode struct with the passed parameters.\n\n @param log_ctx a pointer to an arbitrary struct of which the first field\n is a pointer to an AVClass struct (used for av_log)\n @param tc pointer to an allocated AVTimecode\n @param rate frame rate in rational form\n @param flags miscellaneous flags such as drop frame, +24 hours, ...\n (see AVTimecodeFlag)\n @param frame_start the first frame number\n @return 0 on success, AVERROR otherwise"]
pub fn av_timecode_init(
tc: *mut AVTimecode,
rate: AVRational,
flags: libc::c_int,
frame_start: libc::c_int,
log_ctx: *mut libc::c_void,
) -> libc::c_int;
}
extern "C" {
#[doc = " Init a timecode struct from the passed timecode components.\n\n @param log_ctx a pointer to an arbitrary struct of which the first field\n is a pointer to an AVClass struct (used for av_log)\n @param tc pointer to an allocated AVTimecode\n @param rate frame rate in rational form\n @param flags miscellaneous flags such as drop frame, +24 hours, ...\n (see AVTimecodeFlag)\n @param hh hours\n @param mm minutes\n @param ss seconds\n @param ff frames\n @return 0 on success, AVERROR otherwise"]
pub fn av_timecode_init_from_components(
tc: *mut AVTimecode,
rate: AVRational,
flags: libc::c_int,
hh: libc::c_int,
mm: libc::c_int,
ss: libc::c_int,
ff: libc::c_int,
log_ctx: *mut libc::c_void,
) -> libc::c_int;
}
extern "C" {
#[doc = " Parse timecode representation (hh:mm:ss[:;.]ff).\n\n @param log_ctx a pointer to an arbitrary struct of which the first field is a\n pointer to an AVClass struct (used for av_log).\n @param tc pointer to an allocated AVTimecode\n @param rate frame rate in rational form\n @param str timecode string which will determine the frame start\n @return 0 on success, AVERROR otherwise"]
pub fn av_timecode_init_from_string(
tc: *mut AVTimecode,
rate: AVRational,
str_: *const libc::c_char,
log_ctx: *mut libc::c_void,
) -> libc::c_int;
}
extern "C" {
#[doc = " Check if the timecode feature is available for the given frame rate\n\n @return 0 if supported, <0 otherwise"]
pub fn av_timecode_check_frame_rate(rate: AVRational) -> libc::c_int;
}
extern "C" {
#[doc = " @file\n @brief Public header for libavutil TWOFISH algorithm\n @defgroup lavu_twofish TWOFISH\n @ingroup lavu_crypto\n @{"]
pub static av_twofish_size: libc::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVTWOFISH {
_unused: [u8; 0],
}
extern "C" {
#[doc = " Allocate an AVTWOFISH context\n To free the struct: av_free(ptr)"]
pub fn av_twofish_alloc() -> *mut AVTWOFISH;
}
extern "C" {
#[doc = " Initialize an AVTWOFISH context.\n\n @param ctx an AVTWOFISH context\n @param key a key of size ranging from 1 to 32 bytes used for encryption/decryption\n @param key_bits number of keybits: 128, 192, 256 If less than the required, padded with zeroes to nearest valid value; return value is 0 if key_bits is 128/192/256, -1 if less than 0, 1 otherwise"]
pub fn av_twofish_init(
ctx: *mut AVTWOFISH,
key: *const u8,
key_bits: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Encrypt or decrypt a buffer using a previously initialized context\n\n @param ctx an AVTWOFISH context\n @param dst destination array, can be equal to src\n @param src source array, can be equal to dst\n @param count number of 16 byte blocks\n @paran iv initialization vector for CBC mode, NULL for ECB mode\n @param decrypt 0 for encryption, 1 for decryption"]
pub fn av_twofish_crypt(
ctx: *mut AVTWOFISH,
dst: *mut u8,
src: *const u8,
count: libc::c_int,
iv: *mut u8,
decrypt: libc::c_int,
);
}
#[doc = " @file\n @brief Public header for libavutil XTEA algorithm\n @defgroup lavu_xtea XTEA\n @ingroup lavu_crypto\n @{"]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVXTEA {
pub key: [u32; 16usize],
}
#[test]
fn bindgen_test_layout_AVXTEA() {
const UNINIT: ::std::mem::MaybeUninit<AVXTEA> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVXTEA>(),
64usize,
concat!("Size of: ", stringify!(AVXTEA))
);
assert_eq!(
::std::mem::align_of::<AVXTEA>(),
4usize,
concat!("Alignment of ", stringify!(AVXTEA))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).key) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVXTEA),
"::",
stringify!(key)
)
);
}
extern "C" {
#[doc = " Allocate an AVXTEA context."]
pub fn av_xtea_alloc() -> *mut AVXTEA;
}
extern "C" {
#[doc = " Initialize an AVXTEA context.\n\n @param ctx an AVXTEA context\n @param key a key of 16 bytes used for encryption/decryption,\n interpreted as big endian 32 bit numbers"]
pub fn av_xtea_init(ctx: *mut AVXTEA, key: *const u8);
}
extern "C" {
#[doc = " Initialize an AVXTEA context.\n\n @param ctx an AVXTEA context\n @param key a key of 16 bytes used for encryption/decryption,\n interpreted as little endian 32 bit numbers"]
pub fn av_xtea_le_init(ctx: *mut AVXTEA, key: *const u8);
}
extern "C" {
#[doc = " Encrypt or decrypt a buffer using a previously initialized context,\n in big endian format.\n\n @param ctx an AVXTEA context\n @param dst destination array, can be equal to src\n @param src source array, can be equal to dst\n @param count number of 8 byte blocks\n @param iv initialization vector for CBC mode, if NULL then ECB will be used\n @param decrypt 0 for encryption, 1 for decryption"]
pub fn av_xtea_crypt(
ctx: *mut AVXTEA,
dst: *mut u8,
src: *const u8,
count: libc::c_int,
iv: *mut u8,
decrypt: libc::c_int,
);
}
extern "C" {
#[doc = " Encrypt or decrypt a buffer using a previously initialized context,\n in little endian format.\n\n @param ctx an AVXTEA context\n @param dst destination array, can be equal to src\n @param src source array, can be equal to dst\n @param count number of 8 byte blocks\n @param iv initialization vector for CBC mode, if NULL then ECB will be used\n @param decrypt 0 for encryption, 1 for decryption"]
pub fn av_xtea_le_crypt(
ctx: *mut AVXTEA,
dst: *mut u8,
src: *const u8,
count: libc::c_int,
iv: *mut u8,
decrypt: libc::c_int,
);
}
#[repr(u32)]
#[doc = " Dithering algorithms"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum SwrDitherType {
SWR_DITHER_NONE = 0,
SWR_DITHER_RECTANGULAR = 1,
SWR_DITHER_TRIANGULAR = 2,
SWR_DITHER_TRIANGULAR_HIGHPASS = 3,
#[doc = "< not part of API/ABI"]
SWR_DITHER_NS = 64,
SWR_DITHER_NS_LIPSHITZ = 65,
SWR_DITHER_NS_F_WEIGHTED = 66,
SWR_DITHER_NS_MODIFIED_E_WEIGHTED = 67,
SWR_DITHER_NS_IMPROVED_E_WEIGHTED = 68,
SWR_DITHER_NS_SHIBATA = 69,
SWR_DITHER_NS_LOW_SHIBATA = 70,
SWR_DITHER_NS_HIGH_SHIBATA = 71,
#[doc = "< not part of API/ABI"]
SWR_DITHER_NB = 72,
}
#[repr(u32)]
#[doc = " Resampling Engines"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum SwrEngine {
#[doc = "< SW Resampler"]
SWR_ENGINE_SWR = 0,
#[doc = "< SoX Resampler"]
SWR_ENGINE_SOXR = 1,
#[doc = "< not part of API/ABI"]
SWR_ENGINE_NB = 2,
}
#[repr(u32)]
#[doc = " Resampling Filter Types"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum SwrFilterType {
#[doc = "< Cubic"]
SWR_FILTER_TYPE_CUBIC = 0,
#[doc = "< Blackman Nuttall windowed sinc"]
SWR_FILTER_TYPE_BLACKMAN_NUTTALL = 1,
#[doc = "< Kaiser windowed sinc"]
SWR_FILTER_TYPE_KAISER = 2,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SwrContext {
_unused: [u8; 0],
}
extern "C" {
#[doc = " Get the AVClass for SwrContext. It can be used in combination with\n AV_OPT_SEARCH_FAKE_OBJ for examining options.\n\n @see av_opt_find().\n @return the AVClass of SwrContext"]
pub fn swr_get_class() -> *const AVClass;
}
extern "C" {
#[doc = " Allocate SwrContext.\n\n If you use this function you will need to set the parameters (manually or\n with swr_alloc_set_opts()) before calling swr_init().\n\n @see swr_alloc_set_opts(), swr_init(), swr_free()\n @return NULL on error, allocated context otherwise"]
pub fn swr_alloc() -> *mut SwrContext;
}
extern "C" {
#[doc = " Initialize context after user parameters have been set.\n @note The context must be configured using the AVOption API.\n\n @see av_opt_set_int()\n @see av_opt_set_dict()\n\n @param[in,out] s Swr context to initialize\n @return AVERROR error code in case of failure."]
pub fn swr_init(s: *mut SwrContext) -> libc::c_int;
}
extern "C" {
#[doc = " Check whether an swr context has been initialized or not.\n\n @param[in] s Swr context to check\n @see swr_init()\n @return positive if it has been initialized, 0 if not initialized"]
pub fn swr_is_initialized(s: *mut SwrContext) -> libc::c_int;
}
extern "C" {
#[doc = " Allocate SwrContext if needed and set/reset common parameters.\n\n This function does not require s to be allocated with swr_alloc(). On the\n other hand, swr_alloc() can use swr_alloc_set_opts() to set the parameters\n on the allocated context.\n\n @param s existing Swr context if available, or NULL if not\n @param out_ch_layout output channel layout (AV_CH_LAYOUT_*)\n @param out_sample_fmt output sample format (AV_SAMPLE_FMT_*).\n @param out_sample_rate output sample rate (frequency in Hz)\n @param in_ch_layout input channel layout (AV_CH_LAYOUT_*)\n @param in_sample_fmt input sample format (AV_SAMPLE_FMT_*).\n @param in_sample_rate input sample rate (frequency in Hz)\n @param log_offset logging level offset\n @param log_ctx parent logging context, can be NULL\n\n @see swr_init(), swr_free()\n @return NULL on error, allocated context otherwise"]
pub fn swr_alloc_set_opts(
s: *mut SwrContext,
out_ch_layout: i64,
out_sample_fmt: AVSampleFormat,
out_sample_rate: libc::c_int,
in_ch_layout: i64,
in_sample_fmt: AVSampleFormat,
in_sample_rate: libc::c_int,
log_offset: libc::c_int,
log_ctx: *mut libc::c_void,
) -> *mut SwrContext;
}
extern "C" {
#[doc = " Free the given SwrContext and set the pointer to NULL.\n\n @param[in] s a pointer to a pointer to Swr context"]
pub fn swr_free(s: *mut *mut SwrContext);
}
extern "C" {
#[doc = " Closes the context so that swr_is_initialized() returns 0.\n\n The context can be brought back to life by running swr_init(),\n swr_init() can also be used without swr_close().\n This function is mainly provided for simplifying the usecase\n where one tries to support libavresample and libswresample.\n\n @param[in,out] s Swr context to be closed"]
pub fn swr_close(s: *mut SwrContext);
}
extern "C" {
#[doc = " Convert audio.\n\n in and in_count can be set to 0 to flush the last few samples out at the\n end.\n\n If more input is provided than output space, then the input will be buffered.\n You can avoid this buffering by using swr_get_out_samples() to retrieve an\n upper bound on the required number of output samples for the given number of\n input samples. Conversion will run directly without copying whenever possible.\n\n @param s allocated Swr context, with parameters set\n @param out output buffers, only the first one need be set in case of packed audio\n @param out_count amount of space available for output in samples per channel\n @param in input buffers, only the first one need to be set in case of packed audio\n @param in_count number of input samples available in one channel\n\n @return number of samples output per channel, negative value on error"]
pub fn swr_convert(
s: *mut SwrContext,
out: *mut *mut u8,
out_count: libc::c_int,
in_: *mut *const u8,
in_count: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Convert the next timestamp from input to output\n timestamps are in 1/(in_sample_rate * out_sample_rate) units.\n\n @note There are 2 slightly differently behaving modes.\n @li When automatic timestamp compensation is not used, (min_compensation >= FLT_MAX)\n in this case timestamps will be passed through with delays compensated\n @li When automatic timestamp compensation is used, (min_compensation < FLT_MAX)\n in this case the output timestamps will match output sample numbers.\n See ffmpeg-resampler(1) for the two modes of compensation.\n\n @param s[in] initialized Swr context\n @param pts[in] timestamp for the next input sample, INT64_MIN if unknown\n @see swr_set_compensation(), swr_drop_output(), and swr_inject_silence() are\n function used internally for timestamp compensation.\n @return the output timestamp for the next output sample"]
pub fn swr_next_pts(s: *mut SwrContext, pts: i64) -> i64;
}
extern "C" {
#[doc = " Activate resampling compensation (\"soft\" compensation). This function is\n internally called when needed in swr_next_pts().\n\n @param[in,out] s allocated Swr context. If it is not initialized,\n or SWR_FLAG_RESAMPLE is not set, swr_init() is\n called with the flag set.\n @param[in] sample_delta delta in PTS per sample\n @param[in] compensation_distance number of samples to compensate for\n @return >= 0 on success, AVERROR error codes if:\n @li @c s is NULL,\n @li @c compensation_distance is less than 0,\n @li @c compensation_distance is 0 but sample_delta is not,\n @li compensation unsupported by resampler, or\n @li swr_init() fails when called."]
pub fn swr_set_compensation(
s: *mut SwrContext,
sample_delta: libc::c_int,
compensation_distance: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Set a customized input channel mapping.\n\n @param[in,out] s allocated Swr context, not yet initialized\n @param[in] channel_map customized input channel mapping (array of channel\n indexes, -1 for a muted channel)\n @return >= 0 on success, or AVERROR error code in case of failure."]
pub fn swr_set_channel_mapping(
s: *mut SwrContext,
channel_map: *const libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Generate a channel mixing matrix.\n\n This function is the one used internally by libswresample for building the\n default mixing matrix. It is made public just as a utility function for\n building custom matrices.\n\n @param in_layout input channel layout\n @param out_layout output channel layout\n @param center_mix_level mix level for the center channel\n @param surround_mix_level mix level for the surround channel(s)\n @param lfe_mix_level mix level for the low-frequency effects channel\n @param rematrix_maxval if 1.0, coefficients will be normalized to prevent\n overflow. if INT_MAX, coefficients will not be\n normalized.\n @param[out] matrix mixing coefficients; matrix[i + stride * o] is\n the weight of input channel i in output channel o.\n @param stride distance between adjacent input channels in the\n matrix array\n @param matrix_encoding matrixed stereo downmix mode (e.g. dplii)\n @param log_ctx parent logging context, can be NULL\n @return 0 on success, negative AVERROR code on failure"]
pub fn swr_build_matrix(
in_layout: u64,
out_layout: u64,
center_mix_level: f64,
surround_mix_level: f64,
lfe_mix_level: f64,
rematrix_maxval: f64,
rematrix_volume: f64,
matrix: *mut f64,
stride: libc::c_int,
matrix_encoding: AVMatrixEncoding,
log_ctx: *mut libc::c_void,
) -> libc::c_int;
}
extern "C" {
#[doc = " Set a customized remix matrix.\n\n @param s allocated Swr context, not yet initialized\n @param matrix remix coefficients; matrix[i + stride * o] is\n the weight of input channel i in output channel o\n @param stride offset between lines of the matrix\n @return >= 0 on success, or AVERROR error code in case of failure."]
pub fn swr_set_matrix(
s: *mut SwrContext,
matrix: *const f64,
stride: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Drops the specified number of output samples.\n\n This function, along with swr_inject_silence(), is called by swr_next_pts()\n if needed for \"hard\" compensation.\n\n @param s allocated Swr context\n @param count number of samples to be dropped\n\n @return >= 0 on success, or a negative AVERROR code on failure"]
pub fn swr_drop_output(s: *mut SwrContext, count: libc::c_int) -> libc::c_int;
}
extern "C" {
#[doc = " Injects the specified number of silence samples.\n\n This function, along with swr_drop_output(), is called by swr_next_pts()\n if needed for \"hard\" compensation.\n\n @param s allocated Swr context\n @param count number of samples to be dropped\n\n @return >= 0 on success, or a negative AVERROR code on failure"]
pub fn swr_inject_silence(s: *mut SwrContext, count: libc::c_int) -> libc::c_int;
}
extern "C" {
#[doc = " Gets the delay the next input sample will experience relative to the next output sample.\n\n Swresample can buffer data if more input has been provided than available\n output space, also converting between sample rates needs a delay.\n This function returns the sum of all such delays.\n The exact delay is not necessarily an integer value in either input or\n output sample rate. Especially when downsampling by a large value, the\n output sample rate may be a poor choice to represent the delay, similarly\n for upsampling and the input sample rate.\n\n @param s swr context\n @param base timebase in which the returned delay will be:\n @li if it's set to 1 the returned delay is in seconds\n @li if it's set to 1000 the returned delay is in milliseconds\n @li if it's set to the input sample rate then the returned\n delay is in input samples\n @li if it's set to the output sample rate then the returned\n delay is in output samples\n @li if it's the least common multiple of in_sample_rate and\n out_sample_rate then an exact rounding-free delay will be\n returned\n @returns the delay in 1 / @c base units."]
pub fn swr_get_delay(s: *mut SwrContext, base: i64) -> i64;
}
extern "C" {
#[doc = " Find an upper bound on the number of samples that the next swr_convert\n call will output, if called with in_samples of input samples. This\n depends on the internal state, and anything changing the internal state\n (like further swr_convert() calls) will may change the number of samples\n swr_get_out_samples() returns for the same number of input samples.\n\n @param in_samples number of input samples.\n @note any call to swr_inject_silence(), swr_convert(), swr_next_pts()\n or swr_set_compensation() invalidates this limit\n @note it is recommended to pass the correct available buffer size\n to all functions like swr_convert() even if swr_get_out_samples()\n indicates that less would be used.\n @returns an upper bound on the number of samples that the next swr_convert\n will output or a negative value to indicate an error"]
pub fn swr_get_out_samples(s: *mut SwrContext, in_samples: libc::c_int) -> libc::c_int;
}
extern "C" {
#[doc = " Return the @ref LIBSWRESAMPLE_VERSION_INT constant.\n\n This is useful to check if the build-time libswresample has the same version\n as the run-time one.\n\n @returns the unsigned int-typed version"]
pub fn swresample_version() -> libc::c_uint;
}
extern "C" {
#[doc = " Return the swr build-time configuration.\n\n @returns the build-time @c ./configure flags"]
pub fn swresample_configuration() -> *const libc::c_char;
}
extern "C" {
#[doc = " Return the swr license.\n\n @returns the license of libswresample, determined at build-time"]
pub fn swresample_license() -> *const libc::c_char;
}
extern "C" {
#[doc = " Convert the samples in the input AVFrame and write them to the output AVFrame.\n\n Input and output AVFrames must have channel_layout, sample_rate and format set.\n\n If the output AVFrame does not have the data pointers allocated the nb_samples\n field will be set using av_frame_get_buffer()\n is called to allocate the frame.\n\n The output AVFrame can be NULL or have fewer allocated samples than required.\n In this case, any remaining samples not written to the output will be added\n to an internal FIFO buffer, to be returned at the next call to this function\n or to swr_convert().\n\n If converting sample rate, there may be data remaining in the internal\n resampling delay buffer. swr_get_delay() tells the number of\n remaining samples. To get this data as output, call this function or\n swr_convert() with NULL input.\n\n If the SwrContext configuration does not match the output and\n input AVFrame settings the conversion does not take place and depending on\n which AVFrame is not matching AVERROR_OUTPUT_CHANGED, AVERROR_INPUT_CHANGED\n or the result of a bitwise-OR of them is returned.\n\n @see swr_delay()\n @see swr_convert()\n @see swr_get_delay()\n\n @param swr audio resample context\n @param output output AVFrame\n @param input input AVFrame\n @return 0 on success, AVERROR on failure or nonmatching\n configuration."]
pub fn swr_convert_frame(
swr: *mut SwrContext,
output: *mut AVFrame,
input: *const AVFrame,
) -> libc::c_int;
}
extern "C" {
#[doc = " Configure or reconfigure the SwrContext using the information\n provided by the AVFrames.\n\n The original resampling context is reset even on failure.\n The function calls swr_close() internally if the context is open.\n\n @see swr_close();\n\n @param swr audio resample context\n @param output output AVFrame\n @param input input AVFrame\n @return 0 on success, AVERROR on failure."]
pub fn swr_config_frame(
swr: *mut SwrContext,
out: *const AVFrame,
in_: *const AVFrame,
) -> libc::c_int;
}
extern "C" {
#[doc = " @defgroup libsws libswscale\n Color conversion and scaling library.\n\n @{\n\n Return the LIBSWSCALE_VERSION_INT constant."]
pub fn swscale_version() -> libc::c_uint;
}
extern "C" {
#[doc = " Return the libswscale build-time configuration."]
pub fn swscale_configuration() -> *const libc::c_char;
}
extern "C" {
#[doc = " Return the libswscale license."]
pub fn swscale_license() -> *const libc::c_char;
}
extern "C" {
#[doc = " Return a pointer to yuv<->rgb coefficients for the given colorspace\n suitable for sws_setColorspaceDetails().\n\n @param colorspace One of the SWS_CS_* macros. If invalid,\n SWS_CS_DEFAULT is used."]
pub fn sws_getCoefficients(colorspace: libc::c_int) -> *const libc::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct SwsVector {
#[doc = "< pointer to the list of coefficients"]
pub coeff: *mut f64,
#[doc = "< number of coefficients in the vector"]
pub length: libc::c_int,
}
#[test]
fn bindgen_test_layout_SwsVector() {
const UNINIT: ::std::mem::MaybeUninit<SwsVector> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<SwsVector>(),
16usize,
concat!("Size of: ", stringify!(SwsVector))
);
assert_eq!(
::std::mem::align_of::<SwsVector>(),
8usize,
concat!("Alignment of ", stringify!(SwsVector))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).coeff) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(SwsVector),
"::",
stringify!(coeff)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(SwsVector),
"::",
stringify!(length)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct SwsFilter {
pub lumH: *mut SwsVector,
pub lumV: *mut SwsVector,
pub chrH: *mut SwsVector,
pub chrV: *mut SwsVector,
}
#[test]
fn bindgen_test_layout_SwsFilter() {
const UNINIT: ::std::mem::MaybeUninit<SwsFilter> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<SwsFilter>(),
32usize,
concat!("Size of: ", stringify!(SwsFilter))
);
assert_eq!(
::std::mem::align_of::<SwsFilter>(),
8usize,
concat!("Alignment of ", stringify!(SwsFilter))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).lumH) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(SwsFilter),
"::",
stringify!(lumH)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).lumV) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(SwsFilter),
"::",
stringify!(lumV)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).chrH) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(SwsFilter),
"::",
stringify!(chrH)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).chrV) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(SwsFilter),
"::",
stringify!(chrV)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SwsContext {
_unused: [u8; 0],
}
extern "C" {
#[doc = " Return a positive value if pix_fmt is a supported input format, 0\n otherwise."]
pub fn sws_isSupportedInput(pix_fmt: AVPixelFormat) -> libc::c_int;
}
extern "C" {
#[doc = " Return a positive value if pix_fmt is a supported output format, 0\n otherwise."]
pub fn sws_isSupportedOutput(pix_fmt: AVPixelFormat) -> libc::c_int;
}
extern "C" {
#[doc = " @param[in] pix_fmt the pixel format\n @return a positive value if an endianness conversion for pix_fmt is\n supported, 0 otherwise."]
pub fn sws_isSupportedEndiannessConversion(pix_fmt: AVPixelFormat) -> libc::c_int;
}
extern "C" {
#[doc = " Allocate an empty SwsContext. This must be filled and passed to\n sws_init_context(). For filling see AVOptions, options.c and\n sws_setColorspaceDetails()."]
pub fn sws_alloc_context() -> *mut SwsContext;
}
extern "C" {
#[doc = " Initialize the swscaler context sws_context.\n\n @return zero or positive value on success, a negative value on\n error"]
pub fn sws_init_context(
sws_context: *mut SwsContext,
srcFilter: *mut SwsFilter,
dstFilter: *mut SwsFilter,
) -> libc::c_int;
}
extern "C" {
#[doc = " Free the swscaler context swsContext.\n If swsContext is NULL, then does nothing."]
pub fn sws_freeContext(swsContext: *mut SwsContext);
}
extern "C" {
#[doc = " Allocate and return an SwsContext. You need it to perform\n scaling/conversion operations using sws_scale().\n\n @param srcW the width of the source image\n @param srcH the height of the source image\n @param srcFormat the source image format\n @param dstW the width of the destination image\n @param dstH the height of the destination image\n @param dstFormat the destination image format\n @param flags specify which algorithm and options to use for rescaling\n @param param extra parameters to tune the used scaler\n For SWS_BICUBIC param[0] and [1] tune the shape of the basis\n function, param[0] tunes f(1) and param[1] f´(1)\n For SWS_GAUSS param[0] tunes the exponent and thus cutoff\n frequency\n For SWS_LANCZOS param[0] tunes the width of the window function\n @return a pointer to an allocated context, or NULL in case of error\n @note this function is to be removed after a saner alternative is\n written"]
pub fn sws_getContext(
srcW: libc::c_int,
srcH: libc::c_int,
srcFormat: AVPixelFormat,
dstW: libc::c_int,
dstH: libc::c_int,
dstFormat: AVPixelFormat,
flags: libc::c_int,
srcFilter: *mut SwsFilter,
dstFilter: *mut SwsFilter,
param: *const f64,
) -> *mut SwsContext;
}
extern "C" {
#[doc = " Scale the image slice in srcSlice and put the resulting scaled\n slice in the image in dst. A slice is a sequence of consecutive\n rows in an image.\n\n Slices have to be provided in sequential order, either in\n top-bottom or bottom-top order. If slices are provided in\n non-sequential order the behavior of the function is undefined.\n\n @param c the scaling context previously created with\n sws_getContext()\n @param srcSlice the array containing the pointers to the planes of\n the source slice\n @param srcStride the array containing the strides for each plane of\n the source image\n @param srcSliceY the position in the source image of the slice to\n process, that is the number (counted starting from\n zero) in the image of the first row of the slice\n @param srcSliceH the height of the source slice, that is the number\n of rows in the slice\n @param dst the array containing the pointers to the planes of\n the destination image\n @param dstStride the array containing the strides for each plane of\n the destination image\n @return the height of the output slice"]
pub fn sws_scale(
c: *mut SwsContext,
srcSlice: *const *const u8,
srcStride: *const libc::c_int,
srcSliceY: libc::c_int,
srcSliceH: libc::c_int,
dst: *const *mut u8,
dstStride: *const libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " @param dstRange flag indicating the while-black range of the output (1=jpeg / 0=mpeg)\n @param srcRange flag indicating the while-black range of the input (1=jpeg / 0=mpeg)\n @param table the yuv2rgb coefficients describing the output yuv space, normally ff_yuv2rgb_coeffs[x]\n @param inv_table the yuv2rgb coefficients describing the input yuv space, normally ff_yuv2rgb_coeffs[x]\n @param brightness 16.16 fixed point brightness correction\n @param contrast 16.16 fixed point contrast correction\n @param saturation 16.16 fixed point saturation correction\n @return -1 if not supported"]
pub fn sws_setColorspaceDetails(
c: *mut SwsContext,
inv_table: *const libc::c_int,
srcRange: libc::c_int,
table: *const libc::c_int,
dstRange: libc::c_int,
brightness: libc::c_int,
contrast: libc::c_int,
saturation: libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " @return -1 if not supported"]
pub fn sws_getColorspaceDetails(
c: *mut SwsContext,
inv_table: *mut *mut libc::c_int,
srcRange: *mut libc::c_int,
table: *mut *mut libc::c_int,
dstRange: *mut libc::c_int,
brightness: *mut libc::c_int,
contrast: *mut libc::c_int,
saturation: *mut libc::c_int,
) -> libc::c_int;
}
extern "C" {
#[doc = " Allocate and return an uninitialized vector with length coefficients."]
pub fn sws_allocVec(length: libc::c_int) -> *mut SwsVector;
}
extern "C" {
#[doc = " Return a normalized Gaussian curve used to filter stuff\n quality = 3 is high quality, lower is lower quality."]
pub fn sws_getGaussianVec(variance: f64, quality: f64) -> *mut SwsVector;
}
extern "C" {
#[doc = " Scale all the coefficients of a by the scalar value."]
pub fn sws_scaleVec(a: *mut SwsVector, scalar: f64);
}
extern "C" {
#[doc = " Scale all the coefficients of a so that their sum equals height."]
pub fn sws_normalizeVec(a: *mut SwsVector, height: f64);
}
extern "C" {
pub fn sws_getConstVec(c: f64, length: libc::c_int) -> *mut SwsVector;
}
extern "C" {
pub fn sws_getIdentityVec() -> *mut SwsVector;
}
extern "C" {
pub fn sws_convVec(a: *mut SwsVector, b: *mut SwsVector);
}
extern "C" {
pub fn sws_addVec(a: *mut SwsVector, b: *mut SwsVector);
}
extern "C" {
pub fn sws_subVec(a: *mut SwsVector, b: *mut SwsVector);
}
extern "C" {
pub fn sws_shiftVec(a: *mut SwsVector, shift: libc::c_int);
}
extern "C" {
pub fn sws_cloneVec(a: *mut SwsVector) -> *mut SwsVector;
}
extern "C" {
pub fn sws_printVec2(a: *mut SwsVector, log_ctx: *mut AVClass, log_level: libc::c_int);
}
extern "C" {
pub fn sws_freeVec(a: *mut SwsVector);
}
extern "C" {
pub fn sws_getDefaultFilter(
lumaGBlur: f32,
chromaGBlur: f32,
lumaSharpen: f32,
chromaSharpen: f32,
chromaHShift: f32,
chromaVShift: f32,
verbose: libc::c_int,
) -> *mut SwsFilter;
}
extern "C" {
pub fn sws_freeFilter(filter: *mut SwsFilter);
}
extern "C" {
#[doc = " Check if context can be reused, otherwise reallocate a new one.\n\n If context is NULL, just calls sws_getContext() to get a new\n context. Otherwise, checks if the parameters are the ones already\n saved in context. If that is the case, returns the current\n context. Otherwise, frees context and gets a new context with\n the new parameters.\n\n Be warned that srcFilter and dstFilter are not checked, they\n are assumed to remain the same."]
pub fn sws_getCachedContext(
context: *mut SwsContext,
srcW: libc::c_int,
srcH: libc::c_int,
srcFormat: AVPixelFormat,
dstW: libc::c_int,
dstH: libc::c_int,
dstFormat: AVPixelFormat,
flags: libc::c_int,
srcFilter: *mut SwsFilter,
dstFilter: *mut SwsFilter,
param: *const f64,
) -> *mut SwsContext;
}
extern "C" {
#[doc = " Convert an 8-bit paletted frame into a frame with a color depth of 32 bits.\n\n The output frame will have the same packed format as the palette.\n\n @param src source frame buffer\n @param dst destination frame buffer\n @param num_pixels number of pixels to convert\n @param palette array with [256] entries, which must match color arrangement (RGB or BGR) of src"]
pub fn sws_convertPalette8ToPacked32(
src: *const u8,
dst: *mut u8,
num_pixels: libc::c_int,
palette: *const u8,
);
}
extern "C" {
#[doc = " Convert an 8-bit paletted frame into a frame with a color depth of 24 bits.\n\n With the palette format \"ABCD\", the destination frame ends up with the format \"ABC\".\n\n @param src source frame buffer\n @param dst destination frame buffer\n @param num_pixels number of pixels to convert\n @param palette array with [256] entries, which must match color arrangement (RGB or BGR) of src"]
pub fn sws_convertPalette8ToPacked24(
src: *const u8,
dst: *mut u8,
num_pixels: libc::c_int,
palette: *const u8,
);
}
extern "C" {
#[doc = " Get the AVClass for swsContext. It can be used in combination with\n AV_OPT_SEARCH_FAKE_OBJ for examining options.\n\n @see av_opt_find()."]
pub fn sws_get_class() -> *const AVClass;
}
pub const AV_DRM_MAX_PLANES: _bindgen_ty_8 = _bindgen_ty_8::AV_DRM_MAX_PLANES;
#[repr(u32)]
#[doc = " @file\n API-specific header for AV_HWDEVICE_TYPE_DRM.\n\n Internal frame allocation is not currently supported - all frames\n must be allocated by the user. Thus AVHWFramesContext is always\n NULL, though this may change if support for frame allocation is\n added in future."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _bindgen_ty_8 {
#[doc = " The maximum number of layers/planes in a DRM frame."]
AV_DRM_MAX_PLANES = 4,
}
#[doc = " DRM object descriptor.\n\n Describes a single DRM object, addressing it as a PRIME file\n descriptor."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVDRMObjectDescriptor {
#[doc = " DRM PRIME fd for the object."]
pub fd: libc::c_int,
#[doc = " Total size of the object.\n\n (This includes any parts not which do not contain image data.)"]
pub size: usize,
#[doc = " Format modifier applied to the object (DRM_FORMAT_MOD_*).\n\n If the format modifier is unknown then this should be set to\n DRM_FORMAT_MOD_INVALID."]
pub format_modifier: u64,
}
#[test]
fn bindgen_test_layout_AVDRMObjectDescriptor() {
const UNINIT: ::std::mem::MaybeUninit<AVDRMObjectDescriptor> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVDRMObjectDescriptor>(),
24usize,
concat!("Size of: ", stringify!(AVDRMObjectDescriptor))
);
assert_eq!(
::std::mem::align_of::<AVDRMObjectDescriptor>(),
8usize,
concat!("Alignment of ", stringify!(AVDRMObjectDescriptor))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).fd) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVDRMObjectDescriptor),
"::",
stringify!(fd)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVDRMObjectDescriptor),
"::",
stringify!(size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).format_modifier) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVDRMObjectDescriptor),
"::",
stringify!(format_modifier)
)
);
}
#[doc = " DRM plane descriptor.\n\n Describes a single plane of a layer, which is contained within\n a single object."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVDRMPlaneDescriptor {
#[doc = " Index of the object containing this plane in the objects\n array of the enclosing frame descriptor."]
pub object_index: libc::c_int,
#[doc = " Offset within that object of this plane."]
pub offset: isize,
#[doc = " Pitch (linesize) of this plane."]
pub pitch: isize,
}
#[test]
fn bindgen_test_layout_AVDRMPlaneDescriptor() {
const UNINIT: ::std::mem::MaybeUninit<AVDRMPlaneDescriptor> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVDRMPlaneDescriptor>(),
24usize,
concat!("Size of: ", stringify!(AVDRMPlaneDescriptor))
);
assert_eq!(
::std::mem::align_of::<AVDRMPlaneDescriptor>(),
8usize,
concat!("Alignment of ", stringify!(AVDRMPlaneDescriptor))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).object_index) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVDRMPlaneDescriptor),
"::",
stringify!(object_index)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVDRMPlaneDescriptor),
"::",
stringify!(offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pitch) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(AVDRMPlaneDescriptor),
"::",
stringify!(pitch)
)
);
}
#[doc = " DRM layer descriptor.\n\n Describes a single layer within a frame. This has the structure\n defined by its format, and will contain one or more planes."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVDRMLayerDescriptor {
#[doc = " Format of the layer (DRM_FORMAT_*)."]
pub format: u32,
#[doc = " Number of planes in the layer.\n\n This must match the number of planes required by format."]
pub nb_planes: libc::c_int,
#[doc = " Array of planes in this layer."]
pub planes: [AVDRMPlaneDescriptor; 4usize],
}
#[test]
fn bindgen_test_layout_AVDRMLayerDescriptor() {
const UNINIT: ::std::mem::MaybeUninit<AVDRMLayerDescriptor> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVDRMLayerDescriptor>(),
104usize,
concat!("Size of: ", stringify!(AVDRMLayerDescriptor))
);
assert_eq!(
::std::mem::align_of::<AVDRMLayerDescriptor>(),
8usize,
concat!("Alignment of ", stringify!(AVDRMLayerDescriptor))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).format) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVDRMLayerDescriptor),
"::",
stringify!(format)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_planes) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(AVDRMLayerDescriptor),
"::",
stringify!(nb_planes)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).planes) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVDRMLayerDescriptor),
"::",
stringify!(planes)
)
);
}
#[doc = " DRM frame descriptor.\n\n This is used as the data pointer for AV_PIX_FMT_DRM_PRIME frames.\n It is also used by user-allocated frame pools - allocating in\n AVHWFramesContext.pool must return AVBufferRefs which contain\n an object of this type.\n\n The fields of this structure should be set such it can be\n imported directly by EGL using the EGL_EXT_image_dma_buf_import\n and EGL_EXT_image_dma_buf_import_modifiers extensions.\n (Note that the exact layout of a particular format may vary between\n platforms - we only specify that the same platform should be able\n to import it.)\n\n The total number of planes must not exceed AV_DRM_MAX_PLANES, and\n the order of the planes by increasing layer index followed by\n increasing plane index must be the same as the order which would\n be used for the data pointers in the equivalent software format."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVDRMFrameDescriptor {
#[doc = " Number of DRM objects making up this frame."]
pub nb_objects: libc::c_int,
#[doc = " Array of objects making up the frame."]
pub objects: [AVDRMObjectDescriptor; 4usize],
#[doc = " Number of layers in the frame."]
pub nb_layers: libc::c_int,
#[doc = " Array of layers in the frame."]
pub layers: [AVDRMLayerDescriptor; 4usize],
}
#[test]
fn bindgen_test_layout_AVDRMFrameDescriptor() {
const UNINIT: ::std::mem::MaybeUninit<AVDRMFrameDescriptor> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVDRMFrameDescriptor>(),
528usize,
concat!("Size of: ", stringify!(AVDRMFrameDescriptor))
);
assert_eq!(
::std::mem::align_of::<AVDRMFrameDescriptor>(),
8usize,
concat!("Alignment of ", stringify!(AVDRMFrameDescriptor))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_objects) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVDRMFrameDescriptor),
"::",
stringify!(nb_objects)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).objects) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(AVDRMFrameDescriptor),
"::",
stringify!(objects)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).nb_layers) as usize - ptr as usize },
104usize,
concat!(
"Offset of field: ",
stringify!(AVDRMFrameDescriptor),
"::",
stringify!(nb_layers)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).layers) as usize - ptr as usize },
112usize,
concat!(
"Offset of field: ",
stringify!(AVDRMFrameDescriptor),
"::",
stringify!(layers)
)
);
}
#[doc = " DRM device.\n\n Allocated as AVHWDeviceContext.hwctx."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVDRMDeviceContext {
#[doc = " File descriptor of DRM device.\n\n This is used as the device to create frames on, and may also be\n used in some derivation and mapping operations.\n\n If no device is required, set to -1."]
pub fd: libc::c_int,
}
#[test]
fn bindgen_test_layout_AVDRMDeviceContext() {
const UNINIT: ::std::mem::MaybeUninit<AVDRMDeviceContext> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<AVDRMDeviceContext>(),
4usize,
concat!("Size of: ", stringify!(AVDRMDeviceContext))
);
assert_eq!(
::std::mem::align_of::<AVDRMDeviceContext>(),
4usize,
concat!("Alignment of ", stringify!(AVDRMDeviceContext))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).fd) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(AVDRMDeviceContext),
"::",
stringify!(fd)
)
);
}
pub type __builtin_va_list = [__va_list_tag; 1usize];
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct __va_list_tag {
pub gp_offset: libc::c_uint,
pub fp_offset: libc::c_uint,
pub overflow_arg_area: *mut libc::c_void,
pub reg_save_area: *mut libc::c_void,
}
#[test]
fn bindgen_test_layout___va_list_tag() {
const UNINIT: ::std::mem::MaybeUninit<__va_list_tag> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__va_list_tag>(),
24usize,
concat!("Size of: ", stringify!(__va_list_tag))
);
assert_eq!(
::std::mem::align_of::<__va_list_tag>(),
8usize,
concat!("Alignment of ", stringify!(__va_list_tag))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).gp_offset) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__va_list_tag),
"::",
stringify!(gp_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).fp_offset) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(__va_list_tag),
"::",
stringify!(fp_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).overflow_arg_area) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(__va_list_tag),
"::",
stringify!(overflow_arg_area)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).reg_save_area) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(__va_list_tag),
"::",
stringify!(reg_save_area)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct __locale_data {
pub _address: u8,
}
#[doc = " Array of pointers to hardware configurations supported by the codec,\n or NULL if no hardware supported. The array is terminated by a NULL\n pointer.\n\n The user can only access this field via avcodec_get_hw_config()."]
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVCodecHWConfigInternal {
pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct URLContext {
pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct AVFilterCommand {
pub _address: u8,
}