/*static u32 vf_buf_num_used;*/
static u32 canvas_base = 128;
#ifdef NV21
- int canvas_num = 2; /*NV21*/
+static int canvas_num = 2; /*NV21*/
#else
- int canvas_num = 3;
+static int canvas_num = 3;
#endif
#if 0
return 0;
}
-int vavs_dec_status(struct vdec_s *vdec, struct vdec_info *vstatus)
+static int vavs_dec_status(struct vdec_s *vdec, struct vdec_info *vstatus)
{
struct vdec_avs_hw_s *hw =
(struct vdec_avs_hw_s *)vdec->private;
return 0;
}
-int vavs_set_isreset(struct vdec_s *vdec, int isreset)
+static int vavs_set_isreset(struct vdec_s *vdec, int isreset)
{
struct vdec_avs_hw_s *hw =
(struct vdec_avs_hw_s *)vdec->private;
return 0;
}
-void vavs_recover(struct vdec_avs_hw_s *hw)
+static void vavs_recover(struct vdec_avs_hw_s *hw)
{
vavs_canvas_init(hw);
#define get_buffer_mode(hevc) buffer_mode
-DEFINE_SPINLOCK(lock);
+static DEFINE_SPINLOCK(lock);
struct task_struct *h265_task = NULL;
#undef DEBUG_REG
#ifdef DEBUG_REG
} /*hevc_stru_t */;
#ifdef AGAIN_HAS_THRESHOLD
-u32 again_threshold;
+static u32 again_threshold;
#endif
#ifdef SEND_LMEM_WITH_RPM
#define get_lmem_params(hevc, ladr) \
#define AGAIN_HAS_THRESHOLD
#ifdef AGAIN_HAS_THRESHOLD
-u32 again_threshold;
+static u32 again_threshold;
#endif
/*
nv_order = VIDTYPE_VIU_NV12;
}
- pb_skip = (hw->pics[hw->refs[0]].offset ==
- hw->pics[hw->refs[1]].offset);
if (hw->i_only) {
pb_skip = 1;
}
static int canvas_get_virt_addr(struct pic_check_mgr_t *pic,
struct vframe_s *vf)
{
- int phy_y_addr, phy_uv_addr;
+ unsigned long phy_y_addr, phy_uv_addr;
void *vaddr_y, *vaddr_uv;
if ((vf->canvas0Addr == vf->canvas1Addr) &&
vaddr_uv = codec_mm_phys_to_virt(phy_uv_addr);
if (((!vaddr_y) || (!vaddr_uv)) && ((!phy_y_addr) || (!phy_uv_addr))) {
- dbg_print(FC_ERROR, "%s, y_addr %p(0x%x), uv_addr %p(0x%x)\n",
+ dbg_print(FC_ERROR, "%s, y_addr %p(0x%lx), uv_addr %p(0x%lx)\n",
__func__, vaddr_y, phy_y_addr, vaddr_uv, phy_uv_addr);
return -1;
}
mgr->pic_dump.num++;
dbg_print(0, "\n\nError: %08d: %08x %08x != %08x %08x\n\n",
mgr->frame_cnt, crc_y, crc_uv, comp_crc_y, comp_crc_uv);
- do_yuv_dump(mgr, vf);
+ if (!(vf->type & VIDTYPE_SCATTER))
+ do_yuv_dump(mgr, vf);
if (fc_debug & FC_ERR_CRC_BLOCK_MODE)
mgr->err_crc_block = 1;
mgr->usr_cmp_result = -mgr->frame_cnt;