pic->canvas_config[1].block_mode =
blkmode;
pic->canvas_config[1].endian = hevc->is_used_v4l ? 0 : 7;
+
+ ATRACE_COUNTER("set canvas0 addr", pic->canvas_config[0].phy_addr);
+ hevc_print(hevc, H265_DEBUG_PIC_STRUCT,"%s(canvas0 addr:0x%x)\n",
+ __func__, pic->canvas_config[0].phy_addr);
+#else
+ ATRACE_COUNTER("set canvas0 addr", spec2canvas(pic));
+ hevc_print(hevc, H265_DEBUG_PIC_STRUCT,"%s(canvas0 addr:0x%x)\n",
+ __func__, spec2canvas(pic));
#endif
} else {
if (!hevc->mmu_enable) {
canvas_w, canvas_h,
CANVAS_ADDR_NOWRAP, blkmode, hevc->is_used_v4l ? 0 : 7);
}
+ ATRACE_COUNTER("set canvas0 addr", spec2canvas(pic));
+ hevc_print(hevc, H265_DEBUG_PIC_STRUCT,"%s(canvas0 addr:0x%x)\n",
+ __func__, spec2canvas(pic));
}
#else
if (vdec->parallel_dec == 1) {
canvas_config_ex(pic->uv_canvas_index, pic->mc_u_v_adr,
canvas_w, canvas_h,
CANVAS_ADDR_NOWRAP, blkmode, hevc->is_used_v4l ? 0 : 7);
+
+ ATRACE_COUNTER("set canvas0 addr", spec2canvas(pic));
+ hevc_print(hevc, H265_DEBUG_PIC_STRUCT,"%s(canvas0 addr:0x%x)\n",
+ __func__, spec2canvas(pic));
#endif
}
if (kfifo_get(&hevc->display_q, &vf)) {
struct vframe_s *next_vf;
- if (get_dbg_flag(hevc) & H265_DEBUG_PIC_STRUCT)
+
+ ATRACE_COUNTER(__func__, (long)vf);
+#ifdef MULTI_INSTANCE_SUPPORT
+ ATRACE_COUNTER("get canvas0 addr", vf->canvas0_config[0].phy_addr);
+#else
+ ATRACE_COUNTER("get canvas0 addr", vf->canvas0Addr);
+#endif
+
+ if (get_dbg_flag(hevc) & H265_DEBUG_PIC_STRUCT) {
hevc_print(hevc, 0,
"%s(vf 0x%p type %d index 0x%x poc %d/%d) pts(%d,%d) dur %d\n",
__func__, vf, vf->type, vf->index,
get_pic_poc(hevc, (vf->index >> 8) & 0xff),
vf->pts, vf->pts_us64,
vf->duration);
+#ifdef MULTI_INSTANCE_SUPPORT
+ hevc_print(hevc, 0, "get canvas0 addr:0x%x\n", vf->canvas0_config[0].phy_addr);
+#else
+ hevc_print(hevc, 0, "get canvas0 addr:0x%x\n", vf->canvas0Addr);
+#endif
+ }
#ifdef CONFIG_AMLOGIC_MEDIA_ENHANCEMENT_DOLBYVISION
if (get_dbg_flag(hevc) & H265_DEBUG_DV) {
struct PIC_s *pic = hevc->m_PIC[vf->index & 0xff];
return;
if (!vf)
return;
+
+ ATRACE_COUNTER(__func__, (long)vf);
+#ifdef MULTI_INSTANCE_SUPPORT
+ ATRACE_COUNTER("put canvas0 addr", vf->canvas0_config[0].phy_addr);
+#else
+ ATRACE_COUNTER("put canvas0 addr", vf->canvas0Addr);
+#endif
+
index_top = vf->index & 0xff;
index_bot = (vf->index >> 8) & 0xff;
if (get_dbg_flag(hevc) & H265_DEBUG_PIC_STRUCT)
hevc_print(hevc, 0,
- "%s(type %d index 0x%x)\n",
- __func__, vf->type, vf->index);
+ "%s(vf 0x%p type %d index 0x%x put canvas0 addr:0x%x)\n",
+ __func__, vf, vf->type, vf->index
+#ifdef MULTI_INSTANCE_SUPPORT
+ , vf->canvas0_config[0].phy_addr
+#else
+ , vf->canvas0Addr
+#endif
+ );
hevc->vf_put_count++;
kfifo_put(&hevc->newframe_q, (const struct vframe_s *)vf);
spin_lock_irqsave(&lock, flags);