camera/QCamera2/HAL/QCameraPostProc.cpp
/*===========================================================================
 * FUNCTION   : releaseSuperBuf
 *
 * DESCRIPTION: function to release a superbuf frame by returning back to kernel
 *
 * PARAMETERS :
 *   @super_buf : ptr to the superbuf frame
 *
 * RETURN     : None
 *==========================================================================*/
FUNCTION   : releaseSuperBuf
DESCRIPTION: function to release a superbuf frame by returning back to kernel

PARAMETERS :
@super_buf : ptr to the superbuf frame

RETURN     : None
FUNCTION : releaseSuperBuf DESCRIPTION : function to release a superbuf frame by returning back to kernel PARAMETERS : @super_buf : ptr to the superbuf frame RETURN : None
void QCameraPostProcessor::releaseSuperBuf(mm_camera_super_buf_t *super_buf)
{
    QCameraChannel *pChannel = NULL;
    if (NULL != super_buf) {
        pChannel = m_parent->getChannelByHandle(super_buf->ch_id);
        if ( NULL == pChannel ) {
            if (m_pReprocChannel != NULL &&
                m_pReprocChannel->getMyHandle() == super_buf->ch_id) {
                pChannel = m_pReprocChannel;
            } else if (m_pDualReprocChannel != NULL &&
                m_pDualReprocChannel->getMyHandle() == super_buf->ch_id) {
                pChannel = m_pDualReprocChannel;
            }
        }
        if (pChannel != NULL) {
            pChannel->bufDone(super_buf);
        } else {
            ALOGE(" %s : Channel id %d not found!!",
                  __func__,
                  super_buf->ch_id);
        }
    }
}
void QCameraPostProcessor :: releaseSuperBuf ( mm_camera_super_buf_t * super_buf ) { QCameraChannel * pChannel = NULL ; if ( NULL != super_buf ) { pChannel = m_parent -> getChannelByHandle ( super_buf -> ch_id ) ; if ( NULL == pChannel ) { if ( m_pReprocChannel != NULL && m_pReprocChannel -> getMyHandle ( ) == super_buf -> ch_id ) { pChannel = m_pReprocChannel ; } else if ( m_pDualReprocChannel != NULL && m_pDualReprocChannel -> getMyHandle ( ) == super_buf -> ch_id ) { pChannel = m_pDualReprocChannel ; } } if ( pChannel != NULL ) { pChannel -> bufDone ( super_buf ) ; } else { ALOGE ( " " , __func__ , super_buf -> ch_id ) ; } } }
FUNCTION   : releaseSuperBuf
 DESCRIPTION: function to release a superbuf frame by returning back to kernel
FUNCTION : releaseSuperBuf DESCRIPTION : function to release a superbuf frame by returning back to kernel