Home
last modified time | relevance | path

Searched refs:ver_stride (Results 1 – 25 of 72) sorted by relevance

123

/OK3568_Linux_fs/external/mpp/mpp/codec/enc/vp8/
H A Dvp8e_api_v2.c77 prep->ver_stride = 720; in vp8e_init()
211 (src->ver_stride < 0 || src->ver_stride > 3840)) { in vp8e_proc_prep_cfg()
214 src->hor_stride, src->ver_stride); in vp8e_proc_prep_cfg()
225 dst->ver_stride = src->ver_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/hal/rkdec/
H A Dvdpu382_com.c246 RK_U32 ver_stride = 0; in vdpu382_afbc_align_calc() local
251 ver_stride = mpp_align_16(img_height); in vdpu382_afbc_align_calc()
253 ver_stride += expand; in vdpu382_afbc_align_calc()
255 mpp_frame_set_ver_stride(frame, ver_stride); in vdpu382_afbc_align_calc()
260 RK_U32 ver_stride = mpp_frame_get_ver_stride(frame); in vdpu382_setup_down_scale() local
262 RK_U32 down_scale_ver = MPP_ALIGN(ver_stride >> 1, 16); in vdpu382_setup_down_scale()
272 down_scale_y_offset = ver_stride * hor_stride * 3 / 2; in vdpu382_setup_down_scale()
H A Dvdpu34x_com.c251 RK_U32 ver_stride = 0; in vdpu34x_afbc_align_calc() local
256 ver_stride = mpp_align_16(img_height); in vdpu34x_afbc_align_calc()
258 ver_stride += expand; in vdpu34x_afbc_align_calc()
260 mpp_frame_set_ver_stride(frame, ver_stride); in vdpu34x_afbc_align_calc()
/OK3568_Linux_fs/external/mpp/mpp/hal/vpu/jpege/
H A Dhal_jpege_vepu1_v2.c148 RK_U32 ver_stride = syntax->ver_stride; in hal_jpege_vepu1_set_extra_info() local
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()
203 RK_U32 ver_stride = MPP_ALIGN(height, 16); in hal_jpege_vepu1_gen_regs() local
231 MPP_SWAP(RK_U32, width_align, ver_stride); in hal_jpege_vepu1_gen_regs()
238 if ((hor_stride & 0x7) || (ver_stride & 0x1) || (hor_stride >= (1 << 15))) { in hal_jpege_vepu1_gen_regs()
240 syntax->hor_stride, syntax->ver_stride, in hal_jpege_vepu1_gen_regs()
245 y_fill = (ver_stride - height); in hal_jpege_vepu1_gen_regs()
304 ((ver_stride >> 4) << 10) | in hal_jpege_vepu1_gen_regs()
H A Dhal_jpege_vepu2_v2.c346 cfg.ver_stride = syntax->ver_stride; in hal_jpege_vepu2_set_extra_info()
387 RK_U32 ver_stride = MPP_ALIGN(height, 16); in hal_jpege_vepu2_gen_regs() local
415 MPP_SWAP(RK_U32, width_align, ver_stride); 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()
428 y_fill = (ver_stride - height); in hal_jpege_vepu2_gen_regs()
535 (ver_stride >> 4) << 20 | in hal_jpege_vepu2_gen_regs()
668 cfg.ver_stride = syntax->ver_stride; in multi_core_start()
/OK3568_Linux_fs/external/mpp/mpp/
H A Dmpp_impl.cpp160 RK_U32 ver_stride = mpp_frame_get_ver_stride(frame); in dump_frame() local
168 if (hor_stride > w || ver_stride > h) { in dump_frame()
170 (ver_stride + h - 1) / h); in dump_frame()
182 psrc = p_buf + hor_stride * ver_stride; in dump_frame()
201 psrc = p_buf + hor_stride * ver_stride; in dump_frame()
216 size = hor_stride * ver_stride * 3 / 2; in dump_frame()
219 size = hor_stride * ver_stride * 2; in dump_frame()
222 size = hor_stride * ver_stride * 3; in dump_frame()
228 width, height, hor_stride, ver_stride, mpp_frame_get_pts(frame)); in dump_frame()
/OK3568_Linux_fs/external/rknpu2/examples/rknn_yolov5_demo/utils/
H A Dmpp_encoder.cpp21 if (enc_params.ver_stride == 0) { in InitParams()
22 enc_params.ver_stride = (MPP_ALIGN(enc_params.height, 16)); in InitParams()
39 (MPP_ALIGN(enc_params.ver_stride, 32) >> 5) * 16 : in InitParams()
41 (MPP_ALIGN(enc_params.ver_stride, 16) >> 4) * 16; 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()
118 mpp_enc_cfg_set_s32(cfg, "prep:ver_stride", enc_params.ver_stride); in SetupEncCfg()
520 mpp_frame_set_ver_stride(frame, enc_params.ver_stride); in Encode()
H A Dmpp_decoder.cpp178 RK_U32 ver_stride = mpp_frame_get_ver_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 Djpege_api_v2.c167 dst->ver_stride = src->ver_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()
486 syntax->ver_stride = prep->ver_stride; in jpege_proc_hal()
/OK3568_Linux_fs/external/mpp/test/
H A Dmpi_enc_test.c82 RK_U32 ver_stride; member
155 p->ver_stride = (cmd->ver_stride) ? (cmd->ver_stride) : in test_ctx_init()
180 (MPP_ALIGN(p->ver_stride, 32) >> 5) * 16 : in test_ctx_init()
182 (MPP_ALIGN(p->ver_stride, 16) >> 4) * 16; 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()
317 mpp_enc_cfg_set_s32(cfg, "prep:ver_stride", p->ver_stride); in test_mpp_enc_cfg_setup()
587 p->hor_stride, p->ver_stride, p->fmt); in test_mpp_run()
[all …]
H A Dmpi_enc_mt_test.cpp83 RK_U32 ver_stride; member
166 p->ver_stride = (cmd->ver_stride) ? (cmd->ver_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()
322 mpp_enc_cfg_set_s32(cfg, "prep:ver_stride", p->ver_stride); in test_mt_cfg_setup()
703 p->hor_stride, p->ver_stride, p->fmt); in enc_test_input()
720 p->ver_stride, p->fmt, p->frm_cnt_in); in enc_test_input()
747 mpp_frame_set_ver_stride(frame, p->ver_stride); in enc_test_input()
H A Dmpi_dec_nt_test.c117 RK_U32 ver_stride = mpp_frame_get_ver_stride(frame); in dec_loop() local
122 ctx, width, height, hor_stride, ver_stride, buf_size); in dec_loop()
415 RK_U32 ver_stride = MPP_ALIGN(height, 16); in dec_nt_decode() local
436 ret = mpp_buffer_get(data.frm_grp, &frm_buf, hor_stride * ver_stride * 4); in dec_nt_decode()
/OK3568_Linux_fs/external/mpp/mpp/codec/enc/h265/
H A Dh265e_api.c123 prep->ver_stride = 720; in h265e_init()
398 dst->ver_stride = src->ver_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/external/mpp/utils/
H A Dutils.c473 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()
616 RK_U32 hor_stride, RK_U32 ver_stride, in fill_MPP_FMT_YUV420SP() argument
630 p = buf + hor_stride * ver_stride; in fill_MPP_FMT_YUV420SP()
640 RK_U32 hor_stride, RK_U32 ver_stride, in fill_MPP_FMT_YUV422SP() argument
654 p = buf + hor_stride * ver_stride; in fill_MPP_FMT_YUV422SP()
1028 RK_U32 hor_stride, RK_U32 ver_stride, MppFrameFormat fmt, in fill_image() argument
1033 RK_U8 *buf_c = buf + hor_stride * ver_stride; in fill_image()
1040 fill_MPP_FMT_YUV420SP(buf, width, height, hor_stride, ver_stride, frame_count); in fill_image()
[all …]
H A Dutils.h69 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/common/
H A Dvepu_common.c288 RK_U32 ver_stride = cfg->ver_stride; in get_vepu_offset_cfg() local
291 RK_U32 offset_c = hor_stride * ver_stride; in get_vepu_offset_cfg()
335 RK_U32 offset = hor_stride * ver_stride; in get_vepu_offset_cfg()
340 offset = hor_stride * ver_stride * 5 / 4; in get_vepu_offset_cfg()
/OK3568_Linux_fs/external/mpp/mpp/hal/rkenc/common/
H A Dvepu540c_common.c102 RK_U32 ver_stride = syn->ver_stride ? syn->ver_stride : syn->height; in vepu540c_jpeg_set_patch_info() local
103 RK_U32 frame_size = hor_stride * ver_stride; in vepu540c_jpeg_set_patch_info()
/OK3568_Linux_fs/debian/packages-patches/mpv/0.29.1/
H A D0002-HACK-vo_xv-Support-dma-buffer-rendering.patch54 + int ver_stride;
135 +static void xv_send_dma_params(struct vo *vo, int hor_stride, int ver_stride)
153 + XvSetPortAttribute(vo->x11->display, ctx->xv_port, atom, ver_stride);
244 + xv_send_dma_params(vo, dma_desc->hor_stride, dma_desc->ver_stride);
265 + dma_desc->ver_stride =
/OK3568_Linux_fs/external/mpp/mpp/hal/vpu/jpegd/
H A Dhal_jpegd_common.c564 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/mpp/mpp/legacy/
H A Dvpu_api_legacy.cpp226 RK_U32 ver_stride = MPP_ALIGN(height, 8); 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()
681 RK_U32 ver_stride = MPP_ALIGN(height, 16); in decode() local
744 ret = mpp_buffer_get(memGroup, &pic_buf, hor_stride * ver_stride * 3 / 2); in decode()
1052 RK_U32 ver_stride = MPP_ALIGN(height, 16); in encode() local
1066 mpp_frame_set_ver_stride(frame, ver_stride); in encode()
1143 ret = mpp_buffer_get(memGroup, &str_buf, hor_stride * ver_stride); in encode()
1304 RK_U32 ver_stride = MPP_ALIGN(height, 8); in encoder_sendframe() local
1320 mpp_frame_set_ver_stride(frame, ver_stride); in encoder_sendframe()
[all …]
/OK3568_Linux_fs/yocto/meta-rockchip/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.20/
H A D0007-HACK-xvimagesink-Support-dma-buffer-rendering.patch302 + gint hor_stride, gint ver_stride, gboolean afbc)
322 + prop_atom, ver_stride);
498 + gint hor_stride, ver_stride;
511 + ver_stride = vmeta->height;
514 + ver_stride = vmeta->offset[1] / hor_stride;
517 + ver_stride = xvimagesink->info.height;
521 + hor_stride, ver_stride,
/OK3568_Linux_fs/yocto/meta-rockchip/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22/
H A D0007-HACK-xvimagesink-Support-dma-buffer-rendering.patch302 + gint hor_stride, gint ver_stride, gboolean afbc)
322 + prop_atom, ver_stride);
498 + gint hor_stride, ver_stride;
511 + ver_stride = vmeta->height;
514 + ver_stride = vmeta->offset[1] / hor_stride;
517 + ver_stride = xvimagesink->info.height;
521 + hor_stride, ver_stride,
/OK3568_Linux_fs/buildroot/package/gstreamer1/gst1-plugins-base/
H A D0007-HACK-xvimagesink-Support-dma-buffer-rendering.patch302 + gint hor_stride, gint ver_stride, gboolean afbc)
322 + prop_atom, ver_stride);
498 + gint hor_stride, ver_stride;
511 + ver_stride = vmeta->height;
514 + ver_stride = vmeta->offset[1] / hor_stride;
517 + ver_stride = xvimagesink->info.height;
521 + hor_stride, ver_stride,
/OK3568_Linux_fs/external/mpp/mpp/codec/enc/h264/
H A Dh264e_api_v2.c140 prep->ver_stride = 720; in init_h264e_cfg_set()
316 dst->ver_stride = src->ver_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()
/OK3568_Linux_fs/external/mpp/mpp/base/
H A Dmpp_frame.cpp218 (f0->ver_stride == f1->ver_stride) && in mpp_frame_info_cmp()
277 MPP_FRAME_ACCESSORS(RK_U32, ver_stride)

123