if (ctx->state == MFCINST_RUNNING) {
s5p_mfc_change_state(ctx, MFCINST_GOT_INST);
- mfc_info_ctx("Enc resolution is changed\n");
+ mfc_info_ctx("[DRC] Enc resolution is changed\n");
}
mfc_info_ctx("Enc input pixelformat : %s\n", ctx->src_fmt->name);
ret = s5p_mfc_run_dec_last_frames(ctx);
break;
case MFCINST_RES_CHANGE_END:
- mfc_debug(2, "Finished remaining frames after resolution change.\n");
+ mfc_debug(2, "[DRC] Finished remaining frames after resolution change\n");
ctx->capture_state = QUEUE_FREE;
- mfc_debug(2, "Will re-init the codec.\n");
+ mfc_debug(2, "[DRC] Will re-init the codec\n");
ret = s5p_mfc_run_dec_init(ctx);
break;
case MFCINST_DPB_FLUSHING:
s5p_mfc_change_state(ctx, MFCINST_RES_CHANGE_FLUSH);
if (res_change) {
- mfc_debug(2, "Resolution change set to %d\n", res_change);
+ mfc_debug(2, "[DRC] Resolution change set to %d\n", res_change);
s5p_mfc_change_state(ctx, MFCINST_RES_CHANGE_INIT);
ctx->wait_state = WAIT_DECODING;
- mfc_debug(2, "Decoding waiting! : %d\n", ctx->wait_state);
+ mfc_debug(7, "[DRC] Decoding waiting! : %d\n", ctx->wait_state);
return;
}
if (need_dpb_change || need_scratch_change)
- mfc_debug(2, "Interframe resolution change is not supported\n");
+ mfc_debug(2, "[DRC] Interframe resolution change is not supported\n");
if (s5p_mfc_is_queue_count_same(&ctx->buf_queue_lock, &ctx->src_buf_queue, 0) &&
s5p_mfc_is_queue_count_same(&ctx->buf_queue_lock, &ctx->dst_buf_queue, 0)) {
if (ctx->state == MFCINST_RES_CHANGE_FLUSH) {
struct mfc_timestamp *temp_ts = NULL;
- mfc_debug(2, "Last frame received after resolution change.\n");
+ mfc_debug(2, "[DRC] Last frame received after resolution change.\n");
mfc_handle_frame_all_extracted(ctx);
s5p_mfc_change_state(ctx, MFCINST_RES_CHANGE_END);
/* If there is no display frame after resolution change,
s5p_mfc_clear_roi_enable(dev);
if (!ctx->codec_buffer_allocated) {
- mfc_debug(2, "previous codec buffer is exist\n");
+ mfc_debug(2, "[DRC] previous codec buffer is exist\n");
if (dev->has_mmcache && dev->mmcache.is_on_status)
s5p_mfc_invalidate_mmcache(dev);
dec->dynamic_used, pOutStr->UsedDpbFlagLower);
if (ctx->state == MFCINST_RES_CHANGE_INIT) {
- mfc_debug(2, "NAL Q: return until NAL-Q stopped in try_run\n");
+ mfc_debug(2, "NAL Q:[DRC] return until NAL-Q stopped in try_run\n");
goto leave_handle_frame;
}
if (res_change) {
- mfc_debug(2, "NAL Q: Resolution change set to %d\n", res_change);
+ mfc_debug(2, "NAL Q:[DRC] Resolution change set to %d\n", res_change);
s5p_mfc_change_state(ctx, MFCINST_RES_CHANGE_INIT);
ctx->wait_state = WAIT_DECODING;
dev->nal_q_handle->nal_q_exception = 1;
- mfc_info_ctx("NAL Q: nal_q_exception is set (res change)\n");
+ mfc_info_ctx("NAL Q:[DRC] nal_q_exception is set (res change)\n");
goto leave_handle_frame;
}
if (need_empty_dpb) {
goto leave_handle_frame;
}
if (need_dpb_change || need_scratch_change) {
- mfc_debug(2, "NAL Q: Interframe resolution change is not supported\n");
+ mfc_debug(2, "NAL Q:[DRC] Interframe resolution change is not supported\n");
dev->nal_q_handle->nal_q_exception = 1;
- mfc_info_ctx("NAL Q: nal_q_exception is set (interframe res change)\n");
+ mfc_info_ctx("NAL Q:[DRC] nal_q_exception is set (interframe res change)\n");
goto leave_handle_frame;
}
if (is_interlaced) {