Patched in DavidS changes to fix up the preview modes
Merge in the fixed AWB changes from DavidS
Merge pull request #157 from JamesH65/preview_fixes2

Patched in DavidS changes to fix up the preview modes
Merge pull request #158 from JamesH65/fixed_awb_fix

Merge in the fixed AWB changes from DavidS
Fix vcos_semaphore_wait_timeout

vcos_semaphore_wait_timeout uses sem_timedwait() internally. sem_timedwait
expects an absolute timespec instead of a relative one. So it has to be
computed. Furthermore sem_timedwait has only one error return code (-1) and
uses errno to signal the actual error reason. In case of EINTR the waitinig
was interrupted by a signal and shall be continued.

Signed-off-by: Julian Scheel <julian@jusst.de>
mmal: Add queue_timedwait

Implement a blocking wait for the mmal_queue which aborts after a given
timeout.

Signed-off-by: Julian Scheel <julian@jusst.de>
Merge pull request #160 from julianscheel/master

Fix vcos_semaphore_wait_timeout and add mmal_queue_timedwait
ILCamera: Add option to remove all padding from the output images.

Update to MMAL, IL, and RIL Camera to support removing the
padding from output buffers. Buffer size is still the
padded size, but the image will be packed within that
buffer.
vcos: Add prototype for vcos_semaphore_wait_timeout (for GPU side)
tvservice: Add callback unregister with data pointer check

In some circumstances an application may register multiple callback instances
using the same function pointer but differerent data context. To allow proper
unregister of these callbacks add a new method which checks for function
pointer and data pointer before removal.

Signed-off-by: Julian Scheel <julian@jusst.de>
tvservice: Increase max callback count to 5

A maximum callback count of 2 might be too low for some usecases.

Signed-off-by: Julian Scheel <julian@jusst.de>
Merge pull request #162 from julianscheel/master

tvservice: Enhance callback mechanism
tvservice: report framerate including nstc clock
encode: Add support for saving inline motion vectors from gsh
dispmanx: Add new display numbers for controlling display output device
tvservice: Allow requesting ntsc frequencies
Allow stereo view modes to be selected
RaspiVid: Fix file splitting code.

File splitting code was failing to write the first set of
header bytes to all except the first file due to a bug
introduced by the circular buffer handling.
See http://www.raspberrypi.org/forums/viewtopic.php?f=43&t=76172
Merge pull request #168 from 6by9/master

RaspiVid: Fix file splitting code.
Option to save the inline motion vectors to a file

The option "-x filename" will save the inline motion vector buffer in raw format.
Two example programs where added to host_applications/linux/apps/raspicam/imv_examples/
to show how to post-process these buffers.