Valkka  1.6.1
OpenSource Video Management
avdep.h
Go to the documentation of this file.
1 #ifndef AVDEP_HEADER_GUARD
2 #define AVDEP_HEADER_GUARD
3 
4 /*
5  * avdep.h : A list/recompilation of common ffmpeg/libav header files
6  *
7  * (c) Copyright 2017-2024 Sampsa Riikonen
8  *
9  * Authors: Sampsa Riikonen <sampsa.riikonen@iki.fi>
10  *
11  * This file is part of the Valkka library.
12  *
13  * Valkka is free software: you can redistribute it and/or modify
14  * it under the terms of the GNU Lesser General Public License as
15  * published by the Free Software Foundation, either version 3 of the
16  * License, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU Lesser General Public License for more details.
22  *
23  * You should have received a copy of the GNU Lesser General Public License
24  * along with this program. If not, see <https://www.gnu.org/licenses/>
25  *
26  */
27 
38 // ffmpeg header files
39 // for custom installation : copy/link header files to "$valkka/include/ext/", place relevant "*.so" files to "$valkka/lib" (see the ln_ffmpeg.bash scripts)
40 extern "C" { // realizing this took me half a day : https://stackoverflow.com/questions/15625468/libav-linking-error-undefined-references
41 #include <libavcodec/avcodec.h>
42 // #include <libavcodec/vdpau.h>
43 #include <libavformat/avformat.h>
44 #include <libavutil/imgutils.h>
45 // #include <libavutil/parseutils.h>
46 #include <libavutil/log.h>
47 #include <libswscale/swscale.h>
48 }
49 // libavcodec libavformat libavutil libswscale
50 
51 
52 // When linking againts Valkka, we don't want to link "manually" agains all dependent libraries .. for this reason, we can't (and shouldn't call their symbols directly)
53 // We don't want the user to interact or even see the live555 and ffmpeg apis
54 // For special cases where we need that, use these helper functions:
55 
56 void ffmpeg_av_register_all(); // <pyapi>
57 void ffmpeg_av_log_set_level(int level); // <pyapi>
58 
59 #endif