| /rockchip-linux_mpp/mpp/hal/rkenc/common/ |
| H A D | vepu540c_common.c | 103 RK_U32 frame_size = hor_stride * ver_stride; in vepu540c_jpeg_set_patch_info() local 114 u_offset = frame_size; in vepu540c_jpeg_set_patch_info() 115 v_offset = frame_size * 5 / 4; in vepu540c_jpeg_set_patch_info() 119 u_offset = frame_size; in vepu540c_jpeg_set_patch_info() 120 v_offset = frame_size; in vepu540c_jpeg_set_patch_info() 123 u_offset = frame_size; in vepu540c_jpeg_set_patch_info() 124 v_offset = frame_size * 3 / 2; in vepu540c_jpeg_set_patch_info() 139 u_offset = frame_size; in vepu540c_jpeg_set_patch_info() 140 v_offset = frame_size * 5 / 4; in vepu540c_jpeg_set_patch_info()
|
| /rockchip-linux_mpp/mpp/hal/rkenc/jpege/ |
| H A D | hal_jpege_vepu511.c | 48 RK_U32 frame_size; member 132 RK_U32 frame_size = hor_stride * ver_stride; in vepu511_jpeg_set_patch_info() local 142 u_offset = frame_size; in vepu511_jpeg_set_patch_info() 143 v_offset = frame_size * 5 / 4; in vepu511_jpeg_set_patch_info() 147 u_offset = frame_size; in vepu511_jpeg_set_patch_info() 148 v_offset = frame_size; in vepu511_jpeg_set_patch_info() 151 u_offset = frame_size; in vepu511_jpeg_set_patch_info() 152 v_offset = frame_size * 3 / 2; in vepu511_jpeg_set_patch_info() 161 u_offset = frame_size; in vepu511_jpeg_set_patch_info() 162 v_offset = frame_size; in vepu511_jpeg_set_patch_info() [all …]
|
| H A D | hal_jpege_vepu540c.c | 58 RK_U32 frame_size; member
|
| H A D | hal_jpege_vpu720.c | 96 RK_U32 frame_size; member
|
| /rockchip-linux_mpp/mpp/hal/rkenc/h265e/ |
| H A D | hal_h265e_vepu540c.c | 88 RK_U32 frame_size; member 126 RK_U32 frame_size; in vepu540c_h265_setup_hal_bufs() local 141 frame_size = MPP_ALIGN(prep->width, 16) * MPP_ALIGN(prep->height, 16); in vepu540c_h265_setup_hal_bufs() 149 frame_size = frame_size * 3 / 2; in vepu540c_h265_setup_hal_bufs() 156 frame_size *= 2; in vepu540c_h265_setup_hal_bufs() 159 frame_size *= 3; in vepu540c_h265_setup_hal_bufs() 162 frame_size *= 4; in vepu540c_h265_setup_hal_bufs() 206 if (frame_size > ctx->frame_size || new_max_cnt > old_max_cnt) { in vepu540c_h265_setup_hal_bufs() 219 ctx->frame_size, frame_size, old_max_cnt, new_max_cnt); in vepu540c_h265_setup_hal_bufs() 223 ctx->frame_size = frame_size; in vepu540c_h265_setup_hal_bufs() [all …]
|
| H A D | hal_h265e_vepu541.c | 102 RK_U32 frame_size; member 150 RK_U32 frame_size; in vepu54x_h265_setup_hal_bufs() local 163 frame_size = MPP_ALIGN(prep->width, 16) * MPP_ALIGN(prep->height, 16); in vepu54x_h265_setup_hal_bufs() 171 frame_size = frame_size * 3 / 2; in vepu54x_h265_setup_hal_bufs() 178 frame_size *= 2; in vepu54x_h265_setup_hal_bufs() 181 frame_size *= 3; in vepu54x_h265_setup_hal_bufs() 184 frame_size *= 4; in vepu54x_h265_setup_hal_bufs() 197 if (frame_size > ctx->frame_size || new_max_cnt > old_max_cnt) { in vepu54x_h265_setup_hal_bufs() 210 ctx->frame_size, frame_size, old_max_cnt, new_max_cnt); in vepu54x_h265_setup_hal_bufs() 214 ctx->frame_size = frame_size; in vepu54x_h265_setup_hal_bufs() [all …]
|
| H A D | hal_h265e_vepu510.c | 142 RK_U32 frame_size; member 302 RK_U32 frame_size; in vepu510_h265_setup_hal_bufs() local 317 frame_size = MPP_ALIGN(prep->width, 16) * MPP_ALIGN(prep->height, 16); in vepu510_h265_setup_hal_bufs() 325 frame_size = frame_size * 3 / 2; in vepu510_h265_setup_hal_bufs() 332 frame_size *= 2; in vepu510_h265_setup_hal_bufs() 337 frame_size *= 3; in vepu510_h265_setup_hal_bufs() 340 frame_size *= 4; in vepu510_h265_setup_hal_bufs() 378 if (frame_size > ctx->frame_size || new_max_cnt > old_max_cnt) { in vepu510_h265_setup_hal_bufs() 395 ctx->frame_size, frame_size, old_max_cnt, new_max_cnt); in vepu510_h265_setup_hal_bufs() 399 ctx->frame_size = frame_size; in vepu510_h265_setup_hal_bufs() [all …]
|
| H A D | hal_h265e_vepu511.c | 143 RK_U32 frame_size; member 325 RK_U32 frame_size; in vepu511_h265_setup_hal_bufs() local 340 frame_size = MPP_ALIGN(prep->width, 16) * MPP_ALIGN(prep->height, 16); in vepu511_h265_setup_hal_bufs() 348 frame_size = frame_size * 3 / 2; in vepu511_h265_setup_hal_bufs() 355 frame_size *= 2; in vepu511_h265_setup_hal_bufs() 360 frame_size *= 3; in vepu511_h265_setup_hal_bufs() 363 frame_size *= 4; in vepu511_h265_setup_hal_bufs() 401 if (frame_size > ctx->frame_size || new_max_cnt > old_max_cnt) { in vepu511_h265_setup_hal_bufs() 418 ctx->frame_size, frame_size, old_max_cnt, new_max_cnt); in vepu511_h265_setup_hal_bufs() 422 ctx->frame_size = frame_size; in vepu511_h265_setup_hal_bufs() [all …]
|
| H A D | hal_h265e_vepu580.c | 203 RK_U32 frame_size; member 357 RK_U32 frame_size; in vepu580_h265_setup_hal_bufs() local 369 frame_size = MPP_ALIGN(prep->width, 16) * MPP_ALIGN(prep->height, 16); in vepu580_h265_setup_hal_bufs() 377 if (frame_size > ctx->frame_size || new_max_cnt > old_max_cnt) { in vepu580_h265_setup_hal_bufs() 390 ctx->frame_size, frame_size, old_max_cnt, new_max_cnt); in vepu580_h265_setup_hal_bufs() 394 ctx->frame_size = frame_size; in vepu580_h265_setup_hal_bufs() 1636 RK_U32 frame_size = hor_stride * ver_stride; in vepu580_h265_set_patch_info() local 1649 u_offset = frame_size; in vepu580_h265_set_patch_info() 1650 v_offset = frame_size * 5 / 4; in vepu580_h265_set_patch_info() 1654 u_offset = frame_size; in vepu580_h265_set_patch_info() [all …]
|
| /rockchip-linux_mpp/mpp/vproc/vdpp/test/ |
| H A D | vdpp_test.c | 152 RK_S32 frame_size; in get_src_frm_size() local 157 frame_size = w * h * 3 / 2; in get_src_frm_size() 172 frame_size = w * h * 2; in get_src_frm_size() 176 frame_size = w * h * 3; in get_src_frm_size() 184 frame_size = w * h * 4; in get_src_frm_size() 187 frame_size = w * h * 4; in get_src_frm_size() 191 return frame_size; in get_src_frm_size()
|
| /rockchip-linux_mpp/test/ |
| H A D | mpi_enc_mt_test.c | 81 size_t frame_size; member 215 p->frame_size = MPP_ALIGN(p->hor_stride, 64) * MPP_ALIGN(p->ver_stride, 64) * 3 / 2; in mt_test_ctx_init() 224 p->frame_size = MPP_ALIGN(p->hor_stride, 64) * MPP_ALIGN(p->ver_stride, 64) * 2; in mt_test_ctx_init() 241 p->frame_size = MPP_ALIGN(p->hor_stride, 64) * MPP_ALIGN(p->ver_stride, 64); in mt_test_ctx_init() 245 p->frame_size = MPP_ALIGN(p->hor_stride, 64) * MPP_ALIGN(p->ver_stride, 64) * 4; in mt_test_ctx_init() 537 ret = mpp_buffer_get(p->buf_grp, &p->frm_buf[i], p->frame_size + p->header_size); in mt_test_res_init() 543 ret = mpp_buffer_get(p->buf_grp, &p->pkt_buf[i], p->frame_size); in mt_test_res_init()
|
| H A D | mpi_enc_test.c | 115 size_t frame_size; member 346 p->frame_size = MPP_ALIGN(p->hor_stride, 64) * MPP_ALIGN(p->ver_stride, 64) * 3 / 2; in test_ctx_init() 355 p->frame_size = MPP_ALIGN(p->hor_stride, 64) * MPP_ALIGN(p->ver_stride, 64) * 2; in test_ctx_init() 372 p->frame_size = MPP_ALIGN(p->hor_stride, 64) * MPP_ALIGN(p->ver_stride, 64); in test_ctx_init() 376 p->frame_size = MPP_ALIGN(p->hor_stride, 64) * MPP_ALIGN(p->ver_stride, 64) * 4; in test_ctx_init() 1157 ret = mpp_buffer_get(p->buf_grp, &p->frm_buf, p->frame_size + p->header_size); in enc_test() 1163 ret = mpp_buffer_get(p->buf_grp, &p->pkt_buf, p->frame_size); in enc_test()
|
| H A D | mpi_rc2_test.c | 31 RK_U32 frame_size; // Every frame, byte member 385 frame_count, stat->frame_size, stat->psnr_y, stat->ssim_y); in mpi_rc_log_stat() 391 frame_count, stat->frame_size, stat->psnr_y, stat->ssim_y); in mpi_rc_log_stat() 833 ctx->stat.frame_size = len; in mpi_rc_enc()
|
| /rockchip-linux_mpp/mpp/codec/dec/vp8/ |
| H A D | vp8d_parser.c | 1264 static void write_ivf_frame(FILE *fp, RK_U32 frame_size, RK_U64 frame_cnt) in write_ivf_frame() argument 1268 data[0] = frame_size & 0xff; in write_ivf_frame() 1269 data[1] = (frame_size >> 8) & 0xff; in write_ivf_frame() 1270 data[2] = (frame_size >> 16) & 0xff; in write_ivf_frame() 1271 data[3] = (frame_size >> 24) & 0xff; in write_ivf_frame()
|
| /rockchip-linux_mpp/mpp/codec/dec/m2v/ |
| H A D | m2vd_parser.h | 237 RK_U32 frame_size; member
|
| H A D | m2vd_parser.c | 1416 dst->bitstream_length = p->frame_size - ((readbits >> 3) & (~7)); in m2vd_convert_to_dxva() 1488 p->frame_size = (RK_U32)mpp_packet_get_length(in_task->input_packet); in m2vd_parser_parse() 1490 mpp_set_bitread_ctx(p->bitread_ctx, p->bitstream_sw_buf, p->frame_size); in m2vd_parser_parse()
|
| /rockchip-linux_mpp/mpp/hal/vpu/vp8e/ |
| H A D | hal_vp8e_base.h | 357 RK_U32 frame_size; member
|
| H A D | hal_vp8e_vepu1_v2.c | 309 ctx->frame_size = 0; in hal_vp8e_vepu1_init_v2() 474 task->rc_task->info.bit_real = ctx->frame_size << 3; in hal_vp8e_vepu1_wait_v2()
|
| H A D | hal_vp8e_vepu2_v2.c | 313 ctx->frame_size = 0; in hal_vp8e_vepu2_init_v2() 477 task->rc_task->info.bit_real = ctx->frame_size << 3; in hal_vp8e_vepu2_wait_v2()
|
| H A D | hal_vp8e_base.c | 842 RK_S32 byte_cnt = ctx->frame_size; in write_ivf_frame() 1570 ctx->frame_size = ctx->stream_size[0] + ctx->stream_size[1] + in hal_vp8e_update_buffers() 1584 if (ctx->frame_size) { in hal_vp8e_update_buffers()
|
| /rockchip-linux_mpp/mpp/codec/dec/h265/ |
| H A D | h265d_parser.h | 619 RK_S32 frame_size; member
|
| /rockchip-linux_mpp/mpp/hal/rkenc/h264e/ |
| H A D | hal_h264e_vepu580.c | 858 RK_S32 frame_size = hor_stride * ver_stride; in vepu580_h264e_use_pass1_patch() local 884 mpp_dev_multi_offset_update(ctx->offsets, 161, frame_size); in vepu580_h264e_use_pass1_patch() 885 mpp_dev_multi_offset_update(ctx->offsets, 162, frame_size); in vepu580_h264e_use_pass1_patch()
|