1 #include "CamSensor.h" 2 #include "CamDebug.h" 3 4 // ----------------------------------------------------------------------------- 5 CamSensor::CamSensor(CamDevice *_camera) 6 : fInitStatus(B_NO_INIT), 7 fTransferEnabled(false), 8 fVideoFrame(), 9 fCamDevice(_camera) 10 { 11 12 } 13 14 // ----------------------------------------------------------------------------- 15 CamSensor::~CamSensor() 16 { 17 18 } 19 20 // ----------------------------------------------------------------------------- 21 status_t 22 CamSensor::InitCheck() 23 { 24 return fInitStatus; 25 } 26 27 // ----------------------------------------------------------------------------- 28 status_t 29 CamSensor::Setup() 30 { 31 return fInitStatus; 32 } 33 34 // ----------------------------------------------------------------------------- 35 const char * 36 CamSensor::Name() 37 { 38 return "<unknown>"; 39 } 40 41 // ----------------------------------------------------------------------------- 42 status_t 43 CamSensor::StartTransfer() 44 { 45 fTransferEnabled = true; 46 return B_OK; 47 } 48 49 // ----------------------------------------------------------------------------- 50 status_t 51 CamSensor::StopTransfer() 52 { 53 fTransferEnabled = false; 54 return B_OK; 55 } 56 57 // ----------------------------------------------------------------------------- 58 status_t 59 CamSensor::SetVideoFrame(BRect rect) 60 { 61 return ENOSYS; 62 } 63 64 // ----------------------------------------------------------------------------- 65 status_t 66 CamSensor::SetVideoParams(float brightness, float contrast, float hue, float red, float green, float blue) 67 { 68 return ENOSYS; 69 } 70 71 // ----------------------------------------------------------------------------- 72 CamDevice * 73 CamSensor::Device() 74 { 75 return fCamDevice; 76 } 77