24#include <libplayercore/playercore.h>
26#include "v4lcapture.h"
28#define PLAYER_CAMERA_FORMAT_RGB 6
29#define PLAYER_CAMERA_FORMAT_YUV420P 7
56 void YUV422toRGB(uint8_t* argInputData, uint8_t* argOutputData);
58 inline double LimitPan(
double argP)
59 {
return (argP < mPanMin) ? mPanMin : ((argP > mPanMax) ? mPanMax : argP);};
60 inline double LimitTilt(
double argT)
61 {
return (argT < mTiltMin) ? mTiltMin : ((argT > mTiltMax) ? mTiltMax : argT);};
65 player_camera_data_t mCameraData;
68 player_ptz_data_t mPtzData;
69 player_ptz_cmd_t mPtzCmd;
73 int32_t mShutterSpeed;
74 int32_t mCompressionPreference;
75 int32_t mAutomaticGain;
79 int32_t mNoiseReduction;
80 int32_t mDumpSettings;
82 const char *mAutomaticWb;
102 int32_t mFrameNumber;
105 int32_t mWidth, mHeight;
Class for loading configuration file information.
Definition configfile.h:197
An autopointer for the message queue.
Definition message.h:74
Definition sphere_mixed.h:34
int MainSetup()
Sets up the resources needed by the driver thread.
Definition sphere_mixed.cc:276
virtual void Main()
Main method for driver thread.
Definition sphere_mixed.cc:382
void YUV422toRGB(uint8_t *argInputData, uint8_t *argOutputData)
Conversion of YUV422 pixel data into RGB ( CCIR 601 )
Definition sphere_mixed.cc:671
void MainQuit()
Cleanup method for driver thread (called when main exits)
Definition sphere_mixed.cc:362
virtual int ProcessMessage(QueuePointer &resp_queue, player_msghdr *hdr, void *data)
Message handler.
Definition sphere_mixed.cc:405
SphereDriver(ConfigFile *cf, int section)
Definition sphere_mixed.cc:200
Base class for drivers which oeprate with a thread.
Definition driver.h:553
Definition v4lcapture.h:100
A device address.
Definition player.h:146
Generic message header.
Definition player.h:162