Lines Matching refs:encode_parm
463 * @encode_parm : param to be filled with encoding configuration
469 int32_t QCameraPostProcessor::getJpegEncodingConfig(mm_jpeg_encode_params_t& encode_parm,
480 encode_parm
505 encode_parm.rotation = m_parent->mParameters.getJpegRotation();
508 encode_parm.main_dim.src_dim = src_dim;
509 encode_parm.main_dim.dst_dim = dst_dim;
513 encode_parm.jpeg_cb = mJpegCB;
514 encode_parm.userdata = mJpegUserData;
532 encode_parm.encode_thumbnail = m_bThumbnailNeeded;
537 encode_parm.color_format = getColorfmtFromImgFmt(img_fmt);
542 encode_parm.quality = val;
545 encode_parm.quality = 85;
558 encode_parm.num_src_bufs = pStreamMem->getCnt();
559 for (uint32_t i = 0; i < encode_parm.num_src_bufs; i++) {
562 encode_parm.src_main_buf[i].index = i;
563 encode_parm.src_main_buf[i].buf_size = stream_mem->size;
564 encode_parm.src_main_buf[i].buf_vaddr = (uint8_t *)stream_mem->data;
565 encode_parm.src_main_buf[i].fd = pStreamMem->getFd(i);
566 encode_parm.src_main_buf[i].format = MM_JPEG_FMT_YUV;
567 encode_parm.src_main_buf[i].offset = main_offset;
572 encode_parm.num_src_bufs,
574 main_offset.frame_len, encode_parm.rotation,
579 m_parent->getThumbnailSize(encode_parm.thumb_dim.dst_dim);
588 cam_dimension_t tmp_dim = encode_parm.thumb_dim.dst_dim;
589 encode_parm.thumb_dim.dst_dim.width = tmp_dim.height;
590 encode_parm.thumb_dim.dst_dim.height = tmp_dim.width;
601 encode_parm.num_tmb_bufs = pStreamMem->getCnt();
605 encode_parm.src_thumb_buf[i].index = i;
606 encode_parm.src_thumb_buf[i].buf_size = stream_mem->size;
607 encode_parm.src_thumb_buf[i].buf_vaddr = (uint8_t *)stream_mem->data;
608 encode_parm.src_thumb_buf[i].fd = pStreamMem->getFd(i);
609 encode_parm.src_thumb_buf[i].format = MM_JPEG_FMT_YUV;
610 encode_parm.src_thumb_buf[i].offset = thumb_offset;
615 encode_parm.thumb_color_format = getColorfmtFromImgFmt(img_fmt_thumb);
625 encode_parm.thumb_dim.src_dim = src_dim;
628 encode_parm.thumb_rotation = m_parent->mParameters.getJpegRotation();
630 encode_parm.thumb_dim.crop = crop;
631 encode_parm.thumb_from_postview =
638 encode_parm.num_tmb_bufs,
640 thumb_offset.frame_len, encode_parm.thumb_rotation,
641 encode_parm.thumb_dim.src_dim.width,
642 encode_parm.thumb_dim.src_dim.height,
643 encode_parm.thumb_dim.dst_dim.width,
644 encode_parm.thumb_dim.dst_dim.height);
648 encode_parm.thumb_rotation = m_parent->mParameters.getJpegExifRotation();
651 encode_parm.num_dst_bufs = 1;
653 encode_parm.num_dst_bufs = MAX_JPEG_BURST;
655 encode_parm.get_memory = NULL;
658 encode_parm.get_memory = getJpegMemory;
659 encode_parm.put_memory = releaseJpegMemory;
661 encode_parm.num_dst_bufs = encode_parm.num_src_bufs;
663 m_JpegOutputMemCount = (uint32_t)encode_parm.num_dst_bufs;
683 encode_parm.dest_buf[i].index = i;
684 encode_parm.dest_buf[i].buf_size = main_offset.frame_len;
685 encode_parm.dest_buf[i].buf_vaddr = (uint8_t *)m_pJpegOutputMem[i];
686 encode_parm.dest_buf[i].fd = -1;
687 encode_parm.dest_buf[i].format = MM_JPEG_FMT_YUV;
688 encode_parm.dest_buf[i].offset = main_offset;