/device/moto/shamu/camera/QCamera/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_interface.c | 48 void static mm_jpeg_dump_job(mm_jpeg_job* job ) in mm_jpeg_dump_job() argument 53 buf_info = &job->encode_job.encode_parm.buf_info; in mm_jpeg_dump_job() 56 job->encode_job.encode_parm.rotation, job->encode_job.encode_parm.exif_numEntries, in mm_jpeg_dump_job() 57 job->encode_job.encode_parm.buf_info.src_imgs.is_video_frame); in mm_jpeg_dump_job() 97 static int32_t mm_jpeg_intf_start_job(uint32_t client_hdl, mm_jpeg_job* job, uint32_t* jobId) in mm_jpeg_intf_start_job() argument 102 NULL == job || in mm_jpeg_intf_start_job() 115 mm_jpeg_dump_job(job); in mm_jpeg_intf_start_job() 116 rc = mm_jpeg_start_job(g_jpeg_obj, client_hdl, job, jobId); in mm_jpeg_intf_start_job()
|
D | mm_jpeg.c | 281 int32_t mm_jpeg_omx_config_user_preference(mm_jpeg_obj* my_obj, mm_jpeg_encode_job* job) in mm_jpeg_omx_config_user_preference() argument 289 …map_jpeg_format(job->encode_parm.buf_info.src_imgs.src_img[JPEG_SRC_IMAGE_TYPE_MAIN].color_format); in mm_jpeg_omx_config_user_preference() 290 if (job->encode_parm.buf_info.src_imgs.src_img_num > 1) { in mm_jpeg_omx_config_user_preference() 292 …map_jpeg_format(job->encode_parm.buf_info.src_imgs.src_img[JPEG_SRC_IMAGE_TYPE_THUMB].color_format… in mm_jpeg_omx_config_user_preference() 300 if (job->encode_parm.buf_info.src_imgs.is_video_frame != 0) { in mm_jpeg_omx_config_user_preference() 310 int32_t mm_jpeg_omx_config_thumbnail(mm_jpeg_obj* my_obj, mm_jpeg_encode_job* job) in mm_jpeg_omx_config_thumbnail() argument 317 if (job->encode_parm.buf_info.src_imgs.src_img_num < 2) { in mm_jpeg_omx_config_thumbnail() 322 &(job->encode_parm.buf_info.src_imgs.src_img[JPEG_SRC_IMAGE_TYPE_THUMB]); in mm_jpeg_omx_config_thumbnail() 445 int32_t mm_jpeg_omx_config_main(mm_jpeg_obj* my_obj, mm_jpeg_encode_job* job) in mm_jpeg_omx_config_main() argument 449 &(job->encode_parm.buf_info.src_imgs.src_img[JPEG_SRC_IMAGE_TYPE_MAIN]); in mm_jpeg_omx_config_main() [all …]
|
/device/moto/shamu/camera/QCamera2/HAL3/ |
D | QCamera3PostProc.cpp | 616 qcamera_hal3_pp_data_t *job = (qcamera_hal3_pp_data_t *)m_ongoingPPQ.dequeue(); in processPPData() local 618 if (job == NULL || ((NULL == job->src_frame) && (NULL == job->fwk_src_frame))) { in processPPData() 622 if (job->jpeg_settings == NULL) { in processPPData() 636 if(frame != job->src_frame) in processPPData() 637 jpeg_job->src_reproc_frame = job->src_frame; in processPPData() 638 if (NULL == job->fwk_src_frame) { in processPPData() 639 jpeg_job->metadata = job->metadata; in processPPData() 642 (metadata_buffer_t *) job->fwk_src_frame->metadata_buffer.buffer; in processPPData() 643 jpeg_job->fwk_src_buffer = job->fwk_src_frame; in processPPData() 645 jpeg_job->src_metadata = job->src_metadata; in processPPData() [all …]
|
/device/moto/shamu/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_snapshot.c | 85 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() 104 job.encode_job.rotation = 270; in encodeData() 108 job.encode_job.main_dim.src_dim = m_stream->s_config.stream_info->dim; in encodeData() 109 job.encode_job.main_dim.dst_dim = m_stream->s_config.stream_info->dim; in encodeData() 110 job.encode_job.src_index = 0; in encodeData() 112 job.encode_job.thumb_dim.src_dim = m_stream->s_config.stream_info->dim; in encodeData() [all …]
|
/device/huawei/angler/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_snapshot.c | 85 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() 104 job.encode_job.rotation = 270; in encodeData() 108 job.encode_job.main_dim.src_dim = m_stream->s_config.stream_info->dim; in encodeData() 109 job.encode_job.main_dim.dst_dim = m_stream->s_config.stream_info->dim; in encodeData() 110 job.encode_job.src_index = 0; in encodeData() 112 job.encode_job.thumb_dim.src_dim = m_stream->s_config.stream_info->dim; in encodeData() [all …]
|
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_snapshot.c | 85 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() 104 job.encode_job.rotation = 270; in encodeData() 108 job.encode_job.main_dim.src_dim = m_stream->s_config.stream_info->dim; in encodeData() 109 job.encode_job.main_dim.dst_dim = m_stream->s_config.stream_info->dim; in encodeData() 110 job.encode_job.src_index = 0; in encodeData() 112 job.encode_job.thumb_dim.src_dim = m_stream->s_config.stream_info->dim; in encodeData() [all …]
|
/device/moto/shamu/camera/QCamera2/HAL/ |
D | QCameraPostProc.cpp | 856 qcamera_pp_data_t *job = (qcamera_pp_data_t *)m_ongoingPPQ.dequeue(); in processPPData() local 858 if (!needSuperBufMatch && (job == NULL || job->src_frame == NULL) ) { in processPPData() 865 releaseSuperBuf(job->src_frame); in processPPData() 866 free(job->src_frame); in processPPData() 867 free(job); in processPPData() 891 jpeg_job->src_reproc_frame = job ? job->src_frame : NULL; in processPPData() 892 jpeg_job->src_reproc_bufs = job ? job->src_reproc_bufs : NULL; in processPPData() 893 jpeg_job->reproc_frame_release = job ? job->reproc_frame_release : false; in processPPData() 897 for (int i = 0; job && (i < job->src_frame->num_bufs); i++) { in processPPData() 899 if (job->src_frame->bufs[i]->stream_type == CAM_STREAM_TYPE_METADATA) { in processPPData() [all …]
|
/device/huawei/angler/camera/QCamera2/HAL3/ |
D | QCamera3PostProc.cpp | 676 qcamera_hal3_pp_data_t *job = (qcamera_hal3_pp_data_t *)m_ongoingPPQ.dequeue(); in processPPData() local 678 if (job == NULL || ((NULL == job->src_frame) && (NULL == job->fwk_src_frame))) { in processPPData() 682 if (job->jpeg_settings == NULL) { in processPPData() 696 if(frame != job->src_frame) in processPPData() 697 jpeg_job->src_reproc_frame = job->src_frame; in processPPData() 698 if (NULL == job->fwk_src_frame) { in processPPData() 699 jpeg_job->metadata = job->metadata; in processPPData() 702 (metadata_buffer_t *) job->fwk_src_frame->metadata_buffer.buffer; in processPPData() 703 jpeg_job->fwk_src_buffer = job->fwk_src_frame; in processPPData() 705 jpeg_job->src_metadata = job->src_metadata; in processPPData() [all …]
|
/device/lge/bullhead/camera/QCamera2/HAL3/ |
D | QCamera3PostProc.cpp | 676 qcamera_hal3_pp_data_t *job = (qcamera_hal3_pp_data_t *)m_ongoingPPQ.dequeue(); in processPPData() local 678 if (job == NULL || ((NULL == job->src_frame) && (NULL == job->fwk_src_frame))) { in processPPData() 682 if (job->jpeg_settings == NULL) { in processPPData() 696 if(frame != job->src_frame) in processPPData() 697 jpeg_job->src_reproc_frame = job->src_frame; in processPPData() 698 if (NULL == job->fwk_src_frame) { in processPPData() 699 jpeg_job->metadata = job->metadata; in processPPData() 702 (metadata_buffer_t *) job->fwk_src_frame->metadata_buffer.buffer; in processPPData() 703 jpeg_job->fwk_src_buffer = job->fwk_src_frame; in processPPData() 705 jpeg_job->src_metadata = job->src_metadata; in processPPData() [all …]
|
/device/lge/bullhead/camera/QCamera2/HAL/ |
D | QCameraPostProc.cpp | 1074 qcamera_pp_data_t *job = (qcamera_pp_data_t *)m_ongoingPPQ.dequeue(); in processPPData() local 1075 if (NULL == job) { in processPPData() 1080 if (!needSuperBufMatch && (job->src_frame == NULL in processPPData() 1081 || job->src_reproc_frame == NULL) ) { in processPPData() 1088 releaseOngoingPPData(job, this); in processPPData() 1089 free(job); in processPPData() 1103 int8_t mCurReprocCount = job->reprocCount; in processPPData() 1106 releaseSuperBuf(job->src_frame); in processPPData() 1107 free(job->src_frame); in processPPData() 1108 job->src_frame = NULL; in processPPData() [all …]
|
/device/huawei/angler/camera/QCamera2/HAL/ |
D | QCameraPostProc.cpp | 1074 qcamera_pp_data_t *job = (qcamera_pp_data_t *)m_ongoingPPQ.dequeue(); in processPPData() local 1075 if (NULL == job) { in processPPData() 1080 if (!needSuperBufMatch && (job->src_frame == NULL in processPPData() 1081 || job->src_reproc_frame == NULL) ) { in processPPData() 1088 releaseOngoingPPData(job, this); in processPPData() 1089 free(job); in processPPData() 1103 int8_t mCurReprocCount = job->reprocCount; in processPPData() 1106 releaseSuperBuf(job->src_frame); in processPPData() 1107 free(job->src_frame); in processPPData() 1108 job->src_frame = NULL; in processPPData() [all …]
|
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/test/ |
D | mm_jpeg_test.c | 116 mm_jpeg_job_t job; member 250 mm_jpeg_encode_job_t *p_job_params = &p_obj->job.encode_job; in encode_init() 419 &jpeg_obj.job.encode_job.session_id); in encode_test() 420 if (jpeg_obj.job.encode_job.session_id == 0) { in encode_test() 426 jpeg_obj.job.job_type = JPEG_JOB_TYPE_ENCODE; in encode_test() 427 jpeg_obj.job.encode_job.src_index = i; in encode_test() 428 jpeg_obj.job.encode_job.dst_index = i; in encode_test() 429 jpeg_obj.job.encode_job.thumb_index = i; in encode_test() 432 jpeg_obj.job.encode_job.dst_index = -1; in encode_test() 435 rc = jpeg_obj.ops.start_job(&jpeg_obj.job, &jpeg_obj.job_id[i]); in encode_test() [all …]
|
D | mm_jpegdec_test.c | 84 mm_jpeg_job_t job; member 235 mm_jpeg_decode_job_t *p_job_params = &p_obj->job.decode_job; in decode_init() 396 &jpeg_obj.job.decode_job.session_id); in decode_test() 397 if (jpeg_obj.job.decode_job.session_id == 0) { in decode_test() 403 jpeg_obj.job.job_type = JPEG_JOB_TYPE_DECODE; in decode_test() 411 rc = jpeg_obj.ops.start_job(&jpeg_obj.job, &jpeg_obj.job_id[i]); in decode_test() 430 jpeg_obj.ops.destroy_session(jpeg_obj.job.decode_job.session_id); in decode_test()
|
/device/lge/bullhead/camera/QCamera2/stack/mm-jpeg-interface/test/ |
D | mm_jpeg_test.c | 116 mm_jpeg_job_t job; member 250 mm_jpeg_encode_job_t *p_job_params = &p_obj->job.encode_job; in encode_init() 421 &jpeg_obj.job.encode_job.session_id); in encode_test() 422 if (jpeg_obj.job.encode_job.session_id == 0) { in encode_test() 428 jpeg_obj.job.job_type = JPEG_JOB_TYPE_ENCODE; in encode_test() 429 jpeg_obj.job.encode_job.src_index = (int32_t) i; in encode_test() 430 jpeg_obj.job.encode_job.dst_index = (int32_t) i; in encode_test() 431 jpeg_obj.job.encode_job.thumb_index = (uint32_t) i; in encode_test() 434 jpeg_obj.job.encode_job.dst_index = -1; in encode_test() 437 rc = jpeg_obj.ops.start_job(&jpeg_obj.job, &jpeg_obj.job_id[i]); in encode_test() [all …]
|
D | mm_jpegdec_test.c | 85 mm_jpeg_job_t job; member 236 mm_jpeg_decode_job_t *p_job_params = &p_obj->job.decode_job; in decode_init() 398 &jpeg_obj.job.decode_job.session_id); in decode_test() 399 if (jpeg_obj.job.decode_job.session_id == 0) { in decode_test() 405 jpeg_obj.job.job_type = JPEG_JOB_TYPE_DECODE; in decode_test() 413 rc = jpeg_obj.ops.start_job(&jpeg_obj.job, &jpeg_obj.job_id[i]); in decode_test() 432 jpeg_obj.ops.destroy_session(jpeg_obj.job.decode_job.session_id); in decode_test()
|
/device/huawei/angler/camera/QCamera2/stack/mm-jpeg-interface/test/ |
D | mm_jpeg_test.c | 116 mm_jpeg_job_t job; member 250 mm_jpeg_encode_job_t *p_job_params = &p_obj->job.encode_job; in encode_init() 421 &jpeg_obj.job.encode_job.session_id); in encode_test() 422 if (jpeg_obj.job.encode_job.session_id == 0) { in encode_test() 428 jpeg_obj.job.job_type = JPEG_JOB_TYPE_ENCODE; in encode_test() 429 jpeg_obj.job.encode_job.src_index = (int32_t) i; in encode_test() 430 jpeg_obj.job.encode_job.dst_index = (int32_t) i; in encode_test() 431 jpeg_obj.job.encode_job.thumb_index = (uint32_t) i; in encode_test() 434 jpeg_obj.job.encode_job.dst_index = -1; in encode_test() 437 rc = jpeg_obj.ops.start_job(&jpeg_obj.job, &jpeg_obj.job_id[i]); in encode_test() [all …]
|
D | mm_jpegdec_test.c | 85 mm_jpeg_job_t job; member 236 mm_jpeg_decode_job_t *p_job_params = &p_obj->job.decode_job; in decode_init() 398 &jpeg_obj.job.decode_job.session_id); in decode_test() 399 if (jpeg_obj.job.decode_job.session_id == 0) { in decode_test() 405 jpeg_obj.job.job_type = JPEG_JOB_TYPE_DECODE; in decode_test() 413 rc = jpeg_obj.ops.start_job(&jpeg_obj.job, &jpeg_obj.job_id[i]); in decode_test() 432 jpeg_obj.ops.destroy_session(jpeg_obj.job.decode_job.session_id); in decode_test()
|
/device/moto/shamu/camera/QCamera/stack/mm-camera-test/src/ |
D | mm_qcamera_snapshot.c | 236 mm_jpeg_job job; in encodeData() local 272 memset(&job, 0, sizeof(job)); in encodeData() 273 job.job_type = JPEG_JOB_TYPE_ENCODE; in encodeData() 274 job.encode_job.jpeg_cb = jpeg_encode_cb; in encodeData() 275 job.encode_job.userdata = (void*)pme; in encodeData() 276 job.encode_job.encode_parm.exif_data = NULL; in encodeData() 277 job.encode_job.encode_parm.exif_numEntries = 0; in encodeData() 278 job.encode_job.encode_parm.rotation = 0; in encodeData() 279 job.encode_job.encode_parm.buf_info.src_imgs.src_img_num = recvd_frame->num_bufs; in encodeData() 280 job.encode_job.encode_parm.rotation = 0; in encodeData() [all …]
|
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpegdec_interface.c | 62 static int32_t mm_jpegdec_intf_start_job(mm_jpeg_job_t* job, uint32_t* job_id) in mm_jpegdec_intf_start_job() argument 66 if (NULL == job || in mm_jpegdec_intf_start_job() 79 rc = mm_jpegdec_start_decode_job(g_jpegdec_obj, job, job_id); in mm_jpegdec_intf_start_job()
|
D | mm_jpeg_interface.c | 106 static int32_t mm_jpeg_intf_start_job(mm_jpeg_job_t* job, uint32_t* job_id) in mm_jpeg_intf_start_job() argument 110 if (NULL == job || in mm_jpeg_intf_start_job() 123 rc = mm_jpeg_start_job(g_jpeg_obj, job, job_id); in mm_jpeg_intf_start_job()
|
/device/huawei/angler/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpegdec_interface.c | 59 static int32_t mm_jpegdec_intf_start_job(mm_jpeg_job_t* job, uint32_t* job_id) in mm_jpegdec_intf_start_job() argument 63 if (NULL == job || in mm_jpegdec_intf_start_job() 76 rc = mm_jpegdec_start_decode_job(g_jpegdec_obj, job, job_id); in mm_jpegdec_intf_start_job()
|
D | mm_jpeg_interface.c | 108 static int32_t mm_jpeg_intf_start_job(mm_jpeg_job_t* job, uint32_t* job_id) in mm_jpeg_intf_start_job() argument 112 if (NULL == job || in mm_jpeg_intf_start_job() 125 rc = mm_jpeg_start_job(g_jpeg_obj, job, job_id); in mm_jpeg_intf_start_job()
|
/device/lge/bullhead/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpegdec_interface.c | 59 static int32_t mm_jpegdec_intf_start_job(mm_jpeg_job_t* job, uint32_t* job_id) in mm_jpegdec_intf_start_job() argument 63 if (NULL == job || in mm_jpegdec_intf_start_job() 76 rc = mm_jpegdec_start_decode_job(g_jpegdec_obj, job, job_id); in mm_jpegdec_intf_start_job()
|
D | mm_jpeg_interface.c | 108 static int32_t mm_jpeg_intf_start_job(mm_jpeg_job_t* job, uint32_t* job_id) in mm_jpeg_intf_start_job() argument 112 if (NULL == job || in mm_jpeg_intf_start_job() 125 rc = mm_jpeg_start_job(g_jpeg_obj, job, job_id); in mm_jpeg_intf_start_job()
|
/device/moto/shamu/camera/QCamera/stack/mm-jpeg-interface/inc/ |
D | mm_jpeg.h | 73 mm_jpeg_job job; /* job description */ member 144 mm_jpeg_job* job,
|