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)
40extern"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: