Home | History | Annotate | Download | only in encoder

Lines Matching full:ps_mem_rec

291             iv_mem_rec_t *ps_mem_rec = NULL;
329 if (NULL == ps_ip->s_ive_ip.ps_mem_rec)
347 ps_mem_rec = ps_ip->s_ive_ip.ps_mem_rec;
350 if (ps_mem_rec[i].u4_size != sizeof(iv_mem_rec_t))
366 iv_mem_rec_t *ps_mem_rec = NULL;
547 if (NULL == ps_ip->s_ive_ip.ps_mem_rec)
564 ps_mem_rec = ps_ip->s_ive_ip.ps_mem_rec;
569 if (ps_mem_rec[i].u4_size != sizeof(iv_mem_rec_t))
578 if (ps_mem_rec[i].pv_base == NULL)
592 start[0] = (ps_mem_rec[0].pv_base);
593 end[0] = ((UWORD8 *) ps_mem_rec[0].pv_base)
594 + ps_mem_rec[0].u4_mem_size - 1;
599 start[i] = (ps_mem_rec[i].pv_base);
600 end[i] = ((UWORD8 *) ps_mem_rec[i].pv_base)
601 + ps_mem_rec[i].u4_mem_size - 1;
654 s_ip.s_ive_ip.ps_mem_rec = s_mem_rec_ittiam_api;
686 if (ps_mem_rec[i].u4_mem_size
697 if (ps_mem_rec[i].u4_mem_alignment
708 if (ps_mem_rec[i].e_mem_type
713 - ps_mem_rec[i].e_mem_type;
715 if ((ps_mem_rec[i].e_mem_type
775 iv_mem_rec_t *ps_mem_rec = NULL;
795 if (NULL == ps_ip->s_ive_ip.ps_mem_rec)
803 ps_mem_rec = ps_ip->s_ive_ip.ps_mem_rec;
808 if (ps_mem_rec[i].u4_size != sizeof(iv_mem_rec_t))
2709 iv_mem_rec_t *ps_mem_rec_base, *ps_mem_rec;
2725 ps_mem_rec_base = ps_ip->s_ive_ip.ps_mem_rec;
2760 ps_mem_rec = ps_mem_rec_base;
2763 ps_mem_rec->u4_mem_alignment = 128;
2764 ps_mem_rec->e_mem_type = IV_EXTERNAL_CACHEABLE_PERSISTENT_MEM;
2765 ps_mem_rec++;
2771 ps_mem_rec = &ps_mem_rec_base[MEM_REC_IV_OBJ];
2773 ps_mem_rec->u4_mem_size = sizeof(iv_obj_t);
2775 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_IV_OBJ, ps_mem_rec->u4_mem_size);
2780 ps_mem_rec = &ps_mem_rec_base[MEM_REC_CODEC];
2782 ps_mem_rec->u4_mem_size = sizeof(codec_t);
2784 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_CODEC, ps_mem_rec->u4_mem_size);
2789 ps_mem_rec = &ps_mem_rec_base[MEM_REC_CABAC];
2791 ps_mem_rec->u4_mem_size = sizeof(cabac_ctxt_t);
2793 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_CABAC, ps_mem_rec->u4_mem_size);
2798 ps_mem_rec = &ps_mem_rec_base[MEM_REC_CABAC_MB_INFO];
2800 ps_mem_rec->u4_mem_size = ((max_mb_cols + 1) + 1)
2803 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_CABAC_MB_INFO, ps_mem_rec->u4_mem_size);
2820 ps_mem_rec = &ps_mem_rec_base[MEM_REC_ENTROPY];
2850 ps_mem_rec->u4_mem_size = total_size;
2852 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_ENTROPY, ps_mem_rec->u4_mem_size);
2867 ps_mem_rec = &ps_mem_rec_base[MEM_REC_MB_COEFF_DATA];
2887 ps_mem_rec->u4_mem_size = size;
2889 ps_mem_rec->u4_mem_size);
2897 ps_mem_rec = &ps_mem_rec_base[MEM_REC_MB_HEADER_DATA];
2917 ps_mem_rec->u4_mem_size = size;
2919 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_MB_HEADER_DATA, ps_mem_rec->u4_mem_size);
2934 ps_mem_rec = &ps_mem_rec_base[MEM_REC_MVBANK];
2945 ps_mem_rec->u4_mem_size = ih264_buf_mgr_size();
2959 ps_mem_rec->u4_mem_size += BUF_MGR_MAX_CNT * sizeof(mv_buf_t);
2961 ps_mem_rec->u4_mem_size += (num_ref_frames + num_reorder_frames
2965 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_MVBANK, ps_mem_rec->u4_mem_size);
2975 ps_mem_rec = &ps_mem_rec_base[MEM_REC_MVBITS];
2997 ps_mem_rec->u4_mem_size = u4_max_srch_range;
2999 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_MVBITS, ps_mem_rec->u4_mem_size);
3004 ps_mem_rec = &ps_mem_rec_base[MEM_REC_SPS];
3006 ps_mem_rec->u4_mem_size = MAX_SPS_CNT * sizeof(sps_t);
3008 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_SPS, ps_mem_rec->u4_mem_size);
3013 ps_mem_rec = &ps_mem_rec_base[MEM_REC_PPS];
3015 ps_mem_rec->u4_mem_size = MAX_PPS_CNT * sizeof(pps_t);
3017 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_PPS, ps_mem_rec->u4_mem_size);
3022 ps_mem_rec = &ps_mem_rec_base[MEM_REC_SLICE_HDR];
3024 ps_mem_rec->u4_mem_size = MAX_CTXT_SETS * MAX_SLICE_HDR_CNT
3027 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_SLICE_HDR, ps_mem_rec->u4_mem_size);
3032 ps_mem_rec = &ps_mem_rec_base[MEM_REC_AIR_MAP];
3047 ps_mem_rec->u4_mem_size = total_size;
3049 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_AIR_MAP, ps_mem_rec->u4_mem_size);
3057 ps_mem_rec = &ps_mem_rec_base[MEM_REC_SLICE_MAP];
3070 ps_mem_rec->u4_mem_size = total_size;
3072 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_SLICE_MAP, ps_mem_rec->u4_mem_size);
3077 ps_mem_rec = &ps_mem_rec_base[MEM_REC_THREAD_HANDLE];
3081 ps_mem_rec->u4_mem_size = MAX_PROCESS_THREADS * handle_size;
3083 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_THREAD_HANDLE, ps_mem_rec->u4_mem_size);
3088 ps_mem_rec = &ps_mem_rec_base[MEM_REC_CTL_MUTEX];
3090 ps_mem_rec->u4_mem_size = ithread_get_mutex_lock_size();
3092 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_CTL_MUTEX, ps_mem_rec->u4_mem_size);
3097 ps_mem_rec = &ps_mem_rec_base[MEM_REC_ENTROPY_MUTEX];
3099 ps_mem_rec->u4_mem_size = ithread_get_mutex_lock_size();
3101 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_ENTROPY_MUTEX, ps_mem_rec->u4_mem_size);
3106 ps_mem_rec = &ps_mem_rec_base[MEM_REC_PROC_JOBQ];
3114 ps_mem_rec->u4_mem_size = job_queue_size;
3116 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_PROC_JOBQ, ps_mem_rec->u4_mem_size);
3121 ps_mem_rec = &ps_mem_rec_base[MEM_REC_ENTROPY_JOBQ];
3129 ps_mem_rec->u4_mem_size = job_queue_size;
3131 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_ENTROPY_JOBQ, ps_mem_rec->u4_mem_size);
3140 ps_mem_rec = &ps_mem_rec_base[MEM_REC_PROC_MAP];
3153 ps_mem_rec->u4_mem_size = total_size;
3155 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_PROC_MAP, ps_mem_rec->u4_mem_size);
3161 ps_mem_rec = &ps_mem_rec_base[MEM_REC_DBLK_MAP];
3176 ps_mem_rec->u4_mem_size = total_size;
3178 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_DBLK_MAP, ps_mem_rec->u4_mem_size);
3184 ps_mem_rec = &ps_mem_rec_base[MEM_REC_ME_MAP];
3198 ps_mem_rec->u4_mem_size = total_size;
3200 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_ME_MAP, ps_mem_rec->u4_mem_size);
3205 ps_mem_rec = &ps_mem_rec_base[MEM_REC_DPB_MGR];
3207 ps_mem_rec->u4_mem_size = sizeof(dpb_mgr_t);
3209 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_DPB_MGR, ps_mem_rec->u4_mem_size);
3242 ps_mem_rec = &ps_mem_rec_base[MEM_REC_PROC_SCRATCH];
3290 ps_mem_rec->u4_mem_size = total_size;
3292 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_PROC_SCRATCH, ps_mem_rec->u4_mem_size);
3305 ps_mem_rec = &ps_mem_rec_base[MEM_REC_QUANT_PARAM];
3329 ps_mem_rec->u4_mem_size = total_size;
3331 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_QUANT_PARAM, ps_mem_rec->u4_mem_size);
3347 ps_mem_rec = &ps_mem_rec_base[MEM_REC_TOP_ROW_SYN_INFO];
3368 ps_mem_rec->u4_mem_size = total_size;
3370 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_TOP_ROW_SYN_INFO, ps_mem_rec->u4_mem_size);
3386 ps_mem_rec = &ps_mem_rec_base[MEM_REC_BS_QP];
3413 ps_mem_rec->u4_mem_size = total_size;
3415 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_BS_QP, ps_mem_rec->u4_mem_size);
3420 ps_mem_rec = &ps_mem_rec_base[MEM_REC_INP_PIC];
3422 ps_mem_rec->u4_mem_size = ih264_buf_mgr_size();
3424 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_INP_PIC, ps_mem_rec->u4_mem_size);
3429 ps_mem_rec = &ps_mem_rec_base[MEM_REC_OUT];
3431 ps_mem_rec->u4_mem_size = ih264_buf_mgr_size();
3433 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_OUT, ps_mem_rec->u4_mem_size);
3438 ps_mem_rec = &ps_mem_rec_base[MEM_REC_CSC];
3442 ps_mem_rec->u4_mem_size = MAX_CTXT_SETS
3448 ps_mem_rec->u4_mem_size += max_wd_luma;
3450 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_CSC, ps_mem_rec->u4_mem_size);
3466 ps_mem_rec = &ps_mem_rec_base[MEM_REC_REF_PIC];
3468 ps_mem_rec->u4_mem_size = ih264_buf_mgr_size();
3469 ps_mem_rec->u4_mem_size += BUF_MGR_MAX_CNT * sizeof(pic_buf_t);
3489 ps_mem_rec->u4_mem_size += HPEL_PLANES_CNT
3495 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_REF_PIC, ps_mem_rec->u4_mem_size);
3500 ps_mem_rec = &ps_mem_rec_base[MEM_REC_BACKUP];
3502 ps_mem_rec->u4_mem_size = MEM_REC_CNT * sizeof(iv_mem_rec_t);
3504 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_BACKUP, ps_mem_rec->u4_mem_size);
3510 ps_mem_rec = &ps_mem_rec_base[MEM_REC_MB_INFO_NMB];
3512 ps_mem_rec->u4_mem_size = MAX_PROCESS_CTXT * max_mb_cols *
3516 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_MB_INFO_NMB, ps_mem_rec->u4_mem_size);
3521 ps_mem_rec = &ps_mem_rec_base[MEM_REC_RC];
3523 ih264e_get_rate_control_mem_tab(NULL, ps_mem_rec, FILL_MEMTAB);
3525 DEBUG("\nMemory record Id %d = %d \n", MEM_REC_RC, ps_mem_rec->u4_mem_size);
3529 ps_mem_rec = ps_mem_rec_base;
3532 ps_mem_rec->u4_mem_size = ALIGN128(ps_mem_rec->u4_mem_size);
3533 ps_mem_rec++;
3576 iv_mem_rec_t *ps_mem_rec_base, *ps_mem_rec;
3601 ps_mem_rec_base = ps_ip->s_ive_ip.ps_mem_rec;
3604 ps_mem_rec = &ps_mem_rec_base[MEM_REC_CODEC];
3606 ps_codec_obj->pv_codec_handle = ps_mem_rec->pv_base;
3610 ps_mem_rec = &ps_mem_rec_base[MEM_REC_CABAC];
3612 ps_cabac = (cabac_ctxt_t *)(ps_mem_rec->pv_base);
3616 ps_mem_rec = &ps_mem_rec_base[MEM_REC_CABAC_MB_INFO];
3618 ps_mb_map_ctxt_inc = (mb_info_ctxt_t *)(ps_mem_rec->pv_base);
3674 ps_mem_rec = &ps_mem_rec_base[MEM_REC_BACKUP];
3676 ps_codec->ps_mem_rec_backup = (iv_mem_rec_t *) ps_mem_rec->pv_base;
3682 ps_mem_rec = &ps_mem_rec_base[MEM_REC_ENTROPY];
3692 UWORD8 *pu1_buf = ps_mem_rec->pv_base;
3736 UWORD8 *pu1_buf = ps_mem_rec->pv_base;
3781 ps_mem_rec = &ps_mem_rec_base[MEM_REC_MB_COEFF_DATA];
3785 UWORD8 *pu1_buf = ps_mem_rec->pv_base;
3819 ps_mem_rec = &ps_mem_rec_base[MEM_REC_MB_HEADER_DATA];
3823 UWORD8 *pu1_buf = ps_mem_rec->pv_base;
3857 ps_mem_rec = &ps_mem_rec_base[MEM_REC_MVBANK];
3863 UWORD8 *pu1_buf = ps_mem_rec->pv_base;
3870 ps_codec->i4_total_mv_bank_size = ps_mem_rec->u4_mem_size - size;
3873 ps_mem_rec = &ps_mem_rec_base[MEM_REC_MVBITS];
3885 UWORD8 *pu1_buf = ps_mem_rec->pv_base;
3906 ps_mem_rec = &ps_mem_rec_base[MEM_REC_SPS];
3908 ps_codec->ps_sps_base = (sps_t *) ps_mem_rec->pv_base;
3911 ps_mem_rec = &ps_mem_rec_base[MEM_REC_PPS];
3913 ps_codec->ps_pps_base = (pps_t *) ps_mem_rec->pv_base;
3916 ps_mem_rec = &ps_mem_rec_base[MEM_REC_SLICE_HDR];
3918 ps_codec->ps_slice_hdr_base = ps_mem_rec->pv_base;
3924 ps_codec->as_process[i].ps_slice_hdr_base = ps_mem_rec->pv_base;
3930 void *pv_buf = (UWORD8 *) ps_mem_rec->pv_base + size;
3937 ps_mem_rec = &ps_mem_rec_base[MEM_REC_AIR_MAP];
3940 UWORD8 *pu1_buf = ps_mem_rec->pv_base;
3958 ps_mem_rec = &ps_mem_rec_base[MEM_REC_SLICE_MAP];
3964 pu1_buf_ping = ps_mem_rec->pv_base;
3980 ps_mem_rec = &ps_mem_rec_base[MEM_REC_THREAD_HANDLE];
3986 ps_codec->apv_proc_thread_handle[i] = (UWORD8 *) ps_mem_rec->pv_base
3991 ps_mem_rec = &ps_mem_rec_base[MEM_REC_CTL_MUTEX];
3993 ps_codec->pv_ctl_mutex = ps_mem_rec->pv_base;
3996 ps_mem_rec = &ps_mem_rec_base[MEM_REC_ENTROPY_MUTEX];
3998 ps_codec->pv_entropy_mutex = ps_mem_rec->pv_base;
4001 ps_mem_rec = &ps_mem_rec_base[MEM_REC_PROC_JOBQ];
4003 ps_codec->pv_proc_jobq_buf = ps_mem_rec->pv_base;
4004 ps_codec->i4_proc_jobq_buf_size = ps_mem_rec->u4_mem_size;
4007 ps_mem_rec = &ps_mem_rec_base[MEM_REC_ENTROPY_JOBQ];
4009 ps_codec->pv_entropy_jobq_buf = ps_mem_rec->pv_base;
4010 ps_codec->i4_entropy_jobq_buf_size = ps_mem_rec->u4_mem_size;
4013 ps_mem_rec = &ps_mem_rec_base[MEM_REC_PROC_MAP];
4016 UWORD8 *pu1_buf = ps_mem_rec->pv_base;
4041 ps_mem_rec = &ps_mem_rec_base[MEM_REC_DBLK_MAP];
4044 UWORD8 *pu1_buf = ps_mem_rec->pv_base;
4074 ps_mem_rec = &ps_mem_rec_base[MEM_REC_ME_MAP];
4077 UWORD8 *pu1_buf = (UWORD8 *) ps_mem_rec->pv_base;
4102 ps_mem_rec = &ps_mem_rec_base[MEM_REC_DPB_MGR];
4104 ps_codec->pv_dpb_mgr = ps_mem_rec->pv_base;
4107 ps_mem_rec = &ps_mem_rec_base[MEM_REC_PROC_SCRATCH];
4110 UWORD8 *pu1_buf = (UWORD8 *) ps_mem_rec->pv_base;
4194 ps_mem_rec = &ps_mem_rec_base[MEM_REC_QUANT_PARAM];
4197 UWORD8 *pu1_buf = (UWORD8 *) ps_mem_rec->pv_base;
4262 ps_mem_rec = &ps_mem_rec_base[MEM_REC_TOP_ROW_SYN_INFO];
4268 UWORD8 *pu1_buf = ps_mem_rec->pv_base;
4309 ps_mem_rec = &ps_mem_rec_base[MEM_REC_BS_QP];
4339 pu1_buf_ping = (UWORD8 *) ps_mem_rec->pv_base;
4358 pu1_buf_pong = (UWORD8 *) ps_mem_rec->pv_base;
4379 ps_mem_rec = &ps_mem_rec_base[MEM_REC_INP_PIC];
4381 ps_codec->pv_inp_buf_mgr_base = ps_mem_rec->pv_base;
4384 ps_mem_rec = &ps_mem_rec_base[MEM_REC_OUT];
4386 ps_codec->pv_out_buf_mgr_base = ps_mem_rec->pv_base;
4389 ps_mem_rec = &ps_mem_rec_base[MEM_REC_CSC];
4391 ps_codec->pu1_y_csc_buf_base = ps_mem_rec->pv_base;
4392 ps_codec->pu1_uv_csc_buf_base = (UWORD8 *) ps_mem_rec->pv_base
4396 ps_mem_rec = &ps_mem_rec_base[MEM_REC_REF_PIC];
4402 UWORD8 *pu1_buf = ps_mem_rec->pv_base;
4409 ps_codec->i4_total_pic_buf_size = ps_mem_rec->u4_mem_size - size;
4412 ps_mem_rec = &ps_mem_rec_base[MEM_REC_MB_INFO_NMB];
4415 UWORD8 *pu1_buf = ps_mem_rec->pv_base;
4449 ps_mem_rec = &ps_mem_rec_base[MEM_REC_RC];
4451 ih264e_get_rate_control_mem_tab(&ps_codec->s_rate_control, ps_mem_rec,
4507 memcpy(ps_ip->s_ive_ip.ps_mem_rec, ps_codec->ps_mem_rec_backup,