| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
#ifndef AVUTIL_ERROR_H |
| 25 |
#define AVUTIL_ERROR_H |
| 26 |
|
| 27 |
#include <errno.h> |
| 28 |
#include "avutil.h" |
| 29 |
|
| 30 |
|
| 31 |
#if EDOM > 0 |
| 32 |
#define AVERROR(e) (-(e)) ///< Returns a negative error code from a POSIX error code, to return from library functions. |
| 33 |
#define AVUNERROR(e) (-(e)) ///< Returns a POSIX error code from a library function error return value. |
| 34 |
#else |
| 35 |
|
| 36 |
#define AVERROR(e) (e) |
| 37 |
#define AVUNERROR(e) (e) |
| 38 |
#endif |
| 39 |
|
| 40 |
#define AVERROR_BSF_NOT_FOUND (-MKTAG(0xF8,'B','S','F')) ///< Bitstream filter not found |
| 41 |
#define AVERROR_DECODER_NOT_FOUND (-MKTAG(0xF8,'D','E','C')) ///< Decoder not found |
| 42 |
#define AVERROR_DEMUXER_NOT_FOUND (-MKTAG(0xF8,'D','E','M')) ///< Demuxer not found |
| 43 |
#define AVERROR_ENCODER_NOT_FOUND (-MKTAG(0xF8,'E','N','C')) ///< Encoder not found |
| 44 |
#define AVERROR_EOF (-MKTAG( 'E','O','F',' ')) ///< End of file |
| 45 |
#define AVERROR_EXIT (-MKTAG( 'E','X','I','T')) ///< Immediate exit was requested; the called function should not be restarted |
| 46 |
#define AVERROR_FILTER_NOT_FOUND (-MKTAG(0xF8,'F','I','L')) ///< Filter not found |
| 47 |
#define AVERROR_INVALIDDATA (-MKTAG( 'I','N','D','A')) ///< Invalid data found when processing input |
| 48 |
#define AVERROR_MUXER_NOT_FOUND (-MKTAG(0xF8,'M','U','X')) ///< Muxer not found |
| 49 |
#define AVERROR_OPTION_NOT_FOUND (-MKTAG(0xF8,'O','P','T')) ///< Option not found |
| 50 |
#define AVERROR_PATCHWELCOME (-MKTAG( 'P','A','W','E')) ///< Not yet implemented in FFmpeg, patches welcome |
| 51 |
#define AVERROR_PROTOCOL_NOT_FOUND (-MKTAG(0xF8,'P','R','O')) ///< Protocol not found |
| 52 |
#define AVERROR_STREAM_NOT_FOUND (-MKTAG(0xF8,'S','T','R')) ///< Stream not found |
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
int av_strerror(int errnum, char *errbuf, size_t errbuf_size); |
| 67 |
|
| 68 |
#endif |