camera/QCamera2/HAL/QCameraPostProc.cpp
/*===========================================================================
 * FUNCTION   : releaseSaveJobData
 *
 * DESCRIPTION: function to release internal resources in store jobs
 *
 * PARAMETERS :
 *   @job     : ptr to save job struct
 *
 * RETURN     : None
 *
 *==========================================================================*/
FUNCTION   : releaseSaveJobData
DESCRIPTION: function to release internal resources in store jobs

PARAMETERS :
@job     : ptr to save job struct

RETURN     : None
FUNCTION : releaseSaveJobData DESCRIPTION : function to release internal resources in store jobs PARAMETERS : @job : ptr to save job struct RETURN : None
void QCameraPostProcessor::releaseSaveJobData(void *data, void *user_data)
{
    CDBG("%s: E", __func__);
    QCameraPostProcessor *pme = (QCameraPostProcessor *) user_data;
    if (NULL == pme) {
        ALOGE("%s: Invalid postproc handle", __func__);
        return;
    }
    qcamera_jpeg_evt_payload_t *job_data = (qcamera_jpeg_evt_payload_t *) data;
    if (job_data == NULL) {
        ALOGE("%s: Invalid jpeg event data", __func__);
        return;
    }
    qcamera_jpeg_data_t *job = pme->findJpegJobByJobId(job_data->jobId);
    if (NULL != job) {
        pme->releaseJpegJobData(job);
        free(job);
    } else {
        ALOGE("%s : Invalid jpeg job", __func__);
    }
    CDBG("%s: X", __func__);
}
void QCameraPostProcessor :: releaseSaveJobData ( void * data , void * user_data ) { CDBG ( " " , __func__ ) ; QCameraPostProcessor * pme = ( QCameraPostProcessor * ) user_data ; if ( NULL == pme ) { ALOGE ( " " , __func__ ) ; return ; } qcamera_jpeg_evt_payload_t * job_data = ( qcamera_jpeg_evt_payload_t * ) data ; if ( job_data == NULL ) { ALOGE ( " " , __func__ ) ; return ; } qcamera_jpeg_data_t * job = pme -> findJpegJobByJobId ( job_data -> jobId ) ; if ( NULL != job ) { pme -> releaseJpegJobData ( job ) ; free ( job ) ; } else { ALOGE ( " " , __func__ ) ; } CDBG ( " " , __func__ ) ; }
FUNCTION   : releaseSaveJobData
 DESCRIPTION: function to release internal resources in store jobs
FUNCTION : releaseSaveJobData DESCRIPTION : function to release internal resources in store jobs
// find job by jobId