Lines Matching refs:pv_buf
1153 void *pv_buf; in ihevcd_allocate_static_bufs() local
1159 void (*pf_aligned_free)(void *pv_mem_ctxt, void *pv_buf); in ihevcd_allocate_static_bufs()
1170 pv_buf = pf_aligned_alloc(pv_mem_ctxt, 128, sizeof(iv_obj_t)); in ihevcd_allocate_static_bufs()
1171 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_static_bufs()
1172 memset(pv_buf, 0, sizeof(iv_obj_t)); in ihevcd_allocate_static_bufs()
1173 *pps_codec_obj = (iv_obj_t *)pv_buf; in ihevcd_allocate_static_bufs()
1178 pv_buf = pf_aligned_alloc(pv_mem_ctxt, 128, sizeof(codec_t)); in ihevcd_allocate_static_bufs()
1179 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_static_bufs()
1180 (*pps_codec_obj)->pv_codec_handle = (codec_t *)pv_buf; in ihevcd_allocate_static_bufs()
1181 ps_codec = (codec_t *)pv_buf; in ihevcd_allocate_static_bufs()
1207 pv_buf = pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_static_bufs()
1208 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_static_bufs()
1209 memset(pv_buf, 0, size); in ihevcd_allocate_static_bufs()
1215 (UWORD8 *)pv_buf + (i * handle_size); in ihevcd_allocate_static_bufs()
1221 pv_buf = ps_codec->pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_static_bufs()
1222 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_static_bufs()
1223 memset(pv_buf, 0, size); in ihevcd_allocate_static_bufs()
1230 (UWORD8 *)pv_buf + (2 * i * mutex_size); in ihevcd_allocate_static_bufs()
1232 (UWORD8 *)pv_buf + ((2 * i + 1) * mutex_size); in ihevcd_allocate_static_bufs()
1242 pv_buf = ps_codec->pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_static_bufs()
1243 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_static_bufs()
1244 memset(pv_buf, 0, size); in ihevcd_allocate_static_bufs()
1251 (UWORD8 *)pv_buf + (2 * i * cond_size); in ihevcd_allocate_static_bufs()
1253 (UWORD8 *)pv_buf + ((2 * i + 1) * cond_size); in ihevcd_allocate_static_bufs()
1266 pv_buf = pf_aligned_alloc(pv_mem_ctxt, 128, size + 16); //Alloc extra for parse optimization in ihevcd_allocate_static_bufs()
1267 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_static_bufs()
1268 memset(pv_buf, 0, size + 16); in ihevcd_allocate_static_bufs()
1269 ps_codec->pu1_bitsbuf_static = pv_buf; in ihevcd_allocate_static_bufs()
1274 pv_buf = pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_static_bufs()
1275 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_static_bufs()
1276 memset(pv_buf, 0, size); in ihevcd_allocate_static_bufs()
1277 ps_codec->pv_disp_buf_mgr = pv_buf; in ihevcd_allocate_static_bufs()
1281 pv_buf = pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_static_bufs()
1282 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_static_bufs()
1283 memset(pv_buf, 0, size); in ihevcd_allocate_static_bufs()
1284 ps_codec->pv_dpb_mgr = pv_buf; in ihevcd_allocate_static_bufs()
1288 pv_buf = pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_static_bufs()
1289 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_static_bufs()
1290 memset(pv_buf, 0, size); in ihevcd_allocate_static_bufs()
1291 ps_codec->pv_pic_buf_mgr = pv_buf; in ihevcd_allocate_static_bufs()
1295 pv_buf = pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_static_bufs()
1296 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_static_bufs()
1297 memset(pv_buf, 0, size); in ihevcd_allocate_static_bufs()
1298 ps_codec->pv_mv_buf_mgr = pv_buf; in ihevcd_allocate_static_bufs()
1301 pv_buf = pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_static_bufs()
1302 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_static_bufs()
1303 memset(pv_buf, 0, size); in ihevcd_allocate_static_bufs()
1304 ps_codec->ps_vps_base = pv_buf; in ihevcd_allocate_static_bufs()
1308 pv_buf = pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_static_bufs()
1309 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_static_bufs()
1310 memset(pv_buf, 0, size); in ihevcd_allocate_static_bufs()
1311 ps_codec->ps_sps_base = pv_buf; in ihevcd_allocate_static_bufs()
1315 pv_buf = pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_static_bufs()
1316 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_static_bufs()
1317 memset(pv_buf, 0, size); in ihevcd_allocate_static_bufs()
1318 ps_codec->ps_pps_base = pv_buf; in ihevcd_allocate_static_bufs()
1322 pv_buf = pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_static_bufs()
1323 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_static_bufs()
1324 memset(pv_buf, 0, size); in ihevcd_allocate_static_bufs()
1325 ps_codec->ps_slice_hdr_base = (slice_header_t *)pv_buf; in ihevcd_allocate_static_bufs()
1331 pv_buf = pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_static_bufs()
1332 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_static_bufs()
1333 memset(pv_buf, 0, size); in ihevcd_allocate_static_bufs()
1334 ps_codec->pi2_scaling_mat = (WORD16 *)pv_buf; in ihevcd_allocate_static_bufs()
1342 pv_buf = pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_static_bufs()
1343 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_static_bufs()
1344 memset(pv_buf, 0, size); in ihevcd_allocate_static_bufs()
1345 ps_codec->pv_pic_buf_base = (UWORD8 *)pv_buf; in ihevcd_allocate_static_bufs()
1475 void (*pf_aligned_free)(void *pv_mem_ctxt, void *pv_buf); in ihevcd_free_static_bufs()
1580 void *pv_buf; in ihevcd_allocate_dynamic_bufs() local
1601 pv_buf = ps_codec->pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_dynamic_bufs()
1602 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_dynamic_bufs()
1603 memset(pv_buf, 0, size); in ihevcd_allocate_dynamic_bufs()
1604 ps_codec->ps_tile = (tile_t *)pv_buf; in ihevcd_allocate_dynamic_bufs()
1620 pv_buf = ps_codec->pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_dynamic_bufs()
1621 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_dynamic_bufs()
1622 memset(pv_buf, 0, size); in ihevcd_allocate_dynamic_bufs()
1623 ps_codec->pi4_entry_ofst = (WORD32 *)pv_buf; in ihevcd_allocate_dynamic_bufs()
1629 pv_buf = ps_codec->pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_dynamic_bufs()
1630 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_dynamic_bufs()
1631 memset(pv_buf, 0, size); in ihevcd_allocate_dynamic_bufs()
1632 ps_codec->s_parse.pu4_skip_cu_top = (UWORD32 *)pv_buf; in ihevcd_allocate_dynamic_bufs()
1638 pv_buf = ps_codec->pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_dynamic_bufs()
1639 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_dynamic_bufs()
1640 memset(pv_buf, 0, size); in ihevcd_allocate_dynamic_bufs()
1641 ps_codec->s_parse.pu4_ct_depth_top = (UWORD32 *)pv_buf; in ihevcd_allocate_dynamic_bufs()
1647 pv_buf = ps_codec->pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_dynamic_bufs()
1648 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_dynamic_bufs()
1649 memset(pv_buf, 0, size); in ihevcd_allocate_dynamic_bufs()
1650 ps_codec->pu1_pic_intra_flag = (UWORD8 *)pv_buf; in ihevcd_allocate_dynamic_bufs()
1658 pv_buf = ps_codec->pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_dynamic_bufs()
1659 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_dynamic_bufs()
1660 memset(pv_buf, 1, size); in ihevcd_allocate_dynamic_bufs()
1663 ps_codec->pu1_pic_no_loop_filter_flag_base = pv_buf; in ihevcd_allocate_dynamic_bufs()
1665 ps_codec->pu1_pic_no_loop_filter_flag = (UWORD8 *)pv_buf + loop_filter_strd + 1; in ihevcd_allocate_dynamic_bufs()
1701 pv_buf = ps_codec->pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_dynamic_bufs()
1702 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_dynamic_bufs()
1703 memset(pv_buf, 0, size); in ihevcd_allocate_dynamic_bufs()
1704 ps_codec->pv_proc_jobq_buf = pv_buf; in ihevcd_allocate_dynamic_bufs()
1709 pv_buf = ps_codec->pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_dynamic_bufs()
1710 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_dynamic_bufs()
1711 memset(pv_buf, 0, size); in ihevcd_allocate_dynamic_bufs()
1712 ps_codec->pu1_parse_map = (UWORD8 *)pv_buf; in ihevcd_allocate_dynamic_bufs()
1716 pv_buf = ps_codec->pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_dynamic_bufs()
1717 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_dynamic_bufs()
1718 memset(pv_buf, 0, size); in ihevcd_allocate_dynamic_bufs()
1719 ps_codec->pu1_proc_map = (UWORD8 *)pv_buf; in ihevcd_allocate_dynamic_bufs()
1725 pv_buf = ps_codec->pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_dynamic_bufs()
1726 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_dynamic_bufs()
1727 memset(pv_buf, 0, size); in ihevcd_allocate_dynamic_bufs()
1731 UWORD32 *pu4_buf = (UWORD32 *)pv_buf; in ihevcd_allocate_dynamic_bufs()
1869 UWORD8 *pu1_buf = (UWORD8 *)pv_buf; in ihevcd_allocate_dynamic_bufs()
1974 pv_buf = ps_codec->pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_dynamic_bufs()
1975 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_dynamic_bufs()
1976 memset(pv_buf, 0, size); in ihevcd_allocate_dynamic_bufs()
1978 ps_codec->pu1_tile_idx_base = pv_buf; in ihevcd_allocate_dynamic_bufs()
1981 … ps_codec->as_process[i].pu1_tile_idx = (UWORD16 *)pv_buf + wd / MIN_CTB_SIZE /* Offset 1 row */; in ihevcd_allocate_dynamic_bufs()
1992 pv_buf = ps_codec->pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_dynamic_bufs()
1993 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_dynamic_bufs()
1994 memset(pv_buf, 0, size); in ihevcd_allocate_dynamic_bufs()
1996 ps_codec->s_parse.ps_pic_sao = (sao_t *)pv_buf; in ihevcd_allocate_dynamic_bufs()
1997 ps_codec->s_parse.s_sao_ctxt.ps_pic_sao = (sao_t *)pv_buf; in ihevcd_allocate_dynamic_bufs()
2009 …pv_buf = ps_codec->pf_aligned_alloc(pv_mem_ctxt, 128, size + 16); //Alloc extra for parse optimiza… in ihevcd_allocate_dynamic_bufs()
2010 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_dynamic_bufs()
2011 memset(pv_buf, 0, size + 16); in ihevcd_allocate_dynamic_bufs()
2012 ps_codec->pu1_bitsbuf_dynamic = pv_buf; in ihevcd_allocate_dynamic_bufs()
2017 pv_buf = ps_codec->pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_dynamic_bufs()
2018 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_dynamic_bufs()
2019 memset(pv_buf, 0, size); in ihevcd_allocate_dynamic_bufs()
2020 ps_codec->pv_tu_data = pv_buf; in ihevcd_allocate_dynamic_bufs()
2046 pv_buf = ps_codec->pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_dynamic_bufs()
2047 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_dynamic_bufs()
2048 memset(pv_buf, 0, size); in ihevcd_allocate_dynamic_bufs()
2050 ps_codec->pv_mv_bank_buf_base = pv_buf; in ihevcd_allocate_dynamic_bufs()
2066 pv_buf = ps_codec->pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_dynamic_bufs()
2067 RETURN_IF((NULL == pv_buf), IV_FAIL); in ihevcd_allocate_dynamic_bufs()
2068 memset(pv_buf, 0, size); in ihevcd_allocate_dynamic_bufs()
2071 ps_codec->pu1_ref_pic_buf_base = (UWORD8 *)pv_buf; in ihevcd_allocate_dynamic_bufs()
2202 void (*pf_aligned_free)(void *pv_mem_ctxt, void *pv_buf); in ihevcd_create()