#ifndef PUBLICFUNC_H_ #define PUBLICFUNC_H_ #include "stdafx.h" #include #include #include #include #include #define BYTES_PERLINE_ALIGN4(width, bpp) (((((int)(width)*(bpp))+31)/32)*4) #define BYTES_PERLINE(width, bpp) ((((int)(width)*(bpp))+7)/8) using byte = unsigned char; using std::string; /************************************ **扫描参数,json格式保存参数名称** *************************************/ const std::string CONFIG = "Config"; //