Go to the documentation of this file.
17 #ifndef GZ_COMMON_FFMPEG_INC_HH_
18 #define GZ_COMMON_FFMPEG_INC_HH_
22 #include <gz/common/config.hh>
25 #pragma GCC system_header
29 #define INT64_C(c) (c ## LL)
30 #define UINT64_C(c) (c ## ULL)
33 #ifndef AV_ERROR_MAX_STRING_SIZE
34 #define AV_ERROR_MAX_STRING_SIZE 64
38 #include <libavcodec/avcodec.h>
39 #include <libavformat/avformat.h>
40 #include <libswscale/swscale.h>
41 #include <libavutil/mathematics.h>
42 #include <libavutil/opt.h>
43 #include <libavutil/error.h>
44 #include <libavutil/imgutils.h>
45 #include <libavutil/hwcontext.h>
47 #if defined(__linux__) && defined(HAVE_AVDEVICE)
48 #include <libavdevice/avdevice.h>
52 #include <gz/common/av/Export.hh>
59 IGNITION_COMMON_AV_VISIBLE
63 IGNITION_COMMON_AV_VISIBLE
68 IGNITION_COMMON_AV_VISIBLE
82 IGNITION_COMMON_AV_VISIBLE
84 AVFrame *_frame,
int *_gotFrame, AVPacket *_packet);
91 memset(buf, 0,
sizeof(buf));
Forward declarations for the common classes.
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.
std::string av_err2str_cpp(int errnum)
Definition: gz/common/ffmpeg_inc.hh:88
#define AV_ERROR_MAX_STRING_SIZE
Definition: gz/common/ffmpeg_inc.hh:34
IGNITION_COMMON_AV_VISIBLE void AVPacketUnref(AVPacket *_packet)
Helper function to avoid deprecation warnings.