Update of /cvsroot/playerstage/code/player/client_libs/libplayerc++
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15592/client_libs/libplayerc++
Modified Files:
Tag: release-2-0-patches
playerc++.h ptzproxy.cc
Log Message:
added set_control_mode request to libplayerc and libplayerc++
Index: ptzproxy.cc
===================================================================
RCS file:
/cvsroot/playerstage/code/player/client_libs/libplayerc++/ptzproxy.cc,v
retrieving revision 1.5
retrieving revision 1.5.4.1
diff -C2 -d -r1.5 -r1.5.4.1
*** ptzproxy.cc 24 Oct 2005 09:02:40 -0000 1.5
--- ptzproxy.cc 2 Aug 2006 17:00:33 -0000 1.5.4.1
***************
*** 83,86 ****
--- 83,94 ----
}
+ void PtzProxy::SelectControlMode(uint aMode)
+ {
+ boost::mutex::scoped_lock lock(mPc->mMutex);
+ if (0 != playerc_ptz_set_control_mode(mDevice, aMode))
+ throw PlayerError("PtzProxy::SelectControlMode()", "error setting control
mode");
+ return;
+ }
+
/** Specify new target velocities */
void PtzProxy::SetSpeed(double aPanSpeed, double aTiltSpeed, double
aZoomSpeed)
Index: playerc++.h
===================================================================
RCS file:
/cvsroot/playerstage/code/player/client_libs/libplayerc++/playerc++.h,v
retrieving revision 1.54.2.2
retrieving revision 1.54.2.3
diff -C2 -d -r1.54.2.2 -r1.54.2.3
*** playerc++.h 9 Jun 2006 18:13:49 -0000 1.54.2.2
--- playerc++.h 2 Aug 2006 17:00:33 -0000 1.54.2.3
***************
*** 1856,1862 ****
void SetSpeed(double aPanSpeed=0, double aTiltSpeed=0, double
aZoomSpeed=0);
! // Select new control mode. Use either PLAYER_PTZ_POSITION_CONTROL
! // or PLAYER_PTZ_VELOCITY_CONTROL.
! //void SelectControlMode(uint aMode);
/// Return Pan (rad)
--- 1856,1862 ----
void SetSpeed(double aPanSpeed=0, double aTiltSpeed=0, double
aZoomSpeed=0);
! /// Select new control mode. Use either @ref PLAYER_PTZ_POSITION_CONTROL
! /// or @ref PLAYER_PTZ_VELOCITY_CONTROL.
! void SelectControlMode(uint aMode);
/// Return Pan (rad)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit