TwiceAsNice
2019-02-18
|
the QHYBASE class description More...
#include <qhybase.h>
Public Member Functions | |
QHYBASE () | |
virtual | ~QHYBASE () |
virtual void | InitCmos (qhyccd_handle *h) |
virtual uint32_t | BeginSingleExposure (qhyccd_handle *h) |
virtual uint32_t | CancelExposing (qhyccd_handle *handle) |
virtual uint32_t | CancelExposingAndReadout (qhyccd_handle *h) |
virtual uint32_t | BeginLiveExposure (qhyccd_handle *h) |
virtual uint32_t | StopLiveExposure (qhyccd_handle *h) |
virtual uint32_t | GetSingleFrame (qhyccd_handle *h, uint32_t *pW, uint32_t *pH, uint32_t *pBpp, uint32_t *pChannels, uint8_t *ImgData) |
virtual uint32_t | GetLiveFrame (qhyccd_handle *h, uint32_t *pW, uint32_t *pH, uint32_t *pBpp, uint32_t *pChannels, uint8_t *ImgData) |
virtual void | SetFlagQuit (bool val) |
virtual bool | IsFlagQuit () |
virtual void | SetExposureThreadRunFlag (bool val) |
virtual bool | IsExposureThreadRunning () |
virtual void | SetDdrnum (uint32_t val) |
virtual uint32_t | GetDdrnum () |
virtual void | SetTotalDataLength (uint32_t val) |
virtual void | TotalDataLengthAdd (uint32_t val) |
virtual uint32_t | GetTotalDataLength () |
virtual uint32_t | ConnectCamera (qhyccd_device *d, qhyccd_handle **h) |
connect camera,get the control handle More... | |
virtual uint32_t | DisConnectCamera (qhyccd_handle *h) |
disconnect camera More... | |
virtual uint32_t | InitChipRegs (qhyccd_handle *h) |
Init the registers and some other things More... | |
virtual uint32_t | ReSetParams2cam (qhyccd_handle *h) |
re set the params to camera,because some behavior will cause camera reset More... | |
virtual uint32_t | SetChipOffset (qhyccd_handle *h, double offset) |
set the camera offset More... | |
virtual uint32_t | SetChipExposeTime (qhyccd_handle *h, double i) |
set the expose time to camera More... | |
virtual uint32_t | SetChipGain (qhyccd_handle *h, double gain) |
set the gain to camera More... | |
virtual uint32_t | SetChipWBRed (qhyccd_handle *h, double red) |
set the red gain value of white balance More... | |
virtual uint32_t | SetChipWBGreen (qhyccd_handle *h, double green) |
set the red gain value of white balance More... | |
virtual uint32_t | SetChipWBBlue (qhyccd_handle *h, double blue) |
set the red gain value of white balance More... | |
virtual double | GetChipWBRed () |
get the red gain value of white balance More... | |
virtual double | GetChipWBBlue () |
get the blue gain value of white balance More... | |
virtual double | GetChipWBGreen () |
get the green gain value of white balance More... | |
virtual double | GetChipExposeTime () |
get the current exposetime More... | |
virtual double | GetChipGain () |
get the current gain More... | |
virtual double | GetChipOffset () |
get the current offset More... | |
virtual double | GetChipSpeed () |
get the current transfer speed More... | |
virtual double | GetChipUSBTraffic () |
get the hblank value More... | |
virtual double | GetChipBitsMode () |
get the current camera depth bits More... | |
virtual double | GetChipChannels () |
get the current camera image channels More... | |
virtual double | GetChipCoolTemp (qhyccd_handle *h) |
get the current ccd/cmos chip temprature More... | |
virtual double | GetChipCoolPWM () |
get the current ccd/cmos temprature More... | |
virtual double | GetChipCoolTargetTemp () |
get the current ccd/cmos target temperature More... | |
virtual uint32_t | GetControlMinMaxStepValue (CONTROL_ID controlId, double *min, double *max, double *step) |
get the min,max and step value for function More... | |
virtual uint32_t | CorrectWH (uint32_t *w, uint32_t *h) |
correct width and height if the setting width or height is not correct More... | |
virtual uint32_t | SetChipResolution (qhyccd_handle *handle, uint32_t x, uint32_t y, uint32_t xsize, uint32_t ysize) |
set camera ouput resolution More... | |
virtual uint32_t | SetChipUSBTraffic (qhyccd_handle *h, uint32_t i) |
set hblank More... | |
virtual uint32_t | DeChipRowNoise (qhyccd_handle *h, uint32_t value) |
enable the function to reduce the row noise More... | |
virtual uint32_t | GetChipMemoryLength () |
get the image cost memory length More... | |
virtual bool | IsSupportHighSpeed () |
check the camera support high speed transfer or not More... | |
virtual uint32_t | IsChipHasFunction (CONTROL_ID id) |
check the camera has the function or not More... | |
virtual uint32_t | SetChipCoolPWM (qhyccd_handle *h, double PWM) |
set cool power More... | |
virtual uint32_t | AutoTempControl (qhyccd_handle *h, double ttemp) |
auto temprature control More... | |
virtual uint32_t | SetChipSpeed (qhyccd_handle *h, uint32_t i) |
set the transfer speed to camera More... | |
virtual uint32_t | SetChipBitsMode (qhyccd_handle *h, uint32_t bits) |
set the camera depth bits More... | |
virtual uint32_t | SetChipChannels (qhyccd_handle *h, uint32_t channels) |
set the image channels,it means the image is color one More... | |
virtual uint32_t | SetChipBinMode (qhyccd_handle *h, uint32_t wbin, uint32_t hbin) |
set the camera image bin mode More... | |
virtual void | ConvertDataBIN11 (uint8_t *Data, uint32_t x, uint32_t y, uint16_t PixShift) |
move the pixel raw data to correction position,and bin if need More... | |
virtual void | ConvertDataBIN22 (uint8_t *Data, uint32_t x, uint32_t y, uint16_t TopSkipPix) |
move the pixel raw data to correction position,and bin if need More... | |
virtual void | ConvertDataBIN33 (uint8_t *Data, uint32_t x, uint32_t y, uint16_t TopSkipPix) |
move the pixel raw data to correction position,and bin if need More... | |
virtual void | ConvertDataBIN44 (uint8_t *Data, uint32_t x, uint32_t y, uint16_t TopSkipPix) |
move the pixel raw data to correction position,and bin if need More... | |
virtual uint32_t | Send2GuiderPort (qhyccd_handle *h, uint32_t Direction, uint16_t PulseTime) |
send the command to camera's guide port More... | |
virtual uint32_t | SetFocusSetting (qhyccd_handle *h, uint32_t focusCenterX, uint32_t focusCenterY) |
Set the camera on focus mode. More... | |
virtual uint32_t | ExposureRemaining (qhyccd_handle *h) |
Get remaining ccd/cmos expose time. More... | |
virtual uint32_t | SetStreamMode (qhyccd_handle *handle, uint8_t mode) |
Set the camera's mode to chose the way reading data from camera More... | |
virtual uint32_t | SetInterCamSerialParam (qhyccd_handle *h, uint32_t opt) |
Set InterCam serial2 params. More... | |
virtual uint32_t | InterCamSerialTX (qhyccd_handle *h, char *buf, uint32_t length) |
Send data to InterCam serial2. More... | |
virtual uint32_t | InterCamSerialRX (qhyccd_handle *h, char *buf) |
Get data from InterCam serial2. More... | |
virtual uint32_t | Send2OledFast (qhyccd_handle *h, uint8_t *buffer) |
send data to show on InterCam's OLED More... | |
virtual uint32_t | InterCamOledOnOff (qhyccd_handle *handle, uint8_t onoff) |
turn off or turn on the InterCam's Oled More... | |
virtual uint32_t | SetInterCamOledBrightness (qhyccd_handle *handle, uint8_t brightness) |
send data to show on InterCam's OLED More... | |
virtual uint32_t | SendFourLine2InterCamOled (qhyccd_handle *handle, char *messagetemp, char *messageinfo, char *messagetime, char *messagemode) |
virtual uint32_t | SendTwoLine2InterCamOled (qhyccd_handle *handle, char *messageTop, char *messageBottom) |
spilit the message to two line,send to camera More... | |
virtual uint32_t | SendOneLine2InterCamOled (qhyccd_handle *handle, char *messageTop) |
spilit the message to two line,send to camera More... | |
virtual uint32_t | GetCameraStatus (qhyccd_handle *h, uint8_t *buf) |
Get camera status. More... | |
virtual uint32_t | SendOrder2CFW (qhyccd_handle *handle, char *order, uint32_t length) |
control color filter wheel More... | |
virtual uint32_t | GetCFWStatus (qhyccd_handle *handle, char *status) |
get the color filter wheel status More... | |
virtual uint32_t | GetCFWSlotsNum (qhyccd_handle *handle) |
get the hole number of color filter wheel More... | |
virtual uint32_t | IsCFWPlugged (qhyccd_handle *handle) |
if CFW plugged in to the port or not. More... | |
virtual uint32_t | ControlShutter (qhyccd_handle *handle, uint8_t status) |
control camera's shutter More... | |
virtual uint32_t | GetShutterStatus (qhyccd_handle *handle) |
get the camera's shutter status More... | |
virtual uint32_t | GetHumidity (qhyccd_handle *handle, double *hd) |
virtual uint32_t | SetTrigerFunction (qhyccd_handle *handle, bool value) |
virtual uint32_t | I2C_Write (qhyccd_handle *handle, uint8_t req, uint16_t value, uint16_t index, uint8_t *data, uint16_t length) |
virtual uint32_t | I2C_Read (qhyccd_handle *handle, uint8_t req, uint16_t value, uint16_t index, uint8_t *data, uint16_t length) |
virtual uint32_t | SetFineTone (qhyccd_handle *h, uint8_t setshporshd, uint8_t shdloc, uint8_t shploc, uint8_t shwidth) |
virtual uint32_t | ReservedFunction (uint32_t width, uint32_t height, uint32_t bpp, uint32_t channels, uint8_t *ImgData) |
virtual uint32_t | IsExposing () |
virtual void | UpdateParameters (qhyccd_handle *h) |
virtual uint32_t | GetFWVersion (qhyccd_handle *h, uint8_t *buf) |
Get the QHYCCD's firmware version More... | |
virtual uint32_t | SetGuideModeOnOff (qhyccd_handle *h, double mode) |
virtual uint32_t | GeDDRBufferThreshold () |
void | ControlCamTemp (qhyccd_handle *h, double MAXPWM) |
control the ccd/cmos temprature More... | |
void | Bit16To8_Stretch (uint8_t *InputData16, uint8_t *OutputData8, uint32_t imageX, uint32_t imageY, uint16_t B, uint16_t W) |
turn 16bits data into 8bits More... | |
void | HistInfo (uint32_t x, uint32_t y, uint8_t *InBuf, uint8_t *OutBuf) |
make the hist info More... | |
void | calibration_difference (uint8_t *inbuf, uint8_t *outbuf, uint32_t width, uint32_t height, uint32_t depth, uint32_t areax1, uint32_t areay1, uint32_t areasizex1, uint32_t areasizey1, uint32_t areax2, uint32_t areay2, uint32_t areasizex2, uint32_t areasizey2) |
void | CalibrateOverScan (uint8_t *inbuf, uint8_t *outbuf, uint32_t ImgW, uint32_t ImgH, uint32_t OSStartX, uint32_t OSStartY, uint32_t OSSizeX, uint32_t OSSizeY) |
calibrate the image with its overscan arean More... | |
uint32_t | IgnoreOverscanArea (qhyccd_handle *h, bool value) |
set camera to ignore overscan area More... | |
uint32_t | GetOverScanArea (uint32_t *startX, uint32_t *startY, uint32_t *sizeX, uint32_t *sizeY) |
get the ccd overscan area More... | |
uint32_t | GetEffectiveArea (uint32_t *startX, uint32_t *startY, uint32_t *sizeX, uint32_t *sizeY) |
get the ccd effective area More... | |
uint32_t | GetChipInfo (double *chipw, double *chiph, uint32_t *imagew, uint32_t *imageh, double *pixelw, double *pixelh, uint32_t *bpp) |
get the camera's ccd/cmos chip info More... | |
virtual double | GetReadingProgress (qhyccd_handle *handle) |
get reading data from camera progress More... | |
uint32_t | SetGPSOn (qhyccd_handle *handle, uint8_t mode) |
uint32_t | GetGPSSOnOff () |
uint32_t | SetPIDParas (qhyccd_handle *handle, double p, double i, double d) |
uint32_t | PixelsDataSoftBin (uint8_t *srcdata, uint8_t *bindata, uint32_t width, uint32_t height, uint32_t depth, uint32_t camxbin, uint32_t camybin) |
uint32_t | SetDebayerOnOff (bool onoff) |
uint32_t | RoiTwoChannels2OneImage (uint32_t imgX, uint32_t imgY, uint32_t depth, uint32_t uselessStartX, uint32_t uselessStartY, uint32_t uselessSizeX, uint32_t uselessSizeY, uint8_t *data) |
uint32_t | VendRequestWrite (qhyccd_handle *h, uint8_t req, uint16_t value, uint16_t index, uint32_t length, uint8_t *data) |
uint32_t | VendRequestRead (qhyccd_handle *h, uint8_t req, uint16_t value, uint16_t index, uint32_t length, uint8_t *data) |
uint32_t | QHYCCDImageROI (void *src, uint32_t chipoutputsizex, uint32_t chipoutputsizey, uint32_t cambits, void *dist, uint32_t roixstart, uint32_t roiystart, uint32_t roixsize, uint32_t roiysize) |
uint32_t | QHYCCDFlip (void *src, uint32_t xsize, uint32_t ysize, uint32_t cambits, int channels, void *dist, int flip_mode) |
uint32_t | QHYCCDFlip (void *src, uint32_t xsize, uint32_t ysize, uint32_t cambits, int channels, int flip_mode) |
uint32_t | SetAutoWhiteBalance (qhyccd_handle *h, double value) |
uint32_t | SetAutoExposure (qhyccd_handle *h, double value) |
uint32_t | SetAutoFocus (qhyccd_handle *h, double value) |
uint32_t | SetBrightness (qhyccd_handle *h, double value) |
uint32_t | SetContrast (qhyccd_handle *h, double value) |
uint32_t | SetGamma (qhyccd_handle *h, double value) |
uint32_t | SetAMPV (qhyccd_handle *h, double value) |
uint32_t | SetLPMode (qhyccd_handle *h, double value) |
uint32_t | SetCamViewMode (qhyccd_handle *h, double value) |
uint32_t | SetVcamOnoff (qhyccd_handle *h, double mode) |
uint32_t | SetScreenStretchB (qhyccd_handle *h, double value) |
uint32_t | SetScreenStretchW (qhyccd_handle *h, double value) |
virtual uint32_t | SetDDR (qhyccd_handle *h, double value) |
double | GetBrightness () |
double | GetContrast () |
double | GetGamma () |
double | GetAMPV () |
double | GetDDR () |
double | GetLPMode () |
double | GetCamViewModeStatus () |
double | GetVcamOnoff () |
double | GetScreenStretchB () |
double | GetScreenStretchW () |
double | Getqhy5iiGuidePortOnoff () |
void | QHYCCDDemosaic (void *dataIn, uint32_t w, uint32_t h, uint32_t bpp, void *dataOut, uint8_t mode) |
void | BuildlLut_Contrast_Brightness_Gamma (uint32_t bpp, double brightness_percent, double contrast_percent, double fPrecompensation) |
void | ImgProcess_Contrast_Brightness_Gamma (uint8_t *array, uint32_t width, uint32_t height, uint32_t bpp) |
uint32_t | GetTempAndPwm (qhyccd_handle *h, double &temp, double &pwm) |
uint32_t | QHYImgResize (void *src, uint32_t bpp, uint32_t ch, uint32_t src_width, uint32_t src_height, void *dst, uint32_t dst_width, uint32_t dst_height) |
uint32_t | QHYBadLineProc (void *src, uint32_t imgw, uint32_t imgh, uint32_t bpp, uint32_t startx, uint32_t starty, uint32_t linew, uint32_t endy, bool method) |
uint32_t | GeDDRBufferCap (qhyccd_handle *h) |
uint32_t | QHYConvertToSoftBIN22 (void *src, uint32_t bpp, uint32_t src_width, uint32_t src_height, void *dst) |
uint32_t | QHYConvertToSoftBIN33 (void *src, uint32_t bpp, uint32_t src_width, uint32_t src_height, void *dst) |
uint32_t | QHYConvertToSoftBIN44 (void *src, uint32_t bpp, uint32_t src_width, uint32_t src_height, void *dst) |
qhyccd_handle * | GetHandle () |
void | SetHandle (qhyccd_handle *pHandle) |
void | SetMaxImageReadTrials (int value) |
int | GetMaxImageReadTrials () |
![]() | |
QHYCAM () | |
virtual | ~QHYCAM () |
uint32_t | openCamera (qhyccd_device *d, qhyccd_handle **h) |
open the camera,open the device handle More... | |
void | closeCamera (qhyccd_handle *h) |
close the camera,close the deivce handle More... | |
uint32_t | sendForceStop (qhyccd_handle *h) |
force stop exposure More... | |
uint32_t | sendInterrupt (qhyccd_handle *handle, uint8_t length, uint8_t *data) |
send a package to deivce using the interrupt endpoint More... | |
uint32_t | vendTXD (qhyccd_handle *dev_handle, uint8_t req, uint8_t *data, uint16_t length) |
send a package to deivce using the vendor request More... | |
uint32_t | vendRXD (qhyccd_handle *dev_handle, uint8_t req, uint8_t *data, uint16_t length) |
get a package from deivce using the vendor request More... | |
uint32_t | iTXD (qhyccd_handle *dev_handle, uint8_t *data, int32_t length) |
send a package to deivce using the bulk endpoint More... | |
uint32_t | iTXD_Ex (qhyccd_handle *dev_handle, uint8_t *data, int32_t length, uint8_t ep) |
send a package to deivce using the bulk endpoint More... | |
uint32_t | iRXD (qhyccd_handle *dev_handle, uint8_t *data, int32_t length) |
get a package from deivce using the bulk endpoint More... | |
uint32_t | iRXD_Ex (qhyccd_handle *dev_handle, uint8_t *data, uint32_t length, uint8_t ep) |
get a package from deivce using the bulk endpoint More... | |
uint32_t | vendTXD_Ex (qhyccd_handle *dev_handle, uint8_t req, uint16_t value, uint16_t index, uint8_t *data, uint16_t length) |
send a package to deivce using the vendor request,extend the index and value interface More... | |
uint32_t | vendRXD_Ex (qhyccd_handle *dev_handle, uint8_t req, uint16_t value, uint16_t index, uint8_t *data, uint16_t length) |
get a package from deivce using the vendor request,extend the index and value interface More... | |
uint32_t | QHY5IIIreadUSB2B (qhyccd_handle *dev_handle, uint8_t *data, uint32_t p_num, uint32_t timeout) |
uint32_t | readUSB2B (qhyccd_handle *dev_handle, uint8_t *data, uint32_t p_size, uint32_t p_num, uint32_t *pos, uint32_t timeout) |
get image packages from deivce using bulk endpoint More... | |
uint32_t | beginVideo (qhyccd_handle *handle) |
send begin exposure signal to deivce More... | |
uint32_t | sendRegisterQHYCCDOld (qhyccd_handle *handle, CCDREG reg, uint32_t P_Size, uint32_t *Total_P, uint32_t *PatchNumber) |
send register params to deivce and some other info More... | |
uint32_t | sendRegisterQHYCCDNew (qhyccd_handle *handle, CCDREG reg, uint32_t P_Size, uint32_t *Total_P, uint32_t *PatchNumber) |
New interface!!! send register params to deivce and some other info More... | |
uint32_t | sendRegisterBioCCD (qhyccd_handle *handle, BIOREG reg) |
api like sendRegisterQHYCCDOld,just a different version for some kinds of cameras More... | |
uint32_t | setDisableGuider_INT (qhyccd_handle *handle) |
turn off the ST4 port(guide port) More... | |
uint32_t | setBioCCDDigitalGain_INT (qhyccd_handle *handle, uint8_t gain) |
set bioccd digitalgain More... | |
uint32_t | setBioCCDGain_INT (qhyccd_handle *handle, uint16_t gain) |
set bioccd analog gain More... | |
uint32_t | getExpSetting (double T, uint32_t *ExpTime, int32_t *LiveExpTime, double A, double B, double V, double LinePeriod) |
calc the exposure time More... | |
uint32_t | setBioCCDExp_INT (qhyccd_handle *handle, uint32_t ExpTime) |
set bioccd exposure time More... | |
uint32_t | setBioCCDLiveExp_INT (qhyccd_handle *handle, uint16_t VideoExpTime) |
set bioccd live exposure time More... | |
uint32_t | setDC201FromInterrupt (qhyccd_handle *handle, uint8_t PWM, uint8_t FAN) |
control the DC201 using the interrupt endpoint More... | |
int16_t | getDC201FromInterrupt (qhyccd_handle *handle) |
get the temprature value from DC201 using the interrupt endpoint More... | |
uint8_t | getFromInterrupt (qhyccd_handle *handle, uint8_t length, uint8_t *data) |
get some special information from deivce,using interrupt endpoint More... | |
double | GetCCDTemp (qhyccd_handle *handle) |
get ccd/cmos chip temperature More... | |
double | RToDegree (double R) |
calc,transfer R to degree More... | |
double | mVToDegree (double V) |
calc,transfer mV to degree More... | |
double | DegreeTomV (double degree) |
calc,transfer degree to mv More... | |
double | DegreeToR (double degree) |
calc,transfer degree to R More... | |
uint32_t | I2CTwoWrite (qhyccd_handle *handle, uint16_t addr, uint16_t value) |
set param by I2C More... | |
uint16_t | I2CTwoRead (qhyccd_handle *handle, uint16_t addr) |
get param by I2C More... | |
uint8_t | MSB (uint16_t i) |
apart the 16 bits value to 8bits(high 8bits) More... | |
uint8_t | LSB (uint16_t i) |
apart the 16 bits value to 8bits(low 8bits) More... | |
uint8_t | MSB3 (uint32_t i) |
uint8_t | MSB2 (uint32_t i) |
uint8_t | MSB1 (uint32_t i) |
uint8_t | MSB0 (uint32_t i) |
void | SWIFT_MSBLSB12BITS (uint8_t *Data, uint32_t x, uint32_t y) |
void | SWIFT_MSBLSB16BITS (uint8_t *Data, uint32_t x, uint32_t y) |
void | SWIFT_MSBLSB14BITS (uint8_t *Data, uint32_t x, uint32_t y) |
void | QHY5II_SWIFT_MSBLSB12BITS (uint8_t *Data, uint32_t x, uint32_t y) |
void | QHY5II_SWIFT_MSBLSB14BITS (uint8_t *Data, uint32_t x, uint32_t y) |
void | QHY5II_SWIFT_8BitsTo16Bits (uint8_t *Dst, uint8_t *Src, uint32_t x, uint32_t y) |
void | QHY5II_DeNoise (uint8_t *data, uint32_t x, uint32_t y, double curgain) |
const char *STDCALL | GetTimeStamp () |
Static Public Member Functions | |
static void | QSleep (uint32_t mstime) |
![]() | |
static void * | pollHandleEvents (void *arg) |
static void | findCompleteFrame (uint8_t *rawarray, uint32_t length) |
static void | asyImageDataCallBack (struct libusb_transfer *transfer) |
Protected Attributes | |
bool | m_flagQuit |
bool | m_exposureThreadRunFlag |
qhyccd_handle * | m_pHandle |
uint32_t | m_totalDataLength |
int | m_max_image_read_trials |
Private Attributes | |
pthread_mutex_t | m_flagQuitMutex |
pthread_mutex_t | m_ddrNumMutex |
pthread_mutex_t | m_exposureThreadRunFlagMutex |
pthread_mutex_t | m_totalDataLengthMutex |
the QHYBASE class description
QHYBASE::QHYBASE | ( | ) |
|
virtual |
|
inlinevirtual |
auto temprature control
h | camera control handle |
ttemp | target temprature(degree Celsius) |
|
virtual |
|
virtual |
void QHYBASE::Bit16To8_Stretch | ( | uint8_t * | InputData16, |
uint8_t * | OutputData8, | ||
uint32_t | imageX, | ||
uint32_t | imageY, | ||
uint16_t | B, | ||
uint16_t | W | ||
) |
turn 16bits data into 8bits
InputData16 | for 16bits data memory |
OutputData8 | for 8bits data memory |
imageX | image width |
imageY | image height |
B | for stretch balck |
W | for stretch white |
void QHYBASE::BuildlLut_Contrast_Brightness_Gamma | ( | uint32_t | bpp, |
double | brightness_percent, | ||
double | contrast_percent, | ||
double | fPrecompensation | ||
) |
void QHYBASE::CalibrateOverScan | ( | uint8_t * | inbuf, |
uint8_t * | outbuf, | ||
uint32_t | ImgW, | ||
uint32_t | ImgH, | ||
uint32_t | OSStartX, | ||
uint32_t | OSStartY, | ||
uint32_t | OSSizeX, | ||
uint32_t | OSSizeY | ||
) |
calibrate the image with its overscan arean
x | image width |
y | image height |
OSStartX | the start X for overscan arean |
OSStartY | the start Y for overscan arean |
OSSizeX | the X size for overscan arean |
OSSizeY | the Y size for overscan arean |
InBuf | for the raw image data |
OutBuf | for the image data after calibrated |
void QHYBASE::calibration_difference | ( | uint8_t * | inbuf, |
uint8_t * | outbuf, | ||
uint32_t | width, | ||
uint32_t | height, | ||
uint32_t | depth, | ||
uint32_t | areax1, | ||
uint32_t | areay1, | ||
uint32_t | areasizex1, | ||
uint32_t | areasizey1, | ||
uint32_t | areax2, | ||
uint32_t | areay2, | ||
uint32_t | areasizex2, | ||
uint32_t | areasizey2 | ||
) |
|
virtual |
|
virtual |
|
virtual |
connect camera,get the control handle
d | deivce |
h | camera control handle pointer |
void QHYBASE::ControlCamTemp | ( | qhyccd_handle * | h, |
double | MAXPWM | ||
) |
control the ccd/cmos temprature
h | camera control handle |
MAXPWM | the max power of cool |
|
inlinevirtual |
control camera's shutter
handle | camera control handle |
status | the shutter status |
|
inlinevirtual |
move the pixel raw data to correction position,and bin if need
Data | raw image data |
x | image width |
y | image height |
PixShift | this is a way to fix the bad pixel data by the usb transfer |
|
inlinevirtual |
move the pixel raw data to correction position,and bin if need
Data | raw image data |
x | image width |
y | image height |
PixShift | this is a way to fix the bad pixel data by the usb transfer |
|
inlinevirtual |
move the pixel raw data to correction position,and bin if need
Data | raw image data |
x | image width |
y | image height |
PixShift | this is a way to fix the bad pixel data by the usb transfer |
|
inlinevirtual |
move the pixel raw data to correction position,and bin if need
Data | raw image data |
x | image width |
y | image height |
PixShift | this is a way to fix the bad pixel data by the usb transfer |
correct width and height if the setting width or height is not correct
w | set width |
h | set height |
|
inlinevirtual |
enable the function to reduce the row noise
h | camera control handle |
value | enable or disable |
|
virtual |
disconnect camera
h | camera control handle |
|
inlinevirtual |
Get remaining ccd/cmos expose time.
h | camera control handle |
uint32_t QHYBASE::GeDDRBufferCap | ( | qhyccd_handle * | h | ) |
|
inlinevirtual |
double QHYBASE::GetAMPV | ( | ) |
double QHYBASE::GetBrightness | ( | ) |
|
inlinevirtual |
Get camera status.
h | camera control handle |
buf | camera's status save space |
double QHYBASE::GetCamViewModeStatus | ( | ) |
|
inlinevirtual |
get the hole number of color filter wheel
|
inlinevirtual |
get the color filter wheel status
handle | camera control handle |
status | the color filter wheel position status |
|
virtual |
get the current camera depth bits
|
inlinevirtual |
get the current camera image channels
|
inlinevirtual |
get the current ccd/cmos temprature
|
inlinevirtual |
get the current ccd/cmos target temperature
|
inlinevirtual |
get the current ccd/cmos chip temprature
|
virtual |
get the current exposetime
|
virtual |
get the current gain
uint32_t QHYBASE::GetChipInfo | ( | double * | chipw, |
double * | chiph, | ||
uint32_t * | imagew, | ||
uint32_t * | imageh, | ||
double * | pixelw, | ||
double * | pixelh, | ||
uint32_t * | bpp | ||
) |
get the camera's ccd/cmos chip info
h | camera control handle |
chipw | chip size width |
chiph | chip size height |
imagew | chip output image width |
imageh | chip output image height |
pixelw | chip pixel size width |
pixelh | chip pixel size height |
bpp | chip pixel depth |
|
virtual |
get the image cost memory length
|
virtual |
get the current offset
|
virtual |
get the current transfer speed
|
virtual |
get the hblank value
|
inlinevirtual |
get the blue gain value of white balance
|
inlinevirtual |
get the green gain value of white balance
|
inlinevirtual |
get the red gain value of white balance
double QHYBASE::GetContrast | ( | ) |
|
inlinevirtual |
get the min,max and step value for function
controlId | the control id |
min | the min value for function |
max | the max value for function |
step | single step value for function |
double QHYBASE::GetDDR | ( | ) |
|
virtual |
uint32_t QHYBASE::GetEffectiveArea | ( | uint32_t * | startX, |
uint32_t * | startY, | ||
uint32_t * | sizeX, | ||
uint32_t * | sizeY | ||
) |
get the ccd effective area
startX | the Effective area x position |
startY | the Effective area y position |
sizeX | the Effective area x size |
sizeY | the Effective area y size |
|
virtual |
Get the QHYCCD's firmware version
h | camera control handle |
buf | buffer for version info |
double QHYBASE::GetGamma | ( | ) |
|
inline |
qhyccd_handle* QHYBASE::GetHandle | ( | ) |
|
inlinevirtual |
|
virtual |
double QHYBASE::GetLPMode | ( | ) |
|
inline |
uint32_t QHYBASE::GetOverScanArea | ( | uint32_t * | startX, |
uint32_t * | startY, | ||
uint32_t * | sizeX, | ||
uint32_t * | sizeY | ||
) |
get the ccd overscan area
startX | the OverScan area x position |
startY | the OverScan area y position |
sizeX | the OverScan area x size |
sizeY | the OverScan area y size |
double QHYBASE::Getqhy5iiGuidePortOnoff | ( | ) |
|
virtual |
get reading data from camera progress
handle | camera control handle |
double QHYBASE::GetScreenStretchB | ( | ) |
double QHYBASE::GetScreenStretchW | ( | ) |
|
inlinevirtual |
get the camera's shutter status
handle | camera control handle |
|
virtual |
uint32_t QHYBASE::GetTempAndPwm | ( | qhyccd_handle * | h, |
double & | temp, | ||
double & | pwm | ||
) |
|
virtual |
double QHYBASE::GetVcamOnoff | ( | ) |
make the hist info
x | image width |
y | image height |
InBuf | for the raw image data |
OutBuf | for 192x130 8bits 3 channels image |
|
inlinevirtual |
|
inlinevirtual |
void QHYBASE::IgnoreOverscanArea | ( | qhyccd_handle * | h, |
bool | value | ||
) |
set camera to ignore overscan area
h | camera control handle |
value | ignore overscan area or not |
void QHYBASE::ImgProcess_Contrast_Brightness_Gamma | ( | uint8_t * | array, |
uint32_t | width, | ||
uint32_t | height, | ||
uint32_t | bpp | ||
) |
|
virtual |
Init the registers and some other things
h | camera control handle |
|
inlinevirtual |
|
inlinevirtual |
turn off or turn on the InterCam's Oled
h | camera control handle |
onoff | on or off the oled 1:on 0:off |
|
inlinevirtual |
Get data from InterCam serial2.
h | camera control handle |
buf | buffer for data |
|
inlinevirtual |
Send data to InterCam serial2.
h | camera control handle |
buf | buffer for data |
length | the length to send |
|
inlinevirtual |
if CFW plugged in to the port or not.
handle | camera control handle |
|
inlinevirtual |
check the camera has the function or not
id | function id |
|
inlinevirtual |
|
virtual |
|
virtual |
|
inlinevirtual |
check the camera support high speed transfer or not
uint32_t QHYBASE::PixelsDataSoftBin | ( | uint8_t * | srcdata, |
uint8_t * | bindata, | ||
uint32_t | width, | ||
uint32_t | height, | ||
uint32_t | depth, | ||
uint32_t | camxbin, | ||
uint32_t | camybin | ||
) |
uint32_t QHYBASE::QHYBadLineProc | ( | void * | src, |
uint32_t | imgw, | ||
uint32_t | imgh, | ||
uint32_t | bpp, | ||
uint32_t | startx, | ||
uint32_t | starty, | ||
uint32_t | linew, | ||
uint32_t | endy, | ||
bool | method | ||
) |
void QHYBASE::QHYCCDDemosaic | ( | void * | dataIn, |
uint32_t | w, | ||
uint32_t | h, | ||
uint32_t | bpp, | ||
void * | dataOut, | ||
uint8_t | mode | ||
) |
uint32_t QHYBASE::QHYCCDFlip | ( | void * | src, |
uint32_t | xsize, | ||
uint32_t | ysize, | ||
uint32_t | cambits, | ||
int | channels, | ||
void * | dist, | ||
int | flip_mode | ||
) |
uint32_t QHYBASE::QHYCCDFlip | ( | void * | src, |
uint32_t | xsize, | ||
uint32_t | ysize, | ||
uint32_t | cambits, | ||
int | channels, | ||
int | flip_mode | ||
) |
uint32_t QHYBASE::QHYCCDImageROI | ( | void * | src, |
uint32_t | chipoutputsizex, | ||
uint32_t | chipoutputsizey, | ||
uint32_t | cambits, | ||
void * | dist, | ||
uint32_t | roixstart, | ||
uint32_t | roiystart, | ||
uint32_t | roixsize, | ||
uint32_t | roiysize | ||
) |
uint32_t QHYBASE::QHYConvertToSoftBIN22 | ( | void * | src, |
uint32_t | bpp, | ||
uint32_t | src_width, | ||
uint32_t | src_height, | ||
void * | dst | ||
) |
uint32_t QHYBASE::QHYConvertToSoftBIN33 | ( | void * | src, |
uint32_t | bpp, | ||
uint32_t | src_width, | ||
uint32_t | src_height, | ||
void * | dst | ||
) |
uint32_t QHYBASE::QHYConvertToSoftBIN44 | ( | void * | src, |
uint32_t | bpp, | ||
uint32_t | src_width, | ||
uint32_t | src_height, | ||
void * | dst | ||
) |
uint32_t QHYBASE::QHYImgResize | ( | void * | src, |
uint32_t | bpp, | ||
uint32_t | ch, | ||
uint32_t | src_width, | ||
uint32_t | src_height, | ||
void * | dst, | ||
uint32_t | dst_width, | ||
uint32_t | dst_height | ||
) |
|
inlinestatic |
|
inlinevirtual |
|
virtual |
re set the params to camera,because some behavior will cause camera reset
h | camera control handle |
uint32_t QHYBASE::RoiTwoChannels2OneImage | ( | uint32_t | imgX, |
uint32_t | imgY, | ||
uint32_t | depth, | ||
uint32_t | uselessStartX, | ||
uint32_t | uselessStartY, | ||
uint32_t | uselessSizeX, | ||
uint32_t | uselessSizeY, | ||
uint8_t * | data | ||
) |
|
inlinevirtual |
send the command to camera's guide port
h | camera control handle |
Direction | RA DEC |
PulseTime | the time last for command |
|
inlinevirtual |
send data to show on InterCam's OLED
h | camera control handle |
buffer | buffer for data |
|
inlinevirtual |
|
inlinevirtual |
spilit the message to two line,send to camera
h | camera control handle |
messageTop | message for all the oled |
|
inlinevirtual |
control color filter wheel
handle | camera control handle |
order | order send to color filter wheel |
length | the order string length |
|
inlinevirtual |
spilit the message to two line,send to camera
h | camera control handle |
messageTop | message for the oled's 1st line |
messageBottom | message for the oled's 2nd line |
uint32_t QHYBASE::SetAMPV | ( | qhyccd_handle * | h, |
double | value | ||
) |
uint32_t QHYBASE::SetAutoExposure | ( | qhyccd_handle * | h, |
double | value | ||
) |
uint32_t QHYBASE::SetAutoFocus | ( | qhyccd_handle * | h, |
double | value | ||
) |
uint32_t QHYBASE::SetAutoWhiteBalance | ( | qhyccd_handle * | h, |
double | value | ||
) |
uint32_t QHYBASE::SetBrightness | ( | qhyccd_handle * | h, |
double | value | ||
) |
uint32_t QHYBASE::SetCamViewMode | ( | qhyccd_handle * | h, |
double | value | ||
) |
|
virtual |
set the camera image bin mode
h | camera control handle |
wbin | width bin |
hbin | height bin |
|
inlinevirtual |
set the camera depth bits
h | camera control handle |
bits | depth bits |
|
inlinevirtual |
set the image channels,it means the image is color one
h | camera control handle |
channels | image channels |
|
inlinevirtual |
set cool power
h | camera control handle |
PWM | power(0-255) |
|
inlinevirtual |
set the expose time to camera
h | camera control handle |
i | expose time value |
|
inlinevirtual |
set the gain to camera
h | camera control handle |
gain | gain value |
|
inlinevirtual |
set the camera offset
h | camera control handle |
offset | offset value |
|
inlinevirtual |
set camera ouput resolution
handle | camera control handle |
x | the top left position x |
y | the top left position y |
xsize | the image width |
ysize | the image height |
|
inlinevirtual |
set the transfer speed to camera
h | camera control handle |
i | speed level |
|
inlinevirtual |
set hblank
h | camera control handle |
i | hblank value |
|
inlinevirtual |
set the red gain value of white balance
h | camera control handle |
blue | blue gain value |
|
inlinevirtual |
set the red gain value of white balance
h | camera control handle |
green | green gain value |
|
inlinevirtual |
set the red gain value of white balance
h | camera control handle |
red | red gain value |
uint32_t QHYBASE::SetContrast | ( | qhyccd_handle * | h, |
double | value | ||
) |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
|
virtual |
|
inlinevirtual |
Set the camera on focus mode.
h | camera control handle |
focusCenterX | |
focusCenterY |
uint32_t QHYBASE::SetGamma | ( | qhyccd_handle * | h, |
double | value | ||
) |
uint32_t QHYBASE::SetGPSOn | ( | qhyccd_handle * | handle, |
uint8_t | mode | ||
) |
|
inlinevirtual |
void QHYBASE::SetHandle | ( | qhyccd_handle * | pHandle | ) |
|
inlinevirtual |
send data to show on InterCam's OLED
h | camera control handle |
brightness | the oled's brightness |
|
inlinevirtual |
Set InterCam serial2 params.
h | camera control handle |
opt | the param |
uint32_t QHYBASE::SetLPMode | ( | qhyccd_handle * | h, |
double | value | ||
) |
|
inline |
uint32_t QHYBASE::SetPIDParas | ( | qhyccd_handle * | handle, |
double | p, | ||
double | i, | ||
double | d | ||
) |
uint32_t QHYBASE::SetScreenStretchB | ( | qhyccd_handle * | h, |
double | value | ||
) |
uint32_t QHYBASE::SetScreenStretchW | ( | qhyccd_handle * | h, |
double | value | ||
) |
|
virtual |
Set the camera's mode to chose the way reading data from camera
handle | camera control handle |
mode | the stream mode 0x00:default mode,single frame mode 0x01:live mode |
|
virtual |
|
inlinevirtual |
uint32_t QHYBASE::SetVcamOnoff | ( | qhyccd_handle * | h, |
double | mode | ||
) |
|
virtual |
|
virtual |
|
inlinevirtual |
uint32_t QHYBASE::VendRequestRead | ( | qhyccd_handle * | h, |
uint8_t | req, | ||
uint16_t | value, | ||
uint16_t | index, | ||
uint32_t | length, | ||
uint8_t * | data | ||
) |
uint32_t QHYBASE::VendRequestWrite | ( | qhyccd_handle * | h, |
uint8_t | req, | ||
uint16_t | value, | ||
uint16_t | index, | ||
uint32_t | length, | ||
uint8_t * | data | ||
) |
uint8_t QHYBASE::autoexposure_controlmode |
uint8_t QHYBASE::autoexposure_messuremethod |
uint8_t QHYBASE::autowhitebalanceloops |
uint8_t QHYBASE::badframenum |
double QHYBASE::camampv |
uint32_t QHYBASE::cambits |
current camera bits mode
double QHYBASE::camblue2green |
current white blance blue value
uint32_t QHYBASE::camchannels |
current camera channels
uint16_t QHYBASE::camddr |
double QHYBASE::camgain |
current cam gain
double QHYBASE::camgreen |
current white blance green
uint8_t QHYBASE::camLPMode |
double QHYBASE::camoffset |
current cam offset
double QHYBASE::camred2green |
current white blance red value
double QHYBASE::camtime |
current cam expose time
uint8_t QHYBASE::camtype |
double QHYBASE::camviewmode |
uint32_t QHYBASE::camx |
current camera width
uint32_t QHYBASE::camxbin |
current camera width bin
uint32_t QHYBASE::camy |
current camera height
uint32_t QHYBASE::camybin |
current camera height bin
double QHYBASE::ccdchiph |
ccd chip height
double QHYBASE::ccdchipw |
ccd chip width
uint32_t QHYBASE::ccdimageh |
ccd image height
uint32_t QHYBASE::ccdimagew |
ccd image width
double QHYBASE::ccdpixelh |
ccd pixel height
double QHYBASE::ccdpixelw |
ccd pixel width
uint32_t QHYBASE::chipoutputbits |
uint32_t QHYBASE::chipoutputsizex |
uint32_t QHYBASE::chipoutputsizey |
uint32_t QHYBASE::chipoutputx |
uint32_t QHYBASE::chipoutputy |
uint32_t QHYBASE::connected |
uint32_t QHYBASE::ddrnum |
uint32_t QHYBASE::debayerformat |
bool QHYBASE::debayeronoff |
double QHYBASE::defaultgain |
double QHYBASE::defaultoffset |
bool QHYBASE::delRowRoise |
double QHYBASE::Derivative |
differential coefficient
int8_t QHYBASE::filterpos |
bool QHYBASE::flag_timer |
timer flag
bool QHYBASE::flag_timer_2 |
timer flag 2
bool QHYBASE::flagtempauto |
temperature to read flag
int32_t QHYBASE::frameflag |
uint8_t QHYBASE::gpsarray[5000 *11 *2] |
uint8_t QHYBASE::gpson |
double QHYBASE::humidityvalue |
double QHYBASE::imgbrightness |
double QHYBASE::imgcontrast |
double QHYBASE::imggamma |
int32_t QHYBASE::imgprocesslut[65536] |
uint32_t QHYBASE::initdone |
double QHYBASE::Integral |
integralcoefficients
uint8_t QHYBASE::is_3a_autoexposure_on |
uint8_t QHYBASE::is_3a_autofocus_on |
uint8_t QHYBASE::is_3a_autowhitebalance_on |
uint8_t QHYBASE::is_superspeed |
uint8_t QHYBASE::isbadframe |
uint8_t QHYBASE::iscolorgainupdate |
uint8_t QHYBASE::isdepthupdate |
uint8_t QHYBASE::isexposureupdate |
bool QHYBASE::isFocusmode |
hold the camera work mode, false: capture mode, true: focus mdoe
bool QHYBASE::isFX3 |
uint8_t QHYBASE::isgainupdate |
uint8_t QHYBASE::islive |
uint8_t QHYBASE::isoffsetupdate |
bool QHYBASE::isOverscanRemoved |
sign whether removed the overscan area for image.
bool QHYBASE::isReadoutData |
sign whether it is reading out the image data
uint8_t QHYBASE::isReadoutTemp |
uint8_t QHYBASE::isresolutionupdate |
uint8_t QHYBASE::isspeedupdate |
uint8_t QHYBASE::isusbtrafficupdate |
uint32_t QHYBASE::lastcambits |
uint32_t QHYBASE::lastcamxbin |
uint32_t QHYBASE::lastcamybin |
double QHYBASE::LastError |
the step k - 1 difference
uint32_t QHYBASE::lastx |
uint32_t QHYBASE::lastxsize |
uint32_t QHYBASE::lasty |
uint32_t QHYBASE::lastysize |
double QHYBASE::m_CurrentPwm |
current cool power
double QHYBASE::m_CurrentTemp |
current ccd/cmos tempratue
|
private |
|
protected |
|
private |
|
protected |
|
private |
|
protected |
|
protected |
double QHYBASE::m_TargetTemp |
target ccd/cmos temprature
|
protected |
|
private |
double QHYBASE::NowError |
the step k difference
double QHYBASE::nowVoltage |
reserved
uint32_t QHYBASE::onlySizeX |
effective area x size
uint32_t QHYBASE::onlySizeY |
effective area y size
uint32_t QHYBASE::onlyStartX |
effective area x position
uint32_t QHYBASE::onlyStartY |
effective area y position
double QHYBASE::outputdataactualbits |
double QHYBASE::outputdataalignment |
uint32_t QHYBASE::overScanSizeX |
overscan area x size
uint32_t QHYBASE::overScanSizeY |
overscan area y size
uint32_t QHYBASE::overScanStartX |
overscan area x position
uint32_t QHYBASE::overScanStartY |
overscan area y position
double QHYBASE::PrevError |
the step k - 2 difference
double QHYBASE::Proportion |
scale factor value
uint8_t QHYBASE::qhy5iiGuidePortOnOff |
uint8_t* QHYBASE::rawarray |
raw buffer pointer for usb transfer
double QHYBASE::readprogress |
get the reading data from camera progress status
uint32_t QHYBASE::resolutionmode |
uint32_t QHYBASE::retrynum |
uint8_t* QHYBASE::roiarray |
roi image buffer
uint32_t QHYBASE::roixsize |
roi image xsize
uint32_t QHYBASE::roixstart |
roi image xstart position
uint32_t QHYBASE::roiysize |
roi image ysize
uint32_t QHYBASE::roiystart |
roi image ystart position
uint16_t QHYBASE::screenstretchb |
uint16_t QHYBASE::screenstretchw |
uint8_t QHYBASE::singlestatus |
uint8_t QHYBASE::streammode |
uint32_t QHYBASE::unbinningx |
uint32_t QHYBASE::unbinningxsize |
uint32_t QHYBASE::unbinningy |
uint32_t QHYBASE::unbinningysize |
uint32_t QHYBASE::usbspeed |
current usb speed mode
uint32_t QHYBASE::usbtraffic |
current usbtraffic
uint32_t QHYBASE::uselesssizex |
uint32_t QHYBASE::uselesssizey |
uint32_t QHYBASE::uselessstartx |
uint32_t QHYBASE::uselessstarty |
bool QHYBASE::vcamonoff |