SONIC-SNAP(1)

NAME
sonic-snap - webcam application for sn9c102 devices.

SYNOPSIS
sonic-snap [options]
sonic-snap-gui [devicefilename] [width height]

DESCRIPTION
sonic-snap is a program that captures images and movies from an sn9c102 camera. It requires a kernel module for the device.

The gui version can display histograms, and output mpeg video. The commandline version simply captures one or more images, and exits.

OPTIONS
gain=[0.0..1.0]
Higher gain setting gives brighter images.

normalize=[0|1]
When set to 1, the darkest pixels in the captured image will be mapped onto black, and the lightest pixels to white.

autogain=[0|1]
Automatically set the gain based on the histogram of captured images.

compression=[0|1]
When set to 1, a higher fps can be reached, at the cost of artefacts in the image (bug in decompressor code).

count=[1..n]
The number of images to capture.

skip=[1..n]
When high, time-lapse photography is performed.

prefix=xxxx
The prefix for writing to disk. Captured images will be called xxxx0000.ppm, xxxx0001.ppm, ...

device=/dev/video0
The videoforlinux2 device to use.

EXAMPLES
sonic-snap gain=0.5 normalize=1 autogain=0 compression=1 count=1 skip=1 prefix=sonicsnap device=/dev/video0

sonic-snap-gui /dev/video0 352 288

BUGS
Compression induces artefacts, due to unknown huffman codes. This is a bug in the decompression library.

AUTHOR
sonic-snap was written by Bram Stolk <bram@sara.nl>.
sn9c102 decompression code by Bertrik Sikken.
bayer to rgb conversion by Takafumi Mizuno.