Home | History | Annotate | Download | only in HAL

Lines Matching refs:encode_parm

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