#include "ofConstants.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <time.h>
#include <linux/videodev.h>
Go to the source code of this file.
Define Documentation
| #define LIMIT |
( |
|
x ) |
((x)>0xffffff?0xff: ((x)<=0xffff?0:((x)>>16))) |
Function Documentation
| bool getFrameV4L |
( |
unsigned char * |
pixels ) |
|
| int getV4L_Height |
( |
void |
) |
|
| int getV4L_Width |
( |
void |
) |
|
| void initialiseV4L_device |
( |
const char * |
device_name ) |
|
| bool initV4L |
( |
int |
width, |
|
|
int |
height, |
|
|
const char * |
devname |
|
) |
| |
| bool openV4L_device |
( |
const char * |
device_name ) |
|
| bool queryV4L_imageProperties |
( |
void |
) |
|
| bool setV4L_imageProperties |
( |
void |
) |
|
| bool setV4L_palette |
( |
int |
palette, |
|
|
int |
depth |
|
) |
| |
| bool setV4L_videoSize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
| void swap_rgb24 |
( |
unsigned char * |
mem, |
|
|
int |
n |
|
) |
| |
| void writePPM |
( |
unsigned char * |
data, |
|
|
char * |
filename, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |