Lines Matching refs:encode_parm
282 * @encode_parm : param to be filled with encoding configuration
291 mm_jpeg_encode_params_t& encode_parm,
309 encode_parm.jpeg_cb = mJpegCB;
310 encode_parm.userdata = mJpegUserData;
317 encode_parm.encode_thumbnail = m_bThumbnailNeeded;
321 encode_parm.color_format = getColorfmtFromImgFmt(img_fmt);
324 encode_parm.quality = jpeg_settings->jpeg_quality;
325 if (encode_parm.quality <= 0) {
326 encode_parm.quality = 85;
330 encode_parm.thumb_quality = jpeg_settings->jpeg_thumb_quality;
335 encode_parm.num_src_bufs = 1;
336 encode_parm.src_main_buf[0].index = 0;
337 encode_parm.src_main_buf[0].buf_size = frame->input_buffer.frame_len;
338 encode_parm.src_main_buf[0].buf_vaddr = (uint8_t *) frame->input_buffer.buffer;
339 encode_parm.src_main_buf[0].fd = frame->input_buffer.fd;
340 encode_parm.src_main_buf[0].format = MM_JPEG_FMT_YUV;
341 encode_parm.src_main_buf[0].offset = main_offset;
346 encode_parm.num_tmb_bufs = 1;
347 encode_parm.src_thumb_buf[0] = encode_parm.src_main_buf[0];
352 encode_parm.num_dst_bufs = 1;
353 encode_parm.dest_buf[0].index = 0;
354 encode_parm.dest_buf[0].buf_size = (size_t)bufSize;
355 encode_parm.dest_buf[0].buf_vaddr = (uint8_t *)mOutputMem->getPtr(
357 encode_parm.dest_buf[0].fd = mOutputMem->getFd(
359 encode_parm.dest_buf[0].format = MM_JPEG_FMT_YUV;
360 encode_parm.dest_buf[0].offset = main_offset;
376 * @encode_parm : param to be filled with encoding configuration
385 mm_jpeg_encode_params_t& encode_parm,
393 encode_parm.jpeg_cb = mJpegCB;
394 encode_parm.userdata = mJpegUserData;
401 encode_parm.encode_thumbnail = m_bThumbnailNeeded;
406 encode_parm.color_format = getColorfmtFromImgFmt(img_fmt);
409 encode_parm.quality = jpeg_settings->jpeg_quality;
410 if (encode_parm.quality <= 0) {
411 encode_parm.quality = 85;
415 encode_parm.thumb_quality = jpeg_settings->jpeg_thumb_quality;
429 encode_parm.num_src_bufs = MIN(pStreamMem->getCnt(), MM_JPEG_MAX_BUF);
430 for (uint32_t i = 0; i < encode_parm.num_src_bufs; i++) {
432 encode_parm.src_main_buf[i].index = i;
439 encode_parm.src_main_buf[i].buf_size = (size_t)bufSize;
440 encode_parm.src_main_buf[i].buf_vaddr = (uint8_t *)pStreamMem->getPtr(i);
441 encode_parm.src_main_buf[i].fd = pStreamMem->getFd(i);
442 encode_parm.src_main_buf[i].format = MM_JPEG_FMT_YUV;
443 encode_parm.src_main_buf[i].offset = main_offset;
459 encode_parm.num_tmb_bufs = MIN(pStreamMem->getCnt(), MM_JPEG_MAX_BUF);
460 for (uint32_t i = 0; i < encode_parm.num_tmb_bufs; i++) {
462 encode_parm.src_thumb_buf[i].index = i;
469 encode_parm.src_thumb_buf[i].buf_size = (uint32_t)bufSize;
470 encode_parm.src_thumb_buf[i].buf_vaddr = (uint8_t *)pStreamMem->getPtr(i);
471 encode_parm.src_thumb_buf[i].fd = pStreamMem->getFd(i);
472 encode_parm.src_thumb_buf[i].format = MM_JPEG_FMT_YUV;
473 encode_parm.src_thumb_buf[i].offset = thumb_offset;
487 encode_parm.num_dst_bufs = 1;
488 encode_parm.dest_buf[0].index = 0;
489 encode_parm.dest_buf[0].buf_size = (size_t)bufSize;
490 encode_parm.dest_buf[0].buf_vaddr = (uint8_t *)mOutputMem->getPtr(
492 encode_parm.dest_buf[0].fd = mOutputMem->getFd(
494 encode_parm.dest_buf[0].format = MM_JPEG_FMT_YUV;
495 encode_parm.dest_buf[0].offset = main_offset;