Home | History | Annotate | Download | only in HAL3

Lines Matching refs:encode_parm

316  *   @encode_parm   : param to be filled with encoding configuration
325 mm_jpeg_encode_params_t& encode_parm,
343 encode_parm.jpeg_cb = mJpegCB;
344 encode_parm.userdata = mJpegUserData;
351 encode_parm.encode_thumbnail = m_bThumbnailNeeded;
355 encode_parm.color_format = getColorfmtFromImgFmt(img_fmt);
358 encode_parm.quality = jpeg_settings->jpeg_quality;
359 if (encode_parm.quality <= 0) {
360 encode_parm.quality = 85;
364 encode_parm.thumb_quality = jpeg_settings->jpeg_thumb_quality;
369 encode_parm.num_src_bufs = 1;
370 encode_parm.src_main_buf[0].index = 0;
371 encode_parm.src_main_buf[0].buf_size = frame->input_buffer.frame_len;
372 encode_parm.src_main_buf[0].buf_vaddr = (uint8_t *) frame->input_buffer.buffer;
373 encode_parm.src_main_buf[0].fd = frame->input_buffer.fd;
374 encode_parm.src_main_buf[0].format = MM_JPEG_FMT_YUV;
375 encode_parm.src_main_buf[0].offset = main_offset;
380 encode_parm.num_tmb_bufs = 1;
381 encode_parm.src_thumb_buf[0] = encode_parm.src_main_buf[0];
386 encode_parm.num_dst_bufs = 1;
387 encode_parm.dest_buf[0].index = 0;
388 encode_parm.dest_buf[0].buf_size = (size_t)bufSize;
389 encode_parm.dest_buf[0].buf_vaddr = (uint8_t *)mOutputMem->getPtr(
391 encode_parm.dest_buf[0].fd = mOutputMem->getFd(
393 encode_parm.dest_buf[0].format = MM_JPEG_FMT_YUV;
394 encode_parm.dest_buf[0].offset = main_offset;
409 * @encode_parm : param to be filled with encoding configuration
418 mm_jpeg_encode_params_t& encode_parm,
426 encode_parm.jpeg_cb = mJpegCB;
427 encode_parm.userdata = mJpegUserData;
434 encode_parm.encode_thumbnail = m_bThumbnailNeeded;
439 encode_parm.color_format = getColorfmtFromImgFmt(img_fmt);
442 encode_parm.quality = jpeg_settings->jpeg_quality;
443 if (encode_parm.quality <= 0) {
444 encode_parm.quality = 85;
448 encode_parm.thumb_quality = jpeg_settings->jpeg_thumb_quality;
462 encode_parm.num_src_bufs = MIN(pStreamMem->getCnt(), MM_JPEG_MAX_BUF);
463 for (uint32_t i = 0; i < encode_parm.num_src_bufs; i++) {
465 encode_parm.src_main_buf[i].index = i;
472 encode_parm.src_main_buf[i].buf_size = (size_t)bufSize;
473 encode_parm.src_main_buf[i].buf_vaddr = (uint8_t *)pStreamMem->getPtr(i);
474 encode_parm.src_main_buf[i].fd = pStreamMem->getFd(i);
475 encode_parm.src_main_buf[i].format = MM_JPEG_FMT_YUV;
476 encode_parm.src_main_buf[i].offset = main_offset;
492 encode_parm.num_tmb_bufs = MIN(pStreamMem->getCnt(), MM_JPEG_MAX_BUF);
493 for (uint32_t i = 0; i < encode_parm.num_tmb_bufs; i++) {
495 encode_parm.src_thumb_buf[i].index = i;
502 encode_parm.src_thumb_buf[i].buf_size = (uint32_t)bufSize;
503 encode_parm.src_thumb_buf[i].buf_vaddr = (uint8_t *)pStreamMem->getPtr(i);
504 encode_parm.src_thumb_buf[i].fd = pStreamMem->getFd(i);
505 encode_parm.src_thumb_buf[i].format = MM_JPEG_FMT_YUV;
506 encode_parm.src_thumb_buf[i].offset = thumb_offset;
520 encode_parm.num_dst_bufs = 1;
521 encode_parm.dest_buf[0].index = 0;
522 encode_parm.dest_buf[0].buf_size = (size_t)bufSize;
523 encode_parm.dest_buf[0].buf_vaddr = (uint8_t *)mOutputMem->getPtr(
525 encode_parm.dest_buf[0].fd = mOutputMem->getFd(
527 encode_parm.dest_buf[0].format = MM_JPEG_FMT_YUV;
528 encode_parm.dest_buf[0].offset = main_offset;