#include "CamSensor.h" #include "CamDebug.h" CamSensor::CamSensor(CamDevice *_camera) : fInitStatus(B_NO_INIT), fIsBigEndian(false), fTransferEnabled(false), fVideoFrame(), fLastParameterChanges(0), fCamDevice(_camera) { } CamSensor::~CamSensor() { } status_t CamSensor::Probe() { // default is to match by USB IDs return B_OK; } status_t CamSensor::InitCheck() { return fInitStatus; } status_t CamSensor::Setup() { return fInitStatus; } const char * CamSensor::Name() { return ""; } status_t CamSensor::StartTransfer() { fTransferEnabled = true; return B_OK; } status_t CamSensor::StopTransfer() { fTransferEnabled = false; return B_OK; } status_t CamSensor::SetVideoFrame(BRect rect) { return ENOSYS; } status_t CamSensor::SetVideoParams(float brightness, float contrast, float hue, float red, float green, float blue) { return ENOSYS; } void CamSensor::AddParameters(BParameterGroup *group, int32 &index) { fFirstParameterID = index; } status_t CamSensor::GetParameterValue(int32 id, bigtime_t *last_change, void *value, size_t *size) { return B_BAD_VALUE; } status_t CamSensor::SetParameterValue(int32 id, bigtime_t when, const void *value, size_t size) { return B_BAD_VALUE; } CamDevice * CamSensor::Device() { return fCamDevice; }