Home
last modified time | relevance | path

Searched refs:w (Results 1 – 25 of 39) sorted by relevance

12

/rockchip-linux_mpp/mpp/vproc/iep2/test/
H A Diep2_test.c35 RK_S32 w; member
123 if (cfg->w < 16 || cfg->w > 1920) { in check_input_cmd()
124 mpp_err("invalid width %d\n", cfg->w); in check_input_cmd()
161 static inline size_t get_frm_size(RK_S32 fmt, int w, int h) in get_frm_size() argument
165 return w * h * 2; in get_frm_size()
167 return w * h * 3 / 2; in get_frm_size()
174 static void iep2_test_set_img(iep_com_ctx *ctx, int w, int h, in iep2_test_set_img() argument
177 RK_S32 y_size = w * h; in iep2_test_set_img()
199 size_t srcfrmsize = get_frm_size(cfg->src_fmt, cfg->w, cfg->h); in iep2_test()
200 size_t dstfrmsize = get_frm_size(cfg->dst_fmt, cfg->w, cfg->h); in iep2_test()
[all …]
/rockchip-linux_mpp/mpp/hal/rkenc/common/
H A Dvepu510_common.c14 RK_S32 w, RK_S32 h) in vepu510_set_roi() argument
41 if (region->x + region->w > w || region->y + region->h > h) in vepu510_set_roi()
57 region->x, region->y, region->w, region->h, w, in vepu510_set_roi()
67 reg_regions->roi_pos_rb.roi_rb_x = MPP_ALIGN(region->x + region->w, 16) >> 4; in vepu510_set_roi()
H A Dvepu541_common.c27 RK_S32 vepu541_get_roi_buf_size(RK_S32 w, RK_S32 h) in vepu541_get_roi_buf_size() argument
29 RK_S32 stride_h = MPP_ALIGN(w, 64) / 16; in vepu541_get_roi_buf_size()
37 MPP_RET vepu541_set_one_roi(void *buf, MppEncROIRegion *region, RK_S32 w, RK_S32 h) in vepu541_set_one_roi() argument
40 RK_S32 mb_w = MPP_ALIGN(w, 16) / 16; in vepu541_set_one_roi()
51 RK_S32 roi_width = (region->w + 15) / 16; in vepu541_set_one_roi()
91 MPP_RET vepu541_set_roi(void *buf, MppEncROICfg *roi, RK_S32 w, RK_S32 h) in vepu541_set_roi() argument
95 RK_S32 mb_w = MPP_ALIGN(w, 16) / 16; in vepu541_set_roi()
119 if (w <= 0 || h <= 0) { in vepu541_set_roi()
120 mpp_err_f("invalid size [%d:%d]\n", w, h); in vepu541_set_roi()
132 if (region->x + region->w > w || region->y + region->h > h) in vepu541_set_roi()
[all …]
H A Dvepu541_common.h105 RK_S32 vepu541_get_roi_buf_size(RK_S32 w, RK_S32 h);
106 MPP_RET vepu541_set_roi(void *buf, MppEncROICfg *roi, RK_S32 w, RK_S32 h);
107 MPP_RET vepu541_set_one_roi(void *buf, MppEncROIRegion *region, RK_S32 w, RK_S32 h);
H A Dvepu511_common.c102 MPP_RET vepu511_set_roi(Vepu511RoiCfg *roi_reg_base, MppEncROICfg * roi, RK_S32 w, RK_S32 h) in vepu511_set_roi() argument
124 if (region->x + region->w > w || region->y + region->h > h) in vepu511_set_roi()
138 region->x, region->y, region->w, region->h, w, h); in vepu511_set_roi()
148 reg_regions->roi_pos_rb.roi_rb_x = MPP_ALIGN(region->x + region->w, 16) >> 4; in vepu511_set_roi()
H A Dvepu540c_common.c33 RK_S32 w, RK_S32 h) in vepu540c_set_roi() argument
54 if (region->x + region->w > w || region->y + region->h > h) in vepu540c_set_roi()
70 region->x, region->y, region->w, region->h, w, in vepu540c_set_roi()
80 reg_regions->roi_pos_rb.roi_rb_x = MPP_ALIGN(region->x + region->w, 16) >> 4; in vepu540c_set_roi()
/rockchip-linux_mpp/utils/
H A Dmpp_enc_roi_utils.c127 RK_S32 w; member
189 static MPP_RET vepu54x_h265_set_roi(void *dst_buf, void *src_buf, RK_S32 w, RK_S32 h) in vepu54x_h265_set_roi() argument
193 RK_S32 mb_w = MPP_ALIGN(w, 64) / 64; in vepu54x_h265_set_roi()
226 RK_S32 mb_w = MPP_ALIGN(ctx->w, 16) / 16; in gen_vepu54x_roi()
247 if (ctx->w <= 0 || ctx->h <= 0) { in gen_vepu54x_roi()
248 mpp_err_f("invalid size [%d:%d]\n", ctx->w, ctx->h); in gen_vepu54x_roi()
255 if (region->x + region->w > ctx->w || region->y + region->h > ctx->h) in gen_vepu54x_roi()
268 region->x, region->y, region->w, region->h, ctx->w, ctx->h); in gen_vepu54x_roi()
280 RK_S32 roi_width = (region->w + 15) / 16; in gen_vepu54x_roi()
319 roi_width = (region->w + 64) / 64; in gen_vepu54x_roi()
[all …]
H A Dmpp_enc_roi_utils.h27 RK_U16 w; /**< width of ROI rectangle */ member
39 MPP_RET mpp_enc_roi_init(MppEncRoiCtx *ctx, RK_U32 w, RK_U32 h, MppCodingType type, RK_S32 count);
/rockchip-linux_mpp/mpp/vproc/iep/test/
H A Diep_test.c179 static RK_S32 get_image_size(RK_S32 w, RK_S32 h, RK_S32 fmt) in get_image_size() argument
188 img_size = w * h * 4; in get_image_size()
196 img_size = w * h * 2; in get_image_size()
202 img_size = w * h * 3 / 2; in get_image_size()
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()
237 img->act_w = w; in config_iep_img()
241 img->vir_w = w; in config_iep_img()
245 img->uv_addr = ADD_OFFSET(base, w * h); in config_iep_img()
/rockchip-linux_mpp/mpp/vproc/vdpp/test/
H A Dvdpp_test.c150 static inline size_t get_src_frm_size(RK_S32 fmt, RK_U32 w, RK_U32 h) in get_src_frm_size() argument
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()
194 static inline size_t get_dst_frm_size(RK_S32 fmt, RK_U32 w, RK_U32 h) in get_dst_frm_size() argument
198 return w * h * 3; in get_dst_frm_size()
200 return w * h * 3 / 2; in get_dst_frm_size()
207 static void vdpp_test_set_img(vdpp_com_ctx *ctx, RK_U32 w, RK_U32 h, in vdpp_test_set_img() argument
[all …]
/rockchip-linux_mpp/mpp/codec/dec/vp9/
H A Dvp9d_parser.c453 static RK_S32 update_size(Vp9CodecContext *ctx, RK_S32 w, RK_S32 h, RK_S32 fmt) in update_size() argument
457 if (w == ctx->width && h == ctx->height && ctx->pix_fmt == fmt) in update_size()
460 ctx->width = w; in update_size()
463 s->sb_cols = (w + 63) >> 6; in update_size()
465 s->cols = (w + 7) >> 3; in update_size()
635 RK_U32 w, h; in decode_parser_header() local
710 w = mpp_get_bits(&s->gb, 16) + 1; in decode_parser_header()
711 vp9d_dbg(VP9D_DBG_HEADER, "frame_size_width %d", w); in decode_parser_header()
747 w = mpp_get_bits(&s->gb, 16) + 1; in decode_parser_header()
748 vp9d_dbg(VP9D_DBG_HEADER, "frame_size_width %d", w); in decode_parser_header()
[all …]
/rockchip-linux_mpp/tools/
H A Dyuvplay6 mplayer $SRC -loop 0 -demuxer rawvideo -fps 25 -rawvideo w=$W:h=$H:size=$(($W*$H*3/2)):format=nv12
/rockchip-linux_mpp/mpp/vproc/iep2/
H A Diep2_roi.h27 int w; member
H A Diep2_roi.c34 ctx->params.xend[idx] = r->x + r->w - 1; in iep2_set_roi()
H A Diep2_osd.c59 static int iep2_osd_check(int8_t *mv, int w, int sx, int ex, int sy, int ey, in iep2_osd_check() argument
74 int8_t v = mv[i * w + j]; in iep2_osd_check()
H A Diep2.c265 r.w = ctx->params.tile_cols; in iep2_done()
271 r.w = ctx->params.osd_x_end[0] - ctx->params.osd_x_sta[0]; in iep2_done()
/rockchip-linux_mpp/mpp/
H A Dmpp_impl.c157 static void dump_frame(FILE *fp, MppFrame frame, RK_U8 *tmp, RK_U32 w, RK_U32 h) in dump_frame() argument
172 if (hor_stride > w || ver_stride > h) { in dump_frame()
173 RK_U32 step = MPP_MAX((hor_stride + w - 1) / w, in dump_frame()
/rockchip-linux_mpp/test/
H A Dmpi_enc_test.c208 RK_U32 w = p->hor_stride, h = p->ver_stride; in get_mdinfo_size() local
212 (MPP_ALIGN(w, 32) >> 5) * (MPP_ALIGN(h, 32) >> 5) * 20 : in get_mdinfo_size()
213 (MPP_ALIGN(w, 64) >> 6) * (MPP_ALIGN(h, 16) >> 4) * 16; in get_mdinfo_size()
215 md_size = (MPP_ALIGN(w, 64) >> 6) * (MPP_ALIGN(h, 64) >> 6) * 32; in get_mdinfo_size()
218 (MPP_ALIGN(w, 32) >> 5) * (MPP_ALIGN(h, 32) >> 5) * 16 : in get_mdinfo_size()
219 (MPP_ALIGN(w, 64) >> 6) * (MPP_ALIGN(h, 16) >> 4) * 16; in get_mdinfo_size()
945 region->w = 128; in test_mpp_run()
955 region->w = 256; in test_mpp_run()
984 p->roi_jpeg_cfg.regions[index].w = width; in test_mpp_run()
/rockchip-linux_mpp/mpp/hal/rkenc/h265e/
H A Dhal_h265e_vepu541.c791 MPP_RET vepu541_h265_set_roi(void *dst_buf, void *src_buf, RK_S32 w, RK_S32 h) in vepu541_h265_set_roi() argument
795 RK_S32 mb_w = MPP_ALIGN(w, 64) / 64; in vepu541_h265_set_roi()
824 RK_U32 w = ctx->cfg->prep.width; in setup_vepu541_intra_refresh() local
826 RK_U32 stride_h = MPP_ALIGN(w / 16, 4); in setup_vepu541_intra_refresh()
838 roi_buf_size = vepu541_get_roi_buf_size(w, h); in setup_vepu541_intra_refresh()
876 region->w = w; in setup_vepu541_intra_refresh()
890 region->w = 64 * ctx->cfg->rc.refresh_num + 128; in setup_vepu541_intra_refresh()
893 region->w = 64 * ctx->cfg->rc.refresh_num; in setup_vepu541_intra_refresh()
907 vepu541_set_one_roi(buf, region, w, h); in setup_vepu541_intra_refresh()
908 vepu541_h265_set_roi(dst_buf, buf, w, h); in setup_vepu541_intra_refresh()
[all …]
/rockchip-linux_mpp/mpp/hal/rkenc/h264e/
H A Dhal_h264e_vepu541.c981 RK_U32 w = ctx->sps->pic_width_in_mbs * 16; in setup_vepu541_intra_refresh() local
985 RK_U32 stride_h = MPP_ALIGN(w / 16, 4); in setup_vepu541_intra_refresh()
997 roi_buf_size = vepu541_get_roi_buf_size(w, h); in setup_vepu541_intra_refresh()
1032 region->w = w; in setup_vepu541_intra_refresh()
1046 region->w = 16 * refresh_num + 32; in setup_vepu541_intra_refresh()
1049 region->w = 16 * refresh_num; in setup_vepu541_intra_refresh()
1063 vepu541_set_one_roi(buf, region, w, h); in setup_vepu541_intra_refresh()
1087 RK_U32 w = ctx->sps->pic_width_in_mbs * 16; in setup_vepu541_roi() local
1092 RK_S32 roi_buf_size = vepu541_get_roi_buf_size(w, h); in setup_vepu541_roi()
1120 vepu541_set_roi(buf, roi, w, h); in setup_vepu541_roi()
/rockchip-linux_mpp/mpp/hal/rkenc/jpege/
H A Dhal_jpege_vepu511.c331 if (region->w == 0 || region->h == 0 || in hal_jpege_vepu511_set_roi()
332 region->x + region->w > frame_width || in hal_jpege_vepu511_set_roi()
335 i, region->x, region->y, region->w, in hal_jpege_vepu511_set_roi()
349 reg_regions->roi_cfg1.roi0_rdoq_width_m1 = (MPP_ALIGN(region->w, 16) >> 3) - 1; in hal_jpege_vepu511_set_roi()
/rockchip-linux_mpp/mpp/hal/vpu/h264e/
H A Dhal_h264e_vepu_v2.h183 MPP_RET h264e_vepu_buf_set_frame_size(HalH264eVepuBufs *bufs, RK_S32 w, RK_S32 h);
H A Dhal_h264e_vepu_v2.c225 MPP_RET h264e_vepu_buf_set_frame_size(HalH264eVepuBufs *bufs, RK_S32 w, RK_S32 h) in h264e_vepu_buf_set_frame_size() argument
227 RK_S32 aligned_w = MPP_ALIGN(w, 16); in h264e_vepu_buf_set_frame_size()
242 w, h, frm_size, bufs->frm_size); in h264e_vepu_buf_set_frame_size()
/rockchip-linux_mpp/doc/
H A DRockchip_Developer_Guide_MPP_CN.md886 | -w | 图像宽度,单位为像素。 |
896 mpi_dec_test的命令参数中,输入文件(i)和码流类型(t)为强制要求配置的参数,其他参数如输出文件(o)、图像宽度(w)、图像高度(h)和解码帧数(n)等为可选参数,可以根据不同的测试需求…
924 `I mpi_dec_test: 0xeebc01c0 decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177…
958 | -w | 图像宽度,单位为像素。 …
976 mpi_enc_test的命令参数中,图像宽度(w)、图像高度(h)和码流类型(t)为强制要求配置的参数,其他参数如输入文件(i)、输出文件(o)、编码帧数(n)和色彩空间格式及内存排布方式(f)等…
1003 mpi_enc_test -w 1920 -h 1080 -t 7 -i /data/ocrean.yuv -o /data/out.h264 -n 30
/rockchip-linux_mpp/inc/
H A Drk_venc_cmd.h1032 RK_U16 w; /**< width of ROI rectangle */ member
1077 RK_U16 w; /* width of ROI rectangle */ member

12