Lines Matching refs:job
223 * DESCRIPTION: function to prepare encoding job information
372 ALOGE("%s: No memory for jpeg job", __func__);
421 ALOGV("%s: meta queue is not empty, do next job", __func__);
432 ALOGE("%s: No memory for jpeg job", __func__);
466 ALOGV("%s: pp queue is not empty, do next job", __func__);
509 qcamera_pp_data_t *job = (qcamera_pp_data_t *)m_ongoingPPQ.dequeue();
511 if (job == NULL || job->src_frame == NULL) {
512 ALOGE("%s: Cannot find reprocess job", __func__);
519 ALOGE("%s: No memory for jpeg job", __func__);
525 jpeg_job->src_reproc_frame = job->src_frame;
527 // free pp job buf
528 free(job);
542 * DESCRIPTION: find a jpeg job from ongoing Jpeg queue by its job ID
545 * @jobId : job Id of the job
547 * RETURN : ptr to a jpeg job struct. NULL if not found.
549 * NOTE : Currently only one job is sending to mm-jpeg-interface for jpeg
551 * will serve the purpose to find the jpeg job.
555 qcamera_jpeg_data_t * job = NULL;
561 // currely only one jpeg job ongoing, so simply dequeue the head
562 job = (qcamera_jpeg_data_t *)m_ongoingJpegQ.dequeue();
563 return job;
588 * DESCRIPTION: callback function to release jpeg job node
591 * @data : ptr to ongoing jpeg job data
607 * DESCRIPTION: callback function to release ongoing postprocess job node
610 * @data : ptr to onging postprocess job
650 * DESCRIPTION: function to release internal resources in jpeg job struct
653 * @job : ptr to jpeg job struct
658 * future use. Output buf of jpeg job need to be released since
659 * it's allocated for each job. Exif object need to be deleted.
661 void QCamera3PostProcessor::releaseJpegJobData(qcamera_jpeg_data_t *job)
664 if (NULL != job) {
665 if (NULL != job->src_reproc_frame) {
666 free(job->src_reproc_frame);
667 job->src_reproc_frame = NULL;
670 if (NULL != job->src_frame) {
671 free(job->src_frame);
672 job->src_frame = NULL;
675 if (NULL != job->aux_frame) {
676 for(int i = 0; i < job->aux_frame->num_bufs; i++) {
677 memset(job->aux_frame->bufs[i], 0, sizeof(mm_camera_buf_def_t));
678 free(job->aux_frame->bufs[i]);
679 job->aux_frame->bufs[i] = NULL;
681 memset(job->aux_frame, 0, sizeof(mm_camera_super_buf_t));
682 free(job->aux_frame);
683 job->aux_frame = NULL;
749 * DESCRIPTION: function to prepare encoding job information and send to
750 * mm-jpeg-interface to do the encoding job
753 * @jpeg_job_data : ptr to a struct saving job related information
886 // Fill in new job
967 // remember job info
1065 ALOGD("%s: Do next job, active is %d", __func__, is_active);
1069 // no ongoing jpeg job, we are fine to send jpeg encoding job
1077 // add into ongoing jpeg job Q
1105 // add into ongoing PP job Q
1110 // remove from ongoing PP job Q