Added -sn flag to set initial segment number.
Merge pull request #125 from mehow/segmentation

Added -sn flag to set initial segment number.
hello_pi: Tidy up of hello_videocube apps
mmal: Add MPJEG fourcc type
Fix "Invalid command line option" message - invalid arg index was used
Merge pull request #135 from tomekziel/master

Fix "Invalid command line option" message - invalid arg index was used
Add circular buffer mode.

This commit adds the functionality to set up a circular buffer in memory
which stores the last N seconds of video.  When the application is sent a
signal or a key is pressed the last N seconds are saved.
Add cmake rules to install mmal headerfiles to /opt/vc/include/interface/mmal/*
Make constant QP mode actually have constant QP
Merge pull request #138 from rktrlng/mmal_header_install

Add cmake rules to install mmal headerfiles to /opt/vc/include/interface...
Merge pull request #139 from aizvorski/master

Make constant QP mode actually have constant QP
hello_pi: Tidy up hello_video code
interface: Updates from vdec3 firmware update
hello_pi: Add hello_fft demo app from Andrew Holme
hello_pi: Add missing execute permission to rebuild.sh
vcos: cleanup dummy threads properly

If a thread created outside vcos_thread_create() gets a vcos
call (e.g. vcos_thread_at_exit), vcos creates a "dummy" thread
context so that other vcos functions will work.

Unfortunately, it wasn't hooking into pthreads to be arrange
to be called when the thread terminated, so none of the thread
termination happened: the dummy thread context was not called
and the thread at-exit functions were not called. This caused
memory to be leaked.

Use the destructor function that can be passed into
pthread_key_create() to get a callback when a thread exits,
and use this to do the dummy thread cleanup. Do not do
anything when a regular vcos thread exits (this is handled
separately).

Signed-off-by: Luke Diamand <luke@diamand.org>
Merge pull request #141 from luked99/vcos_memleak_fix

vcos: cleanup dummy threads properly
hello_pi: Fix rebuild script for hello_fft
raspistill: Fix not copying the terminating byte of filename