value = MFC_READL(buf_ctrl->flag_addr);
value &= ~(1 << 10);
MFC_WRITEL(value, buf_ctrl->flag_addr);
- mfc_err_ctx("Temporal SVC: layer count is invalid : %d\n",
+ mfc_err_ctx("[HIERARCHICAL] layer count is invalid : %d\n",
temporal_LC.temporal_layer_count);
return;
}
value &= ~(1 << 2);
MFC_WRITEL(value, buf_ctrl->flag_addr);
- mfc_debug(3, "Temporal SVC: layer count %d, E_PARAM_CHANGE %#x\n",
+ mfc_debug(3, "[HIERARCHICAL] layer count %d, E_PARAM_CHANGE %#x\n",
temporal_LC.temporal_layer_count & 0x7, value);
value = MFC_READL(S5P_FIMV_E_NUM_T_LAYER);
value &= ~(0x1 << 8);
value |= (p->hier_bitrate_ctrl & 0x1) << 8;
MFC_WRITEL(value, S5P_FIMV_E_NUM_T_LAYER);
- mfc_debug(3, "Temporal SVC: E_NUM_T_LAYER %#x\n", value);
+ mfc_debug(3, "[HIERARCHICAL] E_NUM_T_LAYER %#x\n", value);
for (i = 0; i < (temporal_LC.temporal_layer_count & 0x7); i++) {
- mfc_debug(3, "Temporal SVC: layer bitrate[%d] %d (FW ctrl: %d)\n",
+ mfc_debug(3, "[HIERARCHICAL] layer bitrate[%d] %d (FW ctrl: %d)\n",
i, temporal_LC.temporal_layer_bitrate[i], p->hier_bitrate_ctrl);
MFC_WRITEL(temporal_LC.temporal_layer_bitrate[i],
buf_ctrl->addr + i * 4);
}
MFC_WRITEL(value, S5P_FIMV_E_H264_HD_SVC_EXTENSION_0);
MFC_WRITEL(value2, S5P_FIMV_E_H264_HD_SVC_EXTENSION_1);
- mfc_debug(3, "Temporal SVC: EXTENSION0 %#x, EXTENSION1 %#x\n",
+ mfc_debug(3, "[HIERARCHICAL] EXTENSION0 %#x, EXTENSION1 %#x\n",
value, value2);
value = MFC_READL(buf_ctrl->flag_addr);
value |= (1 << 12);
MFC_WRITEL(value, buf_ctrl->flag_addr);
- mfc_debug(3, "Temporal SVC: E_PARAM_CHANGE %#x\n", value);
+ mfc_debug(3, "[HIERARCHICAL] E_PARAM_CHANGE %#x\n", value);
}
}
MFC_WRITEL(value, S5P_FIMV_E_H264_HD_SVC_EXTENSION_0);
MFC_WRITEL(value2, S5P_FIMV_E_H264_HD_SVC_EXTENSION_1);
p->codec.h264.base_priority = buf_ctrl->val;
- mfc_debug(3, "Temporal SVC: EXTENSION0 %#x, EXTENSION1 %#x\n",
+ mfc_debug(3, "[HIERARCHICAL] EXTENSION0 %#x, EXTENSION1 %#x\n",
value, value2);
}
}
((temporal_LC.temporal_layer_count > 3) && IS_VP8_ENC(ctx)) ||
((temporal_LC.temporal_layer_count > 3) && IS_VP9_ENC(ctx))) {
/* claer NUM_T_LAYER_CHANGE */
- mfc_err_ctx("Temporal SVC: layer count(%d) is invalid\n",
+ mfc_err_ctx("[HIERARCHICAL] layer count(%d) is invalid\n",
temporal_LC.temporal_layer_count);
return 0;
}
pInStr->ParamChange |= (1 << 10);
else
pInStr->ParamChange &= ~(1 << 10);
- mfc_debug(3, "Temporal SVC layer count %d\n",
+ mfc_debug(3, "[HIERARCHICAL] layer count %d\n",
temporal_LC.temporal_layer_count & 0x7);
pInStr->NumTLayer &= ~(0x7);
pInStr->NumTLayer &= ~(0x1 << 8);
pInStr->NumTLayer |= (p->hier_bitrate_ctrl & 0x1) << 8;
for (i = 0; i < (temporal_LC.temporal_layer_count & 0x7); i++) {
- mfc_debug(3, "Temporal SVC: layer bitrate[%d] %d (FW ctrl: %d)\n",
+ mfc_debug(3, "[HIERARCHICAL] layer bitrate[%d] %d (FW ctrl: %d)\n",
i, temporal_LC.temporal_layer_bitrate[i], p->hier_bitrate_ctrl);
pInStr->HierarchicalBitRateLayer[i] =
temporal_LC.temporal_layer_bitrate[i];
pInStr->H264HDSvcExtension1 |=
((p->codec.h264.base_priority & 0x3f) + i) << (6 * (i - 5));
}
- mfc_debug(3, "NAL-Q: Temporal SVC: EXTENSION0 %#x, EXTENSION1 %#x\n",
+ mfc_debug(3, "NAL-Q:[HIERARCHICAL] EXTENSION0 %#x, EXTENSION1 %#x\n",
pInStr->H264HDSvcExtension0, pInStr->H264HDSvcExtension1);
pInStr->ParamChange |= (1 << 12);
reg &= ~(0x1 << 8);
reg |= (p->hier_bitrate_ctrl & 0x1) << 8;
MFC_WRITEL(reg, S5P_FIMV_E_NUM_T_LAYER);
- mfc_debug(3, "Temporal SVC: hier_qp_enable %d, enable_ltr %d, "
+ mfc_debug(3, "[HIERARCHICAL] hier_qp_enable %d, enable_ltr %d, "
"num_hier_layer %d, max_layer %d, hier_ref_type %d, NUM_T_LAYER 0x%x\n",
p_264->hier_qp_enable, p_264->enable_ltr, p_264->num_hier_layer,
p->num_hier_max_layer, p_264->hier_ref_type, reg);
/* If hier_bitrate_ctrl is set to 1, this is meaningless */
MFC_WRITEL(p_264->hier_bit_layer[i],
S5P_FIMV_E_HIERARCHICAL_BIT_RATE_LAYER0 + i * 4);
- mfc_debug(3, "Temporal SVC: layer[%d] QP: %#x, bitrate: %d(FW ctrl: %d)\n",
+ mfc_debug(3, "[HIERARCHICAL] layer[%d] QP: %#x, bitrate: %d(FW ctrl: %d)\n",
i, p_264->hier_qp_layer[i],
p_264->hier_bit_layer[i], p->hier_bitrate_ctrl);
}
}
MFC_WRITEL(reg, S5P_FIMV_E_H264_HD_SVC_EXTENSION_0);
MFC_WRITEL(reg2, S5P_FIMV_E_H264_HD_SVC_EXTENSION_1);
- mfc_debug(3, "Temporal SVC: priority EXTENSION0: %#x, EXTENSION1: %#x\n",
+ mfc_debug(3, "[HIERARCHICAL] priority EXTENSION0: %#x, EXTENSION1: %#x\n",
reg, reg2);
}
}
reg &= ~(0x1 << 8);
reg |= (p->hier_bitrate_ctrl & 0x1) << 8;
MFC_WRITEL(reg, S5P_FIMV_E_NUM_T_LAYER);
- mfc_debug(3, "Temporal SVC: hier_qp_enable %d, num_hier_layer %d, NUM_T_LAYER 0x%x\n",
+ mfc_debug(3, "[HIERARCHICAL] hier_qp_enable %d, num_hier_layer %d, NUM_T_LAYER 0x%x\n",
p_vp8->hier_qp_enable, p_vp8->num_hier_layer, reg);
/* QP & Bitrate for each layer */
/* If hier_bitrate_ctrl is set to 1, this is meaningless */
MFC_WRITEL(p_vp8->hier_bit_layer[i],
S5P_FIMV_E_HIERARCHICAL_BIT_RATE_LAYER0 + i * 4);
- mfc_debug(3, "Temporal SVC: layer[%d] QP: %#x, bitrate: %#x(FW ctrl: %d)\n",
+ mfc_debug(3, "[HIERARCHICAL] layer[%d] QP: %#x, bitrate: %#x(FW ctrl: %d)\n",
i, p_vp8->hier_qp_layer[i],
p_vp8->hier_bit_layer[i], p->hier_bitrate_ctrl);
}
reg &= ~(0x1 << 8);
reg |= (p->hier_bitrate_ctrl & 0x1) << 8;
MFC_WRITEL(reg, S5P_FIMV_E_NUM_T_LAYER);
- mfc_debug(3, "Temporal SVC: hier_qp_enable %d, num_hier_layer %d, NUM_T_LAYER 0x%x\n",
+ mfc_debug(3, "[HIERARCHICAL] hier_qp_enable %d, num_hier_layer %d, NUM_T_LAYER 0x%x\n",
p_vp9->hier_qp_enable, p_vp9->num_hier_layer, reg);
/* QP & Bitrate for each layer */
/* If hier_bitrate_ctrl is set to 1, this is meaningless */
MFC_WRITEL(p_vp9->hier_bit_layer[i],
S5P_FIMV_E_HIERARCHICAL_BIT_RATE_LAYER0 + i * 4);
- mfc_debug(3, "Temporal SVC: layer[%d] QP: %#x, bitrate: %#x (FW ctrl: %d)\n",
+ mfc_debug(3, "[HIERARCHICAL] layer[%d] QP: %#x, bitrate: %#x (FW ctrl: %d)\n",
i, p_vp9->hier_qp_layer[i],
p_vp9->hier_bit_layer[i], p->hier_bitrate_ctrl);
}
reg &= ~(0x1 << 8);
reg |= (p->hier_bitrate_ctrl & 0x1) << 8;
MFC_WRITEL(reg, S5P_FIMV_E_NUM_T_LAYER);
- mfc_debug(2, "Temporal SVC: hier_qp_enable %d, enable_ltr %d, "
+ mfc_debug(3, "[HIERARCHICAL] hier_qp_enable %d, enable_ltr %d, "
"num_hier_layer %d, max_layer %d, hier_ref_type %d, NUM_T_LAYER 0x%x\n",
p_hevc->hier_qp_enable, p_hevc->enable_ltr, p_hevc->num_hier_layer,
p->num_hier_max_layer, p_hevc->hier_ref_type, reg);
S5P_FIMV_E_HIERARCHICAL_QP_LAYER0 + i * 4);
MFC_WRITEL(p_hevc->hier_bit_layer[i],
S5P_FIMV_E_HIERARCHICAL_BIT_RATE_LAYER0 + i * 4);
- mfc_debug(3, "Temporal SVC: layer[%d] QP: %#x, bitrate: %d(FW ctrl: %d)\n",
+ mfc_debug(3, "[HIERARCHICAL] layer[%d] QP: %#x, bitrate: %d(FW ctrl: %d)\n",
i, p_hevc->hier_qp_layer[i],
p_hevc->hier_bit_layer[i], p->hier_bitrate_ctrl);
}