#ifndef _SUBFRAME_H #define _SUBFRAME_H 1 #include "abaxCommon.h" #include using namespace std; //#define ABAX_TOGGER_DEBUG class SubFrameClass { public: SubFrameClass(); ~SubFrameClass(); void getTapA(char** subFrames, int i, int j); void getTapB(char** subFrames, int i, int j); u16 convertPixelab(char* subFrames[4], int i); u16 convertPixelba(char* subFrames[4], int i); static int convertData(char *subFrames[4], unsigned short *dst, const int width, const int height); void convertDataabba(char *subFrames[4], float *dst, int width, int height); void convertDataabba(char *subFrames[4], int width, int height); void setFreq(int vfreq); u16 getQ0(int i); u16 getQ90(int i); u16 getQ180(int i); u16 getQ270(int i); u16 getSum(int i); void setValue(int i, u16 q0, u16 q90, u16 q180, u16 q270); void convertDistance(float *dst); private: char * mQ0; char * mQ90; char * mQ180; char * mQ270; vector mvQ0; #ifdef ABAX_TOGGER_DEBUG vector mvQ90; vector mvQ180; vector mvQ270; #endif char * mQ0b; int m_nFreq; vector mfDis; }; #endif