Lines Matching refs:encode_parm

416 int32_t QCameraPostProcessor::getJpegEncodingConfig(mm_jpeg_encode_params_t& encode_parm,  in getJpegEncodingConfig()  argument
427 encode_parm.burst_mode = mUseJpegBurst; in getJpegEncodingConfig()
452 encode_parm.rotation = m_parent->mParameters.getJpegRotation(); in getJpegEncodingConfig()
455 encode_parm.main_dim.src_dim = src_dim; in getJpegEncodingConfig()
456 encode_parm.main_dim.dst_dim = dst_dim; in getJpegEncodingConfig()
460 encode_parm.jpeg_cb = mJpegCB; in getJpegEncodingConfig()
461 encode_parm.userdata = mJpegUserData; in getJpegEncodingConfig()
471 encode_parm.encode_thumbnail = m_bThumbnailNeeded; in getJpegEncodingConfig()
476 encode_parm.color_format = getColorfmtFromImgFmt(img_fmt); in getJpegEncodingConfig()
481 encode_parm.quality = val; in getJpegEncodingConfig()
484 encode_parm.quality = 85; in getJpegEncodingConfig()
497 encode_parm.num_src_bufs = pStreamMem->getCnt(); in getJpegEncodingConfig()
498 for (uint32_t i = 0; i < encode_parm.num_src_bufs; i++) { in getJpegEncodingConfig()
501 encode_parm.src_main_buf[i].index = i; in getJpegEncodingConfig()
502 encode_parm.src_main_buf[i].buf_size = stream_mem->size; in getJpegEncodingConfig()
503 encode_parm.src_main_buf[i].buf_vaddr = (uint8_t *)stream_mem->data; in getJpegEncodingConfig()
504 encode_parm.src_main_buf[i].fd = pStreamMem->getFd(i); in getJpegEncodingConfig()
505 encode_parm.src_main_buf[i].format = MM_JPEG_FMT_YUV; in getJpegEncodingConfig()
506 encode_parm.src_main_buf[i].offset = main_offset; in getJpegEncodingConfig()
513 m_parent->getThumbnailSize(encode_parm.thumb_dim.dst_dim); in getJpegEncodingConfig()
528 encode_parm.num_tmb_bufs = pStreamMem->getCnt(); in getJpegEncodingConfig()
532 encode_parm.src_thumb_buf[i].index = i; in getJpegEncodingConfig()
533 encode_parm.src_thumb_buf[i].buf_size = stream_mem->size; in getJpegEncodingConfig()
534 encode_parm.src_thumb_buf[i].buf_vaddr = (uint8_t *)stream_mem->data; in getJpegEncodingConfig()
535 encode_parm.src_thumb_buf[i].fd = pStreamMem->getFd(i); in getJpegEncodingConfig()
536 encode_parm.src_thumb_buf[i].format = MM_JPEG_FMT_YUV; in getJpegEncodingConfig()
537 encode_parm.src_thumb_buf[i].offset = thumb_offset; in getJpegEncodingConfig()
542 encode_parm.thumb_color_format = getColorfmtFromImgFmt(img_fmt_thumb); in getJpegEncodingConfig()
552 encode_parm.thumb_dim.src_dim = src_dim; in getJpegEncodingConfig()
555 encode_parm.thumb_rotation = jpeg_rotation; in getJpegEncodingConfig()
558 cam_dimension_t tmp_dim = encode_parm.thumb_dim.dst_dim; in getJpegEncodingConfig()
559 encode_parm.thumb_dim.dst_dim.width = tmp_dim.height; in getJpegEncodingConfig()
560 encode_parm.thumb_dim.dst_dim.height = tmp_dim.width; in getJpegEncodingConfig()
562 encode_parm.thumb_dim.crop = crop; in getJpegEncodingConfig()
565 encode_parm.num_dst_bufs = 1; in getJpegEncodingConfig()
567 encode_parm.num_dst_bufs = MAX_JPEG_BURST; in getJpegEncodingConfig()
569 encode_parm.get_memory = NULL; in getJpegEncodingConfig()
572 encode_parm.get_memory = getJpegMemory; in getJpegEncodingConfig()
574 encode_parm.num_dst_bufs = encode_parm.num_src_bufs; in getJpegEncodingConfig()
576 m_JpegOutputMemCount = (uint32_t)encode_parm.num_dst_bufs; in getJpegEncodingConfig()
596 encode_parm.dest_buf[i].index = i; in getJpegEncodingConfig()
597 encode_parm.dest_buf[i].buf_size = main_offset.frame_len; in getJpegEncodingConfig()
598 encode_parm.dest_buf[i].buf_vaddr = (uint8_t *)m_pJpegOutputMem[i]; in getJpegEncodingConfig()
599 encode_parm.dest_buf[i].fd = -1; in getJpegEncodingConfig()
600 encode_parm.dest_buf[i].format = MM_JPEG_FMT_YUV; in getJpegEncodingConfig()
601 encode_parm.dest_buf[i].offset = main_offset; in getJpegEncodingConfig()