Bug 471 - Compiler warnings, sorted out types and general format tidying

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2357 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan committed 2008-03-13 13:36:12 +00:00
1 parent 4c452c22c3
commit 799ee78675
17 files changed
+216 -208

No files matched your search

+10 -1
View File
@@ -20,7 +20,16 @@
#include "zm.h"
#include "zm_camera.h"
Camera::Camera( SourceType p_type, int p_width, int p_height, int p_palette, int p_brightness, int p_contrast, int p_hue, int p_colour, bool p_capture ) : type( p_type ), width( p_width), height( p_height ), palette( p_palette ), brightness( p_brightness ), contrast( p_contrast ), hue( p_hue ), colour( p_colour ), capture( p_capture )
Camera::Camera( SourceType p_type, int p_width, int p_height, int p_palette, int p_brightness, int p_contrast, int p_hue, int p_colour, bool p_capture ) :
type( p_type ),
width( p_width),
height( p_height ),
palette( p_palette ),
brightness( p_brightness ),
hue( p_hue ),
colour( p_colour ),
contrast( p_contrast ),
capture( p_capture )
{
colours = (palette==VIDEO_PALETTE_GREY?1:3);
size = width * height * colours;