rotate dimensions when instantiating the Monitor object
This commit is contained in:
parent
8c53925fdc
commit
2d8c484792
|
@ -306,8 +306,8 @@ Monitor::Monitor(
|
||||||
server_id( p_server_id ),
|
server_id( p_server_id ),
|
||||||
function( (Function)p_function ),
|
function( (Function)p_function ),
|
||||||
enabled( p_enabled ),
|
enabled( p_enabled ),
|
||||||
width( p_camera->Width() ),
|
width( (p_orientation==ROTATE_90||p_orientation==ROTATE_270)?p_camera->Height():p_camera->Width() ),
|
||||||
height( p_camera->Height() ),
|
height( (p_orientation==ROTATE_90||p_orientation==ROTATE_270)?p_camera->Width():p_camera->Height() ),
|
||||||
orientation( (Orientation)p_orientation ),
|
orientation( (Orientation)p_orientation ),
|
||||||
deinterlacing( p_deinterlacing ),
|
deinterlacing( p_deinterlacing ),
|
||||||
label_coord( p_label_coord ),
|
label_coord( p_label_coord ),
|
||||||
|
|
|
@ -358,8 +358,8 @@ public:
|
||||||
return( embed_exif );
|
return( embed_exif );
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int Width() const { return( (p_orientation==ROTATE_90||p_orientation==ROTATE_270)?p_camera->Height():p_camera->Width() ); }
|
unsigned int Width() const { return( width ); }
|
||||||
unsigned int Height() const { return( (p_orientation==ROTATE_90||p_orientation==ROTATE_270)?p_camera->Width():p_camera->Height() ); }
|
unsigned int Height() const { return( height ); }
|
||||||
unsigned int Colours() const { return( camera->Colours() ); }
|
unsigned int Colours() const { return( camera->Colours() ); }
|
||||||
unsigned int SubpixelOrder() const { return( camera->SubpixelOrder() ); }
|
unsigned int SubpixelOrder() const { return( camera->SubpixelOrder() ); }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue