12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- #ifndef AVUTIL_ERROR_H
- #define AVUTIL_ERROR_H
- #include <errno.h>
- #include "avutil.h"
- #if EDOM > 0
- #define AVERROR(e) (-(e))
- #define AVUNERROR(e) (-(e))
- #else
- #define AVERROR(e) (e)
- #define AVUNERROR(e) (e)
- #endif
- #define AVERROR_EOF AVERROR(EPIPE)
- #define AVERROR_PATCHWELCOME (-MKTAG('P','A','W','E'))
- #define AVERROR_INVALIDDATA (-MKTAG('I','N','D','A'))
- #define AVERROR_NUMEXPECTED (-MKTAG('N','U','E','X'))
- #define AVERROR_DEMUXER_NOT_FOUND (-MKTAG(0xF8,'D','E','M'))
- #define AVERROR_MUXER_NOT_FOUND (-MKTAG(0xF8,'M','U','X'))
- #define AVERROR_DECODER_NOT_FOUND (-MKTAG(0xF8,'D','E','C'))
- #define AVERROR_ENCODER_NOT_FOUND (-MKTAG(0xF8,'E','N','C'))
- #define AVERROR_OPTION_NOT_FOUND (-MKTAG(0xF8,'O','P','T'))
- #define AVERROR_PROTOCOL_NOT_FOUND (-MKTAG(0xF8,'P','R','O'))
- #define AVERROR_FILTER_NOT_FOUND (-MKTAG(0xF8,'F','I','L'))
- #define AVERROR_BSF_NOT_FOUND (-MKTAG(0xF8,'B','S','F'))
- #define AVERROR_STREAM_NOT_FOUND (-MKTAG(0xF8,'S','T','R'))
- #define AVERROR_EXIT (-MKTAG('E','X','I','T'))
- int av_strerror(int errnum, char *errbuf, size_t errbuf_size);
- #endif
|