#include <v4l2buffer.h>
Public Member Functions | |
bool | frame_pending () |
double | frame_rate () |
V4L2FrameT< unsigned char > * | get_frame () |
void | put_frame (V4L2FrameT< unsigned char > *f) |
Tell the buffer that you are finished with this frame. Overloaded version of VideoBuffer<T>::put_frame(). | |
void | put_frame (VideoFrame< unsigned char > *f) |
Tell the buffer that you are finished with this frame. Overloaded version of VideoBuffer<T>::put_frame(). | |
ImageRef | size () |
V4L2Buffer_Base (const char *devname, bool fields, V4L2BufferBlockMethod block, int input, int numbufs, unsigned long int pixtpe) | |
~V4L2Buffer_Base () | |
Private Member Functions | |
int | operator= (V4L2Buffer_Base ©of) |
V4L2Buffer_Base (V4L2Buffer_Base ©of) | |
Private Attributes | |
std::string | device |
bool | i_am_using_fields |
int | m_nVideoFileDesc |
void ** | m_pvVideoBuffer |
struct v4l2_buffer * | m_sv4l2Buffer |
V4L2BufferBlockMethod | my_block_method |
int | my_dropped_frames |
int | my_fd |
double | my_frame_rate |
ImageRef | my_image_size |
int | my_prev_frame_no |
int | num_buffers |
A live video buffer from a the framegrabber (using the Video for Linux 2 API). This provides 8-bit greyscale video frames of type CVD::V4L2Frame and throws exceptions of type CVD::Exceptions::V4L2Buffer
Definition at line 96 of file v4l2buffer.h.
CVD::V4L2Buffer_Base::V4L2Buffer_Base | ( | const char * | devname, | |
bool | fields, | |||
V4L2BufferBlockMethod | block, | |||
int | input, | |||
int | numbufs, | |||
unsigned long int | pixtpe | |||
) |
Construct a video buffer
devname | The device name | |
fields | ||
block | Which buffer block method to use | |
input | Which card input? | |
numbufs | How many buffers? |
CVD::V4L2Buffer_Base::~V4L2Buffer_Base | ( | ) |
CVD::V4L2Buffer_Base::V4L2Buffer_Base | ( | V4L2Buffer_Base & | copyof | ) | [private] |
bool CVD::V4L2Buffer_Base::frame_pending | ( | ) |
Reimplemented in CVD::V4L2BufferT< T >.
double CVD::V4L2Buffer_Base::frame_rate | ( | ) | [inline] |
Reimplemented in CVD::V4L2BufferT< T >.
Definition at line 120 of file v4l2buffer.h.
V4L2FrameT<unsigned char>* CVD::V4L2Buffer_Base::get_frame | ( | ) |
Reimplemented in CVD::V4L2BufferT< T >.
int CVD::V4L2Buffer_Base::operator= | ( | V4L2Buffer_Base & | copyof | ) | [private] |
void CVD::V4L2Buffer_Base::put_frame | ( | V4L2FrameT< unsigned char > * | f | ) |
Tell the buffer that you are finished with this frame. Overloaded version of VideoBuffer<T>::put_frame().
void CVD::V4L2Buffer_Base::put_frame | ( | VideoFrame< unsigned char > * | f | ) |
Tell the buffer that you are finished with this frame. Overloaded version of VideoBuffer<T>::put_frame().
ImageRef CVD::V4L2Buffer_Base::size | ( | ) | [inline] |
Reimplemented in CVD::V4L2BufferT< T >.
Definition at line 108 of file v4l2buffer.h.
std::string CVD::V4L2Buffer_Base::device [private] |
Definition at line 126 of file v4l2buffer.h.
bool CVD::V4L2Buffer_Base::i_am_using_fields [private] |
Definition at line 130 of file v4l2buffer.h.
int CVD::V4L2Buffer_Base::m_nVideoFileDesc [private] |
Definition at line 136 of file v4l2buffer.h.
void** CVD::V4L2Buffer_Base::m_pvVideoBuffer [private] |
Definition at line 135 of file v4l2buffer.h.
struct v4l2_buffer* CVD::V4L2Buffer_Base::m_sv4l2Buffer [private] |
Definition at line 134 of file v4l2buffer.h.
Definition at line 133 of file v4l2buffer.h.
int CVD::V4L2Buffer_Base::my_dropped_frames [private] |
Definition at line 127 of file v4l2buffer.h.
int CVD::V4L2Buffer_Base::my_fd [private] |
Definition at line 139 of file v4l2buffer.h.
double CVD::V4L2Buffer_Base::my_frame_rate [private] |
Definition at line 131 of file v4l2buffer.h.
ImageRef CVD::V4L2Buffer_Base::my_image_size [private] |
Definition at line 132 of file v4l2buffer.h.
int CVD::V4L2Buffer_Base::my_prev_frame_no [private] |
Definition at line 128 of file v4l2buffer.h.
int CVD::V4L2Buffer_Base::num_buffers [private] |
Definition at line 129 of file v4l2buffer.h.