| /rockchip-linux_mpp/utils/ |
| H A D | utils.c | 65 RK_U32 height = 0; in dump_mpp_frame_to_file() local 76 height = mpp_frame_get_height(frame); in dump_mpp_frame_to_file() 103 RK_U8 *tmp = mpp_malloc(RK_U8, h_stride * height * 2); in dump_mpp_frame_to_file() 105 RK_U8 *tmp_v = tmp + width * height / 2; in dump_mpp_frame_to_file() 107 for (i = 0; i < height; i++, base_y += h_stride) in dump_mpp_frame_to_file() 110 for (i = 0; i < height; i++, base_c += h_stride) { in dump_mpp_frame_to_file() 119 fwrite(tmp, 1, width * height, fp); in dump_mpp_frame_to_file() 128 for (i = 0; i < height; i++, base_y += h_stride) { in dump_mpp_frame_to_file() 131 for (i = 0; i < height / 2; i++, base_c += h_stride) { in dump_mpp_frame_to_file() 140 for (i = 0; i < height; i++, base_y += h_stride) { in dump_mpp_frame_to_file() [all …]
|
| H A D | osd3_test.c | 79 static MPP_RET translate_argb(RK_U8 *src, RK_U8 *dst, RK_U32 width, RK_U32 height, in translate_argb() argument 96 memcpy(dst, src, width * height * 4); in translate_argb() 102 for (j = 0; j < height; j++) { in translate_argb() 116 for (j = 0; j < height; j++) { in translate_argb() 129 for (j = 0; j < height; j++) { in translate_argb() 143 for (j = 0; j < height; j++) { in translate_argb() 159 for (j = 0; j < height; j++) { in translate_argb() 175 for (j = 0; j < height; j++) { in translate_argb() 191 for (j = 0; j < height; j++) { in translate_argb() 207 for (j = 0; j < height; j++) { in translate_argb() [all …]
|
| /rockchip-linux_mpp/mpp/base/test/ |
| H A D | mpp_sys_cfg_st_test.c | 18 RK_U32 height = 2304; in main() local 50 v_stride_cfg.height = height; in main() 62 size_cfg.height = height; in main()
|
| /rockchip-linux_mpp/tools/ |
| H A D | resolution_test.sh | 66 height=${cur_rsl#*x} 70 [ "${height}" -gt 8192 ] && frm_cnt=2 77 …cur_enc_cmd="${enc_tool} -w ${width} -h ${height} -n ${frm_cnt} -t ${cur_type} -o ${enc_out_norm_p… 87 …cur_enc_cmd="${enc_tool} -w ${width} -h ${height} -n ${frm_cnt} -t ${cur_type} -o ${enc_out_kmpp_p… 98 …cur_dec_cmd="${dec_tool} -i ${enc_out_norm_path} -w ${width} -h ${height} -t ${cur_type} -o ${dec_… 107 …cur_dec_cmd="${dec_tool} -i ${enc_out_kmpp_path} -w ${width} -h ${height} -t ${cur_type} -o ${dec_…
|
| /rockchip-linux_mpp/mpp/base/ |
| H A D | mpp_sys_cfg.c | 82 …ENTRY(dec_buf_chk, height, u32, RK_U32, MPP_SYS_DEC_BUF_CHK_CFG_CHANGE_HEIGHT, … 264 static RK_S32 get_afbc_min_size(RK_S32 width, RK_S32 height, RK_S32 bpp) in get_afbc_min_size() argument 275 height = MPP_ALIGN(height, 16); in get_afbc_min_size() 278 n_blocks = (width * height) / AFBC_SUPERBLOCK_PIXELS; in get_afbc_min_size() 326 sys_cfg_dbg_dec_buf("org pixel wxh: [%d %d]\n", cfg->width, cfg->height); in mpp_sys_dec_buf_chk_proc() 335 aligned_height = MPP_ALIGN(aligned_height ? aligned_height : cfg->height, 16); in mpp_sys_dec_buf_chk_proc() 342 aligned_height = MPP_ALIGN(aligned_height ? aligned_height : cfg->height, 16); in mpp_sys_dec_buf_chk_proc() 346 aligned_height = MPP_ALIGN(aligned_height ? aligned_height : cfg->height, 64); in mpp_sys_dec_buf_chk_proc() 350 aligned_height = MPP_ALIGN(aligned_height ? aligned_height : cfg->height, 16); in mpp_sys_dec_buf_chk_proc() 427 aligned_height = MPP_ALIGN(cfg->height, 8); in mpp_sys_dec_buf_chk_proc() [all …]
|
| /rockchip-linux_mpp/test/ |
| H A D | vpu_api_test.c | 40 RK_U32 height; member 167 cmdCxt->height = atoi(argv[optindex]); in parse_options() 260 if ((cmd->have_input == 0) || (cmd->width <= 0) || (cmd->height <= 0) in vpu_encode_demo() 267 cmd->width, cmd->height, cmd->coding, in vpu_encode_demo() 302 ctx->height = cmd->height; in vpu_encode_demo() 315 enc_out->data = (RK_U8 *)malloc(cmd->width * cmd->height); in vpu_encode_demo() 332 ctx->height = cmd->height; in vpu_encode_demo() 340 enc_param->height = cmd->height; in vpu_encode_demo() 390 h_align = ((ctx->height + 15) & (~15)); in vpu_encode_demo() 392 readOneFrameSize = ctx->width * ctx->height * 3 / 2; in vpu_encode_demo() [all …]
|
| H A D | mpi_enc_test.c | 102 RK_U32 height; member 248 mpp_venc_kcfg_set_u32(init_kcfg, "max_height", p->height); in kmpp_cfg_init() 274 p->height = cmd->height; in test_ctx_init() 278 (MPP_ALIGN(cmd->height, 16)); in test_ctx_init() 315 p->cam_ctx = camera_source_init(cmd->file_input, 4, p->width, p->height, p->fmt); in test_ctx_init() 382 … p->header_size = MPP_ALIGN(MPP_ALIGN(p->width, 16) * MPP_ALIGN(p->height, 16) / 16, SZ_4K); in test_ctx_init() 384 p->header_size = MPP_ALIGN(p->width, 16) * MPP_ALIGN(p->height, 16) / 16; in test_ctx_init() 441 p->bps = p->width * p->height / 8 * (p->fps_out_num / p->fps_out_den); in test_mpp_enc_cfg_setup() 447 mpp_enc_cfg_set_s32(cfg, "prep:height", p->height); in test_mpp_enc_cfg_setup() 731 mpp_enc_roi_init(&p->roi_ctx, p->width, p->height, p->type, 4); in test_mpp_enc_cfg_setup() [all …]
|
| H A D | mpi_dec_mt_test.c | 136 RK_U32 height = mpp_frame_get_height(frame); in thread_output() local 144 width, height, hor_stride, ver_stride, buf_size); in thread_output() 151 mpp_frame_set_height(frm, height); in thread_output() 242 RK_U32 height = cmd->height; in mt_dec_decode() local 273 mpp_log("mpi_dec_mt_test decoder test start w %d h %d type %d\n", width, height, type); in mt_dec_decode()
|
| /rockchip-linux_mpp/mpp/ |
| H A D | mpp_impl.c | 162 RK_U32 height = mpp_frame_get_height(frame); in dump_frame() local 176 RK_U32 img_h = height / step; in dump_frame() 197 height = img_h; in dump_frame() 199 for (i = 0; i < height; i++) { in dump_frame() 206 pdes = tmp + width * height; in dump_frame() 207 for (i = 0; i < height / 2; i++) { in dump_frame() 214 size = width * height * 1.5; in dump_frame() 238 for (i = 0; i < height; i++, base_y += hor_stride) { in dump_frame() 244 for (i = 0; i < height / 2; i++, base_c += hor_stride) { in dump_frame() 255 width, height, hor_stride, ver_stride, mpp_frame_get_pts(frame)); in dump_frame() [all …]
|
| /rockchip-linux_mpp/mpp/vproc/rga/ |
| H A D | rga.c | 165 RK_U32 height = mpp_frame_get_height(frame); in config_rga_image() local 179 img->act_h = height; in config_rga_image() 252 RK_U32 height = mpp_frame_get_height(dst); in rga_control() local 256 request->clip.ymax = height - 1; in rga_control() 349 RK_U32 height = mpp_frame_get_height(frame); in rga_dup_field() local 360 mpp_assert(width > 0 && height > 0); in rga_dup_field() 361 if (fmt != RGA_FMT_YCbCr_420_SP || width == 0 || height == 0) { in rga_dup_field() 367 fd, width, height, h_str, v_str, fmt); in rga_dup_field() 375 request->src.act_h = height / 2; in rga_dup_field() 383 request->dst.act_h = height / 2; in rga_dup_field()
|
| /rockchip-linux_mpp/kmpp/base/test/ |
| H A D | kmpp_frame_test.c | 26 rk_u32 height = 1080; in main() local 34 TEST_CHECK(ret, kmpp_frame_set_height, frame, height); in main() 41 mpp_assert(val == height); in main()
|
| /rockchip-linux_mpp/mpp/hal/rkdec/ |
| H A D | vdpu34x_com.c | 56 RK_S32 vdpu34x_get_rcb_buf_size(Vdpu34xRcbInfo *info, RK_S32 width, RK_S32 height) in vdpu34x_get_rcb_buf_size() argument 68 offset += update_size_offset(info, 135, offset, height, RCB_TRANSD_COL); in vdpu34x_get_rcb_buf_size() 69 offset += update_size_offset(info, 138, offset, height, RCB_INTER_COL); in vdpu34x_get_rcb_buf_size() 70 offset += update_size_offset(info, 142, offset, height, RCB_FILT_COL); in vdpu34x_get_rcb_buf_size() 230 RK_U32 vdpu34x_get_colmv_size(RK_U32 width, RK_U32 height, RK_U32 ctu_size, in vdpu34x_get_colmv_size() argument 239 RK_U32 seg_cnt_h = MPP_ALIGN(height, segment_h) / segment_h; in vdpu34x_get_colmv_size() 246 RK_U32 colmv_block_size_h = MPP_ALIGN(height, 64) / colmv_size; in vdpu34x_get_colmv_size()
|
| H A D | vdpu382_com.c | 56 RK_S32 vdpu382_get_rcb_buf_size(Vdpu382RcbInfo *info, RK_S32 width, RK_S32 height) in vdpu382_get_rcb_buf_size() argument 68 offset += update_size_offset(info, 135, offset, height, RCB_TRANSD_COL); in vdpu382_get_rcb_buf_size() 69 offset += update_size_offset(info, 138, offset, height, RCB_INTER_COL); in vdpu382_get_rcb_buf_size() 70 offset += update_size_offset(info, 142, offset, height, RCB_FILT_COL); in vdpu382_get_rcb_buf_size() 258 RK_U32 vdpu382_get_colmv_size(RK_U32 width, RK_U32 height, RK_U32 ctu_size, in vdpu382_get_colmv_size() argument 267 RK_U32 seg_cnt_h = MPP_ALIGN(height, segment_h) / segment_h; in vdpu382_get_colmv_size() 274 RK_U32 colmv_block_size_h = MPP_ALIGN(height, 64) / colmv_size; in vdpu382_get_colmv_size()
|
| /rockchip-linux_mpp/mpp/legacy/ |
| H A D | vpu_api_legacy.cpp | 99 RK_S32 height = cfg->height; in vpu_api_set_enc_cfg() local 126 mpp_log("width %4d height %4d format %d:%x\n", width, height, cfg->format, fmt); in vpu_api_set_enc_cfg() 134 mpp_assert(height); in vpu_api_set_enc_cfg() 138 mpp_enc_cfg_set_s32(enc_cfg, "prep:height", height); in vpu_api_set_enc_cfg() 165 mpp_enc_cfg_set_s32(enc_cfg, "prep:ver_stride", MPP_ALIGN(height, 8)); in vpu_api_set_enc_cfg() 235 RK_U32 height, MppFrameFormat fmt) in copy_align_raw_buffer_to_dest() argument 243 RK_U32 ver_stride = MPP_ALIGN(height, 8); in copy_align_raw_buffer_to_dest() 250 for (row = 0; row < height; row++) { in copy_align_raw_buffer_to_dest() 254 for (row = 0; row < height / 2; row++) { in copy_align_raw_buffer_to_dest() 260 for (row = 0; row < height; row++) { in copy_align_raw_buffer_to_dest() [all …]
|
| H A D | vpu_api.cpp | 279 RK_U32 height = 0; in vpu_open_context() local 321 && s->height <= 1088 && !s->extra_cfg.mpp_mode in vpu_open_context() 350 height = s->height; in vpu_open_context() 407 s->height = height; in vpu_open_context()
|
| /rockchip-linux_mpp/mpp/hal/rkdec/h265d/ |
| H A D | hal_h265d_vdpu34x.c | 227 RK_S32 width, height; in hal_h265d_v345_output_pps_packet() local 257 height = (dxva_cxt->pp.PicHeightInMinCbsY << log2_min_cb_size); in hal_h265d_v345_output_pps_packet() 260 mpp_put_bits(&bp, height , 16); in hal_h265d_v345_output_pps_packet() 351 RK_S32 ctu_height_in_pic = (height + in hal_h265d_v345_output_pps_packet() 374 RK_S32 pic_in_cts_height = (height + in hal_h265d_v345_output_pps_packet() 392 row_height[0] = (height + MaxCUWidth - 1) / MaxCUWidth; in hal_h265d_v345_output_pps_packet() 451 RK_S32 width, height; in hal_h265d_output_pps_packet() local 483 height = (dxva_cxt->pp.PicHeightInMinCbsY << log2_min_cb_size); in hal_h265d_output_pps_packet() 486 mpp_put_bits(&bp, height , 16);//yandong in hal_h265d_output_pps_packet() 577 RK_S32 ctu_height_in_pic = (height + in hal_h265d_output_pps_packet() [all …]
|
| H A D | hal_h265d_vdpu382.c | 220 RK_S32 width, height; in hal_h265d_v382_output_pps_packet() local 250 height = (dxva_cxt->pp.PicHeightInMinCbsY << log2_min_cb_size); in hal_h265d_v382_output_pps_packet() 253 mpp_put_bits(&bp, height , 16); in hal_h265d_v382_output_pps_packet() 344 RK_S32 ctu_height_in_pic = (height + in hal_h265d_v382_output_pps_packet() 367 RK_S32 pic_in_cts_height = (height + in hal_h265d_v382_output_pps_packet() 385 row_height[0] = (height + MaxCUWidth - 1) / MaxCUWidth; in hal_h265d_v382_output_pps_packet() 440 RK_S32 width, RK_S32 height, void *dxva) in h265d_refine_rcb_size() argument 452 height = MPP_ALIGN(height, ctu_size); in h265d_refine_rcb_size() 471 if (height >= 8192 && tile_col_cut_num) in h265d_refine_rcb_size() 472 rcb_bits = tile_col_cut_num ? (MPP_ALIGN(height - 8192, 4) << 1) : 0; in h265d_refine_rcb_size() [all …]
|
| /rockchip-linux_mpp/mpp/hal/rkdec/vp9d/ |
| H A D | hal_vp9d_vdpu34x.c | 65 RK_S32 height; member 275 RK_S32 width, RK_S32 height, void* data) in vp9d_refine_rcb_size() argument 284 height = MPP_ALIGN(height, VP9_CTU_SIZE); in vp9d_refine_rcb_size() 298 if (height > 8192) in vp9d_refine_rcb_size() 299 rcb_bits = (MPP_ALIGN(height - 8192, 4) << 1) + ext_align_size; in vp9d_refine_rcb_size() 324 rcb_bits = height * (4 + 24 * bit_depth); in vp9d_refine_rcb_size() 326 rcb_bits = height * (4 + 16 * bit_depth); in vp9d_refine_rcb_size() 338 RK_S32 height = vp9_ver_align(pic_param->height); in hal_vp9d_rcb_info_update() local 344 hw_ctx->height != height) { in hal_vp9d_rcb_info_update() 346 hw_ctx->rcb_buf_size = vdpu34x_get_rcb_buf_size(hw_ctx->rcb_info, width, height); in hal_vp9d_rcb_info_update() [all …]
|
| H A D | hal_vp9d_vdpu382.c | 65 RK_S32 height; member 276 RK_S32 width, RK_S32 height, void* data) in vp9d_refine_rcb_size() argument 285 height = MPP_ALIGN(height, VP9_CTU_SIZE); in vp9d_refine_rcb_size() 301 if ((height >= 8192) && (num_tiles_col > 1)) in vp9d_refine_rcb_size() 302 rcb_bits = (MPP_ALIGN(height - 8192, 4) << 1); in vp9d_refine_rcb_size() 335 rcb_bits = height * (4 + 24 * bit_depth); in vp9d_refine_rcb_size() 337 rcb_bits = height * (4 + 16 * bit_depth); in vp9d_refine_rcb_size() 350 RK_S32 height = vp9_ver_align(pic_param->height); in hal_vp9d_rcb_info_update() local 356 hw_ctx->height != height) { in hal_vp9d_rcb_info_update() 358 hw_ctx->rcb_buf_size = vdpu382_get_rcb_buf_size(hw_ctx->rcb_info, width, height); in hal_vp9d_rcb_info_update() [all …]
|
| /rockchip-linux_mpp/mpp/codec/dec/dummy/ |
| H A D | dummy_dec_api.c | 193 RK_U32 width, height; in dummy_dec_parse() local 205 height = DUMMY_DEC_FRAME_HEIGHT; in dummy_dec_parse() 215 height = DUMMY_DEC_FRAME_NEW_HEIGHT; in dummy_dec_parse() 219 mpp_frame_set_height(frame, height); in dummy_dec_parse() 221 mpp_frame_set_ver_stride(frame, MPP_ALIGN(height, 16)); in dummy_dec_parse()
|
| /rockchip-linux_mpp/mpp/codec/dec/h263/ |
| H A D | h263d_parser.c | 54 RK_S32 height; member 73 RK_S32 height; member 123 pp->vop_height = hdr_curr->height; in h263d_fill_picture_parameters() 171 hdr_curr->height = h263d_fmt_to_dimension[val][1]; in h263_parse_picture_header() 172 if (!hdr_curr->width && !hdr_curr->height) { in h263_parse_picture_header() 437 p->height = p->hdr_curr.height; in mpp_h263_parser_decode() 489 mpp_frame_set_height(frame, p->height); in mpp_h263_parser_setup_hal_output() 491 mpp_frame_set_ver_stride(frame, MPP_ALIGN(p->height, 16)); in mpp_h263_parser_setup_hal_output()
|
| /rockchip-linux_mpp/mpp/hal/vpu/jpege/ |
| H A D | hal_jpege_vepu2_v2.c | 193 RK_U32 height = ctx->cfg->prep.height; in hal_jpege_vepu2_get_task() local 194 RK_U32 buf_size = width * height / 2; in hal_jpege_vepu2_get_task() 197 if (width * height <= 1280 * 720 && (height <= 720 || width <= 720)) in hal_jpege_vepu2_get_task() 251 RK_U32 mb_h = MPP_ALIGN(height, 16) / 16; in hal_jpege_vepu2_get_task() 346 cfg.height = syntax->height; in hal_jpege_vepu2_set_extra_info() 374 RK_U32 height = syntax->height; in hal_jpege_vepu2_gen_regs() local 377 RK_U32 ver_stride = MPP_ALIGN(height, 16); in hal_jpege_vepu2_gen_regs() 404 MPP_SWAP(RK_U32, width, height); in hal_jpege_vepu2_gen_regs() 414 syntax->width, syntax->height); in hal_jpege_vepu2_gen_regs() 418 y_fill = (ver_stride - height); in hal_jpege_vepu2_gen_regs() [all …]
|
| /rockchip-linux_mpp/osal/linux/ |
| H A D | drm_mode.h | 332 __u32 width, height; member 344 __u32 width, height; member 434 __u32 height; member 445 __u32 height; member 498 __u32 height; member
|
| /rockchip-linux_mpp/inc/ |
| H A D | mpp_sys_cfg_st.h | 40 RK_U32 height; member 52 RK_U32 height; member
|
| /rockchip-linux_mpp/mpp/hal/vpu/h264e/ |
| H A D | hal_h264e_vepu_v2.c | 34 RK_S32 height; member 309 RK_U32 height = cfg->height; in h264e_vepu_prep_setup() local 326 MPP_SWAP(RK_U32, width, height); in h264e_vepu_prep_setup() 331 prep->src_h = height; in h264e_vepu_prep_setup() 522 p->height = prep->height; in h264e_vepu_mbrc_setup() 524 p->mb_h = MPP_ALIGN(prep->height, 16) / 16; in h264e_vepu_mbrc_setup() 525 p->pels = p->width * p->height; in h264e_vepu_mbrc_setup() 676 RK_U32 mb_per_col = (cfg->prep.height + 15) / 16; in h264e_vepu_slice_split_cfg()
|