Home
last modified time | relevance | path

Searched refs:job (Results 1 – 16 of 16) sorted by relevance

/hardware/google/camera/devices/EmulatedCamera/hwl/
DJpegCompressor.cpp58 auto job = std::move(pending_yuv_jobs_.front()); in ~JpegCompressor() local
59 job->output->stream_buffer.status = BufferStatus::kError; in ~JpegCompressor()
64 status_t JpegCompressor::QueueYUV420(std::unique_ptr<JpegYUV420Job> job) { in QueueYUV420() argument
67 if ((job->input.get() == nullptr) || (job->output.get() == nullptr) || in QueueYUV420()
68 (job->output->format != PixelFormat::BLOB) || in QueueYUV420()
69 (job->output->dataSpace != HAL_DATASPACE_V0_JFIF)) { in QueueYUV420()
76 pending_yuv_jobs_.push(std::move(job)); in QueueYUV420()
107 void JpegCompressor::CompressYUV420(std::unique_ptr<JpegYUV420Job> job) { in CompressYUV420() argument
112 if ((job->exif_utils.get() != nullptr) && in CompressYUV420()
113 (job->result_metadata.get() != nullptr)) { in CompressYUV420()
[all …]
DJpegCompressor.h73 status_t QueueYUV420(std::unique_ptr<JpegYUV420Job> job);
85 void CompressYUV420(std::unique_ptr<JpegYUV420Job> job);
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_snapshot.c85 mm_jpeg_job_t job; in encodeData() local
96 memset(&job, 0, sizeof(job)); in encodeData()
97 job.job_type = JPEG_JOB_TYPE_ENCODE; in encodeData()
98 job.encode_job.session_id = test_obj->current_jpeg_sess_id; in encodeData()
102 job.encode_job.rotation = 0; in encodeData()
105 job.encode_job.main_dim.src_dim = m_stream->s_config.stream_info->dim; in encodeData()
106 job.encode_job.main_dim.dst_dim = m_stream->s_config.stream_info->dim; in encodeData()
107 job.encode_job.src_index = 0; in encodeData()
109 job.encode_job.thumb_dim.src_dim = m_stream->s_config.stream_info->dim; in encodeData()
110 job.encode_job.thumb_dim.dst_dim.width = DEFAULT_PREVIEW_WIDTH; in encodeData()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/HAL/
DQCameraPostProc.cpp1429 qcamera_pp_data_t *job = (qcamera_pp_data_t *)m_ongoingPPQ.dequeue(); in processPPData() local
1430 if (NULL == job) { in processPPData()
1435 if (!needSuperBufMatch && (job->src_frame == NULL in processPPData()
1436 || job->src_reproc_frame == NULL) ) { in processPPData()
1443 releaseOngoingPPData(job, this); in processPPData()
1444 free(job); in processPPData()
1488 int8_t mCurReprocCount = job->reprocCount; in processPPData()
1499 int8_t mCurChannelIndex = job->ppChannelIndex; in processPPData()
1502 releaseSuperBuf(job->src_frame); in processPPData()
1503 free(job->src_frame); in processPPData()
[all …]
DQCameraPostProc.h222 void releaseJpegJobData(qcamera_jpeg_data_t *job);
/hardware/qcom/camera/msm8998/QCamera2/HAL3/
DQCamera3PostProc.cpp764 qcamera_hal3_pp_data_t *job = (qcamera_hal3_pp_data_t *)m_ongoingPPQ.dequeue(); in processPPData() local
765 if (job == NULL || ((NULL == job->src_frame) && (NULL == job->fwk_src_frame))) { in processPPData()
769 if (job->jpeg_settings == NULL) { in processPPData()
783 if(frame != job->src_frame) in processPPData()
784 jpeg_job->src_reproc_frame = job->src_frame; in processPPData()
785 if (NULL == job->fwk_src_frame) { in processPPData()
786 jpeg_job->metadata = job->metadata; in processPPData()
788 ATRACE_ASYNC_END("Camera:Reprocess", job->fwk_src_frame->frameNumber); in processPPData()
790 (metadata_buffer_t *) job->fwk_src_frame->metadata_buffer.buffer; in processPPData()
791 jpeg_job->fwk_src_buffer = job->fwk_src_frame; in processPPData()
[all …]
DQCamera3PostProc.h128 int32_t processJpegJob(qcamera_hal3_jpeg_data_t *job);
134 void releaseJpegJobData(qcamera_hal3_jpeg_data_t *job);
136 void releasePPJobData(qcamera_hal3_pp_data_t *job);
DQCamera3Channel.cpp3502 qcamera_hal3_jpeg_data_t *job = obj->m_postprocessor.findJpegJobByJobId(jobId); in jpegEvtHandle() local
3504 if ((job == NULL) || (status == JPEG_JOB_STATUS_ERROR)) { in jpegEvtHandle()
3509 if (NULL != job) { in jpegEvtHandle()
3510 uint32_t bufIdx = (uint32_t)job->jpeg_settings->out_buf_index; in jpegEvtHandle()
3587 if (job->src_reproc_frame) in jpegEvtHandle()
3588 src_frame = job->src_reproc_frame; in jpegEvtHandle()
3590 src_frame = job->src_frame; in jpegEvtHandle()
3615 if ((NULL != job->fwk_frame) || (NULL != job->fwk_src_buffer)) { in jpegEvtHandle()
3642 obj->m_postprocessor.releaseJpegJobData(job); in jpegEvtHandle()
3643 free(job); in jpegEvtHandle()
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpegdec_interface.c56 static int32_t mm_jpegdec_intf_start_job(mm_jpeg_job_t* job, uint32_t* job_id) in mm_jpegdec_intf_start_job() argument
60 if (NULL == job || in mm_jpegdec_intf_start_job()
73 rc = mm_jpegdec_start_decode_job(g_jpegdec_obj, job, job_id); in mm_jpegdec_intf_start_job()
Dmm_jpeg_interface.c107 static int32_t mm_jpeg_intf_start_job(mm_jpeg_job_t* job, uint32_t* job_id) in mm_jpeg_intf_start_job() argument
111 if (NULL == job || in mm_jpeg_intf_start_job()
124 rc = mm_jpeg_start_job(g_jpeg_obj, job, job_id); in mm_jpeg_intf_start_job()
Dmm_jpegdec.c729 mm_jpeg_job_t *job, in mm_jpegdec_start_decode_job() argument
738 mm_jpeg_decode_job_t *p_jobparams = &job->decode_job; in mm_jpegdec_start_decode_job()
751 job->decode_job.session_id); in mm_jpegdec_start_decode_job()
758 job->decode_job.session_id); in mm_jpegdec_start_decode_job()
775 *job_id = job->decode_job.session_id | in mm_jpegdec_start_decode_job()
779 node->dec_info.decode_job = job->decode_job; in mm_jpegdec_start_decode_job()
Dmm_jpeg.c2728 mm_jpeg_job_t *job, in mm_jpeg_start_job() argument
2743 if (!job) { in mm_jpeg_start_job()
2747 p_jobparams = &job->encode_job; in mm_jpeg_start_job()
2758 job->encode_job.session_id); in mm_jpeg_start_job()
2800 job->encode_job.session_id); in mm_jpeg_start_job()
2818 (int32_t)(job->encode_job.session_id)); in mm_jpeg_start_job()
2820 *job_id = job->encode_job.session_id | in mm_jpeg_start_job()
2824 node->enc_info.encode_job = job->encode_job; in mm_jpeg_start_job()
2828 rc = mm_jpeg_lib2d_rotation(p_session, node, job, job_id); in mm_jpeg_start_job()
2845 job->encode_job.thumb_dim.dst_dim.height; in mm_jpeg_start_job()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpegdec_test.c93 mm_jpeg_job_t job; member
244 mm_jpeg_decode_job_t *p_job_params = &p_obj->job.decode_job; in decode_init()
406 &jpeg_obj.job.decode_job.session_id); in decode_test()
407 if (jpeg_obj.job.decode_job.session_id == 0) { in decode_test()
413 jpeg_obj.job.job_type = JPEG_JOB_TYPE_DECODE; in decode_test()
421 rc = jpeg_obj.ops.start_job(&jpeg_obj.job, &jpeg_obj.job_id[i]); in decode_test()
440 jpeg_obj.ops.destroy_session(jpeg_obj.job.decode_job.session_id); in decode_test()
Dmm_jpeg_test.c129 mm_jpeg_job_t job; member
306 mm_jpeg_encode_job_t *p_job_params = &p_obj->job.encode_job; in encode_init()
490 &jpeg_obj->job.encode_job.session_id); in encode_test()
491 if (jpeg_obj->job.encode_job.session_id == 0) { in encode_test()
498 jpeg_obj->job.job_type = JPEG_JOB_TYPE_ENCODE; in encode_test()
499 jpeg_obj->job.encode_job.src_index = (int32_t) i; in encode_test()
500 jpeg_obj->job.encode_job.dst_index = (int32_t) i; in encode_test()
501 jpeg_obj->job.encode_job.thumb_index = (uint32_t) i; in encode_test()
504 jpeg_obj->job.encode_job.dst_index = -1; in encode_test()
507 rc = jpeg_obj->ops.start_job(&jpeg_obj->job, &jpeg_obj->job_id[i]); in encode_test()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/common/
Dmm_jpeg_interface.h374 int (*start_job)(mm_jpeg_job_t* job, uint32_t* job_id);
393 int (*start_job)(mm_jpeg_job_t* job, uint32_t* job_id);
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/inc/
Dmm_jpeg.h441 mm_jpeg_job_t* job,
459 mm_jpeg_job_t* job,