Lines Matching refs:jpeg_job
1167 qcamera_jpeg_data_t *jpeg_job = in processData() local
1169 if (jpeg_job == NULL) { in processData()
1174 memset(jpeg_job, 0, sizeof(qcamera_jpeg_data_t)); in processData()
1175 jpeg_job->src_frame = frame; in processData()
1179 jpeg_job->metadata = (metadata_buffer_t *)meta_frame->buffer; in processData()
1183 if (!m_inputJpegQ.enqueue((void *)jpeg_job)) { in processData()
1185 releaseJpegJobData(jpeg_job); in processData()
1186 free(jpeg_job); in processData()
1187 jpeg_job = NULL; in processData()
1546 qcamera_jpeg_data_t *jpeg_job = in processPPData() local
1548 if (jpeg_job == NULL) { in processPPData()
1553 memset(jpeg_job, 0, sizeof(qcamera_jpeg_data_t)); in processPPData()
1554 jpeg_job->src_frame = frame; in processPPData()
1555 jpeg_job->src_reproc_frame = job ? job->src_reproc_frame : NULL; in processPPData()
1556 jpeg_job->src_reproc_bufs = job ? job->src_reproc_bufs : NULL; in processPPData()
1557 jpeg_job->reproc_frame_release = job ? job->reproc_frame_release : false; in processPPData()
1558 jpeg_job->offline_reproc_buf = job ? job->offline_reproc_buf : NULL; in processPPData()
1559 jpeg_job->offline_buffer = job ? job->offline_buffer : false; in processPPData()
1594 jpeg_job->metadata = (metadata_buffer_t *)meta_frame->buffer; in processPPData()
1628 jpeg_job->metadata = (metadata_buffer_t *)pOfflineMetaFrame->buffer; in processPPData()
1634 if (enabled && jpeg_job->metadata->is_tuning_params_valid) { in processPPData()
1642 if (false == m_inputJpegQ.enqueue((void *)jpeg_job)) { in processPPData()
1644 releaseJpegJobData(jpeg_job); in processPPData()
1645 free(jpeg_job); in processPPData()
1646 jpeg_job = NULL; in processPPData()
3207 qcamera_jpeg_data_t *jpeg_job = in dataProcessRoutine() local
3209 while (jpeg_job != NULL) { in dataProcessRoutine()
3210 pme->mJpegHandle.abort_job(jpeg_job->jobId); in dataProcessRoutine()
3212 pme->releaseJpegJobData(jpeg_job); in dataProcessRoutine()
3213 free(jpeg_job); in dataProcessRoutine()
3215 jpeg_job = (qcamera_jpeg_data_t *)pme->m_ongoingJpegQ.dequeue(); in dataProcessRoutine()
3271 qcamera_jpeg_data_t *jpeg_job = NULL; in dataProcessRoutine() local
3275 jpeg_job = (qcamera_jpeg_data_t *)pme->m_inputJpegQ.dequeue(); in dataProcessRoutine()
3278 if (NULL != jpeg_job) { in dataProcessRoutine()
3284 pme->syncStreamParams(jpeg_job->src_frame, NULL); in dataProcessRoutine()
3288 if (pme->m_ongoingJpegQ.enqueue((void *)jpeg_job)) { in dataProcessRoutine()
3289 if (jpeg_job->halPPAllocatedBuf) { in dataProcessRoutine()
3291 ret = pme->encodeData(jpeg_job, pme->mNewJpegSessionNeededHalPP); in dataProcessRoutine()
3293 ret = pme->encodeData(jpeg_job, pme->mNewJpegSessionNeeded); in dataProcessRoutine()
3298 pme->releaseJpegJobData(jpeg_job); in dataProcessRoutine()
3299 free(jpeg_job); in dataProcessRoutine()
3300 jpeg_job = NULL; in dataProcessRoutine()
3305 pme->releaseJpegJobData(jpeg_job); in dataProcessRoutine()
3306 free(jpeg_job); in dataProcessRoutine()
3307 jpeg_job = NULL; in dataProcessRoutine()
4059 qcamera_jpeg_data_t *jpeg_job = in processHalPPData() local
4061 if (jpeg_job == NULL) { in processHalPPData()
4066 memset(jpeg_job, 0, sizeof(qcamera_jpeg_data_t)); in processHalPPData()
4067 jpeg_job->src_frame = frame; in processHalPPData()
4068 jpeg_job->halPPAllocatedBuf = pData->halPPAllocatedBuf; in processHalPPData()
4069 jpeg_job->hal_pp_bufs = pData->bufs; in processHalPPData()
4070 jpeg_job->snapshot_heap = pData->snapshot_heap; in processHalPPData()
4071 jpeg_job->metadata_heap = pData->metadata_heap; in processHalPPData()
4072 jpeg_job->src_reproc_frame = pData->src_reproc_frame; in processHalPPData()
4073 jpeg_job->src_reproc_bufs = pData->src_reproc_bufs; in processHalPPData()
4074 jpeg_job->reproc_frame_release = pData->reproc_frame_release; in processHalPPData()
4075 jpeg_job->offline_reproc_buf = pData->offline_reproc_buf; in processHalPPData()
4076 jpeg_job->offline_buffer = pData->offline_buffer; in processHalPPData()
4078 LOGD("src_reproc_frame:%p", jpeg_job->src_reproc_frame); in processHalPPData()
4080 if (!jpeg_job->halPPAllocatedBuf) { in processHalPPData()
4088 releaseJpegJobData(jpeg_job); in processHalPPData()
4089 free(jpeg_job); in processHalPPData()
4090 jpeg_job = NULL; in processHalPPData()
4106 jpeg_job->metadata = (metadata_buffer_t *)meta_frame->buffer; in processHalPPData()
4109 if (false == m_inputJpegQ.enqueue((void *)jpeg_job)) { in processHalPPData()
4111 releaseJpegJobData(jpeg_job); in processHalPPData()
4112 free(jpeg_job); in processHalPPData()
4113 jpeg_job = NULL; in processHalPPData()