camera/QCamera2/util/QCameraFlash.cpp
/*===========================================================================
 * FUNCTION   : QCameraFlash
 *
 * DESCRIPTION: default constructor of QCameraFlash
 *
 * PARAMETERS : None
 *
 * RETURN     : None
 *==========================================================================*/
FUNCTION   : QCameraFlash
DESCRIPTION: default constructor of QCameraFlash

PARAMETERS : None

RETURN     : None
FUNCTION : QCameraFlash DESCRIPTION : default constructor of QCameraFlash PARAMETERS : None RETURN : None
QCameraFlash::QCameraFlash() : m_callbacks(NULL)
{
    memset(&m_flashOn, 0, sizeof(m_flashOn));
    memset(&m_cameraOpen, 0, sizeof(m_cameraOpen));
    for (int pos = 0; pos < MM_CAMERA_MAX_NUM_SENSORS; pos++) {
        m_flashFds[pos].first = -1;
        m_flashFds[pos].second = -1;
    }
}
QCameraFlash :: QCameraFlash ( ) : m_callbacks ( NULL ) { memset ( & m_flashOn , 0 , sizeof ( m_flashOn ) ) ; memset ( & m_cameraOpen , 0 , sizeof ( m_cameraOpen ) ) ; for ( int pos = 0 ; pos < MM_CAMERA_MAX_NUM_SENSORS ; pos ++ ) { m_flashFds [ pos ] . first = -1 ; m_flashFds [ pos ] . second = -1 ; } }
FUNCTION   : QCameraFlash
 DESCRIPTION: default constructor of QCameraFlash
FUNCTION : QCameraFlash DESCRIPTION : default constructor of QCameraFlash