Defines | Functions

ofV4LUtils.h File Reference

#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.

Defines

#define HAVE_V4L   1
#define LIMIT(x)   ((x)>0xffffff?0xff: ((x)<=0xffff?0:((x)>>16)))

Functions

bool openV4L_device (const char *device_name)
void initialiseV4L_device (const char *device_name)
bool initV4L (int width, int height, const char *devname)
bool queryV4L_imageProperties (void)
bool setV4L_palette (int palette, int depth)
bool setV4L_imageProperties (void)
bool setV4L_videoSize (int width, int height)
bool getFrameV4L (unsigned char *pixels)
void closeV4L (void)
bool mmapV4L (void)
int getV4L_Height ()
int getV4L_Width ()
void writePPM (unsigned char *data, char *filename, int width, int height)
void swap_rgb24 (unsigned char *mem, int n)

Define Documentation

#define HAVE_V4L   1
#define LIMIT (   x )    ((x)>0xffffff?0xff: ((x)<=0xffff?0:((x)>>16)))

Function Documentation

void closeV4L ( void   )
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 mmapV4L ( void   )
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 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines