17 #ifndef IGNITION_COMMON_FFMPEG_INC_HH_ 18 #define IGNITION_COMMON_FFMPEG_INC_HH_ 20 #include <ignition/common/config.hh> 23 #pragma GCC system_header 27 #define INT64_C(c) (c ## LL) 28 #define UINT64_C(c) (c ## ULL) 31 #ifndef AV_ERROR_MAX_STRING_SIZE 32 #define AV_ERROR_MAX_STRING_SIZE 64 36 #include <libavcodec/avcodec.h> 37 #include <libavformat/avformat.h> 38 #include <libswscale/swscale.h> 39 #include <libavutil/mathematics.h> 40 #include <libavutil/opt.h> 41 #include <libavutil/error.h> 42 #include <libavutil/imgutils.h> 44 #if defined(__linux__) && defined(HAVE_AVDEVICE) 45 #include <libavdevice/avdevice.h> 49 #include <ignition/common/av/Export.hh> 56 IGNITION_COMMON_AV_VISIBLE
60 IGNITION_COMMON_AV_VISIBLE
65 IGNITION_COMMON_AV_VISIBLE
77 IGNITION_COMMON_AV_VISIBLE
79 AVFrame *_frame,
int *_gotFrame, AVPacket *_packet);
IGNITION_COMMON_AV_VISIBLE void AVPacketUnref(AVPacket *_packet)
Helper function to avoid deprecation warnings.
IGNITION_COMMON_AV_VISIBLE AVFrame * AVFrameAlloc(void)
Helper function to avoid deprecation warnings.
IGNITION_COMMON_AV_VISIBLE int AVCodecDecode(AVCodecContext *_codecCtx, AVFrame *_frame, int *_gotFrame, AVPacket *_packet)
Helper function to avoid deprecation warnings from av_codec_decode_video2.
IGNITION_COMMON_AV_VISIBLE void AVFrameUnref(AVFrame *_frame)
Helper function to avoid deprecation warnings.
Forward declarations for the common classes.