Newer
Older
CasicIrisIdentify / device / Common.h
tanyue on 16 Dec 2023 1 KB 20231216 debug on ubuntu arm
//--------------------------------------------------------------------------------
/**
\file     Common.h
\brief    Common function declare and define macros of GxViewer

\version  v1.0.1807.9271
\date     2018-07-27

<p>Copyright (c) 2017-2018</p>
*/
//----------------------------------------------------------------------------------

#ifndef COMMON_H
#define COMMON_H

#include <QMessageBox>
#include <QString>
#include <QTimer>
#include <QMessageBox>
#include <QDialog>
#include <QComboBox>
#include <stdio.h>
#include <unistd.h>

#include "GxIAPI.h"
#include "DxImageProc.h"

#define FRAMERATE_INCREMENT     0.1
#define EXPOSURE_INCREMENT      1
#define GAIN_INCREMENT          0.1
#define WHITEBALANCE_DECIMALS   4
#define WHITEBALANCE_INCREMENT  0.0001

/// Release memory allocated
#define RELEASE_ALLOC_MEM(obj)    \
        if (obj != NULL)    \
        {   \
            delete obj;     \
            obj = NULL;     \
        }

/// Release memory(array) allocated
#define RELEASE_ALLOC_ARR(obj) \
        if (obj != NULL)    \
        {   \
            delete[] obj;   \
            obj = NULL;     \
        }


#endif // COMMON_H