Valkka  1.6.1
OpenSource Video Management
Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
V4LDevice Class Reference
Inheritance diagram for V4LDevice:
Inheritance graph
[legend]
Collaboration diagram for V4LDevice:
Collaboration graph
[legend]

Public Member Functions

 V4LDevice (USBCameraConnectionContext camera_ctx)
 Default constructor. More...
 
const v4l_status getStatus ()
 
const std::string getName ()
 
virtual bool isPlaying ()
 
virtual void open_ ()
 Init camera device with some parameters. More...
 
virtual void close_ ()
 
virtual int pull ()
 Populates basicframe, sends it through the filter.
 
virtual void play ()
 
virtual void stop ()
 
- Public Member Functions inherited from USBDevice
 USBDevice (FrameFilter *framefilter)
 
int getFd ()
 
void setupFrame (SetupFrame frame)
 sets the setupframe and writes it to the framefilter
 

Protected Attributes

USBCameraConnectionContext camera_ctx
 
v4l_status status
 State of the device.
 
struct v4l2_buffer buf
 
std::vector< BasicFrame * > ring_buffer
 
SetupFrame setup_frame
 
FrameFiltertimestampfilter
 
FrameFilterinputfilter
 
- Protected Attributes inherited from USBDevice
int fd
 
FrameFilterframefilter
 Output FrameFilter.
 
SetupFrame setupframe
 This frame is used to send subsession information.
 
BasicFrame basicframe
 Data is being copied into this frame.
 
bool playing
 Is currently streaming or not.
 

Static Protected Attributes

static const int n_ring_buffer = 5
 

Constructor & Destructor Documentation

◆ V4LDevice()

V4LDevice::V4LDevice ( USBCameraConnectionContext  camera_ctx)

Default constructor.

Open the device, query its capabilities

  • Sets opening state

Member Function Documentation

◆ open_()

void V4LDevice::open_ ( )
virtual

Init camera device with some parameters.

Reimplemented from USBDevice.


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