npv:namespace cleanup, don't need that many short identifiers
[nyanmp.git] / npv / fmt / main.c
blobf5b0c4dcc60f36000092417486f4ddacb3acc4e8
1 #ifndef NPV_FMT_MAIN_C
2 #define NPV_FMT_MAIN_C
3 /*
4 * code protected with a GNU affero GPLv3 license
5 * copyright (C) 2020 Sylvain BERTRAND
6 */
7 #include <pthread.h>
8 #include <libavformat/avformat.h>
9 #include <libavcodec/avcodec.h>
10 #include "npv/c_fixing.h"
11 #include "npv/global.h"
12 #include "npv/pkt_q/public.h"
13 #include "npv/fmt/public.h"
14 #include "npv/audio/public.h"
15 #include "npv/video/public.h"
16 /*----------------------------------------------------------------------------*/
17 #include "npv/namespace/ffmpeg.h"
18 #include "npv/fmt/namespace/public.h"
19 #include "npv/fmt/namespace/main.c"
20 /*----------------------------------------------------------------------------*/
21 #define FATALF(fmt, ...) FATAL("format:" fmt, ##__VA_ARGS__)
22 #define WARNINGF(fmt, ...) WARNING("format:" fmt, ##__VA_ARGS__)
23 #define POUTF(fmt, ...) POUT("format:" fmt, ##__VA_ARGS__)
24 /*----------------------------------------------------------------------------*/
25 #include "npv/fmt/local/state.frag.c"
26 /*----------------------------------------------------------------------------*/
27 #include "npv/fmt/local/code.frag.c"
28 #include "npv/fmt/public/code.frag.c"
29 /*----------------------------------------------------------------------------*/
30 #undef FATALF
31 #undef WARNINGF
32 #undef POUTF
33 /*----------------------------------------------------------------------------*/
34 #define CLEANUP
35 #include "npv/namespace/ffmpeg.h"
36 #include "npv/fmt/namespace/public.h"
37 #include "npv/fmt/namespace/main.c"
38 #undef CLEANUP
39 #endif