修复编译错误

TempBranch
Matthew 8 months ago
parent e168cf27de
commit 48fee82987

@ -44,7 +44,7 @@ add_definitions(-DUSING_HDRPLUS)
add_definitions(-DUSING_EXEC_HDRP=1) add_definitions(-DUSING_EXEC_HDRP=1)
set(USING_EXEC_HDRP 1) set(USING_EXEC_HDRP 1)
#add_definitions(-DUSING_N938) add_definitions(-DUSING_N938)
# include_directories(${OpenCV_DIR}/include) # include_directories(${OpenCV_DIR}/include)
# add_library( lib_opencv SHARED IMPORTED ) # add_library( lib_opencv SHARED IMPORTED )

@ -134,26 +134,6 @@ std::string GpioControl::getString(int cmd)
#ifdef USING_N938 #ifdef USING_N938
bool GpioControl::SetN938Cmd(int cmd, int val)
{
char buf[32] = { 0 };
snprintf(buf, "out %d %d", cmd, val);
IOT_PARAM param;
int len = MAX_STRING_LEN < strlen(buf) ? MAX_STRING_LEN : strlen(buf);
param.cmd = cmd;
memset(param.str, 0, MAX_STRING_LEN);
memcpy(param.str, value.c_str(), len);
int fd = open(GPIO_NODE_MP, O_RDONLY);
if( fd > 0 )
{
ioctl(fd, IOT_PARAM_WRITE, &param);
close(fd);
}
return;
}
bool GpioControl::OpenSensors() bool GpioControl::OpenSensors()
{ {

@ -116,9 +116,10 @@
#ifdef USING_N938 #ifdef USING_N938
#define GPIO_NODE_N938 "/sys/devices/platform/1000b000.pinctrl/mt_gpio" #define GPIO_NODE_N938 "/sys/devices/platform/1000b000.pinctrl/mt_gpio"
#else #else
#define GPIO_NODE_MP "/dev/mtkgpioctrl"
#endif // USING_N938 #endif // USING_N938
#define GPIO_NODE_MP "/dev/mtkgpioctrl"
class GpioControl class GpioControl
{ {
@ -253,7 +254,6 @@ public:
} }
#ifdef USING_N938 #ifdef USING_N938
static bool SetN938Cmd(int cmd, int val);
static bool OpenSensors(); static bool OpenSensors();
static bool CloseSensors(); static bool CloseSensors();
#endif #endif

@ -2195,13 +2195,7 @@ bool CPhoneDevice::onBurstCapture(std::shared_ptr<ACameraMetadata> characteristi
#endif #endif
XYLOG(XYLOG_SEVERITY_ERROR, "Finish HDR CH=%u IMGID=%u", (uint32_t)photoInfo.channel, (uint32_t)photoInfo.photoId); XYLOG(XYLOG_SEVERITY_ERROR, "Finish HDR CH=%u IMGID=%u", (uint32_t)photoInfo.channel, (uint32_t)photoInfo.photoId);
#ifdef NDEBUG
for (auto it = rawFilePaths.cbegin(); it != rawFilePaths.cend(); ++it)
{
std::remove((*it).c_str());
}
#endif
{ {
cv::Mat tempPic = convert16bit2_8bit_(rgb); cv::Mat tempPic = convert16bit2_8bit_(rgb);
rgb = tempPic; rgb = tempPic;

Loading…
Cancel
Save