Go to the documentation of this file.
20 #define _XOPEN_SOURCE 600
28 #define AVERROR_INPUT_AND_OUTPUT_CHANGED (AVERROR_INPUT_CHANGED | AVERROR_OUTPUT_CHANGED)
30 #define AVERROR_LIST(E, E2) \
31 E(BSF_NOT_FOUND, "Bitstream filter not found") \
32 E(BUG, "Internal bug, should not have happened") \
33 E2(BUG2, BUG, "Internal bug, should not have happened") \
34 E(BUFFER_TOO_SMALL, "Buffer too small") \
35 E(DECODER_NOT_FOUND, "Decoder not found") \
36 E(DEMUXER_NOT_FOUND, "Demuxer not found") \
37 E(ENCODER_NOT_FOUND, "Encoder not found") \
38 E(EOF, "End of file") \
39 E(EXIT, "Immediate exit requested") \
40 E(EXTERNAL, "Generic error in an external library") \
41 E(FILTER_NOT_FOUND, "Filter not found") \
42 E(INPUT_CHANGED, "Input changed") \
43 E(INVALIDDATA, "Invalid data found when processing input") \
44 E(MUXER_NOT_FOUND, "Muxer not found") \
45 E(OPTION_NOT_FOUND, "Option not found") \
46 E(OUTPUT_CHANGED, "Output changed") \
47 E(PATCHWELCOME, "Not yet implemented in FFmpeg, patches welcome") \
48 E(PROTOCOL_NOT_FOUND, "Protocol not found") \
49 E(STREAM_NOT_FOUND, "Stream not found") \
50 E(UNKNOWN, "Unknown error occurred") \
51 E(EXPERIMENTAL, "Experimental feature") \
52 E(INPUT_AND_OUTPUT_CHANGED, "Input and output changed") \
53 E(HTTP_BAD_REQUEST, "Server returned 400 Bad Request") \
54 E(HTTP_UNAUTHORIZED, "Server returned 401 Unauthorized (authorization failed)") \
55 E(HTTP_FORBIDDEN, "Server returned 403 Forbidden (access denied)") \
56 E(HTTP_NOT_FOUND, "Server returned 404 Not Found") \
57 E(HTTP_TOO_MANY_REQUESTS, "Server returned 429 Too Many Requests") \
58 E(HTTP_OTHER_4XX, "Server returned 4XX Client Error, but not one of 40{0,1,3,4}") \
59 E(HTTP_SERVER_ERROR, "Server returned 5XX Server Error reply") \
61 #define STRERROR_LIST(E) \
62 E(E2BIG, "Argument list too long") \
63 E(EACCES, "Permission denied") \
64 E(EAGAIN, "Resource temporarily unavailable") \
65 E(EBADF, "Bad file descriptor") \
66 E(EBUSY, "Device or resource busy") \
67 E(ECHILD, "No child processes") \
68 E(EDEADLK, "Resource deadlock avoided") \
69 E(EDOM, "Numerical argument out of domain") \
70 E(EEXIST, "File exists") \
71 E(EFAULT, "Bad address") \
72 E(EFBIG, "File too large") \
73 E(EILSEQ, "Illegal byte sequence") \
74 E(EINTR, "Interrupted system call") \
75 E(EINVAL, "Invalid argument") \
77 E(EISDIR, "Is a directory") \
78 E(EMFILE, "Too many open files") \
79 E(EMLINK, "Too many links") \
80 E(ENAMETOOLONG, "File name too long") \
81 E(ENFILE, "Too many open files in system") \
82 E(ENODEV, "No such device") \
83 E(ENOENT, "No such file or directory") \
84 E(ENOEXEC, "Exec format error") \
85 E(ENOLCK, "No locks available") \
86 E(ENOMEM, "Cannot allocate memory") \
87 E(ENOSPC, "No space left on device") \
88 E(ENOSYS, "Function not implemented") \
89 E(ENOTDIR, "Not a directory") \
90 E(ENOTEMPTY, "Directory not empty") \
91 E(ENOTTY, "Inappropriate I/O control operation") \
92 E(ENXIO, "No such device or address") \
93 E(EPERM, "Operation not permitted") \
94 E(EPIPE, "Broken pipe") \
95 E(ERANGE, "Result too large") \
96 E(EROFS, "Read-only file system") \
97 E(ESPIPE, "Illegal seek") \
98 E(ESRCH, "No such process") \
99 E(EXDEV, "Cross-device link") \
102 #define OFFSET(CODE, DESC) \
103 ERROR_ ## CODE ## _OFFSET, \
104 ERROR_ ## CODE ## _END_OFFSET = ERROR_ ## CODE ## _OFFSET + sizeof(DESC) - 1,
105 #define NOTHING(CODE, CODE2, DESC)
113 #define STRING(CODE, DESC) DESC "\0"
125 #define ENTRY(CODE, DESC) { .num = AVERROR_ ## CODE, .offset = ERROR_ ## CODE ## _OFFSET },
126 #define ENTRY2(CODE, CODE2, DESC) { .num = AVERROR_ ## CODE, .offset = ERROR_ ## CODE2 ## _OFFSET },
130 #define ENTRY(CODE, DESC) { .num = AVERROR(CODE), .offset = ERROR_ ## CODE ## _OFFSET },
149 snprintf(errbuf, errbuf_size,
"Error number %d occurred", errnum);
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
static const struct ErrorEntry error_entries[]
#define ENTRY2(CODE, CODE2, DESC)
#define OFFSET(CODE, DESC)
int av_strerror(int errnum, char *errbuf, size_t errbuf_size)
Put a description of the AVERROR code errnum in errbuf.
#define NOTHING(CODE, CODE2, DESC)
#define FF_ARRAY_ELEMS(a)
static const char error_stringtable[ERROR_LIST_SIZE]
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf offset
#define i(width, name, range_min, range_max)
#define STRING(CODE, DESC)
size_t av_strlcpy(char *dst, const char *src, size_t size)
Copy the string src to dst, but no more than size - 1 bytes, and null-terminate dst.
#define AVERROR_LIST(E, E2)
#define ENTRY(CODE, DESC)