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