NAME

init_bttv_camera - Inits a bttv camera

SYNOPSIS

#include "camera/bttv_camera.h"

Example compile flags (system dependent):
  -DLINUX_X86_64 -DLINUX_X86_64_OPTERON  -DGNU_COMPILER 
   -I/home/kobus/include
   -L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
  -lKJB                               -lfftw3  -lgsl -lgslcblas -ljpeg  -lSVM -lstdc++                    -lpthread -lSLATEC -lg2c    -lacml -lacml_mv -lblas -lg2c      -lncursesw 


int init_bttv_camera
(
	Bttv_camera **my_camera,
	int width,
	int height,
	char *camera_id,
	char *machine,
	char *device,
	int usd
);

DESCRIPTION

This routine inits the internal structures needed to query the bttv camera identified by camera_number, and sets the camera resolution to width and height. The code looks for the camera device in 'device', usually being '/dev/videoN', where N is an integer. The device files should have the correct permissions set. In general, it is better to initialize the cameras using init_bttv_camera_from_config_file

RETURNS

On error, this routine returns ERROR, otherwise, NO_ERROR.

RELATED

Bttv_camera, get_image_from_bttv_camera, display_cameras_opengl, init_bttv_camera_from_config_file

DISCLAIMER

This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.

AUTHOR

Kate Spriggs

DOCUMENTER

Kate Spriggs

SEE ALSO

init_bttv_camera_from_config_file , get_image_from_bttv_camera , get_image_from_bttv_camera_2 , get_images_from_all_bttv_cameras , display_cameras_opengl