| /OK3568_Linux_fs/external/mpp/mpp/hal/vpu/common/ |
| H A D | vepu_common.c | 159 RK_S32 hor_stride, RK_S32 pixel_size) in check_stride_by_pixel() argument 161 if (!workaround && hor_stride < width * pixel_size) { in check_stride_by_pixel() 163 hor_stride, width, pixel_size); in check_stride_by_pixel() 165 hor_stride, pixel_size, hor_stride * pixel_size); in check_stride_by_pixel() 172 static RK_S32 check_8_pixel_aligned(RK_S32 workaround, RK_S32 hor_stride, in check_8_pixel_aligned() argument 176 if (!workaround && hor_stride != MPP_ALIGN(hor_stride, pixel_aign * pixel_size)) { in check_8_pixel_aligned() 180 MPP_ALIGN(hor_stride, pixel_aign * pixel_size)); in check_8_pixel_aligned() 189 RK_U32 hor_stride = stride; in get_vepu_pixel_stride() local 206 if (check_8_pixel_aligned(cfg->not_8_pixel, hor_stride, 8, 1, "YUV420SP")) { in get_vepu_pixel_stride() 207 hor_stride = MPP_ALIGN(hor_stride, 8); in get_vepu_pixel_stride() [all …]
|
| /OK3568_Linux_fs/external/rockit/mpi/example/common/ |
| H A D | test_comm_imgproc.cpp | 444 RK_S32 hor_stride, RK_S32 pixel_size) { in util_check_stride_by_pixel() argument 445 if (!workaround && hor_stride < width * pixel_size) { in util_check_stride_by_pixel() 447 hor_stride, width, pixel_size); in util_check_stride_by_pixel() 449 hor_stride, pixel_size, hor_stride * pixel_size); in util_check_stride_by_pixel() 456 static RK_S32 util_check_8_pixel_aligned(RK_S32 workaround, RK_S32 hor_stride, in util_check_8_pixel_aligned() argument 459 if (!workaround && hor_stride != RK_ALIGN(hor_stride, pixel_aign * pixel_size)) { in util_check_8_pixel_aligned() 463 RK_ALIGN(hor_stride, pixel_aign * pixel_size)); in util_check_8_pixel_aligned() 471 RK_U32 hor_stride, RK_U32 ver_stride, PIXEL_FORMAT_E fmt, in TEST_COMM_FillImage() argument 475 RK_U8 *buf_c = buf + hor_stride * ver_stride; in TEST_COMM_FillImage() 484 for (y = 0; y < height; y++, p += hor_stride) { in TEST_COMM_FillImage() [all …]
|
| /OK3568_Linux_fs/external/mpp/utils/ |
| H A D | utils.c | 442 RK_S32 hor_stride, RK_S32 pix_w, FILE *fp) in read_with_pixel_width() argument 447 if (hor_stride < width * pix_w) { in read_with_pixel_width() 449 8 * pix_w, hor_stride, width, pix_w); in read_with_pixel_width() 453 hor_stride = width * pix_w; in read_with_pixel_width() 457 RK_S32 read_size = fread(buf + row * hor_stride, 1, width * pix_w, fp); in read_with_pixel_width() 473 RK_U32 hor_stride, RK_U32 ver_stride, MppFrameFormat fmt) in read_image() argument 479 RK_U8 *buf_u = buf_y + hor_stride * ver_stride; // NOTE: diff from gen_yuv_image in read_image() 480 RK_U8 *buf_v = buf_u + hor_stride * ver_stride / 4; // NOTE: diff from gen_yuv_image in read_image() 536 read_size = fread(buf_y + row * hor_stride, 1, width, fp); in read_image() 544 read_size = fread(buf_u + row * hor_stride, 1, width, fp); in read_image() [all …]
|
| H A D | utils.h | 69 RK_U32 hor_stride, RK_U32 ver_stride, 72 RK_U32 hor_stride, RK_U32 ver_stride, MppFrameFormat fmt,
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/vpu/jpege/ |
| H A D | hal_jpege_vepu1_v2.c | 147 RK_U32 hor_stride = syntax->hor_stride; in hal_jpege_vepu1_set_extra_info() local 156 offset = 16 * start_mbrow * hor_stride; in hal_jpege_vepu1_set_extra_info() 163 offset = hor_stride * ver_stride + hor_stride * start_mbrow * 16 / 2; in hal_jpege_vepu1_set_extra_info() 165 offset = hor_stride * start_mbrow * 16 / 4 + hor_stride * ver_stride; in hal_jpege_vepu1_set_extra_info() 172 offset = hor_stride * start_mbrow * 16 / 4 + hor_stride * ver_stride * 5 / 4; in hal_jpege_vepu1_set_extra_info() 180 offset = start_mbrow * hor_stride; in hal_jpege_vepu1_set_extra_info() 202 RK_U32 hor_stride = 0; in hal_jpege_vepu1_gen_regs() local 234 hor_stride = get_vepu_pixel_stride(&ctx->stride_cfg, width, in hal_jpege_vepu1_gen_regs() 235 syntax->hor_stride, fmt); in hal_jpege_vepu1_gen_regs() 238 if ((hor_stride & 0x7) || (ver_stride & 0x1) || (hor_stride >= (1 << 15))) { in hal_jpege_vepu1_gen_regs() [all …]
|
| H A D | hal_jpege_vepu2_v2.c | 345 cfg.hor_stride = syntax->hor_stride; in hal_jpege_vepu2_set_extra_info() 386 RK_U32 hor_stride = 0; in hal_jpege_vepu2_gen_regs() local 417 hor_stride = get_vepu_pixel_stride(&ctx->stride_cfg, width, in hal_jpege_vepu2_gen_regs() 418 syntax->hor_stride, fmt); in hal_jpege_vepu2_gen_regs() 421 if ((hor_stride & 0x7) || (ver_stride & 0x1) || (hor_stride >= (1 << 15))) { in hal_jpege_vepu2_gen_regs() 423 syntax->hor_stride, syntax->ver_stride, in hal_jpege_vepu2_gen_regs() 473 regs[61] = hor_stride; in hal_jpege_vepu2_gen_regs() 667 cfg.hor_stride = syntax->hor_stride; in multi_core_start()
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/enc/vp8/ |
| H A D | vp8e_api_v2.c | 76 prep->hor_stride = 1280; in vp8e_init() 210 (src->hor_stride < 0 || src->hor_stride > 7680) || in vp8e_proc_prep_cfg() 214 src->hor_stride, src->ver_stride); in vp8e_proc_prep_cfg() 226 dst->hor_stride = src->hor_stride; in vp8e_proc_prep_cfg() 232 if (dst->height > dst->hor_stride || dst->width > dst->ver_stride) { in vp8e_proc_prep_cfg() 234 dst->width, dst->height, dst->hor_stride, dst->ver_stride); in vp8e_proc_prep_cfg() 238 if (dst->width > dst->hor_stride || dst->height > dst->ver_stride) { in vp8e_proc_prep_cfg() 240 dst->width, dst->height, dst->hor_stride, dst->ver_stride); in vp8e_proc_prep_cfg() 246 dst->width, dst->height, dst->hor_stride, dst->ver_stride, dst->format); in vp8e_proc_prep_cfg()
|
| /OK3568_Linux_fs/external/mpp/mpp/ |
| H A D | mpp_impl.cpp | 159 RK_U32 hor_stride = mpp_frame_get_hor_stride(frame); in dump_frame() local 168 if (hor_stride > w || ver_stride > h) { in dump_frame() 169 RK_U32 step = MPP_MAX((hor_stride + w - 1) / w, in dump_frame() 180 psrc += step * hor_stride; in dump_frame() 182 psrc = p_buf + hor_stride * ver_stride; in dump_frame() 190 psrc += step * hor_stride; in dump_frame() 199 psrc += hor_stride; in dump_frame() 201 psrc = p_buf + hor_stride * ver_stride; in dump_frame() 207 psrc += hor_stride; in dump_frame() 216 size = hor_stride * ver_stride * 3 / 2; in dump_frame() [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/vpu/h264e/ |
| H A D | hal_h264e_vepu_v2.c | 400 RK_S32 hor_stride = cfg->hor_stride; in h264e_vepu_prep_setup() local 406 get_vepu_pixel_stride(stride_cfg, prep->src_w, hor_stride, format); in h264e_vepu_prep_setup() 408 hor_stride = stride_cfg->pixel_stride * stride_cfg->pixel_size; in h264e_vepu_prep_setup() 412 prep->offset_cb = hor_stride * ver_stride; in h264e_vepu_prep_setup() 413 prep->size_y = hor_stride * MPP_ALIGN(prep->src_h, 16); in h264e_vepu_prep_setup() 414 prep->size_c = hor_stride / 2 * MPP_ALIGN(prep->src_h / 2, 8); in h264e_vepu_prep_setup() 417 prep->offset_cb = hor_stride * ver_stride; in h264e_vepu_prep_setup() 418 prep->offset_cr = prep->offset_cb + ((hor_stride * ver_stride) / 4); in h264e_vepu_prep_setup() 419 prep->size_y = hor_stride * MPP_ALIGN(prep->src_h, 16); in h264e_vepu_prep_setup() 420 prep->size_c = hor_stride / 2 * MPP_ALIGN(prep->src_h / 2, 8); in h264e_vepu_prep_setup() [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/legacy/ |
| H A D | vpu_api_legacy.cpp | 225 RK_U32 hor_stride = MPP_ALIGN(width, 16); in copy_align_raw_buffer_to_dest() local 227 RK_U8 *dst_u = dst_buf + hor_stride * ver_stride; in copy_align_raw_buffer_to_dest() 228 RK_U8 *dst_v = dst_u + hor_stride * ver_stride / 4; in copy_align_raw_buffer_to_dest() 233 memcpy(dst_buf + row * hor_stride, src_buf + index, width); in copy_align_raw_buffer_to_dest() 237 memcpy(dst_u + row * hor_stride, src_buf + index, width); in copy_align_raw_buffer_to_dest() 243 memcpy(dst_buf + row * hor_stride, src_buf + index, width); in copy_align_raw_buffer_to_dest() 247 memcpy(dst_u + row * hor_stride / 2, src_buf + index, width / 2); in copy_align_raw_buffer_to_dest() 251 memcpy(dst_v + row * hor_stride / 2, src_buf + index, width / 2); in copy_align_raw_buffer_to_dest() 258 memcpy(dst_buf + row * hor_stride * 4, src_buf + row * width * 4, width * 4); in copy_align_raw_buffer_to_dest() 680 RK_U32 hor_stride = MPP_ALIGN(width, 16); in decode() local [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/vpu/jpegd/ |
| H A D | hal_jpegd_common.c | 500 stride = s->hor_stride * 2; in jpegd_setup_output_fmt() 507 stride = s->hor_stride * 4; in jpegd_setup_output_fmt() 555 mpp_frame_set_hor_stride_pixel(frm, s->hor_stride); in jpegd_setup_output_fmt() 564 MPP_RET jpeg_image_check_size(RK_U32 hor_stride, RK_U32 ver_stride) in jpeg_image_check_size() argument 568 if (hor_stride > MAX_WIDTH || ver_stride > MAX_HEIGHT || in jpeg_image_check_size() 569 hor_stride < MIN_WIDTH || ver_stride < MIN_HEIGHT || in jpeg_image_check_size() 570 hor_stride * ver_stride > MAX_STREAM_LENGTH) { in jpeg_image_check_size() 571 mpp_err_f("unsupported resolution: %dx%d\n", hor_stride, ver_stride); in jpeg_image_check_size()
|
| /OK3568_Linux_fs/external/rknpu2/examples/rknn_yolov5_demo/utils/ |
| H A D | mpp_encoder.cpp | 18 if (enc_params.hor_stride == 0) { in InitParams() 19 enc_params.hor_stride = MPP_ALIGN(enc_params.width, 16); in InitParams() 38 (MPP_ALIGN(enc_params.hor_stride, 32) >> 5) * in InitParams() 40 (MPP_ALIGN(enc_params.hor_stride, 64) >> 6) * in InitParams() 47 …this->frame_size = MPP_ALIGN(enc_params.hor_stride, 64) * MPP_ALIGN(enc_params.ver_stride, 64) * 3… in InitParams() 56 …this->frame_size = MPP_ALIGN(enc_params.hor_stride, 64) * MPP_ALIGN(enc_params.ver_stride, 64) * 2; in InitParams() 72 … this->frame_size = MPP_ALIGN(enc_params.hor_stride, 64) * MPP_ALIGN(enc_params.ver_stride, 64); in InitParams() 76 …this->frame_size = MPP_ALIGN(enc_params.hor_stride, 64) * MPP_ALIGN(enc_params.ver_stride, 64) * 4; in InitParams() 117 mpp_enc_cfg_set_s32(cfg, "prep:hor_stride", enc_params.hor_stride); in SetupEncCfg() 519 mpp_frame_set_hor_stride(frame, enc_params.hor_stride); in Encode()
|
| H A D | mpp_decoder.cpp | 177 RK_U32 hor_stride = mpp_frame_get_hor_stride(frame); in Decode() local 186 hor_width, ver_height, hor_stride, ver_stride, buf_size, pts, dts); in Decode() 256 … callback(this->userdata, hor_stride, ver_stride, hor_width, ver_height, format, fd, data_vir); in Decode()
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/enc/jpeg/ |
| H A D | jpege_api_v2.c | 166 dst->hor_stride = src->hor_stride; in jpege_proc_prep_cfg() 184 if (dst->height > dst->hor_stride || dst->width > dst->ver_stride) { in jpege_proc_prep_cfg() 186 dst->width, dst->height, dst->hor_stride, dst->ver_stride); in jpege_proc_prep_cfg() 190 if (dst->width > dst->hor_stride || dst->height > dst->ver_stride) { in jpege_proc_prep_cfg() 192 dst->width, dst->height, dst->hor_stride, dst->ver_stride); in jpege_proc_prep_cfg() 203 dst->hor_stride, dst->ver_stride); in jpege_proc_prep_cfg() 485 syntax->hor_stride = prep->hor_stride; in jpege_proc_hal()
|
| /OK3568_Linux_fs/external/mpp/test/ |
| H A D | mpi_enc_test.c | 81 RK_U32 hor_stride; member 153 p->hor_stride = (cmd->hor_stride) ? (cmd->hor_stride) : in test_ctx_init() 179 (MPP_ALIGN(p->hor_stride, 32) >> 5) * in test_ctx_init() 181 (MPP_ALIGN(p->hor_stride, 64) >> 6) * in test_ctx_init() 218 p->frame_size = MPP_ALIGN(p->hor_stride, 64) * MPP_ALIGN(p->ver_stride, 64) * 3 / 2; in test_ctx_init() 227 p->frame_size = MPP_ALIGN(p->hor_stride, 64) * MPP_ALIGN(p->ver_stride, 64) * 2; in test_ctx_init() 243 p->frame_size = MPP_ALIGN(p->hor_stride, 64) * MPP_ALIGN(p->ver_stride, 64); in test_ctx_init() 247 p->frame_size = MPP_ALIGN(p->hor_stride, 64) * MPP_ALIGN(p->ver_stride, 64) * 4; in test_ctx_init() 316 mpp_enc_cfg_set_s32(cfg, "prep:hor_stride", p->hor_stride); in test_mpp_enc_cfg_setup() 587 p->hor_stride, p->ver_stride, p->fmt); in test_mpp_run() [all …]
|
| H A D | mpi_enc_mt_test.cpp | 82 RK_U32 hor_stride; member 164 p->hor_stride = (cmd->hor_stride) ? (cmd->hor_stride) : in mt_test_ctx_init() 224 p->frame_size = MPP_ALIGN(p->hor_stride, 64) * MPP_ALIGN(p->ver_stride, 64) * 3 / 2; in mt_test_ctx_init() 233 p->frame_size = MPP_ALIGN(p->hor_stride, 64) * MPP_ALIGN(p->ver_stride, 64) * 2; in mt_test_ctx_init() 249 p->frame_size = MPP_ALIGN(p->hor_stride, 64) * MPP_ALIGN(p->ver_stride, 64); in mt_test_ctx_init() 253 p->frame_size = MPP_ALIGN(p->hor_stride, 64) * MPP_ALIGN(p->ver_stride, 64) * 4; in mt_test_ctx_init() 321 mpp_enc_cfg_set_s32(cfg, "prep:hor_stride", p->hor_stride); in test_mt_cfg_setup() 703 p->hor_stride, p->ver_stride, p->fmt); in enc_test_input() 719 ret = fill_image((RK_U8 *)buf, p->width, p->height, p->hor_stride, in enc_test_input() 746 mpp_frame_set_hor_stride(frame, p->hor_stride); in enc_test_input()
|
| /OK3568_Linux_fs/external/mpp/mpp/vproc/ |
| H A D | mpp_dec_vproc.cpp | 360 RK_U32 hor_stride = mpp_frame_get_hor_stride(frm); in dec_vproc_set_dei_v2() local 370 dump_mppbuffer(buf, "/data/dump/dump_in.yuv", hor_stride, ver_stride); in dec_vproc_set_dei_v2() 435 params.param.com.hor_stride = hor_stride;//img.act_w; in dec_vproc_set_dei_v2() 454 dump_mppbuffer(dst0, "/data/dump/dump_output.yuv", hor_stride, ver_stride); in dec_vproc_set_dei_v2() 474 dump_mppbuffer(dst0, "/data/dump/dump_output.yuv", hor_stride, ver_stride); in dec_vproc_set_dei_v2() 477 dump_mppbuffer(dst1, "/data/dump/dump_output.yuv", hor_stride, ver_stride); in dec_vproc_set_dei_v2() 481 … dump_mppbuffer(dst1, "/data/dump/dump_output.yuv", hor_stride, mpp_frame_get_height(frm)); in dec_vproc_set_dei_v2() 484 … dump_mppbuffer(dst0, "/data/dump/dump_output.yuv", hor_stride, mpp_frame_get_height(frm)); in dec_vproc_set_dei_v2() 541 params.param.com.width = hor_stride; in dec_vproc_set_dei_v2() 543 params.param.com.hor_stride = hor_stride;//img.act_w; in dec_vproc_set_dei_v2() [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/rkenc/common/ |
| H A D | vepu540c_common.c | 101 RK_U32 hor_stride = syn->hor_stride; in vepu540c_jpeg_set_patch_info() local 103 RK_U32 frame_size = hor_stride * ver_stride; in vepu540c_jpeg_set_patch_info() 202 if (syn->hor_stride) { in vepu540c_set_jpeg_reg() 203 stridey = syn->hor_stride; in vepu540c_set_jpeg_reg()
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/enc/h265/ |
| H A D | h265e_api.c | 122 prep->hor_stride = 1280; in h265e_init() 397 dst->hor_stride = src->hor_stride; in h265e_proc_prep_cfg() 405 if (dst->height > dst->hor_stride || dst->width > dst->ver_stride) { in h265e_proc_prep_cfg() 407 dst->width, dst->height, dst->hor_stride, dst->ver_stride); in h265e_proc_prep_cfg() 411 if (dst->width > dst->hor_stride || dst->height > dst->ver_stride) { in h265e_proc_prep_cfg() 413 dst->width, dst->height, dst->hor_stride, dst->ver_stride); in h265e_proc_prep_cfg() 442 dst->hor_stride, dst->ver_stride); in h265e_proc_prep_cfg()
|
| /OK3568_Linux_fs/debian/packages-patches/mpv/0.29.1/ |
| H A D | 0002-HACK-vo_xv-Support-dma-buffer-rendering.patch | 53 + int hor_stride; 135 +static void xv_send_dma_params(struct vo *vo, int hor_stride, int ver_stride) 147 + XvSetPortAttribute(vo->x11->display, ctx->xv_port, atom, hor_stride); 244 + xv_send_dma_params(vo, dma_desc->hor_stride, dma_desc->ver_stride); 264 + dma_desc->hor_stride = layer->planes[0].pitch; 266 + layer->planes[1].offset / dma_desc->hor_stride;
|
| /OK3568_Linux_fs/external/xserver/glamor/ |
| H A D | glamor_xv.c | 656 int hor_stride = in glamor_xv_render_dma() local 660 int width = hor_stride; in glamor_xv_render_dma() 678 width = hor_stride / 10 * 8; in glamor_xv_render_dma() 682 hor_stride *= 1.5; in glamor_xv_render_dma() 688 hor_stride *= 1.5; in glamor_xv_render_dma() 694 hor_stride *= 2; in glamor_xv_render_dma() 708 EGL_DMA_BUF_PLANE0_PITCH_EXT, hor_stride, in glamor_xv_render_dma() 710 EGL_DMA_BUF_PLANE1_OFFSET_EXT, hor_stride * ver_stride, in glamor_xv_render_dma() 711 EGL_DMA_BUF_PLANE1_PITCH_EXT, hor_stride, in glamor_xv_render_dma() 723 EGL_DMA_BUF_PLANE0_PITCH_EXT, hor_stride, in glamor_xv_render_dma()
|
| /OK3568_Linux_fs/yocto/meta-rockchip/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.20/ |
| H A D | 0007-HACK-xvimagesink-Support-dma-buffer-rendering.patch | 302 + gint hor_stride, gint ver_stride, gboolean afbc) 315 + prop_atom, hor_stride); 498 + gint hor_stride, ver_stride; 510 + hor_stride = vmeta->stride[0]; 514 + ver_stride = vmeta->offset[1] / hor_stride; 516 + hor_stride = xvimagesink->info.width; 521 + hor_stride, ver_stride,
|
| /OK3568_Linux_fs/yocto/meta-rockchip/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22/ |
| H A D | 0007-HACK-xvimagesink-Support-dma-buffer-rendering.patch | 302 + gint hor_stride, gint ver_stride, gboolean afbc) 315 + prop_atom, hor_stride); 498 + gint hor_stride, ver_stride; 510 + hor_stride = vmeta->stride[0]; 514 + ver_stride = vmeta->offset[1] / hor_stride; 516 + hor_stride = xvimagesink->info.width; 521 + hor_stride, ver_stride,
|
| /OK3568_Linux_fs/buildroot/package/gstreamer1/gst1-plugins-base/ |
| H A D | 0007-HACK-xvimagesink-Support-dma-buffer-rendering.patch | 302 + gint hor_stride, gint ver_stride, gboolean afbc) 315 + prop_atom, hor_stride); 498 + gint hor_stride, ver_stride; 510 + hor_stride = vmeta->stride[0]; 514 + ver_stride = vmeta->offset[1] / hor_stride; 516 + hor_stride = xvimagesink->info.width; 521 + hor_stride, ver_stride,
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/enc/h264/ |
| H A D | h264e_api_v2.c | 139 prep->hor_stride = 1280; in init_h264e_cfg_set() 315 dst->hor_stride = src->hor_stride; in h264e_proc_prep_cfg() 323 if (dst->height > dst->hor_stride || dst->width > dst->ver_stride) { in h264e_proc_prep_cfg() 325 dst->width, dst->height, dst->hor_stride, dst->ver_stride); in h264e_proc_prep_cfg() 329 if (dst->width > dst->hor_stride || dst->height > dst->ver_stride) { in h264e_proc_prep_cfg() 331 dst->width, dst->height, dst->hor_stride, dst->ver_stride); in h264e_proc_prep_cfg() 360 dst->hor_stride, dst->ver_stride); in h264e_proc_prep_cfg()
|