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

#include <ffmpeg.h>

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

List of all members.

Public Member Functions

 FfmpegVideo (const std::string filename, const std::string fmtout="RGB24", const std::string codec_hint="", bool dump_info=false, int user_video_stream=-1)
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 ()
 Implement VideoSource::Start()
void Stop ()
 Implement VideoSource::Stop()
unsigned Width () const
 ~FfmpegVideo ()

Protected Member Functions

void InitUrl (const std::string filename, const std::string fmtout="RGB24", const std::string codec_hint="", bool dump_info=false, int user_video_stream=-1)

Protected Attributes

int audioStream
uint8_t * buffer
PixelFormat fmtout
SwsContext * img_convert_ctx
int numBytesOut
AVPacket packet
AVCodec * pAudCodec
AVCodecContext * pAudCodecCtx
AVFormatContext * pFormatCtx
AVFrame * pFrame
AVFrame * pFrameOut
AVCodec * pVidCodec
AVCodecContext * pVidCodecCtx
int videoStream

Detailed Description

Definition at line 51 of file ffmpeg.h.


Constructor & Destructor Documentation

pangolin::FfmpegVideo::FfmpegVideo ( const std::string  filename,
const std::string  fmtout = "RGB24",
const std::string  codec_hint = "",
bool  dump_info = false,
int  user_video_stream = -1 
)

Definition at line 124 of file ffmpeg.cpp.

Definition at line 262 of file ffmpeg.cpp.


Member Function Documentation

bool pangolin::FfmpegVideo::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 342 of file ffmpeg.cpp.

bool pangolin::FfmpegVideo::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 315 of file ffmpeg.cpp.

unsigned pangolin::FfmpegVideo::Height ( ) const [virtual]

Implements pangolin::VideoInterface.

Definition at line 292 of file ffmpeg.cpp.

void pangolin::FfmpegVideo::InitUrl ( const std::string  filename,
const std::string  fmtout = "RGB24",
const std::string  codec_hint = "",
bool  dump_info = false,
int  user_video_stream = -1 
) [protected]

Definition at line 130 of file ffmpeg.cpp.

std::string pangolin::FfmpegVideo::PixFormat ( ) const [virtual]

Implements pangolin::VideoInterface.

Definition at line 302 of file ffmpeg.cpp.

size_t pangolin::FfmpegVideo::SizeBytes ( ) const [virtual]

Implements pangolin::VideoInterface.

Definition at line 297 of file ffmpeg.cpp.

void pangolin::FfmpegVideo::Start ( ) [virtual]

Implement VideoSource::Start()

Implements pangolin::VideoInterface.

Definition at line 307 of file ffmpeg.cpp.

void pangolin::FfmpegVideo::Stop ( ) [virtual]

Implement VideoSource::Stop()

Implements pangolin::VideoInterface.

Definition at line 311 of file ffmpeg.cpp.

unsigned pangolin::FfmpegVideo::Width ( ) const [virtual]

Implements pangolin::VideoInterface.

Definition at line 287 of file ffmpeg.cpp.


Member Data Documentation

Definition at line 81 of file ffmpeg.h.

uint8_t* pangolin::FfmpegVideo::buffer [protected]

Definition at line 90 of file ffmpeg.h.

PixelFormat pangolin::FfmpegVideo::fmtout [protected]

Definition at line 91 of file ffmpeg.h.

SwsContext* pangolin::FfmpegVideo::img_convert_ctx [protected]

Definition at line 78 of file ffmpeg.h.

Definition at line 89 of file ffmpeg.h.

AVPacket pangolin::FfmpegVideo::packet [protected]

Definition at line 88 of file ffmpeg.h.

AVCodec* pangolin::FfmpegVideo::pAudCodec [protected]

Definition at line 85 of file ffmpeg.h.

AVCodecContext* pangolin::FfmpegVideo::pAudCodecCtx [protected]

Definition at line 83 of file ffmpeg.h.

AVFormatContext* pangolin::FfmpegVideo::pFormatCtx [protected]

Definition at line 79 of file ffmpeg.h.

AVFrame* pangolin::FfmpegVideo::pFrame [protected]

Definition at line 86 of file ffmpeg.h.

AVFrame* pangolin::FfmpegVideo::pFrameOut [protected]

Definition at line 87 of file ffmpeg.h.

AVCodec* pangolin::FfmpegVideo::pVidCodec [protected]

Definition at line 84 of file ffmpeg.h.

AVCodecContext* pangolin::FfmpegVideo::pVidCodecCtx [protected]

Definition at line 82 of file ffmpeg.h.

Definition at line 80 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