EMIPLIB
Public Member Functions

MIPV4L2Input Class Reference

This class describes a Video4Linux2 based input component. More...

#include <mipv4l2input.h>

Inheritance diagram for MIPV4L2Input:
Inheritance graph
[legend]
Collaboration diagram for MIPV4L2Input:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool open (int width, int height, const std::string &device=std::string("/dev/video0"))
 Opens the specified video4linux2 device and requests a specific width and height.
bool close ()
 Closes the video4linux2 device.
int getWidth () const
 Returns the width of the captured video frames.
int getHeight () const
 Returns the height of the captured video frames.
void setSourceID (uint64_t srcID)
 Sets the source ID to be stored in generated messages.
uint64_t getSourceID () const
 Returns the source ID which will be stored in generated messages.
bool getCompressed () const
 Returns true is the frames are JPEG compressed, false if not.
uint32_t getFrameSubtype () const
 Returns the message subtype of the frames produced by this component (for uncompressed frames).

Detailed Description

This class describes a Video4Linux2 based input component. The component accepts both MIPSYSTEMMESSAGE_TYPE_WAITTIME and MIPSYSTEMMESSAGE_TYPE_ISTIME messages. Currently there is no way to specify the desired frame rate, so the MIPSYSTEMMESSAGE_TYPE_ISTIME is the recommended message to use. Output frames can be YUV420P encoded, YUYV encoded or JPEG compressed.


Member Function Documentation

bool MIPV4L2Input::close ( )
bool MIPV4L2Input::getCompressed ( ) const [inline]
uint32_t MIPV4L2Input::getFrameSubtype ( ) const [inline]
int MIPV4L2Input::getHeight ( ) const [inline]
uint64_t MIPV4L2Input::getSourceID ( ) const [inline]
int MIPV4L2Input::getWidth ( ) const [inline]
bool MIPV4L2Input::open ( int  width,
int  height,
const std::string &  device = std::string("/dev/video0") 
)
void MIPV4L2Input::setSourceID ( uint64_t  srcID) [inline]

The documentation for this class was generated from the following file: