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

#include <pvn_video.h>

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

List of all members.

Public Member Functions

bool GrabNewest (unsigned char *image, bool wait=true)
bool GrabNext (unsigned char *image, bool wait=true)
unsigned Height () const
std::string PixFormat () const
 PvnVideo (const char *filename, bool realtime=false)
size_t SizeBytes () const
void Start ()
void Stop ()
unsigned Width () const
 ~PvnVideo ()

Protected Member Functions

void ReadFileHeader ()

Protected Attributes

std::ifstream file
pangolin::basetime frame_interval
int frames
pangolin::basetime last_frame
bool realtime
std::vector< VideoStreamstream_info

Detailed Description

Definition at line 47 of file pvn_video.h.


Constructor & Destructor Documentation

pangolin::PvnVideo::PvnVideo ( const char *  filename,
bool  realtime = false 
)

Definition at line 37 of file pvn_video.cpp.

Definition at line 48 of file pvn_video.cpp.


Member Function Documentation

bool pangolin::PvnVideo::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 119 of file pvn_video.cpp.

bool pangolin::PvnVideo::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 104 of file pvn_video.cpp.

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

Implements pangolin::VideoInterface.

Definition at line 89 of file pvn_video.cpp.

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

Implements pangolin::VideoInterface.

Definition at line 99 of file pvn_video.cpp.

void pangolin::PvnVideo::ReadFileHeader ( ) [protected]

Definition at line 53 of file pvn_video.cpp.

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

Implements pangolin::VideoInterface.

Definition at line 94 of file pvn_video.cpp.

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

Implements pangolin::VideoInterface.

Definition at line 76 of file pvn_video.cpp.

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

Implements pangolin::VideoInterface.

Definition at line 80 of file pvn_video.cpp.

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

Implements pangolin::VideoInterface.

Definition at line 84 of file pvn_video.cpp.


Member Data Documentation

std::ifstream pangolin::PvnVideo::file [protected]

Definition at line 65 of file pvn_video.h.

pangolin::basetime pangolin::PvnVideo::frame_interval [protected]

Definition at line 70 of file pvn_video.h.

int pangolin::PvnVideo::frames [protected]

Definition at line 64 of file pvn_video.h.

pangolin::basetime pangolin::PvnVideo::last_frame [protected]

Definition at line 71 of file pvn_video.h.

bool pangolin::PvnVideo::realtime [protected]

Definition at line 69 of file pvn_video.h.

std::vector<VideoStream> pangolin::PvnVideo::stream_info [protected]

Definition at line 66 of file pvn_video.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