| /rockchip-linux_mpp/mpp/vproc/iep2/ |
| H A D | iep2_osd.c | 75 uint32_t idx = v + 28 * 4; in iep2_osd_check() local 77 if (idx >= MPP_ARRAY_ELEMS(hist)) { in iep2_osd_check() 81 hist[idx]++; in iep2_osd_check() 112 int idx = 0; in iep2_set_osd() local 152 ctx->params.osd_x_sta[idx] = sx[i]; in iep2_set_osd() 153 ctx->params.osd_x_end[idx] = ex[i]; in iep2_set_osd() 154 ctx->params.osd_y_sta[idx] = sy[i]; in iep2_set_osd() 155 ctx->params.osd_y_end[idx] = ey[i]; in iep2_set_osd() 159 ls->mv[idx] = mvx; in iep2_set_osd() 160 ls->vld[idx] = 1; in iep2_set_osd() [all …]
|
| H A D | iep2_pd.c | 84 int idx = pd_inf->i % PD_FRAME_PERIOD; in iep2_check_pd() local 91 pd_inf->spatial[idx] = RKMIN(ff00t, ff00b); in iep2_check_pd() 92 pd_inf->temporal[idx] = (tcnt < FIELD_DIFF_SUM_THR) | ((bcnt < FIELD_DIFF_SUM_THR) << 1); in iep2_check_pd() 93 pd_inf->fcoeff[idx] = f * 100 / nz; in iep2_check_pd() 97 idx, pd_inf->step, in iep2_check_pd() 104 idx, pd_inf->step, in iep2_check_pd() 111 idx, pd_inf->step, in iep2_check_pd() 139 if (pd_inf->temporal[idx] == pd_table[i][0] && in iep2_check_pd() 140 pd_inf->temporal[(idx + 1) % 5] == pd_table[i][1] && in iep2_check_pd() 141 pd_inf->temporal[(idx + 2) % 5] == pd_table[i][2] && in iep2_check_pd() [all …]
|
| H A D | iep2_roi.c | 28 int idx = ctx->params.roi_layer_num; in iep2_set_roi() local 32 ctx->params.xsta[idx] = r->x; in iep2_set_roi() 33 ctx->params.ysta[idx] = r->y; in iep2_set_roi() 34 ctx->params.xend[idx] = r->x + r->w - 1; in iep2_set_roi() 35 ctx->params.yend[idx] = r->y + r->h - 1; in iep2_set_roi() 36 ctx->params.roi_mode[idx] = mode; in iep2_set_roi()
|
| /rockchip-linux_mpp/mpp/vproc/vdpp/ |
| H A D | vdpp_api.c | 70 RK_U32 idx; in dci_hist_info_parser() local 78 …for (idx = 0; idx < RKVOP_PQ_PREPROCESS_HIST_SIZE_VERI * RKVOP_PQ_PREPROCESS_HIST_SIZE_HORI * RKVO… in dci_hist_info_parser() 97 *(p_hist_local + idx + 0) = tmp0_u18; in dci_hist_info_parser() 98 *(p_hist_local + idx + 1) = tmp1_u18; in dci_hist_info_parser() 99 *(p_hist_local + idx + 2) = tmp2_u18; in dci_hist_info_parser() 100 *(p_hist_local + idx + 3) = tmp3_u18; in dci_hist_info_parser() 104 for (idx = 0; idx < RKVOP_PQ_PREPROCESS_GLOBAL_HIST_BIN_NUMS; idx++) { in dci_hist_info_parser() 114 *(p_hist_global + idx + 0) = tmp_u32; in dci_hist_info_parser()
|
| /rockchip-linux_mpp/mpp/base/ |
| H A D | mpp_trie.c | 51 rk_s16 idx; member 100 rk_s32 idx; in trie_get_node() local 122 idx = trie->node_used++; in trie_get_node() 123 node = &trie->nodes[idx]; in trie_get_node() 124 node->idx = idx; in trie_get_node() 132 trie_dbg_cnt("get node %d\n", idx); in trie_get_node() 134 return idx; in trie_get_node() 171 rk_s32 idx = 0; in trie_pave_node() local 181 node = p->nodes + idx; in trie_pave_node() 185 p, name, i, key, key, key0, key1, idx, next); in trie_pave_node() [all …]
|
| /rockchip-linux_mpp/test/ |
| H A D | mpp_event_trigger.c | 49 ctx->semval = ctx->ea->e[0].idx; in event_create() 72 e_curr->idx, e_next->idx); in event_init() 74 if (e_next->idx > e_curr->idx) in event_init() 75 ctx->semval = e_next->idx - e_curr->idx; in event_init() 77 ctx->semval = e_next->idx + ctx->ea->loop - e_curr->idx; in event_init() 237 int idx[128]; member 257 ie.event[0] = ie.idx[0] = 4; in main() 258 ie.event[1] = ie.idx[1] = 8; in main() 259 ie.event[2] = ie.idx[2] = 18; in main() 260 ie.event[3] = ie.idx[3] = 20; in main() [all …]
|
| /rockchip-linux_mpp/mpp/common/ |
| H A D | h265_syntax.h | 50 #define REF_BY_RECN(idx) (0x00000001 << idx) 51 #define REF_BY_REFR(idx) (0x00000001 << idx) 92 #define REF_BY_RECN(idx) (0x00000001 << idx) argument 93 #define REF_BY_REFR(idx) (0x00000001 << idx) argument
|
| /rockchip-linux_mpp/mpp/hal/rkdec/avsd/ |
| H A D | hal_avsd_base.c | 58 RK_S32 get_packet_fd(AvsdHalCtx_t *p_hal, RK_S32 idx) in get_packet_fd() argument 63 mpp_buf_slot_get_prop(p_hal->packet_slots, idx, SLOT_BUFFER, &mbuffer); in get_packet_fd() 70 RK_S32 get_frame_fd(AvsdHalCtx_t *p_hal, RK_S32 idx) in get_frame_fd() argument 75 mpp_buf_slot_get_prop(p_hal->frame_slots, idx, SLOT_BUFFER, &mbuffer); in get_frame_fd()
|
| H A D | hal_avsd_base.h | 141 RK_S32 get_packet_fd(AvsdHalCtx_t *p_hal, RK_S32 idx); 142 RK_S32 get_frame_fd(AvsdHalCtx_t *p_hal, RK_S32 idx);
|
| /rockchip-linux_mpp/mpp/codec/rc/ |
| H A D | rc_base.c | 129 RK_S32 mpp_data_get_pre_val_v2(MppDataV2 *p, RK_S32 idx) in mpp_data_get_pre_val_v2() argument 133 if (idx < 0) { in mpp_data_get_pre_val_v2() 134 idx = p->size + idx; in mpp_data_get_pre_val_v2() 137 mpp_assert(idx < p->size); in mpp_data_get_pre_val_v2() 140 if (pos - idx < 0) { in mpp_data_get_pre_val_v2() 141 RK_S32 pos1 = idx - pos; in mpp_data_get_pre_val_v2() 146 pos = pos - idx; in mpp_data_get_pre_val_v2()
|
| /rockchip-linux_mpp/mpp/codec/enc/h264/ |
| H A D | h264e_dpb.h | 50 #define REF_BY_RECN(idx) (0x00000001 << idx) argument 51 #define REF_BY_REFR(idx) (0x00000001 << idx) argument
|
| /rockchip-linux_mpp/utils/ |
| H A D | camera_source.c | 313 RK_S32 idx = camera_source_get_frame(ctx); in camera_source_init() local 314 if (idx >= 0) in camera_source_init() 315 camera_source_put_frame(ctx, idx); in camera_source_init() 398 MPP_RET camera_source_put_frame(CamSource *ctx, RK_S32 idx) in camera_source_put_frame() argument 403 if (idx < 0) in camera_source_put_frame() 410 buf.index = idx; in camera_source_put_frame() 427 MppBuffer camera_frame_to_buf(CamSource *ctx, RK_S32 idx) in camera_frame_to_buf() argument 431 if (idx < 0) in camera_frame_to_buf() 434 buf = ctx->fbuf[idx].buffer; in camera_frame_to_buf()
|
| H A D | camera_source.h | 38 MPP_RET camera_source_put_frame(CamSource *ctx, RK_S32 idx); 40 MppBuffer camera_frame_to_buf(CamSource *ctx, RK_S32 idx);
|
| /rockchip-linux_mpp/mpp/hal/rkdec/ |
| H A D | vdpu34x_com.c | 44 RK_S32 offset, RK_S32 len, RK_S32 idx) in update_size_offset() argument 48 buf_size = MPP_ALIGN(len * rcb_coeff[idx], RCB_ALLINE_SIZE); in update_size_offset() 49 info[idx].reg = reg; in update_size_offset() 50 info[idx].offset = offset; in update_size_offset() 51 info[idx].size = buf_size; in update_size_offset()
|
| H A D | vdpu382_com.c | 44 RK_S32 offset, RK_S32 len, RK_S32 idx) in update_size_offset() argument 48 buf_size = MPP_ALIGN(len * rcb_coeff[idx], RCB_ALLINE_SIZE); in update_size_offset() 49 info[idx].reg = reg; in update_size_offset() 50 info[idx].offset = offset; in update_size_offset() 51 info[idx].size = buf_size; in update_size_offset()
|
| H A D | vdpu383_com.c | 33 RK_S32 offset, RK_S32 len, RK_S32 idx) in update_size_offset() argument 37 buf_size = 2 * MPP_ALIGN(len * rcb_coeff[idx], RCB_ALLINE_SIZE); in update_size_offset() 38 info[idx].reg_idx = reg_idx; in update_size_offset() 39 info[idx].offset = offset; in update_size_offset() 40 info[idx].size = buf_size; in update_size_offset()
|
| H A D | vdpu384a_com.c | 34 RK_S32 offset, RK_S32 len, RK_S32 idx) in update_size_offset() argument 38 buf_size = MPP_ALIGN(len * rcb_coeff[idx], RCB_ALLINE_SIZE); in update_size_offset() 39 info[idx].reg_idx = reg_idx; in update_size_offset() 40 info[idx].offset = offset; in update_size_offset() 41 info[idx].size = buf_size; in update_size_offset()
|
| /rockchip-linux_mpp/kmpp/base/ |
| H A D | kmpp_obj.c | 872 rk_s32 idx = i++; in kmpp_objdef_dump() local 874 mpp_logi("%-2d - %-16s offset %4d size %d\n", idx, in kmpp_objdef_dump() 885 rk_s32 idx = i++; in kmpp_objdef_dump() local 889 mpp_logi("%-2d - %-16s val %d\n", idx, name, *(RK_U32 *)p); in kmpp_objdef_dump() 891 mpp_logi("%-2d - %-16s str %s\n", idx, name, p); in kmpp_objdef_dump() 1831 rk_s32 idx; in kmpp_obj_udump_f() local 1842 idx = i++; in kmpp_obj_udump_f() 1851 mpp_logi("%-2d - %-16s s32 %#x:%d\n", idx, name, val, val); in kmpp_obj_udump_f() 1853 mpp_loge("%-2d - %-16s s32 get failed\n", idx, name); in kmpp_obj_udump_f() 1857 mpp_loge("%-2d - %-16s s32 check failed\n", idx, name); in kmpp_obj_udump_f() [all …]
|
| /rockchip-linux_mpp/osal/test/ |
| H A D | mpp_thread_test.c | 35 int idx = *((int*)pdata); in thread_test() local 36 mpp_log("thread %d is running\n", idx); in thread_test() 38 mpp_log("thread %d done\n", idx); in thread_test()
|
| /rockchip-linux_mpp/osal/ |
| H A D | mpp_thread.c | 304 rk_s32 idx; member 350 static void mpp_sthd_init(MppSThdImpl *thd, rk_s32 idx) in mpp_sthd_init() argument 361 thd->idx = idx; in mpp_sthd_init() 466 return impl->idx; in mpp_sthd_get_idx() 808 MppSThd mpp_sthd_grp_get_each(MppSThdGrp grp, rk_s32 idx) in mpp_sthd_grp_get_each() argument 814 mpp_assert(idx >= 0 && idx < impl->count); in mpp_sthd_grp_get_each() 817 ret = &impl->thds[idx]; in mpp_sthd_grp_get_each()
|
| /rockchip-linux_mpp/kmpp/base/inc/ |
| H A D | kmpp_obj_macro.h | 78 rk_u32 idx : 8; member 142 __offset = __flag_prev = __flag_base + __flag.idx; \ 143 if (__flag.idx > __flag_step) \ 144 __flag_step = __flag.idx; \
|
| /rockchip-linux_mpp/mpp/ |
| H A D | mpp_impl.c | 57 RK_U32 idx; member 86 RK_U32 idx; member 361 ops_log(p->fp_ops, "%d,%s,%d,%d\n", p->idx++, "init", type, coding); in mpp_ops_init() 384 ops_log(p->fp_ops, "%d,%s,%d,%d\n", p->idx++, "pkt", p->pkt_offset, length); in mpp_ops_dec_put_pkt() 410 ops_log(p->fp_ops, "%d,%s,%d,%d,%d,%d,%lld\n", p->idx, "frm", fd, in mpp_ops_dec_get_frm() 488 ops_log(p->fp_ops, "%d,%s,%d\n", p->idx, "ctrl", cmd); in mpp_ops_ctrl() 504 ops_log(p->fp_ops, "%d,%s\n", p->idx, "rst"); in mpp_ops_reset()
|
| /rockchip-linux_mpp/mpp/codec/dec/av1/ |
| H A D | av1d_parser.c | 173 static void read_global_param(AV1Context *s, RK_S32 type, RK_S32 ref, RK_S32 idx) in read_global_param() argument 189 prev_gm_param = s->cur_frame.gm_params[ref].wmmat[idx]; in read_global_param() 191 prev_gm_param = s->ref[prev_frame].gm_params[ref].wmmat[idx]; in read_global_param() 193 if (idx < 2) { in read_global_param() 204 round = (idx % 3) == 2 ? (1 << AV1_WARPEDMODEL_PREC_BITS) : 0; in read_global_param() 206 sub = (idx % 3) == 2 ? (1 << prec_bits) : 0; in read_global_param() 210 s->cur_frame.gm_params[ref].wmmat_val[idx] = in read_global_param() 211 decode_signed_subexp_with_ref(s->raw_frame_header->gm_params[ref][idx], in read_global_param() 213 s->cur_frame.gm_params[ref].wmmat[idx] = in read_global_param() 214 (s->cur_frame.gm_params[ref].wmmat_val[idx] << prec_diff) + round; in read_global_param() [all …]
|
| /rockchip-linux_mpp/mpp/hal/rkenc/h265e/ |
| H A D | hal_h265e_vepu510.c | 1884 RK_U8 idx; in vepu510_h265_set_scaling_list() local 1889 for (idx = 0; idx < 64; idx++) { in vepu510_h265_set_scaling_list() 1891 p[idx + 64 * 0] = vepu510_h265_cqm_intra8[63 - idx]; in vepu510_h265_set_scaling_list() 1892 p[idx + 64 * 1] = vepu510_h265_cqm_intra8[63 - idx]; in vepu510_h265_set_scaling_list() 1893 p[idx + 64 * 2] = vepu510_h265_cqm_intra8[63 - idx]; in vepu510_h265_set_scaling_list() 1896 p[idx + 64 * 3] = vepu510_h265_cqm_inter8[63 - idx]; in vepu510_h265_set_scaling_list() 1897 p[idx + 64 * 4] = vepu510_h265_cqm_inter8[63 - idx]; in vepu510_h265_set_scaling_list() 1898 p[idx + 64 * 5] = vepu510_h265_cqm_inter8[63 - idx]; in vepu510_h265_set_scaling_list() 1901 p[idx + 64 * 6] = vepu510_h265_cqm_intra8[63 - idx]; in vepu510_h265_set_scaling_list() 1902 p[idx + 64 * 7] = vepu510_h265_cqm_intra8[63 - idx]; in vepu510_h265_set_scaling_list() [all …]
|
| /rockchip-linux_mpp/mpp/codec/enc/h265/ |
| H A D | h265e_enctropy.c | 260 unsigned long idx; in h265e_cabac_encodeBin() local 261 CLZ32(idx, lps); in h265e_cabac_encodeBin() 264 numBits = 8 - idx; in h265e_cabac_encodeBin()
|