cr->c.top = dec->black_bar.top;
cr->c.width = dec->black_bar.width;
cr->c.height = dec->black_bar.height;
- mfc_debug(2, "black bar info: l=%d t=%d w=%d h=%d\n",
+ mfc_debug(2, "[BLACKBAR] Cropping info: l=%d t=%d w=%d h=%d\n",
dec->black_bar.left,
dec->black_bar.top,
dec->black_bar.width,
reg &= ~(0x1 << S5P_FIMV_D_NAL_START_OPT_BLACK_BAR_SHIFT);
reg |= ((dec->detect_black_bar & 0x1) << S5P_FIMV_D_NAL_START_OPT_BLACK_BAR_SHIFT);
MFC_WRITEL(reg, S5P_FIMV_D_NAL_START_OPTIONS);
- mfc_debug(3, "black bar detect set: %#x\n", reg);
+ mfc_debug(3, "[BLACKBAR] black bar detect set: %#x\n", reg);
MFC_WRITEL(dec->dynamic_set, S5P_FIMV_D_DYNAMIC_DPB_FLAG_LOWER);
MFC_WRITEL(0x0, S5P_FIMV_D_DYNAMIC_DPB_FLAG_UPPER);
struct s5p_mfc_dec *dec = ctx->dec_priv;
black_bar_info = s5p_mfc_get_black_bar_detection();
- mfc_debug(3, "black bar type: %#x\n", black_bar_info);
+ mfc_debug(3, "[BLACKBAR] type: %#x\n", black_bar_info);
if (black_bar_info == S5P_FIMV_DISP_STATUS_BLACK_BAR) {
new_black_bar.left = s5p_mfc_get_black_bar_pos_x();
new_black_bar.width = ctx->img_width;
new_black_bar.height = ctx->img_height;
} else {
- mfc_err_ctx("Not supported black bar type: %#x\n", black_bar_info);
+ mfc_err_ctx("[BLACKBAR] Not supported type: %#x\n", black_bar_info);
dec->black_bar_updated = 0;
return;
}
(new_black_bar.top == dec->black_bar.top) &&
(new_black_bar.width == dec->black_bar.width) &&
(new_black_bar.height == dec->black_bar.height)) {
- mfc_debug(3, "black bar info was not changed\n");
+ mfc_debug(4, "[BLACKBAR] information was not changed\n");
dec->black_bar_updated = 0;
return;
}
if (dec->black_bar_updated) {
ref_mb->vb.reserved2 |= (1 << 5);
- mfc_debug(3, "black bar detected\n");
+ mfc_debug(3, "[BLACKBAR] black bar detected\n");
}
if (ctx->src_fmt->mem_planes == 1) {
return 0;
}
if (dec->detect_black_bar) {
- mfc_debug(2, "black bar detection is enabled\n");
+ mfc_debug(2, "[BLACKBAR] black bar detection is enabled\n");
return 0;
}
/* NAL-Q doesn't support fixed byte(slice mode), CBR_VT(rc mode) */