roi_buf->buftype = MFCBUF_NORMAL;
roi_buf->size = buf_size->shared_buf;
if (s5p_mfc_mem_ion_alloc(dev, roi_buf)) {
- mfc_err_ctx("Allocating ROI buffer failed\n");
+ mfc_err_ctx("[ROI] Allocating ROI buffer failed\n");
return -ENOMEM;
}
- mfc_debug(2, "roi_buf.daddr = 0x%08llx, vaddr = 0x%p\n",
+ mfc_debug(2, "[ROI] roi_buf.daddr = 0x%08llx, vaddr = 0x%p\n",
roi_buf->daddr, roi_buf->vaddr);
memset(roi_buf->vaddr, 0, buf_size->shared_buf);
for (i = 0; i < MFC_MAX_EXTRA_BUF; i++) {
if (mfc_alloc_enc_roi_buffer(ctx, &enc->roi_buf[i]) < 0) {
- mfc_err_dev("Remapping shared mem buffer failed.\n");
+ mfc_err_dev("[ROI] Allocating remapping buffer[%d] failed\n", i);
return -ENOMEM;
}
}
reg |= (enc->roi_info[index].lower_qp << 8);
reg &= ~(0xFFFF << 16);
reg |= (enc->roi_info[index].upper_qp << 16);
- mfc_debug(3, "ROI: [%d] en %d, "\
+ mfc_debug(3, "[ROI] buffer[%d] en %d, "\
"QP lower %d upper %d reg %#x\n",
index, enc->roi_info[index].enable,
enc->roi_info[index].lower_qp,
enc->roi_info[index].upper_qp,
reg);
} else {
- mfc_debug(3, "ROI: [%d] not enabled\n", index);
+ mfc_debug(3, "[ROI] buffer[%d] is not enabled\n", index);
}
buf_ctrl->val = reg;
buf_ctrl->old_val2 = index;
if (buf_ctrl->id == V4L2_CID_MPEG_VIDEO_ROI_CONTROL) {
MFC_WRITEL(enc->roi_buf[buf_ctrl->old_val2].daddr,
S5P_FIMV_E_ROI_BUFFER_ADDR);
- mfc_debug(3, "ROI: buffer[%d] addr %#llx, QP val: %#x\n",
+ mfc_debug(3, "[ROI] buffer[%d] addr %#llx, QP val: %#x\n",
buf_ctrl->old_val2,
enc->roi_buf[buf_ctrl->old_val2].daddr,
buf_ctrl->val);
pInStr->RcRoiCtrl |=
(buf_ctrl->val & buf_ctrl->mask) << buf_ctrl->shft;
pInStr->RoiBufferAddr = enc->roi_buf[buf_ctrl->old_val2].daddr;
- mfc_debug(3, "NAL-Q: ROI: buffer[%d] addr %#llx, QP val: %#x\n",
+ mfc_debug(3, "NAL-Q:[ROI] buffer[%d] addr %#llx, QP val: %#x\n",
buf_ctrl->old_val2,
enc->roi_buf[buf_ctrl->old_val2].daddr,
buf_ctrl->val);
reg &= ~(0x1);
reg |= (p->roi_enable);
MFC_WRITEL(reg, S5P_FIMV_E_RC_ROI_CTRL);
- mfc_debug(3, "ROI: HEVC ROI enable\n");
+ mfc_debug(3, "[ROI] HEVC ROI enable\n");
if (MFC_FEATURE_SUPPORT(dev, dev->pdata->color_aspect_enc) && p->check_color_range) {
reg = MFC_READL(S5P_FIMV_E_VIDEO_SIGNAL_TYPE);