|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
10 #ifndef FfmpegGrabber_INC
11 #define FfmpegGrabber_INC
16 #include <libavcodec/avcodec.h>
17 #include <libavformat/avformat.h>
71 bool close()
override;
75 bool getSound(
yarp::sig::Sound& sound,
size_t min_number_of_samples,
size_t max_number_of_samples,
double max_samples_timeout_s)
override;
145 AVFormatContext **ppFormatCtx);
148 AVFormatContext **ppFormatCtx,
149 AVFormatContext **ppFormatCtx2);
151 bool openFile(AVFormatContext **ppFormatCtx,
bool getSound(yarp::sig::Sound &sound, size_t min_number_of_samples, size_t max_number_of_samples, double max_samples_timeout_s) override
Get a sound from a device.
A base class for nested structures that can be searched.
AVFormatContext * pFormatCtx2
int m_w
Width of the images a grabber produces.
int width() const override
Return the width of each frame.
bool startRecording() override
Start the recording.
bool openV4L(yarp::os::Searchable &config, AVFormatContext **ppFormatCtx, AVFormatContext **ppFormatCtx2)
Interface implemented by all device drivers.
ffmpeg_grabber: An image frame grabber device using ffmpeg to capture images from AVI files.
bool getImage(yarp::sig::ImageOf< yarp::sig::PixelRgb > &image) override
Get an rgb image from the frame grabber, if required demosaicking/color reconstruction is applied.
AVDictionary * formatParamsAudio
bool openFile(AVFormatContext **ppFormatCtx, const char *fname)
void * m_capture
Opaque ffmpeg structure for image capture.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
Read a YARP-format sound block from a device.
Read a YARP-format image from a device.
bool resetRecordingAudioBuffer() override
Read a YARP-format image and sound from a device.
AVFormatContext * pFormatCtx
bool stopRecording() override
Stop the recording.
virtual bool getAudioVisual(yarp::sig::ImageOf< yarp::sig::PixelRgb > &image, yarp::sig::Sound &sound) override
Get an image and sound.
bool getRecordingAudioBufferCurrentSize(yarp::dev::AudioBufferSize &) override
bool openFirewire(yarp::os::Searchable &config, AVFormatContext **ppFormatCtx)
std::string m_uri
Uri of the images a grabber produces.
int height() const override
Return the height of each frame.
bool getRecordingAudioBufferMaxSize(yarp::dev::AudioBufferSize &) override
AVDictionary * formatParamsVideo
int m_h
Height of the images a grabber produces.
Class for storing sounds.
bool close() override
Close the DeviceDriver.
AVFormatContext * pAudioFormatCtx