Lines Matching refs:encode_parm

258         mm_jpeg_encode_params_t& encode_parm,  in getFWKJpegEncodeConfig()  argument
268 encode_parm.jpeg_cb = mJpegCB; in getFWKJpegEncodeConfig()
269 encode_parm.userdata = mJpegUserData; in getFWKJpegEncodeConfig()
276 encode_parm.encode_thumbnail = m_bThumbnailNeeded; in getFWKJpegEncodeConfig()
280 encode_parm.color_format = getColorfmtFromImgFmt(img_fmt); in getFWKJpegEncodeConfig()
283 encode_parm.quality = jpeg_settings->jpeg_quality; in getFWKJpegEncodeConfig()
284 if (encode_parm.quality <= 0) { in getFWKJpegEncodeConfig()
285 encode_parm.quality = 85; in getFWKJpegEncodeConfig()
289 encode_parm.thumb_quality = jpeg_settings->jpeg_thumb_quality; in getFWKJpegEncodeConfig()
294 encode_parm.num_src_bufs = 1; in getFWKJpegEncodeConfig()
295 encode_parm.src_main_buf[0].index = 0; in getFWKJpegEncodeConfig()
296 encode_parm.src_main_buf[0].buf_size = frame->input_buffer.frame_len; in getFWKJpegEncodeConfig()
297 encode_parm.src_main_buf[0].buf_vaddr = (uint8_t *) frame->input_buffer.buffer; in getFWKJpegEncodeConfig()
298 encode_parm.src_main_buf[0].fd = frame->input_buffer.fd; in getFWKJpegEncodeConfig()
299 encode_parm.src_main_buf[0].format = MM_JPEG_FMT_YUV; in getFWKJpegEncodeConfig()
300 encode_parm.src_main_buf[0].offset = main_offset; in getFWKJpegEncodeConfig()
305 encode_parm.num_tmb_bufs = 1; in getFWKJpegEncodeConfig()
306 encode_parm.src_thumb_buf[0] = encode_parm.src_main_buf[0]; in getFWKJpegEncodeConfig()
311 encode_parm.num_dst_bufs = 1; in getFWKJpegEncodeConfig()
312 encode_parm.dest_buf[0].index = 0; in getFWKJpegEncodeConfig()
313 encode_parm.dest_buf[0].buf_size = mJpegMem->getSize( in getFWKJpegEncodeConfig()
315 encode_parm.dest_buf[0].buf_vaddr = (uint8_t *)mJpegMem->getPtr( in getFWKJpegEncodeConfig()
317 encode_parm.dest_buf[0].fd = mJpegMem->getFd( in getFWKJpegEncodeConfig()
319 encode_parm.dest_buf[0].format = MM_JPEG_FMT_YUV; in getFWKJpegEncodeConfig()
320 encode_parm.dest_buf[0].offset = main_offset; in getFWKJpegEncodeConfig()
341 mm_jpeg_encode_params_t& encode_parm, in getJpegEncodeConfig() argument
348 encode_parm.jpeg_cb = mJpegCB; in getJpegEncodeConfig()
349 encode_parm.userdata = mJpegUserData; in getJpegEncodeConfig()
356 encode_parm.encode_thumbnail = m_bThumbnailNeeded; in getJpegEncodeConfig()
361 encode_parm.color_format = getColorfmtFromImgFmt(img_fmt); in getJpegEncodeConfig()
364 encode_parm.jpeg_orientation = jpeg_settings->jpeg_orientation; in getJpegEncodeConfig()
367 encode_parm.quality = jpeg_settings->jpeg_quality; in getJpegEncodeConfig()
368 if (encode_parm.quality <= 0) { in getJpegEncodeConfig()
369 encode_parm.quality = 85; in getJpegEncodeConfig()
373 encode_parm.thumb_quality = jpeg_settings->jpeg_thumb_quality; in getJpegEncodeConfig()
387 encode_parm.num_src_bufs = MIN(pStreamMem->getCnt(), MM_JPEG_MAX_BUF); in getJpegEncodeConfig()
388 for (uint32_t i = 0; i < encode_parm.num_src_bufs; i++) { in getJpegEncodeConfig()
390 encode_parm.src_main_buf[i].index = i; in getJpegEncodeConfig()
391 encode_parm.src_main_buf[i].buf_size = pStreamMem->getSize(i); in getJpegEncodeConfig()
392 encode_parm.src_main_buf[i].buf_vaddr = (uint8_t *)pStreamMem->getPtr(i); in getJpegEncodeConfig()
393 encode_parm.src_main_buf[i].fd = pStreamMem->getFd(i); in getJpegEncodeConfig()
394 encode_parm.src_main_buf[i].format = MM_JPEG_FMT_YUV; in getJpegEncodeConfig()
395 encode_parm.src_main_buf[i].offset = main_offset; in getJpegEncodeConfig()
411 encode_parm.num_tmb_bufs = MIN(pStreamMem->getCnt(), MM_JPEG_MAX_BUF); in getJpegEncodeConfig()
412 for (size_t i = 0; i < encode_parm.num_tmb_bufs; i++) { in getJpegEncodeConfig()
414 encode_parm.src_thumb_buf[i].index = i; in getJpegEncodeConfig()
415 encode_parm.src_thumb_buf[i].buf_size = pStreamMem->getSize(i); in getJpegEncodeConfig()
416 encode_parm.src_thumb_buf[i].buf_vaddr = (uint8_t *)pStreamMem->getPtr(i); in getJpegEncodeConfig()
417 encode_parm.src_thumb_buf[i].fd = pStreamMem->getFd(i); in getJpegEncodeConfig()
418 encode_parm.src_thumb_buf[i].format = MM_JPEG_FMT_YUV; in getJpegEncodeConfig()
419 encode_parm.src_thumb_buf[i].offset = thumb_offset; in getJpegEncodeConfig()
426 encode_parm.num_dst_bufs = 1; in getJpegEncodeConfig()
427 encode_parm.dest_buf[0].index = 0; in getJpegEncodeConfig()
428 encode_parm.dest_buf[0].buf_size = mJpegMem->getSize( in getJpegEncodeConfig()
430 encode_parm.dest_buf[0].buf_vaddr = (uint8_t *)mJpegMem->getPtr( in getJpegEncodeConfig()
432 encode_parm.dest_buf[0].fd = mJpegMem->getFd( in getJpegEncodeConfig()
434 encode_parm.dest_buf[0].format = MM_JPEG_FMT_YUV; in getJpegEncodeConfig()
435 encode_parm.dest_buf[0].offset = main_offset; in getJpegEncodeConfig()