avcpp 3.1.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
Loading...
Searching...
No Matches
avcompat.h File Reference

FFmpeg version and API compatibility switches.

#include <avcpp/avconfig.h>
#include <libavcodec/avcodec.h>
#include <libavfilter/avfilter.h>
#include <libavfilter/buffersink.h>
#include <libavfilter/buffersrc.h>

Go to the source code of this file.

Macros

#define AVCPP_USE_CODECPAR   ((AVCPP_AVCODEC_VERSION_MAJOR) >= 59)
 Whether FFmpeg has AVCodecParameters (FFmpeg 5.0 and newer).
#define AVCPP_API_NEW_CHANNEL_LAYOUT   ((AVCPP_AVUTIL_VERSION_MAJOR > 57) || (AVCPP_AVUTIL_VERSION_MAJOR == 57 && (AVCPP_AVUTIL_VERSION_MINOR >= 24)))
 Whether FFmpeg has the AVChannelLayout API (libavutil 57.28 and newer).
#define AVCPP_API_FRAME_NUM   ((AVCPP_AVCODEC_VERSION_MAJOR > 60) || (AVCPP_AVCODEC_VERSION_MAJOR == 60 && AVCPP_AVCODEC_VERSION_MINOR >= 2))
 Whether AVFrame carries frame_num (libavcodec 60.2 and newer).
#define AVCPP_API_AVFORMAT_URL   ((AVCPP_AVFORMAT_VERSION_MAJOR > 58) || (AVCPP_AVFORMAT_VERSION_MAJOR == 58 && AVCPP_AVFORMAT_VERSION_MINOR >= 7))
 Whether AVFormatContext exposes its URL through the url field.
#define AVCPP_API_FRAME_KEY   ((AVCPP_AVUTIL_VERSION_MAJOR > 58) || (AVCPP_AVUTIL_VERSION_MAJOR == 58 && AVCPP_AVUTIL_VERSION_MINOR >= 29))
 Whether AV_FRAME_FLAG_KEY exists for marking key frames.
#define AVCPP_API_AVCODEC_CLOSE   (AVCPP_AVCODEC_VERSION_MAJOR < 61)
 Whether avcodec_close() is still available.
#define AVCPP_API_AVCODEC_NEW_INIT_PACKET   (AVCPP_AVCODEC_VERSION_MAJOR >= 58)
 Whether packets must be allocated on the heap before initialization.
#define AVCPP_API_AVCODEC_GET_SUPPORTED_CONFIG   (AVCPP_AVCODEC_VERSION_INT >= AV_VERSION_INT(61, 13, 100))
 Whether avcodec_get_supported_config() replaces the deprecated AVCodec fields.
#define AVCPP_API_AVFORMAT_AV_STREAM_GET_CODEC_TIMEBASE   (AVCPP_AVFORMAT_VERSION_INT < AV_VERSION_INT(61, 5, 101))
 Whether av_stream_get_codec_timebase() is still available.
#define AVCPP_API_AVBUFFER_SIZE_T   (AVCPP_AVUTIL_VERSION_MAJOR >= 57)
 Whether AVBuffer uses size_t for sizes.
#define AVCPP_API_HAS_AVSIDEDATADESCRIPTOR   (AVCPP_AVUTIL_VERSION_INT >= AV_VERSION_INT(59, 10, 100))
 Whether AVSideDataDescriptor exists.
#define AVCPP_HAS_HWCONTEXT   AVCPP_HAS_AVUTIL
 Whether the hardware context API is available in this build.
#define AVCPP_API_HWDEVICE_DERIVED_OPTS   (AVCPP_AVUTIL_VERSION_INT >= AV_VERSION_INT(56, 48, 100))
 Whether av_hwdevice_ctx_create_derived_opts() exists (FFmpeg 4.3 and newer).
#define AVCPP_NEW_CODEC_API   (AVCPP_AVCODEC_VERSION_INT >= AV_VERSION_INT(57,37,100))
 Whether the codec send/receive API is available.
#define AVCPP_USE_SPACESHIP_OPERATOR   0
 Whether the compiler supports operator<=> and it may be used in the public headers.