1 #ifndef _AV_TRANSCODER_COMMON_HPP_
2 #define _AV_TRANSCODER_COMMON_HPP_
4 #define AVTRANSCODER_VERSION_MAJOR 0
5 #define AVTRANSCODER_VERSION_MINOR 9
6 #define AVTRANSCODER_VERSION_MICRO 4
11 #ifndef __STDC_CONSTANT_MACROS
12 #define __STDC_CONSTANT_MACROS
15 #define INT64_C(c) (c##LL)
16 #define UINT64_C(c) (c##ULL)
18 #include <libavcodec/version.h>
19 #include <libavutil/rational.h>
27 #if defined(__WINDOWS__)
28 #define AvExport __declspec(dllexport)
29 #elif defined(__GNUC__) // Add compiler definition here...
30 #if __GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 > 2)
31 #define AvExport __attribute__((visibility("default")))
34 #warning "AvExport not set because of a too old gcc version. The plug-in may not compile with the option -fvisible=hidden."
37 #error "AvExport not defined for this compiler..."
42 #if LIBAVCODEC_VERSION_MAJOR < 54
43 #define AVPixelFormat PixelFormat
44 #define AV_PIX_FMT_NONE PIX_FMT_NONE
45 #define AVCodecID CodecID
46 #define AV_CODEC_ID_NONE CODEC_ID_NONE
std::string getDescriptionFromErrorCode(const int code)
Get the string description corresponding to the error code provided by ffmpeg/libav.
void preloadCodecsAndFormats()
Register all the codecs and formats which are enabled at configuration time.