18 #ifndef AGXOSG_VIDEOCAPTURE_H 19 #define AGXOSG_VIDEOCAPTURE_H 21 #include <agx/config/AGX_USE_FFMPEG.h> 30 #include <libavutil/opt.h> 31 #include <libavcodec/avcodec.h> 32 #include <libavutil/channel_layout.h> 33 #include <libavutil/common.h> 34 #include <libavutil/imgutils.h> 35 #include <libavutil/mathematics.h> 36 #include <libavutil/samplefmt.h> 37 #include <libswscale/swscale.h> 38 #include <libavformat/avformat.h> 58 void setDataCallback(DataCallback callback);
71 virtual ~VideoCapture();
77 bool encode(AVFrame *frame);
79 virtual void writeImage(osg::Image *image,
agx::Index index);
80 static int writePacket(
void *opaque, uint8_t *buf,
int buf_size);
83 AVFormatContext * m_formatContext;
84 AVOutputFormat * m_format;
85 AVCodecContext * m_codecContext;
89 SwsContext * m_swsContext;
90 DataCallback m_dataCallback;
91 unsigned char * m_fragmentBuffer;
void AGXPHYSICS_EXPORT init()
Initialize AGX Dynamics API including thread resources and must be executed before using the AGX API...
#define AGX_DECLARE_POINTER_TYPES(type)
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
Templated callback with two arguments.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...