Home
last modified time | relevance | path

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

12

/hardware/google/camera/devices/EmulatedCamera/hwl/
DJpegCompressor.cpp186 auto job = std::move(pending_yuv_jobs_.front()); in ~JpegCompressor() local
187 job->output->stream_buffer.status = BufferStatus::kError; in ~JpegCompressor()
192 status_t JpegCompressor::QueueYUV420(std::unique_ptr<JpegYUV420Job> job) { in QueueYUV420() argument
195 if ((job->input.get() == nullptr) || (job->output.get() == nullptr) || in QueueYUV420()
196 (job->output->format != PixelFormat::BLOB) || in QueueYUV420()
197 (job->output->dataSpace != HAL_DATASPACE_V0_JFIF)) { in QueueYUV420()
204 pending_yuv_jobs_.push(std::move(job)); in QueueYUV420()
235 void JpegCompressor::CompressYUV420(std::unique_ptr<JpegYUV420Job> job) { in CompressYUV420() argument
240 if ((job->exif_utils.get() != nullptr) && in CompressYUV420()
241 (job->result_metadata.get() != nullptr)) { in CompressYUV420()
[all …]
DJpegCompressor.h72 status_t QueueYUV420(std::unique_ptr<JpegYUV420Job> job);
84 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/google/gfxstream/guest/mesa/src/util/
Du_queue.c283 struct util_queue_job job; in util_queue_thread_func() local
298 job = queue->jobs[queue->read_idx]; in util_queue_thread_func()
304 if (job.job) in util_queue_thread_func()
305 queue->total_jobs_size -= job.job_size; in util_queue_thread_func()
308 if (job.job) { in util_queue_thread_func()
309 job.execute(job.job, job.global_data, thread_index); in util_queue_thread_func()
310 if (job.fence) in util_queue_thread_func()
311 util_queue_fence_signal(job.fence); in util_queue_thread_func()
312 if (job.cleanup) in util_queue_thread_func()
313 job.cleanup(job.job, job.global_data, thread_index); in util_queue_thread_func()
[all …]
Ddisk_cache.c403 destroy_put_job(void *job, void *gdata, int thread_index) in destroy_put_job() argument
405 if (job) { in destroy_put_job()
406 struct disk_cache_put_job *dc_job = (struct disk_cache_put_job *) job; in destroy_put_job()
408 free(job); in destroy_put_job()
413 destroy_put_job_nocopy(void *job, void *gdata, int thread_index) in destroy_put_job_nocopy() argument
415 struct disk_cache_put_job *dc_job = (struct disk_cache_put_job *) job; in destroy_put_job_nocopy()
417 destroy_put_job(job, gdata, thread_index); in destroy_put_job_nocopy()
425 cache_put(void *job, void *gdata, int thread_index) in cache_put() argument
427 assert(job); in cache_put()
431 struct disk_cache_put_job *dc_job = (struct disk_cache_put_job *) job; in cache_put()
Du_queue.h193 typedef void (*util_queue_execute_func)(void *job, void *gdata, int thread_index);
196 void *job; member
236 void *job,
/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/google/gfxstream/host/
DSyncThread.cpp398 int SyncThread::sendAndWaitForResult(std::function<int(WorkerId)> job, std::string description) { in sendAndWaitForResult() argument
400 std::packaged_task<int(WorkerId)> task(std::move(job)); in sendAndWaitForResult()
413 void SyncThread::sendAsync(std::function<void(WorkerId)> job, std::string description) { in sendAsync() argument
417 std::packaged_task<int(WorkerId)>([job = std::move(job)](WorkerId workerId) mutable { in sendAsync()
418 job(workerId); in sendAsync()
DSyncThread.h137 int sendAndWaitForResult(std::function<int(WorkerId)> job, std::string description);
138 void sendAsync(std::function<void(WorkerId)> job, std::string description);
/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/google/gfxstream/guest/mesa/src/util/perf/
Du_trace.c553 process_chunk(void *job, void *gdata, int thread_index) in process_chunk() argument
555 struct u_trace_chunk *chunk = job; in process_chunk()
636 cleanup_chunk(void *job, void *gdata, int thread_index) in cleanup_chunk() argument
638 free_chunk(job); in cleanup_chunk()
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/inc/
Dmm_jpeg.h441 mm_jpeg_job_t* job,
459 mm_jpeg_job_t* job,
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/appendices/
DVK_KHR_deferred_host_operations.adoc97 // in a job system, a return of VK_THREAD_IDLE_KHR should queue another
98 // job, but it is not functionally required
DVK_EXT_pipeline_creation_cache_control.adoc64 The job or task based game engines that are being developed to take
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/proposals/
DVK_ANDROID_external_format_resolve.adoc355 A future extension should be able to do a better job of unifying these paths.

12