camera/QCamera2/HAL/QCameraPostProc.cpp
/*===========================================================================
 * FUNCTION   : releaseOngoingPPData
 *
 * DESCRIPTION: callback function to release ongoing postprocess job node
 *
 * PARAMETERS :
 *   @data      : ptr to onging postprocess job
 *   @user_data : user data ptr (QCameraReprocessor)
 *
 * RETURN     : None
 *==========================================================================*/
FUNCTION   : releaseOngoingPPData
DESCRIPTION: callback function to release ongoing postprocess job node

PARAMETERS :
@data      : ptr to onging postprocess job
@user_data : user data ptr (QCameraReprocessor)

RETURN     : None
FUNCTION : releaseOngoingPPData DESCRIPTION : callback function to release ongoing postprocess job node PARAMETERS : @data : ptr to onging postprocess job @user_data : user data ptr ( QCameraReprocessor ) RETURN : None
void QCameraPostProcessor::releaseOngoingPPData(void *data, void *user_data)
{
    QCameraPostProcessor *pme = (QCameraPostProcessor *)user_data;
    if (NULL != pme) {
        qcamera_pp_data_t *pp_job = (qcamera_pp_data_t *)data;
        if (NULL != pp_job->src_frame) {
            if (!pp_job->reproc_frame_release) {
                pme->releaseSuperBuf(pp_job->src_frame);
            }
            free(pp_job->src_frame);
            pp_job->src_frame = NULL;
        }
    }
}
void QCameraPostProcessor :: releaseOngoingPPData ( void * data , void * user_data ) { QCameraPostProcessor * pme = ( QCameraPostProcessor * ) user_data ; if ( NULL != pme ) { qcamera_pp_data_t * pp_job = ( qcamera_pp_data_t * ) data ; if ( NULL != pp_job -> src_frame ) { if ( ! pp_job -> reproc_frame_release ) { pme -> releaseSuperBuf ( pp_job -> src_frame ) ; } free ( pp_job -> src_frame ) ; pp_job -> src_frame = NULL ; } } }
FUNCTION   : releaseOngoingPPData
 DESCRIPTION: callback function to release ongoing postprocess job node
FUNCTION : releaseOngoingPPData DESCRIPTION : callback function to release ongoing postprocess job node