FFmpeg
error.c
Go to the documentation of this file.
1 /*
2  * This file is part of FFmpeg.
3  *
4  * FFmpeg is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * FFmpeg is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with FFmpeg; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 #include "libavutil/error.c"
20 
21 static const char *const tag_list[] = {
22 #define ERROR_TAG(CODE, DESC) #CODE,
23 #define ERROR_TAG2(CODE, CODE2, DESC) #CODE,
25 #if !HAVE_STRERROR_R
27 #endif
28 };
29 
30 int main(void)
31 {
32  int i;
33 
34  for (i = 0; i < FF_ARRAY_ELEMS(error_entries); i++) {
35  const struct ErrorEntry *entry = &error_entries[i];
36  printf("%d: %s [%s]\n", entry->num, av_err2str(entry->num), tag_list[i]);
37  }
38 
39  for (i = 0; i < 256; i++) {
40  printf("%d: %s\n", -i, av_err2str(-i));
41  }
42 
43  return 0;
44 }
entry
#define entry
Definition: aom_film_grain_template.c:66
tag_list
static const char *const tag_list[]
Definition: error.c:21
printf
__device__ int printf(const char *,...)
STRERROR_LIST
#define STRERROR_LIST(E)
Definition: error.c:61
error_entries
static const struct ErrorEntry error_entries[]
error.c
ERROR_TAG
#define ERROR_TAG(CODE, DESC)
ERROR_TAG2
#define ERROR_TAG2(CODE, CODE2, DESC)
FF_ARRAY_ELEMS
#define FF_ARRAY_ELEMS(a)
Definition: sinewin_tablegen.c:29
main
int main(void)
Definition: error.c:30
av_err2str
#define av_err2str(errnum)
Convenience macro, the return value should be used only directly in function arguments but never stan...
Definition: error.h:122
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:256
ErrorEntry
Definition: error.c:121
AVERROR_LIST
#define AVERROR_LIST(E, E2)
Definition: error.c:30