Home | History | Annotate | Download | only in HAL3

Lines Matching refs:job

246  * DESCRIPTION: function to prepare encoding job information
334 * DESCRIPTION: function to prepare encoding job information
472 CDBG("%s: meta queue is not empty, do next job", __func__);
516 ALOGE("%s: No memory for jpeg job", __func__);
553 CDBG("%s: pp queue is not empty, do next job", __func__);
556 CDBG("%s: pp queue is empty, not calling do next job", __func__);
621 qcamera_hal3_pp_data_t *job = (qcamera_hal3_pp_data_t *)m_ongoingPPQ.dequeue();
623 if (job == NULL || ((NULL == job->src_frame) && (NULL == job->fwk_src_frame))) {
624 ALOGE("%s: Cannot find reprocess job", __func__);
627 if (job->jpeg_settings == NULL) {
635 ALOGE("%s: No memory for jpeg job", __func__);
641 if(frame != job->src_frame)
642 jpeg_job->src_reproc_frame = job->src_frame;
643 if (NULL == job->fwk_src_frame) {
644 jpeg_job->metadata = job->metadata;
647 (metadata_buffer_t *) job->fwk_src_frame->metadata_buffer.buffer;
648 jpeg_job->fwk_src_buffer = job->fwk_src_frame;
650 jpeg_job->src_metadata = job->src_metadata;
651 jpeg_job->jpeg_settings = job->jpeg_settings;
653 // free pp job buf
654 free(job);
668 * DESCRIPTION: find a jpeg job from ongoing Jpeg queue by its job ID
671 * @jobId : job Id of the job
673 * RETURN : ptr to a jpeg job struct. NULL if not found.
675 * NOTE : Currently only one job is sending to mm-jpeg-interface for jpeg
677 * will serve the purpose to find the jpeg job.
681 qcamera_hal3_jpeg_data_t * job = NULL;
687 // currely only one jpeg job ongoing, so simply dequeue the head
688 job = (qcamera_hal3_jpeg_data_t *)m_ongoingJpegQ.dequeue();
689 return job;
733 * DESCRIPTION: callback function to release jpeg job node
736 * @data : ptr to ongoing jpeg job data
752 * DESCRIPTION: callback function to release ongoing postprocess job node
755 * @data : ptr to onging postprocess job
827 * DESCRIPTION: function to release internal resources in jpeg job struct
830 * @job : ptr to jpeg job struct
835 * future use. Output buf of jpeg job need to be released since
836 * it's allocated for each job. Exif object need to be deleted.
838 void QCamera3PostProcessor::releaseJpegJobData(qcamera_hal3_jpeg_data_t *job)
843 if (NULL != job) {
844 if (NULL != job->src_reproc_frame) {
845 free(job->src_reproc_frame);
846 job->src_reproc_frame = NULL;
849 if (NULL != job->src_frame) {
851 rc = m_pReprocChannel->bufDone(job->src_frame);
855 free(job->src_frame);
856 job->src_frame = NULL;
859 if (NULL != job->fwk_src_buffer) {
860 free(job->fwk_src_buffer);
861 job->fwk_src_buffer = NULL;
862 } else if (NULL != job->src_metadata) {
863 m_parent->metadataBufDone(job->src_metadata);
864 free(job->src_metadata);
865 job->src_metadata = NULL;
868 if (NULL != job->fwk_frame) {
869 free(job->fwk_frame);
870 job->fwk_frame = NULL;
873 if (NULL != job->pJpegExifObj) {
874 delete job->pJpegExifObj;
875 job->pJpegExifObj = NULL;
878 if (NULL != job->jpeg_settings) {
879 free(job->jpeg_settings);
880 job->jpeg_settings = NULL;
946 * DESCRIPTION: function to prepare encoding job information and send to
947 * mm-jpeg-interface to do the encoding job
950 * @jpeg_job_data : ptr to a struct saving job related information
971 ALOGE("%s: Invalid jpeg job", __func__);
1048 // Fill in new job
1112 // remember job info
1123 * DESCRIPTION: function to prepare encoding job information and send to
1124 * mm-jpeg-interface to do the encoding job
1127 * @jpeg_job_data : ptr to a struct saving job related information
1282 // Fill in new job
1353 // remember job info
1459 CDBG_HIGH("%s: Do next job, active is %d", __func__, is_active);
1466 CDBG("%s: ongoing jpeg queue is empty so doing the jpeg job", __func__);
1467 // no ongoing jpeg job, we are fine to send jpeg encoding job
1472 // add into ongoing jpeg job Q
1506 // add into ongoing PP job Q
1511 // remove from ongoing PP job Q
1564 // add into ongoing PP job Q
1568 // remove from ongoing PP job Q