| /rockchip-linux_mpp/mpp/base/ |
| H A D | mpp_dec_cfg.c | 27 STRUCT_START(base) \ 28 ENTRY(prefix, u32, rk_u32, type, FLAG_BASE(0), base, type) \ 29 ENTRY(prefix, u32, rk_u32, coding, FLAG_INCR, base, coding) \ 30 ENTRY(prefix, u32, rk_u32, hw_type, FLAG_INCR, base, hw_type) \ 31 ENTRY(prefix, u32, rk_u32, batch_mode, FLAG_INCR, base, batch_mode) \ 32 ENTRY(prefix, u32, rk_u32, out_fmt, FLAG_INCR, base, out_fmt) \ 33 ENTRY(prefix, u32, rk_u32, fast_out, FLAG_INCR, base, fast_out) \ 34 ENTRY(prefix, u32, rk_u32, fast_parse, FLAG_INCR, base, fast_parse) \ 35 ENTRY(prefix, u32, rk_u32, split_parse, FLAG_INCR, base, split_parse) \ 36 ENTRY(prefix, u32, rk_u32, internal_pts, FLAG_INCR, base, internal_pts) \ [all …]
|
| /rockchip-linux_mpp/mpp/codec/ |
| H A D | mpp_dec.c | 54 MppDecBaseCfg *base = &cfg->base; in mpp_dec_update_cfg() local 58 if (!p->parser_fast_mode && base->fast_parse) { in mpp_dec_update_cfg() 60 base->fast_parse = 0; in mpp_dec_update_cfg() 64 p->parser_fast_mode = base->fast_parse; in mpp_dec_update_cfg() 65 p->enable_deinterlace = base->enable_vproc; in mpp_dec_update_cfg() 66 p->disable_error = base->disable_error; in mpp_dec_update_cfg() 67 p->dis_err_clr_mark = base->dis_err_clr_mark; in mpp_dec_update_cfg() 69 mpp_env_get_u32("enable_deinterlace", &p->enable_deinterlace, base->enable_vproc); in mpp_dec_update_cfg() 76 MppDecBaseCfg *base = &p->cfg->base; in mpp_dec_check_fbc_cap() local 78 if (MPP_FRAME_FMT_IS_FBC(base->out_fmt)) { in mpp_dec_check_fbc_cap() [all …]
|
| /rockchip-linux_mpp/mpp/hal/vpu/jpegd/ |
| H A D | hal_jpegd_common.c | 266 RK_U32 *base = (RK_U32 *)mpp_buffer_get_ptr(ctx->pTableBase); in jpegd_write_qp_ac_dc_table() local 291 *base = table_word; in jpegd_write_qp_ac_dc_table() 292 base++; in jpegd_write_qp_ac_dc_table() 328 *base = table_word; in jpegd_write_qp_ac_dc_table() 329 base++; in jpegd_write_qp_ac_dc_table() 351 *base = table_word; in jpegd_write_qp_ac_dc_table() 352 base++; in jpegd_write_qp_ac_dc_table() 384 *base = table_word; in jpegd_write_qp_ac_dc_table() 385 base++; in jpegd_write_qp_ac_dc_table() 407 *base = table_word; in jpegd_write_qp_ac_dc_table() [all …]
|
| H A D | hal_jpegd_api.c | 69 MppDecBaseCfg *base = &cfg->cfg->base; in hal_jpegd_init() local 82 if (mpp_check_soc_cap(base->type, base->coding)) in hal_jpegd_init() 83 hw_type = base->hw_type; in hal_jpegd_init()
|
| /rockchip-linux_mpp/mpp/hal/rkdec/h264d/ |
| H A D | hal_h264d_api.c | 264 mpp_env_get_u32("use_mpp_mode", &mode, cfg->cfg->base.codec_mode); in hal_h264d_init() 266 MppDecBaseCfg *base = &cfg->cfg->base; in hal_h264d_init() local 268 if (mpp_check_soc_cap(base->type, base->coding)) in hal_h264d_init() 269 hw_type = base->hw_type; in hal_h264d_init() 345 p_hal->fast_mode = cfg->cfg->base.fast_parse; in hal_h264d_init()
|
| /rockchip-linux_mpp/mpp/hal/rkenc/h264e/ |
| H A D | hal_h264e_vepu580_tune.c | 272 RK_S32 base = tune->ap_motion_flag * 3; in vepu580_h264e_tune_stat_update() local 274 for (i = 0; i < 3; i++, base++) { in vepu580_h264e_tune_stat_update() 275 if (tune->pre_madp[0] >= mb_avg_madp_thd[base]) { in vepu580_h264e_tune_stat_update() 276 if (madp_cnt_statistics[0] > mb_num * ctu_madp_cnt_thd[base][0] >> mvbit || in vepu580_h264e_tune_stat_update() 277 madp_cnt_statistics[1] > mb_num * ctu_madp_cnt_thd[base][1] >> mvbit || in vepu580_h264e_tune_stat_update() 278 madp_cnt_statistics[2] > mb_num * ctu_madp_cnt_thd[base][2] >> mvbit) { in vepu580_h264e_tune_stat_update() 280 } else if ((madp_cnt_statistics[0] > mb_num * ctu_madp_cnt_thd[base][3] >> mvbit || in vepu580_h264e_tune_stat_update() 281 madp_cnt_statistics[1] > mb_num * ctu_madp_cnt_thd[base][4] >> mvbit) && in vepu580_h264e_tune_stat_update() 282 madp_cnt_statistics[3] < mb_num * ctu_madp_cnt_thd[base][5] >> mvbit) { in vepu580_h264e_tune_stat_update() 284 } else if (madp_cnt_statistics[3] < mb_num * ctu_madp_cnt_thd[base][6] >> mvbit) { in vepu580_h264e_tune_stat_update() [all …]
|
| /rockchip-linux_mpp/mpp/codec/dec/h264/ |
| H A D | h264d_api.c | 357 p_Dec->immediate_out = p_Dec->cfg->base.fast_out; in h264d_init() 358 mpp_env_get_u32("force_fast_play_mode", &p_Dec->cfg->base.enable_fast_play, in h264d_init() 359 p_Dec->cfg->base.enable_fast_play); in h264d_init() 360 p_Dec->p_Vid->dpb_fast_out = p_Dec->cfg->base.enable_fast_play; in h264d_init() 361 H264D_LOG("fast play mode: %d", p_Dec->cfg->base.enable_fast_play); in h264d_init() 461 mpp_env_get_u32("force_fast_play_mode", &p_Dec->cfg->base.enable_fast_play, in h264d_reset() 462 p_Dec->cfg->base.enable_fast_play); in h264d_reset() 463 p_Dec->p_Vid->dpb_fast_out = p_Dec->cfg->base.enable_fast_play; in h264d_reset() 464 H264D_LOG("fast play mode: %d", p_Dec->cfg->base.enable_fast_play); in h264d_reset() 509 p_Dec->cfg->base.enable_fast_play = (param) ? (*((RK_U32 *)param)) : (1); in h264d_control() [all …]
|
| /rockchip-linux_mpp/kmpp/ |
| H A D | CMakeLists.txt | 10 # add kmpp base component 12 add_subdirectory(base)
|
| /rockchip-linux_mpp/mpp/hal/common/h264/ |
| H A D | hal_h264e_stream_amend.c | 143 RK_S32 base = ctx->buf_base; in h264e_vepu_stream_amend_proc() local 177 mpp_dmabuf_sync_partial_begin(fd, 1, base, len, __FUNCTION__); in h264e_vepu_stream_amend_proc() 199 p += base; in h264e_vepu_stream_amend_proc() 325 p += base; in h264e_vepu_stream_amend_proc() 355 RK_S32 base = ctx->buf_base; in h264e_vepu_stream_amend_sync_ref_idc() local 357 RK_U8 *p = mpp_packet_get_pos(pkt) + base; in h264e_vepu_stream_amend_sync_ref_idc() 366 mpp_dmabuf_sync_partial_begin(fd, 1, base, len, __FUNCTION__); in h264e_vepu_stream_amend_sync_ref_idc()
|
| /rockchip-linux_mpp/osal/linux/ |
| H A D | os_env.c | 21 int base = (ptr[0] == '0' && ptr[1] == 'x') ? (16) : (10); in os_get_env_u32() local 23 *value = strtoul(ptr, &endptr, base); in os_get_env_u32()
|
| /rockchip-linux_mpp/mpp/hal/rkdec/avs2d/ |
| H A D | hal_avs2d_rkv.c | 546 if (MPP_FRAME_FMT_IS_FBC(cfg->cfg->base.out_fmt)) in hal_avs2d_rkv_init() 617 !p_hal->cfg->base.disable_error) { in hal_avs2d_rkv_gen_regs() 701 void *base = NULL; in hal_avs2d_rkv_gen_regs() local 704 base = mpp_buffer_get_ptr(reg_ctx->rcb_buf[0]); in hal_avs2d_rkv_gen_regs() 705 fwrite(base, 1, reg_ctx->rcb_buf_size, fp_rcb); in hal_avs2d_rkv_gen_regs() 788 void *base = NULL; in hal_avs2d_rkv_dump_stream() local 790 base = mpp_buffer_get_ptr(buffer); in hal_avs2d_rkv_dump_stream() 793 fwrite(base, 1, mpp_packet_get_length(task->dec.input_packet), fp_stream); in hal_avs2d_rkv_dump_stream() 811 !p_hal->cfg->base.disable_error) { in hal_avs2d_rkv_start() 974 void *base = NULL; in hal_avs2d_rkv_dump_yuv() local [all …]
|
| H A D | hal_avs2d_vdpu382.c | 612 if (MPP_FRAME_FMT_IS_FBC(cfg->cfg->base.out_fmt)) in hal_avs2d_vdpu382_init() 684 !p_hal->cfg->base.disable_error) { in hal_avs2d_vdpu382_gen_regs() 768 void *base = NULL; in hal_avs2d_vdpu382_gen_regs() local 771 base = mpp_buffer_get_ptr(reg_ctx->rcb_buf[0]); in hal_avs2d_vdpu382_gen_regs() 772 fwrite(base, 1, reg_ctx->rcb_buf_size, fp_rcb); in hal_avs2d_vdpu382_gen_regs() 854 void *base = NULL; in hal_avs2d_vdpu382_dump_stream() local 856 base = mpp_buffer_get_ptr(buffer); in hal_avs2d_vdpu382_dump_stream() 859 fwrite(base, 1, mpp_packet_get_length(task->dec.input_packet), fp_stream); in hal_avs2d_vdpu382_dump_stream() 877 !p_hal->cfg->base.disable_error) { in hal_avs2d_vdpu382_start() 1040 void *base = NULL; in hal_avs2d_vdpu382_dump_yuv() local [all …]
|
| H A D | hal_avs2d_vdpu383.c | 642 !p_hal->cfg->base.disable_error) { in hal_avs2d_vdpu383_gen_regs() 722 !p_hal->cfg->base.disable_error) { in hal_avs2d_vdpu383_start() 838 void *base = NULL; in hal_avs2d_vdpu383_dump_yuv() local 851 base = mpp_buffer_get_ptr(buffer); in hal_avs2d_vdpu383_dump_yuv() 860 fwrite(base, 1, vir_w * vir_h * 3 / 2, fp_stream); in hal_avs2d_vdpu383_dump_yuv() 865 tmp = fetch_data(fmt, base, j); in hal_avs2d_vdpu383_dump_yuv() 868 base += vir_w; in hal_avs2d_vdpu383_dump_yuv() 873 tmp = fetch_data(fmt, base, j); in hal_avs2d_vdpu383_dump_yuv() 876 base += vir_w; in hal_avs2d_vdpu383_dump_yuv() 896 !p_hal->cfg->base.disable_error) { in hal_avs2d_vdpu383_wait()
|
| /rockchip-linux_mpp/mpp/ |
| H A D | CMakeLists.txt | 13 include_directories(base/inc) 20 # add mpp base component 22 add_subdirectory(base)
|
| /rockchip-linux_mpp/kmpp/test/ |
| H A D | CMakeLists.txt | 3 # kmpp/base built-in unit test case 13 option(${test_tag} "Build base ${module} unit test" ${BUILD_TEST})
|
| /rockchip-linux_mpp/osal/android/ |
| H A D | os_env.c | 24 int base = (prop[0] == '0' && prop[1] == 'x') ? (16) : (10); in os_get_env_u32() local 26 *value = strtoul(prop, &endptr, base); in os_get_env_u32()
|
| /rockchip-linux_mpp/kmpp/base/test/ |
| H A D | CMakeLists.txt | 3 # kmpp/base built-in unit test case 13 option(${test_tag} "Build base ${module} unit test" ${BUILD_TEST})
|
| /rockchip-linux_mpp/utils/ |
| H A D | utils.c | 47 static void rearrange_pix(RK_U8 *tmp_line, RK_U8 *base, RK_U32 n) in rearrange_pix() argument 50 RK_U16 * base_u16 = (RK_U16 *)(base + n * 10); in rearrange_pix() 70 RK_U8 *base = NULL; in dump_mpp_frame_to_file() local 85 base = (RK_U8 *)mpp_buffer_get_ptr(buffer); in dump_mpp_frame_to_file() 90 fwrite(base, 1, buf_size, fp); in dump_mpp_frame_to_file() 101 RK_U8 *base_y = base; in dump_mpp_frame_to_file() 102 RK_U8 *base_c = base + h_stride * v_stride; in dump_mpp_frame_to_file() 125 RK_U8 *base_y = base; in dump_mpp_frame_to_file() 126 RK_U8 *base_c = base + h_stride * v_stride; in dump_mpp_frame_to_file() 137 RK_U8 *base_y = base; in dump_mpp_frame_to_file() [all …]
|
| H A D | osd3_test.c | 46 RK_U8 *base = malloc(bar_width * bar_height * SMPTE_BAR_CNT * 4); in osd3_gen_smpte_bar_argb() local 48 *dst = base; in osd3_gen_smpte_bar_argb() 54 base[i * 4] = 0xff; in osd3_gen_smpte_bar_argb() 55 base[i * 4 + 1] = smpte_bar[k][0]; in osd3_gen_smpte_bar_argb() 56 base[i * 4 + 2] = smpte_bar[k][1]; in osd3_gen_smpte_bar_argb() 57 base[i * 4 + 3] = smpte_bar[k][2]; in osd3_gen_smpte_bar_argb() 59 base += bar_width * 4; in osd3_gen_smpte_bar_argb() 66 fp_size = fread(base, 1, read_size, fp); in osd3_gen_smpte_bar_argb() 69 free(base); in osd3_gen_smpte_bar_argb()
|
| /rockchip-linux_mpp/osal/ |
| H A D | mpp_time.c | 40 rk_s64 base; member 104 p->base = mpp_time(); in mpp_clock_start() 106 return p->base; in mpp_clock_start() 126 p->sum += time - p->base; in mpp_clock_pause() 132 return p->time - p->base; in mpp_clock_pause() 142 p->base = 0; in mpp_clock_reset()
|
| /rockchip-linux_mpp/mpp/base/test/ |
| H A D | CMakeLists.txt | 3 # mpp/base built-in unit test case 13 option(${test_tag} "Build base ${module} unit test" ${BUILD_TEST})
|
| /rockchip-linux_mpp/mpp/vproc/iep/test/ |
| H A D | iep_test.c | 22 #define ADD_OFFSET(base, offset) ((RK_U32)base + ((RK_U32)(offset) << 10)) argument 210 static void config_iep_img(IepImg *img, RK_S32 w, RK_S32 h, RK_S32 fmt, RK_U32 base) in config_iep_img() argument 225 img->v_addr = ADD_OFFSET(base, w * h + w * h / 2); in config_iep_img() 231 img->v_addr = ADD_OFFSET(base, w * h + w * h / 4); in config_iep_img() 244 img->mem_addr = base; in config_iep_img() 245 img->uv_addr = ADD_OFFSET(base, w * h); in config_iep_img()
|
| /rockchip-linux_mpp/mpp/hal/rkenc/h265e/ |
| H A D | hal_h265e_vepu580_tune.c | 546 RK_S32 base = tune->ap_motion_flag * 3; in vepu580_h265e_tune_stat_update() local 548 for (i = 0; i < 3; i++, base++) { in vepu580_h265e_tune_stat_update() 550 if (madp_cnt_statistics[0] > mb_num * ctu_madp_cnt_thd[base][0] >> mvbit || in vepu580_h265e_tune_stat_update() 551 madp_cnt_statistics[1] > mb_num * ctu_madp_cnt_thd[base][1] >> mvbit || in vepu580_h265e_tune_stat_update() 552 madp_cnt_statistics[2] > mb_num * ctu_madp_cnt_thd[base][2] >> mvbit) { in vepu580_h265e_tune_stat_update() 554 } else if ((madp_cnt_statistics[0] > mb_num * ctu_madp_cnt_thd[base][3] >> mvbit || in vepu580_h265e_tune_stat_update() 555 madp_cnt_statistics[1] > mb_num * ctu_madp_cnt_thd[base][4] >> mvbit) && in vepu580_h265e_tune_stat_update() 556 madp_cnt_statistics[3] < mb_num * ctu_madp_cnt_thd[base][5] >> mvbit) { in vepu580_h265e_tune_stat_update() 558 } else if (madp_cnt_statistics[3] < mb_num * ctu_madp_cnt_thd[base][6] >> mvbit) { in vepu580_h265e_tune_stat_update() 560 } else if (madp_cnt_statistics[3] < mb_num * ctu_madp_cnt_thd[base][7] >> mvbit) { in vepu580_h265e_tune_stat_update()
|
| /rockchip-linux_mpp/ |
| H A D | Android.bp | 29 "mpp/base/inc", 58 "kmpp/base/inc", 68 "mpp/base/*.cpp", 69 "mpp/base/*.c", 129 "kmpp/base/*.c",
|
| /rockchip-linux_mpp/mpp/base/inc/ |
| H A D | mpp_enc_cb_param.h | 34 void *base; member
|