Valkka  1.6.1
OpenSource Video Management
Classes | Macros | Enumerations | Functions
usbthread.h File Reference

USB Camera control and streaming. More...

#include "common.h"
#include "framefilter.h"
#include "thread.h"
Include dependency graph for usbthread.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  USBCameraConnectionContext
 Parameters for connecting to a usb camera. More...
 
struct  USBDeviceSignalContext
 Redefinition of characteristic signal contexts (info that goes with the signal) More...
 
class  USBDevice
 
class  V4LDevice
 
class  USBDeviceThread
 

Macros

#define CLEAR(x)   memset(&(x), 0, sizeof(x))
 

Enumerations

enum class  USBDeviceSignal {
  none , exit , register_camera_stream , deregister_camera_stream ,
  play_camera_stream , stop_camera_stream
}
 Signals used by USBDeviceThread.
 
enum  v4l_status {
  none =0 , none , not_found =1 , not_device =2 ,
  not_read =3 , ok_open =4 , not_v4l2 =5 , not_video_cap =6 ,
  not_stream =7 , not_format =8 , ok_format =9 , not_ptr =10 ,
  not_map =11 , not_on =12 , ok =13
}
 Different stages of v4l2 device initialization. More...
 

Functions

int xioctl (int fh, int request, void *arg)
 

Detailed Description

USB Camera control and streaming.

Author
Sampsa Riikonen
Date
2018
Version
1.6.1

Enumeration Type Documentation

◆ v4l_status

enum v4l_status

Different stages of v4l2 device initialization.

Enumerator
none 

undefined (initial value)

not_found 

file not found

not_device 

not device file

not_read 

could not read device

ok_open 

device opened

not_v4l2 

not v4l2 device

not_video_cap 

not video capture devices

not_stream 

does not support streaming

not_format 

device could not satisfy the demanded format

ok_format 

format is ok

not_ptr 

does not support user pointers

not_map 

could not communicate pointers with the drivers

not_on 

could not turn stream on

ok 

stream is playing allright