Ring Daemon 16.0.0
Loading...
Searching...
No Matches
libav_deps.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2004-2025 Savoir-faire Linux Inc.
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program 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
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18#ifndef __LIBAV_DEPS_H__
19#define __LIBAV_DEPS_H__
20
21// NOTE versions of FFmpeg's librairies can be checked using something like this:
22// #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( major, minor, micro )
23
24extern "C" {
25#include <libavcodec/avcodec.h>
26#include <libavfilter/avfilter.h>
27#include <libavformat/avformat.h>
28#include <libavdevice/avdevice.h>
29#include <libswscale/swscale.h>
30#include <libavutil/avutil.h>
31#include <libavutil/time.h>
32#include <libavutil/pixdesc.h>
33#include <libavutil/opt.h>
34#include <libavutil/channel_layout.h>
35#include <libavutil/imgutils.h>
36#include <libavutil/intreadwrite.h>
37#include <libavutil/log.h>
38#include <libavutil/samplefmt.h>
39
40#if LIBAVUTIL_VERSION_MAJOR < 56
41AVFrameSideData* av_frame_new_side_data_from_buf(AVFrame* frame,
42 enum AVFrameSideDataType type,
43 AVBufferRef* buf);
44#endif
45}
46
47#include "libav_utils.h"
48
49#endif // __LIBAV_DEPS_H__
AVFrameSideData * av_frame_new_side_data_from_buf(AVFrame *frame, enum AVFrameSideDataType type, AVBufferRef *buf)