Lines Matching refs:encode_parm
334 int32_t QCameraPostProcessor::getJpegEncodingConfig(mm_jpeg_encode_params_t& encode_parm, in getJpegEncodingConfig() argument
345 encode_parm.burst_mode = mUseJpegBurst; in getJpegEncodingConfig()
370 encode_parm.rotation = m_parent->getJpegRotation(); in getJpegEncodingConfig()
373 encode_parm.main_dim.src_dim = src_dim; in getJpegEncodingConfig()
374 encode_parm.main_dim.dst_dim = dst_dim; in getJpegEncodingConfig()
376 encode_parm.jpeg_cb = mJpegCB; in getJpegEncodingConfig()
377 encode_parm.userdata = mJpegUserData; in getJpegEncodingConfig()
387 encode_parm.encode_thumbnail = m_bThumbnailNeeded; in getJpegEncodingConfig()
392 encode_parm.color_format = getColorfmtFromImgFmt(img_fmt); in getJpegEncodingConfig()
395 encode_parm.quality = m_parent->getJpegQuality(); in getJpegEncodingConfig()
396 if (encode_parm.quality <= 0) { in getJpegEncodingConfig()
397 encode_parm.quality = 85; in getJpegEncodingConfig()
410 encode_parm.num_src_bufs = pStreamMem->getCnt(); in getJpegEncodingConfig()
411 for (uint32_t i = 0; i < encode_parm.num_src_bufs; i++) { in getJpegEncodingConfig()
414 encode_parm.src_main_buf[i].index = i; in getJpegEncodingConfig()
415 encode_parm.src_main_buf[i].buf_size = stream_mem->size; in getJpegEncodingConfig()
416 encode_parm.src_main_buf[i].buf_vaddr = (uint8_t *)stream_mem->data; in getJpegEncodingConfig()
417 encode_parm.src_main_buf[i].fd = pStreamMem->getFd(i); in getJpegEncodingConfig()
418 encode_parm.src_main_buf[i].format = MM_JPEG_FMT_YUV; in getJpegEncodingConfig()
419 encode_parm.src_main_buf[i].offset = main_offset; in getJpegEncodingConfig()
426 m_parent->getThumbnailSize(encode_parm.thumb_dim.dst_dim); in getJpegEncodingConfig()
441 encode_parm.num_tmb_bufs = pStreamMem->getCnt(); in getJpegEncodingConfig()
445 encode_parm.src_thumb_buf[i].index = i; in getJpegEncodingConfig()
446 encode_parm.src_thumb_buf[i].buf_size = stream_mem->size; in getJpegEncodingConfig()
447 encode_parm.src_thumb_buf[i].buf_vaddr = (uint8_t *)stream_mem->data; in getJpegEncodingConfig()
448 encode_parm.src_thumb_buf[i].fd = pStreamMem->getFd(i); in getJpegEncodingConfig()
449 encode_parm.src_thumb_buf[i].format = MM_JPEG_FMT_YUV; in getJpegEncodingConfig()
450 encode_parm.src_thumb_buf[i].offset = thumb_offset; in getJpegEncodingConfig()
455 encode_parm.thumb_color_format = getColorfmtFromImgFmt(img_fmt_thumb); in getJpegEncodingConfig()
465 encode_parm.thumb_dim.src_dim = src_dim; in getJpegEncodingConfig()
468 encode_parm.thumb_rotation = jpeg_rotation; in getJpegEncodingConfig()
471 cam_dimension_t tmp_dim = encode_parm.thumb_dim.dst_dim; in getJpegEncodingConfig()
472 encode_parm.thumb_dim.dst_dim.width = tmp_dim.height; in getJpegEncodingConfig()
473 encode_parm.thumb_dim.dst_dim.height = tmp_dim.width; in getJpegEncodingConfig()
475 encode_parm.thumb_dim.crop = crop; in getJpegEncodingConfig()
478 encode_parm.num_dst_bufs = 1; in getJpegEncodingConfig()
480 encode_parm.num_dst_bufs = MAX_JPEG_BURST; in getJpegEncodingConfig()
482 encode_parm.get_memory = NULL; in getJpegEncodingConfig()
485 encode_parm.get_memory = getJpegMemory; in getJpegEncodingConfig()
487 encode_parm.num_dst_bufs = encode_parm.num_src_bufs; in getJpegEncodingConfig()
489 m_JpegOutputMemCount = encode_parm.num_dst_bufs; in getJpegEncodingConfig()
509 encode_parm.dest_buf[i].index = i; in getJpegEncodingConfig()
510 encode_parm.dest_buf[i].buf_size = main_offset.frame_len; in getJpegEncodingConfig()
511 encode_parm.dest_buf[i].buf_vaddr = (uint8_t *)m_pJpegOutputMem[i]; in getJpegEncodingConfig()
512 encode_parm.dest_buf[i].fd = 0; in getJpegEncodingConfig()
513 encode_parm.dest_buf[i].format = MM_JPEG_FMT_YUV; in getJpegEncodingConfig()
514 encode_parm.dest_buf[i].offset = main_offset; in getJpegEncodingConfig()