All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Attributes
pangolin::FfmpegConverter Class Reference

#include <ffmpeg.h>

Inheritance diagram for pangolin::FfmpegConverter:
Inheritance graph
[legend]

List of all members.

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
VideoInterfacevideoin
unsigned w

Detailed Description

Definition at line 109 of file ffmpeg.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

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.


Member Data Documentation

AVFrame* pangolin::FfmpegConverter::avdst [protected]

Definition at line 132 of file ffmpeg.h.

AVFrame* pangolin::FfmpegConverter::avsrc [protected]

Definition at line 131 of file ffmpeg.h.

uint8_t* pangolin::FfmpegConverter::bufdst [protected]

Definition at line 134 of file ffmpeg.h.

uint8_t* pangolin::FfmpegConverter::bufsrc [protected]

Definition at line 133 of file ffmpeg.h.

PixelFormat pangolin::FfmpegConverter::fmtdst [protected]

Definition at line 130 of file ffmpeg.h.

PixelFormat pangolin::FfmpegConverter::fmtsrc [protected]

Definition at line 129 of file ffmpeg.h.

unsigned pangolin::FfmpegConverter::h [protected]

Definition at line 137 of file ffmpeg.h.

Definition at line 127 of file ffmpeg.h.

Definition at line 136 of file ffmpeg.h.

Definition at line 135 of file ffmpeg.h.

Definition at line 126 of file ffmpeg.h.

unsigned pangolin::FfmpegConverter::w [protected]

Definition at line 137 of file ffmpeg.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


pangolin_wrapper
Author(s): Todor Stoyanov
autogenerated on Wed Feb 13 2013 14:03:25