Lines Matching refs:jpg_job
2312 mm_jpeg_job_t jpg_job; in encodeData() local
2488 memset(&jpg_job, 0, sizeof(mm_jpeg_job_t)); in encodeData()
2489 jpg_job.job_type = JPEG_JOB_TYPE_ENCODE; in encodeData()
2491 jpg_job.encode_job.session_id = mJpegSessionId; in encodeData()
2493 jpg_job.encode_job.session_id = mJpegSessionIdHalPP; in encodeData()
2495 jpg_job.encode_job.src_index = (int32_t)main_frame->buf_idx; in encodeData()
2496 jpg_job.encode_job.dst_index = 0; in encodeData()
2499 jpg_job.encode_job.dst_index = jpg_job.encode_job.src_index; in encodeData()
2501 jpg_job.encode_job.dst_index = -1; in encodeData()
2504 LOGD("jpeg session id:%d, reproc frame:%p", jpg_job.encode_job.session_id, in encodeData()
2507 if (jpg_job.encode_job.session_id == 0) { in encodeData()
2540 jpg_job.encode_job.work_buf.buf_size = camWorkMem->size; in encodeData()
2541 jpg_job.encode_job.work_buf.buf_vaddr = (uint8_t *)camWorkMem->data; in encodeData()
2542 jpg_job.encode_job.work_buf.fd = workMem->getFd(workBufIndex); in encodeData()
2631 jpg_job.encode_job.main_dim.src_dim = src_dim; in encodeData()
2632 jpg_job.encode_job.main_dim.dst_dim = dst_dim; in encodeData()
2633 jpg_job.encode_job.main_dim.crop = crop; in encodeData()
2643 jpg_job.encode_job.exif_info.exif_data = pJpegExifObj->getEntries(); in encodeData()
2644 jpg_job.encode_job.exif_info.numOfEntries = in encodeData()
2646 jpg_job.encode_job.exif_info.debug_data.sw_3a_version[0] = in encodeData()
2648 jpg_job.encode_job.exif_info.debug_data.sw_3a_version[1] = in encodeData()
2650 jpg_job.encode_job.exif_info.debug_data.sw_3a_version[2] = in encodeData()
2652 jpg_job.encode_job.exif_info.debug_data.sw_3a_version[3] = in encodeData()
2659 jpg_job.encode_job.rotation = jpeg_rotation; in encodeData()
2661 LOGH("jpeg rotation is set to %d", jpg_job.encode_job.rotation); in encodeData()
2665 m_parent->getThumbnailSize(jpg_job.encode_job.thumb_dim.dst_dim); in encodeData()
2676 cam_dimension_t tmp_dim = jpg_job.encode_job.thumb_dim.dst_dim; in encodeData()
2677 jpg_job.encode_job.thumb_dim.dst_dim.width = tmp_dim.height; in encodeData()
2678 jpg_job.encode_job.thumb_dim.dst_dim.height = tmp_dim.width; in encodeData()
2683 jpg_job.encode_job.thumb_dim.src_dim = src_dim; in encodeData()
2703 jpg_job.encode_job.thumb_dim.crop = crop; in encodeData()
2705 jpg_job.encode_job.thumb_index = thumb_frame->buf_idx; in encodeData()
2708 jpg_job.encode_job.thumb_index, in encodeData()
2709 jpg_job.encode_job.thumb_dim.src_dim.width, in encodeData()
2710 jpg_job.encode_job.thumb_dim.src_dim.height, in encodeData()
2711 jpg_job.encode_job.thumb_dim.dst_dim.width, in encodeData()
2712 jpg_job.encode_job.thumb_dim.dst_dim.height); in encodeData()
2716 jpg_job.encode_job.src_index, in encodeData()
2717 jpg_job.encode_job.main_dim.src_dim.width, in encodeData()
2718 jpg_job.encode_job.main_dim.src_dim.height, in encodeData()
2719 jpg_job.encode_job.main_dim.dst_dim.width, in encodeData()
2720 jpg_job.encode_job.main_dim.dst_dim.height); in encodeData()
2729 jpg_job.encode_job.p_metadata = jpeg_job_data->metadata; in encodeData()
2732 jpg_job.encode_job.hal_version = CAM_HAL_V1; in encodeData()
2734 jpg_job.encode_job.cam_exif_params = m_parent->mExifParams; in encodeData()
2735 jpg_job.encode_job.cam_exif_params.debug_params = in encodeData()
2737 if (!jpg_job.encode_job.cam_exif_params.debug_params) { in encodeData()
2742 jpg_job.encode_job.mobicat_mask = m_parent->mParameters.getMobicatMask(); in encodeData()
2745 if (NULL != jpg_job.encode_job.p_metadata && (jpg_job.encode_job.mobicat_mask > 0)) { in encodeData()
2748 memcpy(jpg_job.encode_job.cam_exif_params.debug_params, in encodeData()
2752 jpg_job.encode_job.p_metadata->is_mobicat_aec_params_valid = in encodeData()
2753 jpg_job.encode_job.cam_exif_params.cam_3a_params_valid; in encodeData()
2755 if (jpg_job.encode_job.cam_exif_params.cam_3a_params_valid) { in encodeData()
2756 jpg_job.encode_job.p_metadata->mobicat_aec_params = in encodeData()
2757 jpg_job.encode_job.cam_exif_params.cam_3a_params; in encodeData()
2761 jpg_job.encode_job.p_metadata->is_statsdebug_ae_params_valid = in encodeData()
2762 jpg_job.encode_job.cam_exif_params.debug_params->ae_debug_params_valid; in encodeData()
2763 jpg_job.encode_job.p_metadata->is_statsdebug_awb_params_valid = in encodeData()
2764 jpg_job.encode_job.cam_exif_params.debug_params->awb_debug_params_valid; in encodeData()
2765 jpg_job.encode_job.p_metadata->is_statsdebug_af_params_valid = in encodeData()
2766 jpg_job.encode_job.cam_exif_params.debug_params->af_debug_params_valid; in encodeData()
2767 jpg_job.encode_job.p_metadata->is_statsdebug_asd_params_valid = in encodeData()
2768 jpg_job.encode_job.cam_exif_params.debug_params->asd_debug_params_valid; in encodeData()
2769 jpg_job.encode_job.p_metadata->is_statsdebug_stats_params_valid = in encodeData()
2770 jpg_job.encode_job.cam_exif_params.debug_params->stats_debug_params_valid; in encodeData()
2771 jpg_job.encode_job.p_metadata->is_statsdebug_bestats_params_valid = in encodeData()
2772 jpg_job.encode_job.cam_exif_params.debug_params->bestats_debug_params_valid; in encodeData()
2773 jpg_job.encode_job.p_metadata->is_statsdebug_bhist_params_valid = in encodeData()
2774 jpg_job.encode_job.cam_exif_params.debug_params->bhist_debug_params_valid; in encodeData()
2775 jpg_job.encode_job.p_metadata->is_statsdebug_3a_tuning_params_valid = in encodeData()
2776 jpg_job.encode_job.cam_exif_params.debug_params->q3a_tuning_debug_params_valid; in encodeData()
2778 if (jpg_job.encode_job.cam_exif_params.debug_params->ae_debug_params_valid) { in encodeData()
2779 jpg_job.encode_job.p_metadata->statsdebug_ae_data = in encodeData()
2780 jpg_job.encode_job.cam_exif_params.debug_params->ae_debug_params; in encodeData()
2782 if (jpg_job.encode_job.cam_exif_params.debug_params->awb_debug_params_valid) { in encodeData()
2783 jpg_job.encode_job.p_metadata->statsdebug_awb_data = in encodeData()
2784 jpg_job.encode_job.cam_exif_params.debug_params->awb_debug_params; in encodeData()
2786 if (jpg_job.encode_job.cam_exif_params.debug_params->af_debug_params_valid) { in encodeData()
2787 jpg_job.encode_job.p_metadata->statsdebug_af_data = in encodeData()
2788 jpg_job.encode_job.cam_exif_params.debug_params->af_debug_params; in encodeData()
2790 if (jpg_job.encode_job.cam_exif_params.debug_params->asd_debug_params_valid) { in encodeData()
2791 jpg_job.encode_job.p_metadata->statsdebug_asd_data = in encodeData()
2792 jpg_job.encode_job.cam_exif_params.debug_params->asd_debug_params; in encodeData()
2794 if (jpg_job.encode_job.cam_exif_params.debug_params->stats_debug_params_valid) { in encodeData()
2795 jpg_job.encode_job.p_metadata->statsdebug_stats_buffer_data = in encodeData()
2796 jpg_job.encode_job.cam_exif_params.debug_params->stats_debug_params; in encodeData()
2798 if (jpg_job.encode_job.cam_exif_params.debug_params->bestats_debug_params_valid) { in encodeData()
2799 jpg_job.encode_job.p_metadata->statsdebug_bestats_buffer_data = in encodeData()
2800 jpg_job.encode_job.cam_exif_params.debug_params->bestats_debug_params; in encodeData()
2802 if (jpg_job.encode_job.cam_exif_params.debug_params->bhist_debug_params_valid) { in encodeData()
2803 jpg_job.encode_job.p_metadata->statsdebug_bhist_data = in encodeData()
2804 jpg_job.encode_job.cam_exif_params.debug_params->bhist_debug_params; in encodeData()
2806 if (jpg_job.encode_job.cam_exif_params.debug_params->q3a_tuning_debug_params_valid) { in encodeData()
2807 jpg_job.encode_job.p_metadata->statsdebug_3a_tuning_data = in encodeData()
2808 jpg_job.encode_job.cam_exif_params.debug_params->q3a_tuning_debug_params; in encodeData()
2816 jpg_job.encode_job.qtable_set[i] = 0; in encodeData()
2823 jpg_job.encode_job.multi_image_info.type = MM_JPEG_TYPE_MPO; in encodeData()
2825 jpg_job.encode_job.multi_image_info.is_primary = TRUE; in encodeData()
2828 jpg_job.encode_job.multi_image_info.is_primary = FALSE; in encodeData()
2831 jpg_job.encode_job.multi_image_info.num_of_images = 2; in encodeData()
2834 jpg_job.encode_job.multi_image_info.type = MM_JPEG_TYPE_JPEG; in encodeData()
2835 jpg_job.encode_job.multi_image_info.is_primary = FALSE; in encodeData()
2836 jpg_job.encode_job.multi_image_info.num_of_images = 1; in encodeData()
2847 ret = mJpegHandle.start_job(&jpg_job, &jobId); in encodeData()
2848 if (jpg_job.encode_job.cam_exif_params.debug_params) { in encodeData()
2849 free(jpg_job.encode_job.cam_exif_params.debug_params); in encodeData()