from libc.stdint cimport int64_t, uint8_t, uint64_t
cimport libav as lib


cdef dict avdict_to_dict(lib.AVDictionary *input, str encoding, str errors)
cdef dict_to_avdict(lib.AVDictionary **dst, dict src, str encoding, str errors)


cdef object avrational_to_fraction(const lib.AVRational *input)
cdef object to_avrational(object value, lib.AVRational *input)


cdef check_ndarray(object array, object dtype, int ndim)
cdef check_ndarray_shape(object array, bint ok)
cdef flag_in_bitfield(uint64_t bitfield, uint64_t flag)
