#include <ffmpeg.h>
Public Member Functions | |
FfmpegConverter (VideoInterface *videoin, const std::string pixelfmtout="RGB24", FfmpegMethod method=FFMPEG_POINT) | |
bool | GrabNewest (unsigned char *image, bool wait=true) |
bool | GrabNext (unsigned char *image, bool wait=true) |
unsigned | Height () const |
std::string | PixFormat () const |
size_t | SizeBytes () const |
void | Start () |
void | Stop () |
unsigned | Width () const |
~FfmpegConverter () | |
Protected Attributes | |
AVFrame * | avdst |
AVFrame * | avsrc |
uint8_t * | bufdst |
uint8_t * | bufsrc |
PixelFormat | fmtdst |
PixelFormat | fmtsrc |
unsigned | h |
SwsContext * | img_convert_ctx |
int | numbytesdst |
int | numbytessrc |
VideoInterface * | videoin |
unsigned | w |
pangolin::FfmpegConverter::FfmpegConverter | ( | VideoInterface * | videoin, |
const std::string | pixelfmtout = "RGB24" , |
||
FfmpegMethod | method = FFMPEG_POINT |
||
) |
Definition at line 347 of file ffmpeg.cpp.
Definition at line 376 of file ffmpeg.cpp.
bool pangolin::FfmpegConverter::GrabNewest | ( | unsigned char * | image, |
bool | wait = true |
||
) | [virtual] |
Copy the newest frame from the camera to image discarding all older frames. Optionally wait for a frame if one isn't ready Returns true iff image was copied
Implements pangolin::VideoInterface.
Definition at line 430 of file ffmpeg.cpp.
bool pangolin::FfmpegConverter::GrabNext | ( | unsigned char * | image, |
bool | wait = true |
||
) | [virtual] |
Copy the next frame from the camera to image. Optionally wait for a frame if one isn't ready Returns true iff image was copied
Implements pangolin::VideoInterface.
Definition at line 415 of file ffmpeg.cpp.
unsigned pangolin::FfmpegConverter::Height | ( | ) | const [virtual] |
Implements pangolin::VideoInterface.
Definition at line 400 of file ffmpeg.cpp.
std::string pangolin::FfmpegConverter::PixFormat | ( | ) | const [virtual] |
Implements pangolin::VideoInterface.
Definition at line 410 of file ffmpeg.cpp.
size_t pangolin::FfmpegConverter::SizeBytes | ( | ) | const [virtual] |
Implements pangolin::VideoInterface.
Definition at line 405 of file ffmpeg.cpp.
void pangolin::FfmpegConverter::Start | ( | ) | [virtual] |
Implements pangolin::VideoInterface.
Definition at line 385 of file ffmpeg.cpp.
void pangolin::FfmpegConverter::Stop | ( | ) | [virtual] |
Implements pangolin::VideoInterface.
Definition at line 390 of file ffmpeg.cpp.
unsigned pangolin::FfmpegConverter::Width | ( | ) | const [virtual] |
Implements pangolin::VideoInterface.
Definition at line 395 of file ffmpeg.cpp.
AVFrame* pangolin::FfmpegConverter::avdst [protected] |
AVFrame* pangolin::FfmpegConverter::avsrc [protected] |
uint8_t* pangolin::FfmpegConverter::bufdst [protected] |
uint8_t* pangolin::FfmpegConverter::bufsrc [protected] |
PixelFormat pangolin::FfmpegConverter::fmtdst [protected] |
PixelFormat pangolin::FfmpegConverter::fmtsrc [protected] |
unsigned pangolin::FfmpegConverter::h [protected] |
SwsContext* pangolin::FfmpegConverter::img_convert_ctx [protected] |
int pangolin::FfmpegConverter::numbytesdst [protected] |
int pangolin::FfmpegConverter::numbytessrc [protected] |
VideoInterface* pangolin::FfmpegConverter::videoin [protected] |
unsigned pangolin::FfmpegConverter::w [protected] |